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

:root {
  --bg: #090b10;
  --bg-2: #10131b;
  --card: #151924;
  --card-2: #1b2030;
  --ink: #f3f5f8;
  --muted: #8d95a8;
  --faint: #8b93a6;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #e7c36a;
  --gold-2: #f6e0a0;
  --gold-dim: rgba(231, 195, 106, 0.14);
  --ok: #3dcf8e;
  --ok-dim: rgba(61, 207, 142, 0.14);
  --warn: #e8b04a;
  --warn-dim: rgba(232, 176, 74, 0.14);
  --bad: #e86b6b;
  --bad-dim: rgba(232, 107, 107, 0.14);
  --blue: #7aa2ff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Segoe UI", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-glow {
  position: absolute;
  top: -120px; left: 50%;
  width: 820px; height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(231, 195, 106, 0.16), transparent 70%);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 30;
  background: #f3d78a; color: #1a1406; font-weight: 800;
  padding: 8px 12px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid #f6e0a0;
  outline-offset: 3px;
}

.rules-plain { margin: 8px 0 28px; }
.rules-plain .rule-date { color: var(--gold-2); font-weight: 800; margin: 0 0 8px; }
.rules-plain ul { margin: 8px 0 12px; padding-left: 1.2em; color: var(--muted); }
.rules-plain li { margin: 4px 0; }

.topbar, main, .footer {
  width: min(920px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo { display: flex; flex-shrink: 0; filter: drop-shadow(0 0 12px rgba(231, 195, 106, 0.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.brand-text span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.badge-demo {
  flex-shrink: 0;
  border: 1px solid rgba(231, 195, 106, 0.4);
  background: var(--gold-dim);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
}

.hero { padding: 36px 0 12px; text-align: center; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; }
.hero h1 {
  margin: 0 auto;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.lead { margin: 16px auto 0; max-width: 640px; color: var(--muted); font-size: 16px; }

body.has-report .hero { padding: 12px 0 0; }
body.has-report .hero h1 { font-size: clamp(20px, 3.6vw, 28px); }
body.has-report .lead { display: none; }
body.has-report .eyebrow { margin-bottom: 6px; }

.search { margin: 32px auto 0; max-width: 640px; text-align: left; }
body.has-report .search { margin-top: 16px; }

.search-box {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
  border-color: rgba(231, 195, 106, 0.55);
  box-shadow: var(--shadow), 0 0 0 4px rgba(231, 195, 106, 0.12);
}
.search-box.shake { animation: shake 0.42s ease; border-color: var(--bad); }
@keyframes shake {
  20%, 80% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.at { color: var(--gold); font-weight: 700; font-size: 18px; }
#handle-input, #home-handle {
  flex: 1; min-width: 0; border: 0; outline: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 17px; height: 44px;
}
#handle-input::placeholder, #home-handle::placeholder { color: #5d6578; }

.btn {
  appearance: none; border: 0;
  background: linear-gradient(180deg, #f3d78a, #c9a246);
  color: #1a1406;
  font: inherit; font-weight: 800; font-size: 15px;
  padding: 0 18px; height: 44px; border-radius: 12px;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(201, 162, 70, 0.28);
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.7; cursor: wait; }

.hint, .form-error { margin: 12px 4px 0; font-size: 13px; color: var(--muted); }
.form-error { color: #ff9a9a; }
.linkish {
  appearance: none; border: 0; padding: 0; background: none;
  color: var(--gold-2); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

.loading-panel, .report { margin: 28px 0 40px; }
.loading-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.spinner {
  width: 36px; height: 36px; margin: 0 auto 16px;
  border: 3px solid rgba(231, 195, 106, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title { margin: 0; font-weight: 700; font-size: 18px; }
.loading-step { margin: 8px 0 0; color: var(--gold-2); font-size: 14px; }
.loading-list {
  list-style: none; margin: 20px auto 0; padding: 0;
  max-width: 320px; text-align: left; color: var(--muted); font-size: 14px;
}
.loading-list li { padding: 6px 0 6px 22px; position: relative; }
.loading-list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 8px; height: 8px; border-radius: 50%; background: #3a4154;
}
.loading-list li.on::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.loading-list li.done::before { background: var(--ok); box-shadow: none; }

.demo-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: linear-gradient(90deg, rgba(232, 176, 74, 0.16), rgba(232, 107, 107, 0.08));
  border: 1px solid rgba(232, 176, 74, 0.35);
  color: #f8e2aa;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.demo-banner .dot {
  flex-shrink: 0; margin-top: 2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--warn); box-shadow: 0 0 10px var(--warn);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 14px; font-size: 18px; letter-spacing: 0.02em; }
.card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.card-head h2 { margin: 0; }
.subtle { color: var(--muted); font-size: 13px; }

.profile { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: #1a1406;
  background: linear-gradient(180deg, #f3d78a, #c9a246);
  flex-shrink: 0;
}
.profile h2 { margin: 0; font-size: 20px; }
.handle-line { color: var(--muted); font-size: 14px; margin: 2px 0 0; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 6px 12px;
  font-size: 13px; font-weight: 700; margin-top: 8px;
}
.status-pill.ok { background: var(--ok-dim); color: var(--ok); }
.status-pill.warn { background: var(--warn-dim); color: #f3c56a; }
.status-pill.bad { background: var(--bad-dim); color: #ff9a9a; }

.tag {
  display: inline-flex; align-items: center;
  background: var(--gold-dim); color: var(--gold-2);
  border-radius: 999px; padding: 4px 10px;
  font-size: 13px; font-weight: 700;
}

.flag {
  font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 2px 8px;
  white-space: nowrap;
}
.flag.ok { background: var(--ok-dim); color: var(--ok); }
.flag.warn { background: var(--warn-dim); color: #f3c56a; }
.flag.bad { background: var(--bad-dim); color: #ff9a9a; }

.callout {
  background: var(--gold-dim);
  border: 1px solid rgba(231, 195, 106, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  color: #efe1b6;
  font-size: 13px;
}
.callout.plain {
  background: var(--card-2);
  border-color: var(--line);
  color: var(--muted);
}
.callout.warn {
  background: var(--warn-dim);
  border-color: rgba(232, 176, 74, 0.3);
  color: #f8e2aa;
}

/* Tabs */
.tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 6px;
  margin: 0 0 16px;
  background: rgba(12, 14, 20, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.tabs button {
  appearance: none; border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit; font-weight: 700; font-size: 14px;
  height: 42px; border-radius: 10px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  background: linear-gradient(180deg, #f3d78a, #c9a246);
  color: #1a1406;
  box-shadow: 0 4px 12px rgba(201, 162, 70, 0.25);
}
@media (prefers-reduced-motion: no-preference) {
  .tab-panel { animation: rise 0.35s ease; }
}
@keyframes rise {
  from { transform: translateY(8px); }
  to { transform: none; }
}

.big-num {
  font-size: 42px; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
}
.big-num span {
  font-size: 16px; color: var(--muted);
  font-weight: 600; margin-left: 6px;
}
.gold-num { color: var(--gold-2); }

.kpi-grid, .grid-2, .grid-3 {
  display: grid; gap: 12px;
}
.kpi-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.kpi {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.kpi .k { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.kpi .v { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.kpi .s { display: block; margin-top: 4px; font-size: 12px; color: var(--faint); }

.metric { padding: 14px 0 4px; border-top: 1px solid var(--line); }
.metric:first-child { border-top: 0; padding-top: 0; }
.metric-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
}
.metric-name { font-weight: 700; }
.metric-value { font-variant-numeric: tabular-nums; font-weight: 700; }
.metric-note { margin: 4px 0 10px; color: var(--faint); font-size: 12px; }

.bar { height: 10px; background: #232838; border-radius: 999px; overflow: hidden; }
.bar > i {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #c9a246, #f3d78a);
  transition: width 0.8s ease;
}
.bar > i.ok { background: linear-gradient(90deg, #1fa86b, #3dcf8e); }
.bar > i.warn { background: linear-gradient(90deg, #c4891e, #e8b04a); }
.bar > i.bad { background: linear-gradient(90deg, #c44a4a, #e86b6b); }
.bar > i.blue { background: linear-gradient(90deg, #4d74d9, #7aa2ff); }

.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.plan-table th, .plan-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.plan-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.plan-table td:nth-child(2),
.plan-table th:nth-child(2) { color: var(--blue); }
.plan-table td:nth-child(3),
.plan-table th:nth-child(3) { color: var(--gold-2); font-weight: 700; }
.plan-table .row-k { color: var(--ink); font-weight: 600; }

.date-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}
.date-card {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.date-card .k { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.date-card .v { font-size: 18px; font-weight: 800; line-height: 1.35; }
.date-card.goal { border-color: rgba(231, 195, 106, 0.3); }
.date-card.goal .v { color: var(--gold-2); }

.chart-wrap { margin-top: 8px; }
.line-chart { width: 100%; height: auto; display: block; overflow: visible; }
.line-chart text {
  font-family: var(--font);
  fill: var(--muted);
  font-size: 12px;
}
.legend {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin: 8px 0 0; font-size: 12px; color: var(--muted);
}
.legend i {
  display: inline-block; width: 16px; height: 3px;
  border-radius: 2px; margin-right: 6px; vertical-align: middle;
}
.legend .cur { background: var(--blue); }
.legend .goal { background: var(--gold); }
.legend .line { background: transparent; border-top: 2px dashed #e86b6b; width: 16px; height: 0; }

.tips, .myths, .comp-list, .factor-list, .type-list { display: grid; gap: 10px; }
.tip, .myth, .comp, .factor {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.tip { display: flex; gap: 10px; align-items: flex-start; }
.tip .n {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-dim); color: var(--gold-2);
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
  margin-top: 1px;
}
.myth strong { display: block; color: #ffb1b1; font-size: 13px; margin-bottom: 2px; }
.myth p { margin: 0; font-size: 13px; color: var(--muted); }

.factor-row, .comp-row, .type-row {
  display: flex; align-items: center; gap: 10px;
}
.factor-name, .comp-name, .type-name {
  width: 108px; flex-shrink: 0; font-size: 13px;
}
.factor-bar, .comp-bar, .type-bar {
  flex: 1; height: 8px; background: #232838; border-radius: 99px; overflow: hidden;
}
.factor-bar > i, .comp-bar > i, .type-bar > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #c9a246, #f3d78a);
  transition: width 0.8s ease;
}
.comp-bar > i.you { background: linear-gradient(90deg, #c9a246, #f3d78a); }
.comp-bar > i.avg { background: linear-gradient(90deg, #4d74d9, #7aa2ff); }
.type-bar > i { background: linear-gradient(90deg, #4d74d9, #7aa2ff); }
.factor-pct, .comp-val, .type-pct {
  width: 52px; text-align: right;
  font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.comp-head {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted); margin-bottom: 2px;
}

.formula {
  background: #10141e;
  border: 1px dashed rgba(231, 195, 106, 0.25);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: #d7dce8;
}
.formula strong { color: var(--gold-2); }

.money { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--gold-2); }
.money-unit {
  display: block; margin-top: 4px;
  color: var(--muted); font-size: 13px; font-weight: 600;
}

.footer { padding: 8px 0 48px; color: var(--faint); font-size: 12px; }
.footer a { color: #cfc09a; }
.footer .copy { margin-top: 16px; }

@media (max-width: 720px) {
  .topbar, main, .footer { width: min(920px, calc(100% - 24px)); }
  .search-box { flex-wrap: wrap; padding: 10px; }
  #handle-input, #home-handle { width: calc(100% - 28px); flex: 1 1 auto; }
  .btn { width: 100%; }
  .kpi-grid, .grid-2, .grid-3, .date-box { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; text-align: left; }
  .tabs button { font-size: 13px; height: 40px; padding: 0 4px; }
  .big-num { font-size: 34px; }
  .plan-table { font-size: 13px; }
  .plan-table th, .plan-table td { padding: 8px 6px; }
  .factor-name, .comp-name, .type-name { width: 84px; }
  .card { padding: 16px; }
}

.src-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}
.src-badge.real { background: var(--ok-dim); color: var(--ok); }
.src-badge.est { background: var(--warn-dim); color: #f3c56a; }
.src-badge.miss { background: #2a3144; color: var(--faint); }

.avatar-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1b2030;
}

.error-box {
  background: var(--bad-dim);
  border: 1px solid rgba(232, 107, 107, 0.35);
  color: #ffb1b1;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14px;
}
.error-box strong { display: block; margin-bottom: 4px; color: #ffd0d0; }

.data-line {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.cal-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.cal-form label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.cal-form select,
.cal-form input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #10141e;
  color: var(--ink);
  font: inherit;
  padding: 0 10px;
}
.cal-form .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cal-msg { font-size: 13px; color: var(--muted); }
.cal-msg.ok { color: var(--ok); }
.cal-msg.err { color: #ff9a9a; }

.earn-subhead {
  margin: 16px 0 8px;
  font-size: 15px;
  font-weight: 800;
}
.earn-tools .earn-subhead:first-child { margin-top: 0; }
.rate-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.rate-pick {
  appearance: none;
  border: 1px solid var(--line);
  background: #10141e;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.rate-pick[aria-pressed="true"] {
  background: var(--gold-dim);
  border-color: rgba(231, 195, 106, 0.55);
  color: var(--gold-2);
}
.earn-custom { max-width: 320px; margin-bottom: 8px; }
.earn-note { margin: 0 0 12px; }
.earn-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.btn-quiet {
  appearance: none;
  border: 1px solid rgba(231, 195, 106, 0.45);
  background: transparent;
  color: var(--gold-2);
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  cursor: pointer;
}
.btn-quiet:hover { background: var(--gold-dim); }
#earn-min-note { margin: 0 0 12px; }
#earn-formula { margin-top: 4px; }
#earn-periods .v { font-size: 18px; }
.kpi .v { overflow-wrap: anywhere; }
.cf-turnstile { margin: 8px 0; }

@media (max-width: 720px) {
  .cal-form .row { grid-template-columns: 1fr; }
}

/* ---------- 站内导航 ---------- */
a.brand { color: inherit; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.site-nav a.nav-main { color: var(--gold-2); border-color: rgba(231, 195, 106, 0.35); }
.site-nav a[aria-current="page"] { color: #17130a; background: linear-gradient(180deg, #f3d78a, #c9a246); border-color: transparent; }

/* ---------- 人机验证 ---------- */
.ts-wrap { margin: 10px 4px 0; }
.ts-box:empty { display: none; }
.ts-box { margin-top: 6px; }
.ts-status { margin: 4px 0 0; font-size: 12px; color: var(--faint); min-height: 1em; }
.ts-status[data-state="failed"] { color: var(--warn); }

/* ---------- 首页 ---------- */
.home-hero { padding-bottom: 8px; }
.home-hero .hint a.linkish { color: var(--gold-2); }
.tool-section { margin: 28px 0 32px; }
.section-title { font-size: 15px; color: var(--muted); letter-spacing: 0.1em; margin: 0 0 14px; font-weight: 700; }
.tool-card {
  display: block; position: relative; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; transition: border-color 0.2s, transform 0.2s;
}
.tool-card:hover { border-color: rgba(231, 195, 106, 0.45); transform: translateY(-2px); }
.tool-card h3 { margin: 6px 0 6px; font-size: 18px; }
.tool-card p { margin: 0; color: var(--muted); font-size: 14px; }
.tool-main { background: linear-gradient(135deg, rgba(231, 195, 106, 0.14), rgba(21, 25, 36, 0.9) 60%); border-color: rgba(231, 195, 106, 0.35); padding: 24px; }
.tool-main h3 { font-size: 22px; }
.tool-tag { display: inline-block; font-size: 12px; font-weight: 700; color: #17130a; background: var(--gold); border-radius: 999px; padding: 2px 10px; }
.tool-go { display: inline-block; margin-top: 12px; color: var(--gold-2); font-weight: 700; }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.tool-num { color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: 0.1em; }
.tool-ai .tool-num { color: var(--blue); }

/* ---------- AI 文本检测 ---------- */
.ai-card { margin-top: 24px; }
.ai-label { display: block; font-weight: 700; margin-bottom: 8px; }
#ai-text {
  width: 100%; min-height: 200px; resize: vertical; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink); font: inherit; font-size: 15px; padding: 14px; outline: 0;
}
#ai-text:focus { border-color: rgba(231, 195, 106, 0.55); box-shadow: 0 0 0 4px rgba(231, 195, 106, 0.12); }
.ai-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.ai-count { color: var(--faint); font-size: 13px; }
.ai-count.over { color: var(--bad); }
.ai-service { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.ai-service.off { background: var(--warn-dim); color: #f1d49a; border: 1px solid rgba(232, 176, 74, 0.35); }
.ai-msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.ai-msg.err { background: var(--bad-dim); color: #f3b0b0; }
.ai-msg.info { background: var(--warn-dim); color: #f1d49a; }
.ai-result { margin-top: 18px; }
.ai-score { display: flex; align-items: center; gap: 18px; }
.ai-pct .num { font-size: 52px; font-weight: 800; line-height: 1; }
.ai-pct .unit { font-size: 20px; font-weight: 700; margin-left: 2px; color: var(--muted); }
.ai-score.ok .num { color: var(--ok); }
.ai-score.warn .num { color: var(--warn); }
.ai-score.bad .num { color: var(--bad); }
.ai-verdict { display: flex; flex-direction: column; }
.ai-verdict .k { color: var(--muted); font-size: 13px; }
.ai-verdict strong { font-size: 18px; }
.ai-bar { margin-top: 14px; }
.ai-sub { color: var(--muted); font-size: 14px; }
.ai-warn { margin: 12px 0 0; padding-left: 18px; color: #f1d49a; font-size: 13px; }
.ai-foot { margin-top: 12px; color: var(--faint); font-size: 12px; }
.ai-notes { margin: 18px 0 28px; }
.ai-notes ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.ai-notes li { margin-bottom: 6px; }

@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; padding-top: 14px; }
  .site-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .site-nav a { font-size: 13px; padding: 6px 10px; }
  .tool-grid { grid-template-columns: 1fr; }
  .ai-row .btn { width: auto; }
  .ai-pct .num { font-size: 44px; }
}
.ts-status[data-state="verified"] { color: var(--ok); }
