/*
Theme Name:   游亚洲 Child
Theme URI:    https://youyazhou.com/
Description:  youyazhou.com 的 GeneratePress 子主题。浅底暖金配色，系统字体，零外部资源，几乎零 JS。始终浅色，不跟随系统深色模式。
Author:       游亚洲
Template:     generatepress
Version:      1.0.2
Text Domain:  youyazhou-child
*/
/* 规则：系统字体、无外部资源、动画只用 transform / opacity */
/* ---------- 1. 配色（CSS 变量）---------- */
/* 浅底暖金：米白底、深灰字、柔和边线。始终浅色，不跟随 prefers-color-scheme。
   正文与链接对比度按 WCAG AA 校对（强调色在浅底上单独用更深的金棕）。 */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f3f2ed;
  --ink: #2b2b2b;
  --ink-2: #3a3a38;
  --muted: #5c5c59;
  --line: #e6e4dc;
  --accent: #8a5a12;
  --accent-fill: #e2b664;
  --accent-ink: #1b1508;
  --accent-soft: #f4ead4;
  --warm: #a04832;
  --warm-soft: #f8ebe6;
  --hero-shade: rgba(6, 8, 12, .7);
  --shadow: 0 1px 2px rgba(40, 38, 30, .06), 0 8px 24px rgba(40, 38, 30, .08);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --read: 680px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* 手机系统是深色时也不切换配色，避免大面积黑底晃眼 */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}


/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); color-scheme: light; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: .005em; margin: 0; font-weight: 700; color: var(--ink); }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 8px 14px; background: var(--surface); border-radius: 8px; }

.grid-container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 3. 头部（GeneratePress: .site-header / .main-navigation）---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid transparent;
}
.site-header::after { /* 细分隔线 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
}
.inside-header { display: flex; align-items: center; gap: 18px; height: 60px; }
.site-branding .main-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: .06em; }
.site-branding a { display: inline-flex; align-items: center; gap: 8px; }
.site-logo-mark { width: 22px; height: 22px; flex: none; }
.main-navigation { margin-left: auto; min-width: 0; }
.main-navigation .menu {
  display: flex; gap: 4px; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.main-navigation .menu::-webkit-scrollbar { display: none; }
.main-navigation .menu a {
  display: block; padding: 6px 10px; border-radius: 999px;
  font-size: 15px; color: var(--ink-2); white-space: nowrap;
  transition: opacity .2s var(--ease);
}
.main-navigation .menu a:hover { opacity: .65; }
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-parent > a { color: var(--accent); font-weight: 600; }
@media (max-width: 480px) {
  .inside-header { gap: 10px; }
  .site-branding .main-title { font-size: 18px; letter-spacing: .04em; }
  .site-logo-mark { width: 20px; height: 20px; }
  .main-navigation .menu { gap: 0; }
  .main-navigation .menu a { padding: 6px 7px; font-size: 14.5px; }
}

/* ---------- 4. 通用区块 ---------- */
.section { padding: 56px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title { font-size: 24px; }
.section-kicker { display: block; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--accent); margin-bottom: 6px; }
.section-more { font-size: 14px; color: var(--muted); white-space: nowrap; transition: opacity .2s var(--ease); }
.section-more:hover { opacity: .6; }
.chip {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}

/* ---------- 5. 首页主视觉 ---------- */
.hero { padding-top: 16px; }
.hero-media {
  position: relative; overflow: hidden; border-radius: 20px; background: #2b3a33;
  aspect-ratio: 4 / 5; isolation: isolate;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, var(--hero-shade) 0%, rgba(0,0,0,.42) 50%, rgba(0,0,0,.12) 78%, rgba(0,0,0,0) 92%);
}
@media (min-width: 760px) {
  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(8,12,10,.62) 0%, rgba(8,12,10,.34) 38%, rgba(0,0,0,0) 62%),
      linear-gradient(to top, rgba(0,0,0,.25), rgba(0,0,0,0) 40%);
  }
  .hero-copy { top: 0; display: flex; flex-direction: column; justify-content: center; }
}
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px 22px 26px; color: #fff; }
.hero-eyebrow { font-size: 13px; letter-spacing: .2em; opacity: .85; margin-bottom: 10px; }
.hero-title { color: #fff; font-size: 34px; line-height: 1.22; font-weight: 800; letter-spacing: .02em; }
.hero-sub { margin: 12px 0 18px; font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,.88); max-width: 30em; }
.hero-search { display: flex; gap: 8px; max-width: 460px; }
.hero-search input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 0; border-radius: 999px;
  font: inherit; font-size: 15px; color: #1a1d1b; background: rgba(255,255,255,.96);
}
.hero-search button {
  height: 46px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; background: var(--accent-fill); color: var(--accent-ink);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.hero-search button:active { transform: scale(.97); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 2px 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.hero-trust li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-fill); margin-right: 8px; vertical-align: 2px; }

@media (min-width: 760px) {
  .hero-media { aspect-ratio: 16 / 7.4; max-height: 600px; }
  .hero-copy { padding: 48px 56px; right: auto; max-width: 640px; }
  .hero-title { font-size: 52px; }
  .hero-sub { font-size: 17px; }
}

/* ---------- 6. 国家入口：手机横滑（scroll-snap），电脑四列 ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 64%;
  gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  list-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; }
.country-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface-2); isolation: isolate; }
.country-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.country-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); }
.country-card .cc-text { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; }
.country-card .cc-name { display: block; font-size: 22px; font-weight: 800; letter-spacing: .08em; }
.country-card .cc-cities { display: block; font-size: 13px; opacity: .85; margin-top: 2px; }
@media (hover: hover) { .country-card:hover img { transform: scale(1.04); } }
@media (min-width: 760px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 4px 0 0; overflow: visible; }
}

/* ---------- 7. 文章卡片 ---------- */
.post-grid { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.post-card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
.post-card .pc-thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface-2); }
.post-card .pc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card .pc-cat { font-size: 12.5px; color: var(--accent); font-weight: 600; letter-spacing: .04em; }
.post-card .pc-title { font-size: 16px; line-height: 1.45; font-weight: 700; margin: 2px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .pc-meta { font-size: 12.5px; color: var(--muted); }
.post-card .pc-excerpt { display: none; }
@media (hover: hover) { .post-card:hover .pc-thumb img { transform: scale(1.04); } .post-card:hover .pc-title { opacity: .75; } }
.post-card .pc-title { transition: opacity .2s var(--ease); }

/* 手机：第一张大图 */
.post-grid > li:first-child .post-card { grid-template-columns: 1fr; gap: 12px; padding-bottom: 6px; }
.post-grid > li:first-child .pc-thumb { border-radius: var(--radius); }
.post-grid > li:first-child .pc-title { font-size: 20px; -webkit-line-clamp: 3; }
.post-grid > li:first-child .pc-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; color: var(--muted); margin: 0 0 6px; }
.post-grid > li + li { border-top: 1px solid var(--line); padding-top: 14px; }

@media (min-width: 760px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
  .post-grid > li + li { border-top: 0; padding-top: 0; }
  .post-card, .post-grid > li:first-child .post-card { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .post-card .pc-thumb { border-radius: var(--radius); }
  .post-card .pc-title, .post-grid > li:first-child .pc-title { font-size: 18px; }
  .post-card .pc-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; color: var(--muted); margin: 0 0 6px; }
}

/* ---------- 8. 出行工具区 ---------- */
.tools { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 20px 20px; }
.tool-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.tool-card { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--bg); }
.tool-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tool-icon svg { width: 22px; height: 22px; }
.tool-card h3 { font-size: 16.5px; margin-bottom: 2px; }
.tool-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.tool-card .tool-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--accent); }
.tool-card .tool-link span { display: inline-block; transition: transform .25s var(--ease); }
@media (hover: hover) { .tool-card:hover .tool-link span { transform: translateX(3px); } }
.tools-note { margin: 14px 2px 0; font-size: 12.5px; color: var(--muted); }
@media (min-width: 760px) {
  .tools { padding: 36px; }
  .tool-list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .tool-card { flex-direction: column; padding: 22px; }
}

/* ---------- 9. 页脚（GeneratePress: .site-footer / .site-info）---------- */
.site-footer { margin-top: 72px; background: var(--surface-2); border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 22px; padding-top: 40px; padding-bottom: 28px; }
.footer-brand p { margin: 8px 0 0; font-size: 14px; color: var(--muted); max-width: 26em; }
.footer-brand .main-title { font-size: 18px; font-weight: 800; letter-spacing: .06em; margin: 0; display: flex; align-items: center; gap: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.footer-nav a { color: var(--ink-2); transition: opacity .2s var(--ease); }
.footer-nav a:hover { opacity: .6; }
.site-info { border-top: 1px solid var(--line); padding: 16px 0 28px; font-size: 12.5px; color: var(--muted); }
.site-info p { margin: 0; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; align-items: end; } }

/* =========================================================
   文章页（single post）
   ========================================================= */
.breadcrumbs { font-size: 13.5px; color: var(--muted); padding: 18px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a:hover { color: var(--accent); }

.single-layout { display: grid; gap: 40px; }
.inside-article { max-width: var(--read); margin: 0 auto; width: 100%; min-width: 0; }
.entry-header { padding: 18px 0 20px; }
.entry-title { font-size: 28px; line-height: 1.32; font-weight: 800; margin: 12px 0 14px; letter-spacing: .01em; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13.5px; color: var(--muted); }
.entry-meta .author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.entry-meta .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-fill); color: var(--accent-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.featured-image { margin: 0 calc(var(--gutter) * -1) 26px; }
.featured-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.featured-image figcaption { font-size: 12px; color: var(--muted); padding: 8px var(--gutter) 0; }
@media (min-width: 760px) {
  .entry-title { font-size: 38px; }
  .featured-image { margin: 0 0 32px; }
  .featured-image img { border-radius: var(--radius); }
  .featured-image figcaption { padding: 8px 0 0; }
}

/* 正文排版 */
.entry-content { font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.entry-content > * + * { margin-top: 0; }
.entry-content h2 { font-size: 23px; margin: 2.2em 0 .7em; scroll-margin-top: 80px; padding-top: .2em; }
.entry-content h3 { font-size: 19px; margin: 1.8em 0 .5em; scroll-margin-top: 80px; }
.entry-content a:not(.btn) { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.entry-content strong { color: var(--ink); font-weight: 700; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin: .3em 0; }
.entry-content li::marker { color: var(--accent); }

/* 三句话答案 */
.answer-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 6px; margin: 0 0 22px; box-shadow: var(--shadow); }
.answer-box .ab-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin-bottom: 10px; }
.answer-box ol { list-style: none; padding: 0; margin: 0; counter-reset: ab; }
.answer-box li { position: relative; padding: 0 0 14px 34px; margin: 0; font-size: 16px; line-height: 1.75; color: var(--ink-2); counter-increment: ab; }
.answer-box li::before { content: counter(ab); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }

/* 目录：手机折叠（details/summary），电脑放右侧粘性栏 */
.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 28px; }
.toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: 15px; font-weight: 700; color: var(--ink); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .chev { width: 18px; height: 18px; transition: transform .25s var(--ease); color: var(--muted); }
.toc[open] summary .chev { transform: rotate(180deg); }
.toc ol, .toc-side ol { list-style: none; margin: 0; padding: 0 18px 14px; counter-reset: toc; }
.toc li, .toc-side li { counter-increment: toc; }
.toc a, .toc-side a { display: flex; gap: 10px; padding: 7px 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); border-top: 1px solid var(--line); transition: opacity .2s var(--ease); }
.toc a::before, .toc-side a::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; padding-top: 2px; }
.toc a:hover, .toc-side a:hover { opacity: .6; }
.toc-side { display: none; }
@media (min-width: 1080px) {
  .single-layout { grid-template-columns: minmax(0, 1fr) 248px; gap: 56px; max-width: 1000px; margin: 0 auto; }
  .inside-article { margin: 0; }
  .toc { display: none; }
  .toc-side { display: block; position: sticky; top: 88px; align-self: start; margin-top: 150px; }
  .toc-side .toc-title { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--muted); margin: 0 0 8px; }
  .toc-side ol { padding: 0; }
  .toc-side a { font-size: 14px; }
}

/* 快速选择卡 */
.pick-grid { display: grid; gap: 10px; list-style: none; padding: 0 !important; margin: 0 0 1.4em !important; }
.pick-grid li { margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); line-height: 1.6; }
.pick-grid .pk-tag { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--warm); margin-bottom: 2px; }
.pick-grid .pk-title { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }
.pick-grid .pk-desc { display: block; font-size: 14.5px; color: var(--muted); }
.pick-grid li::marker { content: none; }
@media (min-width: 600px) { .pick-grid { grid-template-columns: repeat(3, 1fr); } }

/* 价格表格：手机横滑，首列固定 */
.wp-block-table { margin: 0 0 1.5em; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.wp-block-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.wp-block-table th, .wp-block-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.wp-block-table thead th { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.wp-block-table tbody tr:last-child > * { border-bottom: 0; }
.wp-block-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.wp-block-table th:first-child, .wp-block-table td:first-child { position: sticky; left: 0; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.wp-block-table thead th:first-child { background: var(--surface-2); }
.wp-block-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); font-weight: 600; }
.wp-block-table figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.wp-block-table .swipe-hint { display: inline; }
@media (min-width: 760px) { .wp-block-table .swipe-hint { display: none; } }
.verified { display: inline-flex; align-items: center; gap: 5px; }
.verified::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-fill); }

/* 提示框 */
.callout { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; margin: 0 0 1.4em; font-size: 15.5px; line-height: 1.75; background: var(--accent-soft); color: var(--ink-2); }
.callout svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.callout p { margin: 0; }
.callout strong { color: var(--ink); }
.callout.is-warn { background: var(--warm-soft); }
.callout.is-warn svg { color: var(--warm); }

/* 联盟推荐卡 */
.aff-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 18px 16px; margin: 0 0 1.6em; }
.aff-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.aff-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.aff-kicker { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.aff-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.aff-item h3 { font-size: 16px; margin: 0; }
.aff-item p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; background: var(--ink); color: var(--bg); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.btn:hover { opacity: .85; }
.btn:active { transform: scale(.97); }
.aff-foot { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-bottom: 1.4em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px; font-size: 16.5px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; position: relative; width: 18px; height: 18px; margin-top: 3px; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 2px; right: 2px; top: 8px; height: 2px; border-radius: 2px; background: var(--muted); transition: transform .25s var(--ease), opacity .25s var(--ease); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0deg); opacity: 0; }
.faq .faq-a { padding: 0 2px 16px; font-size: 15.5px; color: var(--ink-2); }
.faq .faq-a p { margin: 0; }

/* 作者与更新说明 */
.entry-footer { margin-top: 36px; padding: 18px; border-radius: var(--radius); background: var(--surface-2); font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.entry-footer strong { color: var(--ink-2); }

/* 相关文章 */
.related { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 32px; }
.related .post-grid > li:first-child .post-card { grid-template-columns: 112px 1fr; gap: 14px; padding-bottom: 0; }
.related .post-grid > li:first-child .pc-thumb { border-radius: var(--radius-sm); }
.related .post-grid > li:first-child .pc-title { font-size: 16px; }
.related .post-grid > li:first-child .pc-excerpt { display: none; }
@media (min-width: 760px) {
  .related .post-grid > li:first-child .post-card { grid-template-columns: 1fr; }
  .related .post-grid > li:first-child .pc-thumb { border-radius: var(--radius); }
  .related .post-grid > li:first-child .pc-title { font-size: 18px; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 防止网格子项被宽表格撑开 */
.single-layout > *, .site-main, .entry-content { min-width: 0; }

/* 表格列宽：手机横滑时每列保持可读宽度 */
.wp-block-table table { width: max-content; min-width: 100%; }
.wp-block-table td { min-width: 7.5em; max-width: 13em; }
.wp-block-table tbody th { white-space: normal; min-width: 6.5em; max-width: 8.5em; }
.footer-brand .main-title { color: var(--ink); }

.breadcrumbs { max-width: var(--read); margin: 0 auto; }
.related .post-grid .pc-title { -webkit-line-clamp: 2 !important; }
@media (min-width: 760px) {
  .wp-block-table table { width: 100%; }
  .wp-block-table td { min-width: 0; max-width: none; }
  .wp-block-table tbody th { min-width: 6em; }
}
@media (min-width: 1080px) { .breadcrumbs { max-width: 1000px; } }
.entry-content .toc a { color: var(--ink-2); text-decoration: none; }

/* =========================================================
   WordPress 落地补充
   ========================================================= */
/* 语言切换位：以后上 /en/ 时去掉 header.php 里的 hidden */
.lang-switch { flex: none; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.lang-switch a { display: block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.lang-switch[hidden] { display: none; }

/* 区块编辑器输出的默认结构 */
.entry-content figure { margin: 0 0 1.5em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .wp-block-image figcaption,
.entry-content .wp-element-caption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.entry-content blockquote { margin: 0 0 1.4em; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content .faq details > :not(summary):not(.faq-a) { margin: 0; padding: 0 2px 16px; font-size: 15.5px; }
.featured-image figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* 列表页（分类、搜索、404） */
.archive-header { padding: 32px 0 20px; }
.archive-header .entry-title { margin: 8px 0 6px; }
.archive-header p { color: var(--muted); margin: 0; }
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 36px; font-size: 14.5px; }
.pagination a, .pagination span { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }
.pagination .current { background: var(--accent-fill); color: var(--accent-ink); border-color: var(--accent-fill); }
.empty-note { color: var(--muted); padding: 24px 0; }
.page-plain .inside-article { padding-top: 24px; }
