/* =========================================================
   OpenClash 中文站 · 视觉系统
   纸张、墨色、朱砂与一抹荧光绿
   ========================================================= */

:root {
  --paper: #f4f0e6;
  --paper-hi: #fbf8f1;
  --paper-deep: #e9e3d5;
  --ink: #101b2a;
  --ink-soft: #2b3a4b;
  --navy: #173a5e;
  --navy-deep: #0a1b2e;
  --orange: #d63e1d;
  --orange-deep: #b83214;
  --lime: #d9f36a;
  --teal: #1f746c;
  --muted: #64707b;
  --muted-light: #8a9299;
  --line: #d8d1c2;
  --line-dark: rgba(16, 27, 42, 0.18);
  --white: #fffdf8;
  --sans: "Hiragino Sans GB", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1220px;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(16, 27, 42, 0.12);
  --shadow-soft: 0 12px 34px rgba(16, 27, 42, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% -8%, rgba(255, 255, 255, 0.9), transparent 32rem),
    radial-gradient(circle at 92% 12%, rgba(217, 243, 106, 0.16), transparent 26rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 56px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-hi);
  font-size: 14px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 14px;
}

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

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

.serif {
  font-family: var(--serif);
}

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

.emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal;
  line-height: 1;
}

/* ---------- 按钮与标签 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 0 rgba(207, 59, 25, 0.16);
}

.btn-primary:hover {
  background: var(--orange-deep);
  box-shadow: 0 10px 0 rgba(207, 59, 25, 0.12);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper-hi);
}

.btn-dark:hover {
  background: var(--navy);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.14);
}

.btn-lime:hover {
  background: #e7ff87;
}

.btn-ghost {
  border-color: var(--line-dark);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--paper-hi);
}

.btn-light-ghost {
  border-color: rgba(255, 253, 248, 0.32);
  color: var(--paper-hi);
  background: transparent;
}

.btn-light-ghost:hover {
  border-color: var(--paper-hi);
  background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.52);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.chip-orange {
  border-color: rgba(240, 82, 45, 0.28);
  background: rgba(240, 82, 45, 0.09);
  color: var(--orange-deep);
}

.chip-lime {
  border-color: rgba(16, 27, 42, 0.18);
  background: var(--lime);
  color: var(--ink);
}

.chip-ghost-light {
  border-color: rgba(255, 253, 248, 0.26);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 253, 248, 0.88);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.kicker-light {
  color: var(--lime);
}

.section {
  padding: clamp(64px, 8.5vw, 112px) 0;
}

.section-tight {
  padding: clamp(44px, 6vw, 76px) 0;
}

.section-line {
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2,
.display-2 {
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.1vw, 54px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 370px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.section-head-side {
  flex: 0 0 auto;
  padding-bottom: 8px;
}

.section-head-side .text-link {
  font-size: 14px;
}

.section-no {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.section-no strong {
  color: var(--orange);
  font-size: 13px;
}

/* ---------- 顶部公告与导航 ---------- */

.announcement {
  position: relative;
  z-index: 60;
  background: var(--ink);
  color: var(--paper-hi);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
  font-size: 12px;
  line-height: 1.5;
}

.announcement a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.announcement .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(217, 243, 106, 0.5);
  animation: pulse 2.8s infinite;
}

.announcement .announcement-arrow {
  color: var(--lime);
  font-weight: 700;
}

.announcement-note {
  color: rgba(255, 253, 248, 0.54);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 243, 106, 0.5);
  }
  65% {
    box-shadow: 0 0 0 7px rgba(217, 243, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 243, 106, 0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 55;
  border-bottom: 1px solid transparent;
  background: rgba(244, 240, 230, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s;
}

.site-header.is-stuck {
  border-color: var(--line);
  background: rgba(244, 240, 230, 0.97);
  box-shadow: 0 10px 30px rgba(16, 27, 42, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: var(--paper-hi);
  box-shadow: inset 0 -4px 0 rgba(16, 27, 42, 0.04);
}

.brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.site-nav a:hover {
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 99px;
  background: var(--orange);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 17px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}

.nav-cta svg {
  width: 15px;
  height: 15px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--paper-hi);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 4px auto;
  background: currentColor;
  transition:
    transform 0.25s,
    opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

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

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(46px, 7vw, 88px) 0 clamp(50px, 7vw, 84px);
}

.hero::before {
  content: "";
  position: absolute;
  top: 5%;
  right: -7%;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(16, 27, 42, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "路由";
  position: absolute;
  right: -10px;
  bottom: -60px;
  z-index: -1;
  color: rgba(16, 27, 42, 0.035);
  font-family: var(--serif);
  font-size: clamp(180px, 28vw, 380px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
  align-items: center;
  gap: clamp(38px, 5vw, 74px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.hero h1 {
  max-width: 730px;
  font-family: var(--serif);
  font-size: clamp(43px, 5.5vw, 76px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero h1 .mark {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: var(--navy);
}

.hero h1 .mark::after {
  content: "";
  position: absolute;
  right: -0.02em;
  bottom: 0.08em;
  left: -0.03em;
  z-index: -1;
  height: 0.3em;
  transform: rotate(-1.3deg);
  background: var(--lime);
}

.hero-lead {
  max-width: 590px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.9;
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

.hero-visual {
  position: relative;
  min-width: 0;
  padding: 12px 4px 26px 12px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 9% 2% 6% 8%;
  transform: rotate(-4deg);
  border-radius: 34px;
  background: var(--lime);
  opacity: 0.58;
}

.console-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: var(--navy-deep);
  box-shadow: var(--shadow);
  color: var(--paper-hi);
  transform: rotate(1.2deg);
  transition: transform 0.5s var(--ease);
}

.console-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.console-dots {
  display: flex;
  gap: 5px;
}

.console-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.28);
}

.console-dots i:first-child {
  background: var(--orange);
}

.console-dots i:nth-child(2) {
  background: var(--lime);
}

.console-label {
  color: rgba(255, 253, 248, 0.48);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.console-body {
  padding: 18px 18px 17px;
}

.console-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 11px;
}

.console-status .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(217, 243, 106, 0.75);
}

.console-status em {
  margin-left: auto;
  color: rgba(255, 253, 248, 0.36);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
}

.route-canvas {
  position: relative;
  height: 318px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(217, 243, 106, 0.12), transparent 50%);
  background-size: 36px 36px, 36px 36px, auto;
}

.route-canvas::before,
.route-canvas::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.route-canvas::before {
  top: 50%;
  left: 50%;
  width: 210px;
  height: 210px;
  transform: translate(-50%, -50%);
}

.route-canvas::after {
  top: 50%;
  left: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.62;
}

.route-svg path {
  fill: none;
  stroke: rgba(217, 243, 106, 0.42);
  stroke-width: 1;
  stroke-dasharray: 3 7;
  animation: routeDash 14s linear infinite;
}

.route-svg path:nth-child(2) {
  stroke: rgba(240, 82, 45, 0.52);
  animation-duration: 18s;
  animation-direction: reverse;
}

@keyframes routeDash {
  to {
    stroke-dashoffset: -160;
  }
}

.router-node {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
}

.router-mark {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: var(--paper-hi);
  box-shadow:
    0 0 0 8px rgba(255, 253, 248, 0.06),
    0 14px 34px rgba(0, 0, 0, 0.3);
}

.router-mark img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.router-node span {
  color: rgba(255, 253, 248, 0.7);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.route-node {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  min-width: 105px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: rgba(9, 23, 39, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.route-node strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.4;
}

.route-node small {
  color: rgba(255, 253, 248, 0.42);
  font-size: 8px;
  line-height: 1.45;
}

.route-node em {
  color: var(--lime);
  font-style: normal;
}

.node-a {
  top: 17px;
  left: 16px;
}

.node-b {
  top: 22px;
  right: 15px;
}

.node-c {
  bottom: 18px;
  left: 23px;
}

.node-d {
  right: 18px;
  bottom: 19px;
}

.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.console-metrics div {
  display: grid;
  gap: 1px;
  padding: 10px 12px;
  background: var(--navy-deep);
}

.console-metrics span {
  color: rgba(255, 253, 248, 0.38);
  font-size: 9px;
}

.console-metrics strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.console-note {
  padding: 0 19px 14px;
  color: rgba(255, 253, 248, 0.28);
  font-size: 8px;
  text-align: right;
}

.sticker {
  position: absolute;
  top: -14px;
  right: -4px;
  z-index: 4;
  display: inline-grid;
  gap: 1px;
  padding: 10px 14px;
  transform: rotate(6deg);
  border: 1px solid var(--ink);
  background: var(--lime);
  box-shadow: 4px 5px 0 var(--ink);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.sticker small {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.floating-rank {
  position: absolute;
  bottom: 0;
  left: -18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(280px, 78%);
  padding: 12px 14px;
  transform: rotate(-2deg);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: var(--paper-hi);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}

.floating-rank:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: var(--shadow);
}

.floating-rank .rank-orb {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.floating-rank span {
  display: grid;
  gap: 1px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.floating-rank small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.floating-rank b {
  margin-left: auto;
  color: var(--orange);
  font-size: 17px;
}

/* ---------- 跑马灯 ---------- */

.trust-strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.34);
}

.trust-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.trust-track:hover {
  animation-play-state: paused;
}

.trust-set {
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 16px 19px;
}

.trust-set span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.trust-set span::before {
  content: "✳";
  color: var(--orange);
  font-size: 11px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 榜单推广区 ---------- */

.rank-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper-hi);
}

.rank-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
  pointer-events: none;
}

.rank-band::after {
  content: "榜";
  position: absolute;
  right: -50px;
  bottom: -100px;
  color: rgba(255, 255, 255, 0.03);
  font-family: var(--serif);
  font-size: 390px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.rank-band-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  padding: clamp(58px, 8vw, 92px) 0;
}

.rank-band h2 {
  max-width: 650px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.rank-band h2 em {
  color: var(--lime);
  font-style: normal;
}

.rank-band-copy > p {
  max-width: 570px;
  margin-top: 18px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 15px;
  line-height: 1.9;
}

.rank-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.rank-band-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 253, 248, 0.42);
  font-size: 10px;
}

.rank-board {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 14px;
  transform: rotate(1.2deg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: var(--paper-hi);
  box-shadow: 14px 18px 0 rgba(217, 243, 106, 0.12);
  color: var(--ink);
}

.rank-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.rank-board-head strong {
  font-family: var(--serif);
  font-size: 18px;
}

.rank-board-head span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.rank-board-list {
  display: grid;
}

.rank-board-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.rank-board-item:last-child {
  border-bottom: 0;
}

.rank-board-item .num {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.rank-board-item .name {
  display: grid;
  gap: 1px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.rank-board-item .name small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.rank-board-item .score {
  color: var(--navy);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}

.rank-board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 9px;
}

.rank-board-foot a {
  color: var(--orange-deep);
  font-weight: 800;
  text-decoration: none;
}

/* ---------- 下载面板 ---------- */

.download-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--paper-hi);
  box-shadow: var(--shadow-soft);
}

.download-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--line);
}

.download-copy::after {
  content: "↓";
  position: absolute;
  right: -10px;
  bottom: -48px;
  color: rgba(16, 27, 42, 0.055);
  font-family: var(--serif);
  font-size: 210px;
  line-height: 1;
}

.download-copy h2 {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(29px, 3.2vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.download-copy p {
  position: relative;
  z-index: 1;
  max-width: 450px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.version-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.version-line code {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 11px;
}

.package-list {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: clamp(22px, 3vw, 34px);
}

.package-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s var(--ease);
}

.package-row:hover {
  transform: translateX(2px);
  border-color: var(--ink);
  background: var(--white);
}

.file-type {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: var(--paper-hi);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.package-row:nth-child(2) .file-type {
  background: var(--lime);
}

.package-info {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.package-info strong {
  font-size: 13px;
  line-height: 1.5;
}

.package-info small {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package-row .arrow {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 16px;
}

/* ---------- 步骤 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  position: relative;
  padding: 28px 24px 30px;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step-no {
  display: block;
  margin-bottom: 22px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.step h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.step .emoji {
  position: absolute;
  top: 25px;
  right: 22px;
  font-size: 22px;
  opacity: 0.9;
}

/* ---------- 文章卡片 ---------- */

.article-lead {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--paper-hi);
  text-decoration: none;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s;
}

.article-lead:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.article-cover {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: var(--navy);
}

.article-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.7;
}

.article-cover .cover-glyph {
  position: absolute;
  right: -10px;
  bottom: -24px;
  color: rgba(255, 253, 248, 0.16);
  font-family: var(--serif);
  font-size: 180px;
  font-weight: 700;
  line-height: 1;
}

.article-cover .cover-label {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(10, 27, 46, 0.38);
  color: var(--paper-hi);
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.article-cover .cover-caption {
  position: absolute;
  bottom: 20px;
  left: 22px;
  z-index: 2;
  display: grid;
  gap: 4px;
  color: var(--paper-hi);
}

.article-cover .cover-caption strong {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.article-cover .cover-caption span {
  color: rgba(255, 253, 248, 0.54);
  font-size: 9px;
}

.article-lead .article-lead-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
  margin-bottom: 15px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.post-meta .chip {
  margin-right: 2px;
  font-family: var(--sans);
  font-size: 10px;
}

.article-lead h3,
.post-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.article-lead h3 {
  font-size: clamp(26px, 3vw, 38px);
}

.article-lead p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.article-lead .text-link {
  margin-top: 24px;
  font-size: 13px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 24px;
  margin-top: 26px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.4);
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    background 0.3s;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  background: var(--paper-hi);
}

.post-cover {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: var(--paper-deep);
}

.post-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), transparent 45%),
    linear-gradient(125deg, transparent 20%, rgba(255, 255, 255, 0.12) 50%, transparent 80%);
}

.post-cover .cover-glyph {
  position: absolute;
  right: 10px;
  bottom: -24px;
  color: rgba(16, 27, 42, 0.16);
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
}

.tone-lime .post-cover,
.tone-lime .article-cover {
  background: var(--lime);
}

.tone-lime .post-cover .cover-glyph,
.tone-lime .article-cover .cover-glyph {
  color: rgba(16, 27, 42, 0.16);
}

.tone-orange .post-cover,
.tone-orange .article-cover {
  background: var(--orange);
}

.tone-orange .post-cover .cover-glyph,
.tone-orange .article-cover .cover-glyph {
  color: rgba(255, 255, 255, 0.2);
}

.tone-navy .post-cover,
.tone-navy .article-cover {
  background: var(--navy);
}

.tone-teal .post-cover,
.tone-teal .article-cover {
  background: var(--teal);
}

.tone-cream .post-cover {
  background: var(--paper-deep);
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 19px 24px 23px;
}

.post-card h3 {
  font-size: 23px;
}

.post-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.post-card .post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.post-card .post-foot .arrow {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 15px;
}

/* ---------- 常见问题 ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.faq-aside {
  position: sticky;
  top: 112px;
}

.faq-aside h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.faq-aside p {
  max-width: 330px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.25s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  max-width: 760px;
  padding: 0 38px 22px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.faq-item .faq-answer p + p {
  margin-top: 10px;
}

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

.site-footer {
  background: var(--navy-deep);
  color: var(--paper-hi);
}

.footer-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 3.4vw, 34px) 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}

.footer-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-wordmark {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.footer-wordmark strong {
  color: var(--paper-hi);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.footer-wordmark small {
  color: rgba(255, 253, 248, 0.42);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}

.footer-nav a {
  color: rgba(255, 253, 248, 0.68);
  font-size: 12px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--lime);
}

.footer-copy {
  color: rgba(255, 253, 248, 0.46);
  font-size: 10px;
  line-height: 1.6;
  white-space: nowrap;
}

.footer-copy a {
  color: rgba(255, 253, 248, 0.52);
  text-decoration: none;
}

.footer-copy a:hover {
  color: var(--lime);
}

/* ---------- 通用页面：内页头部 ---------- */

.page-hero {
  padding: clamp(48px, 7vw, 84px) 0 clamp(38px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--line-dark);
}

.page-hero h1 {
  max-width: 930px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 70px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.page-hero .page-lead {
  max-width: 730px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

/* ---------- 下载页 ---------- */

.download-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 72px) 0 clamp(40px, 5vw, 56px);
  background: var(--navy-deep);
  color: var(--paper-hi);
}

.download-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}

.download-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 44px;
}

.download-hero .breadcrumbs,
.download-hero .breadcrumbs a {
  color: rgba(255, 253, 248, 0.46);
}

.download-hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.8vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.download-hero p {
  max-width: 600px;
  margin-top: 16px;
  color: rgba(255, 253, 248, 0.58);
  font-size: 15px;
  line-height: 1.85;
}

.version-stamp {
  display: grid;
  justify-self: end;
  gap: 2px;
  padding: 22px 24px;
  transform: rotate(-2deg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  text-align: right;
}

.version-stamp span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.version-stamp strong {
  font-family: var(--mono);
  font-size: clamp(27px, 3.8vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.version-stamp small {
  color: rgba(255, 253, 248, 0.4);
  font-size: 9px;
}

.download-section {
  padding: clamp(44px, 6vw, 72px) 0;
}

.package-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: var(--paper-hi);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s;
}

.package-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.package-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.package-card h2 {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.2;
}

.package-card .file-type {
  width: 52px;
  height: 52px;
  font-size: 11px;
}

.package-card > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.package-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.package-card .checksum {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}

.checksum code {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checksum button {
  padding: 4px 8px;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  background: var(--paper-hi);
  color: var(--ink);
  font-size: 9px;
}

.checksum button:hover {
  border-color: var(--ink);
}

.package-card .btn {
  margin-top: 18px;
}

.package-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(240, 82, 45, 0.24);
  border-radius: 12px;
  background: rgba(240, 82, 45, 0.06);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.package-note .emoji {
  font-size: 18px;
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
  margin-top: 34px;
}

.install-steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.install-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.install-step .no {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.9;
}

.install-step h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
}

.install-step p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.command-panel {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: var(--navy-deep);
  color: var(--paper-hi);
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 253, 248, 0.45);
  font-family: var(--mono);
  font-size: 9px;
}

.command-panel pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  color: #e8e2d3;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  white-space: pre;
}

.command-panel pre .c {
  color: rgba(255, 253, 248, 0.34);
}

.command-panel pre .g {
  color: var(--lime);
}

.command-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 14px 0;
}

.command-tab {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 253, 248, 0.5);
  font-size: 10px;
}

.command-tab[aria-selected="true"] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.dep-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.dep-item {
  min-height: 112px;
  padding: 18px;
  background: var(--paper-hi);
}

.dep-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.dep-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.55;
}

.dep-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

/* ---------- 榜单页 ---------- */

.ranking-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 6.5vw, 78px) 0 clamp(46px, 6vw, 66px);
  background: var(--navy-deep);
  color: var(--paper-hi);
}

.ranking-hero::before {
  content: "严选";
  position: absolute;
  top: -90px;
  right: -30px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--serif);
  font-size: clamp(240px, 36vw, 520px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.ranking-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(217, 243, 106, 0.12), transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 54px 54px, 54px 54px;
  pointer-events: none;
}

.ranking-hero .wrap {
  position: relative;
  z-index: 2;
}

.ranking-hero .breadcrumbs,
.ranking-hero .breadcrumbs a {
  color: rgba(255, 253, 248, 0.45);
}

.ranking-hero .chip {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--lime);
}

.ranking-hero h1 {
  max-width: 1020px;
  margin-top: 17px;
  font-family: var(--serif);
  font-size: clamp(48px, 7.8vw, 102px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.ranking-hero h1 span {
  color: var(--lime);
}

.ranking-hero .ranking-lead {
  max-width: 690px;
  margin-top: 22px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 15px;
  line-height: 1.9;
}

.ranking-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.ranking-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ranking-hero-stats div {
  display: grid;
  gap: 2px;
}

.ranking-hero-stats strong {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 500;
  color: var(--paper-hi);
}

.ranking-hero-stats span {
  color: rgba(255, 253, 248, 0.4);
  font-size: 10px;
}

.rank-filter {
  position: sticky;
  top: 76px;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 230, 0.96);
  backdrop-filter: blur(12px);
}

.rank-filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.filter-tab {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-tab:hover {
  color: var(--ink);
}

.filter-tab[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-hi);
}

.filter-note {
  color: var(--muted);
  font-size: 10px;
}

.ranking-section {
  padding: clamp(40px, 5vw, 66px) 0;
}

.rank-list-head {
  display: grid;
  grid-template-columns: 68px minmax(180px, 1.35fr) minmax(170px, 1fr) 100px 104px 138px;
  gap: 16px;
  padding: 0 18px 12px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.rank-row {
  display: grid;
  grid-template-columns: 68px minmax(180px, 1.35fr) minmax(170px, 1fr) 100px 104px 138px;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  transition:
    background 0.2s,
    transform 0.25s var(--ease);
}

.rank-row:hover {
  background: rgba(255, 253, 248, 0.58);
}

.rank-row.is-top {
  background: rgba(255, 253, 248, 0.42);
}

.rank-no {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 39px;
  font-weight: 700;
  line-height: 1;
}

.rank-no small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
}

.rank-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rank-name strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.rank-name p {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-ring {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--orange) calc(var(--score) * 1%), var(--paper-deep) 0);
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--paper);
}

.rank-row:hover .score-ring::before,
.rank-row.is-top .score-ring::before {
  background: var(--paper-hi);
}

.score-ring strong {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.rank-score small {
  display: grid;
  gap: 1px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.rank-score small b {
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
}

.rank-price {
  display: grid;
  gap: 1px;
}

.rank-price strong {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.rank-price small {
  color: var(--muted);
  font-size: 9px;
}

.rank-fit {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rank-fit .chip {
  padding: 3px 7px;
  font-size: 9px;
}

.rank-action {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.rank-action .btn {
  min-height: 38px;
  padding: 7px 13px;
  font-size: 11px;
  white-space: nowrap;
}

.rank-empty {
  display: none;
  padding: 38px 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.rank-row[hidden] {
  display: none;
}

.rank-details {
  margin-top: 26px;
  border-top: 1px solid var(--line-dark);
}

.rank-detail {
  border-bottom: 1px solid var(--line);
}

.rank-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

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

.rank-detail summary::after {
  content: "+";
  color: var(--orange);
  font-family: var(--mono);
  font-size: 18px;
}

.rank-detail[open] summary::after {
  content: "−";
}

.rank-detail-body {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 30px;
  padding: 0 0 24px;
}

.rank-detail-body p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.rank-detail-body p + p {
  margin-top: 8px;
}

.detail-facts {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.detail-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}

.detail-facts span {
  color: var(--muted);
}

.detail-facts strong {
  text-align: right;
}

.rank-disclaimer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.5);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.rank-disclaimer .emoji {
  font-size: 16px;
}

.method-section {
  background: var(--paper-hi);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.method-item {
  min-height: 190px;
  padding: 22px 18px;
  background: var(--paper);
}

.method-item .method-no {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.method-item h3 {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
}

.method-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.method-item .weight {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.scenario-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.42);
}

.scenario-card .emoji {
  font-size: 26px;
}

.scenario-card h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.3;
}

.scenario-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.scenario-card strong {
  color: var(--ink);
}

.avoid-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 44px;
  border-top: 1px solid var(--line);
}

.avoid-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.avoid-item .x {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.avoid-item h3 {
  font-size: 14px;
  line-height: 1.55;
}

.avoid-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

/* ---------- 教程索引 ---------- */

.guide-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.path-item {
  padding: 24px 20px;
  background: var(--paper-hi);
}

.path-item span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
}

.path-item h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
}

.path-item p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.guide-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.guide-row {
  display: grid;
  grid-template-columns: 58px 1fr 180px 118px;
  align-items: center;
  gap: 24px;
  padding: 24px 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition:
    background 0.2s,
    padding 0.25s var(--ease);
}

.guide-row:hover {
  padding-left: 24px;
  background: rgba(255, 253, 248, 0.52);
}

.guide-row .guide-no {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.guide-row h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.guide-row p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.guide-row .guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.guide-row .guide-time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
}

/* ---------- 文章页 ---------- */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
}

.article-hero {
  padding: clamp(40px, 6vw, 70px) 0 30px;
}

.article-hero-inner {
  max-width: 980px;
}

.article-hero h1 {
  max-width: 920px;
  font-family: var(--serif);
  font-size: clamp(37px, 5.8vw, 70px);
  line-height: 1.13;
  letter-spacing: -0.045em;
}

.article-dek {
  max-width: 760px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.article-meta .chip {
  font-family: var(--sans);
  font-size: 10px;
}

.article-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-dark);
}

.article-banner {
  position: relative;
  height: clamp(190px, 24vw, 300px);
  margin-top: 30px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--navy);
}

.article-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

.article-banner .glyph {
  position: absolute;
  right: 3%;
  bottom: -0.34em;
  color: rgba(255, 253, 248, 0.17);
  font-family: var(--serif);
  font-size: clamp(180px, 28vw, 340px);
  font-weight: 700;
  line-height: 1;
}

.article-banner .banner-caption {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  color: var(--paper-hi);
}

.article-banner .banner-caption span {
  color: rgba(255, 253, 248, 0.52);
  font-family: var(--mono);
  font-size: 9px;
}

.article-banner .banner-caption strong {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.article-banner.tone-lime {
  background: var(--lime);
}

.article-banner.tone-lime::before {
  background:
    linear-gradient(rgba(16, 27, 42, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 27, 42, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
}

.article-banner.tone-lime .glyph {
  color: rgba(16, 27, 42, 0.13);
}

.article-banner.tone-lime .banner-caption {
  color: var(--ink);
}

.article-banner.tone-lime .banner-caption span {
  color: rgba(16, 27, 42, 0.5);
}

.article-banner.tone-orange {
  background: var(--orange);
}

.article-banner.tone-teal {
  background: var(--teal);
}

.article-body-wrap {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  justify-content: center;
  gap: clamp(38px, 6vw, 76px);
  padding: clamp(38px, 5vw, 64px) 0 clamp(50px, 7vw, 84px);
}

.article-sidebar {
  min-width: 0;
}

.toc {
  position: sticky;
  top: 108px;
  padding-top: 4px;
}

.toc h2 {
  margin-bottom: 13px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.toc ol {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
  list-style: none;
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 13px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-decoration: none;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.toc a:hover {
  color: var(--ink);
}

.toc a.is-active {
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 700;
}

.side-cta {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: var(--paper-hi);
}

.side-cta .emoji {
  font-size: 20px;
}

.side-cta strong {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
}

.side-cta p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.side-cta a {
  display: inline-flex;
  gap: 5px;
  margin-top: 12px;
  color: var(--orange-deep);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.article-content {
  min-width: 0;
  font-size: 16px;
  line-height: 1.95;
}

.article-content > p:first-child::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 4.2em;
  font-weight: 700;
  line-height: 0.82;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content h2 {
  position: relative;
  margin: 46px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(26px, 3.1vw, 35px);
  line-height: 1.3;
  letter-spacing: -0.025em;
  scroll-margin-top: 110px;
}

.article-content h2::before {
  content: attr(data-no);
  position: absolute;
  top: 20px;
  right: 0;
  color: var(--line-dark);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.article-content h3 {
  margin: 28px 0 10px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
}

.article-content a {
  color: var(--navy);
  text-decoration-color: rgba(23, 58, 94, 0.35);
}

.article-content a:hover {
  color: var(--orange-deep);
  text-decoration-color: currentColor;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding-left: 1.3em;
}

.article-content li::marker {
  color: var(--orange);
}

.article-content strong {
  font-weight: 800;
}

.article-content code {
  padding: 0.12em 0.32em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-hi);
  font-family: var(--mono);
  font-size: 0.82em;
}

.article-content pre {
  overflow-x: auto;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: var(--navy-deep);
  color: #e8e2d3;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  white-space: pre;
}

.article-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.article-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--orange);
  background: rgba(255, 253, 248, 0.62);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-hi);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.callout .emoji {
  font-size: 18px;
  line-height: 1.5;
}

.callout strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 12px;
}

.callout p {
  margin: 0;
}

.callout-tip {
  border-color: rgba(31, 116, 108, 0.24);
  background: rgba(31, 116, 108, 0.055);
}

.callout-warn {
  border-color: rgba(240, 82, 45, 0.24);
  background: rgba(240, 82, 45, 0.055);
}

.article-table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.65;
}

.article-table th,
.article-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: rgba(255, 253, 248, 0.55);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-end {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.article-end-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.article-end-head strong {
  font-family: var(--serif);
  font-size: 20px;
}

.article-end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-end-actions button {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.article-end-actions button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: var(--lime);
  box-shadow: 7px 8px 0 var(--ink);
}

.article-cta h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.35;
}

.article-cta h2::before {
  display: none;
}

.article-cta p {
  margin: 5px 0 0;
  color: rgba(16, 27, 42, 0.68);
  font-size: 11px;
  line-height: 1.7;
}

.related {
  padding: 0 0 clamp(52px, 7vw, 82px);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.42);
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.25s var(--ease);
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
}

.related-card span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
}

.related-card h3 {
  margin-top: 13px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
}

.related-card small {
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  font-size: 9px;
}

/* ---------- 关于与隐私 ---------- */

.editorial-hero {
  padding: clamp(48px, 7vw, 86px) 0 clamp(38px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.editorial-hero h1 {
  max-width: 900px;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.editorial-hero p {
  max-width: 700px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(38px, 6vw, 84px);
  align-items: start;
  padding: clamp(44px, 6vw, 72px) 0;
}

.about-aside {
  position: sticky;
  top: 112px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: var(--paper-hi);
}

.about-aside img {
  width: 70px;
  height: 70px;
}

.about-aside h2 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.3;
}

.about-aside p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.about-aside dl {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.about-aside dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}

.about-aside dt {
  color: var(--muted);
}

.about-aside dd {
  margin: 0;
  text-align: right;
}

.about-content h2 {
  margin: 34px 0 12px;
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.about-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 1.2em;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.about-content li::marker {
  color: var(--orange);
}

.about-rule {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.about-rule span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
}

.about-rule strong {
  display: block;
  font-size: 14px;
}

.about-rule p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.privacy-content {
  max-width: 800px;
  padding: clamp(42px, 6vw, 70px) 0;
}

.privacy-content h2 {
  margin: 32px 0 10px;
  font-family: var(--serif);
  font-size: 28px;
}

.privacy-content p,
.privacy-content li {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.privacy-content p {
  margin-bottom: 14px;
}

.privacy-content ul {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  padding-left: 1.2em;
}

/* ---------- 404 ---------- */

.error-page {
  display: grid;
  min-height: 64vh;
  place-items: center;
  padding: 60px 0;
  text-align: center;
}

.error-page .error-code {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.error-page h1 {
  max-width: 760px;
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(42px, 6.5vw, 84px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.error-page p {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 15px;
}

.error-page .hero-actions {
  justify-content: center;
}

/* ---------- 动效 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal-delay-1 {
  transition-delay: 0.08s;
}

.js .reveal-delay-2 {
  transition-delay: 0.16s;
}

.js .reveal-delay-3 {
  transition-delay: 0.24s;
}

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

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.88fr);
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(41px, 5.2vw, 66px);
  }

  .rank-list-head,
  .rank-row {
    grid-template-columns: 58px minmax(160px, 1.25fr) minmax(150px, 0.9fr) 88px 94px 120px;
    gap: 12px;
  }

  .rank-name strong {
    font-size: 21px;
  }

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

  .method-item:nth-child(4),
  .method-item:nth-child(5) {
    min-height: 160px;
  }
}

@media (max-width: 980px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 40px));
  }

  .footer-compact {
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 24px 0;
  }

  .footer-nav {
    order: 3;
    width: 100%;
    gap: 6px 20px;
  }

  .footer-copy {
    margin-left: auto;
  }

  .announcement-note {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 114px;
    right: 20px;
    left: 20px;
    z-index: 70;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line-dark);
    border-radius: 16px;
    background: var(--paper-hi);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 15px;
  }

  .site-nav a[aria-current="page"] {
    background: rgba(217, 243, 106, 0.42);
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: min(560px, 100%);
    margin-inline: auto;
  }

  .rank-band-grid {
    grid-template-columns: 1fr;
  }

  .rank-board {
    width: min(500px, 100%);
    margin-inline: auto;
    transform: none;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .article-lead {
    grid-template-columns: 1fr;
  }

  .article-lead .article-cover {
    min-height: 260px;
  }

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

  .faq-aside {
    position: static;
  }

  .download-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .version-stamp {
    justify-self: start;
    transform: none;
    text-align: left;
  }

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

  .dep-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-list-head {
    display: none;
  }

  .rank-row {
    grid-template-columns: 52px minmax(0, 1fr) 90px;
    gap: 10px 14px;
    padding: 18px 0;
  }

  .rank-no {
    font-size: 34px;
  }

  .rank-name {
    grid-column: 2;
  }

  .rank-score {
    grid-column: 2;
    grid-row: 2;
  }

  .rank-price {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .rank-fit {
    grid-column: 2;
    grid-row: 4;
  }

  .rank-action {
    grid-column: 3;
    grid-row: 1 / span 4;
    align-self: center;
    justify-content: flex-end;
  }

  .rank-action .btn {
    padding: 8px 12px;
  }

  .rank-action .btn span {
    display: none;
  }

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

  .avoid-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .guide-path {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-row {
    grid-template-columns: 40px 1fr 100px;
    gap: 16px;
  }

  .guide-row .guide-tags {
    display: none;
  }

  .article-body-wrap {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-inline: auto;
  }

  .article-sidebar {
    display: none;
  }

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

  .about-aside {
    position: static;
  }

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

@media (max-width: 720px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 32px));
  }

  .footer-compact {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
    padding: 22px 0;
  }

  .footer-nav {
    grid-column: 1 / -1;
    order: 3;
    width: auto;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 8px 18px;
  }

  .footer-copy {
    grid-column: 1 / -1;
    order: 4;
    margin: 0;
    text-align: left;
    white-space: normal;
  }

  .announcement-inner {
    min-height: 34px;
    font-size: 10px;
  }

  .announcement .announcement-extra {
    display: none;
  }

  .nav-wrap {
    min-height: 66px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .brand-mark img {
    width: 31px;
    height: 31px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    font-size: 8px;
  }

  .nav-cta {
    display: none;
  }

  .site-nav {
    top: 100px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 55px);
    line-height: 1.1;
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.85;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-proof {
    gap: 8px 15px;
    font-size: 10px;
  }

  .hero-visual {
    padding: 9px 0 18px;
  }

  .sticker {
    top: -8px;
    right: 2px;
  }

  .floating-rank {
    left: 0;
    bottom: -8px;
    width: 82%;
  }

  .route-canvas {
    height: 278px;
  }

  .route-node {
    min-width: 92px;
    padding: 7px 9px;
  }

  .route-node strong {
    font-size: 10px;
  }

  .node-a {
    top: 12px;
    left: 10px;
  }

  .node-b {
    top: 15px;
    right: 10px;
  }

  .node-c {
    bottom: 12px;
    left: 14px;
  }

  .node-d {
    right: 13px;
    bottom: 12px;
  }

  .router-mark {
    width: 70px;
    height: 70px;
  }

  .router-mark img {
    width: 50px;
    height: 50px;
  }

  .section-head {
    display: block;
  }

  .section-head-side {
    margin-top: 18px;
    padding: 0;
  }

  .section-head h2,
  .display-2 {
    font-size: clamp(30px, 8vw, 41px);
  }

  .rank-band h2 {
    font-size: clamp(31px, 8.8vw, 43px);
  }

  .rank-band-actions .btn {
    width: 100%;
  }

  .download-copy,
  .package-list {
    padding: 24px 20px;
  }

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

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 4px;
  }

  .step:last-child {
    border-bottom: 0;
  }

  .step-no {
    margin-bottom: 12px;
  }

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

  .post-cover {
    height: 138px;
  }

  .article-lead .article-cover {
    min-height: 200px;
  }

  .article-lead .article-lead-copy {
    padding: 24px 21px;
  }

  .page-hero h1 {
    font-size: clamp(34px, 10vw, 49px);
  }

  .page-hero .page-lead {
    font-size: 14px;
  }

  .package-cards {
    grid-template-columns: 1fr;
  }

  .package-card {
    padding: 21px;
  }

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

  .rank-filter {
    top: 66px;
  }

  .rank-filter-inner {
    display: block;
    padding: 10px 0;
  }

  .filter-tabs {
    gap: 2px;
  }

  .filter-tab {
    padding: 5px 9px;
    font-size: 11px;
  }

  .filter-note {
    display: none;
  }

  .ranking-hero h1 {
    font-size: clamp(48px, 16vw, 78px);
  }

  .ranking-hero-actions .btn {
    width: 100%;
  }

  .ranking-hero-stats {
    gap: 18px;
  }

  .rank-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .rank-action {
    grid-column: 2;
    grid-row: 5;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .rank-action .btn span {
    display: inline;
  }

  .rank-name strong {
    font-size: 20px;
  }

  .rank-detail-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-facts {
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .method-item {
    min-height: 160px;
  }

  .method-item h3 {
    margin-top: 15px;
  }

  .guide-path {
    grid-template-columns: 1fr;
  }

  .guide-row {
    grid-template-columns: 32px 1fr;
    padding: 19px 4px;
    gap: 13px;
  }

  .guide-row:hover {
    padding-left: 8px;
  }

  .guide-row .guide-time {
    grid-column: 2;
    text-align: left;
  }

  .guide-row h2 {
    font-size: 21px;
  }

  .article-hero {
    padding-top: 32px;
  }

  .article-hero h1 {
    font-size: clamp(30px, 8.2vw, 42px);
  }

  .article-dek {
    font-size: 14px;
  }

  .article-banner {
    height: 170px;
    border-radius: 12px;
  }

  .article-content {
    font-size: 15px;
    line-height: 1.9;
  }

  .article-content h2 {
    font-size: 26px;
  }

  .article-content > p:first-child::first-letter {
    font-size: 3.4em;
  }

  .article-cta {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .article-cta .btn {
    width: 100%;
  }

  .article-end-head {
    display: block;
  }

  .article-end-actions {
    margin-top: 10px;
  }

  .about-aside {
    padding: 19px;
  }

  .editorial-hero h1 {
    font-size: clamp(35px, 10.5vw, 50px);
  }
}

@media (max-width: 430px) {
  .brand-copy small {
    display: none;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .hero-eyebrow {
    font-size: 10px;
  }

  .route-canvas {
    height: 254px;
  }

  .route-node {
    min-width: 83px;
  }

  .route-node small {
    display: none;
  }

  .console-body {
    padding: 13px;
  }

  .console-metrics strong {
    font-size: 10px;
  }

  .console-note {
    padding-inline: 13px;
  }

  .rank-board {
    padding: 16px;
  }

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

  .package-row .arrow {
    display: none;
  }

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

  .method-item {
    min-height: 0;
  }

}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .announcement,
  .site-header,
  .site-footer,
  .article-sidebar,
  .reading-progress,
  .article-cta {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .article-body-wrap {
    display: block;
    max-width: none;
  }

  .article-content a::after {
    content: " (" attr(href) ")";
    font-size: 10px;
  }
}

/* 第五篇文章的纸色封面 */
.tone-cream .post-cover .cover-glyph {
  color: rgba(16, 27, 42, 0.2);
}

.article-banner.tone-cream {
  background: var(--paper-deep);
}

.article-banner.tone-cream::before {
  background:
    linear-gradient(rgba(16, 27, 42, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 27, 42, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
}

.article-banner.tone-cream .glyph {
  color: rgba(16, 27, 42, 0.12);
}

.article-banner.tone-cream .banner-caption {
  color: var(--ink);
}

.article-banner.tone-cream .banner-caption span {
  color: rgba(16, 27, 42, 0.48);
}

.nav-mobile-ranking {
  display: none !important;
}

.hero h1,
.section-head h2,
.ranking-hero h1,
.article-hero h1,
.page-hero h1,
.editorial-hero h1 {
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .site-nav .nav-mobile-ranking {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 5px;
    background: var(--orange);
    color: #fff;
    font-weight: 800;
  }

  .site-nav .nav-mobile-ranking:hover {
    background: var(--orange-deep);
    color: #fff;
  }

  .site-nav .nav-mobile-ranking span {
    font-family: var(--mono);
  }
}
