/* =============================================================
   凌盾云 · 官网样式 · 星辉二次元版
   与 console.css 共享同一套设计令牌与盾盾动效
   （全部类名与旧版兼容）
   ============================================================= */

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --violet: #8B5CF6;
    --cyan: #22D3EE;
    --pink: #FF9AB5;
    --dark: #191B45;
    --text: #232B45;
    --text-2: #64748B;
    --border: #E9ECF5;
    --grad: linear-gradient(135deg, #6366F1, #8B5CF6);
    --shadow-glow: 0 8px 24px rgba(99, 102, 241, .38);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   盾盾吉祥物动效（与 console.css 同步）
   ============================================================ */
.ld-mascot { display: inline-block; vertical-align: middle; }
.ld-mascot .ld-mascot-ring {
    transform-origin: 50px 44px;
    animation: ld-ring-spin 14s linear infinite;
}
.ld-mascot .ld-mascot-eye {
    transform-origin: center 33px;
    animation: ld-blink 4.6s ease-in-out infinite;
}
.ld-mascot .ld-mascot-spark { transform-origin: center; animation: ld-twinkle 2.2s ease-in-out infinite; }
.ld-mascot .ld-mascot-spark.s2 { animation-delay: 1.1s; }

@keyframes ld-ring-spin { to { transform: rotate(360deg); } }
@keyframes ld-blink {
    0%, 91%, 100% { transform: scaleY(1); }
    94% { transform: scaleY(.12); }
}
@keyframes ld-twinkle {
    0%, 100% { opacity: .35; transform: scale(.75); }
    50% { opacity: 1; transform: scale(1.15); }
}
@keyframes ld-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}
.ld-float { animation: ld-float 3.4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .ld-mascot .ld-mascot-ring, .ld-mascot .ld-mascot-eye,
    .ld-mascot .ld-mascot-spark, .ld-float { animation: none !important; }
}

/* ============ 导航 ============ */
.site-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}
.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 13px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand-mark {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .14), rgba(34, 211, 238, .12));
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, .18) inset;
}
.brand-logo {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(31, 41, 55, .28);
}
.brand-name {
    background: linear-gradient(90deg, #232B45, #6366F1 70%, #8B5CF6);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-sub { font-size: 12px; color: var(--text-2); font-weight: 400; margin-left: 3px; -webkit-text-fill-color: initial; }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.nav-links a { color: var(--text-2); transition: color .15s; }
.nav-links a:hover { color: var(--primary); }
/* .nav-links a 特异性 (0,1,1) 会盖掉 .btn-primary 的白色文字，此处显式提升回来 */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }
.nav-links a.btn-outline { color: var(--text); }

/* ============ 按钮 ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 13px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s ease;
    font-family: inherit;
}
.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -80%;
    width: 55%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
    transition: left .5s ease;
}
.btn-primary:hover { background: linear-gradient(135deg, #4F46E5, #7C3AED); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(99, 102, 241, .48); }
.btn-primary:hover::after { left: 130%; }
.btn-outline { border-color: var(--border); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: #C7D2FE; background: #F6F7FF; transform: translateY(-2px); }
.btn-lg { padding: 13px 28px; font-size: 15.5px; border-radius: 15px; }

/* ============ Hero ============ */
.hero {
    background: linear-gradient(160deg, #191B45 0%, #3730A3 55%, #0E7490 100%);
    color: #fff;
    padding: 78px 0 92px;
    position: relative;
    overflow: hidden;
}
/* 星点层：在视频之上、文字之下，与视频光斑呼应 */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(circle at 12% 22%, rgba(255, 255, 255, .5) 1.2px, transparent 1.8px),
        radial-gradient(circle at 88% 16%, rgba(255, 255, 255, .4) 1px, transparent 1.6px),
        radial-gradient(circle at 76% 84%, rgba(255, 255, 255, .35) 1.1px, transparent 1.7px),
        radial-gradient(circle at 24% 78%, rgba(255, 255, 255, .4) 1px, transparent 1.6px),
        radial-gradient(circle at 50% 12%, rgba(255, 255, 255, .3) 1.2px, transparent 1.8px);
    animation: ld-stars 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ld-stars {
    0%, 100% { opacity: .55; }
    50% { opacity: 1; }
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.07) 0, transparent 45%),
                      radial-gradient(circle at 80% 70%, rgba(255,255,255,.05) 0, transparent 45%);
    pointer-events: none;
}

/* ---------- Hero 背景视频 ---------- */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
/* 文字区保护罩：中间略暗，避免视频亮部影响标题对比度 */
.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 55% 60% at 50% 42%, rgba(8,16,36,.34), transparent 72%);
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
    .hero {
        background-image: url("/static/video/hero-poster.jpg");
        background-size: cover;
        background-position: center;
    }
}
.hero-inner { position: relative; z-index: 1; text-align: center; }

/* 盾盾：hero 主角，浮动 + 光环 + 眨眼 */
.hero-mascot {
    margin-bottom: 4px;
    filter: drop-shadow(0 10px 26px rgba(99, 102, 241, .55));
}
.hero-logo-img {
    width: 96px; height: 96px;
    border-radius: 50%;
    display: block;
    box-shadow: 0 12px 32px rgba(99, 102, 241, .4);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(6px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -.5px;
}
.hero h1 .hl {
    background: linear-gradient(90deg, #A5B4FC, #67E8F9, #F0ABFC);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 17px;
    opacity: .88;
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.8;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(6px); }
.hero .btn-outline:hover { background: rgba(255,255,255,.18); }

/* ============ 流程条 ============ */
.flow-bar {
    background: rgba(255, 255, 255, .07);
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 56px;
    padding: 22px 0;
    backdrop-filter: blur(6px);
}
.flow-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255, 255, 255, .92);
}
.flow-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    transition: all .2s;
}
.flow-step:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.flow-arrow { opacity: .55; color: #A5B4FC; }

/* ============ 区块 ============ */
.section { padding: 76px 0; }
.section-alt {
    background:
        radial-gradient(circle at 8% 20%, rgba(99, 102, 241, .05), transparent 40%),
        radial-gradient(circle at 92% 80%, rgba(34, 211, 238, .05), transparent 40%),
        #F8F9FE;
}

.section-head { text-align: center; margin-bottom: 48px; }
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
    padding: 4px 14px;
    border-radius: 20px;
    background: #EEF2FF;
    color: var(--primary);
}
.section-title { font-size: 30px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.3px; }
.section-desc { color: var(--text-2); font-size: 16px; max-width: 620px; margin: 0 auto; }

/* ============ 能力卡片 ============ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.feature-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    transition: all .24s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(99, 102, 241, .14);
    border-color: #C7D2FE;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 50px; height: 50px;
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 23px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #EEF2FF, #E0F2FE);
    box-shadow: 0 4px 12px rgba(99, 102, 241, .1) inset;
}
.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-2); line-height: 1.75; }

/* ============ 授权模式 ============ */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}
.mode-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    transition: all .22s ease;
}
.mode-card:hover {
    transform: translateY(-4px);
    border-color: #C7D2FE;
    box-shadow: 0 14px 30px rgba(99, 102, 241, .12);
}
.mode-icon { font-size: 30px; margin-bottom: 10px; }
.mode-name { font-weight: 700; margin-bottom: 6px; font-size: 15.5px; }
.mode-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }

/* ============ 代码区 ============ */
.code-show {
    background: linear-gradient(160deg, #1E1B4B, #191B45);
    border-radius: 16px;
    padding: 24px;
    overflow-x: auto;
    color: #E0E7FF;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.8;
    border: 1px solid rgba(255, 255, 255, .08);
}
.code-show .c-key { color: #7DD3FC; }
.code-show .c-str { color: #A5F3A0; }
.code-show .c-com { color: #818CF8; }
.code-show .c-fun { color: #FBBF24; }

/* ============ 页脚 ============ */
.site-footer {
    background: linear-gradient(160deg, #191B45, #23215E);
    color: #A5B4FC;
    padding: 44px 0 28px;
    font-size: 14px;
}
.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand { color: #fff; font-weight: 700; font-size: 15px; }
.footer-note { font-size: 13px; margin-top: 4px; color: rgba(165, 180, 252, .65); }

/* ============ 登录 / 注册 ============ */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .10) 1.2px, transparent 1.8px),
        radial-gradient(circle at 82% 14%, rgba(255, 255, 255, .09) 1px, transparent 1.6px),
        radial-gradient(circle at 68% 82%, rgba(255, 255, 255, .08) 1.1px, transparent 1.7px),
        radial-gradient(circle at 28% 74%, rgba(255, 255, 255, .09) 1px, transparent 1.6px),
        radial-gradient(ellipse 70% 55% at 20% 0%, rgba(139, 92, 246, .35), transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(34, 211, 238, .22), transparent 60%),
        linear-gradient(160deg, #191B45 0%, #312E81 55%, #1E3A5F 100%);
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.auth-wrap::before {
    content: "";
    position: absolute;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 65%);
    top: -140px; right: -120px;
    animation: ld-aurora 9s ease-in-out infinite;
    pointer-events: none;
}
.auth-wrap::after {
    content: "";
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .16), transparent 65%);
    bottom: -120px; left: -100px;
    animation: ld-aurora 11s ease-in-out infinite reverse;
    pointer-events: none;
}
@keyframes ld-aurora {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.12) translate(14px, 10px); }
}

.auth-card {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 24px;
    padding: 40px 38px;
    width: 100%;
    max-width: 404px;
    box-shadow: 0 24px 60px rgba(9, 12, 44, .4), 0 0 0 1px rgba(255, 255, 255, .35) inset;
    position: relative;
    z-index: 1;
    animation: ld-page-in .45s ease both;
}
@keyframes ld-page-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-head { text-align: center; margin-bottom: 26px; }
.auth-logo {
    margin: 0 auto 6px;
    filter: drop-shadow(0 8px 20px rgba(99, 102, 241, .4));
}
.auth-logo img {
    display: block; margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(99, 102, 241, .35);
}
/* 旧版兜底：auth-logo 内若是文字 */
.auth-logo { font-weight: 700; color: #fff; font-size: 20px; }
.auth-title {
    font-size: 22px; font-weight: 800; margin-bottom: 5px;
    background: linear-gradient(90deg, #232B45, #6366F1);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-sub { font-size: 13.5px; color: var(--text-2); }

.auth-form .form-item { margin-bottom: 15px; }
.auth-form .form-label { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; display: block; }
.auth-form .form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    font-size: 14px;
    font-family: inherit;
    transition: all .18s;
    background: #FBFCFF;
}
.auth-form .form-control:hover { border-color: #C7D2FE; }
.auth-form .form-control:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .15);
}
.auth-form .btn { width: 100%; padding: 12px; font-size: 15px; margin-top: 8px; }

.auth-foot {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-2);
}
.auth-foot a { color: var(--primary); font-weight: 600; }

.auth-tip {
    background: linear-gradient(135deg, #F6F7FF, #F0FDFE);
    border: 1px solid #E0E7FF;
    border-radius: 13px;
    padding: 11px 14px;
    font-size: 13px;
    color: var(--text-2);
    margin-top: 18px;
    line-height: 1.65;
}
.auth-tip b { color: var(--text); }

.toast-wrap {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
    background: linear-gradient(135deg, #312E81, #1E1B4B);
    color: #fff;
    padding: 11px 20px; border-radius: 12px; font-size: 14px;
    box-shadow: 0 6px 18px rgba(9, 12, 44, .3);
    animation: slideDown .25s ease;
    display: flex; align-items: center; gap: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
}
.toast.success { background: linear-gradient(135deg, #059669, #10B981); }
.toast.error { background: linear-gradient(135deg, #E11D48, #F43F5E); }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 31px; }
    .hero-desc { font-size: 15.5px; }
    .section { padding: 52px 0; }

    /* 移动端导航：只保留品牌与两个主操作，其余链接收起，避免文字竖排折行 */
    .nav-links a:not(.btn) { display: none; }
    .nav-links { gap: 10px; font-size: 13.5px; }
    .nav-links a.btn { padding: 7px 14px !important; font-size: 13px; white-space: nowrap; }
    .brand-sub { display: none; }
    .brand { font-size: 15px; }
    .brand-mark { width: 34px; height: 34px; }
}

/* ==================== 手机端深度适配（<640px） ==================== */
@media (max-width: 640px) {
    /* 首页 hero */
    .hero { padding: 64px 0 44px; min-height: auto; }
    .hero h1 { font-size: 26px; line-height: 1.3; }
    .hero-desc { font-size: 14.5px; }
    .hero-btns { flex-direction: column; gap: 10px; width: 100%; }
    .hero-btns .btn { width: 100%; min-height: 46px; font-size: 15px; }
    .hero-mascot { display: none; }   /* 小屏收起吉祥物插画，聚焦内容 */

    /* 分区与网格 */
    .section { padding: 40px 0; }
    .section-title { font-size: 21px; }
    .section-sub { font-size: 13.5px; }
    .features-grid,
    .steps-grid,
    .faq-grid { grid-template-columns: 1fr !important; gap: 12px; }

    /* 全站触控目标 */
    .btn { min-height: 44px; font-size: 14.5px; }
    .btn-sm { min-height: 36px; padding: 7px 12px; }

    /* 登录 / 注册卡片 */
    .auth-wrap { padding: 20px 14px 40px; }
    .auth-card { padding: 24px 18px; border-radius: 20px; }
    .auth-title { font-size: 20px; }
    .auth-sub { font-size: 13px; }
    .form-item { margin-bottom: 15px; }
    .form-label { font-size: 13px; }
    .form-control { font-size: 16px !important; min-height: 46px; }  /* 16px 防 iOS 聚焦缩放 */
    .auth-form .btn-primary { width: 100%; min-height: 48px; font-size: 15.5px; }
    .auth-tip { font-size: 12.5px; }
    .auth-foot { font-size: 13px; }

    /* 验证码图片行不挤压 */
    .auth-form img { height: 46px !important; }
    .auth-form .btn-outline { min-height: 46px; padding: 8px 12px !important; font-size: 13px; }

    /* 通用容器 */
    .container { padding: 0 16px; }
}

/* 超窄屏 */
@media (max-width: 360px) {
    .hero h1 { font-size: 23px; }
    .auth-card { padding: 20px 14px; }
}
