/* ============================================
   研学专题 · 研学手册风（Field Guide / 科考手账）
   与主站「手绘涂鸦风」刻意区分：更像一本可打印的户外研学手册
   ============================================ */

:root {
  --yx-paper: #fbf7ef;
  --yx-paper-deep: #f2ecdd;
  --yx-card: #fffdf8;
  --yx-ink: #26323a;
  --yx-ink-soft: #4a5a63;
  --yx-ink-faint: #8b979e;
  --yx-line: #ddd3c0;
  --yx-line-strong: #c8bda5;

  --yx-moss: #3e7c5b;        /* 自然 / 植物 */
  --yx-moss-light: #e6efe8;
  --yx-terracotta: #c95d3f;  /* 任务 / 提醒 */
  --yx-terracotta-light: #f8e9e2;
  --yx-gold: #b98a2e;        /* 农事 / 非遗 */
  --yx-gold-light: #f4ecda;
  --yx-blue: #3a6ea5;        /* 科技 / 工程 */
  --yx-blue-light: #e6eef5;
  --yx-purple: #7a5a9e;      /* 人文 / 历史 */
  --yx-purple-light: #efe8f5;
  --yx-slate: #5b6b7a;       /* 高校 / 综合 */
  --yx-slate-light: #e9edf1;

  --yx-radius: 14px;
  --yx-shadow: 0 1px 0 rgba(38,50,58,0.04), 0 8px 24px -12px rgba(38,50,58,0.28);
  --yx-shadow-lg: 0 2px 0 rgba(38,50,58,0.05), 0 20px 44px -18px rgba(38,50,58,0.35);
  --yx-font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --yx-font-sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --yx-font-hand: "Kalam", "Ma Shan Zheng", cursive;
}

/* 研学页整体底色（覆盖主站纸张色） */
body.yx-page {
  background: var(--yx-paper);
  font-family: var(--yx-font-sans);
  color: var(--yx-ink);
}

/* 让主站 header 与研学底色自然衔接 */
body.yx-page .site-header {
  background: rgba(251, 247, 239, 0.95);
  border-bottom: 1px solid var(--yx-line-strong);
}

.yx-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}
.yx-narrow {
  max-width: 760px;
  margin: 0 auto;
}

/* ============ 面包屑 ============ */
.yx-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  font-size: 0.85rem;
  color: var(--yx-ink-faint);
}
.yx-crumb a {
  color: var(--yx-moss);
  text-decoration: none;
  font-weight: 600;
}
.yx-crumb a:hover { text-decoration: underline; }
.yx-crumb-sep { color: var(--yx-line-strong); }
.yx-crumb-here { color: var(--yx-ink); font-weight: 700; }

/* ============ 城市选择 ============ */
.yx-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.yx-city-card {
  display: block;
  position: relative;
  background: var(--yx-card);
  border: 1px solid var(--yx-line);
  border-radius: var(--yx-radius);
  padding: 26px 24px;
  box-shadow: var(--yx-shadow);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.yx-city-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--yx-shadow-lg);
}
.yx-city-name {
  font-family: var(--yx-font-serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--yx-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.yx-city-sub {
  margin-top: 10px;
  color: var(--yx-ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}
.yx-city-flag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--yx-moss);
  border-radius: 999px;
  padding: 4px 12px;
}
.yx-city-card.yx-soon {
  cursor: default;
  border-style: dashed;
  border-color: var(--yx-line-strong);
  box-shadow: none;
  opacity: 0.65;
}
.yx-city-card.yx-soon:hover { transform: none; box-shadow: none; }
.yx-city-soon-flag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--yx-ink-faint);
  background: var(--yx-paper-deep);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ============ HERO ============ */
.yx-hero {
  position: relative;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--yx-line);
  background:
    radial-gradient(circle at 85% 20%, rgba(201,93,63,0.06), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(62,124,91,0.06), transparent 40%),
    var(--yx-paper);
}
.yx-hero .yx-kicker {
  font-family: var(--yx-font-hand);
  font-size: 0.95rem;
  letter-spacing: 3px;
  color: var(--yx-terracotta);
  text-transform: uppercase;
}
.yx-hero h1 {
  font-family: var(--yx-font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--yx-ink);
  margin: 14px 0 16px;
  letter-spacing: 0.5px;
}
.yx-hero h1 .yx-mark {
  color: var(--yx-terracotta);
}
.yx-hero .yx-sub {
  font-size: 1.05rem;
  color: var(--yx-ink-soft);
  line-height: 1.8;
  max-width: 640px;
}
.yx-hero .yx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.yx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--yx-ink-soft);
  background: var(--yx-card);
  border: 1px solid var(--yx-line);
  border-radius: 999px;
  padding: 5px 14px;
}

/* ============ 年龄导航 TABS ============ */
.yx-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 8px;
}
.yx-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--yx-line-strong);
  border-radius: 999px;
  background: var(--yx-card);
  color: var(--yx-ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}
.yx-tab:hover {
  border-color: var(--yx-terracotta);
  color: var(--yx-terracotta);
  transform: translateY(-1px);
}
.yx-tab.active {
  background: var(--yx-ink);
  border-color: var(--yx-ink);
  color: #fff;
}
.yx-tab .yx-tab-age {
  font-family: var(--yx-font-serif);
  font-weight: 800;
}

/* ============ 章节标题 ============ */
.yx-section {
  margin: 48px 0 8px;
}
.yx-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--yx-ink);
  margin-bottom: 24px;
}
.yx-section-num {
  font-family: var(--yx-font-serif);
  font-size: 1rem;
  font-weight: 800;
  color: var(--yx-terracotta);
  letter-spacing: 1px;
}
.yx-section-head h2 {
  font-family: var(--yx-font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yx-ink);
  margin: 0;
}
.yx-section-head .yx-section-en {
  margin-left: auto;
  font-family: var(--yx-font-hand);
  font-size: 0.85rem;
  color: var(--yx-ink-faint);
  letter-spacing: 1px;
}
.yx-lead {
  font-size: 1rem;
  color: var(--yx-ink-soft);
  line-height: 1.9;
  max-width: 720px;
  margin: 0 0 20px;
}
.yx-lead strong { color: var(--yx-ink); }

/* ============ 筛选器 ============ */
.yx-filter {
  position: sticky;
  top: 64px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(251,247,239,0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--yx-line);
  border-radius: 12px;
  margin: 8px 0 24px;
}
.yx-filter .yx-filter-label {
  font-size: 0.8rem;
  color: var(--yx-ink-faint);
  letter-spacing: 1px;
  margin-right: 4px;
}
.yx-filter-btn {
  border: 1px solid var(--yx-line-strong);
  background: var(--yx-card);
  color: var(--yx-ink-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.yx-filter-btn:hover { border-color: var(--yx-ink); color: var(--yx-ink); }
.yx-filter-btn.active {
  background: var(--yx-ink);
  border-color: var(--yx-ink);
  color: #fff;
}
.yx-filter .yx-free-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--yx-ink-soft);
  cursor: pointer;
}

/* ============ 场馆卡片（标本卡） ============ */
.yx-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .yx-card-grid { grid-template-columns: 1fr; }
}
.yx-card {
  position: relative;
  background: var(--yx-card);
  border: 1px solid var(--yx-line);
  border-radius: var(--yx-radius);
  box-shadow: var(--yx-shadow);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  break-inside: avoid;
  transition: box-shadow 0.2s, transform 0.2s;
}
.yx-card:hover {
  box-shadow: var(--yx-shadow-lg);
  transform: translateY(-2px);
}
.yx-card.is-hidden { display: none; }

.yx-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.yx-card-name {
  font-family: var(--yx-font-serif);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--yx-ink);
  line-height: 1.4;
}
.yx-card-tagline {
  font-size: 0.88rem;
  color: var(--yx-ink-faint);
  margin-top: 3px;
  line-height: 1.5;
}

/* 分类贴纸 */
.yx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.yx-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 6px;
  color: #fff;
  background: var(--yx-slate);
}
.yx-tag.t-nature { background: var(--yx-moss); }
.yx-tag.t-museum { background: var(--yx-blue); }
.yx-tag.t-tech { background: var(--yx-slate); }
.yx-tag.t-farm { background: var(--yx-gold); }
.yx-tag.t-history { background: var(--yx-purple); }
.yx-tag.t-free { background: var(--yx-moss); }
.yx-tag.t-paid { background: var(--yx-terracotta); }

/* 想去 / 已去 勾选 */
.yx-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--yx-ink-soft);
  cursor: pointer;
  padding: 6px 10px;
  border: 1px dashed var(--yx-line-strong);
  border-radius: 8px;
  user-select: none;
}
.yx-mark input {
  width: 15px;
  height: 15px;
  accent-color: var(--yx-terracotta);
  cursor: pointer;
}
.yx-mark.has-check { background: var(--yx-terracotta-light); border-style: solid; border-color: var(--yx-terracotta); }

/* 信息行 */
.yx-facts { display: flex; flex-direction: column; gap: 8px; }
.yx-fact-row {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.yx-fact-row .yx-fact-k {
  flex-shrink: 0;
  min-width: 78px;
  font-weight: 700;
  color: var(--yx-ink);
}
.yx-fact-row .yx-fact-v { color: var(--yx-ink-soft); }

/* 知识卡片 */
.yx-knowledge {
  background: var(--yx-blue-light);
  border-left: 3px solid var(--yx-blue);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
}
.yx-knowledge.k-green { background: var(--yx-moss-light); border-color: var(--yx-moss); }
.yx-knowledge.k-gold { background: var(--yx-gold-light); border-color: var(--yx-gold); }
.yx-knowledge.k-purple { background: var(--yx-purple-light); border-color: var(--yx-purple); }
.yx-k-label {
  display: block;
  font-family: var(--yx-font-hand);
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--yx-blue);
  margin-bottom: 4px;
}
.yx-knowledge.k-green .yx-k-label { color: var(--yx-moss); }
.yx-knowledge.k-gold .yx-k-label { color: var(--yx-gold); }
.yx-knowledge.k-purple .yx-k-label { color: var(--yx-purple); }
.yx-knowledge p { font-size: 0.9rem; color: var(--yx-ink); line-height: 1.75; margin: 0; }

/* 问娃 */
.yx-ask {
  background: var(--yx-terracotta-light);
  border-radius: 10px;
  padding: 12px 16px;
}
.yx-ask .yx-ask-label {
  font-family: var(--yx-font-hand);
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--yx-terracotta);
}
.yx-ask p { font-size: 0.92rem; color: var(--yx-ink); line-height: 1.7; margin: 4px 0 0; }

/* 提醒 */
.yx-remind {
  font-size: 0.85rem;
  color: var(--yx-ink-soft);
  line-height: 1.7;
  padding-top: 12px;
  border-top: 1px dashed var(--yx-line);
}
.yx-remind b { color: var(--yx-terracotta); }

/* ============ 路线卡 ============ */
.yx-route {
  background: var(--yx-card);
  border: 1px solid var(--yx-line);
  border-radius: var(--yx-radius);
  box-shadow: var(--yx-shadow);
  padding: 20px 22px;
  margin-bottom: 16px;
  break-inside: avoid;
}
.yx-route-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.yx-route-name {
  font-family: var(--yx-font-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--yx-ink);
}
.yx-route-steps { list-style: none; padding: 0; margin: 0 0 12px; }
.yx-route-steps li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--yx-ink-soft);
  line-height: 1.7;
}
.yx-route-steps li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--yx-terracotta);
  border-radius: 50%;
  background: var(--yx-card);
}
.yx-route-steps li::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 22px;
  width: 2px;
  height: calc(100% - 6px);
  background: var(--yx-line-strong);
}
.yx-route-steps li:last-child::after { display: none; }
.yx-copy-btn {
  font-size: 0.82rem;
  color: var(--yx-ink);
  background: var(--yx-paper-deep);
  border: 1px solid var(--yx-line-strong);
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.yx-copy-btn:hover { background: var(--yx-ink); color: #fff; }
.yx-copy-btn.copied { background: var(--yx-moss); color: #fff; border-color: var(--yx-moss); }

/* ============ 清单 ============ */
.yx-checklist {
  background: var(--yx-card);
  border: 1.5px solid var(--yx-line-strong);
  border-radius: var(--yx-radius);
  padding: 22px;
  list-style: none;
  margin: 0;
}
.yx-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px dashed var(--yx-line);
  font-size: 0.95rem;
  color: var(--yx-ink);
  line-height: 1.6;
}
.yx-checklist li:last-child { border-bottom: none; }
.yx-checklist input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--yx-moss);
  cursor: pointer;
}
.yx-checklist input:checked + span { color: var(--yx-ink-faint); text-decoration: line-through; }

/* ============ 速查表 ============ */
.yx-table-wrap { overflow-x: auto; border: 1px solid var(--yx-line); border-radius: var(--yx-radius); box-shadow: var(--yx-shadow); }
.yx-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: var(--yx-card); }
.yx-table th, .yx-table td { padding: 12px 14px; border-bottom: 1px solid var(--yx-line); text-align: left; vertical-align: top; }
.yx-table thead th {
  background: var(--yx-paper-deep);
  font-weight: 700;
  color: var(--yx-ink);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.yx-table tbody tr:last-child td { border-bottom: none; }
.yx-table .age-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 1px 8px; border-radius: 5px; color: #fff; }
.age-y { background: var(--yx-gold); }
.age-d { background: var(--yx-blue); }
.age-g { background: var(--yx-purple); }

/* ============ 年龄选择大卡（hub） ============ */
.yx-age-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 720px) { .yx-age-grid { grid-template-columns: 1fr; } }
.yx-age-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--yx-card);
  border: 1.5px solid var(--yx-line);
  border-radius: var(--yx-radius);
  padding: 24px;
  text-decoration: none;
  color: var(--yx-ink);
  box-shadow: var(--yx-shadow);
  transition: all 0.2s;
  overflow: hidden;
}
.yx-age-card:hover { transform: translateY(-4px); box-shadow: var(--yx-shadow-lg); border-color: var(--yx-ink); }
.yx-age-card .yx-age-num {
  font-family: var(--yx-font-serif);
  font-size: 3rem;
  font-weight: 800;
  color: var(--yx-paper-deep);
  line-height: 1;
}
.yx-age-card .yx-age-title { font-family: var(--yx-font-serif); font-size: 1.35rem; font-weight: 800; }
.yx-age-card .yx-age-range { font-size: 0.85rem; color: var(--yx-terracotta); font-weight: 700; letter-spacing: 1px; }
.yx-age-card .yx-age-desc { font-size: 0.92rem; color: var(--yx-ink-soft); line-height: 1.7; }
.yx-age-card .yx-age-go { margin-top: auto; font-size: 0.9rem; font-weight: 700; color: var(--yx-ink); }
.yx-age-card .yx-age-go::after { content: ' →'; color: var(--yx-terracotta); }
.yx-age-card.ac-green { border-top: 4px solid var(--yx-moss); }
.yx-age-card.ac-blue { border-top: 4px solid var(--yx-blue); }
.yx-age-card.ac-purple { border-top: 4px solid var(--yx-purple); }

/* ============ 随机推荐 ============ */
.yx-picker {
  background: linear-gradient(135deg, var(--yx-paper-deep), var(--yx-card));
  border: 1.5px dashed var(--yx-line-strong);
  border-radius: var(--yx-radius);
  padding: 28px;
  text-align: center;
}
.yx-picker .yx-picker-result { font-family: var(--yx-font-serif); font-size: 1.3rem; font-weight: 800; min-height: 2.4em; margin: 16px 0; color: var(--yx-ink); }
.yx-picker-btn {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--yx-terracotta);
  border: none;
  border-radius: 999px;
  padding: 12px 30px;
  cursor: pointer;
  box-shadow: var(--yx-shadow);
  transition: all 0.15s;
}
.yx-picker-btn:hover { transform: translateY(-2px); box-shadow: var(--yx-shadow-lg); }

/* ============ 浮动打印按钮 ============ */
.yx-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yx-ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(38,50,58,0.6);
  transition: all 0.18s;
}
.yx-fab:hover { transform: translateY(-2px); background: var(--yx-terracotta); }

/* ============ 引用金句 ============ */
.yx-quote {
  font-family: var(--yx-font-serif);
  font-size: 1.12rem;
  color: var(--yx-ink);
  line-height: 1.9;
  border-left: 4px solid var(--yx-terracotta);
  padding: 6px 0 6px 20px;
  margin: 24px 0;
}
.yx-quote .yx-quote-who { display: block; font-size: 0.85rem; color: var(--yx-ink-faint); margin-top: 8px; font-family: var(--yx-font-sans); }

/* ============ 打印样式 ============ */
@page {
  size: A4;
  margin: 14mm 13mm;
}
@media print {
  body.yx-page { background: #fff; }
  .site-header, .site-footer, .yx-fab, .yx-tabbar, .yx-filter, .yx-copy-btn, .yx-picker-btn, .yx-crumb, .yx-no-print {
    display: none !important;
  }
  .yx-card.is-hidden { display: block !important; }
  .yx-hero { padding: 0 0 16px; border-bottom: 2px solid #26323a; }
  .yx-hero h1 { font-size: 1.6rem; }
  .yx-hero .yx-sub { font-size: 0.9rem; }
  .yx-chip { background: none; border: none; padding: 0; }
  .yx-section { margin: 28px 0 4px; }
  .yx-card, .yx-route { box-shadow: none; border-color: #bbb; }
  .yx-card-grid, .yx-age-grid { grid-template-columns: 1fr; gap: 12px; }
  .yx-card { padding: 14px 16px; }
  .yx-filter { position: static; }
  a { color: inherit; text-decoration: none; }
  .yx-knowledge, .yx-ask, .yx-checklist, .yx-route, .yx-picker { break-inside: avoid; }
  .yx-age-card { break-inside: avoid; }
  .yx-table-wrap { box-shadow: none; }
  .yx-table thead th { position: static; background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .yx-tag, .age-badge, .yx-knowledge, .yx-ask, .yx-age-card, .yx-moss, .yx-terracotta {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
