/* ==========================================================================
   ZZSSL 前台样式
   风格参考：现代企业级 SSL 服务商（清爽白底 + 品牌蓝 + 圆角卡片）
   ========================================================================== */

:root {
    --brand: #2563eb;
    --brand-2: #3b82f6;
    --brand-3: #60a5fa;
    --brand-dark: #1d4ed8;
    --brand-deep: #1e40af;
    --brand-light: #eff6ff;
    --brand-glow: rgba(37, 99, 235, .14);
    --green: #10b981;
    --green-dark: #047857;
    --amber: #f59e0b;
    --red: #ef4444;
    --ink: #0b1220;
    --ink-2: #3f4a5f;
    --ink-3: #6b7488;
    --ink-4: #98a1b3;
    --line: #e6eaf2;
    --line-soft: #eef1f7;
    --bg: #f5f7fb;
    --bg-soft: #f8fafd;
    --white: #fff;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 9px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .04);
    --shadow: 0 4px 12px rgba(15, 23, 42, .06), 0 12px 32px -8px rgba(15, 23, 42, .1);
    --shadow-lg: 0 8px 24px -6px rgba(15, 23, 42, .12), 0 24px 60px -12px rgba(15, 23, 42, .16);
    --max: 1180px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --ring: 0 0 0 3px rgba(37, 99, 235, .12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; transition: color .16s; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.32; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
::selection { background: rgba(37, 99, 235, .18); color: var(--ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.site-notice {
    background: var(--brand-light);
    border-bottom: 1px solid var(--line);
    color: var(--brand-dark);
}
.site-notice .container {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13.5px;
    line-height: 1.5;
}
.site-notice .notice-icon {
    flex: none;
    color: var(--brand);
    margin-top: 1px;
}
.site-notice .notice-text { flex: 1; }
.site-notice a { color: var(--brand-dark); text-decoration: underline; }
.site-notice a:hover { color: var(--brand-deep); }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; height: 66px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo-mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, var(--brand), var(--brand-3) 60%, var(--cyan));
    display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .32), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.logo small { font-weight: 500; font-size: 12px; color: var(--ink-3); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: 1; }
.nav a {
    padding: 8px 13px; border-radius: 8px; color: var(--ink-2);
    font-size: 14.5px; font-weight: 500;
}
.nav a:hover { background: var(--brand-light); color: var(--brand); }
.nav a.active { color: var(--brand); background: var(--brand-light); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 42px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
    font-size: 14.5px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all .18s cubic-bezier(.4, 0, .2, 1); white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 1px 2px rgba(29, 78, 216, .4), 0 8px 20px -6px rgba(37, 99, 235, .5); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(29, 78, 216, .4), 0 12px 28px -6px rgba(37, 99, 235, .55); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand-3); color: var(--brand); background: var(--brand-light); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }
.btn-green { background: linear-gradient(135deg, #059669, #10b981); color: #fff; box-shadow: 0 1px 2px rgba(4, 120, 87, .4), 0 8px 20px -6px rgba(16, 185, 129, .5); }
.btn-green:hover { color: #fff; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 380px at 12% -10%, rgba(20, 102, 255, .13), transparent 65%),
        radial-gradient(700px 320px at 88% 0%, rgba(16, 185, 129, .12), transparent 60%),
        linear-gradient(180deg, #f8fbff, #fff);
    padding: 68px 0 56px;
    border-bottom: 1px solid var(--line);
}
.hero-center { text-align: center; max-width: 820px; margin: 0 auto; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff; border: 1px solid var(--line); border-radius: 100px;
    padding: 5px 14px; font-size: 13px; color: var(--ink-2); font-weight: 500;
    box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.hero h1 { font-size: 44px; line-height: 1.22; letter-spacing: -.025em; margin-bottom: 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--brand), #22c1a4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 16.5px; color: var(--ink-2); max-width: 660px; margin: 0 auto 30px; }

/* ---------- 检测输入框 ---------- */
.checker { max-width: 720px; margin: 0 auto; }
.checker-box {
    display: flex; align-items: center; gap: 8px; background: #fff;
    border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 8px 18px;
    box-shadow: var(--shadow-lg); transition: border-color .2s, box-shadow .2s;
}
.checker-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(20, 102, 255, .1), var(--shadow-lg); }
.checker-box .icon { color: var(--ink-3); flex: none; }
.checker-box input {
    flex: 1; border: 0; outline: 0; font-size: 16px; height: 46px;
    font-family: inherit; color: var(--ink); background: transparent; min-width: 0;
}
.checker-box input::placeholder { color: #a2aec2; }
.checker-tips { margin-top: 14px; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.checker-tips span { display: inline-flex; align-items: center; gap: 5px; }
.checker-tips b { color: var(--ink-2); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: 30px; letter-spacing: -.02em; }
.section-head p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.section-foot { text-align: center; margin-top: 36px; }

/* ---------- 首页（精简版） ---------- */
.banner-ad { padding: 28px 0 0; }
.banner-ad .container { text-align: center; }
.banner-ad img, .banner-ad iframe { max-width: 100%; border-radius: 12px; }
.home-cards { padding: 52px 0 84px; }
.home-cards .grid-4 { gap: 22px; }
.home-cards .card { padding: 28px 26px 24px; }
.home-cards .card h3 { font-size: 16.5px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; transition: all .24s cubic-bezier(.4, 0, .2, 1); position: relative;
}
.card:hover { border-color: #c7d7f5; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--brand-light); color: var(--brand); font-size: 21px; margin-bottom: 16px;
}
.card.green .card-icon { background: #e7f9f1; color: var(--green-dark); }
.card.amber .card-icon { background: #fff7e6; color: #b45309; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.card-link { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.card-link:hover { gap: 8px; }

/* ---------- 功能大卡 ---------- */
.feature-card {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px; color: inherit;
    transition: all .2s; height: 100%;
}
.feature-card:hover { color: inherit; border-color: #c7d7f5; box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-card .num { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .08em; text-transform: uppercase; }
.feature-card h3 { font-size: 18px; margin: 8px 0 10px; }
.feature-card p { color: var(--ink-2); font-size: 14px; margin-bottom: 16px; }
.feature-card ul { margin: 0; padding-left: 18px; color: var(--ink-3); font-size: 13.5px; }
.feature-card ul li { margin-bottom: 4px; }

/* ---------- CA 卡片 ---------- */
.ca-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ca-card {
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px;
    text-align: center; transition: all .2s;
}
.ca-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.ca-badge {
    display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px;
    border-radius: 6px; background: var(--brand-light); color: var(--brand); margin-bottom: 10px;
}
.ca-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.ca-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; min-height: 40px; }
.ca-meta { margin-top: 10px; font-size: 12px; color: var(--green-dark); font-weight: 600; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 24px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: -14px; left: 20px;
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
    box-shadow: 0 4px 10px rgba(20, 102, 255, .3);
}
.step h4 { font-size: 15px; margin: 6px 0 6px; }
.step p { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
    cursor: pointer; padding: 17px 22px; font-weight: 600; font-size: 15px;
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--ink-3); font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- 结果面板 ---------- */
.result-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.result-head { display: flex; align-items: center; gap: 18px; padding: 24px 26px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfdff, #fff); }
.grade-badge {
    width: 74px; height: 74px; border-radius: 18px; display: grid; place-items: center;
    font-size: 26px; font-weight: 800; letter-spacing: -.03em; flex: none;
}
.grade-A\+, .grade-A { background: #e7f9f1; color: var(--green-dark); }
.grade-B { background: #eaf3ff; color: #1d4ed8; }
.grade-C { background: #fff7e6; color: #b45309; }
.grade-D, .grade-F { background: #fee2e2; color: #b91c1c; }
.result-title { flex: 1; min-width: 0; }
.result-title h2 { font-size: 20px; margin-bottom: 4px; word-break: break-all; }
.result-title .meta { font-size: 13px; color: var(--ink-3); }
.result-body { padding: 8px 26px 26px; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.kv-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv-row dt { color: var(--ink-3); flex: none; width: 96px; margin: 0; }
.kv-row dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-all; flex: 1; }
.kv-full { grid-column: 1 / -1; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.pill-ok { background: #e7f9f1; color: var(--green-dark); }
.pill-no { background: #f1f5f9; color: var(--ink-3); }
.pill-warn { background: #fff7e6; color: #b45309; }
.pill-err { background: #fee2e2; color: #b91c1c; }

.issue-list { list-style: none; margin: 20px 0 0; padding: 0; }
.issue-list li { display: flex; gap: 10px; padding: 11px 14px; border-radius: 10px; background: var(--bg); margin-bottom: 8px; font-size: 14px; }
.issue-list li.error { background: #fef2f2; color: #991b1b; }
.issue-list li.warn { background: #fffbeb; color: #92400e; }
.issue-list li.info { background: #eff6ff; color: #1e40af; }
.issue-list .tag { font-weight: 700; flex: none; }

.chain-list { margin: 0; padding: 0; list-style: none; counter-reset: chain; }
.chain-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.chain-item:last-child { border-bottom: 0; }
.chain-idx { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-light); color: var(--brand); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.chain-info { font-size: 13.5px; min-width: 0; }
.chain-info .cn { font-weight: 600; word-break: break-all; }
.chain-info .sub { color: var(--ink-3); font-size: 12.5px; word-break: break-all; }
.chain-role {
    display: inline-block; padding: 1px 7px; border-radius: 5px;
    font-size: 11px; font-weight: 600; margin-left: 4px; vertical-align: 1px;
    background: #eef2ff; color: #4338ca;
}

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field label .req { color: var(--red); }
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.input, .textarea, .select {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px;
    font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fff;
    transition: border-color .15s, box-shadow .15s; height: 44px;
}
.textarea { height: auto; padding: 12px 14px; min-height: 140px; resize: vertical; line-height: 1.6; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.input:focus, .textarea:focus, .select:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* 单选卡片组 */
.choice-group { display: grid; gap: 10px; }
.choice-group.cols-2 { grid-template-columns: repeat(2, 1fr); }
.choice-group.cols-4 { grid-template-columns: repeat(4, 1fr); }
.choice-group.cols-5 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* CA 选择：严格 3 列等宽，末行 2 张自然靠左（与第一行等宽，视觉整齐） */
.choice-group.cols-ca { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice {
    position: relative; display: block; cursor: pointer;
    border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px;
    transition: all .18s cubic-bezier(.4, 0, .2, 1); background: #fff;
}
.choice:hover { border-color: #c7d7f5; box-shadow: var(--shadow-sm); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; row-gap: 4px; }
.choice .desc { font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.6; }
.choice input:checked + .name { color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); background: linear-gradient(180deg, #f5f9ff, #fff); box-shadow: var(--ring); }
.choice.disabled { opacity: .55; cursor: not-allowed; background: #fafafa; }
.choice .tag { font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: var(--brand-light); color: var(--brand); font-weight: 600; white-space: nowrap; }
.choice .tag-ip { background: #ecfdf5; color: #047857; margin-left: 2px; }

/* ---------- 提示条 ---------- */
/* 用 block 而非 flex：告警文案里常混排 <a>/<b>，flex 会把锚点拆成独立列导致断行错乱 */
.alert { display: block; padding: 14px 18px; border-radius: 12px; font-size: 14px; margin-bottom: 20px; line-height: 1.7; }
.alert > svg { vertical-align: -3px; margin-right: 8px; }
.alert-info { background: #eff6ff; color: #1e40af; }
.alert-warn { background: #fffbeb; color: #92400e; }
.alert-error, .alert-err { background: #fef2f2; color: #991b1b; }
.alert-success { background: #ecfdf5; color: #065f46; }
.alert b { font-weight: 700; }

/* ---------- 记录表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.data th { text-align: left; padding: 13px 16px; background: #f8fafc; color: var(--ink-3); font-weight: 600; font-size: 13px; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.data td { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; color: var(--ink-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fbfdff; }
table.data .strong { color: var(--ink); font-weight: 600; }

/* ---------- 域名解析记录 ---------- */
.record-list { display: grid; gap: 12px; }
.record-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.record-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.record-head .type { background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.record-body { padding: 14px 16px; }
.copy-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.copy-row:last-child { margin-bottom: 0; }
.copy-row .label { font-size: 12.5px; color: var(--ink-3); width: 68px; flex: none; }
.copy-row .value {
    flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px;
    background: var(--bg); border: 1px solid var(--line); border-radius: 7px;
    padding: 7px 10px; word-break: break-all; color: var(--ink);
}
.copy-btn { flex: none; height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 7px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2); font-family: inherit; }
.copy-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 进度步骤 ---------- */
.timeline { display: flex; gap: 0; margin: 0 0 26px; padding: 0; list-style: none; }
.timeline li { flex: 1; position: relative; text-align: center; font-size: 13px; color: var(--ink-3); padding-top: 34px; }
.timeline li::before {
    content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: var(--line);
}
.timeline li::after {
    content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
    width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
}
.timeline li.done { color: var(--green-dark); font-weight: 600; }
.timeline li.done::before, .timeline li.active::before { background: var(--green); }
.timeline li.done::after { background: var(--green); border-color: var(--green); }
.timeline li.active { color: var(--brand); font-weight: 600; }
.timeline li.active::after { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20, 102, 255, .15); }

/* ---------- 内链区 ---------- */
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.link-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: block; color: inherit; }
.link-card:hover { border-color: var(--brand); color: inherit; box-shadow: var(--shadow-sm); }
.link-card .t { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.link-card .d { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Footer ---------- */
.site-footer {
    position: relative; background: #080f1e; color: #94a3b8; padding: 60px 0 28px; margin-top: 0; font-size: 13.5px;
}
.site-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .5) 30%, rgba(34, 211, 238, .5) 70%, transparent);
}
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 26px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.footer-desc { color: #94a3b8; line-height: 1.75; max-width: 320px; font-size: 13.5px; }
.footer-col h4 { color: #e2e8f0; font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; color: #94a3b8; padding: 5px 0; font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 22px; font-size: 13px; color: #64748b; }
/* 友情链接：紧随链接栏，分割线在其下方 */
.footer-links {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
    padding: 14px 0 18px; font-size: 13px;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}
.footer-links .label { color: #94a3b8; position: relative; padding-left: 10px; }
.footer-links .label::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 12px; margin-top: -6px; border-radius: 2px; background: var(--brand); opacity: .7; }
.footer-links a { color: #cbd5e1; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #cbd5e1; }

/* ---------- 控制台 ---------- */
.console-shell { display: flex; min-height: 100vh; background: var(--bg); }
.console-side { width: 232px; flex: none; background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; }
.console-side .logo { margin-bottom: 26px; padding: 0 8px; }
.console-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--ink-2); font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.console-nav a:hover { background: var(--bg); color: var(--ink); }
.console-nav a.active { background: var(--brand-light); color: var(--brand); font-weight: 600; }
.console-main { flex: 1; min-width: 0; padding: 26px 32px 48px; }
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.console-top h1 { font-size: 22px; margin: 0; }
.console-top .user { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.stat .n { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.stat .l { font-size: 13px; color: var(--ink-3); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h2 { font-size: 16.5px; margin: 0; }
.empty { text-align: center; padding: 46px 20px; color: var(--ink-3); font-size: 14px; }
.auth-box { max-width: 400px; margin: 0 auto; }

/* ---------- 独立登录页（console.zzssl.com） ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
    background: radial-gradient(120% 90% at 50% 0%, #eef4ff 0%, #f7f9fd 46%, #f6f8fc 100%);
}
.auth-card {
    width: 100%;
    max-width: 404px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 34px 30px 28px;
}
.auth-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 22px; }
.auth-logo .logo-mark {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(150deg, var(--brand), var(--brand-dark));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800;
}
.auth-card h1 { font-size: 21px; margin: 0 0 6px; letter-spacing: -.01em; }
.auth-sub { margin: 0 0 22px; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.auth-card .input { width: 100%; height: 42px; }
.auth-card .btn-block { margin-top: 18px; height: 44px; font-size: 15px; }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--ink-2); margin: 16px 0 0; }
.auth-switch a { color: var(--brand); font-weight: 600; }
.auth-note { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.auth-forgot { float: right; font-size: 12.5px; color: var(--brand); text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }

/* ---------- 登录后的极简面板 ---------- */
.mini-page { min-height: 100vh; background: var(--bg); padding-bottom: 40px; }
.mini-top {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    max-width: 760px; margin: 0 auto; padding: 20px 18px 4px;
}
.mini-top .auth-logo { margin-bottom: 0; }
.mini-user { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.mini-main { max-width: 760px; margin: 0 auto; padding: 16px 18px 0; }
.mini-card {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 26px 28px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
}
.mini-card:hover { box-shadow: var(--shadow); }
.mini-card h2 { font-size: 18px; margin: 0 0 8px; letter-spacing: -.01em; }
.mini-desc { margin: 0 0 14px; font-size: 14px; color: var(--ink-3); line-height: 1.7; }
.claim-form { display: flex; gap: 10px; flex-wrap: wrap; }
.claim-form .input { flex: 1 1 260px; height: 42px; }
.claim-form .btn { flex: none; height: 42px; }
.mini-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-empty { padding: 26px 0; text-align: center; color: var(--ink-3); font-size: 14px; }
.mini-foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; font-size: 13px; color: var(--ink-3); margin-top: 22px; }
.mini-foot a { color: var(--ink-3); }
.mini-foot a:hover { color: var(--brand); }
.claim-card { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.claim-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.claim-domain { font-size: 15.5px; font-weight: 700; word-break: break-all; }
.claim-block { margin-top: 18px; }
.claim-block h3 { font-size: 14px; margin: 0 0 10px; color: var(--ink-2); }
.claim-card .kv { margin: 0; }
.claim-card code { font-size: 12.5px; background: var(--bg); padding: 2px 6px; border-radius: 5px; word-break: break-all; }

/* ---------- 我的证书 / 上传 / 自定义 ACME ---------- */
.mini-card table.data { min-width: 0; }
.mini-card table.data th, .mini-card table.data td { padding: 12px 14px; font-size: 14px; }

/* 批量操作栏 */
.cert-toolbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin: -2px 0 12px; padding: 9px 12px; border-radius: 10px;
    background: #f8fafc; border: 1px solid var(--line);
}
.cert-checkall { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.cert-checkall input, .cert-check { width: 15px; height: 15px; cursor: pointer; accent-color: var(--brand); margin: 0; }
.cert-selinfo { font-size: 12.5px; color: var(--ink-3); }
.cert-tool-btns { margin-left: auto; display: inline-flex; gap: 8px; }
.cert-tool-btns .btn:disabled { opacity: .45; cursor: not-allowed; }
table.data .col-check { width: 38px; text-align: center; padding-right: 0; }
table.data .col-check input { display: block; margin: 0 auto; }
.cert-check-dis { color: #cbd5e1; font-size: 12px; }
table.data tr.row-muted td { color: var(--ink-3); }
@media (max-width: 640px) {
    .cert-tool-btns { margin-left: 0; width: 100%; }
    .cert-tool-btns .btn { flex: 1; }
}
.row-actions { white-space: nowrap; }
.row-actions .btn-link + .btn-link { margin-left: 10px; }
.btn-link {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--brand); font-size: 13px; font-weight: 600; line-height: 1.6;
}
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: #dc2626; }
.src-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.src-acme { background: var(--brand-light); color: var(--brand); }
.src-upload { background: #f1f5f9; color: var(--ink-2); }
.sub-note { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }

/* ---------- SSL 安全章（DV / OV / EV） ---------- */
.seal-box {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px;
    background: #f8fafc; border: 1px solid var(--line);
}
.seal-img { width: 132px; height: auto; display: block; }
.seal-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seal-chip {
    display: inline-block; min-width: 34px; text-align: center;
    padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700;
    letter-spacing: .5px; line-height: 1.6;
}
.seal-dv { background: #eaf7ef; color: #00913a; }
.seal-ov { background: #eef4ff; color: #1d4ed8; }
.seal-ev { background: #fff3f4; color: #c30d23; }
.seal-thumb { width: 26px; height: auto; vertical-align: middle; margin-left: 6px; display: inline-block; }
.seal-mini {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    flex: none; padding: 4px 0 0;
}

/* ---------- 安全章申请页：域名检测 + 样式预览 ---------- */
.domain-detect { display: flex; gap: 8px; }
.domain-detect .input { flex: 1; }
.domain-detect .btn { flex: none; }

.detect-result {
    margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; background: #fff; box-shadow: var(--shadow-sm);
}
.detect-head {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 16px 18px; background: linear-gradient(180deg, #fbfdff, #f6f9ff);
    border-bottom: 1px solid var(--line-soft);
}
.detect-seal { width: 150px; height: auto; flex: none; }
.detect-head-info { flex: 1; min-width: 200px; }
.detect-level { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detect-level b { font-size: 16px; color: var(--ink); }
.detect-level-desc { font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.6; }
.detect-kv {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 0; margin: 0; padding: 0;
}
.detect-kv > div { display: flex; gap: 10px; padding: 11px 18px; border-bottom: 1px dashed var(--line); }
.detect-kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.detect-kv dt { color: var(--ink-3); font-size: 12.5px; flex: none; width: 76px; margin: 0; }
.detect-kv dd { margin: 0; color: var(--ink); font-size: 13.5px; font-weight: 500; word-break: break-all; flex: 1; }
.detect-error {
    padding: 14px 16px; border-radius: 12px; background: #fef2f2;
    color: #b91c1c; font-size: 13.5px; margin-bottom: 18px; border: 1px solid #fee2e2;
}

/* 样式选择卡片（含 zuntrust 章预览图） */
.style-choice { text-align: center; padding: 12px 12px 14px; }
.style-preview {
    display: flex; align-items: center; justify-content: center;
    height: 64px; margin-bottom: 10px; background: var(--bg);
    border-radius: 10px; overflow: hidden;
}
.style-preview img { width: 130px; height: auto; display: block; }
.style-choice .name { justify-content: center; }
.style-choice:has(input:checked) .style-preview { background: #eef4ff; }

/* ---------- 安全章详情页（参考 TrustAsia） ---------- */
.seal-detail-hero {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; padding: 6px 2px 18px;
}
.seal-detail-domain h1 { font-size: 26px; margin-bottom: 4px; word-break: break-all; }
.seal-detail-domain p { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.seal-status-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
}
.seal-status-ok { background: #e7f9f1; color: #047857; }
.seal-status-err { background: #fee2e2; color: #b91c1c; }

.seal-detail-banner {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    padding: 24px; border-radius: 16px; margin-bottom: 20px;
    background: linear-gradient(135deg, #f6f9ff, #eef4ff);
    border: 1px solid #dbe7fb;
}
.seal-detail-seal { flex: none; }
.seal-detail-level-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seal-detail-level-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.seal-detail-level-desc { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.7; }

.seal-info-card {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-sm); overflow: hidden;
}
.seal-info-card-head {
    padding: 16px 20px; font-size: 16px; font-weight: 700; color: var(--ink);
    border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfdff, #fff);
}
.seal-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.seal-info-item { padding: 15px 20px; border-bottom: 1px solid var(--line-soft); }
.seal-info-item:nth-last-child(-n+2) { border-bottom: 0; }
.seal-info-item:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.seal-info-label { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.seal-info-value { font-size: 14.5px; color: var(--ink); font-weight: 500; word-break: break-all; }
.seal-grade {
    display: inline-grid; place-items: center; min-width: 34px; height: 30px;
    padding: 0 8px; border-radius: 8px; background: #e7f9f1; color: #047857;
    font-weight: 800; font-size: 15px;
}

@media (max-width: 640px) {
    .detect-kv, .seal-info-grid { grid-template-columns: 1fr; }
    .detect-kv > div, .seal-info-item { border-bottom: 1px dashed var(--line); }
    .detect-kv > div:last-child, .seal-info-item:last-child { border-bottom: 0; }
    .seal-info-item:nth-child(odd) { border-right: 0; }
    .detect-seal { width: 120px; }
    .seal-detail-seal { width: 160px !important; }
}


/* 卡片头（标题 + 角标） */
.mini-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mini-head h2 { margin: 0; }
.mini-badge {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11.5px; color: var(--brand); background: var(--brand-light);
    border-radius: 999px; padding: 2px 10px;
}

/* Let's Encrypt 官方接入 */
.le-panel { margin-bottom: 14px; }
.le-empty { padding: 16px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.le-empty p { margin: 0 0 12px; color: var(--ink-2); font-size: 13px; }

/* 凭证展示 */
.cred-box { margin: 4px 0 14px; border-radius: 12px; border: 1px solid #d8e6fb; background: linear-gradient(180deg, #f7fbff, #fff); overflow: hidden; }
.cred-box[hidden] { display: none; }
.cred-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: #eff6ff; border-bottom: 1px solid #dbeafe; }
.cred-head b { font-size: 14px; margin-right: 8px; }
.cred-head .pill { margin-right: 8px; }
.cred-sub { font-size: 11.5px; color: var(--ink-3); }
.cred-rows { padding: 6px 14px 0; }
.cred-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #e2e8f0; }
.cred-row:last-child { border-bottom: 0; }
.cred-row .k { flex: none; width: 82px; font-size: 13px; color: var(--ink-3); }
.cred-row code { flex: 1; min-width: 0; font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; word-break: break-all; }
.cred-row code.muted { color: var(--ink-3); background: #f8fafc; }
.copy-btn {
    flex: none; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
    font-size: 11.5px; padding: 4px 10px; border-radius: 6px; cursor: pointer;
}
.copy-btn:hover { border-color: var(--brand); color: var(--brand); }
.cred-acts { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 14px 14px; }
.mock-tip { margin-top: 4px; font-size: 12px; color: var(--ink-3); line-height: 1.7; padding: 10px 12px; background: #f8fafc; border-radius: 10px; }
.mock-tip b { color: var(--ink-2); }

@media (max-width: 640px) {
    .cred-row { flex-wrap: wrap; }
    .cred-row .k { width: 100%; }
}
.mini-details { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
.mini-details summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--brand); list-style: none; }
.mini-details summary::-webkit-details-marker { display: none; }
.mini-details[open] summary { margin-bottom: 14px; }
.mini-details form { margin: 0; }
.file-input {
    display: block; width: 100%; margin-bottom: 8px; font-size: 12.5px; color: var(--ink-3);
}
.file-input::file-selector-button {
    margin-right: 10px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px;
    background: #fff; color: var(--ink-2); font-size: 12.5px; cursor: pointer;
}
.acme-list { display: grid; gap: 10px; }
.acme-item {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
    border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fcfdff;
}
.acme-main { min-width: 0; }
.acme-name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acme-meta { font-size: 12px; color: var(--ink-3); margin-top: 3px; word-break: break-all; }
.acme-acts { flex: none; display: flex; gap: 12px; }

@media (max-width: 640px) {
    .auth-card { padding: 26px 20px 22px; border-radius: 14px; }
    .mini-card { padding: 18px 16px; }
}

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: grid; gap: 8px; }
.toast {
    background: #0f172a; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px;
    box-shadow: var(--shadow-lg); animation: toastIn .2s ease; max-width: 90vw;
}
.toast.err { background: #991b1b; }
.toast.ok { background: #065f46; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 检测加载遮罩 ---------- */
.zz-loading-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
}
.zz-loading-box {
    background: #fff; border-radius: 16px; padding: 28px 34px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    box-shadow: var(--shadow-lg); min-width: 260px;
}
.zz-loading-spinner {
    width: 40px; height: 40px; border-radius: 50%;
    border: 4px solid #e2e8f0; border-top-color: var(--brand);
    animation: zzSpin .8s linear infinite;
}
.zz-loading-text { font-size: 15px; font-weight: 600; color: var(--ink-1); text-align: center; }
@keyframes zzSpin { to { transform: rotate(360deg); } }


/* ---------- 面包屑 ---------- */
.crumbs { padding: 16px 0; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 6px; color: #cbd5e1; }

/* ---------- 页面标题区 ---------- */
.page-head { background: linear-gradient(180deg, #f8fbff, #fff); border-bottom: 1px solid var(--line); padding: 34px 0 38px; }
.page-head h1 { font-size: 30px; margin-bottom: 8px; letter-spacing: -.02em; }
.page-head p { color: var(--ink-2); margin: 0; max-width: 760px; }

/* ---------- 工具页 ---------- */
.tool-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.tool-aside .card { margin-bottom: 16px; }
.tool-aside h3 { font-size: 15px; }
.tool-aside ul { padding-left: 18px; margin: 0; color: var(--ink-2); font-size: 13.5px; }
.tool-aside li { margin-bottom: 6px; }
.output { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; max-height: 340px; overflow: auto; }

/* ---------- 安全章预览 ---------- */
.seal-preview { display: flex; align-items: center; justify-content: center; padding: 30px; background: var(--bg); border-radius: 12px; border: 1px dashed var(--line); margin-bottom: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .grid-4, .ca-grid, .link-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
    .tool-layout { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .choice-group.cols-5, .choice-group.cols-ca { display: grid; grid-template-columns: repeat(2, 1fr); }
    .choice-group.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .kv { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero { padding: 44px 0 38px; }
    .hero h1 { font-size: 30px; }
    .hero-sub { font-size: 15px; }
    .section { padding: 48px 0; }
    .section-head h2 { font-size: 23px; }
    .grid-2, .grid-3, .grid-4, .ca-grid, .link-grid, .steps, .form-row, .form-row-3, .choice-group.cols-2, .choice-group.cols-4, .choice-group.cols-5, .choice-group.cols-ca, .stat-grid { grid-template-columns: 1fr; }
    .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .nav.open { display: flex; }
    .menu-toggle { display: block; }
    .header-actions { margin-left: auto; }
    .header-actions .btn-ghost { display: none; }
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .result-head { flex-wrap: wrap; }
    .grade-badge { width: 60px; height: 60px; font-size: 21px; }
    .console-side { position: fixed; left: -240px; top: 0; bottom: 0; z-index: 100; transition: left .2s; }
    .console-side.open { left: 0; }
    .console-main { padding: 18px 16px 40px; }
    .page-head h1 { font-size: 23px; }
    .timeline li { font-size: 11.5px; }
}

/* ==========================================================================
   科技感增强层（网格 / 光晕 / 描边 / 暗色科技带）+ 用户控制台侧边栏
   ========================================================================== */

:root {
    --cyan: #22d3ee;
    --cyan-soft: rgba(34, 211, 238, .16);
    --violet: #818cf8;
    --tech-1: #080f1e;
    --tech-2: #0d1730;
    --tech-3: #111d38;
    --grid: rgba(37, 99, 235, .05);
    --grid-dark: rgba(148, 163, 184, .07);
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
    --grad-tech: linear-gradient(120deg, #3b82f6, #22d3ee);
}

/* ---------- 顶部导航：玻璃 + 渐变发丝光 ---------- */
.site-header {
    background: rgba(255, 255, 255, .76);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.site-header::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 102, 255, .5) 30%, rgba(34, 211, 238, .5) 70%, transparent);
}
.logo-mark { position: relative; overflow: hidden; }
.logo-mark::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .65) 50%, transparent 68%);
    transform: translateX(-140%);
    animation: logoSheen 6s ease-in-out infinite;
}
@keyframes logoSheen { 0%, 62% { transform: translateX(-140%); } 100% { transform: translateX(140%); } }
.nav a { position: relative; }

/* ---------- Hero：网格背景 + 浮动光晕 + 扫描线 ---------- */
.hero {
    padding: 84px 0 70px;
    background:
        radial-gradient(1100px 480px at 10% -20%, rgba(37, 99, 235, .16), transparent 62%),
        radial-gradient(820px 400px at 94% -10%, rgba(34, 211, 238, .18), transparent 60%),
        radial-gradient(700px 360px at 50% 120%, rgba(129, 140, 248, .08), transparent 62%),
        linear-gradient(180deg, #f6faff, #fff);
    isolation: isolate;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 26%, #000 18%, transparent 76%);
    mask-image: radial-gradient(ellipse 72% 62% at 50% 26%, #000 18%, transparent 76%);
}
.hero::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: 460px; height: 460px; right: -120px; top: -140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .28), transparent 68%);
    filter: blur(18px);
    animation: orbFloat 14s ease-in-out infinite;
}
@keyframes orbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-36px, 32px, 0) scale(1.08); }
}
.hero-scan {
    position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 0; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(20, 102, 255, .55), rgba(34, 211, 238, .55), transparent);
    box-shadow: 0 0 18px rgba(34, 211, 238, .45);
    opacity: .55;
    animation: scanMove 7s linear infinite;
}
@keyframes scanMove {
    0% { transform: translateY(0); opacity: 0; }
    12% { opacity: .6; }
    88% { opacity: .6; }
    100% { transform: translateY(360px); opacity: 0; }
}
.hero-center { position: relative; z-index: 1; }
.eyebrow {
    font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em;
    border-color: rgba(20, 102, 255, .18);
    background: linear-gradient(180deg, #fff, #f8fbff);
}
.eyebrow .dot { animation: dotPulse 2.4s ease-out infinite; }
@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .45); }
    70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.hero h1 { font-size: 48px; }
.hero h1 em {
    font-style: normal; background: linear-gradient(120deg, var(--brand), #06b6d4 55%, var(--cyan));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.checker-box { position: relative; }
.checker-box::after {
    content: ""; position: absolute; inset: -1px; border-radius: 17px; z-index: -1;
    background: linear-gradient(120deg, rgba(20, 102, 255, .5), rgba(34, 211, 238, .5));
    opacity: 0; transition: opacity .2s;
}
.checker-box:focus-within::after { opacity: .5; filter: blur(6px); }

/* ---------- 区块标签 / 标题 ---------- */
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--brand); background: rgba(20, 102, 255, .07);
    border: 1px solid rgba(20, 102, 255, .16); border-radius: 999px;
    padding: 4px 12px; margin-bottom: 14px; font-weight: 600;
}
.section-tag::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 0 3px rgba(20, 102, 255, .14);
}
.section-tag.on-dark { color: var(--cyan); background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .26); }
.section-tag.on-dark::before { background: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .16); }
.section-head h2 { letter-spacing: -.025em; }

/* ---------- 卡片：渐变描边 + 光晕 ---------- */
.card, .feature-card, .step, .link-card, .panel, .mini-card, .result-panel { position: relative; }
.card::before, .feature-card::before {
    content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px;
    background: var(--grad-tech); opacity: 0; transition: opacity .22s;
}
.card:hover::before, .feature-card:hover::before { opacity: 1; }
.card:hover, .feature-card:hover, .link-card:hover, .ca-card:hover {
    border-color: rgba(20, 102, 255, .3);
    box-shadow: 0 20px 46px -18px rgba(20, 102, 255, .28), 0 0 0 1px rgba(20, 102, 255, .04);
}
.card-icon {
    background: linear-gradient(150deg, rgba(20, 102, 255, .12), rgba(34, 211, 238, .14));
    box-shadow: inset 0 0 0 1px rgba(20, 102, 255, .1);
}
.step::after {
    content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; border-radius: 2px;
    background: var(--grad-tech); opacity: 0; transition: opacity .22s;
}
.step:hover::after { opacity: 1; }

/* ---------- 按钮：高光扫过 ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 42%;
    left: -60%; transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
    transition: left .55s ease;
}
.btn-primary:hover::after { left: 120%; }

/* ---------- 暗色科技带 ---------- */
.tech-band {
    position: relative; overflow: hidden; padding: 64px 0; color: #c7d3e6;
    background:
        radial-gradient(880px 340px at 82% -10%, rgba(34, 211, 238, .2), transparent 62%),
        radial-gradient(720px 320px at 6% 110%, rgba(20, 102, 255, .26), transparent 64%),
        linear-gradient(135deg, var(--tech-1), var(--tech-2) 55%, #0b1526);
}
.tech-band::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, .075) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, .075) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 82%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 82%);
}
.tech-cols { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.tech-cols h2 { color: #fff; font-size: 28px; letter-spacing: -.025em; margin-bottom: 12px; }
.tech-cols h2 em { font-style: normal; background: linear-gradient(120deg, #7dd3fc, var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tech-cols p { color: #93a4bd; font-size: 14.5px; line-height: 1.8; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 18px 0 0; }
.tech-chips li {
    font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
    color: #a9bcd6; background: rgba(148, 163, 184, .1);
    border: 1px solid rgba(148, 163, 184, .18); border-radius: 7px; padding: 4px 9px;
}
.term {
    position: relative; border-radius: 14px; overflow: hidden;
    background: rgba(6, 12, 24, .78);
    border: 1px solid rgba(148, 163, 184, .2);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.term-bar {
    display: flex; align-items: center; gap: 6px; padding: 11px 14px;
    background: rgba(148, 163, 184, .07); border-bottom: 1px solid rgba(148, 163, 184, .14);
}
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #475569; }
.term-bar i:nth-child(1) { background: #f87171; }
.term-bar i:nth-child(2) { background: #fbbf24; }
.term-bar i:nth-child(3) { background: #34d399; }
.term-bar span { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: #64748b; }
.term-body {
    margin: 0; padding: 16px 18px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.9;
    color: #cbd5e1; white-space: pre-wrap; word-break: break-word;
}
.term-body b { color: var(--cyan); font-weight: 600; }
.term-body i { color: #34d399; font-style: normal; }
.term-body u { color: #94a3b8; text-decoration: none; }
.tech-metrics {
    position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin-top: 42px; padding-top: 30px; border-top: 1px solid rgba(148, 163, 184, .16);
}
.tech-metrics .n { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.2; }
.tech-metrics .n em { font-style: normal; font-size: 14px; color: var(--cyan); margin-left: 3px; font-weight: 600; }
.tech-metrics .l { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #64748b; margin-top: 4px; }

/* ---------- 内页头部 ---------- */
.page-head {
    position: relative; overflow: hidden;
    background:
        radial-gradient(760px 260px at 88% -60%, rgba(34, 211, 238, .16), transparent 62%),
        radial-gradient(600px 240px at 6% -30%, rgba(37, 99, 235, .12), transparent 60%),
        linear-gradient(180deg, #f6faff, #fff);
}
.page-head::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 100% at 30% 0%, #000 10%, transparent 78%);
    mask-image: radial-gradient(ellipse 70% 100% at 30% 0%, #000 10%, transparent 78%);
}
.page-head .container { position: relative; }
.page-head h1 { position: relative; font-size: 32px; }
.page-head h1::after {
    content: ""; display: block; width: 44px; height: 3px; border-radius: 3px;
    margin-top: 12px; background: var(--grad-tech);
}

/* ---------- 结果面板 / 表格细节 ---------- */
.result-head { position: relative; }
.result-head::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: var(--grad-tech); opacity: .9;
}
table.data th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- 登录页：网格 + 光晕 ---------- */
.auth-page {
    position: relative; overflow: hidden;
    background:
        radial-gradient(860px 420px at 50% -10%, #e9f2ff 0%, transparent 62%),
        radial-gradient(600px 320px at 88% 108%, rgba(34, 211, 238, .16), transparent 62%),
        linear-gradient(180deg, #f7faff, #f4f7fd);
}
.auth-deco {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 66% 60% at 50% 40%, #000 12%, transparent 80%);
    mask-image: radial-gradient(ellipse 66% 60% at 50% 40%, #000 12%, transparent 80%);
}
.auth-card { position: relative; }
.auth-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 20px 20px 0 0;
    background: var(--grad-tech);
}

/* ==========================================================================
   用户控制台：深色侧边栏 + 内容面板
   ========================================================================== */
.app-shell {
    display: flex; min-height: 100vh;
    background:
        radial-gradient(900px 420px at 88% -12%, rgba(37, 99, 235, .06), transparent 60%),
        radial-gradient(700px 360px at 0% 110%, rgba(34, 211, 238, .05), transparent 60%),
        var(--bg);
}
.app-side {
    position: sticky; top: 0; height: 100vh; width: 252px; flex: none;
    display: flex; flex-direction: column; gap: 6px; padding: 18px 14px 16px;
    background:
        radial-gradient(560px 280px at 0% 0%, rgba(34, 211, 238, .14), transparent 62%),
        radial-gradient(420px 300px at 100% 100%, rgba(129, 140, 248, .1), transparent 60%),
        linear-gradient(180deg, #080f1e, #0c1729 60%, #080f1e);
    border-right: 1px solid rgba(148, 163, 184, .14);
    color: #94a3b8; overflow-y: auto; z-index: 60;
}
.app-brand {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 6px 8px 16px; margin-bottom: 4px;
    color: #fff; font-weight: 800; font-size: 16px; letter-spacing: -.01em;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}
.app-brand:hover { color: #fff; }
.app-brand .logo-img { height: 30px; }
.app-brand-text { min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-brand-text small {
    display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
    color: #64748b; font-weight: 500; margin-top: 1px;
}
.app-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; padding-top: 6px; }
.app-nav-label {
    font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    color: #64748b; margin: 16px 10px 6px;
}
.app-nav-label:first-child { margin-top: 4px; }
.app-nav-item {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 11px 13px; border-radius: 10px; color: #d4deec; font-size: 15px; font-weight: 500;
    transition: background .16s, color .16s;
}
.app-nav-item svg { flex: none; width: 19px; height: 19px; opacity: .82; transition: opacity .16s; }
.app-nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.app-nav-item:hover svg { opacity: 1; }
.app-nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(37, 99, 235, .4), rgba(34, 211, 238, .08));
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .24);
}
.app-nav-item.active::before {
    content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0;
    background: var(--grad-tech);
    box-shadow: 0 0 12px rgba(34, 211, 238, .6);
}
.app-nav-item.active svg { opacity: 1; color: var(--cyan); }
.app-nav-item.is-link svg { opacity: .5; }
.app-badge {
    margin-left: auto; min-width: 20px; height: 19px; padding: 0 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 11px; font-weight: 700;
    color: #06202b; background: linear-gradient(135deg, #67e8f9, var(--cyan));
}
.app-side-foot { border-top: 1px solid rgba(148, 163, 184, .14); padding-top: 12px; margin-top: 8px; }
.app-status {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; margin-bottom: 6px; border-radius: 9px;
    background: rgba(148, 163, 184, .06); border: 1px solid rgba(148, 163, 184, .12);
    font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: #7d8ba0;
}
.app-status-dot {
    width: 7px; height: 7px; border-radius: 50%; flex: none;
    background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
    animation: statusPulse 2.4s ease-out infinite;
}
@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .4); }
    70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.app-back { font-size: 12px; color: #55647d; display: block; padding: 6px 10px; border-radius: 8px; transition: color .16s, background .16s; }
.app-back:hover { color: #e2e8f0; background: rgba(255, 255, 255, .05); }

.app-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-top {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 14px;
    padding: 14px 28px; border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .8);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.app-top::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .28) 30%, rgba(34, 211, 238, .28) 70%, transparent);
}
.app-heading { min-width: 0; }
.app-heading h1 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.app-heading p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
.app-user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.app-avatar {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: var(--grad-tech); color: #fff; font-size: 13px; font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .32), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.app-burger {
    display: none; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
    background: #fff; color: var(--ink-2); cursor: pointer; flex: none;
}
.app-content { width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 32px 56px; }
.app-panel { display: none; }
.app-panel.active { display: block; animation: panelIn .24s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.app-mask {
    position: fixed; inset: 0; background: rgba(8, 15, 28, .5); z-index: 55;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.app-mask.show { opacity: 1; visibility: visible; }

/* 统计卡 */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card {
    position: relative; overflow: hidden; background: #fff;
    border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s cubic-bezier(.4, 0, .2, 1), box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad-tech); opacity: .8;
}
.stat-card::after {
    content: ""; position: absolute; right: -24px; top: -24px; width: 96px; height: 96px; border-radius: 50%;
    background: radial-gradient(circle, var(--brand-glow), transparent 70%); opacity: .55; pointer-events: none;
}
.stat-card .n { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-card .n.warn { color: #b45309; }
.stat-card .n.err { color: #b91c1c; }
.stat-card .l {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px;
}
.stat-card .l::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-3); flex: none; }
.stat-card:nth-child(2) .l::before { background: var(--amber); }
.stat-card:nth-child(3) .l::before { background: var(--red); }

@media (max-width: 1024px) {
    .tech-cols { grid-template-columns: 1fr; gap: 28px; }
    .tech-metrics { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
}
@media (max-width: 900px) {
    .app-side {
        position: fixed; left: 0; top: 0; bottom: 0; height: 100%;
        transform: translateX(-100%); transition: transform .24s ease;
        box-shadow: 0 0 60px rgba(0, 0, 0, .4);
    }
    .app-side.open { transform: none; }
    .app-burger { display: inline-flex; }
    .app-top { padding: 12px 16px; }
    .app-heading p { display: none; }
    .app-content { padding: 16px 16px 44px; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 30px; }
    .app-user #userName { display: none; }
    .stat-row { grid-template-columns: 1fr 1fr; }
    .stat-card:last-child { grid-column: 1 / -1; }
    .tech-band { padding: 46px 0; }
    .term-body { font-size: 11.5px; }
}

/* 控制台细节补充 */
.mini-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
    border-radius: 16px 16px 0 0; background: var(--grad-tech); opacity: .55;
}

/* 个人中心 */
.profile-grid { display: flex; gap: 26px; align-items: flex-start; }
.profile-avatar {
    flex: none; width: 84px; height: 84px; border-radius: 50%;
    display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #fff;
    background: var(--grad-tech);
    box-shadow: 0 10px 28px rgba(37, 99, 235, .34), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.profile-info { flex: 1; min-width: 0; }
.profile-info .kv { grid-template-columns: 1fr; gap: 0; }
.profile-info .kv-row { font-size: 14.5px; }
.profile-info .kv-row dt { width: 96px; }
@media (max-width: 640px) {
    .profile-grid { flex-direction: column; align-items: center; text-align: left; }
    .profile-info { width: 100%; }
}
.claim-help {
    list-style: none; margin: 22px 0 0; padding: 16px 18px;
    border: 1px dashed var(--line); border-radius: 12px; background: #fbfdff;
    font-size: 12.8px; color: var(--ink-3); line-height: 1.75;
}
.claim-help li { position: relative; padding-left: 12px; }
.claim-help li + li { margin-top: 6px; }
.claim-help li::before {
    content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%;
    background: var(--brand); opacity: .6;
}
.claim-help b { color: var(--ink-2); font-weight: 600; margin-right: 6px; }
.code-row { display: flex; gap: 10px; align-items: center; }
.code-row .btn { flex: none; height: 44px; }
.tag-lock { background: #eef2ff; color: #4338ca; }
.choice.need-login { opacity: .6; cursor: not-allowed; }
@media (max-width: 640px) {
    .claim-form .input { flex: 1 1 100%; }
    .claim-form .btn { width: 100%; }
    .app-content { padding: 14px 14px 40px; }
}

/* 品牌 Logo 图片（横向 ZZSSL 文字标） */
.logo-img {
    display: block; height: 28px; width: auto;
    flex: none;
}
.site-header .logo-img { height: 30px; }
.site-footer .logo-img { height: 30px; }
.auth-logo .logo-img { height: 30px; }
.app-brand .logo-img { height: 26px; }

/* 小屏排版修正 */
.logo { white-space: nowrap; }
.hero h1 { text-wrap: balance; }
@media (max-width: 640px) {
    .header-inner { gap: 12px; height: 62px; }
    .logo { font-size: 15px; gap: 7px; }
    .site-header .logo-img { height: 24px; }
    .logo .logo-mark { width: 28px; height: 28px; font-size: 13px; }
    .hero h1 { font-size: 26px; letter-spacing: -.02em; }
    .hero-sub { font-size: 14px; }
    .checker-box { padding: 8px 8px 8px 14px; }
    .checker-box input { font-size: 14.5px; text-overflow: ellipsis; }
    .checker-box input::placeholder { text-overflow: ellipsis; }
}

/* ==========================================================================
   首页（精简版）：检测入口 + 四张服务卡
   ========================================================================== */
.hero { padding: 72px 0 56px; }
.hero .checker { margin-top: 2px; }
.checker-box { box-shadow: 0 18px 44px -22px rgba(37, 99, 235, .38), 0 1px 0 rgba(255, 255, 255, .8) inset; }
.checker-box:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), 0 20px 48px -20px rgba(37, 99, 235, .4); }

.home-cards {
    position: relative; overflow: hidden;
    padding: 48px 0 72px;
    background:
        radial-gradient(760px 300px at 50% -30%, rgba(34, 211, 238, .1), transparent 64%),
        radial-gradient(600px 300px at 8% 110%, rgba(37, 99, 235, .07), transparent 60%),
        linear-gradient(180deg, #fff, #f7faff 60%, #fff);
}
.home-cards::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(ellipse 76% 84% at 50% 0%, #000 12%, transparent 78%);
    mask-image: radial-gradient(ellipse 76% 84% at 50% 0%, #000 12%, transparent 78%);
}
.home-cards .container { position: relative; }
.home-cards .grid-4 { gap: 22px; }
.home-cards .card {
    padding: 30px 26px 26px; border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    animation: cardIn .5s cubic-bezier(.2, .7, .3, 1) both;
}
.home-cards .card:nth-child(2) { animation-delay: .06s; }
.home-cards .card:nth-child(3) { animation-delay: .12s; }
.home-cards .card:nth-child(4) { animation-delay: .18s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .home-cards .card { animation: none; } }

.home-cards .card-icon {
    width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
    transition: transform .24s cubic-bezier(.4, 0, .2, 1), box-shadow .24s;
}
.home-cards .card:hover .card-icon { transform: translateY(-2px) scale(1.04); }
.home-cards .card h3 { font-size: 17px; letter-spacing: -.012em; margin-bottom: 8px; }
.home-cards .card p { font-size: 13.5px; line-height: 1.75; }
.home-cards .card-link {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 14px; font-weight: 600; transition: gap .18s ease, color .18s ease;
}
.home-cards .card:hover .card-link { gap: 9px; }
.home-cards .card:hover { transform: translateY(-3px); }

@media (max-width: 768px) {
    .hero { padding: 46px 0 40px; }
    .home-cards { padding: 40px 0 56px; }
    .home-cards .card { padding: 24px 20px 20px; }
}

/* 首屏底部：极简指标行（不额外占区块） */
.hero-stats {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 0; max-width: 720px; margin: 32px auto 0; padding-top: 6px;
}
.hero-stats > div {
    display: flex; align-items: baseline; gap: 7px;
    padding: 0 30px; position: relative;
}
.hero-stats > div + div::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 24px; background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .18), transparent);
}
.hero-stats b {
    font-family: var(--mono); font-size: 20px; font-weight: 800;
    color: var(--ink); letter-spacing: -.02em; line-height: 1.2;
}
.hero-stats b i { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--brand); margin-left: 2px; letter-spacing: .02em; }
.hero-stats span { font-size: 11.5px; color: var(--ink-4); letter-spacing: .04em; }
@media (max-width: 640px) {
    .hero-stats { gap: 6px 0; margin-top: 28px; }
    .hero-stats > div { padding: 0 16px; }
    .hero-stats > div + div::before { display: none; }
    .hero-stats b { font-size: 16px; }
}

/* 卡片图标：保留各自色系（蓝 / 绿 / 琥珀），避免统一成蓝色后失去辨识度 */
.card.green .card-icon {
    background: linear-gradient(150deg, rgba(16, 185, 129, .13), rgba(52, 211, 153, .16));
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .14);
    color: #059669;
}
.card.amber .card-icon {
    background: linear-gradient(150deg, rgba(245, 158, 11, .13), rgba(251, 191, 36, .16));
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .16);
    color: #b45309;
}
.card.green .card-link { color: #059669; }
.card.amber .card-link { color: #b45309; }
.home-cards .card.green:hover { border-color: rgba(16, 185, 129, .32); box-shadow: 0 20px 46px -20px rgba(16, 185, 129, .32); }
.home-cards .card.amber:hover { border-color: rgba(245, 158, 11, .32); box-shadow: 0 20px 46px -20px rgba(245, 158, 11, .3); }

/* 通用小标签（表格内使用） */
.tag {
    display: inline-block; padding: 1px 7px; border-radius: 5px;
    font-size: 11.5px; font-weight: 600;
    background: #fff7e6; color: #b45309;
}

/* ==========================================================================
   赞助商（首页底部）
   ========================================================================== */
.sponsors { padding: 12px 0 56px; }
.sponsors-head { text-align: center; margin-bottom: 28px; }
.sponsors-head h2 {
    font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin: 0;
}
.sponsors-head h2::after {
    content: ""; display: block; width: 44px; height: 3px; border-radius: 3px;
    margin: 12px auto 0; background: var(--grad-tech);
}
.sponsors-head p { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-4); letter-spacing: .02em; }
.sponsors-grid {
    display: grid; grid-template-columns: repeat(5, 232px);
    justify-content: center; gap: 16px 18px;
}
.sponsor-item {
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line); background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .22s cubic-bezier(.4, 0, .2, 1), box-shadow .22s, border-color .22s;
}
.sponsor-item img { display: block; width: 232px; height: 96px; object-fit: contain; }
.sponsor-item a { display: block; }
.sponsor-item a img { transition: transform .22s ease; }
.sponsor-item:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, .34);
    box-shadow: 0 18px 40px -18px rgba(37, 99, 235, .3);
}
@media (max-width: 1240px) {
    .sponsors-grid { grid-template-columns: repeat(3, 232px); }
}
@media (max-width: 780px) {
    .sponsors-grid { grid-template-columns: repeat(2, 232px); }
}
@media (max-width: 540px) {
    .sponsors { padding: 4px 0 40px; }
    .sponsors-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .sponsor-item img { width: 100%; height: auto; aspect-ratio: 232 / 96; }
}
