/* ==========================================================================
   styles.css —— 江城武汉 · 城市介绍
   --------------------------------------------------------------------------
   只使用课件里讲过的 CSS：
     · Week 2 Lecture 1：外部样式表、选择器、盒模型、block/inline、
       shorthand 的"时钟"顺序、box-sizing: border-box、CSS3 transition/transform
     · Week 2 Lecture 2：响应式设计、max-width、Flexbox、media query
   没有引入任何 CSS 框架（作业要求：Flexbox + media query，禁用 Bootstrap）。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计变量
   配色取自"江水 + 樱花"：深蓝到青蓝是长江，粉是武大樱花，米白是旧租界的墙面
   -------------------------------------------------------------------------- */
:root {
  --river-deep: #0a2740;
  --river: #124a72;
  --river-mid: #1d6d9e;
  --river-light: #4a9ec7;
  --blossom: #d9758a;
  --blossom-deep: #b25268;
  --blossom-soft: #fbe9ed;
  --gold: #c19a52;

  --ink: #16212b;
  --ink-soft: #3d4c59;
  --muted: #6b7c8c;
  --paper: #ffffff;
  --sand: #f6f2ea;
  --line: #e7dfd2;

  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(10, 39, 64, 0.07), 0 8px 20px rgba(10, 39, 64, 0.05);
  --shadow-lg: 0 4px 10px rgba(10, 39, 64, 0.08), 0 22px 44px rgba(10, 39, 64, 0.1);
  --max-width: 1140px;
}

/* --------------------------------------------------------------------------
   2. 基础重置
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;   /* 让 padding/border 不再撑大声明宽度 */
}

html {
  scroll-behavior: smooth;
  /* 锚点跳转时给固定页头留出空间 */
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  background-color: var(--sand);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

h1, h2, h3 {
  font-family: Georgia, "Songti SC", "SimSun", "Noto Serif SC", serif;
  line-height: 1.3;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.12rem; }

p { margin: 0 0 14px; }
a { color: var(--river); }
img { max-width: 100%; }

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

/* --------------------------------------------------------------------------
   3. 通用工具类
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 64px 0;
}

.section--tint {
  background-color: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 34px;
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--blossom-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 18px;
  background-color: var(--river-deep);
  color: #fff;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   4. 页头与导航
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgba(10, 39, 64, 0.97);
  backdrop-filter: blur(6px);
  color: #fff;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.2rem;
}

.brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background-color: var(--blossom);
  font-size: 1rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 7px 13px;
  border-radius: 999px;
  color: #cfe0ec;
  font-size: 0.94rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  background-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.site-nav a.is-active {
  background-color: var(--blossom);
  color: #fff;
}

/* --------------------------------------------------------------------------
   5. 首屏：江水与桥
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background:
    radial-gradient(circle at 82% 18%, rgba(217, 117, 138, 0.35), transparent 45%),
    radial-gradient(circle at 12% 82%, rgba(74, 158, 199, 0.3), transparent 50%),
    linear-gradient(165deg, #0a2740 0%, #124a72 52%, #1d6d9e 100%);
  color: #fff;
}

/* 用 CSS 画一条"江面"：叠两层半透明弧线模拟水波 */
.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -80px;
  height: 190px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.18) inset;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 2 1 420px;
  min-width: 0;
}

.hero-text h1 {
  font-size: 3.1rem;
  margin-bottom: 6px;
}

.hero-text h1 small {
  display: block;
  margin-top: 6px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.72);
}

.hero-text p {
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* 首屏右侧的"名片" */
.hero-facts {
  flex: 1 1 260px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(3px);
}

.hero-facts h2 {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 12px;
}

.hero-facts dl {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.hero-facts dt {
  width: 100%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.hero-facts dd {
  margin: -8px 0 0;
  font-size: 1.02rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. 按钮
   -------------------------------------------------------------------------- */
.button {
  display: inline-block;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: var(--blossom);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.button:hover {
  background-color: var(--blossom-deep);
  box-shadow: 0 8px 18px rgba(178, 82, 104, 0.28);
}

.button:active {
  transform: translateY(1px);
}

.button--outline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.button--outline:hover {
  background-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.button--ghost {
  background-color: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button--ghost:hover {
  background-color: var(--blossom-soft);
  border-color: var(--blossom);
  color: var(--blossom-deep);
  box-shadow: none;
}

.button--block {
  display: block;
  width: 100%;
  text-align: center;
}

.button--small {
  padding: 6px 14px;
  font-size: 0.86rem;
}

.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   7. 速览：数字卡片
   -------------------------------------------------------------------------- */
.stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stat-grid > li {
  flex: 1 1 190px;
  padding: 22px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-value {
  display: block;
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--river);
  line-height: 1.2;
}

.stat-value small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   8. 三镇
   -------------------------------------------------------------------------- */
.town-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.town-grid > li {
  flex: 1 1 280px;
  display: flex;
}

.town-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 26px 24px;
  border-radius: var(--radius);
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--river-mid);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.town-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.town-card:nth-child(1) { border-top-color: var(--blossom); }
.town-card:nth-child(2) { border-top-color: var(--river-mid); }
.town-card:nth-child(3) { border-top-color: var(--gold); }

.town-card h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.3rem;
}

.town-card .pinyin {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.town-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.town-card li {
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   9. 景点：筛选栏 + 卡片网格
   -------------------------------------------------------------------------- */
.explore {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 26px;
}

.filters {
  flex: 1 1 210px;
  max-width: 250px;
  padding: 22px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.filters h3 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.filter-group {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.filter-group:first-of-type {
  border-top: none;
  padding-top: 0;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 0;
  font-size: 0.94rem;
  cursor: pointer;
}

.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--river-mid);
}

.favourites-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.spots {
  flex: 4 1 480px;
  min-width: 0;
}

.spots-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.search-box {
  display: flex;
  flex: 1 1 240px;
  gap: 8px;
}

.result-count {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.spot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.spot-grid > li {
  flex: 1 1 260px;
  max-width: 340px;
  display: flex;
}

.spot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* 没有图片素材，用渐变色块 + 首字做"封面" */
.spot-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 118px;
  padding: 14px;
  background: linear-gradient(140deg, var(--banner-a, #124a72), var(--banner-b, #4a9ec7));
}

.spot-banner .seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--river-deep);
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.spot-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px;
}

.spot-body h3 {
  margin-bottom: 6px;
}

.spot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: var(--blossom-soft);
  color: var(--blossom-deep);
  font-size: 0.75rem;
}

.chip--river {
  background-color: #e4eff6;
  color: var(--river);
}

.spot-blurb {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.spot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

/* 收藏按钮：用 aria-pressed 表达状态，视觉由属性选择器驱动 */
.fav-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--paper);
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fav-button:hover {
  border-color: var(--blossom);
  color: var(--blossom-deep);
}

.fav-button[aria-pressed="true"] {
  background-color: var(--blossom);
  border-color: var(--blossom);
  color: #fff;
}

.state {
  padding: 40px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background-color: var(--paper);
  color: var(--muted);
  text-align: center;
}

.state--full {
  flex: 1 1 100%;
}

/* --------------------------------------------------------------------------
   10. 美食：选项卡
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--paper);
  width: fit-content;
  max-width: 100%;
}

.tab {
  padding: 9px 20px;
  border: none;
  border-radius: 999px;
  background-color: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.94rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab:hover {
  background-color: var(--blossom-soft);
  color: var(--blossom-deep);
}

.tab[aria-selected="true"] {
  background-color: var(--river);
  color: #fff;
}

.food-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.food-grid > li {
  flex: 1 1 300px;
  max-width: 540px;
}

.food-card {
  display: flex;
  height: 100%;
  padding: 20px;
  gap: 16px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.food-card:hover {
  transform: translateY(-3px);
}

.food-index {
  flex: 0 0 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #e4eff6;
  color: var(--river);
  font-family: Georgia, serif;
  font-weight: 700;
}

.food-card h3 {
  margin-bottom: 4px;
}

.food-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.food-tip {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* --------------------------------------------------------------------------
   11. 历史时间线
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 30px 22px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

/* 时间线上的圆点 */
.timeline li::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 8px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--sand);
  border-radius: 50%;
  background-color: var(--river-mid);
}

.timeline li.is-milestone::before {
  background-color: var(--blossom);
}

.timeline .tl-year {
  display: block;
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--river);
}

.timeline p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   12. 行程规划表单
   -------------------------------------------------------------------------- */
.plan-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
}

.plan-form-wrap {
  flex: 3 1 460px;
  min-width: 0;
}

.plan-aside {
  flex: 1 1 260px;
  max-width: 340px;
  padding: 24px;
  border-radius: var(--radius);
  background-color: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.plan-aside h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.plan-aside ol {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.plan-aside li {
  margin-bottom: 8px;
}

.field {
  margin-bottom: 18px;
}

.field label,
.field .field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.field .hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background-color: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--river-mid);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 109, 158, 0.16);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #c0392b;
  background-color: #fdf6f5;
}

.error-text {
  display: block;
  margin-top: 5px;
  min-height: 1.2em;
  color: #c0392b;
  font-size: 0.83rem;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.field-row .field {
  flex: 1 1 180px;
}

fieldset {
  margin: 0 0 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--paper);
}

legend {
  padding: 0 8px;
  font-weight: 700;
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   13. 提示条与轻提示
   -------------------------------------------------------------------------- */
.alert {
  padding: 18px 20px;
  margin-bottom: 24px;
  border-left: 5px solid var(--river-mid);
  border-radius: var(--radius);
  background-color: #e4eff6;
}

.alert--ok {
  border-left-color: #1f7a4d;
  background-color: #e8f5ee;
}

.alert h2 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.alert code {
  padding: 2px 7px;
  border-radius: 4px;
  background-color: rgba(10, 39, 64, 0.08);
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  max-width: 300px;
  padding: 13px 18px;
  border-radius: 10px;
  background-color: var(--river-deep);
  color: #fff;
  font-size: 0.92rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background-color: var(--river);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
  pointer-events: none;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  background-color: var(--river-deep);
}

/* 有回到顶部按钮时，把轻提示往上挪，避免重叠 */
.toast.is-raised {
  bottom: 82px;
}

/* --------------------------------------------------------------------------
   14. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 40px 0;
  background-color: var(--river-deep);
  color: #a9c2d4;
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.site-footer h3 {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7fa3bb;
  margin-bottom: 8px;
}

.site-footer a {
  color: #d6e6f1;
}

.site-footer ul {
  margin: 0;
  padding-left: 18px;
}

/* --------------------------------------------------------------------------
   15. 响应式：media query
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 960px) {
  .hero {
    padding: 60px 0 72px;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .filters {
    flex: 1 1 100%;
    max-width: none;
  }

  .plan-aside {
    flex: 1 1 100%;
    max-width: none;
  }
}

@media only screen and (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .section {
    padding: 44px 0;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-nav ul {
    justify-content: space-between;
  }

  .site-nav a {
    padding: 6px 10px;
    font-size: 0.88rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h1 small {
    letter-spacing: 0.24em;
  }

  .spot-grid > li,
  .food-grid > li {
    flex: 1 1 100%;
    max-width: none;
  }

  .tabs {
    border-radius: var(--radius);
  }

  .tab {
    flex: 1 1 auto;
  }

  .toast,
  .to-top {
    right: 12px;
  }
}

/* 尊重系统的"减少动态效果"设置 */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
