/* =========================================================================
   奶龙 nailong v2 · 交互网站样式
   深色底 / 极光流体 / 玻璃拟态 / 中文衬线标题 / 大留白
   无外链：字体全部走系统栈，图标为内联 SVG 或字符
   ========================================================================= */

:root {
  --bg: #04060c;
  --bg-soft: #070b14;
  --ink: #eef2fa;
  --ink-soft: #d6e0ef;
  --muted: #9aa6bd;
  --muted-dim: #71809a;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --mint: #8ef5c9;
  --ice: #8fc7ff;
  --violet: #c9b6ff;
  --warm: #ffd18a;
  --bad: #ffa9b6;
  --accent: #9beed8;
  --radius: 24px;
  --radius-sm: 16px;
  --maxw: 1180px;
  --topbar-h: 76px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN",
           "Songti SC", "STSong", "SimSun", "Song", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
          "Source Han Sans SC", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas,
          "Liberation Mono", Menlo, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

::selection {
  background: rgba(142, 245, 201, 0.28);
  color: #ffffff;
}

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #05080f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(143, 199, 255, 0.28), rgba(201, 182, 255, 0.22));
  border-radius: 99px;
  border: 2px solid #05080f;
}
::-webkit-scrollbar-thumb:hover { background: rgba(143, 199, 255, 0.4); }

:focus-visible {
  outline: 2px solid rgba(142, 245, 201, 0.7);
  outline-offset: 3px;
}

/* ------------------------------- 背景层 ------------------------------- */

#aurora {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    620px circle at var(--mx, 50%) var(--my, 40%),
    rgba(150, 210, 255, 0.09),
    rgba(160, 150, 255, 0.04) 40%,
    transparent 68%
  );
  transition: opacity 0.8s ease;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 72% at 50% 0%, rgba(8, 14, 26, 0.24), transparent 58%),
    radial-gradient(ellipse 110% 88% at 50% 108%, rgba(3, 5, 10, 0.86), transparent 62%),
    linear-gradient(180deg, rgba(4, 6, 12, 0.28), transparent 24%, transparent 78%, rgba(4, 6, 12, 0.6));
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

main { position: relative; z-index: 10; }

/* ------------------------------- 通用组件 ------------------------------- */

.glass {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.024) 46%, rgba(255, 255, 255, 0.05));
  box-shadow:
    0 30px 90px -44px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 -1px 0 rgba(0, 0, 0, 0.35) inset;
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 80% at 18% 0%, rgba(255, 255, 255, 0.09), transparent 56%);
  opacity: 0.75;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(14, 20, 32, 0.94); }
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease,
              color 0.3s ease;
}

.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:disabled {
  opacity: 0.34;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(118deg, #a9f7e1 0%, #8fc7ff 58%, #c9b6ff 100%);
  color: #05101a;
  font-weight: 650;
  box-shadow:
    0 16px 44px -16px rgba(140, 225, 255, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
.btn-primary:hover {
  box-shadow:
    0 22px 54px -16px rgba(140, 225, 255, 0.7),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.btn-primary .arrow { transition: transform 0.3s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-glass {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.095);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn-quiet:hover { color: var(--ink); background: rgba(255, 255, 255, 0.045); }

.btn-sm { padding: 8px 15px; font-size: 12.5px; gap: 7px; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); transform: rotate(90deg); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}
.badge-ok {
  color: #9df8d1;
  border-color: rgba(142, 245, 201, 0.36);
  background: rgba(142, 245, 201, 0.09);
}
.badge-bad {
  color: #ffb3bf;
  border-color: rgba(255, 169, 182, 0.36);
  background: rgba(255, 169, 182, 0.09);
}
.badge-warn {
  color: #ffdda3;
  border-color: rgba(255, 209, 138, 0.34);
  background: rgba(255, 209, 138, 0.08);
}
.badge-sm { padding: 3px 9px; font-size: 10.5px; letter-spacing: 0.06em; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  line-height: 1.5;
  white-space: nowrap;
}
.chip-q { color: #bfe6ff; border-color: rgba(143, 199, 255, 0.36); background: rgba(143, 199, 255, 0.08); }
.chip-kind { color: #ffe0a8; border-color: rgba(255, 209, 138, 0.32); background: rgba(255, 209, 138, 0.07); }
.chip-doc { color: #dcc9ff; border-color: rgba(201, 182, 255, 0.32); background: rgba(201, 182, 255, 0.07); }
.chip-cat { color: #a9d6ff; border-color: rgba(143, 199, 255, 0.28); }
.chip-pass { color: #9df8d1; border-color: rgba(142, 245, 201, 0.36); background: rgba(142, 245, 201, 0.08); }
.chip-fail { color: #ffb3bf; border-color: rgba(255, 169, 182, 0.36); background: rgba(255, 169, 182, 0.08); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #9fb0c9;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow-line {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, rgba(142, 245, 201, 0.9), rgba(143, 199, 255, 0));
}

.field label,
.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-dim);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

select,
input[type="text"],
textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 7, 14, 0.42);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
select:focus,
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: rgba(142, 245, 201, 0.55);
  background: rgba(3, 7, 14, 0.6);
  box-shadow: 0 0 0 3px rgba(142, 245, 201, 0.12);
}
textarea { resize: vertical; min-height: 70px; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239aa6bd' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
select option { background: #0b111c; color: var(--ink); }
::placeholder { color: #56637a; opacity: 1; }

.field-wide { grid-column: 1 / -1; }
.field-2 { grid-column: span 2; }
.field-3 { grid-column: span 3; }

/* ------------------------------- 顶栏 ------------------------------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(18px, 4vw, 48px);
  transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(4, 7, 13, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--ice));
  box-shadow: 0 0 18px rgba(142, 245, 201, 0.6);
  animation: dotPulse 3.4s ease-in-out infinite;
}
.brand-name { font-family: var(--serif); font-size: 17px; letter-spacing: 0.14em; }
.brand-sub { color: var(--muted-dim); font-size: 11px; letter-spacing: 0.2em; }

.topnav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav-link:disabled { opacity: 0.32; cursor: not-allowed; }
.nav-link:disabled:hover { color: var(--muted); background: transparent; }
.nav-link.is-active {
  color: #071018;
  background: linear-gradient(120deg, rgba(169, 247, 225, 0.92), rgba(143, 199, 255, 0.9));
  font-weight: 600;
}
.topnav .btn { margin-left: 8px; }

/* ------------------------------- Hero ------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--topbar-h) + 64px) clamp(18px, 5vw, 72px) 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero-aurora { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 18px), 0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.orb-1 {
  width: 46vw; height: 46vw; left: -8vw; top: -6vw;
  background: radial-gradient(circle at 40% 40%, rgba(94, 255, 209, 0.34), transparent 62%);
  animation: drift1 22s ease-in-out infinite;
}
.orb-2 {
  width: 40vw; height: 40vw; right: -6vw; top: 8vh;
  background: radial-gradient(circle at 50% 50%, rgba(110, 160, 255, 0.3), transparent 64%);
  animation: drift2 26s ease-in-out infinite;
}
.orb-3 {
  width: 34vw; height: 34vw; left: 30vw; bottom: -12vw;
  background: radial-gradient(circle at 50% 50%, rgba(196, 156, 255, 0.26), transparent 66%);
  animation: drift3 30s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}
.hero-cn {
  display: block;
  font-size: clamp(4.4rem, 15vw, 10.5rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  background: linear-gradient(118deg, #ffffff 6%, #cfe9ff 38%, #d8c6ff 72%, #9beed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 24px 70px rgba(130, 190, 255, 0.16));
}
.hero-line {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.35rem, 3.6vw, 2.6rem);
  letter-spacing: 0.14em;
  color: #c9d8ec;
  font-weight: 400;
}
.hero-line em {
  font-style: normal;
  color: #ffffff;
  letter-spacing: 0.05em;
}
.hero-sub {
  margin: 34px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  letter-spacing: 0.08em;
  color: #dfe9f8;
}
.hero-desc {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.95;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  margin: 64px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 760px;
}
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.hero-stats dt {
  color: var(--muted-dim);
  font-size: 10.5px;
  letter-spacing: 0.24em;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  color: #eaf2ff;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--muted-dim);
  font-size: 10px;
  letter-spacing: 0.3em;
  cursor: pointer;
}
.scroll-cue-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(142, 245, 201, 0.7));
  animation: cueDrop 2.4s ease-in-out infinite;
  transform-origin: top;
}

/* ------------------------------- 步骤通用 ------------------------------- */

.step {
  display: none;
  position: relative;
  padding: 116px clamp(18px, 4vw, 48px) 96px;
}
.step.is-active {
  display: block;
  animation: stepIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero.is-hidden { display: none; }
.step-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }

.step-head { max-width: 780px; margin-bottom: 44px; }
.step-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.18;
  letter-spacing: 0.03em;
  color: #f2f6ff;
}
.step-desc {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.95;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.action-spacer { flex: 1 1 auto; min-width: 8px; }

.footnote {
  margin: 16px 0 0;
  color: var(--muted-dim);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ------------------------------- 输入 ------------------------------- */

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.panel { padding: 26px; }
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.panel-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: #f1f6ff;
}
.panel-head p {
  margin: 6px 0 0;
  color: var(--muted-dim);
  font-size: 12.5px;
  line-height: 1.7;
}
.panel-tag {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.big-input {
  width: 100%;
  min-height: 340px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(3, 7, 14, 0.38);
  color: #dfe8f6;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.9;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.big-input:focus {
  outline: none;
  border-color: rgba(142, 245, 201, 0.4);
  background: rgba(3, 7, 14, 0.55);
  box-shadow: 0 0 0 3px rgba(142, 245, 201, 0.08);
}

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.panel.is-dragover {
  border-color: rgba(142, 245, 201, 0.55);
  box-shadow:
    0 0 0 3px rgba(142, 245, 201, 0.1),
    0 30px 90px -44px rgba(0, 0, 0, 0.95);
}
.panel.is-dragover .big-input {
  border-color: rgba(142, 245, 201, 0.35);
  background: rgba(12, 30, 26, 0.5);
}
.panel-hint { color: var(--muted-dim); font-size: 11.5px; line-height: 1.6; }
.upload-label { cursor: pointer; }

/* ------------------------------- 第一步 ------------------------------- */

.verdict-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 34px;
  padding: 32px 36px;
  align-items: center;
}
.verdict-main h3 {
  margin: 16px 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.03em;
  color: #f4f8ff;
}
.verdict-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
  max-width: 520px;
}
.verdict-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}
.stat span {
  display: block;
  color: var(--muted-dim);
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.4;
}
.stat b {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.1;
  color: #eef4ff;
}
.stat em { font-style: normal; font-size: 11px; color: var(--muted-dim); margin-left: 4px; }

.dims-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.dim-card {
  padding: 20px 22px;
  border-radius: 20px;
}
.dim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dim-id {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: #f1f6ff;
}
.dim-asks {
  margin: 8px 0 14px;
  color: var(--muted-dim);
  font-size: 11.5px;
  line-height: 1.65;
  min-height: 38px;
}
.dim-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.dim-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--ice));
  box-shadow: 0 0 12px rgba(142, 245, 201, 0.55);
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.dim-card.is-fail .dim-bar i { background: linear-gradient(90deg, #ffb3bf, #ffd18a); box-shadow: 0 0 12px rgba(255, 169, 182, 0.4); }
.dim-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  color: var(--muted-dim);
  font-size: 11px;
  line-height: 1.6;
}
.dim-meta b { font-family: var(--serif); font-size: 0.95rem; color: #dfe8f6; font-weight: 500; }
.dim-detail { margin: 12px 0 0; padding: 0; list-style: none; }
.dim-detail li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}
.dim-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(142, 245, 201, 0.7);
}
.dim-card.is-fail .dim-detail li::before { background: rgba(255, 169, 182, 0.8); }

.output-card {
  margin-top: 26px;
  padding: 24px 28px;
  border-radius: 22px;
}
.output-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.output-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #eef4ff;
}
.output-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(142, 245, 201, 0.8);
  animation: dotPulse 3s ease-in-out infinite;
}
.output-hint { margin-left: auto; color: var(--muted-dim); font-size: 10.5px; letter-spacing: 0.1em; }
.output-pre {
  margin: 16px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #d7e2f2;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 2;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.output-pre.is-pass { color: #9df8d1; }
.output-pre:empty::before { content: "—"; color: var(--muted-dim); }

.supplement { margin-top: 26px; padding: 26px; }
.supplement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.supplement-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ------------------------------- 第二步 ------------------------------- */

.doc-card {
  margin-bottom: 26px;
  overflow: hidden;
  border-radius: 20px;
}
.doc-card summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.doc-card summary::-webkit-details-marker { display: none; }
.doc-title { font-family: var(--serif); font-size: 1.02rem; letter-spacing: 0.04em; color: #eef4ff; }
.doc-meta { color: var(--muted-dim); font-size: 11.5px; }
.doc-chevron {
  margin-left: auto;
  color: var(--muted);
  font-size: 16px;
  transition: transform 0.35s ease;
}
.doc-card[open] .doc-chevron { transform: rotate(180deg); }
.doc-list {
  margin: 0;
  padding: 0 24px 24px;
  list-style: none;
  display: grid;
  gap: 10px;
}
.doc-list li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.doc-list .doc-item-id {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: #cfe0f5;
  letter-spacing: 0.04em;
}
.doc-list .doc-item-text { color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.doc-list .doc-item-text b { color: #dfe8f6; font-weight: 500; }

.score-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 30px 0 8px;
}
.score-caption {
  margin: 0;
  color: var(--muted-dim);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.score-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.q-group { margin-top: 30px; }
.q-group-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 4px 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.q-group-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: #f2f6ff;
}
.q-group-meta { color: var(--muted-dim); font-size: 11.5px; letter-spacing: 0.04em; }

.q-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 26px;
  padding: 24px 26px;
  margin-bottom: 14px;
  border-radius: 22px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.q-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}
.q-card.is-pass { border-color: rgba(142, 245, 201, 0.28); }
.q-card.is-fail { border-color: rgba(255, 169, 182, 0.32); }

.q-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.q-stem {
  margin: 0 0 12px;
  color: #e8eef9;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 500;
}
.q-hint {
  margin: 0;
  color: var(--muted-dim);
  font-size: 11px;
  line-height: 1.75;
}
.q-hint b { color: #b9c6da; font-weight: 500; }

.q-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}
.q-form textarea { min-height: 66px; }
.q-form .field-wide { grid-column: 1 / -1; }

.q-status {
  display: none;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
  font-size: 11.5px;
  line-height: 1.7;
}
.q-card.is-pass .q-status { display: block; color: #9df8d1; }
.q-card.is-fail .q-status { display: block; color: #ffb3bf; }

.perturb-head { margin: 72px 0 26px; max-width: 760px; }
.perturb-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.03em;
  color: #f2f6ff;
}
.perturb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.p-card { padding: 22px 24px; border-radius: 22px; transition: border-color 0.4s, transform 0.4s; }
.p-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.2); }
.p-card.is-pass { border-color: rgba(142, 245, 201, 0.28); }
.p-card.is-fail { border-color: rgba(255, 169, 182, 0.32); }
.p-top { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.p-version {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.p-label {
  padding-top: 1px;
  color: var(--muted-dim);
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}
.p-text {
  margin: 0;
  color: #d9e3f2;
  font-size: 13px;
  line-height: 1.85;
}
.p-score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
}
.p-score label {
  color: var(--muted-dim);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}
.p-score select { width: 120px; padding-top: 7px; padding-bottom: 7px; font-size: 12.5px; }
.p-status { display: none; margin-top: 10px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, 0.09); font-size: 11.5px; line-height: 1.7; }
.p-card.is-pass .p-status { display: block; color: #9df8d1; }
.p-card.is-fail .p-status { display: block; color: #ffb3bf; }

/* ------------------------------- 结论 ------------------------------- */

.result-banner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 32px 36px;
  border-radius: 26px;
}
.result-banner .result-main { flex: 1 1 320px; }
.result-banner h3 {
  margin: 14px 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: 0.03em;
  color: #f4f8ff;
}
.result-banner p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.9; max-width: 560px; }
.result-banner.is-pass h3 {
  background: linear-gradient(112deg, #eafff8, #a9e9ff 45%, #e3c9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.meta-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11.5px;
}
.meta-pill b { font-family: var(--serif); font-size: 1rem; color: #eaf2ff; font-weight: 500; }

/* ------------------------------- 规则弹层 ------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 9, 0.68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.modal-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 30px clamp(20px, 4vw, 42px) 40px;
  border-radius: 30px;
  animation: modalIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.modal-head {
  position: sticky;
  top: -30px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0 18px;
  background: linear-gradient(180deg, rgba(12, 18, 30, 0.96), rgba(12, 18, 30, 0.75) 70%, transparent);
}
.modal-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  color: #f4f8ff;
}
.modal-body { display: grid; gap: 26px; }
.rule-block h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #eef4ff;
}
.rule-block h3 span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(142, 245, 201, 0.3);
  color: var(--mint);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}
.rule-block ul { margin: 0; padding-left: 20px; }
.rule-block li {
  margin: 7px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.rule-block li b { color: #e2ebf8; font-weight: 500; }
.rule-block code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #cfe9ff;
  font-family: var(--mono);
  font-size: 12px;
}

/* ------------------------------- 庆祝层 ------------------------------- */

.celebrate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 42%, rgba(30, 54, 78, 0.55), rgba(3, 5, 10, 0.94) 72%);
  opacity: 0;
  transition: opacity 0.55s ease;
}
.celebrate[hidden] { display: none; }
.celebrate.show { opacity: 1; }
#celebrate-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.celebrate-glow {
  position: absolute;
  width: min(86vw, 920px);
  height: min(86vw, 920px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 245, 220, 0.2), rgba(140, 180, 255, 0.12) 40%, transparent 70%);
  filter: blur(24px);
  animation: breathe 6.5s ease-in-out infinite;
}
.celebrate-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
  animation: celebrateIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.celebrate-eyebrow {
  margin: 0;
  color: #a9bcd6;
  font-size: 11px;
  letter-spacing: 0.34em;
}
.celebrate-title {
  margin: 18px 0 38px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.4rem, 15vw, 10rem);
  line-height: 1.06;
  letter-spacing: 0.02em;
  background: linear-gradient(112deg, #ffffff 4%, #b9f7e5 30%, #a9d8ff 58%, #e3c9ff 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 70px rgba(142, 245, 220, 0.35));
  animation: titleGlow 4.5s ease-in-out infinite;
}
.celebrate-note {
  max-width: 540px;
  margin: 0 auto 34px;
  color: #c6d3e6;
  font-size: 13.5px;
  line-height: 1.95;
}
.celebrate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
body.is-shaking .celebrate-inner { animation: shake 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }

/* ------------------------------- Toast ------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 95;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 16, 27, 0.92);
  color: #e3ecf9;
  font-size: 12.5px;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.9);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------- 页脚 ------------------------------- */

.site-foot {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 36px 24px 44px;
  color: var(--muted-dim);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.foot-sep { opacity: 0.45; }

/* ------------------------------- 滚动入场 ------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ------------------------------- 动画 ------------------------------- */

@keyframes stepIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes celebrateIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}
@keyframes cueDrop {
  0%, 100% { transform: scaleY(0.45); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes drift1 {
  0%, 100% { transform: translate3d(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 18px), 0); }
  50% { transform: translate3d(calc(var(--px, 0) * 18px + 4vw), calc(var(--py, 0) * 18px + 3vh), 0); }
}
@keyframes drift2 {
  0%, 100% { transform: translate3d(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 18px), 0); }
  50% { transform: translate3d(calc(var(--px, 0) * 18px - 5vw), calc(var(--py, 0) * 18px + 4vh), 0); }
}
@keyframes drift3 {
  0%, 100% { transform: translate3d(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 18px), 0); }
  50% { transform: translate3d(calc(var(--px, 0) * 18px + 3vw), calc(var(--py, 0) * 18px - 4vh), 0); }
}
@keyframes breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.75; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes titleGlow {
  0%, 100% { filter: drop-shadow(0 0 60px rgba(142, 245, 220, 0.28)); }
  50% { filter: drop-shadow(0 0 110px rgba(142, 245, 220, 0.5)); }
}
@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 1px, 0); }
  40%, 60% { transform: translate3d(6px, -1px, 0); }
}

/* ------------------------------- 响应式 ------------------------------- */

@media (max-width: 1100px) {
  .dims-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .topnav .nav-link { display: none; }
  .input-grid { grid-template-columns: 1fr; }
  .verdict-card { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .q-card { grid-template-columns: 1fr; gap: 20px; }
  .perturb-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--topbar-h) + 40px); }
  .step { padding-top: 96px; }
  .big-input { min-height: 280px; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .dims-grid { grid-template-columns: 1fr; }
  .q-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-form .field-3 { grid-column: 1 / -1; }
  .supplement-grid { grid-template-columns: 1fr; }
  .doc-list li { grid-template-columns: 1fr; gap: 4px; }
  .hero-stats { gap: 22px; }
  .hero-stats dd { font-size: 1.6rem; }
  .verdict-stats { grid-template-columns: 1fr 1fr; }
  .result-banner { padding: 26px; }
  .panel, .supplement { padding: 20px; }
  .modal-dialog { padding: 22px 18px 30px; border-radius: 24px; }
  .modal-head { top: -22px; }
  .output-card { padding: 20px; }
  .q-card { padding: 20px; }
  .brand-sub { display: none; }
  .topnav .btn { margin-left: 0; }
  .topnav { gap: 2px; }
}

@media (max-width: 420px) {
  .q-form { grid-template-columns: 1fr; }
  .q-form .field-2 { grid-column: 1 / -1; }
  .hero-cn { font-size: 4rem; }
}

/* ------------------------------- 减少动态效果 ------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .orb { animation: none !important; }
  .scroll-cue-line { animation: none !important; }
  #aurora { opacity: 0.9; }
}

/* ------------------------------- v2.1 · Word / 文档分析 / 大模型 ------------------------------- */

input[type="password"] {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 7, 14, 0.42);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
input[type="password"]:focus {
  outline: none;
  border-color: rgba(142, 245, 201, 0.55);
  background: rgba(3, 7, 14, 0.6);
  box-shadow: 0 0 0 3px rgba(142, 245, 201, 0.12);
}

.panel-tag.is-ok { color: #8bf5c9; border-color: rgba(142, 245, 201, 0.35); }
.panel-tag.is-bad { color: #ff9c9c; border-color: rgba(255, 120, 120, 0.35); }

.analysis { margin-top: 22px; }
.analysis-body { margin-top: 8px; }
.analysis-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 4px;
}
.analysis-chips .meta-pill { padding: 6px 12px; font-size: 11px; }
.analysis-report {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}
.analysis-report li::marker { color: rgba(142, 245, 201, 0.7); }
.analysis-entries {
  margin-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}
.analysis-entries summary {
  cursor: pointer;
  color: var(--muted-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
}
#analysis-entries {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  max-height: 340px;
  overflow: auto;
  display: grid;
  gap: 4px;
}
#analysis-entries li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding: 6px 2px;
}
.tag-pill {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.tag-ok { color: #8bf5c9; border-color: rgba(142, 245, 201, 0.4); background: rgba(142, 245, 201, 0.08); }
.tag-warn { color: #ffd18a; border-color: rgba(255, 209, 138, 0.4); background: rgba(255, 209, 138, 0.08); }
.tag-blue { color: #8fc7ff; border-color: rgba(143, 199, 255, 0.4); background: rgba(143, 199, 255, 0.08); }
.tag-bad { color: #ff9c9c; border-color: rgba(255, 120, 120, 0.4); background: rgba(255, 120, 120, 0.08); }
.entry-dim {
  flex: 0 0 auto;
  font-size: 10.5px;
  color: #9fb0c9;
  letter-spacing: 0.06em;
}
.entry-text { flex: 1; line-height: 1.6; word-break: break-word; }
.entry-auto { flex: 0 0 auto; color: #6b7a92; font-style: normal; font-size: 10px; }

.compare-block { margin-top: 16px; }
.compare-block h4 {
  margin: 0 0 8px;
  font-size: 12px;
  color: #cfe0f5;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.compare-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.compare-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.compare-list li em { font-style: normal; color: #8fa1bb; font-size: 11.5px; }

.ai-panel { margin-bottom: 22px; }
.ai-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px 18px;
  margin-top: 16px;
}
.ai-grid .field-wide { grid-column: 1 / -1; }
.ai-grid .field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-dim);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1.4;
}
.ai-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ai-progress { margin-top: 14px; }
.ai-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.ai-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ef5c9, #8fc7ff, #c9b6ff);
  transition: width 0.3s;
}
.ai-progress p { margin: 8px 0 0; color: var(--muted-dim); font-size: 11.5px; }
.ai-log {
  margin-top: 12px;
  max-height: 180px;
  overflow: auto;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(3, 7, 14, 0.5);
  color: #9fb0c9;
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.ai-log[hidden] { display: none; }
.meta-pill-key {
  border-color: rgba(142, 245, 201, 0.35);
  background: rgba(142, 245, 201, 0.08);
  color: #c8f8e4;
}

@media (max-width: 720px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-grid .field-wide { grid-column: auto; }
  .analysis-chips .meta-pill { font-size: 10.5px; }
  #analysis-entries li { flex-wrap: wrap; }
}
