/* 公共站 M1 全局样式：零框架手写 CSS（Tailwind+设计令牌按设计 04 号 §6 属 M2 打磨项） */
:root {
  --ink: #1f2933;
  --muted: #5f6b76;
  --line: #e4e9ee;
  --brand: #b4462a;        /* 宫墙红，锚点色 */
  --brand-dark: #8f3520;
  --bg: #fbfaf8;
  --card: #ffffff;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: clip;                       /* 全幅 hero 出血防横向滚动条（clip 不建立滚动容器，sticky 不受影响） */
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
img { max-width: 100%; }

/* ── 容器宽度：门户级宽布局（对标 Airbnb/Booking 桌面水位线），正文可读性由 .prose 760px 独立兜底 ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1600px) { .container { max-width: 1440px; } }
/* 宽度对比开关（临时演示用，上线前移除）：html.narrow 切回一期 980 布局，首页按钮切换+localStorage 记忆 */
html.narrow .container { max-width: 980px; }
@media (min-width: 1600px) { html.narrow .container { max-width: 980px; } }

/* ── 头部 ── */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .inner { display: flex; align-items: center; gap: 22px; height: 56px; }
.site-header .brand { font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: .2px; }
.site-header .brand:hover { text-decoration: none; color: var(--brand); }
.site-header nav { display: flex; gap: 18px; margin-left: auto; }
.site-header nav a { color: var(--muted); font-size: 14.5px; }
.site-header nav a:hover { color: var(--brand); text-decoration: none; }
/* 语言切换开关（第 34 轮）：胶囊样式与普通导航项区分 */
.site-header nav a.lang-toggle {
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-weight: 600;
}
.site-header nav a.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }

/* ── 面包屑 ── */
.crumbs { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 6px; color: #b9c2ca; }

/* ── 首页英雄区（404 等页沿用 .hero 字号；首页为全幅沉浸图 .hero-full） ── */
.hero { padding: 54px 0 34px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -.5px; }
.hero p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 20px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* 全幅沉浸 hero：三图纯 CSS 交叉淡入轮播，零 JS（图见 public/img/） */
.hero-full {
  position: relative;
  margin: 0 calc(50% - 50vw);            /* 从 980 容器出血到全视口宽 */
  height: min(66vh, 640px);
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a222b;                    /* 图片加载前的底色 */
}
.hf-slides, .hf-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hf-slides img { opacity: 0; animation: hfFade 24s infinite; }
.hf-slides .hf-s2 { animation-delay: 8s; }
.hf-slides .hf-s3 { animation-delay: 16s; }
@keyframes hfFade {
  0% { opacity: 0; } 3% { opacity: 1; } 30% { opacity: 1; } 36% { opacity: 0; } 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-slides img { animation: none; opacity: 0; }
  .hf-slides .hf-s1 { opacity: 1; }
}
.hf-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,20,.18) 0%, rgba(10,14,20,.06) 42%, rgba(10,14,20,.74) 100%); }
.hf-body { position: relative; width: 100%; padding: 120px 20px 58px; }
.hero-full h1 { color: #fff; font-size: 46px; line-height: 1.12; margin: 0 0 12px; letter-spacing: -.5px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-full p { color: rgba(255,255,255,.93); font-size: 17.5px; max-width: 640px; margin: 0 0 22px; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.hero-full .btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); color: #fff; }
.hero-full .btn-ghost:hover { background: rgba(255,255,255,.24); border-color: #fff; color: #fff; }
.btn { display: inline-block; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; font-size: 15px; border: 1px solid transparent; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ── 区块 ── */
section.block { padding: 26px 0; }
section.block > h2 { font-size: 24px; margin: 0 0 4px; }
section.block > .sub { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; }

/* ── 卡片网格 ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; }
.card:hover { border-color: var(--brand); }
.card .kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--brand); font-weight: 600; }
.card h3 { margin: 0; font-size: 18px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--brand); text-decoration: none; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .meta { font-size: 13px; color: var(--muted); margin-top: auto; }
/* 城市卡封面图：出血置顶 */
.card .card-img { margin: -18px -18px 6px; width: calc(100% + 36px); height: 165px; object-fit: cover; display: block; border-radius: var(--radius) var(--radius) 0 0; background: #ece7e0; }

/* ── 页面 hero 图（城市与详情页头图） ── */
.page-hero { width: 100%; max-height: 380px; object-fit: cover; border-radius: 14px; display: block; margin: 4px 0 8px; background: #ece7e0; }

/* ── 图片来源披露表 ── */
.credits-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 14px; }
.credits-table th, .credits-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.credits-table tr:last-child td { border-bottom: none; }

/* ── 列表行（城市页内各型清单） ── */
ul.rows { list-style: none; margin: 0; padding: 0; }
ul.rows li { padding: 12px 2px; border-bottom: 1px dashed var(--line); }
ul.rows li:last-child { border-bottom: none; }
ul.rows a { font-weight: 600; font-size: 16px; color: var(--ink); }
ul.rows a:hover { color: var(--brand); text-decoration: none; }

/* 景点图集（第 33 轮）：每景点 2-5 张实拍宫格，首图即页首大图 */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 8px; }
.gal-grid img { width: 100%; height: 172px; object-fit: cover; border-radius: 10px; background: #ece7e0; display: block; }
ul.rows .desc { color: var(--muted); font-size: 14px; margin: 2px 0 0; }

/* ── 内容页 ── */
article.page { padding: 10px 0 30px; }
article.page h1 { font-size: 32px; line-height: 1.2; margin: 8px 0 6px; }
article.page .lead { color: var(--muted); font-size: 16.5px; }
article.page .prose { max-width: 760px; }
article.page .prose h2 { font-size: 23px; margin: 26px 0 8px; }
article.page .prose h3 { font-size: 18.5px; margin: 20px 0 6px; }
article.page .prose ul, article.page .prose ol { padding-left: 22px; }
article.page .prose li { margin: 3px 0; }

/* ── 结构化信息卡 ── */
.info-table { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; margin: 16px 0; max-width: 560px; }
.info-table dl { display: grid; grid-template-columns: 170px 1fr; margin: 0; }
.info-table dt { padding: 10px 0; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); }
.info-table dd { padding: 10px 0 10px 14px; margin: 0; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.info-table dt:last-of-type, .info-table dd:last-of-type { border-bottom: none; }
.price-note { font-size: 12.5px; color: var(--muted); font-style: italic; margin: 6px 0 0; }

/* ── FAQ 折叠（纯 details，零 JS） ── */
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; padding: 0 16px; }
details.faq summary { cursor: pointer; font-weight: 600; padding: 13px 0; }
details.faq[open] summary { border-bottom: 1px dashed var(--line); }
details.faq p { padding-top: 10px; }

/* ── 徽章 ── */
.badge { display: inline-block; background: #f6ede8; color: var(--brand-dark); border-radius: 999px; padding: 2px 11px; font-size: 13px; font-weight: 600; margin: 0 6px 6px 0; }
.badge.neutral { background: #eef1f4; color: var(--muted); }

/* ── 旅游App式内容卡（景点/美食） ── */
.grid.t-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.t-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 8px; color: inherit; transition: border-color .15s, box-shadow .15s; }
.t-card:hover { text-decoration: none; border-color: var(--brand); box-shadow: 0 2px 10px rgba(180,70,42,.08); }
/* 卡片封面图：负 margin 出血到卡边，圆角只留上缘 */
.t-thumb { position: relative; margin: -16px -18px 2px; display: block; }
.t-thumb img { width: 100%; height: 175px; object-fit: cover; display: block; border-radius: var(--radius) var(--radius) 0 0; background: #ece7e0; }
.t-thumb .rank { position: absolute; top: 10px; left: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.35); }
.t-head { display: flex; align-items: center; gap: 10px; }
.t-head .rank { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.t-head .t-emoji { font-size: 24px; flex: none; }
.t-title { min-width: 0; }
.t-title h3 { margin: 0; font-size: 17.5px; line-height: 1.25; color: var(--ink); }
.t-card:hover .t-title h3 { color: var(--brand); }
.t-kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 600; }
.t-summary { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #f4f0ea; border: 1px solid var(--line); color: #5a5147; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.t-more { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.t-card:hover .t-more { text-decoration: underline; }

/* ── 宽度对比开关按钮（首页右下角；临时演示用，上线前随 html.narrow 规则一并移除） ── */
.width-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.92);
  color: var(--ink); font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 10px rgba(31,41,51,.12);
  backdrop-filter: blur(3px);
}
.width-toggle:hover { border-color: var(--brand); color: var(--brand); }

/* ── 中式回纹饰带（section 间呼吸点 + 页脚顶边；面积 <3%，只点缀不抢戏） ── */
.ornament {
  height: 22px;
  margin: 30px auto 0;
  max-width: 320px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 22V2h20v20H10V10h6v6' fill='none' stroke='%23b4462a' stroke-opacity='.2' stroke-width='2'/%3E%3C/svg%3E") repeat-x center / auto 22px;
}

/* ── CTA 条 ── */
.cta-band { background: linear-gradient(135deg, #8f3520, #b4462a); color: #fff; border-radius: 14px; padding: 30px 30px; margin: 30px 0; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: 22px; color: #fff; }
.cta-band p { margin: 4px 0 0; opacity: .85; font-size: 14.5px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); margin-left: auto; }
.cta-band .btn-primary:hover { background: #f6efe9; }

/* ── 页脚 ── */
.site-footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 40px; padding: 0 0 34px; color: var(--muted); font-size: 13.5px; }
.site-footer::before {                     /* 页脚顶居中一段回纹短带，与 .ornament 同源 */
  content: '';
  display: block;
  height: 16px;
  max-width: 280px;
  margin: 30px auto 26px;
  opacity: .8;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 22V2h20v20H10V10h6v6' fill='none' stroke='%23b4462a' stroke-opacity='.2' stroke-width='2'/%3E%3C/svg%3E") repeat-x center / auto 16px;
}
.site-footer .cols { display: flex; gap: 40px; flex-wrap: wrap; }
.site-footer h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.site-footer .legal { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }

.updated { font-size: 12.5px; color: var(--muted); }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero-full { height: 74vh; min-height: 480px; }
  .hero-full h1 { font-size: 32px; }
  .hero-full p { font-size: 16px; }
  .hf-body { padding: 90px 20px 44px; }
  .info-table dl { grid-template-columns: 1fr; }
  .info-table dd { padding-left: 0; }
  .cta-band .btn-primary { margin-left: 0; }
}
