/* =========================================================
   Clash by Hako · 独立静态站点
   视觉：深墨 / 暖纸 / 钴蓝 / 信号橙
   ========================================================= */

:root {
  --ink: #0b0c0e;
  --ink-soft: #15171b;
  --paper: #f3f0e8;
  --paper-deep: #e8e3d7;
  --surface: #fbf9f3;
  --cream: #f7f4ec;
  --cobalt: #1d34ff;
  --cobalt-deep: #1223c9;
  --orange: #ff5a2b;
  --orange-soft: #ff815d;
  --muted: #6d695f;
  --muted-light: #b5b0a3;
  --line: #d4cec0;
  --line-strong: #bdb6a6;
  --line-dark: rgba(255, 255, 255, 0.14);
  --success: #b9ef6c;
  --display: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", "Menlo", "Consolas", monospace;
  --wrap: 1220px;
  --header-h: 76px;
  --radius: 2px;
  --shadow: 0 26px 70px rgba(11, 12, 14, 0.12);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin-top: 0;
}

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

ul,
ol {
  margin-top: 0;
}

svg {
  display: block;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--cream);
}

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

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

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

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

.notice-bar {
  background: var(--orange);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  line-height: 1.4;
}

.notice-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 7px 0;
}

.notice-date {
  font-family: var(--mono);
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.notice-text strong {
  font-weight: 700;
}

.notice-link {
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

.notice-link:hover {
  color: var(--cream);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 240, 232, 0.94);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(11, 12, 14, 0.08);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--cobalt);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-copy strong {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-copy small {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--orange);
  transition: right 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  right: 0;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.header-rank {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 17px;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-rank::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

.header-rank:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  content: "";
  transition: transform 0.2s ease;
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-2px) rotate(-45deg);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn-dark:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.btn-orange {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
}

.btn-orange:hover {
  background: var(--cream);
  border-color: var(--cream);
}

.btn-light {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.btn-light:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.36);
}

.btn-outline-light:hover {
  border-color: var(--cream);
  background: rgba(255, 255, 255, 0.07);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-sm {
  min-height: 40px;
  padding: 0 17px;
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.text-link:hover {
  color: var(--cobalt);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.tag-blue {
  border-color: rgba(29, 52, 255, 0.28);
  color: var(--cobalt);
  background: rgba(29, 52, 255, 0.05);
}

.tag-orange {
  border-color: rgba(255, 90, 43, 0.35);
  color: #b63813;
  background: rgba(255, 90, 43, 0.08);
}

.tag-dark {
  border-color: var(--line-dark);
  color: var(--cream);
}

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

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 1px solid var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.78) 68%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.78) 68%, transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -190px;
  z-index: -1;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 52, 255, 0.6), rgba(29, 52, 255, 0) 66%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 66px;
  align-items: center;
  padding: 82px 0 88px;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin-bottom: 26px;
  font-family: var(--display);
  font-size: clamp(2.75rem, 6.1vw, 4.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.h1-brand {
  display: block;
  margin-bottom: 15px;
  font-family: var(--mono);
  font-size: 0.33em;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--orange);
  text-transform: uppercase;
}

.h1-main {
  display: block;
}

.h1-main em {
  font-style: normal;
  color: var(--orange);
}

.hero-lead {
  max-width: 600px;
  margin-bottom: 32px;
  color: #c8c4b9;
  font-size: 17px;
  line-height: 1.9;
}

.hero-lead strong {
  color: var(--cream);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line-dark);
  padding-top: 20px;
}

.hero-facts div {
  padding-right: 18px;
}

.hero-facts div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line-dark);
}

.hero-facts dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8e8a80;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 3px 0 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cream);
}

/* 首屏右侧：连接控制台 */
.hero-art {
  position: relative;
  min-width: 0;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 24px -18px -18px 24px;
  border: 1px solid rgba(29, 52, 255, 0.55);
  background: rgba(29, 52, 255, 0.08);
  transform: rotate(2.5deg);
}

.hero-console {
  position: relative;
  z-index: 1;
  background: #121418;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(-1.4deg);
}

.console-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-dark);
}

.console-logo {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.console-title {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.console-title strong {
  font-size: 12px;
  letter-spacing: 0.1em;
}

.console-title span {
  font-family: var(--mono);
  font-size: 9px;
  color: #858276;
  letter-spacing: 0.08em;
}

.console-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--success);
}

.console-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(185, 239, 108, 0.12);
}

.console-body {
  padding: 22px 18px 20px;
}

.console-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #737066;
}

.trace-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.trace-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.trace-route {
  min-width: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.55;
  color: #c3bfb4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trace-route b {
  color: var(--cream);
  font-weight: 500;
}

.trace-out {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  color: #97938a;
}

.trace-out.is-proxy {
  color: var(--orange-soft);
  border-color: rgba(255, 129, 93, 0.4);
}

.trace-out.is-direct {
  color: var(--success);
  border-color: rgba(185, 239, 108, 0.3);
}

.trace-out.is-reject {
  color: #ff9d9d;
  border-color: rgba(255, 123, 123, 0.35);
}

.console-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}

.console-foot div {
  padding: 14px 12px;
  border-right: 1px solid var(--line-dark);
}

.console-foot div:last-child {
  border-right: 0;
}

.console-foot span {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #77736a;
}

.console-foot strong {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--cream);
}

.console-note {
  position: absolute;
  right: -10px;
  bottom: -34px;
  z-index: 2;
  padding: 8px 12px;
  background: var(--orange);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  transform: rotate(1.5deg);
}

/* ---------- 事实条 ---------- */

.signal-strip {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line-strong);
}

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

.signal-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 70px;
  padding: 18px 24px;
  border-left: 1px solid var(--line-strong);
}

.signal-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.signal-item:last-child {
  padding-right: 0;
}

.signal-item b {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
}

.signal-item span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

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

.section {
  padding: 94px 0;
}

.section-tight {
  padding: 70px 0;
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.35vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-head p {
  margin-bottom: 0;
  padding-left: 22px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.section-head-single {
  display: block;
  max-width: 780px;
}

.section-head-single p {
  margin-top: 20px;
  padding-left: 0;
  border-left: 0;
  max-width: 660px;
}

/* ---------- 功能 ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.feature {
  position: relative;
  min-height: 290px;
  padding: 32px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
  overflow: hidden;
}

.feature-index {
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.feature h3 {
  max-width: 320px;
  margin: 76px 0 14px;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.22;
}

.feature p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.feature-rule {
  position: absolute;
  top: 36px;
  left: 32px;
  width: 104px;
  height: 30px;
}

.feature-rule::before,
.feature-rule::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.feature-rule::before {
  top: 14px;
  left: 0;
  width: 104px;
  height: 1px;
}

.feature-rule::after {
  top: 8px;
  right: 0;
  width: 13px;
  height: 13px;
  border: 1px solid var(--ink);
  background: transparent;
  transform: rotate(45deg);
}

.feature-flow {
  position: absolute;
  top: 28px;
  left: 32px;
  display: flex;
  gap: 8px;
}

.feature-flow i {
  display: block;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.feature-flow i:nth-child(2) {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.feature-flow i:nth-child(3) {
  background: var(--orange);
  border-color: var(--orange);
}

.feature:nth-child(2) {
  background: var(--ink);
  color: var(--cream);
}

.feature:nth-child(2) p {
  color: #a6a197;
}

.feature:nth-child(2) .feature-index {
  color: #87837a;
}

.feature:nth-child(2) .feature-rule::before {
  background: var(--cream);
}

.feature:nth-child(2) .feature-rule::after {
  border-color: var(--cream);
}

.feature:nth-child(3) .feature-flow i:first-child {
  background: var(--ink);
  border-color: var(--ink);
}

.feature:nth-child(3) .feature-flow i:nth-child(2) {
  background: var(--orange);
  border-color: var(--orange);
}

.feature:nth-child(3) .feature-flow i:nth-child(3) {
  background: var(--paper);
  border-color: var(--line-strong);
}

.feature:nth-child(4) .feature-flow i:first-child {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.feature:nth-child(4) .feature-flow i:nth-child(2),
.feature:nth-child(4) .feature-flow i:nth-child(3) {
  background: transparent;
}

/* ---------- 流程 ---------- */

.flow-section {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: 88px 0;
}

.flow-section::before {
  content: "HAKO";
  position: absolute;
  right: -20px;
  bottom: -32px;
  font-family: var(--mono);
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.flow-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 64px;
}

.flow-intro h2 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.8vw, 3.25rem);
  line-height: 1.1;
}

.flow-intro p {
  max-width: 370px;
  margin-bottom: 0;
  color: #a6a197;
  font-size: 14px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}

.flow-step {
  padding: 24px 22px 0;
  border-left: 1px solid var(--line-dark);
}

.flow-step:first-child {
  border-left: 0;
  padding-left: 0;
}

.step-no {
  display: block;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange);
}

.flow-step h3 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 24px;
}

.flow-step p {
  margin-bottom: 0;
  color: #a6a197;
  font-size: 13px;
  line-height: 1.8;
}

.flow-line {
  position: relative;
  margin-top: 28px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 5px, transparent 5px 11px);
}

.flow-line::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
}

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

.rank-promo {
  position: relative;
  overflow: hidden;
  background: var(--cobalt);
  color: #fff;
  padding: 78px 0;
}

.rank-promo::after {
  content: "";
  position: absolute;
  top: -110px;
  right: 7%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transform: rotate(18deg);
}

.rank-promo-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: end;
}

.rank-promo h2 {
  max-width: 730px;
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(2.35rem, 4.5vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.rank-promo p {
  max-width: 620px;
  margin-bottom: 30px;
  color: #c3caff;
  font-size: 15px;
}

.rank-promo .btn:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.rank-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.rank-stat {
  padding: 18px 12px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.rank-stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.rank-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.1;
}

.rank-stat span {
  display: block;
  margin-top: 6px;
  color: #c3caff;
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ---------- 下载推广 ---------- */

.download-promo {
  padding: 0;
  background: var(--paper);
}

.download-panel {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 330px;
  border: 1px solid var(--ink);
  background: var(--surface);
  box-shadow: 12px 12px 0 var(--ink);
}

.download-copy {
  padding: 48px;
  align-self: center;
}

.download-copy h2 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(2.15rem, 3.8vw, 3.15rem);
  line-height: 1.1;
}

.download-copy p {
  max-width: 480px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
}

.download-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  background: var(--orange);
  border-left: 1px solid var(--ink);
  overflow: hidden;
}

.download-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 12, 14, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 12, 14, 0.13) 1px, transparent 1px);
  background-size: 38px 38px;
}

.download-art img {
  position: relative;
  z-index: 1;
  width: 116px;
  height: 116px;
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(11, 12, 14, 0.2);
}

.download-art span {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

/* ---------- 文章列表 ---------- */

.notes-head {
  align-items: start;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.note-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 28px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.note-card:first-child {
  grid-column: 1 / -1;
  min-height: 250px;
  background: var(--ink);
  color: var(--cream);
}

.note-card:first-child p {
  color: #aaa69b;
}

.note-card:first-child .note-meta {
  color: #8d897f;
}

.note-card:hover {
  background: var(--paper-deep);
}

.note-card:first-child:hover {
  background: var(--ink-soft);
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.note-card h3 {
  max-width: 760px;
  margin: 34px 0 12px;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.25;
}

.note-card:first-child h3 {
  font-size: clamp(1.6rem, 3.1vw, 2.3rem);
}

.note-card p {
  max-width: 640px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.note-more {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
  padding-bottom: 2px;
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 64px;
}

.faq-intro h2 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.9vw, 3.25rem);
  line-height: 1.1;
}

.faq-intro p {
  max-width: 340px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

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

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--cobalt);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 650px;
  margin: -2px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.faq-list details a {
  border-bottom: 1px solid currentColor;
}

/* ---------- 内页头 ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
  padding: 66px 0 56px;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 5%;
  top: 26%;
  width: 190px;
  height: 190px;
  border: 1px solid var(--line);
  transform: rotate(12deg);
  pointer-events: none;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.3vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.page-hero p {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.page-hero .page-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.page-hero .page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.page-hero-download {
  background: var(--ink);
  color: var(--cream);
  border-bottom-color: var(--line-dark);
}

.page-hero-download p {
  color: #bbb7ac;
}

.page-hero-download .page-meta {
  color: #9f9b90;
}

.page-hero-download::after {
  border-color: rgba(255, 255, 255, 0.13);
}

.page-hero-rank {
  background: var(--orange);
}

.page-hero-rank p {
  color: #542313;
}

.page-hero-rank .page-meta {
  color: #6d2e1b;
}

.page-hero-rank::after {
  border-color: rgba(11, 12, 14, 0.18);
}

.page-hero-rank .page-meta span::before {
  background: var(--ink);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.page-hero-download .breadcrumb {
  color: #938f85;
}

.page-hero-rank .breadcrumb {
  color: #602917;
}

.breadcrumb a:hover {
  color: var(--cobalt);
}

.breadcrumb .sep {
  opacity: 0.5;
}

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

.download-lead {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 34px;
}

.store-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--orange);
}

.store-card h2 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 30px;
}

.store-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.store-card .btn {
  align-self: flex-start;
}

.store-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  background: var(--cobalt);
  color: #fff;
  border: 1px solid var(--ink);
}

.store-side h2 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 26px;
}

.store-side p {
  margin-bottom: 24px;
  color: #c4cbff;
  font-size: 13px;
}

.store-side .text-link {
  align-self: flex-start;
  color: #fff;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.device-card {
  padding: 26px 22px;
  background: var(--surface);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition: background 0.18s ease;
}

.device-card:hover {
  background: var(--paper-deep);
}

.device-card .device-kicker {
  display: block;
  margin-bottom: 30px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--cobalt);
}

.device-card h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 23px;
}

.device-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.device-card span.link {
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.section-dark {
  background: var(--ink);
  color: var(--cream);
}

.section-dark .section-head p {
  color: #a6a197;
  border-left-color: var(--line-dark);
}

.section-dark .section-head h2 {
  color: var(--cream);
}

.github-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.github-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  padding: 26px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.github-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.github-item .file-type {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.github-item h3 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: 22px;
}

.github-item p {
  margin-bottom: 0;
  color: #9f9b90;
  font-size: 12px;
}

.github-item .file-name {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  color: #cfcbc0;
  overflow-wrap: anywhere;
}

.download-note {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line-dark);
  color: #aaa69b;
  font-size: 12px;
  line-height: 1.75;
}

.download-note strong {
  flex: 0 0 auto;
  color: var(--cream);
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.install-step {
  padding: 26px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.install-step .step-no {
  margin-bottom: 32px;
  color: var(--cobalt);
}

.install-step h3 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 22px;
}

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

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line-strong);
  font-size: 13px;
}

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

.spec-table th {
  width: 28%;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-deep);
}

.spec-table td {
  color: var(--muted);
}

.download-faq {
  margin-top: 26px;
}

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

.rank-start {
  background: var(--paper);
}

.rank-start-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}

.rank-start-copy h2 {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  line-height: 1.1;
}

.rank-start-copy p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-score-key {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.score-key {
  padding: 16px 12px;
  border-left: 1px solid var(--line-strong);
}

.score-key:first-child {
  border-left: 0;
  padding-left: 0;
}

.score-key strong {
  display: block;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
}

.score-key span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

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

.airport-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.airport-card:hover {
  transform: translateY(-3px);
  box-shadow: 7px 7px 0 var(--ink);
}

.airport-card.is-first {
  background: var(--cream);
  border-top: 5px solid var(--orange);
}

.airport-card.is-second {
  border-top: 5px solid var(--cobalt);
}

.airport-card.is-third {
  border-top: 5px solid var(--ink);
}

.airport-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.airport-rank {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.score-badge {
  flex: 0 0 auto;
  text-align: right;
  font-family: var(--mono);
  font-weight: 500;
  line-height: 1;
}

.score-badge strong {
  display: block;
  font-size: 34px;
  font-weight: 500;
}

.score-badge span {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.airport-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.airport-monogram {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
}

.airport-card.is-first .airport-monogram {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
}

.airport-card.is-second .airport-monogram {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.airport-identity h3 {
  margin-bottom: 2px;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.15;
}

.airport-identity p {
  margin-bottom: 0;
  font-size: 11px;
  color: var(--muted);
}

.airport-desc {
  min-height: 68px;
  margin-bottom: 20px;
  color: #4f4b43;
  font-size: 13px;
  line-height: 1.75;
}

.airport-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.airport-meta div {
  padding: 11px 6px 11px 0;
}

.airport-meta dt {
  font-size: 9px;
  color: var(--muted);
}

.airport-meta dd {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.airport-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.airport-tags .tag {
  min-height: 23px;
  font-size: 9px;
  padding: 0 7px;
}

.airport-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
}

.airport-cta:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.airport-card.is-first .airport-cta {
  background: var(--ink);
  color: var(--cream);
}

.airport-card.is-first .airport-cta:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.airport-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}

.airport-row {
  display: grid;
  grid-template-columns: 44px 44px minmax(150px, 0.85fr) minmax(200px, 1.1fr) 150px 88px 132px;
  gap: 14px;
  align-items: center;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.airport-row:hover {
  background: var(--cream);
}

.row-rank {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.row-monogram {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--display);
  font-size: 17px;
}

.airport-row:nth-child(1) .row-monogram {
  background: var(--orange);
  color: var(--ink);
}

.airport-row:nth-child(2) .row-monogram {
  background: var(--cobalt);
  color: #fff;
}

.row-name h3 {
  margin-bottom: 3px;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.2;
}

.row-name p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.row-desc {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

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

.row-metrics span {
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
}

.row-score {
  font-family: var(--mono);
  font-size: 21px;
  text-align: right;
}

.row-score span {
  display: block;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.airport-row .airport-cta {
  min-height: 40px;
  padding: 9px 10px;
  font-size: 12px;
}

.rank-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

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

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

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.method-card {
  padding: 26px;
  background: var(--surface);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.method-card .method-no {
  display: block;
  margin-bottom: 34px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cobalt);
}

.method-card h3 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 22px;
}

.method-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.rank-faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}

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

.article-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
  padding: 54px 0 48px;
}

.article-hero h1 {
  max-width: 1060px;
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.3vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.title-break {
  display: block;
}

.article-deck {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 72px;
  align-items: start;
  padding: 64px 0 88px;
}

.article-body {
  max-width: 760px;
  min-width: 0;
}

.article-body > p:first-child {
  font-size: 18px;
  color: var(--ink);
}

.article-body p {
  margin-bottom: 24px;
  color: #34312b;
  font-size: 16px;
  line-height: 2;
}

.article-body h2 {
  margin: 54px 0 18px;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  line-height: 1.25;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 34px 0 14px;
  font-size: 20px;
}

.article-body strong {
  font-weight: 650;
}

.article-body a {
  color: var(--cobalt);
  border-bottom: 1px solid rgba(29, 52, 255, 0.35);
}

.article-body a:hover {
  border-bottom-color: var(--cobalt);
}

.article-body ul,
.article-body ol {
  margin: 0 0 26px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 10px;
  color: #34312b;
  font-size: 16px;
  line-height: 1.9;
}

.article-body blockquote {
  margin: 36px 0;
  padding: 26px 28px;
  background: var(--paper-deep);
  border-left: 4px solid var(--orange);
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.55;
}

.article-body blockquote p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: inherit;
  line-height: inherit;
}

.article-body code {
  padding: 2px 6px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.86em;
  color: #38352e;
}

.article-body table {
  width: 100%;
  margin: 28px 0 32px;
  border-collapse: collapse;
  font-size: 13px;
}

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

.article-body th {
  background: var(--paper-deep);
  font-weight: 600;
}

.article-body td {
  color: var(--muted);
}

.article-body hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
}

.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.toc-box {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.toc-box h2 {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.toc-box ol {
  margin: 0;
  padding-left: 17px;
  font-size: 12px;
  line-height: 1.8;
}

.toc-box li {
  margin-bottom: 6px;
}

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

.aside-rank {
  margin-top: 18px;
  padding: 22px;
  background: var(--cobalt);
  color: #fff;
  border: 1px solid var(--ink);
}

.aside-rank h2 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.25;
}

.aside-rank p {
  margin-bottom: 18px;
  color: #c6ccff;
  font-size: 12px;
  line-height: 1.7;
}

.aside-rank .text-link {
  font-size: 12px;
  color: #fff;
}

.aside-download {
  margin-top: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.aside-download h2 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 20px;
}

.aside-download p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.aside-download .text-link {
  font-size: 12px;
}

.article-end {
  margin-top: 56px;
  padding: 32px;
  background: var(--ink);
  color: var(--cream);
}

.article-end h2 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 26px;
  color: var(--cream);
}

.article-end p {
  margin-bottom: 20px;
  color: #aaa69b;
  font-size: 13px;
}

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

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.article-nav a {
  padding: 20px;
  background: var(--surface);
  min-width: 0;
}

.article-nav a:hover {
  background: var(--paper-deep);
}

.article-nav span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.article-nav strong {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.4;
}

.article-nav a:only-child {
  grid-column: 1 / -1;
}

/* ---------- 笔记列表页 ---------- */

.notes-list {
  border-top: 1px solid var(--ink);
}

.notes-list-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 110px;
  gap: 30px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-strong);
}

.notes-list-item:hover h2 {
  color: var(--cobalt);
}

.notes-list-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.notes-list-item h2 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1.3;
  transition: color 0.18s ease;
}

.notes-list-item p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.notes-list-arrow {
  justify-self: end;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding-top: 6px;
}

/* ---------- 全站底部 ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid var(--ink);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-brand span {
  font-size: 14px;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 12px;
  color: #aaa69b;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #77736a;
}

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

.error-page {
  min-height: calc(100vh - var(--header-h) - 34px);
  display: flex;
  align-items: center;
  padding: 70px 0;
}

.error-inner {
  max-width: 760px;
}

.error-code {
  font-family: var(--mono);
  font-size: 72px;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.06em;
}

.error-page h1 {
  margin: 20px 0 18px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
}

.error-page p {
  margin-bottom: 28px;
  color: var(--muted);
}

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

@media (max-width: 1080px) {
  .hero-inner {
    gap: 42px;
  }

  .hero-facts dd {
    font-size: 12px;
  }

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

  .download-copy {
    padding: 38px;
  }

  .airport-row {
    grid-template-columns: 36px 38px minmax(140px, 0.8fr) minmax(150px, 1fr) 126px 74px 124px;
    gap: 12px;
    padding: 18px 14px;
  }

  .article-layout {
    gap: 42px;
  }
}

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

  .header-inner {
    min-height: 68px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 14px 18px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
  }

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

  .main-nav a {
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .main-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-tools {
    gap: 9px;
  }

  .header-rank {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 64px 0 72px;
  }

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

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

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

  .signal-item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .signal-item:nth-child(4) {
    border-top: 1px solid var(--line-strong);
    padding-right: 0;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 36px;
  }

  .section-head p {
    max-width: 640px;
  }

  .flow-grid,
  .rank-promo-inner,
  .faq-grid,
  .rank-faq-grid,
  .rank-start-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .flow-steps {
    margin-top: 10px;
  }

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

  .download-art {
    min-height: 220px;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .download-copy {
    padding: 34px;
  }

  .top-picks {
    grid-template-columns: 1fr;
  }

  .airport-card {
    max-width: 100%;
  }

  .airport-desc {
    min-height: 0;
  }

  .airport-row {
    grid-template-columns: 30px 42px minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 18px;
  }

  .row-rank {
    grid-column: 1;
    grid-row: 1;
  }

  .row-monogram {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .row-name {
    grid-column: 3;
    grid-row: 1;
  }

  .row-desc {
    display: none;
  }

  .row-metrics {
    grid-column: 3 / 5;
    grid-row: 2;
  }

  .row-score {
    grid-column: 4;
    grid-row: 1;
  }

  .airport-row .airport-cta {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 42px;
    margin-top: 3px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    order: -1;
  }

  .toc-box {
    grid-column: 1 / -1;
  }

  .aside-rank,
  .aside-download {
    margin-top: 0;
  }

  .article-body {
    max-width: 100%;
  }

  .notes-list-item {
    grid-template-columns: 130px minmax(0, 1fr) 40px;
    gap: 20px;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .notice-inner {
    gap: 8px 12px;
    font-size: 11px;
  }

  .notice-date {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .header-tools {
    gap: 7px;
  }

  .header-rank {
    display: inline-flex;
    min-height: 34px;
    padding: 0 9px;
    font-size: 10px;
    gap: 6px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    box-shadow: 2px 2px 0 var(--ink);
  }

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

  .hero-inner {
    padding: 52px 0 62px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.9rem);
  }

  .h1-brand {
    font-size: 0.36em;
    letter-spacing: 0.04em;
  }

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

  .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 14px;
    font-size: 13px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-facts div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .hero-facts div + div {
    padding-left: 0;
    border-left: 0;
  }

  .hero-facts dt {
    font-size: 10px;
  }

  .hero-facts dd {
    margin: 0;
    font-size: 12px;
  }

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

  .console-note {
    right: 0;
    bottom: -30px;
    font-size: 9px;
  }

  .signal-item {
    min-height: 62px;
    padding: 14px 12px;
  }

  .signal-item b {
    font-size: 20px;
  }

  .signal-item span {
    font-size: 11px;
  }

  .section {
    padding: 58px 0;
  }

  .section-tight {
    padding: 50px 0;
  }

  .feature-grid,
  .notes-grid,
  .github-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 250px;
    padding: 26px;
  }

  .feature h3 {
    margin-top: 66px;
    font-size: 25px;
  }

  .feature-rule,
  .feature-flow {
    left: 26px;
  }

  .feature-index {
    top: 22px;
    right: 24px;
  }

  .note-card:first-child {
    grid-column: auto;
  }

  .note-card {
    min-height: 0;
    padding: 24px;
  }

  .note-card h3 {
    margin-top: 26px;
    font-size: 23px;
  }

  .note-card:first-child h3 {
    font-size: 26px;
  }

  .flow-section {
    padding: 60px 0;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .flow-step {
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }

  .flow-step:first-child {
    padding-left: 0;
  }

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

  .flow-line {
    display: none;
  }

  .rank-promo {
    padding: 58px 0;
  }

  .rank-promo-inner {
    gap: 28px;
  }

  .rank-stats {
    max-width: 100%;
  }

  .download-copy {
    padding: 28px 24px;
  }

  .download-panel {
    box-shadow: 7px 7px 0 var(--ink);
  }

  .download-art {
    min-height: 190px;
  }

  .download-art img {
    width: 92px;
    height: 92px;
  }

  .faq-grid {
    gap: 26px;
  }

  .page-hero {
    padding: 42px 0 38px;
  }

  .page-hero h1 {
    font-size: clamp(2.3rem, 9vw, 3.3rem);
  }

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

  .breadcrumb {
    margin-bottom: 20px;
  }

  .download-lead {
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  .store-card,
  .store-side {
    min-height: 0;
    padding: 24px;
  }

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

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

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

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

  .score-key:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .score-key:nth-child(n + 3) {
    border-top: 1px solid var(--line-strong);
  }

  .spec-table th,
  .spec-table td {
    padding: 12px 10px;
    font-size: 12px;
  }

  .top-picks {
    gap: 14px;
  }

  .airport-card {
    padding: 22px;
  }

  .airport-card:hover {
    transform: none;
    box-shadow: none;
  }

  .airport-row {
    grid-template-columns: 28px 38px minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 15px 14px;
  }

  .row-name h3 {
    font-size: 18px;
  }

  .row-metrics {
    grid-column: 3 / 5;
  }

  .row-score {
    font-size: 18px;
  }

  .airport-row .airport-cta {
    min-height: 43px;
    font-size: 13px;
  }

  .airport-meta {
    margin-bottom: 14px;
  }

  .article-hero {
    padding: 38px 0 34px;
  }

  .article-hero h1 {
    font-size: clamp(2.15rem, 8.4vw, 3rem);
  }

  .title-break {
    display: inline;
  }

  .article-deck {
    font-size: 15px;
  }

  .article-layout {
    padding: 34px 0 58px;
  }

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

  .article-body p,
  .article-body li {
    font-size: 15px;
    line-height: 1.95;
  }

  .article-body > p:first-child {
    font-size: 17px;
  }

  .article-body h2 {
    margin-top: 42px;
  }

  .article-body blockquote {
    padding: 20px 22px;
    font-size: 20px;
  }

  .article-body table {
    display: block;
    overflow-x: auto;
  }

  .article-end {
    padding: 24px;
  }

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

  .article-nav a:only-child {
    grid-column: auto;
  }

  .notes-list-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }

  .notes-list-meta {
    flex-direction: row;
    gap: 16px;
  }

  .notes-list-arrow {
    display: none;
  }

  .notes-list-item h2 {
    font-size: 23px;
  }

  .footer-main {
    padding: 30px 0;
  }

  .footer-nav {
    gap: 10px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .wrap,
  .wrap-narrow {
    width: calc(100% - 28px);
  }

  .notice-inner {
    justify-content: space-between;
    padding: 7px 0;
  }

  .notice-text {
    max-width: 190px;
  }

  .notice-text .notice-long {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11.5vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .trace-route {
    font-size: 9px;
  }

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

  .signal-inner {
    grid-template-columns: 1fr;
  }

  .signal-item,
  .signal-item:nth-child(3),
  .signal-item:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    padding: 13px 0;
  }

  .signal-item:first-child {
    border-top: 0;
  }

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

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

  .page-hero h1 {
    font-size: clamp(2.1rem, 10.5vw, 2.8rem);
  }
}

@media (max-width: 380px) {
  .header-inner {
    gap: 8px;
  }

  .header-tools {
    gap: 5px;
  }

  .brand {
    gap: 7px;
  }

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

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

  .brand-copy small {
    display: none;
  }

  .header-rank {
    min-height: 32px;
    padding: 0 7px;
    font-size: 9px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11.5vw, 2.75rem);
  }

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

  .console-title span {
    font-size: 8px;
  }
}

/* ---------- 榜单月付参考 ---------- */

.row-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.row-price .price-label {
  font-weight: 600;
}

.row-price .ref-price {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
