/* =========================================================
   FHK-SSL · 新粗野主义设计系统
   ========================================================= */
:root {
  --paper: #f4f0e6;
  --paper-2: #ece5d6;
  --card: #fffdf6;
  --card-2: #faf5e9;
  --ink: #111110;
  --ink-soft: #2c2b25;
  --muted: #6f6a5d;
  --line: #111110;
  --lime: #c8ff5e;
  --lime-soft: #e5ffb0;
  --violet: #b79cff;
  --violet-soft: #e2d7ff;
  --sky: #9ad7ff;
  --sky-soft: #d5efff;
  --orange: #ffa277;
  --orange-soft: #ffe0d2;
  --pink: #ffb7d5;
  --red: #ff5c47;
  --green: #1fae63;
  --dot: rgba(17, 17, 16, .22);
  --border: 2px solid var(--ink);
  --border-thick: 3px solid var(--ink);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --shadow-soft: 0 16px 40px rgba(17, 17, 16, .1);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 74px;
  --tone-success-bg: #d7ff9c;
  --tone-success-ink: #15330a;
  --tone-warning-bg: #ffe3a3;
  --tone-warning-ink: #4a3200;
  --tone-danger-bg: #ffd0c7;
  --tone-danger-ink: #5c1208;
  --tone-info-bg: #d5efff;
  --tone-info-ink: #0b3450;
  --tone-neutral-bg: #e9e3d5;
  --tone-neutral-ink: #3b382f;
}

[data-theme="dark"] {
  --paper: #141410;
  --paper-2: #1b1b16;
  --card: #20201a;
  --card-2: #27271f;
  --ink: #f3efe3;
  --ink-soft: #d9d4c5;
  --muted: #a8a292;
  --line: #f3efe3;
  --dot: rgba(243, 239, 227, .16);
  --shadow: 4px 4px 0 #000;
  --shadow-sm: 3px 3px 0 #000;
  --shadow-lg: 8px 8px 0 #000;
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, .45);
  --lime: #bcf25a;
  --lime-soft: #384420;
  --violet: #a88cff;
  --violet-soft: #30264d;
  --sky: #7ecaff;
  --sky-soft: #173448;
  --orange: #ffa780;
  --orange-soft: #4a2a1c;
  --pink: #ffb7d5;
  --tone-success-bg: #2b4416;
  --tone-success-ink: #d7ff9c;
  --tone-warning-bg: #473511;
  --tone-warning-ink: #ffe3a3;
  --tone-danger-bg: #4c1d15;
  --tone-danger-ink: #ffd0c7;
  --tone-info-bg: #16364a;
  --tone-info-ink: #d5efff;
  --tone-neutral-bg: #2d2d25;
  --tone-neutral-ink: #e6e1d4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.page-public {
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  background-attachment: fixed;
}
body.app-body { background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { letter-spacing: -.03em; line-height: 1.12; font-weight: 900; }
code, .mono { font-family: var(--mono); }
::selection { background: var(--lime); color: #111; }
[data-theme="dark"] ::selection { background: var(--lime); color: #111; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.icon { flex: 0 0 auto; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono-wrap { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.break-all { word-break: break-all; }
.ta-right { text-align: right; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}

/* ---------- 品牌 ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-grid; place-items: center; background: var(--ink); color: var(--lime);
  font-family: var(--mono); font-weight: 900; font-size: 18px; letter-spacing: -.06em;
  padding: 7px 11px; border-radius: 10px; border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm); transform: rotate(-2deg);
}
.brand-word {
  display: flex; flex-direction: column; font-weight: 900; font-size: 20px;
  line-height: 1; letter-spacing: -.04em;
}
.brand-word small {
  font-family: var(--mono); font-size: 8px; letter-spacing: .18em; color: var(--muted);
  font-weight: 600; margin-top: 4px; text-transform: uppercase;
}
.brand-sm .brand-mark { font-size: 15px; padding: 6px 9px; }
.brand-sm .brand-word { font-size: 17px; }

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: var(--card);
  --btn-ink: var(--ink);
  --btn-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border: 2px solid var(--ink); border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 800; font-size: 14px; letter-spacing: -.01em;
  box-shadow: var(--btn-shadow);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  white-space: nowrap; user-select: none; text-align: center;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled, .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-primary { --btn-bg: var(--lime); }
.btn-dark { --btn-bg: var(--ink); --btn-ink: var(--card); }
.btn-ghost { --btn-bg: transparent; --btn-shadow: none; }
.btn-ghost:hover { --btn-bg: var(--card); box-shadow: 4px 4px 0 var(--ink); }
.btn-danger { --btn-bg: var(--red); --btn-ink: #190501; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 8px; box-shadow: 2px 2px 0 var(--ink); }
.btn-xs:hover { box-shadow: 3px 3px 0 var(--ink); }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--card);
  color: var(--ink); transition: .18s var(--ease);
}
.icon-btn:hover { background: var(--lime); transform: translateY(-2px); box-shadow: 2px 2px 0 var(--ink); }
.icon-btn:active { transform: translateY(0); box-shadow: none; }
.theme-toggle [data-theme="dark"] & { background: var(--card-2); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--violet); outline-offset: 2px;
}

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: 11.5px; font-weight: 800; line-height: 1.6; white-space: nowrap;
  background: var(--tone-neutral-bg); color: var(--tone-neutral-ink);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.tone-success, .badge.tone-success .dot { background: var(--tone-success-bg); color: var(--tone-success-ink); }
.badge.tone-success .dot { background: var(--tone-success-ink); }
.badge.tone-warning { background: var(--tone-warning-bg); color: var(--tone-warning-ink); }
.badge.tone-warning .dot { background: var(--tone-warning-ink); }
.badge.tone-danger { background: var(--tone-danger-bg); color: var(--tone-danger-ink); }
.badge.tone-danger .dot { background: var(--tone-danger-ink); }
.badge.tone-info { background: var(--tone-info-bg); color: var(--tone-info-ink); }
.badge.tone-info .dot { background: var(--tone-info-ink); }
.badge.tone-neutral { background: var(--tone-neutral-bg); color: var(--tone-neutral-ink); }
.badge.tone-neutral .dot { background: var(--tone-neutral-ink); }

.pulse-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; position: relative; flex: 0 0 auto;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: .4; animation: pulse-ring 1.8s var(--ease) infinite;
}
@keyframes pulse-ring { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label {
  font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--ink);
}
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-full { grid-column: 1 / -1; }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--card); color: var(--ink); font-size: 14px; outline: none;
  transition: box-shadow .16s var(--ease), transform .16s var(--ease), background .16s;
}
.input:hover, .select:hover, .textarea:hover { background: var(--card-2); }
.input:focus, .select:focus, .textarea:focus {
  box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); background: var(--card);
}
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }
.input:disabled { opacity: .65; cursor: not-allowed; background: var(--paper-2); }
.textarea { resize: vertical; min-height: 100px; line-height: 1.7; }
.mono-input { font-family: var(--mono); font-size: 13px; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111110' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
[data-theme="dark"] .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f3efe3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.select-sm { padding: 6px 30px 6px 10px; font-size: 12.5px; }
.input-with-action { position: relative; }
.input-with-action .input { padding-right: 46px; }
.input-action {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; background: transparent; border-radius: 7px; color: var(--muted);
}
.input-action:hover { background: var(--paper-2); color: var(--ink); }
.hint { font-size: 12px; color: var(--muted); line-height: 1.65; }
.help { font-size: 12px; color: var(--muted); line-height: 1.65; }
.help a, .hint a { text-decoration: underline; text-underline-offset: 2px; font-weight: 700; color: var(--ink); }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; cursor: pointer; }
.checkline input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: 0 0 auto; }
.checkline a { text-decoration: underline; font-weight: 700; }
hr.soft-hr { border: 0; border-top: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent); margin: 22px 0; }

/* 开关 */
.switch-row {
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 15px 16px; border: 2px solid var(--ink); border-radius: 12px;
  background: var(--card-2); cursor: pointer; transition: background .18s;
}
.switch-row:hover { background: var(--card); }
.switch-row > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.switch-row b { font-size: 14px; }
.switch-row small { color: var(--muted); font-size: 12px; line-height: 1.55; }
.switch-row input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  width: 48px; height: 28px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper-2); position: relative; flex: 0 0 auto; transition: background .2s var(--ease);
}
.switch-track > span {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  background: var(--ink); border-radius: 50%; transition: transform .24s var(--ease-spring), background .2s;
}
.switch-row input:checked + .switch-track { background: var(--lime); }
[data-theme="dark"] .switch-row input:checked + .switch-track { background: var(--lime); }
.switch-row input:checked + .switch-track > span { transform: translateX(20px); background: #111; }
.switch-inline { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.switch-inline input { position: absolute; opacity: 0; }
.switch-inline input:checked + .switch-track { background: var(--lime); }
.switch-inline input:checked + .switch-track > span { transform: translateX(20px); background: #111; }
.toggle-stack { display: flex; flex-direction: column; gap: 10px; }
.compact-switch { padding: 12px 14px; }

/* ---------- 通用卡片 / 表格 ---------- */
.card, .panel {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.panel { padding: 22px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head h3 { font-size: 18px; margin: 0; }
.panel-desc { color: var(--muted); font-size: 13px; line-height: 1.75; margin: -4px 0 16px; }
.panel-subhead { margin: 26px 0 14px; padding-top: 20px; border-top: 2px dashed color-mix(in srgb, var(--ink) 16%, transparent); }
.text-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--ink); border-bottom: 2px solid transparent; }
.text-link:hover { border-bottom-color: var(--ink); }

.alert {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 16px;
  border: 2px solid var(--ink); border-left-width: 8px; border-radius: 12px;
  background: var(--card); margin-bottom: 18px; font-size: 13.5px; line-height: 1.65;
  box-shadow: var(--shadow-sm);
}
.alert b { display: block; margin-bottom: 2px; }
.alert p { margin: 0; color: var(--ink-soft); }
.alert a { text-decoration: underline; font-weight: 700; }
.alert-danger { background: var(--tone-danger-bg); color: var(--tone-danger-ink); border-color: var(--ink); }
.alert-danger p { color: inherit; }
.alert-warning { background: var(--tone-warning-bg); color: var(--tone-warning-ink); }
.alert-warning p, .alert-warning div { color: inherit; }
.alert-success { background: var(--tone-success-bg); color: var(--tone-success-ink); }
.alert-info { background: var(--tone-info-bg); color: var(--tone-info-ink); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.pagination-meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.pagination-buttons { display: flex; align-items: center; gap: 6px; }
.page-btn {
  display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px;
  border: 2px solid var(--ink); border-radius: 8px; background: var(--card);
  font-family: var(--mono); font-size: 12px; font-weight: 700; transition: .16s var(--ease);
}
.page-btn:hover { background: var(--lime); transform: translateY(-1px); box-shadow: 2px 2px 0 var(--ink); }
.page-btn.is-active { background: var(--ink); color: var(--card); }
.page-gap { color: var(--muted); padding: 0 2px; }

/* ---------- Toast / Dialog ---------- */
.toast-stack {
  position: fixed; right: 22px; bottom: 22px; z-index: 120; display: flex;
  flex-direction: column; gap: 10px; max-width: min(400px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: var(--shadow); font-size: 13px; line-height: 1.55;
  animation: toast-in .4s var(--ease-spring) both;
}
.toast.is-leaving { animation: toast-out .25s var(--ease) forwards; }
.toast-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); margin-top: 5px; flex: 0 0 auto; }
.toast-success .toast-dot { background: var(--green); }
.toast-error .toast-dot { background: var(--red); }
.toast-warning .toast-dot { background: #d79a00; }
.toast-close { margin-left: auto; border: 0; background: transparent; color: var(--muted); padding: 2px; }
.toast-close:hover { color: var(--ink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }

.confirm-dialog {
  border: 3px solid var(--ink); border-radius: 18px; padding: 0; background: var(--card);
  box-shadow: var(--shadow-lg); width: min(430px, calc(100vw - 32px)); color: var(--ink);
}
.confirm-dialog::backdrop { background: rgba(17, 17, 16, .45); backdrop-filter: blur(4px); }
.confirm-inner { padding: 24px; }
.confirm-icon {
  width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink);
  border-radius: 12px; background: var(--orange); box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.confirm-dialog h3 { font-size: 20px; margin-bottom: 8px; }
.confirm-dialog p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin-bottom: 20px; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- 公共站头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px); border-bottom: 2px solid var(--ink);
}
.site-header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px; height: var(--header-h);
  display: flex; align-items: center; gap: 30px;
}
.site-nav { display: flex; gap: 4px; margin-left: 12px; }
.site-nav a {
  padding: 8px 13px; border: 2px solid transparent; border-radius: 9px;
  font-size: 13.5px; font-weight: 700; transition: .16s var(--ease);
}
.site-nav a:hover { border-color: var(--ink); background: var(--lime); transform: translateY(-1px); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 74% 68% at 50% 35%, #000 35%, transparent 78%);
}
.hero-inner {
  position: relative; max-width: 1240px; margin: 0 auto; padding: 70px 28px 54px;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 46px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--card);
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.hero-eyebrow .pulse-dot { color: var(--green); }
.hero h1 {
  font-size: clamp(52px, 7.4vw, 96px); line-height: .98; letter-spacing: -.055em;
  margin: 0 0 24px; font-weight: 900;
}
.hero h1 .marker { position: relative; display: inline-block; padding: 0 .06em; }
.hero h1 .marker::before {
  content: ""; position: absolute; left: -.02em; right: -.02em; bottom: .05em; height: .42em;
  background: var(--lime); z-index: -1; border: 2px solid var(--ink); border-radius: 6px;
  transform: rotate(-1.5deg);
}
.hero-lede { max-width: 540px; font-size: 16px; line-height: 1.8; color: var(--ink-soft); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.hero-points .icon { color: var(--green); }

.hero-art { position: relative; min-height: 440px; display: grid; place-items: center; }
.art-blob { position: absolute; border-radius: 48% 52% 62% 38% / 42% 45% 55% 58%; filter: blur(2px); opacity: .9; }
.art-blob-a { width: 330px; height: 330px; background: var(--violet); top: 5%; right: 2%; animation: blob 12s ease-in-out infinite; }
.art-blob-b { width: 210px; height: 210px; background: var(--lime); bottom: 3%; left: 3%; animation: blob 9s ease-in-out infinite reverse; }
@keyframes blob {
  0%, 100% { border-radius: 48% 52% 62% 38% / 42% 45% 55% 58%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 62% 38% 42% 58% / 55% 58% 42% 45%; transform: rotate(9deg) scale(1.04); }
}
.cert-stack { position: relative; width: min(400px, 90%); perspective: 900px; }
.cert-stack-back {
  position: absolute; inset: 26px -18px -14px 34px;
  background: var(--sky); border: 3px solid var(--ink); border-radius: 20px;
  transform: rotate(5deg); box-shadow: var(--shadow-lg); padding: 26px;
}
.stack-line { display: block; height: 9px; border: 2px solid var(--ink); border-radius: 6px; background: var(--card); margin-bottom: 12px; }
.stack-line.w-60 { width: 60%; } .stack-line.w-40 { width: 40%; } .stack-line.w-70 { width: 70%; }
.cert-card-visual {
  position: relative; background: var(--card); border: 3px solid var(--ink); border-radius: 20px;
  padding: 26px; box-shadow: var(--shadow-lg); transform: rotate(-2.5deg);
  animation: card-float 7s ease-in-out infinite; transition: transform .4s var(--ease);
}
.cert-card-visual:hover { transform: rotate(0deg) translateY(-4px); }
@keyframes card-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.cert-visual-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cert-shield {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--lime); box-shadow: var(--shadow-sm);
}
.cert-valid {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px;
  font-weight: 800; letter-spacing: .1em; padding: 5px 9px; border: 2px solid var(--ink);
  border-radius: 999px; background: var(--tone-success-bg); color: var(--tone-success-ink);
}
.cert-domain { font-size: 24px; font-weight: 900; letter-spacing: -.04em; margin-bottom: 4px; word-break: break-all; }
.cert-sub { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-bottom: 22px; }
.cert-visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-bottom: 22px; }
.cert-visual-grid span { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; color: var(--muted); margin-bottom: 2px; }
.cert-visual-grid b { font-size: 12.5px; }
.cert-visual-bars { display: flex; gap: 5px; align-items: flex-end; height: 32px; }
.cert-visual-bars span { flex: 1; background: var(--ink); border-radius: 3px 3px 0 0; opacity: .85; }
.cert-visual-bars span:nth-child(1) { height: 40%; background: var(--violet); }
.cert-visual-bars span:nth-child(2) { height: 68%; background: var(--lime); }
.cert-visual-bars span:nth-child(3) { height: 52%; background: var(--sky); }
.cert-visual-bars span:nth-child(4) { height: 88%; background: var(--orange); }
.cert-visual-bars span:nth-child(5) { height: 60%; background: var(--violet); }
.cert-visual-bars span:nth-child(6) { height: 76%; background: var(--lime); }
.floating-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; background: var(--card); border: 2px solid var(--ink);
  border-radius: 999px; font-size: 11px; font-weight: 800; box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.chip-dns { top: 10%; left: -9%; animation: chip-float 6s ease-in-out infinite; }
.chip-http { bottom: 9%; right: -6%; animation: chip-float 7.5s ease-in-out infinite reverse; }
@keyframes chip-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.ticker { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--ink); color: var(--lime); overflow: hidden; }
.ticker-track { display: flex; align-items: center; gap: 26px; padding: 13px 0; width: max-content; animation: marquee 34s linear infinite; }
.ticker-track span { font-family: var(--mono); font-size: 12px; font-weight: 800; letter-spacing: .16em; white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--card); opacity: .65; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 公共统计 / 区块 ---------- */
.stats-strip { border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.stats-inner { max-width: 1240px; margin: 0 auto; padding: 22px 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-inline { display: flex; align-items: baseline; gap: 10px; border-left: 2px solid var(--ink); padding-left: 18px; }
.stat-inline b { font-size: 30px; font-weight: 900; letter-spacing: -.05em; }
.stat-inline span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }

.section { max-width: 1240px; margin: 0 auto; padding: 82px 28px; }
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.045em; margin: 0 0 16px; }
.section-head p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  position: relative; padding: 24px; background: var(--card); border: 2px solid var(--ink);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  overflow: hidden;
}
.feature-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.feature-icon {
  display: grid; place-items: center; width: 50px; height: 50px; border: 2px solid var(--ink);
  border-radius: 12px; margin-bottom: 18px;
}
.bg-lime { background: var(--lime); } .bg-violet { background: var(--violet); }
.bg-sky { background: var(--sky); } .bg-orange { background: var(--orange); }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.75; margin-bottom: 16px; }
.feature-card code { background: var(--paper-2); border: 1px solid var(--ink); border-radius: 5px; padding: 1px 4px; font-size: 11px; }
.feature-tag {
  font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .12em;
  color: var(--muted); border-top: 1.5px dashed color-mix(in srgb, var(--ink) 20%, transparent);
  padding-top: 12px; display: block;
}

.validation-section, .providers-section { border-top: 2px solid var(--ink); }
.validation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.validation-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.validation-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.validation-head { display: flex; align-items: center; justify-content: space-between; }
.method-pill {
  display: inline-grid; place-items: center; width: 40px; height: 32px; border: 2px solid var(--ink);
  border-radius: 8px; background: var(--violet); font-family: var(--mono); font-size: 12px; font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
}
.validation-card h3 { font-size: 20px; margin: 0; }
.validation-card > p { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0; }
.mini-steps { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 9px; }
.mini-steps li { display: flex; gap: 9px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.mini-steps li span {
  flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 50%; font-family: var(--mono); font-size: 9px; font-weight: 800;
  background: var(--paper-2);
}
.mini-steps code { font-size: 11px; background: var(--paper-2); border: 1px solid var(--ink); border-radius: 4px; padding: 0 4px; }
.validation-foot {
  margin-top: auto; padding-top: 14px; border-top: 1.5px dashed color-mix(in srgb, var(--ink) 20%, transparent);
  display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}

.provider-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.provider-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow); transition: .25s var(--ease);
}
.provider-card:hover { transform: translateY(-4px); box-shadow: 7px 7px 0 var(--ink); }
.provider-card.is-muted { opacity: .72; }
.provider-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.provider-card h3 { font-size: 19px; margin-bottom: 8px; }
.provider-card p { color: var(--muted); font-size: 13px; line-height: 1.75; min-height: 68px; }
.provider-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.provider-tags span {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .05em;
  padding: 3px 7px; border: 1.5px solid var(--ink); border-radius: 5px; background: var(--paper-2);
}
.provider-logo {
  display: inline-grid; place-items: center; min-width: 46px; height: 40px; padding: 0 10px;
  border: 2px solid var(--ink); border-radius: 10px; font-family: var(--mono);
  font-weight: 900; font-size: 13px; letter-spacing: -.02em; box-shadow: 2px 2px 0 var(--ink);
  background: var(--card); color: var(--ink); flex: 0 0 auto;
}
.provider-logo.provider-le { background: var(--lime); }
.provider-logo.provider-gts { background: var(--sky); }
.provider-logo.provider-zerossl { background: var(--violet); }
.provider-mini { min-width: 32px; height: 28px; font-size: 10px; padding: 0 7px; border-width: 1.5px; box-shadow: 1.5px 1.5px 0 var(--ink); border-radius: 7px; }
.provider-lg { min-width: 58px; height: 50px; font-size: 16px; border-width: 3px; box-shadow: var(--shadow-sm); border-radius: 12px; }

.how-section { background: var(--ink); color: var(--card); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); max-width: none; padding: 84px 0; }
.how-wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.how-section .section-head h2 { color: var(--card); }
.how-section .section-head p { color: color-mix(in srgb, var(--card) 64%, transparent); }
.how-section .eyebrow { color: var(--lime); }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-step {
  background: var(--card); color: var(--ink); border: 2px solid var(--card);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: 6px 6px 0 var(--lime);
  transition: transform .25s var(--ease);
}
.how-step:hover { transform: translateY(-4px) rotate(-.4deg); }
.how-num { font-family: var(--mono); font-size: 34px; font-weight: 900; color: var(--ink); letter-spacing: -.06em; display: block; margin-bottom: 12px; }
.how-step:nth-child(2) { box-shadow: 6px 6px 0 var(--violet); }
.how-step:nth-child(3) { box-shadow: 6px 6px 0 var(--sky); }
.how-step h3 { font-size: 18px; margin-bottom: 8px; }
.how-step p { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0; }

.cta-section { max-width: 1240px; margin: 0 auto; padding: 72px 28px; }
.cta-card {
  position: relative; overflow: hidden; background: var(--lime); border: 3px solid var(--ink);
  border-radius: var(--radius-xl); padding: 42px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-copy h2 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 12px; letter-spacing: -.045em; }
.cta-copy p { max-width: 520px; margin: 0; color: color-mix(in srgb, var(--ink) 75%, transparent); font-size: 14px; line-height: 1.8; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cta-note { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; }
.cta-spark { position: absolute; font-size: 90px; line-height: 1; opacity: .18; }
.cta-spark.s1 { right: 26%; top: -18px; transform: rotate(12deg); }
.cta-spark.s2 { right: 8%; bottom: -30px; transform: rotate(-18deg); font-size: 140px; }

.site-footer { border-top: 2px solid var(--ink); background: var(--paper-2); }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 40px 28px; display: flex;
  align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 340px; }
.footer-brand strong { font-size: 17px; }
.footer-brand p { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-meta {
  width: 100%; border-top: 1.5px dashed color-mix(in srgb, var(--ink) 20%, transparent);
  padding-top: 18px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px 16px;
  font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .05em;
}

/* ---------- 认证页 ---------- */
.page-auth { background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 26px 26px; }
.auth-topbar {
  max-width: 1240px; margin: 0 auto; padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.auth-topbar-actions { display: flex; align-items: center; gap: 10px; }
.auth-page {
  max-width: 1240px; margin: 0 auto; padding: 18px 28px 48px;
  display: grid; grid-template-columns: 1fr 1.04fr; gap: 26px; align-items: stretch; min-height: calc(100vh - 170px);
}
.auth-brand-panel {
  position: relative; overflow: hidden; background: var(--ink); color: var(--card);
  border: 3px solid var(--ink); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 38px; display: flex; flex-direction: column; justify-content: space-between;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 24px 24px;
}
.auth-brand-panel::after {
  content: "SSL"; position: absolute; right: -24px; bottom: -58px; font-family: var(--mono);
  font-size: 220px; font-weight: 900; color: var(--lime); opacity: .12; letter-spacing: -.12em; pointer-events: none;
}
.auth-brand-register::after { content: "16"; }
.auth-panel-head { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.auth-panel-head .brand-mark { background: var(--lime); color: #111; box-shadow: 3px 3px 0 rgba(255,255,255,.25); }
.auth-panel-code { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: color-mix(in srgb, var(--card) 60%, transparent); }
.auth-panel-main { position: relative; z-index: 1; }
.auth-panel-main h1 { font-size: clamp(52px, 6vw, 82px); line-height: .92; letter-spacing: -.06em; color: var(--card); margin-bottom: 24px; }
.auth-panel-main h1 .accent { color: var(--lime); }
.auth-panel-main p { max-width: 380px; color: color-mix(in srgb, var(--card) 72%, transparent); font-size: 14px; line-height: 1.8; margin-bottom: 26px; }
.auth-panel-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-panel-badges span {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border: 1.5px solid color-mix(in srgb, var(--card) 32%, transparent); border-radius: 999px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; color: var(--card);
}
.auth-panel-badges .icon { color: var(--lime); }
.auth-panel-foot { display: flex; gap: 18px; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: color-mix(in srgb, var(--card) 48%, transparent); position: relative; z-index: 1; }
.auth-form-panel { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.auth-card { padding: 32px; border-width: 3px; box-shadow: var(--shadow-lg); border-radius: var(--radius-xl); }
.auth-card-head { margin-bottom: 22px; }
.auth-card-head h2 { font-size: 30px; margin: 4px 0 6px; letter-spacing: -.04em; }
.auth-card-head p { color: var(--muted); font-size: 13px; margin: 0; }
.oauth-list { display: flex; flex-direction: column; gap: 10px; }
.oauth-btn {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--card);
  transition: .18s var(--ease); box-shadow: 2px 2px 0 var(--ink);
}
.oauth-btn:hover { background: var(--lime); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.oauth-btn.oauth-xgorb:hover { background: var(--sky); }
.oauth-logo {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto;
  border: 2px solid var(--ink); border-radius: 10px; font-weight: 900; font-size: 17px;
  background: var(--card); box-shadow: 2px 2px 0 var(--ink);
}
.oauth-logo.oauth-fohok, .oauth-btn.oauth-fohok .oauth-logo { background: var(--violet); }
.oauth-logo.oauth-xgorb, .oauth-btn.oauth-xgorb .oauth-logo { background: var(--sky); }
.oauth-text { display: flex; flex-direction: column; line-height: 1.35; flex: 1; min-width: 0; }
.oauth-text b { font-size: 13.5px; }
.oauth-text small { color: var(--muted); font-size: 11px; }
.oauth-btn .icon:last-child { color: var(--muted); }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent); }
.auth-alt { margin-top: 20px; text-align: center; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.auth-alt a { font-weight: 800; color: var(--ink); border-bottom: 2px solid var(--lime); }
.auth-alt-sep { opacity: .4; }
.auth-footnote { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 11px; }
.auth-footnote .icon { color: var(--green); }

/* ---------- 条款页 ---------- */
.prose-page { max-width: 900px; margin: 0 auto; padding: 50px 24px 80px; }
.prose-card { background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 44px; }
.prose-card h1 { font-size: clamp(36px, 5vw, 56px); margin: 8px 0 6px; letter-spacing: -.05em; }
.prose-meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .05em; margin-bottom: 30px; }
.prose-card h2 { font-size: 21px; margin: 30px 0 10px; padding-top: 20px; border-top: 2px dashed color-mix(in srgb, var(--ink) 16%, transparent); }
.prose-card h2:first-of-type { border-top: 0; padding-top: 0; }
.prose-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
.prose-actions { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.prose-summary { font-size: 16px; line-height: 1.9; color: var(--ink); font-weight: 600; padding: 14px 18px; background: var(--lime-soft); border-left: 5px solid var(--ink); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 26px; }
.prose-empty { color: var(--muted); font-size: 14px; font-style: italic; }

/* ---------- 空状态 ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 38px 20px; }
.empty-lg { padding: 70px 20px; }
.empty-icon {
  width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 16px;
  border: 2px solid var(--ink); border-radius: 18px; background: var(--paper-2);
  box-shadow: var(--shadow-sm); color: var(--ink);
}
.empty-state h4 { font-size: 18px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 13px; max-width: 380px; line-height: 1.75; margin-bottom: 18px; }
.empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.inline-empty {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px;
  border: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 10px;
  color: var(--muted); font-size: 13px; background: var(--card-2);
}
.inline-empty a { font-weight: 800; text-decoration: underline; color: var(--ink); }

/* ---------- 动效 ---------- */
.reveal { opacity: 1; transform: none; }
.has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.has-js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .has-js .reveal { opacity: 1; transform: none; }
}

/* ---------- 深色主题对比度修正 ---------- */
.brand-mark { background: #111; color: var(--lime); }
.provider-logo.provider-le,
.provider-logo.provider-gts,
.provider-logo.provider-zerossl,
.dns-account-head .provider-logo { color: #111; }
.oauth-btn:hover { color: #111; }
.oauth-btn:hover .oauth-text small { color: rgba(17, 17, 16, .68); }
.icon-btn:hover, .page-btn:hover, .tool-action:hover, .download-tile:hover,
.copy-field .copy-btn:hover, .hero-quick a:hover { color: #111; }
[data-theme="dark"] .btn-primary, [data-theme="dark"] .btn-danger { color: #111; }
[data-theme="dark"] .btn-ghost { color: var(--ink); }
[data-theme="dark"] .ticker { background: #0b0b09; color: var(--lime); border-color: var(--ink); }
[data-theme="dark"] .ticker-track i { color: #f4f0e6; }
[data-theme="dark"] .auth-brand-panel {
  background-color: #111; color: #f4f0e6;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px);
}
[data-theme="dark"] .auth-panel-main h1 { color: #f4f0e6; }
[data-theme="dark"] .auth-panel-main p { color: rgba(244, 240, 230, .72); }
[data-theme="dark"] .auth-panel-code { color: rgba(244, 240, 230, .55); }
[data-theme="dark"] .auth-panel-foot { color: rgba(244, 240, 230, .45); }
[data-theme="dark"] .auth-panel-badges span { color: #f4f0e6; border-color: rgba(244, 240, 230, .3); }
[data-theme="dark"] .choice-card input:checked + .choice-body { color: #111; }
[data-theme="dark"] .choice-card input:checked + .choice-body .choice-check { background: #111; color: var(--lime); }
[data-theme="dark"] .choice-card input:checked + .choice-body .choice-desc { color: rgba(17, 17, 16, .66); }
[data-theme="dark"] .wizard-progress-item.is-active span { color: #111; }
[data-theme="dark"] .bottom-new { background: #111; color: var(--lime); border-color: var(--ink); box-shadow: 3px 3px 0 var(--lime); }
[data-theme="dark"] .order-step.is-current span { color: #111; }
[data-theme="dark"] .expiry-big.is-urgent { color: var(--tone-danger-ink); }
[data-theme="dark"] .chart-bar, [data-theme="dark"] .mix-bar > span { border-color: var(--ink); }
[data-theme="dark"] .nav-item.is-active, [data-theme="dark"] .filter-tab.is-active { color: #111; }
[data-theme="dark"] .filter-tab.is-active span { color: #111; background: rgba(17, 17, 16, .12); }
[data-theme="dark"] .wizard-progress-item.is-done span { background: #111; color: var(--lime); }
[data-theme="dark"] .progress > span { border-right-color: var(--ink); }

/* ---------- SSL 在线检测工具 ---------- */
.home-tool { max-width: 1240px; margin: 0 auto; padding: 66px 28px 6px; }
.home-tool-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 38px; align-items: center; }
.home-tool h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.045em; margin: 0 0 14px; }
.home-tool .marker { position: relative; display: inline-block; padding: 0 .06em; }
.home-tool .marker::before { content: ""; position: absolute; inset: auto .02em .1em; height: .3em; background: var(--lime); z-index: -1; }
.home-tool p { margin: 0; max-width: 520px; font-size: 15px; line-height: 1.85; color: var(--muted); }
.home-tool-box {
  border: 2px solid var(--ink); border-radius: var(--radius-lg); background: var(--card);
  box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 15px;
}
.home-tool-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.home-tool-form .input { min-height: 52px; font-size: 16px; }
.home-tool-form .btn { min-height: 52px; padding-inline: 20px; }
.home-tool-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.home-tool-links a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; transition: .16s var(--ease); }
.home-tool-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 900px) {
  .home-tool { padding: 48px 20px 4px; }
  .home-tool-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-tool-form { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 备案与版权 ---------- */
.legal-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 12px; color: var(--muted); font-family: var(--font); letter-spacing: 0; }
.legal-item { display: inline-flex; align-items: center; gap: 6px; color: inherit; border-bottom: 1px solid transparent; transition: .16s var(--ease); }
.legal-item .icon { flex: none; opacity: .75; }
a.legal-item:hover { color: var(--ink); border-bottom-color: var(--ink); }
.legal-icon { width: 16px; height: 16px; object-fit: contain; display: inline-block; flex: none; }
.legal-line.is-compact { gap: 6px 14px; font-size: 11px; }
.legal-line.is-compact .legal-icon { width: 14px; height: 14px; }

/* ---------- Markdown 正文 ---------- */
.markdown { color: var(--ink-soft); }
.markdown > :first-child { margin-top: 0; }
.markdown h2 { font-size: 22px; margin: 34px 0 12px; padding-top: 22px; border-top: 2px dashed color-mix(in srgb, var(--ink) 16%, transparent); color: var(--ink); letter-spacing: -.03em; }
.markdown h3 { font-size: 18px; margin: 28px 0 10px; color: var(--ink); }
.markdown h4, .markdown h5, .markdown h6 { font-size: 15.5px; margin: 22px 0 8px; color: var(--ink); }
.markdown h2:first-child, .markdown h3:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.markdown p { font-size: 14px; line-height: 1.95; margin: 0 0 14px; }
.markdown ul, .markdown ol { margin: 0 0 16px; padding-left: 22px; font-size: 14px; line-height: 1.9; }
.markdown ul { list-style: none; padding-left: 2px; }
.markdown ul > li { position: relative; padding-left: 20px; }
.markdown ul > li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 8px; background: var(--lime); border: 1.5px solid var(--ink); }
.markdown ol > li { margin-left: 4px; }
.markdown li + li { margin-top: 4px; }
.markdown a { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--lime); transition: .16s var(--ease); }
.markdown a:hover { background: var(--lime); }
.markdown strong { color: var(--ink); font-weight: 800; }
.markdown em { font-style: italic; }
.markdown del { opacity: .6; }
.markdown code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 5px; padding: 1px 5px; }
.markdown pre { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; margin: 0 0 18px; }
.markdown pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 12.5px; line-height: 1.75; }
.markdown blockquote { margin: 0 0 18px; padding: 14px 18px; background: var(--lime-soft); border-left: 5px solid var(--ink); border-radius: 0 var(--radius) var(--radius) 0; }
.markdown blockquote p { margin: 0; color: var(--ink); font-size: 13.5px; line-height: 1.85; }
.markdown hr { border: 0; border-top: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent); margin: 26px 0; }
.markdown img { max-width: 100%; height: auto; border: 2px solid var(--ink); border-radius: var(--radius); margin: 6px 0 16px; }
[data-theme="dark"] .markdown pre { background: #0b0b09; }

.tool-hero { position: relative; overflow: hidden; padding: 54px 28px 34px; border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.tool-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px; opacity: .5;
}
.tool-hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.tool-hero h1 { font-size: clamp(38px, 6vw, 64px); margin: 14px 0 18px; }
.tool-lede { max-width: 640px; font-size: 15.5px; line-height: 1.85; color: var(--ink-soft); margin-bottom: 20px; }
.tool-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--ink-soft); }
.tool-points li { display: inline-flex; align-items: center; gap: 7px; }
.tool-points .icon { color: var(--green); }
.tool-body { max-width: 1180px; margin: 0 auto; padding: 32px 24px 82px; display: flex; flex-direction: column; gap: 22px; }

.sse-form { display: flex; flex-direction: column; gap: 14px; }
.sse-form-row { display: flex; flex-direction: column; gap: 10px; }
.sse-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sse-label-port { display: none; }
.sse-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: stretch; }
.sse-fields .input { min-height: 52px; font-size: 17px; font-family: var(--mono); }
.sse-fields .select { min-height: 52px; min-width: 190px; font-family: var(--mono); }
.sse-fields .btn { min-height: 52px; padding-inline: 24px; font-size: 15px; }
.sse-hint { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

/* 这些区块自带 display，必须显式让 hidden 生效 */
.sse-status[hidden], .sse-error[hidden], .sse-result[hidden] { display: none !important; }
.sse-spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--ink) 25%, transparent); border-top-color: var(--ink); animation: sse-spin .8s linear infinite; display: inline-block; }
@keyframes sse-spin { to { transform: rotate(360deg); } }
.sse-status { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 2px dashed var(--ink); border-radius: var(--radius); background: var(--card-2); font-size: 13.5px; font-family: var(--mono); }
.sse-error {
  padding: 14px 18px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--tone-danger-bg);
  color: var(--tone-danger-ink); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-sm);
}
.sse-result { display: flex; flex-direction: column; gap: 22px; }

.sse-verdict {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 26px;
  padding: 24px; border: 2px solid var(--ink); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow);
}
.sse-verdict.tone-success { background: var(--tone-success-bg); }
.sse-verdict.tone-info { background: var(--tone-info-bg); }
.sse-verdict.tone-warning { background: var(--tone-warning-bg); }
.sse-verdict.tone-danger { background: var(--tone-danger-bg); }
.sse-grade { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 104px; height: 104px; border: 3px solid var(--ink); border-radius: 24px; background: var(--card); box-shadow: var(--shadow-sm); }
.sse-grade-letter { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.sse-grade-score { font-family: var(--mono); font-size: 13px; margin-top: 4px; }
.sse-grade-unit { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.sse-verdict-copy h3 { margin: 10px 0 8px; font-size: 21px; }
.sse-target-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.sse-target-line .mono { font-size: 15px; color: var(--ink); font-weight: 700; }
.sse-sep { opacity: .5; }
.sse-countdown { text-align: center; padding-left: 18px; border-left: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent); }
.sse-count-number { display: block; font-size: 46px; font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.sse-count-label { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--muted); }

.sse-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.sse-metrics { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 13.5px; }
.sse-metrics dt { color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; white-space: nowrap; }
.sse-metrics dd { margin: 0; word-break: break-word; font-weight: 600; }
.sse-metrics dd.sse-mono, .sse-mono { font-family: var(--mono); font-weight: 500; }
.sse-metrics-in { margin: 14px 0 0; }

.sse-findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sse-finding { border: 2px solid var(--ink); border-radius: var(--radius); padding: 12px 14px; background: var(--card-2); border-left-width: 6px; }
.sse-finding-title { display: block; font-weight: 800; font-size: 14px; }
.sse-finding-detail { margin: 5px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }
.sse-finding.tone-success { border-left-color: var(--green); background: color-mix(in srgb, var(--tone-success-bg) 45%, var(--card)); }
.sse-finding.tone-info { border-left-color: var(--sky); background: color-mix(in srgb, var(--tone-info-bg) 40%, var(--card)); }
.sse-finding.tone-warning { border-left-color: #f0a500; background: color-mix(in srgb, var(--tone-warning-bg) 50%, var(--card)); }
.sse-finding.tone-danger { border-left-color: var(--red); background: color-mix(in srgb, var(--tone-danger-bg) 50%, var(--card)); }

.sse-chain { display: flex; flex-direction: column; gap: 12px; }
.sse-chain-item { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card-2); overflow: hidden; }
.sse-chain-item.is-leaf { background: var(--card); }
.sse-chain-item summary { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none; }
.sse-chain-item summary::-webkit-details-marker { display: none; }
.sse-chain-item summary:hover { background: color-mix(in srgb, var(--lime) 22%, transparent); }
.sse-chain-role { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; padding: 4px 9px; border: 2px solid var(--ink); border-radius: 999px; background: var(--violet-soft); white-space: nowrap; }
.sse-chain-role.is-leaf { background: var(--lime); }
.sse-chain-role.is-root { background: var(--orange-soft); }
.sse-chain-name { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sse-chain-days { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.sse-chain-item[open] > summary { border-bottom: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent); }
.sse-chain-item .sse-metrics { padding: 16px; }
.sse-sans { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding: 0 16px 16px; }
.sse-sans-label { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-right: 4px; }
.sse-san { font-family: var(--mono); font-size: 11.5px; padding: 3px 9px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--card); }
.sse-san.is-ip { background: var(--sky-soft); }
.sse-empty { color: var(--muted); font-size: 13px; }

.sse-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sse-actions .btn.is-copied { background: var(--lime); }
.sse-footnote { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.7; }

@media (max-width: 900px) {
  .sse-fields { grid-template-columns: minmax(0, 1fr); }
  .sse-label-port { display: block; }
  .sse-columns { grid-template-columns: minmax(0, 1fr); }
  .sse-verdict { grid-template-columns: auto minmax(0, 1fr); gap: 18px; }
  .sse-countdown { grid-column: 1 / -1; border-left: 0; border-top: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent); padding: 14px 0 0; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .sse-count-number { font-size: 34px; }
}

