/* ChinaMazing 原型样式 —— 青绿山水 + 朱砂印章 */
:root {
  --ink: #1B2B28;
  --jade: #3E7C6B;
  --jade-deep: #28584B;
  --paper: #F4F6F1;
  --cinnabar: #C2492E;
  --smoke: #DDE4DD;
  --ash: #66736D;
  --white: #FFFFFF;
  --radius: 6px;
  --shadow: 0 8px 30px rgba(27, 43, 40, 0.12);
  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* 海外移动端体验：去除 300ms 点按延迟、扩大触达目标、尊重 iOS 安全区 */
html {
  -webkit-tap-highlight-color: transparent;
}
a, button, input, summary {
  touch-action: manipulation;
}
button, a, summary { cursor: pointer; }
.lightbox button,
.lang-switch a,
.chip,
.btn,
.faq summary,
.gallery img {
  min-height: 44px;
  min-width: 44px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--jade-deep); text-decoration: none; }
a:hover { color: var(--cinnabar); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 导航 ---------- */
.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  padding-top: calc(18px + env(safe-area-inset-top));
  color: var(--white);
}
.site-nav.is-solid {
  position: sticky;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--smoke);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--cinnabar);
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35), 0 2px 6px rgba(194,73,46,0.4);
}
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  opacity: 0.75;
}
.lang-switch a:hover { opacity: 1; border-color: var(--cinnabar); }
.lang-switch a.is-active { background: var(--jade); border-color: var(--jade); color: var(--white); opacity: 1; }
.site-nav.is-solid .lang-switch a.is-active { background: var(--jade); color: var(--white); }

/* 6 种语言时的小屏适配：允许换行，避免溢出 */
@media (max-width: 700px) {
  .site-nav { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
  .lang-switch { flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
  .lang-switch a { padding: 5px 10px; font-size: 10px; }
}

/* ---------- 印章（签名元素） ---------- */
.seal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  background: var(--cinnabar);
  color: var(--white);
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(194, 73, 46, 0.35);
  line-height: 1;
  user-select: none;
}
.seal .seal-num {
  font-size: 24px;
  font-weight: 700;
  font-family: "STKaiti", "KaiTi", serif;
}
.seal .seal-sub {
  font-size: 8px;
  letter-spacing: 1px;
  margin-top: 3px;
  opacity: 0.9;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--jade-deep); color: var(--white); }
.btn-primary:hover { background: var(--jade); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* ---------- Hero（列表页/详情页） ---------- */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero img.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,43,40,0.25) 0%, transparent 35%, rgba(27,43,40,0.6) 100%);
  z-index: -1;
}
.hero-body { padding: 40px 20px 56px; max-width: 1200px; width: 100%; margin: 0 auto; }
.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: 1px;
  max-width: 720px;
}
.hero .hero-sub { font-size: 18px; max-width: 560px; opacity: 0.92; margin-top: 14px; }
.hero .hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* hero 图片来源署名（借鉴 visitfinland 全站署名） */
.hero-credit {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(27, 43, 40, 0.4);
  padding: 3px 10px;
  border-radius: 4px;
}
.hero-credit a { color: rgba(255, 255, 255, 0.9); border-bottom: 1px dotted rgba(255,255,255,0.5); }
.hero-credit a:hover { color: var(--cinnabar); }

/* ---------- 意图引导条 ---------- */
.guide {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--smoke);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin: -34px auto 40px;
  position: relative;
  z-index: 5;
  max-width: 1080px;
}
.guide .guide-q { font-weight: 600; font-size: 15px; margin-right: auto; }
.guide .guide-opt {
  border: 1px solid var(--smoke);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.guide .guide-opt:hover { border-color: var(--cinnabar); color: var(--cinnabar); }

/* ---------- 区块标题 ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); letter-spacing: 1px; }
.section-head .more { font-size: 13px; font-family: var(--font-mono); letter-spacing: 1px; }

/* ---------- 类别 chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.chip {
  border: 1px solid var(--smoke);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s ease;
}
.chip.is-active { background: var(--jade); border-color: var(--jade); color: var(--white); }
.chip:hover { border-color: var(--jade); }

/* ---------- 景点卡片网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--smoke);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card .seal { position: absolute; top: 14px; left: 14px; z-index: 2; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--jade-deep);
  border: 1px solid var(--smoke);
  border-radius: 4px;
  padding: 2px 8px;
}
.card-title { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--cinnabar); }
.card-summary { font-size: 14px; color: var(--ash); line-height: 1.6; }
.card-meta { margin-top: auto; font-size: 11px; font-family: var(--font-mono); color: var(--ash); }
.card-meta .credit { font-style: normal; }
.credit a { color: var(--ash); border-bottom: 1px dotted var(--smoke); }
.credit a:hover { color: var(--cinnabar); }

/* ---------- 城市分区带 ---------- */
.region-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--jade-deep);
  color: var(--white);
  border-radius: 12px;
  overflow: hidden;
}
.region-band img { width: 100%; height: 100%; object-fit: cover; }
.region-body { padding: 34px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.region-body h3 { font-family: var(--font-display); font-size: 26px; }
.region-body p { opacity: 0.88; font-size: 15px; }
@media (max-width: 700px) { .region-band { grid-template-columns: 1fr; } }

/* ---------- Spotlight 精选故事（借鉴 visitgreenland） ---------- */
.spotlight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1000px) { .spotlight { grid-template-columns: 1fr; gap: 18px; } }
.spot-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--smoke);
  border-radius: 10px;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.spot-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.spot-media { flex: 0 0 46%; border-radius: 6px; overflow: hidden; }
.spot-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.4s ease; }
.spot-card:hover .spot-media img { transform: scale(1.05); }
.spot-body { display: flex; flex-direction: column; gap: 6px; }
.spot-body h3 { font-family: var(--font-display); font-size: 17px; line-height: 1.25; }
.spot-body h3 a { color: var(--ink); }
.spot-body h3 a:hover { color: var(--cinnabar); }
.spot-body p { font-size: 13px; color: var(--ash); line-height: 1.55; }
.spot-body .credit { font-family: var(--font-mono); font-size: 11px; color: var(--ash); font-style: normal; }
@media (max-width: 640px) {
  .spot-card { flex-direction: column; }
  .spot-media { flex: none; width: 100%; }
  .spot-media img { aspect-ratio: 4 / 3; }
}

/* ---------- FAQ 手风琴（借鉴 visitfinland，语义化 details/summary） ---------- */
.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--smoke);
  border-radius: 8px;
  background: var(--white);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 44px;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--cinnabar);
  font-family: var(--font-mono);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--jade-deep); }
.faq p { padding: 0 20px 16px; font-size: 14.5px; color: #33413C; }

/* ---------- Newsletter 订阅条（借鉴 visitgreenland） ---------- */
.newsletter {
  margin-top: 56px;
  background: linear-gradient(120deg, var(--jade-deep) 0%, var(--jade) 100%);
  color: var(--white);
  border-radius: 14px;
  padding: 40px 24px;
}
.newsletter-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.newsletter h2 { font-family: var(--font-display); font-size: clamp(24px, 4vw, 32px); letter-spacing: 1px; }
.newsletter p { opacity: 0.9; font-size: 14px; margin-top: 8px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.14);
  color: var(--white);
  font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.7); }
.newsletter-form input:focus { outline: 2px solid var(--white); outline-offset: 1px; }
.newsletter-thanks { font-weight: 600; }
@media (max-width: 480px) { .newsletter-form { flex-direction: column; } }

/* 深底上的浅色署名 */
.credit.light { color: rgba(255,255,255,0.7); font-family: var(--font-mono); font-size: 11px; }
.credit.light a { color: rgba(255,255,255,0.85); border-bottom: 1px dotted rgba(255,255,255,0.5); }
.credit.light a:hover { color: var(--cinnabar); }

/* ---------- 详情页 ---------- */
.detail-hero { min-height: 64vh; }
.detail-head { display: flex; gap: 18px; align-items: flex-start; margin: -46px auto 0; position: relative; z-index: 5; }
.detail-title { font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px); }
.detail-title .zh-name { color: var(--ash); font-size: 0.6em; letter-spacing: 2px; }
.detail-summary { font-size: 17px; color: var(--ink); max-width: 760px; margin-top: 8px; }

.highlights { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--smoke);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}
.highlight::before { content: "◆"; color: var(--cinnabar); font-size: 9px; }

.prose { max-width: 760px; }
.prose section { margin-top: 34px; }
.prose h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.prose h3 .h3-num { font-family: var(--font-mono); font-size: 12px; color: var(--cinnabar); }
.prose p { font-size: 15.5px; color: #33413C; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 12px; color: #33413C; font-size: 15.5px; }
.prose li { margin-bottom: 6px; }

/* 画廊 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  border: 1px solid var(--smoke);
}
.gallery img:hover { opacity: 0.92; }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 24, 22, 0.94);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  border-radius: 999px;
  width: 48px; height: 48px;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-family: var(--font-mono); font-size: 13px; }

/* 来源 & 版权 */
.sourcebox {
  margin-top: 40px;
  border: 1px dashed var(--smoke);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 13px;
  color: var(--ash);
  background: var(--white);
}
.sourcebox a { color: var(--jade-deep); text-decoration: underline; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.78); margin-top: 60px; }
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 44px 20px 30px; }
@media (max-width: 700px) { .site-footer .container { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-display); color: var(--white); letter-spacing: 1px; margin-bottom: 10px; font-size: 16px; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--cinnabar); }
.site-footer .foot-note { font-size: 12px; opacity: 0.7; line-height: 1.8; }
.copyright { border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 0; font-size: 12px; opacity: 0.7; text-align: center; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; background: linear-gradient(180deg, var(--paper) 0%, #E8EDE6 100%); }
.notfound .seal { width: 84px; height: 84px; font-size: 34px; margin-bottom: 26px; }
.notfound h1 { font-family: var(--font-display); font-size: clamp(34px, 6vw, 52px); margin-bottom: 10px; }
.notfound p { color: var(--ash); max-width: 420px; margin-bottom: 26px; }

/* ---------- 动效与可访问性 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 2px; }
