/* ============================================================
   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;
    }
}

/* ============ 内容页（产品 / 方案 / 关于 / 联系 / 文档） ============ */
.page-hero {
    background: var(--gradient-soft);
    border-bottom: 1px solid var(--border);
    padding: 72px 0 64px;
}

.page-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.page-crumb a {
    color: var(--text-muted);
}

.page-crumb a:hover {
    color: var(--primary);
}

.page-hero-title {
    max-width: 820px;
    margin: 1rem 0 0.75rem;
    color: var(--dark);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
}

.page-hero-desc {
    max-width: 720px;
    margin: 0;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.section-head {
    max-width: 680px;
    margin-bottom: 2.25rem;
}

.product-grid,
.solution-grid,
.value-grid,
.contact-grid,
.docs-grid {
    display: grid;
    gap: 1.5rem;
}

.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid-sm {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.solution-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-grid,
.contact-grid,
.docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: inherit;
    transition: all 0.3s ease;
}

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

.product-icon,
.value-icon,
.docs-icon,
.solution-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: var(--gradient);
    color: #fff;
    font-size: 1.25rem;
}

.product-tag {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.product-desc {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.product-more {
    margin-top: auto;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.solution-card-link {
    display: block;
    color: inherit;
}

.solution-card-link:hover {
    color: inherit;
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

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

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

.content-panel {
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.lead-copy {
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.85;
}

.subhead {
    margin: 2rem 0 1rem;
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 700;
}

.check-list,
.point-list {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    color: var(--text);
}

.check-list i {
    margin-top: 0.3rem;
    color: var(--success, #16A34A);
}

.point-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.25rem;
    color: var(--text-muted);
}

.point-list li::before {
    position: absolute;
    top: 0.95rem;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    content: "";
}

.side-cta {
    position: sticky;
    top: 100px;
    padding: 2rem;
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.side-cta h2 {
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 700;
}

.side-cta p {
    color: var(--text-muted);
    line-height: 1.7;
}

.mission-panel {
    max-width: 880px;
    padding: 2.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 24px;
}

.mission-mark {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.75rem;
}

.mission-panel h2 {
    color: var(--dark);
    font-size: 1.75rem;
    font-weight: 800;
}

.mission-panel p {
    margin: 0;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.8;
}

.value-card,
.contact-card,
.docs-card {
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.value-card:hover,
.contact-card:hover,
.docs-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow);
}

.value-card h2,
.value-card h3,
.docs-card h2 {
    margin-bottom: 0.6rem;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.value-card p,
.contact-card p,
.docs-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.7;
}

.contact-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-value {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 700;
    word-break: break-word;
}

a.contact-value:hover {
    color: var(--primary);
}

.note-panel {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--radius);
}

.note-icon {
    color: var(--primary);
    font-size: 1.25rem;
}

.note-panel h2 {
    margin-bottom: 0.35rem;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 700;
}

.note-panel p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .product-grid,
    .product-grid-sm,
    .solution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .side-cta {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .page-hero {
        padding: 48px 0 40px;
    }

    .product-grid,
    .product-grid-sm,
    .solution-grid,
    .value-grid,
    .contact-grid,
    .docs-grid {
        grid-template-columns: 1fr;
    }

    .content-panel,
    .mission-panel,
    .side-cta {
        padding: 1.5rem;
    }
}

/* ============ API 文档 ============ */
.api-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.api-docs-section {
    background: var(--bg-light);
}

.api-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.api-overview-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.api-overview-card code {
    color: var(--primary);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.api-overview-label {
    color: var(--dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.api-auth-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.api-auth-panel h2 {
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 800;
}

.api-auth-panel p {
    margin-bottom: 0.55rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.api-signature {
    align-self: stretch;
    margin: 0;
    padding: 1rem;
    overflow: auto;
    background: #0B1120;
    border-radius: 10px;
    color: #CBD5E1;
    font-size: 0.78rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.api-docs-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.api-sidebar {
    position: sticky;
    top: 92px;
    padding: 1.1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.api-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-muted);
    background: var(--bg-light);
}

.api-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dark);
    font-size: 0.86rem;
}

.api-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.9rem 0 1rem;
}

.api-filter {
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: #fff;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.api-filter:hover,
.api-filter.is-active {
    background: var(--primary-light);
    border-color: rgba(37, 99, 235, 0.25);
    color: var(--primary);
}

.api-sidebar-nav {
    max-height: calc(100vh - 280px);
    overflow: auto;
    padding-right: 0.25rem;
}

.api-sidebar-group {
    padding: 0.65rem 0;
    border-top: 1px solid var(--border);
}

.api-sidebar-group > span {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--dark);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.api-sidebar-group a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0;
    color: var(--text-muted);
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.api-sidebar-group a:hover {
    color: var(--primary);
}

.api-sidebar-group code {
    color: inherit;
    font-size: 0.73rem;
}

.api-method-mini {
    flex: 0 0 38px;
    font-size: 0.6rem;
    font-weight: 800;
}

.api-main {
    min-width: 0;
}

.api-empty {
    padding: 2rem;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    text-align: center;
}

.api-group {
    margin-bottom: 2.25rem;
}

.api-group-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.api-group-head h2 {
    margin: 0;
    color: var(--dark);
    font-size: 1.35rem;
    font-weight: 800;
}

.api-group-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.4rem;
    border-radius: 50px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
}

.api-op {
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.api-op-head {
    padding: 1.25rem 1.35rem 1rem;
    border-bottom: 1px solid var(--border);
}

.api-op-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.api-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 0.38rem 0.55rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.method-get {
    background: #ECFDF5;
    color: #047857;
}

.method-post {
    background: #EFF6FF;
    color: #1D4ED8;
}

.method-put,
.method-patch {
    background: #FFFBEB;
    color: #B45309;
}

.method-delete {
    background: #FEF2F2;
    color: #B91C1C;
}

.api-path {
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.api-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.api-copy:hover,
.api-copy.is-copied {
    border-color: rgba(37, 99, 235, 0.25);
    background: var(--primary-light);
    color: var(--primary);
}

.api-op-head h3 {
    margin: 0.8rem 0 0.45rem;
    color: var(--dark);
    font-size: 1.08rem;
    font-weight: 800;
}

.api-op-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.api-op-head p.api-note {
    margin-top: 0.45rem;
}

.api-op-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.8rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.api-op-body {
    padding: 0 1.35rem 1.1rem;
}

.api-block {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.api-block > summary {
    padding: 0.7rem 0.85rem;
    background: var(--bg-light);
    color: var(--dark);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.api-table-wrap {
    overflow-x: auto;
}

.api-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.api-table th,
.api-table td {
    padding: 0.65rem 0.8rem;
    border-top: 1px solid var(--border);
    vertical-align: top;
    text-align: left;
}

.api-table th {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.api-table td {
    color: var(--text);
    line-height: 1.65;
}

.api-table code {
    color: var(--primary-deep);
    font-size: 0.78rem;
}

.api-type {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    background: var(--bg-light);
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.7rem;
}

.api-required {
    color: var(--text-muted);
    font-size: 0.73rem;
}

.api-required.is-required {
    color: var(--primary);
    font-weight: 700;
}

.api-example {
    color: var(--text-muted) !important;
    overflow-wrap: anywhere;
}

.api-response {
    padding: 0.8rem;
    border-top: 1px solid var(--border);
}

.api-response-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.api-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    padding: 0.2rem 0.4rem;
    border-radius: 5px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.72rem;
}

.status-4xx,
.status-5xx {
    background: #FEF2F2;
    color: #B91C1C;
}

.api-code {
    margin: 0;
    padding: 0.85rem;
    overflow: auto;
    background: #0B1120;
    border-radius: 8px;
    color: #D7E3F4;
    font-size: 0.76rem;
    line-height: 1.65;
}

@media (max-width: 1199.98px) {
    .api-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .api-docs-layout {
        grid-template-columns: 250px minmax(0, 1fr);
    }
}

@media (max-width: 991.98px) {
    .api-docs-layout {
        grid-template-columns: 1fr;
    }

    .api-sidebar {
        position: static;
    }

    .api-sidebar-nav {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .api-overview-grid,
    .api-auth-panel {
        grid-template-columns: 1fr;
    }

    .api-op-head,
    .api-op-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .api-path {
        font-size: 0.8rem;
    }
}

.api-status[class*="status-4"],
.api-status[class*="status-5"] {
    background: #FEF2F2;
    color: #B91C1C;
}

/* ============ 步骤 / 优势 / FAQ ============ */
.steps-section {
    background: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.step-card {
    height: 100%;
    padding: 2rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.step-num {
    color: var(--primary);
    opacity: 0.35;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    color: var(--primary);
    font-size: 1.15rem;
    box-shadow: var(--shadow);
}

.step-card h3 {
    margin-bottom: 0.6rem;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.step-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.7;
}

.benefits-section {
    background: var(--bg-light);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

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

.benefit-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow);
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.1rem;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.2rem;
}

.benefit-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.02rem;
    font-weight: 700;
}

.benefit-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-section {
    background: #fff;
}

.product-accordion .accordion-item {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.product-accordion .accordion-button {
    color: var(--dark);
    background: #fff;
    font-weight: 600;
    box-shadow: none;
}

.product-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: var(--primary-light);
}

.product-accordion .accordion-button:focus {
    border-color: var(--border);
    box-shadow: none;
}

.product-accordion .accordion-body {
    color: var(--text-muted);
    line-height: 1.75;
}

@media (max-width: 991.98px) {
    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .steps-grid,
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 1.5rem;
    }
}

/* 移动端：g-5 的负边距大于容器内边距，会导致 12px 横向溢出 */
@media (max-width: 575.98px) {
    .row.g-5 {
        --bs-gutter-x: 1.5rem;
    }
}

/* ============ 独立 API 文档页 ============ */
.docs-body {
    background: #fff;
}

.docs-main {
    min-height: calc(100vh - 60px);
}

.docs-bar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--dark);
    color: #fff;
}

.docs-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
}

.docs-bar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    font-weight: 700;
}

.docs-bar-brand:hover {
    color: #fff;
}

.docs-bar-brand .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.docs-bar-tag {
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: #E2E8F0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.docs-bar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.docs-bar-lang {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.docs-bar-lang a {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    color: #CBD5E1;
    font-size: 0.82rem;
}

.docs-bar-lang a:hover,
.docs-bar-lang a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.docs-bar-back {
    color: #E2E8F0;
    font-size: 0.85rem;
}

.docs-bar-back:hover {
    color: #fff;
}

@media (max-width: 575.98px) {
    .docs-bar-inner {
        flex-wrap: wrap;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .docs-bar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .docs-bar-back span {
        display: none;
    }
}
