/* ============ 主页扩展：Hero / 精选 / 节日 / 页脚（依赖 base.css 令牌） ============ */

/* ---- 首屏 Hero ---- */
.hero { position: relative; height: 230px; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 40, 70, .32), rgba(20, 40, 70, .74)); }
.hero-inner {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
  padding: 36px 24px; height: 100%; display: flex; flex-direction: column; justify-content: center;
}
.hero-title { font-size: 30px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.hero-slogan { font-size: 14px; opacity: .93; margin: 8px 0 18px; }
.hero-stats { display: flex; gap: 26px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 22px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 12px; opacity: .85; margin-top: 4px; }

/* ---- 通用 section ---- */
.section { max-width: 1200px; margin: 0 auto; padding: 28px 20px 8px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; }
.section-sub { font-size: 13px; color: var(--text-2); }

/* ---- 热门推荐（横向滚动） ---- */
.scroll-x {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
}
.feat-card {
  position: relative; flex: none; width: 240px; height: 150px;
  border-radius: 14px; overflow: hidden; scroll-snap-align: start;
}
.feat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.feat-card:hover img { transform: scale(1.06); }
.feat-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .66));
}
.feat-name { color: #fff; font-size: 17px; font-weight: 700; }
.feat-cat { color: rgba(255, 255, 255, .9); font-size: 12px; margin-top: 2px; }

/* ---- 民俗节日 ---- */
.fest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fest-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; transition: .2s; }
.fest-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.fest-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.fest-body { padding: 12px; }
.fest-name { font-size: 15px; font-weight: 700; }
.fest-time { font-size: 12px; color: var(--gold); margin: 4px 0 6px; font-weight: 600; }
.fest-intro {
  font-size: 12.5px; color: var(--text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- 四季风景 ---- */
.season-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.season-tab {
  padding: 7px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-size: 14px; color: var(--text-2); transition: .2s;
}
.season-tab:hover { border-color: var(--primary-2); color: var(--primary); }
.season-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.season-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.season-desc { font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scene-card { margin: 0; border-radius: 14px; overflow: hidden; position: relative; }
.scene-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.scene-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
  color: #fff; font-size: 13px; line-height: 1.45;
}

/* ---- 旅行贴士 ---- */
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tip-card {
  display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border);
  border-radius: 14px; padding: 15px; background: #fff; transition: .2s;
}
.tip-card:hover { box-shadow: var(--shadow); }
.tip-icon { font-size: 22px; line-height: 1; }
.tip-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.tip-text { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }

/* ---- 州情简介 ---- */
.about { padding-top: 2px; }
.about-card {
  background: linear-gradient(120deg, #eef4fa, #f8f5ef);
  border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px;
}
.about-text { font-size: 14px; line-height: 1.85; color: var(--text); }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.about-tag {
  font-size: 12.5px; font-weight: 600; color: var(--primary);
  background: #fff; border: 1px solid var(--border); padding: 5px 13px; border-radius: 999px;
}

/* ---- 景点全览 ---- */
.spot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spot-card {
  display: block; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; background: #fff; transition: .22s;
}
.spot-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.sc-thumb { height: 120px; overflow: hidden; background: #eef2f6; }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.spot-card:hover .sc-thumb img { transform: scale(1.07); }
.no-img.big {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 42px; background: linear-gradient(135deg, #e0ecf7, #cfd9e2);
}
.sc-body { padding: 11px 13px 14px; }
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sc-name { font-weight: 700; font-size: 15px; }
.sc-cat {
  flex: none; font-size: 11px; color: var(--primary);
  background: rgba(107, 165, 215, .14); padding: 2px 8px; border-radius: 8px; white-space: nowrap;
}
.sc-cat.is-red { color: #fff; background: var(--red); }
.sc-intro {
  font-size: 12.5px; color: var(--text-2); line-height: 1.55; margin-top: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- 路线推荐（主页正文） ---- */
.route-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.route-grid .route-card { display: block; }

/* ---- 红色足迹 ---- */
.red-card {
  flex: none; width: 250px; min-height: 150px; scroll-snap-align: start;
  background: linear-gradient(135deg, #B23A2A, #8f2f21); color: #fff;
  border-radius: 14px; padding: 16px 17px;
  display: flex; flex-direction: column; transition: .22s;
}
.red-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(178, 58, 42, .35); }
.red-flag { font-size: 28px; line-height: 1; margin-bottom: 10px; }
.red-name { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.red-intro { font-size: 12.5px; line-height: 1.55; opacity: .93; margin-bottom: auto; }
.red-more { font-size: 12px; margin-top: 10px; opacity: .85; font-weight: 600; }

/* ---- 页脚 ---- */
.footer { margin-top: 30px; background: #1f2c38; color: rgba(255, 255, 255, .75); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 28px 20px; text-align: center; }
.footer-brand { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer p { font-size: 12.5px; line-height: 1.7; }
.footer-copy { margin-top: 10px; opacity: .6; }

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .hero { height: 165px; }
  .hero-inner { padding: 20px 18px; }
  .hero-title { font-size: 21px; }
  .hero-slogan { font-size: 13px; margin: 6px 0 12px; }
  .hero-stats { gap: 10px 20px; flex-wrap: wrap; }
  .stat-num { font-size: 18px; }
  .feat-card { width: 172px; height: 116px; }
  .fest-grid { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fest-grid::-webkit-scrollbar { display: none; }
  .fest-card { flex: none; width: 172px; scroll-snap-align: start; }
  .fest-card img { height: 100px; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-card img { height: 110px; }
  .tips-grid { grid-template-columns: 1fr; }

  .section { padding: 22px 16px 8px; }
  .section-head { margin-bottom: 12px; }
  .section-head h2 { font-size: 18px; }
  .scroll-x { gap: 12px; scrollbar-width: none; }
  .scroll-x::-webkit-scrollbar { display: none; }
}

/* ---- 响应式补充（景点全览 / 路线 / 红色 / 州情） ---- */
@media (max-width: 1024px) {
  .spot-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .spot-grid { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .spot-grid::-webkit-scrollbar { display: none; }
  .spot-card { flex: none; width: 150px; scroll-snap-align: start; }
  .sc-thumb { height: 100px; }
  .route-grid { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .route-grid::-webkit-scrollbar { display: none; }
  .route-grid .route-card { flex: none; width: 265px; scroll-snap-align: start; }
  .route-grid .route-path, .route-grid .route-desc {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .red-card { width: 215px; min-height: 140px; }
  .about-card { padding: 16px 16px; }
}
