﻿/* ============================================================
   SignBox · iOS 签名中心
   ============================================================ */

/* ---------- tokens ---------- */
:root {
    --bg: #06080f;
    --bg-soft: #0a0e1a;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 255, 255, 0.07);
    --surface-3: rgba(255, 255, 255, 0.11);
    --line: rgba(255, 255, 255, 0.085);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #e9edf7;
    --text-dim: #b6bed2;
    --muted: #8d95a9;
    --muted-2: #6b7285;
    --brand: #5b7cff;
    --brand-2: #8b5cf6;
    --cyan: #22d3ee;
    --ok: #34d399;
    --warn: #fbbf24;
    --bad: #f87171;
    --radius: 22px;
    --radius-sm: 13px;
    --radius-xs: 9px;
    --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
    --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.7);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 组件里的 display 会盖掉 UA 的 [hidden]，这里统一兜住 */
[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

/* sticky 头会盖住锚点目标，留出呼吸空间 */
#flow,
#faq,
#result,
#adv,
#adv-local,
#features {
    scroll-margin-top: 84px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::selection,
::selection {
    background: rgba(91, 124, 255, 0.35);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
    margin: 0;
}

code {
    font-family: var(--mono);
    font-size: 0.9em;
    padding: 0.12em 0.4em;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
    white-space: nowrap;
}

/* ---------- background ---------- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
    opacity: 0.75;
}

.bg-aurora {
    position: fixed;
    inset: -10% -10% auto -10%;
    height: 70vh;
    z-index: 0;
    pointer-events: none;
    filter: blur(70px);
    opacity: 0.55;
}

.bg-aurora span {
    position: absolute;
    display: block;
    border-radius: 50%;
    mix-blend-mode: screen;
    animation: drift 22s ease-in-out infinite alternate;
}

.bg-aurora span:nth-child(1) {
    width: 46vw;
    height: 46vw;
    left: 4%;
    top: -12%;
    background: radial-gradient(circle at 40% 40%, rgba(91, 124, 255, 0.55), transparent 62%);
}

.bg-aurora span:nth-child(2) {
    width: 40vw;
    height: 40vw;
    right: 2%;
    top: -6%;
    background: radial-gradient(circle at 60% 40%, rgba(139, 92, 246, 0.5), transparent 62%);
    animation-delay: -6s;
}

.bg-aurora span:nth-child(3) {
    width: 34vw;
    height: 34vw;
    left: 34%;
    top: 6%;
    background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.28), transparent 65%);
    animation-delay: -12s;
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(3%, 4%, 0) scale(1.12);
    }
}

/* ---------- layout ---------- */
.wrap {
    position: relative;
    z-index: 1;
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 96px;
}

/* ---------- alert ---------- */
.alert-bar {
    position: relative;
    z-index: 3;
    padding: 11px 20px;
    text-align: center;
    font-size: 13.5px;
    color: #ffe9b0;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.16), rgba(251, 191, 36, 0.06));
    border-bottom: 1px solid rgba(251, 191, 36, 0.25);
}

.alert-bar b {
    margin-right: 6px;
}

.alert-setup {
    color: #cfe0ff;
    background: linear-gradient(90deg, rgba(91, 124, 255, 0.18), rgba(139, 92, 246, 0.08));
    border-bottom-color: rgba(91, 124, 255, 0.32);
}

.mini-link {
    font-size: 12px;
    color: #8fb0ff;
    border-bottom: 1px dashed rgba(143, 176, 255, 0.4);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.mini-link:hover {
    color: #c2d4ff;
    border-bottom-color: currentColor;
}

/* ---------- header ---------- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
}

.site-head::before {
    content: "";
    position: absolute;
    inset: 0 50%;
    margin: 0 -50vw;
    background: rgba(6, 8, 15, 0.72);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid var(--line);
    z-index: -1;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 8px 22px -8px rgba(91, 124, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    flex: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.brand-text strong {
    font-size: 15.5px;
    letter-spacing: 0.2px;
}

.brand-text em {
    font-style: normal;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.head-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-dim);
}

.head-nav a {
    padding: 7px 12px;
    border-radius: 999px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.head-nav a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.head-nav .head-cta {
    border: 1px solid var(--line-strong);
    color: var(--text);
}

/* ---------- hero ---------- */
.hero {
    padding: 48px 0 34px;
    text-align: center;
    animation: rise 0.7s var(--ease) both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 11px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    font-size: 12.5px;
    color: var(--text-dim);
    letter-spacing: 0.2px;
    backdrop-filter: blur(8px);
}

.pulse {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    flex: none;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(52, 211, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

.hero h1 {
    margin: 18px 0 0;
    font-size: clamp(34px, 6.4vw, 60px);
    line-height: 1.12;
    letter-spacing: -1.6px;
    font-weight: 800;
    text-wrap: balance;
}

.grad {
    background: linear-gradient(100deg, #7c9bff 0%, #a78bfa 42%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 24px rgba(124, 155, 255, 0.28));
}

.hero-sub {
    max-width: 600px;
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.75;
    text-wrap: pretty;
}

.hero-stats {
    display: flex;
    width: fit-content;
    margin: 30px auto 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 26px;
    min-width: 108px;
}

.hero-stats div + div {
    border-left: 1px solid var(--line);
}

.hero-stats b {
    font-size: 19px;
    letter-spacing: -0.4px;
}

.hero-stats span {
    font-size: 11.5px;
    color: var(--muted-2);
    letter-spacing: 0.3px;
}

.hero-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 620px;
    margin: 18px auto 0;
    font-size: 12.5px;
    color: var(--muted);
}

/* ---------- 主题色点 ---------- */
.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: none;
}

.dot-ok {
    background: var(--ok);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.75);
}

.dot-bad {
    background: var(--bad);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.7);
}

.tag {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid currentColor;
}

.tag-warn {
    color: var(--warn);
}

.link {
    color: #8fb0ff;
    border-bottom: 1px dashed rgba(143, 176, 255, 0.4);
}

.link:hover {
    color: #b9ccff;
    border-bottom-color: currentColor;
}

/* ---------- panel ---------- */
.panel {
    position: relative;
    margin-top: 8px;
    padding: 34px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
        rgba(10, 14, 26, 0.72);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    overflow: hidden;
    animation: rise 0.7s var(--ease) 0.06s both;
}

.panel-glow {
    position: absolute;
    top: -140px;
    left: 50%;
    width: 480px;
    height: 280px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(91, 124, 255, 0.35), transparent 68%);
    pointer-events: none;
    filter: blur(24px);
}

/* steps */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.steps::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 19px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong) 15%, var(--line-strong) 85%, transparent);
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
    padding: 0 6px;
}

.step-num {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    background: var(--bg-soft);
    border: 1px solid var(--line-strong);
    transition: all 0.35s var(--ease);
}

.step b {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dim);
    transition: color 0.3s var(--ease);
}

.step small {
    display: block;
    font-size: 11.5px;
    color: var(--muted-2);
}

.step.is-active .step-num {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 26px -12px rgba(91, 124, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.step.is-active b {
    color: var(--text);
}

.step.is-done .step-num {
    color: var(--ok);
    border-color: rgba(52, 211, 153, 0.5);
    background: rgba(52, 211, 153, 0.12);
}

.step.is-done b {
    color: var(--text-dim);
}

/* field */
.field {
    margin-bottom: 22px;
}

.field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
}

.field-label label {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.4px;
}

.mini {
    background: none;
    border: 0;
    padding: 2px 6px;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.mini:hover {
    color: var(--text);
    background: var(--surface-2);
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap input {
    width: 100%;
    padding: 17px 108px 17px 18px;
    font-family: var(--mono);
    font-size: 15px;
    letter-spacing: 0.6px;
    color: var(--text);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    outline: none;
    transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s;
    -webkit-appearance: none;
}

.input-wrap input::placeholder {
    color: var(--muted-2);
    letter-spacing: 0.5px;
}

.input-wrap input:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.input-wrap input:focus {
    border-color: rgba(91, 124, 255, 0.75);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 4px rgba(91, 124, 255, 0.16);
}

.input-wrap.is-valid input {
    border-color: rgba(52, 211, 153, 0.55);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
}

.input-wrap.is-invalid input {
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.1);
}

.input-badge {
    position: absolute;
    right: 11px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    letter-spacing: 0.3px;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--line);
    pointer-events: none;
    transition: all 0.25s var(--ease);
}

.input-badge.is-valid {
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(52, 211, 153, 0.12);
}

.input-badge.is-invalid {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.12);
}

.hint-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    font-size: 12px;
}

.state {
    color: var(--muted-2);
}

.state.is-ok {
    color: #6ee7b7;
}

.state.is-bad {
    color: #fca5a5;
}

.hint-dim {
    color: var(--muted-2);
    white-space: nowrap;
}

/* actions */
.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 13px;
    border: 1px solid transparent;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), background 0.25s,
        border-color 0.25s, opacity 0.2s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: translateY(1px) scale(0.995);
}

.btn:focus-visible {
    outline: 2px solid rgba(124, 155, 255, 0.85);
    outline-offset: 3px;
}

.btn-lg {
    padding: 16px 22px;
    font-size: 15.5px;
    border-radius: 15px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 10px;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #5b7cff, #8b5cf6);
    box-shadow: 0 14px 32px -14px rgba(91, 124, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px -14px rgba(108, 124, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-ghost {
    color: var(--text);
    background: var(--surface-2);
    border-color: var(--line-strong);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    background: var(--surface-3);
    border-color: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.btn[disabled],
.btn.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

.btn.is-busy .btn-label::after {
    content: "…";
}

.btn-flash {
    animation: flash 1.1s var(--ease) 2;
}

@keyframes flash {
    0%,
    100% {
        box-shadow: 0 14px 32px -14px rgba(91, 124, 255, 0.95), 0 0 0 0 rgba(139, 92, 246, 0.6);
    }
    50% {
        box-shadow: 0 14px 32px -14px rgba(91, 124, 255, 0.95), 0 0 0 12px rgba(139, 92, 246, 0);
    }
}

/* progress */
.progress {
    margin-top: 18px;
}

.progress-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress-bar i {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--cyan));
    animation: slide 1.25s infinite var(--ease);
}

.progress-bar i.is-determinate {
    animation: none;
    transition: width 0.25s linear;
}

@keyframes slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(320%);
    }
}

.progress-text {
    display: block;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--muted);
}

.fineprint {
    margin-top: 18px;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--muted-2);
}

/* ---------- result ---------- */
.result {
    margin-top: 18px;
    padding: 28px 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(52, 211, 153, 0.28);
    background:
        linear-gradient(180deg, rgba(52, 211, 153, 0.09), rgba(52, 211, 153, 0.02)),
        rgba(9, 14, 22, 0.8);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    animation: rise 0.5s var(--ease) both;
}

.result-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.ok-badge {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #05170f;
    background: linear-gradient(135deg, #6ee7b7, #34d399);
    box-shadow: 0 12px 28px -12px rgba(52, 211, 153, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    flex: none;
    animation: pop 0.45s var(--ease) both;
}

@keyframes pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.result-title h2 {
    font-size: 18px;
    letter-spacing: -0.2px;
}

.result-title p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.result-time {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--muted-2);
    white-space: nowrap;
}

.kv {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 24px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
}

.kv > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    background: rgba(8, 12, 20, 0.86);
}

/* 奇数行时最后一条铺满，避免右下角空一块 */
.kv > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.kv dt {
    font-size: 12px;
    color: var(--muted-2);
    flex: none;
}

.kv dd {
    margin: 0;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kv dd.is-ok {
    color: #6ee7b7;
}

.kv dd.is-warn {
    color: var(--warn);
}

.downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- advanced ---------- */
.adv {
    margin-top: 18px;
    padding: 28px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(10, 14, 24, 0.66);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
    animation: rise 0.5s var(--ease) both;
}

.adv-quiet {
    background: rgba(10, 14, 24, 0.42);
}

.adv-head h2 {
    font-size: 17px;
    letter-spacing: -0.2px;
}

.adv-head p {
    margin-top: 5px;
    font-size: 13.5px;
    color: var(--muted);
}

.drop {
    position: relative;
    display: grid;
    place-items: center;
    gap: 4px;
    margin-top: 18px;
    padding: 30px 20px;
    border-radius: 16px;
    border: 1.5px dashed rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s;
}

.drop:hover {
    border-color: rgba(124, 155, 255, 0.55);
    background: rgba(91, 124, 255, 0.07);
}

.drop.is-over {
    border-color: rgba(124, 155, 255, 0.9);
    background: rgba(91, 124, 255, 0.12);
    transform: scale(0.995);
}

.drop-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #a9bcff;
    background: rgba(91, 124, 255, 0.14);
    border: 1px solid rgba(91, 124, 255, 0.28);
    margin-bottom: 6px;
}

.drop-title {
    font-size: 14px;
    font-weight: 600;
}

.drop-sub {
    font-size: 12px;
    color: var(--muted-2);
}

.drop .progress {
    width: 100%;
    max-width: 320px;
}

.install-result {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.code {
    margin-top: 14px;
    padding: 15px 17px;
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 12.5px;
    color: #c9d4f2;
    overflow-x: auto;
    line-height: 1.7;
}

.code code {
    background: none;
    border: 0;
    padding: 0;
    white-space: pre;
    color: inherit;
}

/* ---------- features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 54px;
}

.feature {
    padding: 22px 20px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}

.feature:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--surface-2);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: #b3c2ff;
    background: linear-gradient(135deg, rgba(91, 124, 255, 0.24), rgba(139, 92, 246, 0.18));
    border: 1px solid rgba(124, 155, 255, 0.24);
    margin-bottom: 14px;
}

.feature h3 {
    font-size: 14.5px;
    margin-bottom: 6px;
}

.feature p {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--muted);
}

/* ---------- faq ---------- */
.faq {
    margin-top: 64px;
}

.section-title {
    font-size: 21px;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
}

.faq details {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s;
}

.faq details:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.faq details[open] {
    border-color: rgba(124, 155, 255, 0.32);
    background: rgba(91, 124, 255, 0.05);
}

.faq summary {
    position: relative;
    padding: 16px 52px 16px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 11px;
    height: 11px;
    margin-top: -7px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.3s var(--ease), border-color 0.3s;
}

.faq details[open] summary::after {
    transform: rotate(-135deg);
    border-color: #9db3ff;
}

.faq details p {
    padding: 0 18px 18px;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--muted);
}

/* ---------- footer ---------- */
.site-foot {
    position: relative;
    z-index: 1;
    padding: 30px 20px 44px;
    text-align: center;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted-2);
}

.foot-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 6px;
}

.brand-mini {
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--text-dim);
}

.foot-sub a {
    margin: 0 2px;
}

/* ---------- toasts ---------- */
.toasts {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(360px, calc(100vw - 40px));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 13px;
    border: 1px solid var(--line-strong);
    background: rgba(16, 21, 34, 0.94);
    box-shadow: var(--shadow-lg);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text);
    backdrop-filter: blur(14px);
    pointer-events: auto;
    animation: toastIn 0.32s var(--ease) both;
}

.toast.is-out {
    animation: toastOut 0.25s var(--ease) both;
}

.toast::before {
    content: "";
    width: 3px;
    border-radius: 3px;
    align-self: stretch;
    flex: none;
    background: var(--muted);
}

.toast-ok::before {
    background: var(--ok);
}

.toast-bad::before {
    background: var(--bad);
}

.toast-warn::before {
    background: var(--warn);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
    }
}

/* ---------- error page ---------- */
.page-error {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(91, 124, 255, 0.18), transparent 70%),
        var(--bg);
}

.err-wrap {
    width: min(520px, 100%);
}

.err-card {
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    text-align: center;
    backdrop-filter: blur(18px);
}

.err-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 800;
    color: #1a0d0d;
    background: linear-gradient(135deg, #fecaca, #f87171);
}

.err-card h1 {
    font-size: 19px;
    margin-bottom: 10px;
}

.err-card p {
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 22px;
    word-break: break-word;
}

/* ---------- check page ---------- */
.page-check {
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(91, 124, 255, 0.14), transparent 70%),
        var(--bg);
}

.check-wrap {
    position: relative;
    z-index: 1;
    width: min(860px, calc(100% - 36px));
    margin: 0 auto;
    padding: 48px 0 60px;
}

.check-head {
    margin-bottom: 26px;
}

.check-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-title h1 {
    font-size: clamp(20px, 3.4vw, 26px);
    letter-spacing: -0.4px;
}

.check-sub {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--muted-2);
    font-family: var(--mono);
}

.check-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.check-item {
    display: flex;
    gap: 14px;
    padding: 15px 17px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.check-item.is-ok {
    border-color: rgba(52, 211, 153, 0.26);
    background: rgba(52, 211, 153, 0.05);
}

.check-item.is-warn {
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.05);
}

.check-item.is-bad {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.05);
}

.check-flag {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex: none;
    margin-top: 2px;
    background: var(--surface-3);
    color: var(--text-dim);
}

.is-ok .check-flag {
    background: rgba(52, 211, 153, 0.18);
    color: #6ee7b7;
}

.is-warn .check-flag {
    background: rgba(251, 191, 36, 0.18);
    color: #fcd34d;
}

.is-bad .check-flag {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}

.check-name {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 3px;
}

.check-value {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    word-break: break-all;
}

.check-hint {
    margin-top: 5px;
    font-size: 12px;
    color: var(--muted-2);
    line-height: 1.6;
}

.check-net {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.check-net h2 {
    font-size: 14px;
    margin-bottom: 6px;
}

.check-net p {
    font-size: 13px;
    color: var(--muted);
}

.check-net pre {
    margin: 10px 0 0;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    overflow-x: auto;
}

.check-net.is-ok {
    border-color: rgba(52, 211, 153, 0.26);
}

.check-net.is-bad {
    border-color: rgba(248, 113, 113, 0.3);
}

.check-tips {
    margin-top: 26px;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.check-tips h2 {
    font-size: 15px;
    margin-bottom: 10px;
}

.check-tips ol {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.75;
}

.check-tips strong {
    color: var(--text-dim);
}

.check-foot {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: var(--muted-2);
}

/* ---------- animations ---------- */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding-top: 46px;
    }

    .kv {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .wrap {
        width: calc(100% - 28px);
    }

    .site-head {
        width: calc(100% - 24px);
        padding: 11px 0;
    }

    .head-nav a:not(.head-cta) {
        display: none;
    }

    .hero {
        padding: 34px 0 34px;
    }

    .hero h1 {
        letter-spacing: -0.8px;
    }

    .hero-sub {
        font-size: 14.5px;
    }

    .hero-stats {
        width: 100%;
    }

    .hero-stats div {
        flex: 1;
        min-width: 0;
        padding: 11px 8px;
    }

    .hero-stats b {
        font-size: 17px;
    }

    .panel {
        padding: 22px 18px;
        border-radius: 19px;
    }

    .steps {
        gap: 4px;
        margin-bottom: 24px;
    }

    .steps::before {
        top: 17px;
    }

    .step-num {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .step b {
        font-size: 12px;
    }

    .step small {
        display: none;
    }

    .input-wrap input {
        padding: 15px 96px 15px 14px;
        font-size: 13.5px;
        letter-spacing: 0.2px;
    }

    .input-badge {
        right: 9px;
        font-size: 11px;
        padding: 4px 9px;
    }

    .hint-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .actions {
        grid-template-columns: 1fr;
    }

    .btn-lg {
        padding: 15px 18px;
    }

    .result {
        padding: 22px 18px;
    }

    .result-head {
        align-items: flex-start;
        gap: 12px;
        flex-wrap: wrap;
    }

    .result-time {
        margin-left: 0;
        width: 100%;
    }

    .kv > div {
        padding: 11px 13px;
    }

    .kv dd {
        font-size: 12px;
    }

    .downloads .btn {
        flex: 1 1 auto;
    }

    .adv {
        padding: 22px 18px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 38px;
    }

    .faq {
        margin-top: 44px;
    }

    .toasts {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   证书查询页
   ============================================================ */
.hero-sm {
    padding: 44px 0 26px;
}

.hero-sm h1 {
    font-size: clamp(28px, 4.8vw, 44px);
    margin-top: 16px;
}

.hero-sm .hero-sub {
    margin-top: 14px;
    font-size: 14.5px;
}

.query-panel {
    max-width: 860px;
    margin: 0 auto;
    padding: 26px 28px;
    animation: rise 0.6s var(--ease) both;
}

.query-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.query-form .input-wrap {
    flex: 1;
}

.query-form .input-wrap input {
    padding-right: 92px;
}

.query-form .btn {
    width: 138px;
    flex: none;
}

.query-result {
    max-width: 860px;
    margin: 18px auto 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: rise 0.5s var(--ease) both;
}

.q-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(16px);
}

.q-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    font-size: 11.5px;
    color: var(--muted-2);
}

.q-chip b {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--text);
    font-weight: 600;
}

.q-chip.ok {
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.08);
    color: #6fbfa0;
}

.q-chip.ok b {
    color: #b8f2dc;
}

.q-chip.danger {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.08);
    color: #d98b8b;
}

.q-chip.danger b {
    color: #fecaca;
}

.q-chip.idle {
    border-color: rgba(255, 255, 255, 0.14);
}

.cert-item {
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        rgba(9, 13, 22, 0.72);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.cert-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.cert-kid {
    display: inline-grid;
    place-items: center;
    padding: 4px 12px;
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 1px;
    color: #cdd8ff;
    background: rgba(91, 124, 255, 0.14);
    border: 1px solid rgba(91, 124, 255, 0.3);
}

.cert-meta {
    font-size: 12.5px;
    color: var(--muted-2);
}

.cert-badge {
    margin-left: auto;
    font-size: 11.5px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #8be4c0;
    background: rgba(52, 211, 153, 0.08);
}

.cert-badge.is-off {
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.cert-item .kv {
    margin-bottom: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cert-item .kv > div {
    padding: 11px 14px;
    background: rgba(8, 12, 20, 0.6);
}

.cert-item .downloads {
    gap: 8px;
}

.cert-item .downloads .btn {
    padding: 9px 16px;
    font-size: 13px;
}

.empty-card {
    max-width: 860px;
    margin: 18px auto 0;
    padding: 40px 24px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.9;
}

.empty-card b {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--text-dim);
}

@media (max-width: 640px) {
    .query-panel {
        padding: 20px 18px;
    }

    .query-form {
        flex-direction: column;
    }

    .query-form .btn {
        width: 100%;
    }

    .cert-item {
        padding: 17px 16px;
    }

    .cert-item .kv {
        grid-template-columns: 1fr;
    }

    .cert-head {
        flex-wrap: wrap;
    }

    .cert-badge {
        margin-left: 0;
    }
}
