/* ============================================================
   京城五景 — 北京旅游景点推荐
   画幅基准：1350 × 1340（竖屏首屏），正文 ≥ 22px
   ============================================================ */

:root{
  --paper:      #F7F3EA;
  --paper-2:    #F0E9DA;
  --paper-3:    #EAE2D1;
  --ink:        #1A1613;
  --ink-2:      #4A423A;
  --ink-3:      #6F6558;
  --red:        #9C2B23;
  --red-lt:     #B4483C;
  --gold:       #A8823F;
  --gold-lt:    #C9A366;
  --line:       rgba(26,22,19,.14);
  --line-2:     rgba(26,22,19,.08);

  --serif: "Songti SC","STSong","Noto Serif SC","Source Han Serif SC","SimSun",serif;
  --sans:  "PingFang SC","Microsoft YaHei","Hiragino Sans GB","Noto Sans SC","Source Han Sans SC",sans-serif;

  --pad: 90px;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  font-family: var(--sans);
  font-size: 23px;
  line-height: 1.9;
  color: var(--ink);
  background: #E6DDCB;
  background-image: radial-gradient(120% 80% at 50% 0%, #F0E8D8 0%, #E2D8C4 70%, #D9CEB8 100%);
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; }

a{ color: inherit; }

::selection{ background: var(--red); color: #fff; }

:focus-visible{ outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- 纸张底纹 ---------- */
body::before{
  content:"";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/></svg>");
}

/* ---------- 进度条 ---------- */
.progress{
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 80; background: transparent;
}
.progress span{
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold-lt));
  transition: width .12s linear;
}

/* ---------- 顶部导航 ---------- */
.nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  background: rgba(247,243,234,.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-102%);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.nav.on{ transform: none; }

.nav-inner{
  width: 1350px; max-width: 100%;
  margin: 0 auto; height: 84px;
  padding: 0 var(--pad);
  display: flex; align-items: center; gap: 30px;
}

.brand{ display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand-seal{
  width: 40px; height: 40px; flex: none;
  background: var(--red); color: #FFF6E6;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 25px; line-height: 1;
  letter-spacing: 0;
}
.brand-txt{ font-family: var(--serif); font-size: 27px; letter-spacing: .12em; }

.nav-links{ display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a{
  position: relative; display: block;
  padding: 11px 16px; font-size: 22px; line-height: 1.2;
  color: var(--ink-3); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a.is-on{ color: var(--red); }
.nav-links a.is-on::after{
  content:""; position: absolute; left: 16px; right: 16px; bottom: 1px;
  height: 2px; background: var(--red);
}
.nav-meta{
  flex: none; font-size: 22px; letter-spacing: .1em; color: #918676;
  padding-left: 22px; border-left: 1px solid var(--line);
}

/* ---------- 画布 ---------- */
.shell{
  position: relative; z-index: 1;
  width: 1350px; max-width: 100%;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(26,22,19,.07), 0 40px 120px rgba(60,45,25,.18);
  overflow: clip;
}

/* ============================================================
   HERO —— 首屏 1350 × 1340
   ============================================================ */
.hero{
  position: relative;
  height: clamp(900px, 100vh, 1340px);
  min-height: 900px;
  padding: 0 var(--pad);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 88% 8%, rgba(201,163,102,.20), rgba(201,163,102,0) 70%),
    radial-gradient(60% 50% at 4% 96%, rgba(156,43,35,.07), rgba(156,43,35,0) 72%),
    var(--paper);
  overflow: hidden;
}
.hero::after{
  content:""; position: absolute; inset: 34px;
  border: 1px solid rgba(168,130,63,.28);
  pointer-events: none;
}

.hero-grid{
  position: relative; z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0,1fr) 448px;
  gap: 72px;
  align-items: center;
}

.kicker{
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 26px;
  font-size: 22px; letter-spacing: .22em; color: var(--gold);
}
.kicker .dot{ width: 9px; height: 9px; background: var(--red); border-radius: 50%; flex: none; }

.hero-title{
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(96px, 10.4vw, 142px);
  line-height: 1; font-weight: 700;
  letter-spacing: .02em;
}
.hero-title .l2{ color: var(--red); }

.hero-sub{
  margin: 26px 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--gold-lt);
  font-size: 25px; line-height: 1.7;
  letter-spacing: .04em; color: var(--ink-2);
}

.hero-lead{
  margin: 30px 0 0;
  max-width: 640px;
  font-size: 24px; line-height: 2;
  color: #3B342C;
}

.hero-stats{
  display: grid; grid-template-columns: repeat(3, auto);
  justify-content: start; gap: 0 46px;
  margin: 40px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats > div{ display: flex; flex-direction: column; gap: 2px; }
.hero-stats dt{
  font-family: var(--serif); font-size: 50px; line-height: 1.1;
  color: var(--red);
}
.hero-stats dd{
  margin: 0; font-size: 22px; line-height: 1.5; color: var(--ink-3);
}

.btn-scroll{
  display: inline-flex; align-items: center; gap: 16px;
  margin-top: 40px; padding: 17px 40px;
  font-size: 22px; letter-spacing: .1em;
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--ink);
  transition: background .3s, color .3s, border-color .3s;
}
.btn-scroll span{ transition: transform .3s; }
.btn-scroll:hover{ background: var(--ink); color: var(--paper); }
.btn-scroll:hover span{ transform: translateY(4px); }

/* 右侧竖幅照片 */
.hero-figure{ margin: 0; }
.hero-frame{
  position: relative;
  padding: 13px;
  border: 1px solid rgba(168,130,63,.45);
  background: rgba(255,255,255,.35);
}
.hero-frame img{
  display: block; width: 100%; height: auto;
  aspect-ratio: 2 / 3; object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}
.hero-seal{
  position: absolute; left: -26px; bottom: 54px;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  background: var(--red); color: #FFF3E0;
  font-family: var(--serif); font-size: 36px; line-height: 1;
  box-shadow: 0 10px 26px rgba(120,30,24,.28);
}
.hero-figure figcaption{
  margin-top: 16px;
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 22px; color: var(--ink-3); letter-spacing: .02em;
}
.hero-figure figcaption span{ color: var(--gold); }

.hero-vertical{
  position: absolute; top: 50%;
  right: 463px;
  transform: translateY(-50%);
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 22px; letter-spacing: .42em;
  color: rgba(168,130,63,.62);
  pointer-events: none;
}

/* ============================================================
   通用区块头
   ============================================================ */
.sec-head{ max-width: 940px; }
.sec-kicker{
  margin: 0 0 18px;
  font-size: 22px; letter-spacing: .2em; color: var(--gold);
}
.sec-title{
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 4.6vw, 62px);
  line-height: 1.3; font-weight: 700; letter-spacing: .01em;
}
.sec-desc{
  margin: 22px 0 0;
  font-size: 23px; line-height: 1.95; color: var(--ink-3);
  max-width: 820px;
}

/* ============================================================
   目录卡片
   ============================================================ */
.index{ padding: 118px var(--pad) 96px; }

.index-grid{
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 22px; margin-top: 62px;
}

.idx-card{
  display: block;
  text-decoration: none;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  transition: border-color .3s;
}
.idx-img{
  display: block; overflow: hidden;
  background: var(--paper-3);
}
.idx-img img{
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s;
}
.idx-card:hover .idx-img img{ transform: scale(1.06); filter: brightness(1.04); }
.idx-no{
  display: block; margin-top: 18px;
  font-family: var(--serif); font-size: 22px; color: var(--gold);
  letter-spacing: .1em;
}
.idx-name{
  display: block; margin-top: 4px;
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  letter-spacing: .04em;
  transition: color .25s;
}
.idx-card:hover .idx-name{ color: var(--red); }
.idx-note{
  display: block; margin-top: 4px;
  font-size: 22px; line-height: 1.6; color: var(--ink-3);
}

/* ============================================================
   景点详解
   ============================================================ */
.spots{ padding: 0 var(--pad) 40px; }

.spot{
  display: grid;
  grid-template-columns: 620px minmax(0,1fr);
  gap: 64px;
  align-items: start;
  padding: 96px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.spot--flip{ grid-template-columns: minmax(0,1fr) 620px; }
.spot--flip .spot-media{ order: 2; }
.spot--flip .spot-body{ order: 1; }

.spot-media{
  position: sticky; top: 118px;
}

.spot-photo{
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper-3);
}
.spot-photo img{
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.spot--tall .spot-photo img{ aspect-ratio: 4 / 5; }
.spot-photo:hover img{ transform: scale(1.03); }

.spot-photo figcaption{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 26px 18px;
  color: #FFF6E7; font-size: 22px; letter-spacing: .04em;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
  background: linear-gradient(to top, rgba(14,10,7,.86) 0%, rgba(14,10,7,.52) 45%, rgba(14,10,7,0) 100%);
}

.spot-notes{ margin-top: 24px; }
.notes-title{
  margin: 0 0 4px;
  font-size: 22px; letter-spacing: .16em; color: var(--gold);
}
.spot-notes ul{ list-style: none; margin: 0; padding: 0; }
.spot-notes li{
  display: flex; align-items: baseline; gap: 18px;
  padding: 11px 0;
  border-top: 1px solid var(--line-2);
  font-size: 22px; line-height: 1.6;
}
.spot-notes li b{
  flex: none; min-width: 96px;
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  letter-spacing: .02em;
}
.spot-notes li span{ color: var(--ink-3); }

.spot-en{
  margin: 0; font-size: 22px; letter-spacing: .24em;
  color: var(--gold); text-transform: uppercase;
}
.spot-en b{
  font-family: var(--serif); font-weight: 400;
  font-size: 24px; letter-spacing: .04em;
  color: var(--red); margin-right: 18px;
}
.spot-name{
  margin: 10px 0 14px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(52px, 5.4vw, 76px);
  line-height: 1.15; letter-spacing: .04em;
}
.spot-tag{
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 27px; line-height: 1.7;
  color: var(--red);
}
.spot-desc{
  margin: 0 0 34px;
  font-size: 23px; line-height: 2.02; color: var(--ink-2);
}

.facts{ margin: 0; border-top: 1px solid var(--line); }
.facts > div{
  display: grid; grid-template-columns: 132px minmax(0,1fr);
  gap: 26px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
}
.facts dt{
  font-size: 22px; line-height: 1.75; color: var(--gold);
  letter-spacing: .04em;
}
.facts dd{
  margin: 0; font-size: 23px; line-height: 1.78;
}
.facts em{
  display: block; margin-top: 5px;
  font-style: normal; font-size: 22px; line-height: 1.75;
  color: var(--ink-3);
}

.tip{
  margin: 26px 0 0;
  padding: 18px 24px;
  font-size: 22px; line-height: 1.9; color: #4A3B33;
  background: rgba(156,43,35,.055);
  border-left: 3px solid var(--red);
}
.tip b{ color: var(--red); margin-right: 10px; }

/* ============================================================
   三天行程
   ============================================================ */
.plan{
  padding: 118px var(--pad) 108px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.tabs{
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 46px;
  border-bottom: 1px solid var(--line);
}
.tab{
  appearance: none; -webkit-appearance: none;
  margin: 0 0 -1px;
  padding: 20px 34px 18px;
  background: none; border: 0; border-bottom: 2px solid transparent;
  font-family: var(--sans); font-size: 24px; line-height: 1.4;
  color: var(--ink-3); cursor: pointer;
  transition: color .25s, border-color .25s;
}
.tab:hover{ color: var(--ink); }
.tab.is-on{ color: var(--ink); border-bottom-color: var(--red); }

.panel{
  display: grid;
  grid-template-columns: minmax(0,1fr) 440px;
  gap: 64px;
  align-items: start;
  padding-top: 54px;
}
.panel[hidden]{ display: none; }

.panel-time{
  margin: 0 0 10px;
  font-size: 22px; letter-spacing: .08em; color: var(--gold);
}
.panel h3{
  margin: 0 0 26px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(38px, 3.6vw, 48px); line-height: 1.35;
}

.steps{ list-style: none; margin: 0; padding: 0; }
.steps li{
  position: relative;
  margin: 0 0 16px;
  padding: 2px 0 2px 26px;
  font-size: 23px; line-height: 1.95;
  border-left: 1px solid var(--line);
}
.steps li::before{
  content:""; position: absolute; left: -5px; top: 16px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--red);
}
.steps b{
  display: inline-block; min-width: 74px;
  color: var(--red); font-weight: 600;
}

.panel-img{ margin: 0; }
.panel-img img{
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
}
.panel-img figcaption{
  margin-top: 12px;
  font-size: 22px; color: var(--ink-3);
}

/* ============================================================
   实用贴士
   ============================================================ */
.tips{ padding: 118px var(--pad) 108px; }

.acc{ margin-top: 56px; }
.acc details{ border-top: 1px solid var(--line); }
.acc details:last-child{ border-bottom: 1px solid var(--line); }

.acc summary{
  display: flex; align-items: center; gap: 26px;
  padding: 28px 0;
  font-size: 29px; line-height: 1.5;
  cursor: pointer; list-style: none;
}
.acc summary::-webkit-details-marker{ display: none; }
.acc summary::marker{ content: ""; }
.acc-no{
  font-family: var(--serif); font-size: 22px;
  color: var(--gold); letter-spacing: .08em;
  flex: none;
}
.acc-ico{
  position: relative; margin-left: auto;
  width: 24px; height: 24px; flex: none;
}
.acc-ico::before, .acc-ico::after{
  content:""; position: absolute; background: var(--ink);
  transition: transform .3s ease, opacity .3s;
}
.acc-ico::before{ left: 0; top: 11px; width: 24px; height: 2px; }
.acc-ico::after{ left: 11px; top: 0; width: 2px; height: 24px; }
details[open] .acc-ico::after{ transform: scaleY(0); opacity: 0; }
details[open] .acc-no{ color: var(--red); }

.acc-body{ max-width: 1000px; padding: 0 0 34px 52px; }
.acc-body p{
  margin: 0;
  font-size: 23px; line-height: 2; color: var(--ink-2);
}

/* ============================================================
   页脚
   ============================================================ */
.foot{
  padding: 92px var(--pad) 60px;
  background: #191512;
  color: #CFC4B4;
}
.foot-mark{
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 128px);
  line-height: 1; letter-spacing: .1em;
  color: rgba(255,255,255,.07);
  margin-bottom: 48px;
}
.foot-cols{
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 52px;
}
.foot-col h4{
  margin: 0 0 14px;
  font-size: 22px; font-weight: 500;
  letter-spacing: .08em; color: var(--gold-lt);
}
.foot-col p{
  margin: 0;
  font-size: 22px; line-height: 1.95;
  color: #A79C8C;
}
.foot-col code{
  font-family: Consolas, Monaco, monospace;
  font-size: 22px; color: #E4D6BE;
}
.foot-end{
  margin: 58px 0 0; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 22px; letter-spacing: .06em; color: #7E7466;
}

/* ============================================================
   回到顶部 / 灯箱
   ============================================================ */
.to-top{
  position: fixed; right: 38px; bottom: 38px; z-index: 75;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 50%;
  font-size: 26px; cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .35s, transform .35s, background .25s;
}
.to-top.on{ opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover{ background: var(--red); }

.lightbox{
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 64px;
  background: rgba(14,11,8,.93);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox[hidden]{ display: none; }
.lightbox figure{
  margin: 0; display: flex; flex-direction: column; align-items: center;
}
.lightbox img{
  max-width: min(1080px, 84vw);
  max-height: 72vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox figcaption{
  margin-top: 24px;
  font-size: 22px; line-height: 1.7;
  color: #E9DFC9; text-align: center;
}
.lb-close{
  position: absolute; right: 44px; top: 28px;
  width: 56px; height: 56px;
  background: none; border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #FFF; font-size: 38px; line-height: 1;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.lb-close:hover{ background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); }

/* ============================================================
   入场动画
   ============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in{ opacity: 1; transform: none; }

/* ============================================================
   自适应
   ============================================================ */
@media (max-width: 1349px){
  :root{ --pad: 6vw; }
  .shell{ box-shadow: none; }
  .nav-inner{ width: 100%; }
  .hero{ height: auto; min-height: 0; padding-top: 96px; padding-bottom: 96px; }
  .hero::after{ inset: 22px; }
  .hero-grid{ grid-template-columns: minmax(0,1fr) clamp(320px, 34vw, 448px); gap: 48px; }
  .hero-vertical{ display: none; }
  .hero-stats{ gap: 0 30px; }
}

@media (max-width: 1024px){
  .hero-grid{ grid-template-columns: 1fr; gap: 56px; }
  .hero-figure{ max-width: 420px; }
  .index-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
  .spot,
  .spot--flip{ grid-template-columns: 1fr; gap: 40px; }
  .spot-media{ position: static; }
  .spot--flip .spot-media{ order: 0; }
  .spot--flip .spot-body{ order: 1; }
  .spot--tall .spot-photo img{ aspect-ratio: 4 / 3; }
  .panel{ grid-template-columns: 1fr; gap: 40px; }
  .panel-img{ max-width: 520px; }
  .foot-cols{ grid-template-columns: 1fr; gap: 40px; }
  .nav-meta{ display: none; }
}

@media (max-width: 760px){
  body{ font-size: 22px; }
  .hero-title{ font-size: 64px; }
  .hero-sub{ font-size: 22px; }
  .hero-lead{ font-size: 22px; }
  .hero-stats{ grid-template-columns: 1fr 1fr; gap: 18px 30px; }
  .hero-stats dt{ font-size: 40px; }
  .index-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .facts > div{ grid-template-columns: 1fr; gap: 2px; }
  .acc summary{ font-size: 24px; gap: 16px; }
  .acc-body{ padding-left: 0; }
  .acc-body p{ font-size: 22px; }
  .spot-notes li{ flex-direction: column; gap: 2px; }
  .spot-en{ letter-spacing: .1em; }
  .spot-en b{ margin-right: 10px; }
  .nav-inner{ height: 72px; gap: 12px; }
  .nav-meta{ display: none; }
  .nav-links{ overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar{ display: none; }
  .nav-links a{ padding: 10px 12px; font-size: 22px; white-space: nowrap; }
  .brand-txt{ display: none; }
  .spot{ padding: 64px 0; }
  .tab{ padding: 16px 18px; font-size: 22px; }
  .lightbox{ padding: 20px; }
  .lb-close{ right: 16px; top: 12px; }
  .to-top{ right: 18px; bottom: 18px; width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal{ opacity: 1; transform: none; }
}
