/* 机场鱼 全站样式
   版面：浅灰蓝的页面底色上放白色卡片；蓝色是品牌色，琥珀色只用来标出名次和提醒。
   字体：标题用自托管的宋体（JCF Display，只含站内标题用到的字），正文用系统黑体。
   机场卡片做成登机牌的样子：左边是名次存根，虚线是撕口。
   写法：手机布局在前，600px、768px、900px、1024px、1200px 几个断点往上加。 */

/* 标题字体：思源宋体 Bold 的子集，只含站内标题用到的字，约 100 KB。
   文件和 ?v= 版本号由 scripts/build-fonts.js 生成（npm run fonts），不要手改这一行。
   字体还没下载完时先用系统字体显示，不会出现空白。 */
@font-face {
  font-family: "JCF Display";
  src: url("../fonts/display.woff?v=44839b384e") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2f5f8;
  --card: #ffffff;
  --logo-bg: #ffffff;
  --surface: #edf1f5;
  --text: #17212b;
  --muted: #566270;
  --border: #d9e0e7;
  --accent: #0b6bcb;
  --accent-hover: #0a5cae;
  --accent-ink: #ffffff;
  --accent-soft: #e2eefa;
  --amber: #f0a91b;
  --amber-soft: #fff0cc;
  --amber-ink: #5c3d00;
  --footer-bg: #14202b;
  --footer-text: #c3ced9;
  --footer-strong: #ffffff;
  --hero-bg: #e2eefa;
  --ha-globe: #cfe2f6;
  --ha-line: #9cc1e9;
  --shadow: 0 1px 2px rgba(16, 32, 48, 0.05), 0 8px 24px rgba(16, 32, 48, 0.06);
  --shadow-strong: 0 2px 4px rgba(16, 32, 48, 0.06), 0 14px 32px rgba(16, 32, 48, 0.1);

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  /* 标题字体：先用自托管的子集，缺字时退到系统里的宋体，再退到黑体 */
  --font-display: "JCF Display", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif CN", var(--font-sans);
  --font-num: "DIN Alternate", "Bahnschrift", "Avenir Next Condensed", "Roboto Condensed", var(--font-sans);

  --page: 1120px;
  --read: 720px;
  --header-h: 60px;
  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 16px;
  /* 登机牌撕口处的小缺口，颜色要和卡片外面的底色一致 */
  --notch-bg: var(--bg);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d1218;
  --card: #151c24;
  --surface: #1c2530;
  --text: #e6edf3;
  --muted: #98a4b1;
  --border: #2a3541;
  --accent: #5aa9ff;
  --accent-hover: #7dbbff;
  --accent-ink: #0b1622;
  --accent-soft: #14283d;
  --amber: #f2b544;
  --amber-soft: #382b0e;
  --amber-ink: #ffe0a0;
  --footer-bg: #0a0f14;
  --footer-text: #98a4b1;
  --footer-strong: #e6edf3;
  --hero-bg: #111d2b;
  --ha-globe: #162a40;
  --ha-line: #2c4a6b;
  --shadow: none;
  --shadow-strong: none;

  color-scheme: dark;
}

/* ── 基础 ─────────────────────────────────────────────── */

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

html {
  scroll-padding-top: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  line-break: strict;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.35;
  font-weight: 700;
  /* 标题尽量在标点和空格处换行，不把词拆开 */
  word-break: keep-all;
  text-wrap: balance;
}

h1,
h2,
.display,
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
}

h1 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  line-height: 1.3;
}

h2 {
  font-size: 1.375rem;
}

h3,
h4 {
  font-size: 1.0625rem;
}

p {
  margin: 1em 0;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 30;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.skip-link:focus {
  left: 16px;
}

.icon {
  display: block;
}

main:focus {
  outline: none;
}

code {
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* ── 按钮 ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  border-color: var(--border);
  background: var(--card);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--muted);
}

/* 双按钮并排，各占一半 */
.btn-pair {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
}

.btn-pair .btn {
  padding-inline: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface);
  color: var(--text);
}

/* ── 顶部导航 ─────────────────────────────────────────── */

/* 页眉吸在顶部，跟着页面一起滚动 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: color-mix(in srgb, var(--card) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
  }
}

/* 跳到页内锚点时，标题不要被吸顶的页眉盖住 */
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* 带 hidden 属性的元素一律不显示（客户端按设备筛选时用到） */
[hidden] {
  display: none !important;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  color: var(--accent);
}

.logo-eye {
  fill: var(--card);
}

.header-tools {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* 没有 JS 时：主题切换和菜单按钮不显示，导航直接排在 Logo 下面 */
.theme-toggle,
.menu-toggle {
  display: none;
}

.js .theme-toggle,
.js .menu-toggle {
  display: inline-flex;
}

[data-theme="light"] .theme-icon-light,
[data-theme="dark"] .theme-icon-dark {
  display: none;
}

.site-nav {
  flex-basis: 100%;
  padding-bottom: 8px;
}

.js .site-nav {
  display: none;
}

.js .site-header.is-open .site-nav {
  display: block;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.js .site-nav ul {
  flex-direction: column;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* ── 面包屑 ───────────────────────────────────────────── */

.breadcrumb {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.breadcrumb li + li::before {
  content: "›";
}

/* 上下各留 11px 的点击范围，手指好点；用负外边距抵掉，不改变版面 */
.breadcrumb a {
  margin-block: -11px;
  padding-block: 11px;
  color: var(--muted);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* 手机上层级多于三级时，省略中间级 */
@media (max-width: 479.98px) {
  .breadcrumb li:not(:first-child):not(:nth-last-child(-n + 2)) {
    display: none;
  }
}

/* ── 页面标题区 ───────────────────────────────────────── */

.page-head {
  padding: 22px 0 0;
}

/* 带封面的标题区：一张大卡片，左边文字，右边封面图（手机上不显示封面） */
.page-head.has-cover,
.page-head.profile-head,
.page-head.client-head {
  margin-top: 14px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-head.has-cover .page-head-text,
.client-head .page-head-text,
.profile-main {
  min-width: 0;
  padding: 22px 20px 24px;
}

.page-head-cover {
  display: none;
}

.page-head-cover .cover {
  width: 100%;
  height: 100%;
}

/* 文章页的封面在手机上放在标题上方 */
.article-head .page-head-cover {
  display: block;
  order: -1;
  aspect-ratio: 2 / 1;
}

.page-head.has-cover {
  display: grid;
}

.lead {
  max-width: var(--read);
  margin: 12px 0 0;
  font-size: 1.0625rem;
}

.page-head .more {
  margin-top: 14px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.section {
  margin-top: 44px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 16px;
}

/* 上下的内边距只是扩大点击范围，用负外边距抵掉，不改变版面 */
.section-more {
  margin-block: -9px;
  padding-block: 9px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.section > p {
  max-width: var(--read);
}

.section-head + p {
  margin-top: 0;
}

.more {
  margin: 16px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.note {
  max-width: var(--read);
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ── 首页 ─────────────────────────────────────────────── */

.hero {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 28px 20px 4px;
  border-radius: 22px;
  background: var(--hero-bg);
  overflow: hidden;
}

.hero-text {
  container-type: inline-size;
}

/* 字号跟着文字栏的宽度走：第二行 11 个字正好排满一行，不会掉一个字到第三行 */
.hero h1 {
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
  font-size: clamp(1.375rem, 8.7cqi, 2.875rem);
  line-height: 1.25;
}

.hero .lead {
  margin-top: 16px;
}

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

.hero-figure {
  max-width: 440px;
  margin: 4px auto 0;
  width: 100%;
}

/* 系列卡：封面在上，下面是这一组的文章清单 */
.scard-grid {
  display: grid;
  gap: 16px;
}

.scard,
.pick,
.acard,
.ccard,
.text-card,
.choose,
.cat-head,
.mini,
.ticket {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.scard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.scard-cover .cover {
  display: block;
  width: 100%;
  height: 132px;
}

.scard-body {
  padding: 18px 20px 20px;
}

.scard-title {
  font-size: 1.375rem;
}

.scard-intro {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.title-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: title;
  border-top: 1px solid var(--border);
}

.title-list li {
  position: relative;
  padding: 9px 0 9px 2rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
  counter-increment: title;
}

.title-list li::before {
  content: counter(title);
  position: absolute;
  left: 0;
  width: 1.25rem;
  color: var(--muted);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.title-list a {
  color: var(--text);
}

.title-list a:hover {
  color: var(--accent);
}

/* 前三名：竖着的登机牌 */
.picks {
  display: grid;
  gap: 16px;
}

.pick {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pick-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 2px dashed var(--border);
  background: var(--amber-soft);
}

.pick-badge {
  color: var(--amber-ink);
  font-size: 1.75rem;
  line-height: 1;
}

.pick-top .avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.pick-body {
  display: grid;
  gap: 10px;
  padding: 18px 20px 0;
}

.pick-title {
  font-size: 1.375rem;
}

.pick-title a {
  color: var(--text);
}

.pick-line {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.pick-facts {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pick-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.pick-facts dt {
  flex: none;
  color: var(--muted);
}

.pick-facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.pick-actions {
  margin-top: auto;
  padding: 18px 20px 20px;
}

/* 怎么选机场：左边封面，右边六个标准 */
.choose {
  display: grid;
  overflow: hidden;
}

.choose-cover {
  display: none;
}

.choose-cover .cover {
  width: 100%;
  height: 100%;
}

.choose-body {
  padding: 20px;
}

.choose-body > :first-child {
  margin-top: 0;
}

.criteria {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.criteria li {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  line-height: 1.5;
}

.criteria strong {
  display: block;
}

.criteria span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ── 机场头像与标签 ───────────────────────────────────── */

.avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

/* 标志图头像：统一放在白底小方块里，深色模式下也看得清 */
.avatar-logo {
  overflow: hidden;
  background: #ffffff;
}

.avatar-logo.avatar-dark {
  background: #161b22;
}

.avatar-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: middle;
}

/* 名称、一句话、优惠码 */
.who {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.who-text {
  min-width: 0;
}

.who-line {
  display: block;
  line-height: 1.4;
}

.who-name {
  color: var(--text);
  font-size: 1.125rem;
}

.who-name:hover {
  color: var(--accent);
}

.who-note {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.coupon-line {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.coupon-line code {
  border-color: transparent;
  background: var(--amber-soft);
  color: var(--amber-ink);
  font-weight: 600;
}

.rank {
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ── 榜单：登机牌卡片 ─────────────────────────────────── */

.board-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  overflow: hidden;
}

/* 名次存根 */
.ticket-stub {
  grid-row: 1 / span 2;
  display: flex;
  justify-content: center;
  padding-top: 22px;
  border-right: 2px dashed var(--border);
  background: var(--accent-soft);
  color: var(--accent);
}

.ticket.is-top .ticket-stub {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

/* 撕口两端的小缺口 */
.ticket-stub::before,
.ticket-stub::after,
.ticket-actions::before,
.ticket-actions::after {
  content: "";
  position: absolute;
  left: calc(3.5rem - 9px);
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--notch-bg);
}

.ticket-stub::before {
  top: -9px;
}

.ticket-stub::after {
  bottom: -9px;
}

.ticket-actions::before,
.ticket-actions::after {
  display: none;
}

.ticket-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px 16px 14px;
}

.ticket-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.ticket-facts dt {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.ticket-facts dd {
  margin: 2px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.ticket-actions {
  grid-column: 2;
  padding: 12px 16px 16px;
  border-top: 2px dashed var(--border);
}

/* 小卡片：首页速览、文章里提到的机场、「其他机场」轮播 */
.board-compact .board-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.mini {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.mini-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.mini .rank {
  flex: none;
  min-width: 1.75rem;
  padding-top: 10px;
  color: var(--muted);
  font-size: 1.375rem;
  text-align: center;
}

.mini .btn-pair {
  margin-top: auto;
}

/* ── 表格 ─────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.data-table thead th {
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.data-table tbody tr:last-child > * {
  border-bottom: 0;
}

/* 首列固定，方便手机上横向滑动 */
.data-table tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 6.5em;
  max-width: 11em;
  border-right: 1px solid var(--border);
  white-space: normal;
}

.data-table tbody th {
  background: var(--card);
  font-weight: 600;
}

.data-table tbody th a {
  color: var(--text);
}

.data-table .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

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

.info-table tbody th {
  width: 9em;
  background: var(--surface);
  color: var(--muted);
  font-weight: 400;
}

.info-table td {
  white-space: normal;
}

.compare-table .cell-actions .btn-pair {
  width: 11.5rem;
}

.compare-table .col-line {
  min-width: 7em;
  white-space: normal;
}

.compare-table .col-billing {
  min-width: 12em;
  white-space: normal;
}

.compare-table .col-coupon {
  min-width: 9em;
  white-space: normal;
}

.compare-table th,
.compare-table td {
  padding-inline: 12px;
}

/* ── 机场资料页、客户端详情页 ─────────────────────────── */

.profile-title,
.client-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-title .avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  font-size: 1.5rem;
}

.client-title .mono,
.client-title .client-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.25rem;
}

.profile-head .btn-pair {
  margin-top: 20px;
}

/* 标题卡的「登机牌存根」：手机上是标题下方的一条，桌面上在右侧 */
.profile-head {
  display: grid;
}

.profile-pass {
  --notch-bg: var(--bg);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 20px 16px;
  border-top: 2px dashed var(--border);
  background: var(--accent-soft);
}

.profile-pass.is-top {
  background: var(--amber-soft);
}

.pass-rank {
  display: grid;
  margin: 0;
}

.pass-label,
.pass-facts dt {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.pass-no {
  color: var(--accent);
  font-size: 1.75rem;
  line-height: 1.15;
}

.is-top .pass-no {
  color: var(--amber-ink);
}

.pass-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 0;
}

.pass-facts dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.tagline {
  margin: 12px 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
}

/* 详情页正文的每个小节是一张卡片 */
.layout-main > .section {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.layout-main > .section:first-child {
  margin-top: 20px;
}

.layout-main .section > p {
  max-width: var(--read);
}

.steps {
  max-width: var(--read);
  margin: 12px 0 0;
  padding-left: 1.4em;
}

.steps li {
  margin: 8px 0;
}

.steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

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

.review > div {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.review h3 {
  font-size: 1rem;
}

.review ul {
  margin: 8px 0 0;
  padding-left: 1.25em;
}

.review li {
  margin: 4px 0;
}

/* 常见问题：每条一张卡片，左上角是「Q」标记；同一行的两张等高 */
.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  position: relative;
  padding: 16px 18px 18px 62px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.faq-item::before {
  content: "Q";
  position: absolute;
  top: 15px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.faq h3 {
  font-size: 1.0625rem;
  line-height: 1.5;
}

.faq p {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* 延伸阅读单独占一行，用虚线和回答隔开 */
.faq-more {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.faq-more a {
  font-weight: 600;
}

.layout-main .faq-item {
  border-color: transparent;
  background: var(--surface);
  box-shadow: none;
}

.layout-main .faq-item::before {
  background: var(--card);
}

.notice {
  max-width: var(--read);
  margin: 14px 0 0;
  padding: 10px 14px;
  border-left: 4px solid var(--amber);
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.notice code {
  border-color: transparent;
  background: var(--card);
  font-weight: 600;
}

.coupon-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coupon-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
  align-items: baseline;
  padding: 12px 14px;
  border: 1px dashed var(--amber);
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  line-height: 1.6;
}

.coupon-code {
  border-color: transparent;
  background: var(--card);
  font-size: 1rem;
  font-weight: 700;
}

.coupon-note {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.875rem;
}

.speedtest {
  margin: 16px 0 0;
}

.speedtest a {
  display: inline-block;
  max-width: 100%;
}

.speedtest img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.client-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  margin: 8px 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.client-facts div {
  display: flex;
  gap: 6px;
}

.client-facts dt {
  color: var(--muted);
}

.client-facts dd {
  margin: 0;
}

/* ── 滚动目录 ─────────────────────────────────────────── */

/* 手机：标题下方的折叠条，滚动后吸顶 */
.toc {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  margin: 16px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter);
  border-block: 1px solid var(--border);
  background: var(--card);
}

.toc-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.js .toc-toggle {
  display: flex;
}

.toc-toggle .icon {
  color: var(--muted);
}

.toc.is-open .toc-toggle .icon {
  transform: rotate(180deg);
}

.toc-list {
  margin: 0;
  padding: 4px 0 12px;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.js .toc-list {
  display: none;
}

.js .toc.is-open .toc-list {
  display: block;
}

.toc-list a {
  display: block;
  padding: 8px 0 8px 12px;
  border-left: 2px solid var(--border);
  color: var(--muted);
}

.toc-list a:hover {
  color: var(--text);
  text-decoration: none;
}

.toc-list a.is-current {
  border-left-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}

/* 目录条吸顶时，锚点标题不要被它盖住 */
.layout-main h2[id] {
  scroll-margin-top: calc(var(--header-h) + 60px);
}

/* ── 其他机场轮播 ─────────────────────────────────────── */

.carousel-controls {
  display: none;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 12px;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  box-shadow: none;
  scroll-snap-align: start;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-height: 6px;
  margin-top: 12px;
}

.carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.carousel-dots span.is-current {
  background: var(--accent);
}

.layout-main > .cta {
  border-color: transparent;
  background: var(--accent-soft);
  box-shadow: none;
}

.cta .section-head {
  margin-bottom: 8px;
}

.cta .btn-pair {
  margin-top: 16px;
}

.pager {
  display: grid;
  gap: 12px;
  margin-top: 44px;
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
  line-height: 1.5;
}

.pager-link:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.pager-dir {
  color: var(--muted);
  font-size: 0.8125rem;
}

.pager-title {
  font-weight: 600;
}

/* ── 入口列表、文字卡片、分类卡片 ─────────────────────── */

/* 入口图卡：左边封面（或客户端 Logo），右边标题和一句说明 */
.ecard-grid {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ecard {
  position: relative;
  display: flex;
  min-height: 92px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ecard:hover,
.ecard:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-strong);
}

.ecard-cover {
  flex: none;
  width: 112px;
}

.ecard-cover .cover {
  width: 100%;
  height: 100%;
}

.ecard-client .ecard-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  background: var(--surface);
}

.ecard-body {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 12px 16px;
}

.ecard-title {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

.ecard-title a {
  color: var(--text);
}

.ecard-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* 整张卡片都能点 */
.ecard-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.ecard-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.layout-main .ecard {
  box-shadow: none;
}

/* 说明卡：一侧插画，一侧文字 */
.note-card {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.note-cover .cover {
  width: 100%;
  height: 112px;
}

.note-body {
  min-width: 0;
  padding: 18px 20px 22px;
}

.note-body > :first-child {
  margin-top: 0;
}

.note-body > :last-child {
  margin-bottom: 0;
}

/* 两种订阅格式各自对应的客户端 */
.format-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.format {
  padding: 14px 16px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.format h3 {
  font-size: 0.9375rem;
}

.client-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.client-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 3px 16px 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.client-chips a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.client-chips .client-logo,
.client-chips .mono {
  width: 28px;
  height: 28px;
  padding: 2px;
  border-radius: 50%;
  font-size: 0.6875rem;
}

/* 小表格下面的一句结论 */
.takeaway {
  max-width: none;
  margin: 12px 0 0;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.text-cards {
  display: grid;
  gap: 16px;
  margin-top: 44px;
}

/* 说明图卡：上面是插画，下面是文字 */
.text-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.text-card-cover .cover {
  width: 100%;
  height: 104px;
}

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

.text-card h2 {
  font-size: 1.25rem;
}

.text-card p {
  margin: 10px 0 0;
}

.cat-head {
  display: grid;
  margin-bottom: 12px;
  overflow: hidden;
}

.cat-cover .cover {
  display: block;
  width: 100%;
  height: 112px;
}

.cat-text {
  padding: 18px 20px 20px;
}

.cat-text p {
  margin: 8px 0 0;
}

.cat-text .more {
  margin-top: 12px;
}

.link-columns {
  margin: 0;
  padding: 18px 20px;
  list-style: none;
  columns: 3 13rem;
  column-gap: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.link-columns li {
  padding: 4px 0;
  break-inside: avoid;
}

/* ── 文章图卡 ─────────────────────────────────────────── */

.acard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acard {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.acard:hover,
.acard:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-strong);
}

.acard-cover .cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.acard-body {
  display: grid;
  gap: 6px;
  padding: 14px 16px 18px;
}

.acard-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.acard-title {
  font-size: 1.0625rem;
  line-height: 1.5;
}

.acard-title a {
  color: var(--text);
}

.acard-title a:hover {
  text-decoration: none;
}

/* 整张卡片都能点 */
.acard-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.acard-summary {
  display: -webkit-box;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* 手机上封面缩成左侧的小图，一屏能看到四五篇 */
@media (max-width: 599.98px) {
  .acard {
    flex-direction: row;
  }

  .acard-cover {
    flex: none;
    width: 116px;
  }

  .acard-cover .cover {
    height: 100%;
    aspect-ratio: auto;
  }

  .acard-body {
    align-content: center;
    gap: 4px;
    min-width: 0;
    padding: 12px 14px 14px;
  }

  .acard-title {
    font-size: 1rem;
  }

  .acard-summary {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* ── 客户端卡片 ───────────────────────────────────────── */

.ccard-grid {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ccard-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}

/* 按设备筛选客户端：一条吸在页眉下面的分段按钮（不开 JS 时不显示，全部客户端照常列出） */
.platform-filter {
  display: none;
}

.js .platform-filter {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 5;
  display: flex;
  gap: 4px;
  margin: 16px 0 0;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-strong);
  overflow-x: auto;
  scrollbar-width: none;
}

.platform-filter::-webkit-scrollbar {
  display: none;
}

.pf-btn {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.pf-btn:hover {
  background: var(--surface);
  color: var(--text);
}

.pf-btn.is-current {
  background: var(--accent);
  color: var(--accent-ink);
}

.pf-count {
  min-width: 1.5em;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: center;
}

.pf-btn.is-current .pf-count {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}

.filter-empty {
  margin: 20px 0 0;
  color: var(--muted);
}

.family {
  margin-top: 28px;
}

.family-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid var(--fam, var(--accent));
}

.family-name {
  font-size: 1.1875rem;
}

.family-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ccard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

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

.ccard-name {
  min-width: 0;
}

.ccard-title {
  font-size: 1.0625rem;
  line-height: 1.4;
}

.ccard-title a {
  color: var(--text);
}

.ccard-title a:hover {
  color: var(--accent);
}

.ccard-alias {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.ccard-summary {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.ccard-kernel {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.ccard .btn-pair {
  margin-top: auto;
  padding-top: 4px;
}

.ccard.is-off {
  background: var(--surface);
  box-shadow: none;
}

/* 客户端 Logo 保持原始比例，透明图标在亮色和深色页面上共用浅色底。 */
.client-logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--logo-bg);
}

.client-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 没有 Logo 时的字母图标：颜色按内核体系区分 */
.mono {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mono-bg);
  color: var(--mono-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.mono-clash,
.family-clash {
  --mono-bg: #dcebfb;
  --mono-ink: #0b4f96;
  --fam: #0b6bcb;
}

.mono-v2ray,
.family-v2ray {
  --mono-bg: #d6f0ea;
  --mono-ink: #0b5e55;
  --fam: #17907f;
}

.mono-singbox,
.family-singbox {
  --mono-bg: #e7e3fa;
  --mono-ink: #3f3391;
  --fam: #6657d6;
}

.mono-apple,
.family-apple {
  --mono-bg: #ffefc8;
  --mono-ink: #774a00;
  --fam: #f0a91b;
}

.mono-off,
.mono-other {
  --mono-bg: var(--card);
  --mono-ink: var(--muted);
  border: 1px solid var(--border);
}

[data-theme="dark"] .mono-clash {
  --mono-bg: #12283f;
  --mono-ink: #9ccbff;
}

[data-theme="dark"] .mono-v2ray {
  --mono-bg: #0f2b27;
  --mono-ink: #8fdccd;
}

[data-theme="dark"] .mono-singbox {
  --mono-bg: #201c3d;
  --mono-ink: #c3bbff;
}

[data-theme="dark"] .mono-apple {
  --mono-bg: #33270c;
  --mono-ink: #ffd98a;
}

/* ── 正文页（关于） ───────────────────────────────────── */

.prose {
  max-width: calc(var(--read) + 58px);
  margin-top: 20px;
  padding: 4px 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.prose h2 {
  margin-top: 28px;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── 文章正文：一整张纸 ───────────────────────────────── */

.article {
  --notch-bg: var(--card);
  margin-top: 20px;
  padding: 4px 18px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

/* 文章里的小节不再各自成卡 */
.layout-main.article > .section {
  margin-top: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.article > p,
.article .section > p,
.article ul,
.article ol,
.article blockquote {
  max-width: var(--read);
}

.article > p:first-child {
  margin-top: 20px;
  font-size: 1.0625rem;
}

.article ul,
.article ol {
  margin: 1em 0;
  padding-left: 1.4em;
}

.article li {
  margin: 6px 0;
}

.article h2 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article h3 {
  margin-top: 26px;
}

.article a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article .board a,
.article .acard a,
.article .btn {
  text-decoration: none;
}

.article blockquote {
  margin: 1em 0;
  padding: 2px 16px;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

.article pre {
  max-width: var(--read);
  margin: 1em 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-x: auto;
}

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

.article .table-wrap,
.article .board,
.article .faq {
  max-width: var(--read);
  margin: 1em 0;
}

.article .faq h3,
.article .acard-title,
.article .who-name {
  margin-top: 0;
}

.article .faq-item {
  border-color: transparent;
  background: var(--surface);
  box-shadow: none;
}

.article .faq-item::before {
  background: var(--card);
}

/* 文章里的表格：文字可以换行，但每列留出最小宽度；列多的表格在手机上横向滑动，不把字挤成一竖排 */
.article-table th,
.article-table td {
  min-width: 7em;
  white-space: normal;
  vertical-align: top;
}

.article-table tr > :first-child {
  min-width: 9em;
}

.article .board-list,
.article .acard-grid {
  max-width: none;
  margin: 0;
  padding-left: 0;
}

.article .board-list > li,
.article .acard-grid > li {
  margin: 0;
}

.article .mini,
.article .acard {
  box-shadow: none;
}


/* ── 封面图 ───────────────────────────────────────────── */

.cover {
  display: block;
}

.cv-bg {
  fill: var(--cv-bg);
}

.cv-shape {
  fill: var(--cv-shape);
}

.cv-dots circle {
  fill: var(--cv-ink);
  opacity: 0.3;
}

.cv-route {
  fill: none;
  stroke: var(--cv-ink);
  stroke-width: 2;
  stroke-dasharray: 1 8;
  stroke-linecap: round;
  opacity: 0.5;
}

.cv-art {
  fill: none;
  stroke: var(--cv-ink);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cv-art .f {
  fill: var(--cv-fill);
}

.cv-art .a {
  fill: var(--cv-accent);
}

.cv-art .n {
  stroke: none;
}

.cv-art .s {
  stroke: var(--cv-accent);
}

.cover-blue {
  --cv-bg: #dcebfb;
  --cv-shape: #c5ddf8;
  --cv-ink: #0b4f96;
  --cv-fill: #ffffff;
  --cv-accent: #f0a91b;
}

.cover-amber {
  --cv-bg: #ffefc8;
  --cv-shape: #ffe2a0;
  --cv-ink: #774a00;
  --cv-fill: #ffffff;
  --cv-accent: #0b6bcb;
}

.cover-teal {
  --cv-bg: #d6f0ea;
  --cv-shape: #b9e4da;
  --cv-ink: #0b5e55;
  --cv-fill: #ffffff;
  --cv-accent: #f0a91b;
}

.cover-coral {
  --cv-bg: #fce1d9;
  --cv-shape: #f8cabd;
  --cv-ink: #8a2f1c;
  --cv-fill: #ffffff;
  --cv-accent: #0b6bcb;
}

.cover-violet {
  --cv-bg: #e7e3fa;
  --cv-shape: #d5cef5;
  --cv-ink: #3f3391;
  --cv-fill: #ffffff;
  --cv-accent: #f0a91b;
}

.cover-slate {
  --cv-bg: #e3e8ee;
  --cv-shape: #d0d8e1;
  --cv-ink: #2b3a4a;
  --cv-fill: #ffffff;
  --cv-accent: #0b6bcb;
}

[data-theme="dark"] .cover-blue {
  --cv-bg: #12283f;
  --cv-shape: #183756;
  --cv-ink: #9ccbff;
  --cv-fill: #0d1b2a;
  --cv-accent: #f2b544;
}

[data-theme="dark"] .cover-amber {
  --cv-bg: #33270c;
  --cv-shape: #453510;
  --cv-ink: #ffd98a;
  --cv-fill: #201803;
  --cv-accent: #5aa9ff;
}

[data-theme="dark"] .cover-teal {
  --cv-bg: #0f2b27;
  --cv-shape: #143a34;
  --cv-ink: #8fdccd;
  --cv-fill: #091c19;
  --cv-accent: #f2b544;
}

[data-theme="dark"] .cover-coral {
  --cv-bg: #35190f;
  --cv-shape: #472216;
  --cv-ink: #ffb9a6;
  --cv-fill: #200e08;
  --cv-accent: #5aa9ff;
}

[data-theme="dark"] .cover-violet {
  --cv-bg: #201c3d;
  --cv-shape: #2b2652;
  --cv-ink: #c3bbff;
  --cv-fill: #131027;
  --cv-accent: #f2b544;
}

[data-theme="dark"] .cover-slate {
  --cv-bg: #1b242e;
  --cv-shape: #25303c;
  --cv-ink: #c4d0dc;
  --cv-fill: #10171e;
  --cv-accent: #5aa9ff;
}

/* ── 首页主视觉 ───────────────────────────────────────── */

.hero-art {
  display: block;
  width: 100%;
  height: auto;
}

.ha-globe {
  fill: var(--ha-globe);
}

.ha-grid {
  fill: none;
  stroke: var(--ha-line);
  stroke-width: 1.5;
}

.ha-route path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 1 9;
  stroke-linecap: round;
}

.ha-pin circle {
  fill: var(--amber);
  stroke: var(--card);
  stroke-width: 4;
}

.ha-code text {
  fill: var(--muted);
  font: 700 13px var(--font-sans);
  letter-spacing: 0.08em;
}

.ha-fish,
.ha-mark {
  fill: var(--accent);
}

.ha-eye {
  fill: var(--card);
}

.ha-bubble circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.55;
}

.ha-shadow {
  fill: #102030;
  opacity: 0.1;
}

.ha-ticket {
  fill: var(--card);
  stroke: var(--border);
  stroke-width: 1.5;
}

.ha-perf {
  fill: none;
  stroke: var(--border);
  stroke-width: 2;
  stroke-dasharray: 5 6;
}

.ha-notch {
  fill: var(--hero-bg);
}

.ha-brand {
  fill: var(--text);
  font: 700 15px var(--font-sans);
  letter-spacing: 0.18em;
}

.ha-label {
  fill: var(--muted);
  font: 600 11px var(--font-sans);
  letter-spacing: 0.14em;
}

.ha-big {
  fill: var(--text);
  font: 700 24px var(--font-display);
}

.ha-gate {
  fill: var(--accent);
  font: 700 56px var(--font-display);
}

.ha-arrow {
  fill: none;
  stroke: var(--amber);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ha-bar path {
  stroke: var(--text);
  stroke-width: 3;
}

/* ── 页脚 ─────────────────────────────────────────────── */

.site-footer {
  margin-top: 72px;
  padding: 36px 0 96px;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-inner {
  display: grid;
  gap: 12px;
}

.site-footer .logo,
.site-footer a {
  color: var(--footer-strong);
}

.site-footer .logo-mark {
  color: #5aa9ff;
}

.site-footer .logo-eye {
  fill: var(--footer-bg);
}

.footer-brand p {
  margin: 4px 0 0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-note {
  margin: 0;
}

/* ── 右下角浮动按钮 ───────────────────────────────────── */

/* 手机和平板：右下角一条横向胶囊，只占屏幕底部一小条，不挡卡片右侧的数字 */
.float-nav {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: flex;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-strong);
}

.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--muted);
}

.float-btn .icon {
  width: 18px;
  height: 18px;
}

.float-btn:hover {
  background: var(--surface);
  color: var(--accent);
}

/* 回顶按钮滚动超过一屏后才出现 */
.js .float-top {
  display: none;
}

.js .float-top.is-visible {
  display: inline-flex;
}

/* ── 600px 以上 ───────────────────────────────────────── */

@media (min-width: 600px) {
  .ticket-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .cat-head {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

  .cat-cover .cover {
    height: 100%;
  }

  .article .board-compact .board-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── 768px 以上 ───────────────────────────────────────── */

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --header-h: 64px;
  }

  body {
    font-size: 1.0625rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .header-inner {
    flex-wrap: nowrap;
    column-gap: 16px;
  }

  .js .menu-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav {
    display: block;
    flex-basis: auto;
    order: 2;
    margin-left: auto;
    padding-bottom: 0;
  }

  .site-nav ul,
  .js .site-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .header-tools {
    order: 3;
    margin-left: 0;
  }

  .page-head {
    padding-top: 30px;
  }

  .page-head.has-cover {
    grid-template-columns: minmax(0, 1fr) 300px;
    margin-top: 18px;
  }

  .page-head.has-cover .page-head-text,
  .client-head .page-head-text,
  .profile-main {
    padding: 34px 40px 36px;
  }

  .page-head-cover,
  .article-head .page-head-cover {
    display: block;
    order: 0;
    height: auto;
    min-height: 200px;
  }

  .hero {
    margin-top: 20px;
    padding: 36px 36px 8px;
  }

  .hero .lead {
    font-size: 1.125rem;
  }

  .section,
  .text-cards {
    margin-top: 60px;
  }

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

  .note-card {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .note-cover .cover {
    height: 100%;
  }

  .note-body {
    padding: 26px 32px 30px;
  }

  .js .platform-filter {
    width: fit-content;
    max-width: 100%;
  }

  .pf-btn {
    padding: 0 20px;
  }

  .scard-cover .cover {
    height: 150px;
  }

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

  /* 有几栏排几栏：没有「注意事项」的机场只有两栏，不留空位 */
  .review {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }

  .layout-main > .section {
    padding: 26px 28px 28px;
  }

  .article {
    padding: 12px 40px 40px;
  }

  .prose {
    padding: 10px 32px 32px;
  }

  .profile-head .btn-pair,
  .cta .btn-pair {
    max-width: 22rem;
  }

  .carousel-track {
    grid-auto-columns: calc((100% - 32px) / 3);
    gap: 16px;
  }

  .js .carousel-controls {
    display: flex;
    gap: 4px;
  }

  .carousel-dots {
    display: none;
  }

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

  .pager-next {
    grid-column: 2;
    text-align: right;
  }

  .site-footer {
    padding-bottom: 48px;
  }
}

/* ── 900px 以上：登机牌横过来，首页主视觉左右分栏 ─────── */

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 24px;
    padding: 28px 28px 28px 56px;
  }

  .hero-figure {
    max-width: none;
    margin: 0;
  }

  .profile-head {
    grid-template-columns: minmax(0, 1fr) 17rem;
  }

  .profile-pass {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    padding: 28px 30px;
    border-top: 0;
    border-left: 2px dashed var(--border);
  }

  /* 撕口两端的小缺口 */
  .profile-pass::before,
  .profile-pass::after {
    content: "";
    position: absolute;
    left: -10px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--notch-bg);
  }

  .profile-pass::before {
    top: -10px;
  }

  .profile-pass::after {
    bottom: -10px;
  }

  .pass-no {
    font-size: 3.25rem;
  }

  .pass-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .pass-facts div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .pass-facts dt {
    flex: none;
    font-size: 0.8125rem;
  }

  .pass-facts dd {
    font-size: 0.9375rem;
    text-align: right;
  }

  .ticket {
    grid-template-columns: 5.25rem minmax(0, 1fr) 10.5rem;
  }

  .ticket-stub {
    grid-row: auto;
    align-items: center;
    padding-top: 0;
  }

  .ticket .rank {
    font-size: 2.25rem;
  }

  .ticket-stub::before,
  .ticket-stub::after {
    left: calc(5.25rem - 9px);
  }

  .ticket-actions::before,
  .ticket-actions::after {
    display: block;
    left: auto;
    right: calc(10.5rem - 8px);
  }

  .ticket-actions::before {
    top: -9px;
  }

  .ticket-actions::after {
    bottom: -9px;
  }

  .ticket-main {
    grid-template-columns: minmax(13rem, 1.1fr) minmax(0, 1.9fr);
    align-items: center;
    gap: 24px;
    padding: 18px 24px;
  }

  .ticket-actions {
    grid-column: auto;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-top: 0;
    border-left: 2px dashed var(--border);
  }

  .ticket-actions .btn-pair {
    grid-auto-flow: row;
    width: 100%;
  }

  .text-cards,
  .section > .faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .text-card-body {
    padding: 22px 26px 26px;
  }

  .text-card-cover .cover {
    height: 120px;
  }

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

  .choose-cover {
    display: block;
  }

  .choose-body {
    padding: 28px 32px 30px;
  }

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

/* ── 1024px 以上：目录放到正文右侧 ───────────────────── */

@media (min-width: 1024px) {
  .layout-toc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 13rem;
    column-gap: 24px;
    align-items: start;
  }

  .layout-main {
    grid-column: 1;
    grid-row: 1;
  }

  .toc {
    grid-column: 2;
    grid-row: 1;
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px);
    margin: 20px 0 0;
    overflow-y: auto;
    padding: 16px 16px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .js .toc-toggle {
    display: none;
  }

  .toc::before {
    content: "目录";
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
  }

  .toc-list,
  .js .toc-list {
    display: block;
    padding: 0;
    font-size: 0.875rem;
  }

  .toc-list a {
    padding: 6px 0 6px 12px;
  }

  .layout-main h2[id] {
    scroll-margin-top: calc(var(--header-h) + 20px);
  }
}

/* 正好三张入口图卡时排成一行（详情页正文栏窄，仍然两列） */
@media (min-width: 1024px) {
  .ecard-grid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .layout-main .ecard-grid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── 1200px 以上：浮动按钮竖排在版心右侧的空白里 ─────── */

@media (min-width: 1200px) {
  .float-nav {
    right: 20px;
    bottom: 20px;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .float-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    box-shadow: var(--shadow);
  }

  .float-btn:hover {
    border-color: var(--accent);
    background: var(--card);
  }

  .float-btn .icon {
    width: 20px;
    height: 20px;
  }

  .js .float-top,
  .js .float-top.is-visible {
    display: inline-flex;
  }

  .js .float-top {
    visibility: hidden;
    opacity: 0;
  }

  .js .float-top.is-visible {
    visibility: visible;
    opacity: 1;
  }
}

/* ── 动效：只有平滑滚动和淡入，系统要求减少动态效果时全部关闭 ── */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .acard,
  .pager-link,
  .float-top {
    transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease, visibility 0.2s;
  }
}
