/* ============================================================
   金顾云全站设计系统 v2 — B2B 金融科技
   ============================================================ */

@import url('https://fonts.loli.net/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=DM+Sans:wght@500;600;700&display=swap');

:root {
    --brand-red: #C82124;
    --brand-red-dark: #9B1A1C;
    --brand-red-light: #E8393C;
    --brand-gold: #C9A227;
    --brand-gold-light: #F5EDD6;
    --navy: #0F172A;
    --navy-soft: #1E293B;
    --slate-900: #0F172A;
    --slate-700: #334155;
    --slate-500: #64748B;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --surface-muted: #F8FAFC;
    --surface-elevated: #FFFFFF;
    --text-secondary: var(--slate-500);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 8px 32px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 16px 48px rgba(200, 33, 36, 0.12);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-numeric: 'DM Sans', 'Noto Sans SC', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --header-height: 72px;
    --content-max: 1200px;
    --section-gap: 80px;
}

/* 覆盖 legacy tokens */
:root {
    --primary-color: var(--brand-red);
    --primary-dark: var(--brand-red-dark);
    --primary-light: var(--brand-red-light);
    --text-color: var(--slate-700);
    --text-light: var(--slate-500);
    --border-color: var(--slate-200);
    --bg-light: var(--surface-elevated);
    --gradient: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--slate-700);
    background: var(--surface-muted);
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

.container {
    max-width: var(--content-max);
}

/* ── 标题体系 ── */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-gold));
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
    color: var(--slate-500);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand-gold-light);
    color: #7A5A10;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: none;
}

.section {
    padding: var(--section-gap) 0;
}

.bg-surface,
.bg-light {
    background: var(--surface-muted) !important;
}

/* ── 按钮 ── */
.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 28px;
    border-radius: 999px;
    border: none;
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: #fff;
}

.btn-brand-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 26px;
    border-radius: 999px;
    border: 1px solid rgba(200, 33, 36, 0.4);
    background: #fff;
    color: var(--brand-red);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-base), border-color var(--transition-base);
}

.btn-brand-outline:hover {
    background: rgba(200, 33, 36, 0.05);
    color: var(--brand-red-dark);
}


a.btn-primary,
.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--gradient);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    border: none;
}

a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ── 卡片 ── */
.card-elevated {
    background: var(--surface-elevated);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card-elevated:hover {
    box-shadow: var(--shadow-card);
}

/* ── 页面 Banner（内页通用） ── */
.page-banner {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(155, 26, 28, 0.82) 100%),
        url('../images/hero-banner.jpg') center / cover no-repeat;
    padding: 100px 0 72px;
    min-height: 280px;
}

.page-banner h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-banner p,
.page-banner .banner-lead {
    font-size: 1.0625rem;
    opacity: 0.92;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── 首页 Hero ── */
.home-hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
    padding: 88px 0 80px;
    text-align: center;
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

.home-hero .section-eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
}

.home-hero-lead {
    max-width: 600px;
    margin: 0 auto 36px;
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.home-hero .btn-brand-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.home-hero .btn-brand-outline:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* ── 数据统计 ── */
.stats {
    background: var(--navy);
    padding: 56px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 28px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background var(--transition-base), border-color var(--transition-base);
}

@media (hover: hover) {
    .stat-item:hover {
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(201, 162, 39, 0.35);
    }
}

.stat-item__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-number {
    font-family: var(--font-numeric);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.stat-number span {
    font-size: 0.6em;
    color: var(--brand-gold);
}

.stat-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9375rem;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section { padding: 56px 0; }
}

/* ── 导航 CTA ── */
#nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

body {
    padding-top: var(--header-height);
}

.main-nav {
    position: relative !important;
    top: auto !important;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: none !important;
}

@media (max-width: 480px) {
    :root {
        --header-height: 70px;
    }
}

.nav-menu a {
    color: var(--slate-700) !important;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--brand-red) !important;
}

.nav-buttons .btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.875rem;
}

.nav-buttons .btn-login {
    background: transparent;
    color: var(--slate-500);
    border: 1px solid var(--slate-200);
    font-weight: 500;
}

.nav-buttons .btn-login:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
    background: rgba(200, 33, 36, 0.04);
}

.nav-buttons .btn-partner {
    background: #fff;
    color: var(--brand-red);
    border: 1px solid rgba(200, 33, 36, 0.35);
}

.nav-buttons .btn-partner:hover {
    background: rgba(200, 33, 36, 0.05);
    transform: none;
    box-shadow: none;
}

.nav-buttons .btn-financing {
    background: var(--gradient);
    color: #fff;
    border: none;
}

.nav-buttons .btn-financing:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

/* ── 全站页脚 ── */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0;
}

.site-footer__main {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 48px;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 64px 40px 48px;
}

.site-footer__logo {
    width: 72px;
    height: auto;
    margin-bottom: 16px;
}

.site-footer__tagline {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.site-footer__desc {
    font-size: 0.875rem;
    line-height: 1.65;
    max-width: 260px;
}

.site-footer__links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.site-footer__col h4 {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 16px;
}

.site-footer__col a {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 10px;
    transition: color var(--transition-base);
}

.site-footer__col a:hover {
    color: var(--brand-gold);
}

.site-footer__qr h4 {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 16px;
    text-align: center;
}

.site-footer__qr-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.site-footer__qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 88px;
}

.site-footer__qr-item img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.site-footer__qr-item span {
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.6);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 40px;
}

.site-footer__copyright {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
}

.site-footer__copyright a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

.site-footer__copyright a:hover {
    color: var(--brand-gold);
}

@media (max-width: 992px) {
    .site-footer__main {
        grid-template-columns: 1fr 1fr;
        padding: 48px 24px 32px;
    }
    .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 576px) {
    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .site-footer__links { gap: 24px; }
}

/* 兼容旧 footer 类名 */
.footer-simple { display: none; }

/* ── 首页卡片交互 ── */
@media (hover: hover) and (pointer: fine) {
    .finance-product-card:hover,
    .client-card:hover,
    .advantage-card:hover {
        transform: translateY(-4px);
    }
}

@media (hover: none), (pointer: coarse) {
    .finance-product-card .product-desc,
    .client-card .client-desc,
    .advantage-card .advantage-desc {
        position: static !important;
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        padding: 12px 0 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        pointer-events: auto;
    }

    .finance-product-card,
    .client-card,
    .advantage-card {
        min-height: auto !important;
        padding-bottom: 24px !important;
    }

    .finance-product-card:hover,
    .client-card:hover,
    .advantage-card:hover,
    .finance-product-card:hover .product-title,
    .client-card:hover .client-title,
    .advantage-card:hover .advantage-title,
    .finance-product-card:hover .product-img-circle,
    .client-card:hover .client-icon,
    .advantage-card:hover .advantage-icon {
        transform: none !important;
    }
}

/* ── 首页公司简介 ── */
#company-intro-home {
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--slate-200);
}

#company-intro-home .about-intro-flex {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

#company-intro-home .intro-logo-wrap img {
    width: 180px;
    border-radius: var(--radius-md);
}

#company-intro-home .intro-text {
    flex: 1;
    min-width: 260px;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--slate-700);
    text-align: justify;
    text-indent: 2em;
    max-width: 720px;
}
.form-page,
.apply-page main {
    background: var(--surface-muted);
}

.form-card,
.application-form-wrapper {
    background: var(--surface-elevated);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    min-height: 44px;
    font-family: var(--font-sans);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 33, 36, 0.12);
}

/* ============================================================
   严正声明：滚动提示条 + 弹窗
   ============================================================ */

.notice-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: linear-gradient(90deg, var(--brand-red-dark), var(--brand-red));
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.notice-bar:hover .notice-bar__text {
    text-decoration: underline;
}

.notice-bar:focus-visible {
    outline: 2px solid var(--brand-gold);
    outline-offset: -2px;
}

.notice-bar__icon {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--brand-gold-light);
}

.notice-bar__viewport {
    flex: 1;
    overflow: hidden;
}

.notice-bar__track {
    display: inline-flex;
    white-space: nowrap;
    animation: notice-bar-scroll 28s linear infinite;
    will-change: transform;
}

.notice-bar:hover .notice-bar__track {
    animation-play-state: paused;
}

.notice-bar__text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding-right: 80px;
}

@keyframes notice-bar-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .notice-bar__track {
        animation: none;
    }

    .notice-bar__text[aria-hidden="true"] {
        display: none;
    }
}

.notice-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notice-modal.is-open {
    display: flex;
}

.notice-modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.notice-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--brand-red);
    box-shadow: var(--shadow-card);
    padding: 32px 36px 28px;
}

.notice-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: var(--slate-500);
    cursor: pointer;
    padding: 4px;
}

.notice-modal__close:hover {
    color: var(--brand-red);
}

.notice-modal__title {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--slate-900);
    text-align: center;
}

.notice-modal__meta {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--slate-200);
}

.notice-modal__body p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--slate-700);
    text-align: justify;
}

.notice-modal__sign {
    margin-top: 24px;
    text-align: right;
    font-weight: 600;
    color: var(--slate-900);
}

@media (max-width: 640px) {
    .notice-bar {
        padding: 8px 16px;
    }

    .notice-modal__dialog {
        padding: 28px 20px 22px;
    }
}
