/* PureSogou 样式 */

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

:root {
  --bg: #f5f8f7;
  --bg-soft: #ebf1ee;
  --surface: #ffffff;
  --ink: #15201c;
  --ink-2: #3d4c47;
  --muted: #65756f;
  --line: #dfe7e3;
  --accent: #0b9a6a;
  --accent-2: #16b89a;
  --accent-ink: #ffffff;
  --accent-soft: #dcf2e9;
  --ok: #0b9a6a;
  --ok-soft: #dcf2e9;
  --bad: #d23b3b;
  --bad-soft: #fbe2e2;
  --pending: #65756f;
  --pending-soft: #e6ecea;
  --warn: #c2740a;
  --key-face: linear-gradient(180deg, #ffffff 0%, #f0f4f2 100%);
  --key-side: #c9d4cf;
  --key-line: #d8e0dc;
  --shadow-sm: 0 1px 2px rgba(21, 32, 28, 0.06), 0 1px 1px rgba(21, 32, 28, 0.03);
  --shadow-md: 0 12px 32px -14px rgba(21, 32, 28, 0.22), 0 2px 6px rgba(21, 32, 28, 0.05);
  --shadow-lg: 0 32px 64px -28px rgba(21, 32, 28, 0.32), 0 4px 14px rgba(21, 32, 28, 0.06);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, "Courier New", monospace;
  --key: clamp(30px, 3.7vw, 44px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1312;
    --bg-soft: #141b19;
    --surface: #161d1b;
    --ink: #e7edea;
    --ink-2: #c1ccc7;
    --muted: #8f9d98;
    --line: #25302c;
    --accent: #2fcf99;
    --accent-2: #22c3c9;
    --accent-ink: #06231a;
    --accent-soft: rgba(47, 207, 153, 0.14);
    --ok: #2fcf99;
    --ok-soft: rgba(47, 207, 153, 0.14);
    --bad: #f37171;
    --bad-soft: rgba(243, 113, 113, 0.15);
    --pending: #8f9d98;
    --pending-soft: #1d2724;
    --warn: #f0a24a;
    --key-face: linear-gradient(180deg, #283330 0%, #1d2624 100%);
    --key-side: #0a0f0e;
    --key-line: #2d3935;
  }
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

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

code {
  font-family: var(--mono);
}

svg {
  display: block;
}

i[data-icon] {
  display: inline-flex;
}

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

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, 100% - 48px);
}

/* ---------- 通用 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn small {
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0.85;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--accent-ink);
  box-shadow: 0 10px 22px -10px rgba(11, 154, 106, 0.75);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(11, 154, 106, 0.85);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}

.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.status svg {
  width: 14px;
  height: 14px;
}

.status.is-clean {
  background: var(--ok-soft);
  color: var(--ok);
}

.status.is-bad {
  background: var(--bad-soft);
  color: var(--bad);
}

.status.is-pending {
  background: var(--pending-soft);
  color: var(--pending);
}

/* 滚动进入视口时淡入；系统开启“减少动态效果”时由脚本关闭 */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-on [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 导航 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 16px;
  line-height: 1;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16), 0 4px 10px -4px rgba(11, 154, 106, 0.8);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 52% at 82% 0%, var(--accent-soft) 0%, transparent 70%),
    radial-gradient(38% 40% at 4% 8%, rgba(22, 184, 154, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 58% 18%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 58% 18%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin-top: 18px;
  /* 文字靠背景渐变裁剪着色（见下），画出元素盒子的笔画不会显示；下内边距给 g 等字母的下伸部分留出位置 */
  padding-bottom: 0.24em;
  font-size: clamp(48px, 7.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.035em;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(120deg, var(--ink) 0%, var(--ink) 52%, var(--accent) 128%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-tagline {
  /* 与标题的下内边距相加约等于原来的 22px */
  margin-top: 6px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.hero-intro {
  margin-top: 16px;
  max-width: 34em;
  font-size: 17px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto) minmax(0, 1fr);
  justify-content: start;
  gap: 12px 32px;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-meta[hidden] {
  display: none;
}

.hero-meta div {
  min-width: 0;
}

.hero-meta dt {
  margin-bottom: 2px;
  font-size: 12px;
  color: var(--muted);
}

.hero-meta dd {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hero-meta .mono {
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 输入法候选窗 + 键盘 */

.stage {
  position: relative;
  padding: 52px 0 6px;
}

.ime {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 26px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s both;
}

.ime-pinyin {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.ime-syl {
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.ime-cands {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ime-cands li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 16px;
  white-space: nowrap;
  color: var(--ink-2);
}

.ime-cands li b {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.ime-cands li.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(11, 154, 106, 0.8);
}

.ime-cands li.is-active b {
  color: rgba(255, 255, 255, 0.78);
}

.keys {
  display: grid;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  gap: calc(var(--key) * 0.18);
}

.key-row {
  display: flex;
  gap: calc(var(--key) * 0.18);
}

.key-row:nth-child(1) {
  transform: translateX(calc(var(--key) * -0.3));
}

.key-row:nth-child(2) {
  transform: translateX(calc(var(--key) * 0.2));
}

.key-row:nth-child(3) {
  transform: translateX(calc(var(--key) * -0.05));
}

kbd {
  display: grid;
  place-items: center;
  width: var(--key);
  height: var(--key);
  background: var(--key-face);
  border: 1px solid var(--key-line);
  border-radius: calc(var(--key) * 0.2);
  box-shadow: 0 5px 0 var(--key-side), 0 12px 18px -10px rgba(21, 32, 28, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: calc(var(--key) * 0.3);
  font-weight: 600;
  user-select: none;
  animation: key-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition: transform 0.09s ease, box-shadow 0.09s ease, color 0.09s ease;
}

kbd.key-wide {
  width: calc(var(--key) * 1.6);
}

kbd.is-typing {
  transform: translateY(4px);
  color: var(--accent);
  box-shadow: 0 1px 0 var(--key-side), 0 3px 6px -5px rgba(21, 32, 28, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-2);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.chip svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.chip-1 {
  top: 0;
  left: 0;
  animation-delay: 1s;
}

.chip-2 {
  top: 0;
  right: 0;
  animation-delay: 1.15s;
}

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

@keyframes key-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 区块 ---------- */

.section {
  padding: 80px 0;
  scroll-margin-top: 72px;
}

.section-alt {
  background: linear-gradient(180deg, transparent 0%, var(--bg-soft) 16%, var(--bg-soft) 84%, transparent 100%);
}

.section-head {
  max-width: 660px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 40px);
}

.section-desc {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
}

/* 特性 */

.feature {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: 18px;
}

.feature p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
}

/* 下载来源（网盘分享页）列表 */

.source-list {
  margin-top: 22px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.source-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 16px;
  color: var(--ink);
  transition: background 0.15s ease;
}

.source-row + .source-row {
  border-top: 1px solid var(--line);
}

.source-row:hover {
  background: var(--bg-soft);
}

/* 标志方块：下载来源和检测平台共用（注意别用 .brand-mark，那是站点自己标志的名字） */

.logo-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.logo-tile img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* 自带底色的图标铺满整个方块 */
.logo-tile.is-fill img {
  width: 100%;
  height: 100%;
}

.source-note {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* 空状态 */

.empty {
  padding: 44px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 20px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
}

.empty-icon svg {
  width: 26px;
  height: 26px;
}

.empty h3 {
  font-size: 20px;
}

.empty p {
  max-width: 34em;
  margin: 8px auto 0;
  color: var(--muted);
}

/* 下载卡片 */

.release {
  padding: 28px;
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.file-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.file-icon svg {
  width: 26px;
  height: 26px;
}

.release-title {
  flex: 1;
  min-width: 0;
}

.release-title h3 {
  font-size: 19px;
  overflow-wrap: anywhere;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.release-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* 信息行里的“文件来源”链接 */
.release-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--accent);
}

.release-source:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.release-source svg {
  width: 14px;
  height: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}

.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hash-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 18px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.hash-label {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hash-label svg {
  width: 14px;
  height: 14px;
}

.hash-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
}

.copy-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-btn.is-done {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.release-notes {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.release-scans {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.release-scans-label {
  margin-right: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.scan-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.scan-chip svg {
  width: 15px;
  height: 15px;
}

.scan-chip b {
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--pending-soft);
  color: var(--pending);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

a.scan-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.scan-chip.is-clean svg,
.scan-chip.is-clean b {
  color: var(--ok);
}

.scan-chip.is-clean b {
  background: var(--ok-soft);
}

.scan-chip.is-bad svg,
.scan-chip.is-bad b {
  color: var(--bad);
}

.scan-chip.is-bad b {
  background: var(--bad-soft);
}

/* 检测报告表 */

.scan-panel {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.scan-panel + .scan-panel {
  margin-top: 20px;
}

.scan-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.scan-panel-head h3 {
  flex: 1;
  min-width: 200px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.scan-head-row,
.scan-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
}

.scan-head-row {
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.scan-row > .scan-id {
  grid-column: 1;
  grid-row: 1;
}

.scan-row > .scan-score {
  grid-column: 2;
  grid-row: 1;
}

.scan-row > .scan-status {
  grid-column: 3;
  grid-row: 1;
}

.scan-row > .scan-go {
  grid-column: 4;
  grid-row: 1;
}

/* 哪些引擎报毒、报的什么名称，放在“结果”一栏下方 */
.scan-detail {
  grid-column: 3 / -1;
  grid-row: 2;
  margin-top: -4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.scan-row {
  color: var(--ink);
  transition: background 0.15s ease;
}

.scan-row + .scan-row {
  border-top: 1px solid var(--line);
}

.scan-row:hover {
  background: var(--bg-soft);
}

.scan-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* .scan-logo 的外观由前面共用的 .brand-mark 提供 */

.scan-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.scan-name b {
  font-size: 15px;
}

.scan-name small,
.scanner-host {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.scan-score {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.scan-score small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.scan-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.scan-status svg {
  width: 15px;
  height: 15px;
}

.scan-status.is-clean {
  color: var(--ok);
}

.scan-status.is-bad {
  color: var(--bad);
}

.scan-status.is-pending {
  color: var(--pending);
}

.scan-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--accent);
}

.scan-go svg {
  width: 15px;
  height: 15px;
  transition: transform 0.15s ease;
}

.scan-row:hover .scan-go svg {
  transform: translate(2px, -2px);
}

/* 报毒说明 */

.alert-note {
  margin-top: 20px;
  padding: 26px 28px;
}

.alert-note h3 {
  font-size: 18px;
}

.alert-lead {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--ink-2);
}

.alert-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: alert;
}

.alert-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  counter-increment: alert;
}

/* 逐个写明行列，序号占第一列，标题和正文都从第二列开始 */
.alert-list li::before {
  content: counter(alert);
  display: grid;
  grid-column: 1;
  grid-row: 1;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.alert-list li > b {
  grid-column: 2;
  grid-row: 1;
  font-size: 15px;
  color: var(--ink);
}

.alert-list li > span {
  grid-column: 2;
  grid-row: 2;
}

/* 制作方自己说明的修改内容 */
.alert-maker {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

.alert-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

.alert-basis {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* 检测平台卡片 */

.scanner-grid {
  margin-top: 20px;
}

.scanner {
  padding: 22px 24px;
}

.scanner-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scanner h3 {
  font-size: 17px;
}

.scanner > p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.scanner-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.scanner-limit {
  font-weight: 600;
  color: var(--ink-2);
}

.scanner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
}

.scanner-link svg {
  width: 15px;
  height: 15px;
}

.note {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
}

.note svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--warn);
}

/* 常见问题 */

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::before {
  content: "+";
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item > p {
  padding: 0 20px 18px 58px;
  font-size: 15px;
  color: var(--muted);
}

.faq-item a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-item code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-soft);
  font-size: 13px;
  color: var(--ink-2);
}

/* 页脚 */

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-note {
  max-width: 36em;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.footer-links svg {
  width: 14px;
  height: 14px;
}

.footer-links a:hover {
  color: var(--accent);
}

/* 404 */

.notfound {
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding: 48px 0;
}

.notfound h1 {
  margin-top: 14px;
  font-size: clamp(32px, 5vw, 52px);
}

.notfound .section-desc {
  max-width: 30em;
}

.notfound .hero-actions {
  margin-top: 28px;
}

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

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

@media (max-width: 900px) {
  .hero {
    --key: min(44px, 7.6vw);
    padding: 56px 0 64px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .stage {
    padding-top: 52px;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .scan-panel-head,
  .scan-row {
    padding-inline: 16px;
  }

  .scan-head-row {
    display: none;
  }

  .scan-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding-block: 16px;
  }

  .scan-row > .scan-score {
    grid-column: 2;
    grid-row: 1;
  }

  .scan-row > .scan-status {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .scan-row > .scan-go {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .scan-detail {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0;
  }

  .release {
    padding: 20px;
  }

  .source-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 12px;
  }

  /* 逐个写明行列：说明文字占第二行时，不能让自动排布把后面的按钮挤到下一行 */
  .source-row > .source-badge {
    grid-column: 1;
    grid-row: 1;
  }

  .source-row > .scan-name {
    grid-column: 2;
    grid-row: 1;
  }

  .source-row > .source-note {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .source-row > .scan-go {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  /* 窄屏把宽度让给文件名，“最新版”靠排列顺序体现 */
  .release-head .tag {
    display: none;
  }

  .release-title h3 {
    font-size: 17px;
  }

  .alert-note {
    padding: 20px;
  }

  .alert-list li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 2px 10px;
  }

  .alert-list li::before {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .chip {
    display: none;
  }

  .stage {
    padding-top: 0;
  }

  .ime-cands li:nth-child(n + 3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
