/* ============================================================
   川蜀大环线 · 巴蜀翠竹 · 烟雨青城 主题
   Misty Shu Mountains & Bamboo aesthetic: deep forest night + jade green
   + Sichuan-opera amber gold, literary Chinese serif headings.
   ============================================================ */

:root {
  --bg-gradient: linear-gradient(135deg, #0f1f1a 0%, #1a2e25 45%, #243b30 100%);
  --bg-glow: radial-gradient(ellipse at 50% -10%, rgba(16, 185, 129, 0.18), transparent 60%);
  --surface: #fdf8f0;
  --surface-muted: #eef3e8;
  --surface-sunk: #e3ecda;
  --text: #1f2a1a;
  --text-muted: #4f5d49;
  --primary: #15803d;
  --primary-dark: #166534;
  --primary-soft: #d1fae5;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --gold: #ca8a04;
  --rust: #b91c1c;
  --border: #d8e0cb;
  --shadow: 0 22px 60px rgba(8, 28, 16, 0.32);
  --shadow-sm: 0 6px 18px rgba(8, 28, 16, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --nav-height: 64px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text);
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}

/* 烟雨山岚光晕 + 竹叶纹理叠层，营造巴蜀青城夜色氛围 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg-glow);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85  0 0 0 0 1  0 0 0 0 0.75  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============ 顶部导航 ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(15, 31, 26, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.18);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d1fae5;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 1px;
}

.nav-brand span {
  opacity: 0.8;
  font-weight: 400;
  font-size: 13px;
  font-family: var(--font-body);
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-link {
  color: rgba(209, 250, 229, 0.72);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.2);
}

.nav-link.active {
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.45);
}

/* ============ 页面容器与标题 ============ */
.page-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 22px 52px;
  position: relative;
  z-index: 1;
}

.page-header {
  text-align: center;
  color: #d1fae5;
  margin-bottom: 30px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 42px);
  margin-bottom: 10px;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.page-header h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page-header p {
  opacity: 0.82;
  font-size: 15px;
}

.meta-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.meta-tag {
  background: rgba(16, 185, 129, 0.14);
  color: #bbf7d0;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ============ 卡片基类 ============ */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(216, 224, 203, 0.7);
}

.card-body {
  padding: 24px;
}

/* ============ 首页模块网格 ============ */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.module-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(216, 224, 203, 0.7);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--accent));
  opacity: 0.85;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px rgba(8, 28, 16, 0.42);
  border-color: var(--gold);
}

.module-card-featured {
  border: 2px solid rgba(21, 128, 61, 0.3);
}

.module-icon {
  font-size: 42px;
}

.module-card h2 {
  font-family: var(--font-display);
  font-size: 23px;
  color: var(--text);
  letter-spacing: 1px;
}

.module-card p {
  color: var(--text-muted);
  font-size: 14px;
  flex: 1;
}

.module-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: filter 0.2s, transform 0.2s;
}

.module-btn:hover {
  filter: brightness(1.08);
  transform: translateX(2px);
}

.external-links {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(16, 185, 129, 0.14);
  color: #bbf7d0;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  transition: background 0.2s;
}

.external-link:hover {
  background: rgba(16, 185, 129, 0.26);
}

/* ============ 路书布局 ============ */
.route-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 768px) {
  .route-layout {
    grid-template-columns: 1fr;
  }
}

.day-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  max-height: calc(100vh - var(--nav-height) - 32px);
  overflow-y: auto;
}

.day-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 18px 8px;
}

.day-nav-item {
  display: block;
  padding: 11px 18px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.day-nav-item:hover {
  background: var(--surface-muted);
}

.day-nav-item.active {
  border-left-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

.day-nav-item .day-label {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 1px;
}

.day-nav-item.active .day-label {
  color: var(--primary);
}

.overview-section h2 {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--accent));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0 0 22px 22px;
  cursor: pointer;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
  transition: all 0.2s;
}

.timeline-item:hover::before,
.timeline-item.active::before {
  background: var(--gold);
  transform: scale(1.18);
  box-shadow: 0 0 0 4px rgba(202, 138, 4, 0.18);
}

.timeline-day {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
  font-family: var(--font-display);
  letter-spacing: 1px;
}

.timeline-route {
  font-size: 14px;
  font-weight: 500;
}

.timeline-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.day-detail {
  display: none;
}

.day-detail.active {
  display: block;
}

.day-detail-header {
  background: linear-gradient(135deg, #14532d 0%, #15803d 60%, #ca8a04 100%);
  color: #f0fdf4;
  padding: 28px;
  position: relative;
}

.day-detail-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--rust));
}

.day-detail-header h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.day-detail-header .route-text {
  font-size: 15px;
  opacity: 0.95;
}

.day-detail-body {
  padding: 24px;
}

.stops-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.stop-chip {
  background: var(--surface-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
}

.stop-arrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.info-block {
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.info-block h3 {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alert-block {
  background: #fdf2e3;
  border: 1px solid #f0c98a;
  color: #92400e;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
}

.alert-block ul {
  margin: 6px 0 0 18px;
}

.view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.view-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--text);
}

.view-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============ 清单进度条 ============ */
.progress-bar-wrap {
  height: 6px;
  background: var(--surface-sunk);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--primary));
  width: 0%;
  transition: width 0.3s;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
}

.checklist-section {
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.section-header {
  padding: 14px 18px;
  color: #f0fdf4;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.section-header .count {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 10px;
  border-radius: 999px;
}

.section-content {
  background: #f6f9f1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.section-content.open {
  max-height: 3000px;
  padding: 8px 18px 12px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #e3ecda;
  gap: 12px;
}

.check-item:last-child {
  border-bottom: none;
}

.checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #b9c8a8;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.2s;
}

.checkbox:hover {
  border-color: var(--primary);
}

.checkbox.checked {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox.checked::after {
  content: "✓";
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}

.item-info {
  flex: 1;
}

.item-name {
  font-size: 15px;
  font-weight: 600;
}

.item-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin-left: 6px;
  font-weight: 500;
}

.tag-core {
  background: #fde2d4;
  color: var(--rust);
}

.tag-rec {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.tag-opt {
  background: #e7f1ef;
  color: var(--accent-dark);
}

.check-item.done .item-name {
  text-decoration: line-through;
  color: #a8b89a;
}

.check-item.done .item-desc {
  color: #c4d2b6;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px 24px;
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-note {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
}

.footer-note p + p {
  margin-top: 6px;
}

.site-footer {
  text-align: center;
  padding: 24px;
  color: rgba(209, 250, 229, 0.5);
  font-size: 12px;
  position: relative;
  z-index: 1;
}

/* ============ 食志 / 特产 共享布局 ============ */
.food-page .page-header p {
  max-width: 720px;
  margin: 0 auto;
}

.food-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}

.food-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  max-height: calc(100vh - var(--nav-height) - 32px);
  overflow-y: auto;
}

.food-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 18px 8px;
}

.food-province-nav {
  display: flex;
  flex-direction: column;
}

.food-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  font-size: 14px;
}

.food-nav-item:hover {
  background: var(--surface-muted);
}

.food-nav-item.active {
  border-left-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.food-nav-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.food-nav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.food-nav-text strong {
  font-size: 14px;
  font-family: var(--font-display);
  letter-spacing: 1px;
}

.food-nav-text small {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.food-nav-item.active .food-nav-text small {
  color: var(--primary);
  opacity: 0.8;
}

.food-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border);
}

.food-sidebar-btn {
  display: block;
  text-align: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  transition: background 0.2s;
}

.food-sidebar-btn:hover {
  background: var(--primary-dark);
}

.food-sidebar-btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.food-sidebar-btn-outline:hover {
  background: var(--primary-soft);
}

.food-main {
  min-width: 0;
}

.food-hero {
  margin-bottom: 24px;
}

.food-hero-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.food-hero h2 {
  font-family: var(--font-display);
  font-size: 23px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.food-hero p {
  color: var(--text-muted);
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.food-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(216, 224, 203, 0.7);
  transition: transform 0.25s, box-shadow 0.25s;
}

.food-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(8, 28, 16, 0.38);
}

.food-image,
.food-detail-media {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.food-card-body {
  padding: 18px;
}

.food-card-body h2,
.food-detail h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  letter-spacing: 1px;
}

.food-card-body p,
.food-detail p {
  color: var(--text-muted);
  font-size: 14px;
}

.food-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 600;
}

.food-detail-list {
  display: grid;
  gap: 18px;
}

.food-detail {
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.food-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.food-dish-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.food-detail-intro {
  margin-bottom: 16px;
}

.food-dish-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.food-dish {
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid var(--border);
}

.food-dish-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.food-dish-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.food-dish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.food-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e2f1ee;
  color: var(--primary-dark);
}

.food-section-back {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.food-section-back:hover {
  text-decoration: underline;
}

/* ============ 浮动按钮 ============ */
.food-float-actions,
.float-actions {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.food-float-actions.visible,
.float-actions.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.food-float-btn,
.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.5);
  transition: filter 0.2s, transform 0.2s;
}

.food-float-btn:hover,
.float-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.08);
}

.food-float-btn-home,
.float-btn-home {
  font-size: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.footer-home-link {
  color: rgba(209, 250, 229, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-home-link:hover {
  color: #d1fae5;
}

/* ============ 食志/特产 地区配图（生成图 + 渐变兜底） ============ */
.food-image-chengdu {
  background-image: linear-gradient(rgba(21, 128, 61, 0.25), rgba(202, 138, 4, 0.28)), url("https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=Chengdu%20Jinli%20old%20street%20red%20lanterns%20warm%20lights%20Sichuan%20night%20market%20panda%20culture%20travel%20photography&image_size=landscape_16_9");
  background-color: #2c4a2a;
}

.food-image-leshan {
  background-image: linear-gradient(rgba(15, 118, 110, 0.26), rgba(202, 138, 4, 0.22)), url("https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=Leshan%20Giant%20Buddha%20stone%20statue%20river%20misty%20mountains%20Sichuan%20green%20forest%20cinematic%20travel%20photography&image_size=landscape_16_9");
  background-color: #2a5a4a;
}

.food-image-langzhong {
  background-image: linear-gradient(rgba(180, 83, 9, 0.26), rgba(202, 138, 4, 0.22)), url("https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=Langzhong%20ancient%20town%20black%20tile%20roofs%20red%20lanterns%20qing%20dynasty%20architecture%20Sichuan%20travel%20photography&image_size=landscape_16_9");
  background-color: #8a5a22;
}

.food-image-aba {
  background-image: linear-gradient(rgba(15, 118, 110, 0.26), rgba(21, 128, 61, 0.22)), url("https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=Jiuzhaigou%20colorful%20turquoise%20lakes%20waterfalls%20autumn%20forest%20snow%20mountains%20Sichuan%20national%20park%20travel%20photography&image_size=landscape_16_9");
  background-color: #1a4a3a;
}

@media (max-width: 768px) {
  .food-layout {
    grid-template-columns: 1fr;
  }

  .food-sidebar {
    position: static;
    max-height: none;
  }

  .food-province-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .food-nav-item {
    border-left: none;
    border-bottom: 3px solid transparent;
    flex-direction: column;
    text-align: center;
    padding: 12px 10px;
  }

  .food-nav-item.active {
    border-left: none;
    border-bottom-color: var(--primary);
  }

  .food-nav-text small {
    white-space: normal;
  }

  .food-sidebar-actions {
    flex-direction: row;
  }

  .food-sidebar-btn {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .food-hero-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .food-province-nav {
    grid-template-columns: 1fr;
  }

  .food-nav-item {
    flex-direction: row;
    text-align: left;
  }
}

/* ============ 天气模块 ============ */
.weather-page .page-header p {
  max-width: 720px;
  margin: 0 auto;
}

.weather-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}

.weather-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  max-height: calc(100vh - var(--nav-height) - 32px);
  overflow-y: auto;
}

.weather-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 18px 8px;
}

.weather-region-nav {
  display: flex;
  flex-direction: column;
}

.weather-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  font-size: 14px;
}

.weather-nav-item:hover {
  background: var(--surface-muted);
}

.weather-nav-item.active {
  border-left-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.weather-nav-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.weather-nav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.weather-nav-text strong {
  font-size: 13px;
}

.weather-nav-text small {
  font-size: 11px;
  color: var(--text-muted);
}

.weather-nav-item.active .weather-nav-text small {
  color: var(--primary);
  opacity: 0.8;
}

.weather-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 18px 8px;
  border-top: 1px solid var(--border);
}

.weather-sidebar-btn {
  display: block;
  text-align: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.weather-sidebar-btn:hover:not(:disabled) {
  background: var(--primary-dark);
}

.weather-sidebar-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.weather-sidebar-btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.weather-sidebar-btn-outline:hover {
  background: var(--primary-soft);
}

.weather-sidebar-note {
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 18px 14px;
  line-height: 1.4;
}

.weather-main {
  min-width: 0;
}

.weather-hero {
  margin-bottom: 20px;
}

.weather-hero-body h2 {
  font-family: var(--font-display);
  font-size: 23px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.weather-hero-body p {
  color: var(--text-muted);
  font-size: 14px;
}

.weather-grid {
  display: grid;
  gap: 18px;
}

.weather-card {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.weather-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
  color: #f0fdf4;
}

.weather-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.weather-card-title h3 {
  font-size: 18px;
  margin-bottom: 2px;
  font-family: var(--font-display);
  letter-spacing: 1px;
}

.weather-region-icon {
  font-size: 28px;
}

.weather-region-meta {
  font-size: 12px;
  opacity: 0.85;
}

.weather-update-time {
  font-size: 11px;
  opacity: 0.8;
  white-space: nowrap;
}

.weather-current {
  margin-bottom: 20px;
}

.weather-current-main {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.weather-current-icon {
  font-size: 56px;
  line-height: 1;
}

.weather-current-temp {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.weather-current-label {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 4px;
}

.weather-current-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.weather-stat {
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}

.weather-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.weather-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.weather-forecast-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.weather-forecast-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.weather-forecast-day {
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  border: 1px solid var(--border);
}

.weather-forecast-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.weather-forecast-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.weather-forecast-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weather-forecast-temps {
  font-size: 13px;
  font-weight: 600;
}

.weather-temp-max {
  color: var(--rust);
  margin-right: 4px;
}

.weather-temp-min {
  color: var(--primary-dark);
}

.weather-forecast-pop {
  font-size: 10px;
  color: var(--accent);
  margin-top: 4px;
}

.weather-region-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 14px;
  background: #f6f9f1;
  border-radius: var(--radius-sm);
  border: 1px solid #c8d8b8;
}

.weather-loading,
.weather-error {
  text-align: center;
  color: var(--text-muted);
  padding: 32px;
}

.weather-error {
  color: var(--rust);
}

@media (max-width: 900px) {
  .weather-forecast-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .weather-layout {
    grid-template-columns: 1fr;
  }

  .weather-sidebar {
    position: static;
    max-height: none;
  }

  .weather-region-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .weather-nav-item {
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .weather-nav-item.active {
    border-left: none;
    border-bottom-color: var(--primary);
  }

  .weather-current-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .weather-forecast-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .weather-region-nav {
    grid-template-columns: 1fr;
  }

  .weather-forecast-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .weather-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============ 海拔模块 ============ */
.elevation-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
}

.stat-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.stat-content {
  min-width: 0;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.elevation-chart-card {
  margin-bottom: 20px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.chart-header h2 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0;
  letter-spacing: 1px;
}

.chart-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-safe {
  background: #10b981;
}

.legend-warning {
  background: #f59e0b;
}

.legend-danger {
  background: #ef4444;
}

.chart-container {
  position: relative;
  height: 400px;
  width: 100%;
}

.elevation-points-card h2 {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.elevation-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.elevation-point-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.elevation-point-item:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.point-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.point-info {
  flex: 1;
  min-width: 0;
}

.point-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.point-day {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.point-altitude {
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.altitude-safe {
  color: #10b981;
}

.altitude-warning {
  color: #f59e0b;
}

.altitude-danger {
  color: #ef4444;
}

@media (max-width: 768px) {
  .elevation-stats {
    grid-template-columns: 1fr;
  }

  .chart-container {
    height: 300px;
  }

  .chart-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .elevation-points-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .elevation-points-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .weather-sidebar,
  .elevation-points-card {
    display: none !important;
  }

  body {
    background: #fff;
  }

  body::before,
  body::after {
    display: none !important;
  }

  .site-nav,
  .toolbar,
  .view-toggle,
  .day-sidebar,
  .food-sidebar,
  .food-float-actions,
  .float-actions,
  .weather-sidebar {
    display: none !important;
  }

  .route-layout {
    grid-template-columns: 1fr;
  }

  .day-detail {
    display: block !important;
    page-break-inside: avoid;
    margin-bottom: 16px;
  }

  .section-content {
    max-height: none !important;
    padding: 8px 18px !important;
  }
}

/* ============ 特产文创模块 ============ */
.specialty-page .page-header p {
  max-width: 720px;
  margin: 0 auto;
}

.specialty-group {
  margin-top: 20px;
}

.specialty-group + .specialty-group {
  margin-top: 24px;
}

.specialty-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  letter-spacing: 1px;
}

.specialty-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.specialty-item {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.specialty-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(8, 28, 16, 0.14);
}

.specialty-item-img {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.specialty-item-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.specialty-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.specialty-item-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.specialty-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.specialty-badge-product {
  background: #fde2c8;
  color: var(--accent-dark);
}

.specialty-badge-culture {
  background: #e2f1ee;
  color: var(--primary-dark);
}

.specialty-item-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.specialty-item .food-dish-tags {
  margin-top: 2px;
}

/* 特产缩略图：分类渐变纹理，无外部图，保持清爽 */
.sp-img-tea {
  background: linear-gradient(135deg, #14532d, #15803d 60%, #ca8a04);
}
.sp-img-craft {
  background: linear-gradient(135deg, #3a2410, #7c4a1f 60%, #c2410c);
}
.sp-img-textile {
  background: linear-gradient(135deg, #5a2a3a, #9a3a4a 60%, #b91c1c);
}
.sp-img-fruit {
  background: linear-gradient(135deg, #15803d, #65a30d 60%, #f59e0b);
}
.sp-img-dessert {
  background: linear-gradient(135deg, #8a5a22, #c2853a 60%, #e0a050);
}
.sp-img-silver {
  background: linear-gradient(135deg, #2a2a30, #4a4a52 60%, #6a6a72);
}
.sp-img-scenic {
  background: linear-gradient(135deg, #0f766e, #0d9488 60%, #14b8a6);
}
.sp-img-stone {
  background: linear-gradient(135deg, #4a3a2a, #7a5a3a 60%, #9a7a5a);
}

@media (max-width: 768px) {
  .specialty-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .specialty-items {
    grid-template-columns: 1fr;
  }
}
