/* 官网首页样式 */
body.home {
    background: #fff;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}
body.home .container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* 导航 */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: .25s;
}
.nav.scrolled { border-bottom-color: #eef1f6; box-shadow: 0 4px 18px rgba(15, 23, 42, .05); }
.nav-inner { display: flex; align-items: center; height: 66px; gap: 26px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: #0f172a; text-decoration: none; }
.nav-brand .logo, .footer-brand .logo {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, #3b6cff, #7c5cff); color: #fff; font-weight: 800;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: #475569; text-decoration: none; font-size: 14.5px; font-weight: 500; transition: .2s; }
.nav-links a:hover { color: #3b6cff; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-login { color: #0f172a; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; }

/* 按钮尺寸 */
.btn.lg { padding: 13px 26px; font-size: 15.5px; border-radius: 11px; }
.btn.ghost.on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn.ghost.on-dark:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* Hero */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 55% at 78% 8%, rgba(124, 92, 255, .16), transparent 60%),
        radial-gradient(55% 50% at 12% 20%, rgba(59, 108, 255, .16), transparent 62%),
        linear-gradient(180deg, #f7f9ff, #ffffff 62%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero-badge {
    display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13px;
    background: #eef2ff; color: #3b4cca; font-weight: 600; margin-bottom: 22px;
}
.hero-text h1 { font-size: 50px; line-height: 1.14; margin: 0 0 20px; letter-spacing: -.5px; }
.hero-text h1 .grad {
    background: linear-gradient(120deg, #3b6cff, #7c5cff 60%, #db2777);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 17px; line-height: 1.75; color: #475569; margin: 0 0 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; color: #64748b; font-size: 14px; }

/* Hero 视觉卡片 */
.hero-visual { display: flex; justify-content: center; }
.phone {
    width: 330px; padding: 18px; border-radius: 26px; background: #fff;
    box-shadow: 0 30px 70px rgba(30, 41, 82, .16), 0 2px 0 rgba(255,255,255,.6) inset;
    border: 1px solid #eef1f8;
    transform: rotate(-2deg);
}
.phone::before { content: ''; display: block; width: 82px; height: 5px; border-radius: 3px; background: #e6e9f2; margin: 0 auto 16px; }
.phone-card-title { font-size: 12px; color: #94a3b8; margin-bottom: 12px; }
.totp-card {
    border: 1px solid #eef1f8; border-radius: 15px; padding: 16px; margin-bottom: 12px;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
}
.totp-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.totp-avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex: none; }
.totp-name { font-weight: 600; font-size: 14.5px; }
.totp-account { font-weight: 400; color: #94a3b8; font-size: 12.5px; margin-top: 1px; }
.totp-code { font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: 4px; color: #0f172a; }
.totp-bar { height: 5px; border-radius: 3px; background: #eef1f8; margin-top: 12px; overflow: hidden; }
.totp-fill { height: 100%; border-radius: 3px; width: 100%; animation: countdown 30s linear infinite; }
.totp-meta { font-size: 12px; color: #94a3b8; margin-top: 8px; }
@keyframes countdown { from { width: 100%; } to { width: 0%; } }

/* 通用 section */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 54px; }
.section-head h2 { font-size: 34px; margin: 0 0 14px; letter-spacing: -.4px; }
.section-head p { font-size: 16.5px; color: #64748b; margin: 0; line-height: 1.7; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: #b9c2d6; }

/* 特性网格 */
.grid-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
    border: 1px solid #eef1f6; border-radius: 18px; padding: 30px 26px; background: #fff;
    transition: .25s;
}
.feature:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(30, 41, 82, .09); border-color: #e0e7ff; }
.f-ico {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px;
    background: #f1f4ff; margin-bottom: 18px;
}
.feature h3 { margin: 0 0 10px; font-size: 18px; }
.feature p { margin: 0; color: #64748b; line-height: 1.7; font-size: 14.5px; }

/* 流程 */
.section-dark { background: #0b1220; }
.section-dark .container .grid-security { margin-top: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 34px 28px; border-radius: 18px; background: #f8faff; border: 1px solid #eef1f8; }
.step-no {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; font-weight: 700;
    color: #fff; background: linear-gradient(135deg, #3b6cff, #7c5cff); margin-bottom: 18px;
}
.step h3 { margin: 0 0 10px; font-size: 18px; }
.step p { margin: 0; color: #64748b; line-height: 1.7; font-size: 14.5px; }

/* API */
.api-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.api-text h2 { font-size: 32px; margin: 0 0 16px; }
.api-text p { color: #64748b; line-height: 1.8; font-size: 16px; margin: 0 0 20px; }
.api-list { list-style: none; padding: 0; margin: 0; }
.api-list li { color: #334155; font-size: 15px; padding: 7px 0; }
.api-code pre {
    margin: 0; background: #0b1220; color: #d6deee; border-radius: 16px; padding: 24px;
    overflow: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.75;
    box-shadow: 0 24px 50px rgba(11, 18, 32, .22);
}
.api-code .c-get { color: #12b76a; font-weight: 700; }
.api-code .c-h { color: #7c5cff; }
.api-code .c-key { color: #7dd3fc; }
.api-code .c-str { color: #f0abfc; }
.api-code .c-num { color: #fbbf24; }
.api-code .c-dim { color: #64748b; }

/* 安全 */
.grid-security { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sec { padding: 28px 24px; border-radius: 16px; background: #131c31; border: 1px solid #1e293f; }
.s-ico { font-size: 26px; margin-bottom: 14px; }
.sec h3 { color: #fff; font-size: 17px; margin: 0 0 10px; }
.sec p { color: #9fb0cc; font-size: 14px; line-height: 1.7; margin: 0; }

/* CTA */
.cta { padding: 84px 0; background: linear-gradient(120deg, #3b6cff, #7c5cff 70%, #9333ea); }
.cta-inner { text-align: center; }
.cta h2 { color: #fff; font-size: 33px; margin: 0 0 14px; }
.cta p { color: rgba(255, 255, 255, .85); font-size: 16.5px; margin: 0 0 28px; }
.cta .hero-cta { justify-content: center; }
.cta .btn { background: #fff; color: #3b6cff; }
.cta .btn:hover { background: #f2f5ff; }

/* Footer */
.footer { background: #0b1220; padding: 40px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.footer-links { display: flex; gap: 22px; margin-left: auto; }
.footer-links a { color: #9fb0cc; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: #64748b; font-size: 13px; width: 100%; margin-top: 18px; padding-top: 20px; border-top: 1px solid #1e293f; }

/* 响应式 */
@media (max-width: 980px) {
    .nav-links {
        display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff;
        flex-direction: column; gap: 0; padding: 8px 22px 16px; border-bottom: 1px solid #eef1f6;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; border-bottom: 1px solid #f1f4f9; }
    .nav-toggle { display: block; margin-left: 8px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-text h1 { font-size: 38px; }
    .hero-visual { order: -1; }
    .grid-features, .steps, .grid-security { grid-template-columns: 1fr 1fr; }
    .api-inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .hero { padding: 120px 0 60px; }
    .hero-text h1 { font-size: 31px; }
    .grid-features, .steps, .grid-security { grid-template-columns: 1fr; }
    .section { padding: 62px 0; }
    .section-head h2, .api-text h2, .cta h2 { font-size: 26px; }
    .footer-links { margin-left: 0; width: 100%; flex-wrap: wrap; }
}
