/* ============================================================
   五一温州美食自驾攻略 — Magazine CSS
   Design System: Apple × 旅行杂志 × 小红书
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --amber:       #C8834A;
  --amber-lt:    #E8A96A;
  --amber-dk:    #8B4C22;
  --cream:       #FAF8F4;
  --cream-dk:    #EDE8DF;
  --chalk:       #FFFFFF;
  --ink:         #1C1C1E;
  --ink-mid:     #3A3A3C;
  --ink-lt:      #6C6C70;
  --blue:        #0984E3;
  --green:       #00A86B;
  --red:         #D63031;
  --warn:        #E67E22;

  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  36px;

  --sh-xs: 0 1px 4px  rgba(0,0,0,.05);
  --sh-sm: 0 2px 12px rgba(0,0,0,.07);
  --sh-md: 0 6px 28px rgba(0,0,0,.10);
  --sh-lg: 0 12px 48px rgba(0,0,0,.14);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ---------- BASE ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- LAYOUT ---------- */
.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
}

.section       { padding: 72px 0; }
.section-tight { padding: 48px 0; }

/* ---------- TYPE SCALE ---------- */
.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--amber);
}

.heading-xl { font-size: clamp(32px, 6vw, 56px); font-weight: 900; line-height: 1.08; letter-spacing: -.5px; }
.heading-lg { font-size: clamp(22px, 4vw, 32px); font-weight: 800; line-height: 1.2; }
.heading-md { font-size: clamp(18px, 3vw, 22px); font-weight: 700; line-height: 1.3; }
.heading-sm { font-size: 16px; font-weight: 700; }
.body-lg    { font-size: 16px; line-height: 1.8; color: var(--ink-mid); }
.body-sm    { font-size: 13px; line-height: 1.7; color: var(--ink-lt); }
.caption    { font-size: 11px; color: var(--ink-lt); }

/* ============================================================
   COVER
   ============================================================ */
.cover {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  max-height: 960px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.cover__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0800 0%, #7a3b10 50%, #c8834a 100%);
}

.cover__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .50;
  transition: opacity 1s;
}

.cover__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,5,0,.92) 0%,
    rgba(15,5,0,.45) 45%,
    rgba(15,5,0,.08) 100%
  );
}

.cover__body {
  position: relative;
  z-index: 2;
  padding: 0 52px 72px;
  width: 100%;
  color: #fff;
}

.cover__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cover__tag {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
}

.cover__title {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -2px;
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
  margin-bottom: 18px;
}

.cover__sub {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.cover__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.cover__meta-item {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   PRINCIPLE BANNER
   ============================================================ */
.principle {
  background: linear-gradient(135deg, #1f0b00 0%, #6b3010 100%);
  border-radius: var(--r-xl);
  padding: 40px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 48px 0;
}

.principle::after {
  content: '"';
  position: absolute;
  right: 32px; top: -12px;
  font-size: 160px;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(255,255,255,.07);
  pointer-events: none;
}

.principle__label { color: var(--amber-lt); margin-bottom: 10px; }
.principle__text  { font-size: 19px; font-weight: 600; line-height: 1.65; max-width: 620px; }

/* ============================================================
   OVERVIEW CARDS
   ============================================================ */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.overview-card {
  background: var(--chalk);
  border-radius: var(--r-md);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--sh-sm);
  transition: transform .2s, box-shadow .2s;
}

.overview-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }

.overview-card__icon  { font-size: 28px; margin-bottom: 10px; }
.overview-card__label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-lt); margin-bottom: 4px; }
.overview-card__value { font-size: 15px; font-weight: 700; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-hd { margin-bottom: 40px; }
.section-hd .label  { margin-bottom: 8px; }
.section-hd .sub    { margin-top: 10px; font-size: 15px; color: var(--ink-lt); max-width: 560px; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 44px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber), var(--amber-lt), var(--amber));
  border-radius: 2px;
}

.tl-day { position: relative; margin-bottom: 44px; }
.tl-day:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -38px; top: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 3px var(--amber);
}

.tl-header {
  background: var(--chalk);
  border-radius: var(--r-md);
  padding: 18px 24px;
  box-shadow: var(--sh-sm);
  border-left: 4px solid var(--amber);
  margin-bottom: 14px;
}

.tl-header__title { font-size: 17px; font-weight: 800; }
.tl-header__sub   { font-size: 13px; color: var(--ink-lt); margin-top: 4px; }

.tl-steps { display: flex; flex-direction: column; gap: 6px; }

.tl-step {
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,.65);
  border-radius: var(--r-sm);
  transition: background .2s;
}

.tl-step:hover { background: var(--chalk); }

.tl-step__time {
  font-size: 12px; font-weight: 700;
  color: var(--amber-dk); min-width: 52px;
  padding-top: 2px; letter-spacing: .5px;
}

.tl-step__title { font-size: 14px; font-weight: 600; }
.tl-step__desc  { font-size: 12px; color: var(--ink-lt); margin-top: 2px; }

/* ============================================================
   DAY BANNER
   ============================================================ */
.day-banner {
  border-radius: var(--r-xl);
  padding: 44px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.day-banner.d1 { background: linear-gradient(130deg, #1a0500 0%, #7a3210 100%); }
.day-banner.d2 { background: linear-gradient(130deg, #051a00 0%, #2a6010 100%); }
.day-banner.d3 { background: linear-gradient(130deg, #00051a 0%, #102860 100%); }

.day-banner__num {
  position: absolute; right: 32px; bottom: -20px;
  font-size: 120px; font-weight: 900; line-height: 1;
  opacity: .10; letter-spacing: -6px; user-select: none;
}

.day-banner__label { color: rgba(255,255,255,.55); margin-bottom: 8px; }
.day-banner__title { font-size: clamp(20px, 3.5vw, 28px); font-weight: 900; }
.day-banner__desc  { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.72); max-width: 500px; }

/* ============================================================
   MEAL CARD
   ============================================================ */
.meal-card {
  background: var(--chalk);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  margin-bottom: 24px;
}

.meal-card__hd {
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.time-badge {
  background: var(--amber);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: .5px;
  white-space: nowrap;
}

.meal-card__title { font-size: 17px; font-weight: 700; }

.meal-card__body { padding: 20px 24px 24px; }

.location-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-lt);
  margin-bottom: 12px;
}

.meal-card__desc {
  font-size: 15px; color: var(--ink-mid);
  line-height: 1.75; margin-bottom: 18px;
}

/* ============================================================
   IMAGE LAYOUTS
   ============================================================ */
/* Full width with rounding */
.img-full {
  width: 100%; object-fit: cover;
  border-radius: var(--r-md);
}

/* Hero strip (inside card header) */
.img-hero {
  width: 100%; height: 300px;
  object-fit: cover;
}

/* 2-col */
.img-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.img-2 img { width: 100%; height: 210px; object-fit: cover; border-radius: var(--r-sm); }

/* 3-col */
.img-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.img-3 img { width: 100%; height: 156px; object-fit: cover; border-radius: var(--r-sm); }

/* Mosaic: 1 big left + 2 right */
.img-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 300px;
}
.img-mosaic .big  { grid-row: 1 / 3; }
.img-mosaic img   { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); }

/* 九宫格 */
.img-9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.img-9 .cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-sm);
}
.img-9 .cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.img-9 .cell:hover img { transform: scale(1.06); }
.img-9 .cell .lbl {
  position: absolute;
  inset-inline: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  color: #fff;
  padding: 20px 10px 8px;
  font-size: 12px; font-weight: 600;
}

/* 4-strip */
.img-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.img-4 img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); }

/* Single with caption */
.img-cap { display: flex; flex-direction: column; gap: 6px; }
.img-cap figcaption { font-size: 12px; color: var(--ink-lt); text-align: center; }

/* ============================================================
   CALLOUT BOXES
   ============================================================ */
.callout {
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 22px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.callout__icon  { font-size: 22px; flex-shrink: 0; padding-top: 1px; }
.callout__title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.callout__body  { font-size: 13px; line-height: 1.7; }

.callout-tip     { background: #EFF6FF; border-left: 4px solid var(--blue);  color: #1a4060; }
.callout-warn    { background: #FFF7ED; border-left: 4px solid var(--warn);  color: #7d4010; }
.callout-danger  { background: #FEF2F2; border-left: 4px solid var(--red);   color: #7d1414; }
.callout-success { background: #ECFDF5; border-left: 4px solid var(--green); color: #0a5e36; }
.callout-note    { background: var(--cream-dk); border-left: 4px solid var(--ink-lt); color: var(--ink-mid); }

/* ============================================================
   HIGHLIGHT (推荐) BOX
   ============================================================ */
.recommend-box {
  background: linear-gradient(135deg, #FFF8F0, #FFECD8);
  border: 1px solid rgba(200,131,74,.28);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  margin: 32px 0;
  position: relative;
}

.recommend-box::before {
  content: '⭐';
  position: absolute;
  top: -14px; left: 22px;
  background: var(--chalk);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 18px;
  border: 1px solid rgba(200,131,74,.3);
}

.recommend-box__title { font-size: 19px; font-weight: 800; color: var(--amber-dk); margin-bottom: 14px; }

/* ============================================================
   CHARGING MODULE
   ============================================================ */
.charging {
  background: linear-gradient(130deg, #09111f 0%, #132030 100%);
  border-radius: var(--r-xl);
  padding: 52px 48px;
  color: #fff;
  margin: 56px 0;
}

.charging .label   { color: #64B5F6; }
.charging .heading-lg { color: #fff; margin-top: 8px; }

.charging-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.ch-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-md);
  padding: 22px 20px;
  transition: background .2s;
}

.ch-card:hover { background: rgba(255,255,255,.12); }

.ch-card__phase { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #64B5F6; margin-bottom: 8px; }
.ch-card__title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.ch-card__desc  { font-size: 13px; color: rgba(255,255,255,.68); line-height: 1.65; }

/* Charging station table */
.ch-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
}

.ch-table th {
  text-align: left;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: #64B5F6;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.ch-table td {
  padding: 14px;
  font-size: 14px;
  color: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
}

.ch-table tr:last-child td { border-bottom: none; }

.pow-badge {
  background: #64B5F6;
  color: #09111f;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px; font-weight: 700;
}

/* ============================================================
   FOOD GRID CARDS
   ============================================================ */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.food-card {
  background: var(--chalk);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .25s, box-shadow .25s;
}

.food-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.food-card img { width: 100%; height: 148px; object-fit: cover; }

.food-card__body { padding: 14px 16px; }
.food-card__name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px; font-weight: 700;
}

.badge-t1 { background: #FFE0B2; color: #BF360C; }
.badge-t2 { background: #E8F5E9; color: #1B5E20; }
.badge-type { background: var(--cream-dk); color: var(--ink-lt); }

/* ============================================================
   AREA CARDS
   ============================================================ */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.area-card {
  background: var(--chalk);
  border-radius: var(--r-md);
  padding: 20px 18px;
  box-shadow: var(--sh-sm);
  border-top: 3px solid var(--amber);
  transition: transform .2s;
}

.area-card:hover { transform: translateY(-2px); }

.area-card__name  { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.area-card__time  { font-size: 12px; font-weight: 600; color: var(--amber-dk); margin-bottom: 8px; }
.area-card__foods { font-size: 13px; color: var(--ink-lt); line-height: 1.6; }

/* ============================================================
   PITFALL / AVOID BOX
   ============================================================ */
.pitfall {
  background: #111113;
  border-radius: var(--r-xl);
  padding: 44px 48px;
  color: #fff;
  margin: 48px 0;
}

.pitfall__hd {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}

.pitfall__hd-icon { font-size: 26px; }
.pitfall__hd-title { font-size: 22px; font-weight: 900; }

.pitfall-items { display: flex; flex-direction: column; gap: 14px; }

.pitfall-item {
  display: flex; gap: 16px;
  padding: 16px 18px;
  background: rgba(255,255,255,.05);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--warn);
}

.pitfall-item__icon { font-size: 20px; flex-shrink: 0; padding-top: 2px; }
.pitfall-item__cat  { font-size: 13px; font-weight: 700; color: var(--warn); margin-bottom: 4px; }
.pitfall-item__text { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.65; }

/* ============================================================
   FINAL SUMMARY
   ============================================================ */
.summary {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 52px 48px;
  text-align: center;
  color: #fff;
}

.summary__title { font-size: clamp(22px, 4vw, 30px); font-weight: 900; margin-bottom: 28px; }

.summary-steps {
  display: flex; flex-direction: column; gap: 8px;
  max-width: 540px; margin: 0 auto;
  text-align: left;
}

.summary-step {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,.06);
  border-radius: var(--r-sm);
}

.summary-step__day  { font-size: 11px; font-weight: 800; color: var(--amber-lt); text-transform: uppercase; letter-spacing: 1px; min-width: 44px; padding-top: 2px; }
.summary-step__text { font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.6; }

.summary__tagline { margin-top: 28px; font-size: 15px; color: rgba(255,255,255,.50); line-height: 1.75; max-width: 480px; margin-inline: auto; }

/* ============================================================
   DIVIDERS
   ============================================================ */
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--cream-dk), transparent); margin: 56px 0; }

.icon-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 44px 0;
}
.icon-divider::before,
.icon-divider::after { content: ''; flex: 1; height: 1px; background: var(--cream-dk); }
.icon-divider span { font-size: 18px; }

/* ============================================================
   STREET SECTION TITLE
   ============================================================ */
.street-title {
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; margin-top: 32px;
}
.street-title::after { content: ''; flex: 1; height: 1px; background: var(--cream-dk); }

/* ============================================================
   PRIORITY LIST
   ============================================================ */
.priority-list { display: flex; flex-direction: column; gap: 6px; }

.priority-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  background: var(--chalk);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-xs);
  font-size: 14px;
}

.priority-item__num {
  width: 24px; height: 24px;
  background: var(--amber);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.3);
  text-align: center;
  padding: 32px;
  font-size: 12px;
  margin-top: 80px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .wrap            { padding: 0 16px; }
  .cover__body     { padding: 0 24px 44px; }
  .principle       { padding: 28px 24px; }
  .day-banner      { padding: 28px 24px; }
  .charging        { padding: 32px 24px; }
  .pitfall         { padding: 28px 24px; }
  .summary         { padding: 32px 24px; }
  .img-mosaic      { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .img-mosaic .big { grid-row: auto; }
  .img-4           { grid-template-columns: repeat(2, 1fr); }
  .img-3 img       { height: 110px; }
}

@media print {
  body               { background: #fff; }
  .cover             { height: 70vh; }
  .charging, .pitfall, .summary { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
