html {
  scroll-behavior: smooth;
}
:root {
  --primary: #a41623;
  --accent: #f4a261;
  --bg: #fffdf7;
  --text: #2f2b2b;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
.hidden { display: none !important; }
.landing-page {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #7d0f1a, #c0392b 50%, #f2b880);
}
.landing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.landing-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  width: min(1100px, 92vw);
}
.landing-content h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin: 0 0 0.5rem; }
.landing-footer {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 1rem;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.landing-footer .site-footer-beian a {
  color: rgba(255, 255, 255, 0.88);
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin: 2rem auto 0;
  max-width: min(1020px, 100%);
  width: 100%;
  justify-items: stretch;
  align-items: stretch;
}
.role-card {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 1.25rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.role-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2); }
.icon { font-size: 2rem; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  background: var(--primary);
  color: #fff;
}
.logo { font-weight: 900; font-size: 1.2rem; }
#main-nav { display: flex; gap: 1rem; }
#main-nav a { color: #fff; text-decoration: none; padding: 0.4rem 0.6rem; border-radius: 8px; }
#main-nav a:hover, #main-nav a.active { background: rgba(255, 255, 255, 0.2); }
.role-tag { background: var(--accent); color: #532; padding: 0.3rem 0.6rem; border-radius: 999px; font-size: 0.85rem; }
#logout-btn { margin-left: 0.5rem; padding: 0.35rem 0.7rem; font-size: 0.85rem; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.3rem; }
.hero {
  min-height: 340px;
  padding: 2rem;
  color: #fff;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(164, 22, 35, 0.84), rgba(164, 22, 35, 0.32));
}
.hero > * { position: relative; z-index: 1; }
.section { width: min(1200px, 92vw); margin: 1.5rem auto; }
/* 研学长图、体旅线路图：主内容区全宽（仍受顶栏同宽约束），竖长图随宽度放大 */
body[data-page="routes"] main#app > .section.section--wide-maps {
  width: min(1200px, 92vw);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}
.section h2 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.section-note {
  margin: -0.5rem 0 1rem;
  color: #5c5353;
  font-size: 0.92rem;
  line-height: 1.55;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.zhijin-plan-section .plan-wrap {
  max-height: min(480px, 55vh);
  overflow: auto;
}
.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.plan-table th {
  position: sticky;
  top: 0;
  background: #fff6f6;
  color: var(--primary);
  z-index: 1;
}
.plan-table td,
.plan-table th {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.plan-name { font-weight: 600; max-width: 340px; }
.plan-time { white-space: nowrap; font-size: 0.82rem; color: #555; }
.status-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #fde9ea;
  color: var(--primary);
  font-size: 0.78rem;
}
.accent { width: 5px; height: 22px; background: var(--primary); border-radius: 3px; }
.card, .event-card, .spot-card, .home-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(164, 22, 35, 0.07);
  border: 1px solid rgba(164, 22, 35, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover, .event-card:hover, .spot-card:hover, .home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(164, 22, 35, 0.12);
}
.card-scroll { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.event-card { min-width: 300px; overflow: hidden; }
.event-card img, .spot-card img, .home-card img { width: 100%; height: 180px; object-fit: cover; }

/* 赛事页：竖排大卡，整图可见（contain） */
.events-main .events-section { width: min(960px, 94vw); margin-left: auto; margin-right: auto; }
.events-vertical {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
  align-items: stretch;
}
.events-subhead {
  margin: 1.1rem 0 0.4rem;
  font-size: 1.08rem;
  color: var(--primary);
  font-weight: 700;
}
.events-past-section .events-subhead:first-of-type {
  margin-top: 0.35rem;
}
.event-card.event-card--stack {
  min-width: 0 !important;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
  overflow: hidden;
}
.event-card.event-card--stack img {
  height: auto !important;
  max-height: min(56vh, 560px) !important;
  object-fit: contain !important;
  object-position: center;
  background: #1a1a1a;
  border-radius: 18px 18px 0 0;
}
.events-main .event-card--stack .event-content {
  padding: 1.15rem 1.35rem 1.35rem;
}
.route-line-intro .route-line-banner {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}
.route-line-intro--text .event-content {
  padding: 1rem 1.15rem 1.15rem;
}
.langao-route-hero {
  margin-bottom: 1rem;
}
.route-line-map-stack {
  margin-bottom: 1rem;
  max-width: 100%;
  overflow-x: hidden;
}
.route-line-map-section {
  margin-bottom: 0.5rem;
}
/* 研学页 / 体旅线路：每区一张长图，宽度=版心（min(1200px,92vw)），禁止横向滚动 */
.study-routes-hero {
  margin-bottom: 0.35rem;
  max-width: 100%;
  overflow-x: hidden;
}
.study-area-tabs {
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
}
.study-route-pane {
  margin-top: 0.65rem;
}
/* 线路图区域左右各「让出」约 10% 主栏宽度（合计约 80% 宽居中） */
.study-route-pane-inner,
.route-map-visual-inset {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  box-sizing: border-box;
}
.study-route-pane-inner h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  line-height: 1.35;
}
.study-route-block {
  margin-top: 1.35rem;
  max-width: 100%;
  width: 100%;
  min-width: 0;
}
.study-route-photo-wrap {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
  display: block;
}
.study-route-actions {
  margin-top: 0.85rem;
}
.study-route-block--sep {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(126, 15, 26, 0.12);
}
.study-route-block h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  line-height: 1.35;
}
.study-route-block-lead {
  margin: 0 0 0.55rem !important;
  font-size: 0.93rem;
}
/* 单张线路图：拉满父级宽度，高度按比例变长 */
.study-route-photo,
.route-line-map-img {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  vertical-align: top;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}
.route-line-map-img {
  border-radius: 10px;
}
.route-line-lead {
  margin: 0;
  line-height: 1.65;
  color: #444;
  font-size: 0.98rem;
}
.modal-event-cover {
  width: 100%;
  max-height: min(75vh, 680px);
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  background: #111;
  display: block;
  margin: 0 auto;
}

/* 详情弹窗：多图缩略图切换 */
.modal-media-gallery {
  margin-bottom: 0.35rem;
}
.modal-gallery-hint {
  margin: 0.45rem 0 0.55rem;
  font-size: 0.88rem;
}
.modal-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
  max-height: 170px;
  overflow-y: auto;
  padding-bottom: 0.15rem;
}
.modal-gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  flex: 0 0 auto;
  line-height: 0;
}
.modal-gallery-thumb.is-active {
  border-color: var(--primary);
}
.modal-gallery-thumb img {
  width: 76px;
  height: 56px;
  object-fit: cover;
  display: block;
}

/* 赛事页：往届区分锚点滚动时避开吸顶导航 */
#events-live-anchor,
#events-past-anchor,
#events-archive-anchor {
  scroll-margin-top: 4.85rem;
}

/* 岚皋往届影像区：与赛事卡相同的竖向列表间距 */
.past-langao-gallery-wrap {
  margin-bottom: 0.35rem;
}
.langao-archive-hint code {
  font-size: 0.82em;
}
.langao-archive-as-events {
  margin-top: 0.35rem;
}

/* 赛事页分页：首页/尾页/±5 与数字条同一行可换行 */
.pagination-controls--events {
  row-gap: 0.5rem;
}
.gov-pager-ext {
  font-size: 0.82rem;
  padding: 0.42rem 0.55rem;
  white-space: nowrap;
}
.gov-pager-muted {
  display: inline-block;
  padding: 0.35rem 0.45rem;
  white-space: nowrap;
}
.events-pager-host {
  margin-top: 0.65rem;
}
.events-pager-meta {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #5c5353;
  text-align: center;
}
.event-content, .spot-content, .home-content { padding: 0.9rem; }
.event-content p, .spot-content p, .home-content p { margin: 0.35rem 0; font-size: 0.95rem; }
.event-content h3, .spot-content h3, .home-content h3 { margin: 0.25rem 0 0.5rem; }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.section-head { display:flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.section-actions { display:flex; gap: 0.6rem; flex-wrap: wrap; }
.status-badge { background: var(--primary); color: #fff; font-size: 0.8rem; border-radius: 999px; padding: 0.2rem 0.6rem; }

/* 赛事列表卡：标题与辅文更醒目（不影响线路简介等其它 .event-content） */
.events-main .event-card--stack .event-content h3 {
  font-size: clamp(1.08rem, 2.6vw, 1.38rem);
  font-weight: 700;
  line-height: 1.35;
  color: #1a1414;
}
.events-main .event-card--stack .event-content p {
  font-size: 1rem;
  color: #3d3535;
  line-height: 1.45;
}
.events-main .event-card--stack .status-badge {
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.28rem 0.72rem;
}
.events-main .event-card--stack .btn-row .btn-primary {
  font-weight: 700;
  padding: 0.55rem 1.1rem;
}
.events-main .event-card--stack .btn-row .btn-light {
  padding: 0.5rem 1rem;
}

.study-card { padding: 0.25rem 0.35rem; }
.study-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.25rem; }
.study-index { width: 1.6rem; height: 1.6rem; border-radius: 999px; background: #fde9ea; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; }
.btn-primary, .btn-light {
  border: none;
  border-radius: 8px;
  padding: 0.62rem 0.9rem;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-light { background: #f6e6e7; color: var(--primary); }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

/* 民宿页：4 家实景卡片，双列紧凑排布避免版面过空 */
.homestays-section {
  width: min(1040px, 96vw);
  margin-left: auto;
  margin-right: auto;
}
.homestay-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}
.homestay-grid .home-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.homestay-grid .home-card img {
  height: 220px;
  flex-shrink: 0;
}
.homestay-grid .home-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.75rem 1rem 1rem;
  gap: 0.35rem;
}
.homestay-grid .home-content h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}
.home-county-tag {
  margin: 0;
  display: inline-block;
  width: fit-content;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: #fde9ea;
  color: var(--primary);
  font-size: 0.78rem;
}
.home-rating { margin: 0; font-size: 0.9rem; color: #666; }
.home-rating span { color: #f4a261; }
.home-desc { margin: 0; font-size: 0.92rem; line-height: 1.5; flex: 1; }
.home-capacity { margin: 0; font-size: 0.88rem; color: #777; }
.homestay-grid .btn-row { margin-top: 0.35rem; }
.tabs { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.tab { border: 1px solid var(--primary); background: #fff; color: var(--primary); border-radius: 999px; padding: 0.35rem 0.8rem; cursor: pointer; }
.tab.active { background: var(--primary); color: #fff; }
.signup-layout { display: grid; gap: 1rem; grid-template-columns: 1.2fr 1fr; }
.form-grid { display: grid; gap: 0.75rem; }
label { display: grid; gap: 0.35rem; font-size: 0.95rem; }
input, select, textarea { width: 100%; border: 1px solid #dfd8d8; border-radius: 8px; padding: 0.58rem; font-family: inherit; }
.phone-wrap { display: flex; align-items: center; border: 1px solid #dfd8d8; border-radius: 8px; overflow: hidden; }
.phone-wrap span { padding: 0 0.6rem; background: #faf4f5; color: #666; }
.phone-wrap input { border: none; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.65rem; border-bottom: 1px solid #f1ecec; text-align: left; white-space: nowrap; }
tbody tr:nth-child(odd) { background: #fff6f6; }
tbody tr:hover { background: #fde9ea; }
.gov-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gov-subnav {
  position: sticky;
  top: 52px;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 0.55rem 0;
  background: rgba(255, 253, 247, 0.96);
  border-bottom: 1px solid #ecd4d6;
  backdrop-filter: blur(6px);
}
.gov-subnav a {
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--primary);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(164, 22, 35, 0.35);
  background: #fff;
  transition: background 0.15s ease, color 0.15s ease;
}
.gov-subnav a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.gov-data-section { scroll-margin-top: 6.5rem; }
.gov-table-scroll {
  max-height: min(520px, 62vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.gov-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff6f6;
  color: var(--primary);
  box-shadow: 0 1px 0 #f1ecec;
}
.gov-pagination {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 2px solid rgba(164, 22, 35, 0.2);
}
.pagination-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  font-size: 0.9rem;
}
.pagination-summary {
  color: #3d3838;
  text-align: center;
  font-size: 0.92rem;
}
.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.65rem;
}
.pagination-meta { color: #5c5353; text-align: center; }
.pagination-muted { color: #aaa; font-size: 0.88rem; user-select: none; }
.pagination-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: #5c5353;
}
.pagination-jump input {
  width: 4rem;
  padding: 0.35rem 0.45rem;
}
.gov-page-btn { padding: 0.45rem 0.75rem; font-size: 0.88rem; }
.gov-page-num-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.15rem 0;
}
.gov-page-num {
  min-width: 2.35rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #e8d4d6;
  background: #fff;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}
.gov-page-num:hover {
  background: #fff6f6;
}
.gov-page-num.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
}

/* 体旅线路页：路线图标题区（图用 .study-route-photo） */
.langao-route-block {
  padding: 0.75rem 0.85rem 1rem;
  margin-bottom: 0.25rem;
}
.langao-route-block > h3 {
  margin: 0 0 0.35rem;
}
.toolbar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.list { display: grid; gap: 0.6rem; max-height: 420px; overflow-y: auto; }
.list-item { border: 1px solid #eee; border-radius: 8px; padding: 0.7rem; display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.timeline { border-left: 3px solid var(--primary); padding-left: 1rem; display: grid; gap: 0.8rem; }
.timeline-item { position: relative; background: #fff; border-radius: 8px; padding: 0.75rem; box-shadow: var(--card-shadow); }
.timeline-item::before { content: ""; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; position: absolute; left: -1.35rem; top: 1rem; }
/* 学校研学页（方案文档版式） */
.study-program-main .study-program-intro {
  margin-bottom: 0.5rem;
}
.study-program-main .study-route-pane {
  width: min(1200px, 92vw);
  margin: 0 auto 2rem;
  display: grid;
  gap: 1rem;
}
.study-program-main .study-route-pane.hidden {
  display: none;
}
.study-hero {
  background: linear-gradient(135deg, #7e0f1a 0%, #a41623 55%, #c45c2a 100%);
  color: #fff;
  padding: 1.5rem 1.25rem;
}
.study-hero h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.35;
}
.study-hero-sub {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  opacity: 0.95;
}
.study-hero-meta {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.88;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.study-block {
  padding: 1.25rem 1.45rem;
  background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
  border: 1px solid rgba(164, 22, 35, 0.06);
}
.study-block h4 {
  margin: 0 0 0.65rem;
  color: var(--primary);
  font-size: 1.12rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.55rem;
}
.study-block p {
  margin: 0 0 0.65rem;
}
.study-block p:last-child {
  margin-bottom: 0;
}
.study-tagline {
  margin-top: 0.75rem !important;
  padding: 0.65rem 0.75rem;
  background: #fff8f0;
  border-radius: 8px;
  border: 1px solid #f0dcc8;
}
.study-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}
.study-list--compact {
  list-style: none;
  padding-left: 0;
}
.study-list--compact li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed #eee;
}
.study-list--compact li:last-child {
  border-bottom: none;
}
.study-day-card {
  margin-bottom: 1rem;
  padding: 1.1rem 1.35rem;
  background: linear-gradient(135deg, #fff9f5 0%, #fde9ea 35%, #fffdf8 100%);
  border-radius: 12px;
  border: 1px solid rgba(164, 22, 35, 0.1);
}
.study-day-card .study-list {
  padding-left: 1.15rem;
  padding-right: 0.25rem;
  margin-top: 0.65rem;
}
.study-program-intro {
  padding: 0.5rem 0 1rem;
  background: linear-gradient(180deg, rgba(253, 233, 234, 0.35) 0%, transparent 100%);
  border-radius: 0 0 16px 16px;
}
.study-program-intro h2,
.study-area-tabs {
  width: min(1200px, 92vw);
  margin-left: auto;
  margin-right: auto;
}
.study-day-card:last-child {
  margin-bottom: 0;
}
.study-day-card h5 {
  margin: 0 0 0.5rem;
  color: #7e0f1a;
  font-size: 1rem;
}
/* 研学页：大图（按方案文档顺序穿插正文） */
.study-figure-full {
  margin: 1.1rem 0 1.35rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: #fff;
}
.study-figure-full img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}
.study-figure-medium img {
  max-height: 260px;
  object-fit: cover;
  object-position: center;
}
.study-figure-full figcaption {
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  color: #5c5353;
  background: #faf7f2;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.45;
}
/* 日程：卡片列表，无横向/纵向滚动遮挡 */
.study-itinerary-list {
  display: grid;
  gap: 0;
  margin-top: 0.5rem;
}
.study-itinerary-item {
  padding: 1rem 0;
  border-bottom: 1px solid #efe6dc;
}
.study-itinerary-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.study-itinerary-item h5 {
  margin: 0 0 0.35rem;
  color: var(--primary);
  font-size: 1.02rem;
}
.study-itinerary-meta {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  color: #7e5f5f;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.study-itinerary-item p {
  margin: 0;
  line-height: 1.65;
}
.study-program-main .study-block--itinerary {
  overflow: visible;
}
.study-program-main .study-block--itinerary .table-wrap {
  overflow: visible;
  box-shadow: none;
  background: transparent;
}
.study-cta {
  text-align: center;
}
.study-cta .btn-row {
  justify-content: center;
}
@media (max-width: 720px) {
  .study-figure-full figcaption {
    font-size: 0.82rem;
  }
}

footer {
  margin-top: 2rem;
  background: #7e0f1a;
  color: #fff;
  text-align: center;
  padding: 1.2rem 1rem;
}
.site-footer-copy {
  margin: 0;
  font-size: 0.95rem;
}
.site-footer-beian {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.65;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.site-footer-beian a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}
.site-footer-beian a:hover {
  color: #fff;
  text-decoration: underline;
}
.site-footer-sep {
  margin: 0 0.45rem;
  opacity: 0.55;
}
.site-footer-gongan img {
  vertical-align: -3px;
  margin-right: 0.2rem;
  height: 16px;
  width: auto;
}
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
}
.modal.show { display: grid; animation: fadeIn 0.2s ease; }
.modal-content { width: min(900px, 94vw); max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 12px; padding: 1rem; transform: scale(0.96); animation: zoomIn 0.2s ease forwards; position: relative; }
.modal-sm { width: min(460px, 92vw); }
.modal-entry-hint {
  margin: -0.25rem 0 1rem;
  font-size: 0.88rem;
  color: #5c5353;
  line-height: 1.5;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: left;
}
.modal-close { position: absolute; right: 0.8rem; top: 0.6rem; border: none; background: none; font-size: 1.4rem; cursor: pointer; }
.toast { position: fixed; right: 1rem; top: 1rem; z-index: 50; background: #222; color: #fff; padding: 0.6rem 0.8rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.toast.show { opacity: 1; }
.empty-state { padding: 1.5rem; text-align: center; color: #888; background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); }
.fake-toolbar { background: #f8f1f1; padding: 0.4rem; border-radius: 8px; color: #7e5f5f; font-size: 0.9rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.95); } to { transform: scale(1); } }
@media (max-width: 920px) {
  .role-grid, .grid.three, .grid.two, .homestay-grid, .signup-layout, .gov-layout { grid-template-columns: 1fr; }
  .homestay-grid .home-card img { height: 200px; }
  #main-nav { display: none; width: 100%; flex-direction: column; background: #8f111d; padding: 0.5rem; margin-top: 0.5rem; border-radius: 8px; }
  #main-nav.show { display: flex; }
  .menu-toggle { display: inline-block; }
  .topbar { flex-wrap: wrap; }
}
