/* ============================================================
   跨链加速器 · 前台统一设计系统（一线企业 · 浅色科技风）
   ============================================================ */
:root {
    --brand: #2563eb;
    --brand-deep: #1d4ed8;
    --brand2: #06b6d4;
    --navy: #0b1220;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e6ecf5;
    --bg: #f6f9fc;
    --bg-soft: #eef4ff;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 12px rgba(15, 23, 42, .05);
    --shadow-md: 0 16px 40px rgba(15, 23, 42, .1);
    --shadow-lg: 0 22px 50px rgba(15, 23, 42, .12);
    --grad: linear-gradient(120deg, #1d4ed8 0%, #06b6d4 100%);
    --grad-soft: linear-gradient(135deg, #eef5ff 0%, #eafafb 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { text-decoration: none; }

/* 渐变文字 */
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Logo 标记 */
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 9px;
    flex-shrink: 0;
}

/* ============ 按钮 ============ */
.btn-brand {
    background: var(--grad);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .26);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-brand:hover, .btn-brand:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, .36);
    filter: brightness(1.03);
}
.btn-outline-brand {
    color: var(--brand);
    border: 1px solid var(--brand);
    background: transparent;
    font-weight: 600;
}
.btn-outline-brand:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.btn-ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ============ 导航栏（苹果毛玻璃风） ============ */
.site-nav {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, .55);
    box-shadow: 0 1px 12px rgba(15, 23, 42, .04);
}
.site-nav .nav-link {
    color: var(--ink);
    font-weight: 500;
    font-size: 14.5px;
    padding: .55rem 1rem;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand); }
.site-nav .brand { font-weight: 800; font-size: 17px; }

/* ============ Hero（浅色） ============ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 88px;
    background:
        radial-gradient(circle, rgba(37, 99, 235, .07) 1px, transparent 1px),
        linear-gradient(180deg, #eaf2ff 0%, #f6f9fc 100%);
    background-size: 24px 24px, 100% 100%;
    border-bottom: 1px solid var(--line);
}
.hero .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; }
.hero .orb-1 { width: 440px; height: 440px; background: #bfdbfe; top: -160px; right: -90px; }
.hero .orb-2 { width: 360px; height: 360px; background: #a5f3fc; bottom: -130px; left: -90px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .72); border: 1px solid var(--line);
    backdrop-filter: blur(8px); color: var(--brand);
    padding: 7px 16px; border-radius: 99px; font-size: 13px; font-weight: 600;
}
.hero-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18);
}
.hero-title { font-size: 52px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.12; margin: 22px 0 16px; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 680px; margin: 0 auto 30px; line-height: 1.75; }

/* ============ 数据统计条 ============ */
.stats-band {
    background: #fff; border: 1px solid var(--line); border-radius: 20px;
    box-shadow: var(--shadow-lg); position: relative; z-index: 5; margin-top: -52px;
}
.stat-cell { padding: 28px 16px; text-align: center; }
.stat-cell + .stat-cell { border-left: 1px solid var(--line); }
.stat-num {
    font-size: 30px; font-weight: 800; letter-spacing: -.5px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ============ 区块标题 ============ */
.section { padding: 88px 0; }
.section-head { margin-bottom: 52px; }
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--brand); font-weight: 700; font-size: 13px;
    letter-spacing: .5px; text-transform: uppercase;
}
.section-title { font-size: 34px; font-weight: 800; letter-spacing: -.6px; margin: 10px 0 12px; color: var(--ink); }
.section-sub { color: var(--muted); font-size: 16.5px; max-width: 640px; margin: 0 auto; }

/* ============ 通用卡片 ============ */
.card-glass {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-glass:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, .28); }

.feature-card { padding: 30px; height: 100%; }
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center;
    justify-content: center; font-size: 24px; color: #fff; margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .14);
}
.feature-card h5 { font-weight: 700; font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.feature-card p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.7; }

.tech-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; height: 100%; display: flex; gap: 16px; align-items: flex-start;
    transition: transform .2s ease, box-shadow .2s ease;
}
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tech-icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
}
.tech-card h6 { font-weight: 700; margin-bottom: 4px; font-size: 15px; color: var(--ink); }
.tech-card p { color: var(--muted); font-size: 13.5px; margin: 0; line-height: 1.65; }

/* ============ 平台卡片 ============ */
.platform-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px; text-align: center; height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.platform-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.platform-icon {
    width: 62px; height: 62px; border-radius: 16px; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center; font-size: 30px; color: #fff;
}
.platform-card h6 { font-weight: 700; color: var(--ink); }
.platform-card p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ============ 套餐卡片 ============ */
.plan-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    height: 100%; position: relative; transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-card.recommend { border: 2px solid var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .08), var(--shadow-lg); }
.badge-recommend { position: absolute; top: 14px; right: 14px; }
.price { font-size: 36px; font-weight: 800; color: var(--brand); letter-spacing: -.5px; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.feature-item { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; }
.feature-item i { color: var(--success); margin-right: 8px; }

/* ============ 企业服务深色横幅 ============ */
.enterprise {
    background: linear-gradient(140deg, #0b1c4d 0%, #12307a 60%, #0d5a6e 100%);
    border-radius: var(--radius-lg); padding: 60px; position: relative; overflow: hidden; color: #fff;
}
.enterprise::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 24px 24px; opacity: .5;
}
.enterprise .inner { position: relative; z-index: 2; }
.ent-title { font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.ent-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; }
.ent-item .ic {
    width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
    display: flex; align-items: center; justify-content: center; font-size: 20px; color: #93c5fd;
}
.ent-item b { display: block; font-size: 15px; }
.ent-item span { display: block; font-size: 13px; color: rgba(255, 255, 255, .64); }

/* ============ CTA 横幅 ============ */
.cta-band {
    background: var(--grad); border-radius: var(--radius-lg); padding: 52px; color: #fff;
    position: relative; overflow: hidden;
}
.cta-band::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 22px 22px; opacity: .5;
}
.cta-band .btn-white { background: #fff; color: var(--brand); border: none; font-weight: 700; }
.cta-band .btn-white:hover { transform: translateY(-2px); }

/* ============ FAQ ============ */
.accordion-item { border: 1px solid var(--line) !important; border-radius: 14px !important; overflow: hidden; margin-bottom: 12px; background: #fff; }
.accordion-button { font-weight: 600; color: var(--ink); font-size: 15px; background: #fff; }
.accordion-button:not(.collapsed) { color: var(--brand); background: var(--grad-soft); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--line); }
.accordion-body { color: var(--muted); font-size: 14.5px; }

/* ============ 页脚 ============ */
.site-footer { background: var(--navy); color: #94a3b8; padding: 56px 0 28px; }
.site-footer h6 { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.site-footer a { color: #94a3b8; font-size: 13.5px; display: block; margin-bottom: 10px; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-line { color: #fff; font-weight: 800; font-size: 18px; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 20px; font-size: 13px; }

/* ============ 应用页（登录后） ============ */
.page-head {
    position: relative; overflow: hidden; padding: 44px 0;
    background: radial-gradient(circle, rgba(37, 99, 235, .07) 1px, transparent 1px), var(--grad-soft);
    background-size: 22px 22px, 100% 100%;
    border-bottom: 1px solid var(--line);
}
.page-head h3 { font-weight: 800; color: var(--ink); margin: 0; }

.section-title-2 {
    display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; margin: 0 0 16px;
}
.section-title-2::before {
    content: ""; width: 4px; height: 18px; border-radius: 99px; background: var(--grad);
}

/* 表单 */
.form-label { font-weight: 600; color: var(--ink); }
.form-control { border: 1px solid var(--line); border-radius: 10px; padding: .62rem .9rem; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }

/* 表格 */
.table { vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }

/* 徽章 */
.badge { border-radius: 99px; font-weight: 600; padding: .45em .78em; }
.badge-brand { background: var(--grad); color: #fff; }
.badge-online { background: #dcfce7; color: var(--success); }
.badge-offline { background: #fee2e2; color: var(--danger); }

/* 进度条 */
.progress { height: 10px; border-radius: 99px; background: #eef2f8; overflow: hidden; }
.progress-bar { background: var(--grad); border-radius: 99px; }

/* 头像 */
.avatar {
    width: 72px; height: 72px; border-radius: 50%; background: var(--grad); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .3); flex-shrink: 0;
}

/* 节点卡片 */
.node-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.node-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, .28); }
.region { font-size: 16px; font-weight: 700; color: var(--ink); }
.latency { font-size: 20px; font-weight: 800; color: var(--brand); }

/* 登录/注册卡片 */
.auth-box {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line); border-radius: 22px; padding: 40px;
    width: 100%; max-width: 430px; box-shadow: 0 20px 60px rgba(15, 23, 42, .1);
}
.auth-bg {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
    background:
        radial-gradient(circle, rgba(37, 99, 235, .08) 1px, transparent 1px),
        radial-gradient(circle at 15% 20%, rgba(191, 219, 254, .55), transparent 42%),
        radial-gradient(circle at 85% 80%, rgba(165, 243, 252, .5), transparent 42%),
        #f6f9fc;
    background-size: 22px 22px, 100% 100%, 100% 100%, 100% 100%;
}

/* 抽奖按钮 */
.draw-btn {
    width: 180px; height: 180px; border-radius: 50%; border: none; font-size: 22px; font-weight: 800;
    color: #fff; background: var(--grad); box-shadow: 0 14px 34px rgba(37, 99, 235, .4);
    transition: transform .15s ease, box-shadow .15s ease; position: relative;
}
.draw-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(37, 99, 235, .5); }
.draw-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* 通用工具类 */
.anchor { scroll-margin-top: 90px; }
.text-muted-2 { color: var(--muted); }
.bg-soft { background: var(--bg-soft); }

/* ============ Swiper 轮播 ============ */
.swiper-pagination-bullet { background: #b6c2d4; opacity: 1; }
.swiper-pagination-bullet-active { background: var(--brand); width: 24px; border-radius: 99px; }

@media (max-width: 768px) {
    .hero-title { font-size: 34px; }
    .section-title { font-size: 26px; }
    .stat-cell { border-left: none !important; border-bottom: 1px solid var(--line); }
    .stat-cell:last-child { border-bottom: none; }
    .enterprise { padding: 32px 22px; }
    .cta-band { padding: 32px 22px; }
}

/* ============ 增强：动效 ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: revealUp .6s ease; }
@keyframes revealUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ 增强：分栏登录/注册 ============ */
.auth-split { min-height: 100vh; display: flex; }
.auth-split .auth-left {
    flex: 1.1; display: none; align-items: center; justify-content: center;
    padding: 60px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(140deg, #0b1c4d 0%, #12307a 60%, #0d5a6e 100%);
}
.auth-split .auth-left::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 24px 24px; opacity: .5;
}
.auth-split .auth-left .inner { position: relative; z-index: 2; max-width: 440px; }
.auth-split .auth-left .points { margin-top: 28px; }
.auth-split .auth-left .points .p { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.auth-split .auth-left .points .p i { color: #93c5fd; font-size: 18px; width: 24px; text-align: center; }
.auth-split .auth-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
@media (min-width: 992px) {
    .auth-split .auth-left { display: flex; }
}

/* 输入框图标组 */
.input-icon { position: relative; }
.input-icon > .fa-solid, .input-icon > .fa-brands {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 15px; pointer-events: none; z-index: 2;
}
.input-icon .form-control { padding-left: 42px; }
.input-icon.has-suffix .form-control { padding-right: 46px; }
.password-toggle {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #94a3b8; cursor: pointer; padding: 4px 6px; z-index: 2;
}
.password-toggle:hover { color: var(--brand); }

/* 微信登录按钮 */
.btn-wechat {
    background: #09bb07; border: none; color: #fff; font-weight: 600;
    box-shadow: 0 8px 22px rgba(9, 187, 7, .26);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-wechat:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(9, 187, 7, .36); }

/* 分割线 */
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: #94a3b8; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
