/* ============================================================
   唐人一日生活体验 · 主样式
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --ink:        #120D08;
  --ink-mid:    #2A1F14;
  --vermillion: #9B1B1B;
  --verm-hover: #B52020;
  --gold:       #C4972A;
  --gold-light: #E8B84B;
  --cream:      #F7EDD8;
  --parchment:  #EDE0C4;
  --stone:      #B5A48A;
  --muted:      #7A6A55;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  2rem;
  --fs-4xl:  2.75rem;
  --fs-hero: clamp(2.8rem, 7vw, 5.5rem);

  --radius:    6px;
  --radius-lg: 14px;
  --shadow:    0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.22);
  --ease:      0.3s ease;
  --max-w:     1160px;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Serif SC", "STKaiti", "华文楷体", "Kaiti SC", serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(18,13,8,0); backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), backdrop-filter var(--ease);
}
.nav.scrolled {
  background: rgba(18,13,8,.92);
  backdrop-filter: blur(12px);
  border-color: rgba(196,151,42,.25);
}
.nav-logo {
  color: var(--gold); font-size: var(--fs-lg); letter-spacing: .15em;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.85), 0 0 16px rgba(0,0,0,0.6);
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--cream); font-size: var(--fs-sm); letter-spacing: .1em;
  opacity: .9; transition: color var(--ease), opacity var(--ease);
  text-shadow: 0 1px 5px rgba(0,0,0,0.85);
}
.nav-links a:hover { color: var(--gold); opacity: 1; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2.2rem; border-radius: var(--radius);
  font-size: var(--fs-base); letter-spacing: .1em;
  font-family: inherit; border: none; cursor: pointer;
  transition: all var(--ease);
}
.btn-primary { background: var(--vermillion); color: #fff; }
.btn-primary:hover {
  background: var(--verm-hover); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(155,27,27,.45);
}
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover {
  background: rgba(196,151,42,.12); transform: translateY(-2px);
}
/* 首页英雄区的描边按钮：改为半透明白底，在暖色背景上更醒目 */
.hero .btn-outline {
  background: rgba(255,255,255,0.18);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.32);
  transform: translateY(-2px);
}

/* ---------- 标签 ---------- */
.tag {
  font-size: var(--fs-xs); padding: .2rem .7rem; border-radius: 100px;
  background: rgba(196,151,42,.15); color: var(--muted); letter-spacing: .05em;
}

/* ---------- 首页英雄区 ---------- */
.hero {
  min-height: 100vh;
  background: var(--ink) url('/img/home.webp') center / cover no-repeat;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(12,8,4,0.55) 0%, rgba(12,8,4,0.28) 45%, rgba(12,8,4,0.72) 100%);
}
.hero-eyebrow {
  color: var(--gold); font-size: var(--fs-sm); letter-spacing: .35em;
  margin-bottom: 1.5rem; opacity: .9;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
  position: relative;
}
.hero-title {
  font-size: var(--fs-hero); color: var(--cream);
  line-height: 1.1; letter-spacing: .18em; margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.75), 0 0 40px rgba(0,0,0,0.4);
  position: relative;
}
.hero-title em { color: var(--gold); font-style: normal; }
.hero-sub {
  color: var(--cream); font-size: var(--fs-xl);
  margin-bottom: 3rem; letter-spacing: .1em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
  position: relative;
}
.hero-divider { position: relative; }
.hero-divider {
  width: 80px; height: 1px; margin: 0 auto 3rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ---------- 通用区块 ---------- */
.section {
  padding: 5rem 2rem; max-width: var(--max-w); margin: 0 auto;
}
.section-wide {
  padding: 5rem 2rem;
  background: var(--parchment);
}
.section-dark {
  padding: 5rem 2rem;
  background: var(--ink-mid);
}
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-size: var(--fs-xs); letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem; display: block;
}
.section-title {
  font-size: var(--fs-3xl); letter-spacing: .08em;
  color: var(--ink); margin-bottom: .5rem;
}
.section-dark .section-title { color: var(--gold); }
.section-sub {
  font-size: var(--fs-lg); color: var(--muted); margin-bottom: 3rem;
}
.section-dark .section-sub { color: var(--stone); }

/* ---------- 路线卡片网格 ---------- */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem; margin-top: 3rem;
}
.route-card {
  background: rgba(247,237,216,.06);
  border: 1px solid rgba(196,151,42,.2);
  border-radius: var(--radius-lg);
  padding: 2rem 1.4rem;
  color: var(--cream);
  transition: all var(--ease); position: relative; overflow: hidden;
}
.route-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transition: transform var(--ease);
}
.route-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.route-card:hover::after { transform: scaleX(1); }
.route-card-emoji { font-size: 2.25rem; margin-bottom: 1rem; display: block; }
.route-card-name { font-size: var(--fs-lg); color: var(--gold-light); margin-bottom: .4rem; }
.route-card-audience { font-size: var(--fs-xs); color: var(--stone); margin-bottom: 1rem; line-height: 1.6; }
.route-card-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.route-card .tag { background: rgba(196,151,42,.18); color: var(--stone); }

/* ---------- 首页时间轴预览 ---------- */
.preview-section { text-align: center; }
.preview-section .section-title { color: var(--ink); }

/* ---------- 时间轴页 ---------- */
.timeline-page { max-width: 760px; margin: 0 auto; padding: 7rem 2rem 5rem; }
.timeline-page-title {
  font-size: var(--fs-4xl); color: var(--ink); letter-spacing: .12em;
  margin-bottom: .5rem; text-align: center;
}
.timeline-page-sub {
  color: var(--muted); font-size: var(--fs-lg); text-align: center;
  margin-bottom: 4rem;
}
.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 72px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(196,151,42,.4) 5%, rgba(196,151,42,.4) 95%, transparent);
}
.timeline-item {
  display: flex; gap: 1.75rem; margin-bottom: 2.75rem; position: relative;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.timeline-item.visible { opacity: 1; transform: translateY(0); }
.timeline-time {
  width: 72px; flex-shrink: 0; text-align: right; padding-top: .2rem;
}
.timeline-tc {
  font-size: var(--fs-xs); color: var(--gold); letter-spacing: .05em;
  display: block; margin-bottom: .15rem;
}
.timeline-m { font-size: var(--fs-sm); color: var(--muted); }
.timeline-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
  flex-shrink: 0; margin-top: .55rem; z-index: 1; position: relative;
  box-shadow: 0 0 0 4px rgba(196,151,42,.15);
}
.timeline-body { flex: 1; padding-bottom: .5rem; }
.timeline-head {
  display: flex; align-items: center; gap: .65rem; margin-bottom: .4rem;
}
.timeline-emoji { font-size: 1.4rem; }
.timeline-title { font-size: var(--fs-lg); font-weight: 400; }
.timeline-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.75; margin-bottom: .4rem; }
.timeline-tagline { font-size: var(--fs-sm); color: var(--vermillion); }

/* ---------- 路线列表页 ---------- */
.routes-page { padding: 7rem 2rem 5rem; }
.routes-page-title {
  font-size: var(--fs-4xl); letter-spacing: .12em; margin-bottom: .5rem; text-align: center;
}
.routes-page-sub {
  color: var(--muted); font-size: var(--fs-lg); text-align: center; margin-bottom: 4rem;
}
.routes-list {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem;
}
.route-list-card {
  background: var(--parchment); border: 1px solid rgba(196,151,42,.2);
  border-radius: var(--radius-lg); padding: 2.25rem 1.75rem;
  transition: all var(--ease); position: relative; overflow: hidden;
  color: var(--ink);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease, box-shadow .3s ease, border-color .3s ease;
}
.route-list-card.visible { opacity: 1; transform: translateY(0); }
.route-list-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gold); }
.route-list-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transition: transform var(--ease);
}
.route-list-card:hover::before { transform: scaleX(1); }
.rlc-emoji { font-size: 2.75rem; margin-bottom: 1rem; display: block; }
.rlc-name { font-size: var(--fs-xl); color: var(--vermillion); margin-bottom: .4rem; }
.rlc-audience { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1rem; line-height: 1.6; }
.rlc-tagline {
  font-size: var(--fs-sm); color: var(--ink-mid);
  padding-top: 1rem; border-top: 1px solid rgba(196,151,42,.2);
  margin-bottom: 1.25rem;
}
.rlc-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.rlc-enter {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.5rem; color: var(--vermillion); font-size: var(--fs-sm);
  letter-spacing: .05em; transition: gap var(--ease);
}
.route-list-card:hover .rlc-enter { gap: .7rem; }

/* ---------- 路线详情页 ---------- */
.route-hero {
  background: var(--ink); color: var(--cream);
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding: 8rem 2rem 4.5rem; text-align: center;
}
.route-hero-emoji { font-size: 4rem; display: block; margin-bottom: 1rem; }
.route-hero-title {
  font-size: var(--fs-4xl); color: var(--gold);
  letter-spacing: .18em; margin-bottom: .6rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7), 0 0 30px rgba(0,0,0,0.4);
}
.route-hero-audience {
  color: var(--stone); font-size: var(--fs-lg); margin-bottom: 1.25rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.route-hero-tagline {
  color: var(--cream); font-size: var(--fs-xl);
  margin-bottom: 1.75rem; opacity: .95;
  text-shadow: 0 1px 8px rgba(0,0,0,0.75);
}
.route-hero-tags { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.route-hero-tags .tag { background: rgba(196,151,42,.2); color: var(--gold-light); }

/* 浅色背景路线：文字改为深墨色增强对比 */
.route-hero--light-bg .route-hero-title {
  color: var(--ink);
  text-shadow: 0 1px 3px rgba(255,255,255,0.4);
}
.route-hero--light-bg .route-hero-audience {
  color: var(--ink-mid);
  text-shadow: none;
}
.route-hero--light-bg .route-hero-tagline {
  color: var(--ink);
  text-shadow: none;
  opacity: 0.9;
}
.route-hero--light-bg .route-hero-tags .tag {
  background: rgba(18,13,8,0.12);
  color: var(--ink);
  border-color: rgba(18,13,8,0.25);
}

/* 浅色背景页：未滚动时导航也用深色 */
.hero-light-page .nav:not(.scrolled) .nav-logo {
  color: var(--ink);
  text-shadow: none;
}
.hero-light-page .nav:not(.scrolled) .nav-links a {
  color: var(--ink-mid);
  text-shadow: none;
  opacity: 0.85;
}
.hero-light-page .nav:not(.scrolled) .nav-links a:hover {
  color: var(--vermillion);
  opacity: 1;
}

.route-schedule { max-width: 780px; margin: 0 auto; padding: 4rem 2rem; }
.schedule-item {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 1.75rem; padding: 2rem 0;
  border-bottom: 1px solid rgba(196,151,42,.15);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.schedule-item.visible { opacity: 1; transform: translateY(0); }
.sched-time { text-align: right; padding-top: .3rem; }
.sched-tc { font-size: var(--fs-xs); color: var(--gold); letter-spacing: .05em; display: block; margin-bottom: .15rem; }
.sched-m { font-size: var(--fs-base); color: var(--muted); }
.sched-body {}
.sched-emoji { font-size: 1.75rem; margin-bottom: .5rem; display: block; }
.sched-title { font-size: var(--fs-xl); color: var(--vermillion); font-weight: 400; margin-bottom: .5rem; }
.sched-desc { font-size: var(--fs-base); color: var(--ink-mid); line-height: 1.85; }

.gift-box {
  background: var(--ink-mid); color: var(--cream);
  padding: 4rem 2rem; text-align: center; margin-top: 0;
}
.gift-label { font-size: var(--fs-xs); letter-spacing: .3em; color: var(--gold); display: block; margin-bottom: 1rem; }
.gift-title { font-size: var(--fs-2xl); color: var(--cream); margin-bottom: 1rem; letter-spacing: .08em; }
.gift-content { font-size: var(--fs-lg); color: var(--stone); max-width: 560px; margin: 0 auto; line-height: 2; }

/* ---------- 页脚 ---------- */
footer {
  background: var(--ink); color: var(--muted);
  text-align: center; padding: 2.5rem 2rem;
  font-size: var(--fs-sm); letter-spacing: .08em;
  border-top: 1px solid rgba(196,151,42,.1);
}
footer span { color: var(--gold); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .routes-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.25rem; }
  .routes-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 56px; }
  .timeline-time { width: 56px; }
  .schedule-item { grid-template-columns: 1fr; gap: .75rem; }
  .sched-time { text-align: left; }
}
@media (max-width: 520px) {
  .routes-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .routes-list { grid-template-columns: 1fr; }
}
