/* chinatripguide.top — 版式参考 huaqiangbeitours.com 的结构（横幅 + 左目录 + 正文、问句小标题、编号出处），配色与品牌自定 */
:root {
  --ink: #17324d;        /* 青花深蓝 */
  --accent: #1f5f8b;
  --clay: #c8693a;       /* 陶土色，主按钮 */
  --clay-dark: #a65429;
  --text: #2a3440;
  --muted: #5e6a77;
  --line: #dde4ea;
  --tint: #eef4f8;
  --paper: #fbfaf6;
  --radius: 18px;
  --wrap: 1180px;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font: 17px/1.7 var(--sans); color: var(--text); background: #fff; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

/* 头部 */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--serif); font-size: 20px; }
.brand small { font-size: 12px; color: var(--muted); }
.nav-desktop { display: flex; gap: 24px; }
.nav-desktop a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-desktop a:hover, .nav-desktop a[aria-current] { color: var(--ink); border-color: var(--clay); }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; border-radius: 10px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-mobile nav { position: absolute; right: 0; top: 50px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(23,50,77,.12); padding: 8px; min-width: 220px; display: flex; flex-direction: column; }
.nav-mobile nav a { padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 10px; }
.nav-mobile nav a:hover { background: var(--tint); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 24px; border-radius: 999px; font-weight: 650; font-size: 15px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 3px 8px rgba(200,105,58,.18); }
.btn-primary:hover { background: var(--clay-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--tint); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* 首页 */
.hero { background: linear-gradient(160deg, #e7f0f6 0%, #f7f3ea 100%); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 72px 28px 64px; max-width: 900px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--clay-dark); margin: 0 0 12px; }
.hero h1 { font-family: var(--serif); font-size: clamp(34px, 4.2vw, 52px); line-height: 1.12; color: var(--ink); margin: 0; letter-spacing: -.5px; }
.hero-lede { font-size: 19px; max-width: 700px; margin: 18px 0 0; }
.section { padding: 56px 28px; }
.section-head h2 { font-family: var(--serif); font-size: 30px; color: var(--ink); margin: 0 0 6px; }
.section-head p { margin: 0 0 26px; }
.dest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.dest-card { display: flex; flex-direction: column; gap: 8px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--tint), #fff 60%); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.dest-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(23,50,77,.10); color: var(--text); }
.dest-card h3 { font-family: var(--serif); font-size: 25px; color: var(--ink); margin: 4px 0 0; }
.dest-card p { margin: 0; }
.dest-card ul { margin: 4px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.dest-card em { font-style: normal; font-weight: 700; color: var(--clay-dark); margin-top: auto; padding-top: 6px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.prose-home { padding-top: 0; }
.article-home { max-width: 760px; }

/* 横幅 */
.page-banner { background: linear-gradient(160deg, #e7f0f6 0%, #f7f3ea 100%); border-bottom: 1px solid var(--line); }
.page-banner .wrap { padding-top: 34px; padding-bottom: 38px; }
.crumbs { display: inline-flex; flex-wrap: wrap; gap: 8px; font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; }
.crumbs a { text-decoration: none; }
.crumbs span { color: var(--muted); }
.page-banner h1 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; color: var(--ink); margin: 18px 0 6px; max-width: 900px; }
.subtitle { font-size: 18px; color: var(--muted); margin: 0; max-width: 760px; }

/* 文章：左目录 + 正文 */
.article-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 46px; padding-top: 38px; padding-bottom: 64px; align-items: start; }
.article-grid > .article:only-child { grid-column: 1 / -1; max-width: 760px; }
.toc { position: sticky; top: 92px; }
.toc details { background: linear-gradient(180deg, var(--tint), #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.toc summary { font-weight: 700; color: var(--ink); cursor: pointer; font-size: 14px; }
.toc ol { margin: 10px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.toc li { margin: 7px 0; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.article { max-width: 760px; min-width: 0; }
.byline { font-size: 14px; color: var(--muted); margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.article h2 { font-family: var(--serif); font-size: 28px; line-height: 1.25; color: var(--ink); margin: 44px 0 12px; }
.article h3 { font-size: 19px; color: var(--ink); margin: 28px 0 8px; }
.article p, .article li { max-width: 72ch; }
.article .answer { font-size: 18.5px; background: var(--paper); border-left: 4px solid var(--clay); padding: 16px 20px; border-radius: 0 12px 12px 0; }
.article blockquote { margin: 20px 0; padding: 12px 18px; border-left: 3px solid var(--line); color: var(--muted); }
.ref a { text-decoration: none; font-size: 12px; margin-left: 1px; }
.callout { background: #fff7ef; border: 1px solid #f0d9c6; border-radius: 14px; padding: 14px 18px; }
.callout p { margin: 6px 0; }
.next-link { font-weight: 700; }

/* 表格：只在自己的容器里横滑 */
.table-wrap { margin: 20px 0; }
.swipe-hint { display: none; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.article table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.article table.wide { min-width: 560px; }
.article th { background: var(--tint); color: var(--ink); text-align: left; font-weight: 700; }
.article th, .article td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article tr:last-child td { border-bottom: 0; }

/* 出处 */
.sources { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 24px; }
.sources ol { font-size: 15px; line-height: 1.55; padding-left: 22px; }
.sources li { margin: 8px 0; word-break: break-word; }
.sources li:target { background: #fff3d6; border-radius: 6px; }

/* 下一步 */
.next h2 { font-size: 24px; }
.card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.mini-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); background: #fff; }
.mini-card:hover { box-shadow: 0 8px 22px rgba(23,50,77,.09); color: var(--text); }
.mini-card strong { color: var(--ink); }
.mini-card span { font-size: 15px; color: var(--muted); }
.mini-card em { font-style: normal; font-weight: 700; color: var(--clay-dark); font-size: 14px; }

.ad-slot { margin: 36px 0 0; text-align: center; min-height: 0; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-top: 38px; padding-bottom: 26px; }
.footer-grid a { display: block; text-decoration: none; color: var(--text); margin: 6px 0; font-size: 15px; }
.footer-grid a:hover { color: var(--accent); }
.foot-brand { font-family: var(--serif); font-size: 20px; color: var(--ink); margin: 0 0 6px; font-weight: 700; }
.foot-head { font-weight: 700; color: var(--ink); margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); padding-top: 16px; padding-bottom: 26px; border-top: 1px solid var(--line); }

@media (max-width: 1000px) {
  .article-grid { grid-template-columns: 1fr; gap: 22px; }
  .toc { position: static; }
  .toc details:not([open]) { padding-bottom: 16px; }
}
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .dest-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  .section { padding: 40px 18px; }
  .hero-inner { padding: 48px 18px 44px; }
  .swipe-hint { display: block; }
  .article h2 { font-size: 24px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
