/* ============================================================
   CrossPayFX 前端网页样式
   主色调：蓝色（brand blue #2563EB，见 AGENTS.md 6.1 品牌主色调）
   结构：变量 → 基础 → 按钮 → 导航 → Hero → 信任/统计 →
         特性 → 方案 → 开发者 → CTA → 页脚 → 响应式
   ============================================================ */

:root {
    /* 主色（蓝） */
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #EFF6FF;
    --primary-deep: #1E3A8A;
    /* 辅助色（青，用于渐变收尾） */
    --accent: #0EA5E9;
    --accent-cyan: #06B6D4;
    --gradient: linear-gradient(135deg, #1D4ED8 0%, #2563EB 48%, #06B6D4 100%);
    --gradient-soft: linear-gradient(135deg, #EFF6FF 0%, #ECFEFF 100%);
    /* 中性色 */
    --dark: #0F172A;
    --text: #334155;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --border: #E2E8F0;
    --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 60px rgba(37, 99, 235, 0.18);
    --radius: 16px;
}

/* ============ 基础 ============ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

section[id] {
    scroll-margin-top: 84px;
}

.section-padding {
    padding: 96px 0;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ 按钮 ============ */
.btn {
    border-radius: 10px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    transition: all 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
    background: transparent;
    transition: all 0.25s ease;
}

.btn-outline-primary:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.btn-link-ghost {
    color: var(--dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 0;
    background: transparent;
}

.btn-link-ghost:hover,
.btn-link-ghost:focus {
    color: var(--primary);
}

/* ============ 导航栏 ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-header .navbar {
    padding: 0.75rem 0;
}

.site-header.is-scrolled {
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--gradient);
    color: #fff;
    font-size: 0.9rem;
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    color: var(--text);
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.lang-dropdown .dropdown-menu {
    min-width: 160px;
    border-radius: 12px;
    border: 1px solid var(--primary-light);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    padding: 8px;
    margin-top: 12px;
}

.lang-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--text);
}

.lang-dropdown .dropdown-item:hover,
.lang-dropdown .dropdown-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.navbar-toggler {
    border-color: var(--border);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ============ Hero ============ */
.hero-section {
    position: relative;
    padding: 90px 0 80px;
    background:
        radial-gradient(60% 60% at 85% 10%, rgba(6, 182, 212, 0.12) 0%, transparent 60%),
        radial-gradient(50% 50% at 10% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, #F6FAFF 0%, #FFFFFF 100%);
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-trust {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-trust i {
    color: var(--primary);
}

.hero-visual {
    position: relative;
    min-height: 420px;
}

.visual-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.visual-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.visual-card-head i {
    color: var(--border);
}

.vc-label {
    font-weight: 500;
}

.vc-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.vc-change {
    font-size: 0.85rem;
    font-weight: 600;
}

.card-balance {
    top: 0;
    right: 5%;
    width: 300px;
    z-index: 2;
}

.card-tx {
    bottom: 10%;
    left: 0;
    width: 240px;
    z-index: 2;
}

.card-globe {
    display: flex;
    align-items: center;
    gap: 1rem;
    bottom: 5%;
    right: 8%;
    width: 250px;
    z-index: 3;
    background: var(--gradient);
    color: #fff;
}

.card-globe i {
    font-size: 2.2rem;
}

.vc-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.vc-text strong {
    font-size: 1.2rem;
}

.vc-bar {
    margin-top: 0.75rem;
    height: 8px;
    border-radius: 50px;
    background: var(--primary-light);
    overflow: hidden;
}

.vc-bar span {
    display: block;
    height: 100%;
    border-radius: 50px;
    background: var(--gradient);
}

.visual-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    z-index: 1;
}

.glow-1 {
    width: 240px;
    height: 240px;
    background: var(--primary);
    top: 15%;
    left: 10%;
}

.glow-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-cyan);
    bottom: 0;
    right: 20%;
}

/* ============ 信任标识 ============ */
.trust-section {
    padding: 40px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-heading {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.trust-logos {
    row-gap: 1rem;
}

.logo-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #94A3B8;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.logo-item:hover {
    color: var(--primary);
}

/* ============ 数据统计 ============ */
.stats-section {
    padding: 72px 0;
    background: #fff;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.stat-label {
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* ============ 通用区块标题 ============ */
.section-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.75rem;
}

/* ============ 特性卡片 ============ */
.features-section {
    background: var(--bg-light);
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient);
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.feature-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.feature-link:hover {
    color: var(--accent);
}

/* ============ 解决方案 ============ */
.solutions-section {
    background: #fff;
}

.solution-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.solution-card:hover {
    background: var(--gradient-soft);
    border-color: rgba(37, 99, 235, 0.2);
}

.solution-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: #fff;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
    box-shadow: var(--shadow);
}

.solution-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.6rem;
}

.solution-card > p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.solution-points li {
    color: var(--text);
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.solution-points i {
    color: var(--primary);
}

/* ============ 开发者 ============ */
.dev-section {
    background: var(--bg-light);
}

.dev-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 11px;
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.dev-point h6 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.dev-point p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.code-card {
    background: var(--dark);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-bar {
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-bar .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-bar .dot:nth-child(1) {
    background: #F87171;
}

.code-bar .dot:nth-child(2) {
    background: #FBBF24;
}

.code-bar .dot:nth-child(3) {
    background: #34D399;
}

.code-file {
    color: #94A3B8;
    font-size: 0.8rem;
}

.code-body {
    padding: 1.5rem;
    margin: 0;
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #E2E8F0;
    overflow-x: auto;
}

.c-keyword {
    color: #93C5FD;
}

.c-string {
    color: #86EFAC;
}

.c-comment {
    color: #64748B;
    font-style: italic;
}

.c-number {
    color: #FCA5A5;
}

/* ============ CTA ============ */
.cta-section {
    background: #fff;
    padding-bottom: 96px;
}

.cta-box {
    background: var(--gradient);
    border-radius: 24px;
    padding: 64px 32px;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-box .btn-light {
    background: #fff;
    color: var(--primary);
    border: none;
    font-weight: 700;
    border-radius: 10px;
}

.cta-box .btn-outline-light {
    border-radius: 10px;
    font-weight: 700;
    color: #fff;
    border: 2px solid #fff;
}

.cta-box .btn-outline-light:hover {
    color: var(--primary);
    background: #fff;
    border-color: #fff;
}

/* ============ 页脚 ============ */
.site-footer {
    background: #0B1120;
    color: #94A3B8;
    padding: 64px 0 0;
}

.site-footer .brand-text {
    color: #fff;
}

.footer-desc {
    color: #94A3B8;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 320px;
}

.footer-social .social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    color: #CBD5E1;
    transition: all 0.2s ease;
}

.footer-social .social-btn:hover {
    background: var(--primary);
    color: #fff;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #94A3B8;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
    font-size: 0.85rem;
}

.footer-legal a {
    color: #94A3B8;
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: #fff;
}

/* ============ 响应式 ============ */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-visual {
        min-height: 360px;
    }

    .card-balance {
        width: 260px;
    }

    .section-padding {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stats-section {
        padding: 48px 0;
    }

    .site-header .navbar-collapse {
        padding-top: 0.75rem;
    }

    .header-actions {
        margin-top: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-visual {
        min-height: 300px;
    }

    .card-balance {
        width: 230px;
        right: 0;
    }

    .card-tx {
        width: 200px;
    }

    .card-globe {
        width: 210px;
    }

    .stat-num {
        font-size: 1.8rem;
    }

    .cta-box {
        padding: 48px 24px;
    }

    .cta-title {
        font-size: 1.6rem;
    }
}
