/* 內容頁（首頁、學習中心、關於我們）的樣式 */
:root {
  --bg: #eef6f8;
  --card: #ffffff;
  --text: #1f2d3a;
  --muted: #6b7c8c;
  --primary: #1a9e8f;
  --primary-dark: #137a6e;
  --border: #d5e3e8;
  --bad: #c94040;
  --shadow: 0 2px 10px rgba(30, 60, 80, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a20;
    --card: #1c2730;
    --text: #e6eef2;
    --muted: #93a6b4;
    --primary: #2bbfac;
    --primary-dark: #22a191;
    --border: #2c3d49;
    --bad: #f07a7a;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.75;
}
a { color: var(--primary); }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.logo { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--text); text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.site-header nav { display: flex; gap: 14px; flex: 1; flex-wrap: wrap; font-size: 0.95rem; }
.site-header nav a { color: var(--text); text-decoration: none; }
.site-header nav a:hover { color: var(--primary); }

.play-btn, .ghost-btn {
  display: inline-block;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  text-decoration: none;
}
.play-btn { background: var(--primary); color: #fff; }
.play-btn:hover { background: var(--primary-dark); }
.play-btn.big { font-size: 1.15rem; padding: 12px 28px; }
.ghost-btn { border: 2px solid var(--primary); color: var(--primary); }

main { max-width: 860px; margin: 0 auto; padding: 18px 16px 40px; }
h1 { font-size: 1.7rem; line-height: 1.35; margin: 12px 0; }
h1 small, h2 small { color: var(--muted); font-weight: 500; font-size: 0.6em; }
h2 { font-size: 1.25rem; margin: 6px 0 10px; }
h3 { font-size: 1rem; margin: 16px 0 6px; }
.lead { font-size: 1.05rem; }
.crumb { color: var(--muted); font-size: 0.85rem; margin: 0; }
.card { background: var(--card); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); margin: 16px 0; }

.hero { text-align: center; }
.hero-map { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.toc a { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; text-decoration: none; font-size: 0.9rem; }

.line { margin: 8px 0; padding: 8px 12px; border-radius: 12px; }
.line.npc { background: var(--bg); }
.line.you { background: rgba(26, 158, 143, 0.12); }
.zh { color: var(--muted); font-size: 0.9rem; }
.en { font-weight: 500; }
.intro { color: var(--muted); }
.key { font-size: 1.05rem; padding: 8px 12px; border-left: 4px solid var(--primary); background: var(--bg); border-radius: 0 12px 12px 0; }
.grammar { background: rgba(242, 163, 58, 0.14); padding: 8px 12px; border-radius: 12px; }
.mistakes { margin: 4px 0 12px 12px; font-size: 0.92rem; }
.mistakes summary { cursor: pointer; color: var(--bad); }
.mistakes s, .why s { color: var(--bad); }
.why { color: var(--muted); font-size: 0.9rem; }
.say { border: none; background: transparent; cursor: pointer; font-size: 0.95rem; padding: 0 2px; }

.vocab { width: 100%; border-collapse: collapse; }
.vocab th, .vocab td { text-align: left; padding: 6px 8px; border-bottom: 1px dashed var(--border); }
.vocab th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }

.patient { display: flex; gap: 12px; align-items: center; }
.patient img { width: 90px; height: 90px; object-fit: contain; flex-shrink: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: var(--tile, var(--card));
  color: #1f2d3a;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.tile img { width: 56px; height: 56px; object-fit: contain; }
.tile small { color: #4b5b6a; line-height: 1.5; }
.tile-emoji { font-size: 1.8rem; line-height: 1; }

.steps li { margin: 6px 0; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.features img { width: 72px; height: 72px; object-fit: contain; display: block; }
.features p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.cta { text-align: center; margin: 24px 0; }

.site-footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 20px 16px 30px; }

@media (max-width: 520px) {
  h1 { font-size: 1.4rem; }
  .site-header { gap: 8px 14px; }
  .site-header nav { order: 3; flex: 1 1 100%; gap: 14px; font-size: 0.9rem; }
  .play-btn { margin-left: auto; }
  .patient img { width: 70px; height: 70px; }
}
