/* bxcddh 2026-10-29 — keep black-gold, drop 2018 template chrome */

:root {
    --bx-gold: #c9a96e;
    --bx-gold-soft: #e2c992;
    --bx-ink: #080808;
    --bx-panel: #11100d;
    --bx-line: rgba(201, 169, 110, 0.22);
    --bx-text: #d9d4cc;
    --bx-muted: #8d887f;
}

html {
    scroll-padding-top: 88px;
}

#contact {
    scroll-margin-top: 88px;
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bx-ink);
    color: var(--bx-text);
    letter-spacing: 0.01em;
}

h1, h2, h3,
.section-title,
.service-banner .service-title,
.advantages-title,
.history-title,
.footer-title h2,
.business-scope-title,
.bx-cms-hero h1 {
    font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
    font-weight: 600;
    letter-spacing: 0.12em;
}

a {
    color: inherit;
}

/* Never leave scroll-reveal content invisible if JS lags */
.animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
}

/* ---------- Header ---------- */
.header {
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--bx-line);
    box-shadow: none;
    padding: 0;
    height: 72px;
}

.header-container {
    height: 72px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo img {
    height: 42px;
    margin-right: 0;
}

.logo-text {
    display: none;
}

.nav-menu {
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    margin: 0;
    white-space: nowrap;
}

.nav-menu li {
    margin-left: 0;
}

.nav-menu a {
    color: #cfc9bf;
    font-size: 13px;
    letter-spacing: 0.06em;
    padding: 8px 10px;
    display: inline-block;
    position: relative;
}

.nav-menu a:hover {
    color: var(--bx-gold-soft);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 2px;
    height: 1px;
    background: var(--bx-gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

.header-tel {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--bx-gold);
    color: var(--bx-gold);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.08em;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-tel:hover {
    background: var(--bx-gold);
    color: #111;
}

.header-tel i {
    font-size: 11px;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: 0;
    background: none;
    border: 0;
    color: var(--bx-gold);
    font-size: 18px;
    cursor: pointer;
}

@media (min-width: 1280px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        position: static !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        flex-direction: row !important;
        background: transparent !important;
        padding: 0 !important;
        border: 0 !important;
        width: auto !important;
    }
}

@media (max-width: 1279px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .header-tel {
        margin-left: auto;
        order: 2;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        background: rgba(8, 8, 8, 0.98);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        opacity: 0;
        z-index: 100;
        white-space: normal;
    }

    .nav-menu.active {
        height: auto;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        opacity: 1;
        padding: 8px 0 20px;
        border-top: 1px solid var(--bx-line);
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(201, 169, 110, 0.08);
    }

    .nav-menu a {
        display: block;
        padding: 14px 24px;
        font-size: 15px;
    }

    .nav-menu a::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .header-container {
        padding: 0 14px;
    }

    .header-tel {
        padding: 0 10px;
        font-size: 12px;
    }

    .header-tel i {
        display: none;
    }
}

/* ---------- Banner: keep designed 16:5 art intact (no crop / stretch) ---------- */
.banner,
.banner-wrapper .banner {
    position: relative;
    height: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 0 31.767% 0 !important; /* 629 / 1980，避免高度塌陷或撑满全屏 */
    overflow: hidden;
    background: #000;
    touch-action: pan-y;
}

.banner-inner {
    position: absolute !important;
    inset: 0;
    display: flex !important;
    flex-wrap: nowrap;
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    padding: 0 !important;
    transform: translate3d(0, 0, 0);
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.banner-slide,
.banner-slide.active {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    position: relative !important;
    top: auto;
    left: auto;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
    transition: none !important;
    z-index: 0;
    contain: layout paint;
}

.banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.banner-img img,
.banner-image,
.banner-slide.active .banner-image,
.banner-slide.active .banner-img img {
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
    left: 0;
    transform: translateZ(0) !important;
    transition: none !important;
    backface-visibility: hidden;
    display: block;
    pointer-events: none;
}

.banner-img:after {
    display: none;
}

.banner-text,
.banner-btn {
    display: none !important;
}

.banner-dots {
    bottom: 18px;
}

.dot {
    width: 6px;
    height: 6px;
    margin: 0 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.dot.active {
    background: var(--bx-gold);
    transform: none;
}

.banner-arrow {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(201, 169, 110, 0.28);
    color: var(--bx-gold);
}

.banner-arrow:hover {
    background: rgba(201, 169, 110, 0.18);
}

@media (max-width: 768px) {
    .header,
    .header-container {
        height: 60px;
    }

    .logo img {
        height: 32px;
    }

    .banner,
    .banner-wrapper .banner {
        height: 0 !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 0 31.767% 0 !important;
    }

    .nav-menu {
        top: 60px;
    }
}

/* ---------- Section titles: one hairline, not two bars ---------- */
.section-title {
    display: block;
    width: 100%;
    text-align: center;
    float: none;
    font-size: 26px;
    color: var(--bx-gold);
    margin: 0 0 40px;
    padding: 0 16px 16px;
    position: relative;
}

.section-title::before,
.section-title:before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    background: none !important;
}

.section-title::after,
.section-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 36px;
    height: 1px;
    background: var(--bx-gold);
}

.advantages-title,
.history-title {
    display: inline-block;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    padding: 0 0 16px !important;
    font-size: 26px;
    color: var(--bx-gold);
    position: relative;
}

.advantages-title::before,
.history-title::before {
    display: none !important;
    animation: none !important;
}

.advantages-title::after,
.history-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 36px;
    height: 1px;
    background: var(--bx-gold);
    transform: translateX(-50%);
}

.company-container::before {
    animation: none !important;
    opacity: 0.6;
}

.history-text:hover,
.history-image:hover {
    transform: none;
}

.history-text p:hover,
.company-text p:hover {
    transform: none;
    color: inherit;
}

.history-image {
    border-width: 1px;
}

.history-image:hover {
    transform: none;
}

.history-image:hover img {
    transform: none;
}

/* ---------- Service cards ---------- */
.services-container {
    padding: 88px 0 72px;
    background: #0b0b0b;
}

.services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 1200px;
}

.service-item {
    padding: 32px 22px 28px;
    border-radius: 0;
    border: 1px solid rgba(201, 169, 110, 0.16);
    background: linear-gradient(180deg, #141210 0%, #0c0b09 100%);
    box-shadow: none;
}

.service-item:before {
    height: 1px;
    background: var(--bx-gold);
}

.service-item:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 169, 110, 0.42);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.service-item:hover .service-icon {
    transform: none;
    background: transparent;
    border-color: var(--bx-gold);
}

.service-item:hover .service-icon i {
    color: var(--bx-gold-soft);
}

.service-item:hover .service-title {
    transform: none;
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    background: transparent;
    border: 1px solid rgba(201, 169, 110, 0.35);
    box-shadow: none;
}

.service-icon i {
    font-size: 20px;
}

.service-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.service-item .service-title {
    font-size: 17px;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.service-desc {
    font-size: 13px;
    line-height: 1.7;
    color: var(--bx-muted);
}

@media (min-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

/* ---------- Advantages / scope preview ---------- */
.advantage-card,
.business-scope-preview-item,
.feature-card {
    border-radius: 0;
    background: var(--bx-panel);
    border: 1px solid rgba(201, 169, 110, 0.14);
    box-shadow: none;
}

.advantage-card:hover,
.feature-card:hover,
.business-scope-preview-item:hover {
    transform: translateY(-4px);
    box-shadow: none;
    border-color: rgba(201, 169, 110, 0.4);
}

.advantage-card::after {
    height: 1px;
}

/* ---------- Store cards / footer ---------- */
.store-icon {
    background: transparent;
    border: 1px solid var(--bx-gold);
}

.store-icon i {
    color: var(--bx-gold);
}

.call-btn {
    background: transparent;
    color: var(--bx-gold);
    border: 1px solid var(--bx-gold);
    border-radius: 0;
}

.call-btn:hover {
    background: var(--bx-gold);
    color: #111;
}

.map-btn {
    border-radius: 0;
}

.cta-btn:hover,
.map-btn:hover,
.call-btn:hover {
    transform: none;
}

.footer-title h2 {
    font-size: 26px;
}

.footer-title h2:after {
    width: 36px;
    height: 1px;
    bottom: -10px;
}

/* ---------- Inner service pages ---------- */
.service-banner {
    height: auto;
    min-height: 180px;
    aspect-ratio: 1980 / 629;
    margin-top: 0;
    background-color: #120f0a;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    align-items: flex-end;
    justify-content: center;
}

.service-banner::before {
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.12) 0%, rgba(8, 8, 8, 0.28) 50%, rgba(8, 8, 8, 0.78) 100%);
}

.service-banner .service-title {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
    text-align: center;
    color: #f4ecdc;
    font-size: clamp(28px, 4vw, 42px);
    text-shadow: none;
    position: relative;
    z-index: 1;
}

.service-banner .service-title::before {
    content: '成都博信昌 · 国家法定典当机构';
    display: block;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.32em;
    color: var(--bx-gold);
    margin-bottom: 14px;
}

.service-detail-container {
    padding: 56px 20px 72px;
}

.service-description {
    max-width: 720px;
    font-size: 16px;
    color: #cfc9bf;
    line-height: 1.9;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: transparent !important;
    border: 1px solid rgba(201, 169, 110, 0.4);
    border-radius: 50%;
}

.feature-icon i {
    font-size: 18px;
    color: var(--bx-gold) !important;
}

.feature-title {
    font-size: 16px;
    letter-spacing: 0.08em;
}

.process-steps {
    max-width: 960px;
    gap: 0;
}

.process-step {
    width: 25%;
    background: transparent;
    border-radius: 0;
    padding: 8px 16px 24px;
    position: relative;
}

.process-step::after {
    top: 20px;
    right: -8%;
    width: 16%;
    height: 1px;
    background: rgba(201, 169, 110, 0.35);
}

.step-number {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--bx-gold);
    color: var(--bx-gold);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.08em;
}

.process-step:hover .step-number {
    background: var(--bx-gold);
    color: #111;
    transform: none;
}

.faq-item {
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid rgba(201, 169, 110, 0.14);
    margin-bottom: 0;
}

.faq-question {
    padding: 18px 4px;
}

.faq-question h3 {
    font-size: 16px;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.faq-answer {
    padding-left: 4px;
    padding-right: 4px;
}

.contact-section {
    background: transparent;
    border: 1px solid var(--bx-line);
    border-radius: 0;
    padding: 40px 28px;
}

.contact-btn {
    border-radius: 0;
    letter-spacing: 0.12em;
}

.contact-btn.primary {
    background: transparent;
    color: var(--bx-gold);
    border: 1px solid var(--bx-gold);
}

.contact-btn.primary:hover {
    background: var(--bx-gold);
    color: #111;
}

.business-scope-banner {
    height: 380px;
    align-items: flex-end;
}

.business-scope-title {
    padding-bottom: 48px;
    letter-spacing: 0.16em;
}

@media (max-width: 992px) {
    .process-step {
        width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .service-banner,
    .business-scope-banner {
        height: auto;
        min-height: 140px;
        aspect-ratio: 1980 / 629;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .service-banner .service-title {
        padding-bottom: 28px;
        font-size: 26px;
    }

    .process-step {
        width: 100%;
    }

    .process-step::after {
        display: none;
    }
}

/* ---------- CMS list / article ---------- */
.bx-cms-page {
    padding-top: 96px;
}

.bx-cms-hero h1 {
    margin-top: 12px;
    color: #f4ecdc;
}

.bx-cms-card {
    border-radius: 0;
}

/* Inner page: quieter editorial layout */
.service-banner {
    height: auto;
    aspect-ratio: 1980 / 629;
}

.service-banner .service-title {
    text-align: left;
    max-width: 1080px;
    padding: 0 24px 40px;
}

.service-banner .service-title::before {
    text-align: left;
    letter-spacing: 0.24em;
}

.service-detail-container {
    max-width: 1080px;
}

.service-description {
    text-align: left;
    max-width: none;
    margin: 0 0 48px;
    padding: 0 0 28px;
    border-bottom: 1px solid var(--bx-line);
}

.service-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    text-align: left;
    padding: 22px 20px;
}

.feature-icon {
    grid-row: 1 / span 2;
    margin: 0;
}

.feature-title {
    margin: 0 0 6px;
}

.feature-card p {
    grid-column: 2;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--bx-muted);
}

.service-extra {
    margin: 8px 0 56px;
}

.service-extra__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.service-extra__card {
    border: 1px solid var(--bx-line);
    padding: 24px 22px;
}

.service-extra__title {
    font-size: 16px;
    color: var(--bx-gold);
    letter-spacing: 0.12em;
    margin: 0 0 14px;
}

.service-extra__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-extra__list li {
    position: relative;
    padding: 8px 0 8px 16px;
    color: var(--bx-text);
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.service-extra__list li:last-child {
    border-bottom: 0;
}

.service-extra__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 5px;
    height: 5px;
    background: var(--bx-gold);
}

.service-extra__note {
    margin: 16px 0 0;
    color: var(--bx-muted);
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .service-banner .service-title,
    .service-banner .service-title::before {
        text-align: center;
    }

    .service-features,
    .service-extra__grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        grid-template-columns: 44px 1fr;
        padding: 18px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
