/* 韩国6天亲子游 — 样式（无外部依赖，移动优先） */

:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #14313b;
  --muted: #5d7480;
  --accent: #0f4c5c;
  --accent-soft: #e6f0f2;
  --warm: #e4572e;
  --warm-soft: #fdeee9;
  --tip: #fff6e5;
  --tip-border: #f0c36d;
  --line: #e2e8ec;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 49, 59, .06), 0 8px 24px rgba(16, 49, 59, .06);
  --maxw: 900px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(244, 246, 248, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- layout ---------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 16px 56px;
}

section { margin: 28px 0; }

h1, h2, h3 { line-height: 1.35; }

h2 {
  font-size: 21px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft);
}

.section-title { font-size: 23px; margin-top: 40px; }

.section-sub {
  color: var(--muted);
  font-size: 14px;
  margin: -4px 0 18px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 20px 22px;
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(135deg, #0f4c5c 0%, #14667a 55%, #2a8fa0 100%);
  color: #fff;
  border-radius: 20px;
  padding: 26px 22px 22px;
  box-shadow: var(--shadow);
  margin-top: 20px;
}

.hero-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: .04em;
  opacity: .85;
}

.hero h1 { margin: 0 0 10px; font-size: 28px; }

.hero-lead { margin: 0; font-size: 15px; opacity: .92; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.facts li {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.facts strong { font-size: 20px; }
.facts span { font-size: 12px; opacity: .85; }

/* ---------- route ---------- */

.route { list-style: none; margin: 0; padding: 0; }

.route li {
  position: relative;
  padding: 0 0 16px 22px;
  border-left: 2px dashed var(--line);
  display: flex;
  flex-direction: column;
}

.route li:last-child { border-left-color: transparent; padding-bottom: 0; }

.route li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.route b { font-size: 16px; }
.route span { color: var(--muted); font-size: 14px; }

.note {
  margin-top: 16px;
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
}

.note p { margin: 0 0 8px; }
.note p:last-child { margin-bottom: 0; }

/* ---------- day cards ---------- */

.day {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 20px;
  margin: 0 0 16px;
  border-left: 4px solid var(--accent);
}

.day-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.badge {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.day h3 { margin: 2px 0 2px; font-size: 18px; }

.meta { margin: 0; color: var(--muted); font-size: 13px; }

.steps { list-style: none; margin: 0; padding: 0; }

.steps li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}

.steps li:last-child { border-bottom: 0; }

.steps time {
  flex: none;
  width: 54px;
  color: var(--warm);
  font-weight: 600;
  font-size: 13px;
  padding-top: 2px;
}

.tip {
  margin: 14px 0 0;
  background: var(--tip);
  border-left: 3px solid var(--tip-border);
  border-radius: 0 10px 10px 0;
  padding: 11px 14px;
  font-size: 14px;
}

.tip.alt {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

/* ---------- tips grid ---------- */

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.grid li {
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
}

.grid b { display: block; margin-bottom: 2px; }

/* ---------- table ---------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}

th, td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { background: var(--accent-soft); font-size: 13px; }

td:first-child { font-weight: 600; }
td:nth-child(2) { color: var(--warm); white-space: nowrap; }

.fine { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }

/* ---------- checklist ---------- */

.checklist {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
}

.checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: none;
}

.checklist label:has(input:checked) { color: var(--muted); text-decoration: line-through; }

/* ---------- sources ---------- */

.sources { margin: 8px 0 0; padding-left: 20px; }

.sources li { font-size: 14px; margin: 4px 0; }

.sources a { text-decoration: none; border-bottom: 1px dashed var(--accent); }

/* ---------- footer ---------- */

.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px 40px;
  color: var(--muted);
  font-size: 12.5px;
}

.site-footer code { background: #e9eef1; padding: 1px 5px; border-radius: 5px; }

.to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 18px;
  box-shadow: var(--shadow);
}

/* ---------- responsive ---------- */

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid { grid-template-columns: 1fr 1fr; }
  .checklist { grid-template-columns: 1fr 1fr; }
  .hero { padding: 34px 30px 28px; }
  .hero h1 { font-size: 34px; }
}

/* ---------- print ---------- */

@media print {
  body { background: #fff; }
  .site-header, .to-top { display: none; }
  .hero { background: #fff; color: #000; border: 1px solid #999; }
  .facts li { background: #fff; border-color: #999; color: #000; }
  .day, .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
