/* ===== 拂晓远航 · 徒步路线图鉴 ===== */
:root {
  --ink: #151a21;
  --ink2: #3f4a57;
  --muted: #7a8593;
  --paper: #f4f2ec;
  --card: #ffffff;
  --line: #e5e0d5;
  --line2: #efebe2;
  --brand: #1c6b58;
  --brand2: #2b8f76;
  --brand-soft: #e7f2ee;
  --accent: #c1622a;
  --accent-soft: #fbeee4;
  --danger: #b3261e;
  --danger-soft: #fceceb;
  --warn: #8f6a00;
  --warn-soft: #fbf3dd;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 26, 33, .05), 0 10px 28px -18px rgba(20, 26, 33, .28);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  /* 用 clip 而不是 hidden：hidden 会让 body 变成滚动容器，导致内部 position:sticky 失效 */
  overflow-x: clip;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13, 26, 28, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-in { display: flex; align-items: center; gap: 14px; height: 56px; }
.brand {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 700; letter-spacing: .5px; font-size: 17px;
}
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
.nav-links { margin-left: auto; display: flex; gap: 4px; }
.nav-links a {
  color: rgba(255, 255, 255, .74); font-size: 14px; padding: 6px 10px; border-radius: 999px;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .1); text-decoration: none; }
.nav-links a.on { color: #0f2a26; background: #a8e0cd; font-weight: 600; }

/* ---------- 头图 ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(165deg, #0b1e22 0%, #123037 48%, #1d4f52 100%);
  padding: 44px 0 30px;
}
.hero-art { position: absolute; inset: auto 0 0 0; opacity: .5; pointer-events: none; }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-in { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: #9fd8c6; border: 1px solid rgba(159, 216, 198, .35);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(26px, 5.4vw, 40px); line-height: 1.25; margin: 0 0 12px; font-weight: 800;
  letter-spacing: -.4px;
}
.hero h1 span { color: #8fd7be; }
.hero h1 .kicker {
  display: block; margin-bottom: 10px; font-size: .58em; line-height: 1.2;
  letter-spacing: .06em; font-weight: 700; color: #8fd7be;
}
.hero p.lead {
  color: rgba(255, 255, 255, .8); font-size: 15px; max-width: 620px; margin: 0 0 22px;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-bottom: 6px; }
.hero-stats div { font-size: 13px; color: rgba(255, 255, 255, .62); }
.hero-stats b { display: block; font-size: 20px; color: #fff; font-weight: 700; line-height: 1.3; }
.hero-note {
  margin-top: 20px; font-size: 12.5px; color: rgba(255, 255, 255, .55);
  border-left: 2px solid rgba(143, 215, 190, .5); padding-left: 10px; max-width: 640px;
}

/* ---------- 筛选区 ---------- */
.filters {
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 14px 0 10px; position: sticky; top: 56px; z-index: 30;
}
/* 收起时是矮条，保持吸顶方便随时搜索；展开后不再吸顶，避免遮挡内容 */
.filters:not(.collapsed) { position: static; }
@media (max-width: 720px) {
  .filters { padding: 10px 0 6px; }
  .result-line > span:last-child { display: none; }
}
.filtertoggle {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font-family: inherit; font-size: 14px; padding: 9px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fbfaf7; color: var(--ink2); cursor: pointer;
}
.filtertoggle:hover { border-color: var(--brand2); color: var(--brand); }
.filtertoggle .caret { transition: transform .18s ease; }
.filters.collapsed .filtertoggle .caret { transform: rotate(-90deg); }
.count-badge {
  font-style: normal; background: var(--brand); color: #fff; font-size: 11px;
  font-weight: 700; border-radius: 999px; padding: 1px 6px;
}
.count-badge[hidden] { display: none; }
.chipwrap { padding-top: 4px; }
.filters.collapsed .chipwrap { display: none; }
.activeSummary { display: none; }
.activeSummary[hidden] { display: none !important; }
.filters.collapsed .activeSummary {
  display: block; font-size: 12.5px; color: var(--muted); padding: 2px 2px 0;
}
.filters.collapsed .activeSummary b { color: var(--brand); font-weight: 600; }
.search-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.search-box { position: relative; flex: 1; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .45; }
.search-box input {
  width: 100%; padding: 10px 12px 10px 36px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 999px; background: #fbfaf7; color: var(--ink);
}
.search-box input:focus { outline: 2px solid var(--brand2); outline-offset: 1px; background: #fff; }
.sortsel {
  font-family: inherit; font-size: 14px; padding: 9px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fbfaf7; color: var(--ink2);
}
.chiprow { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; align-items: center; }
.chiprow::-webkit-scrollbar { display: none; }
.chiprow > .rowlabel {
  flex: none; font-size: 12px; color: var(--muted); align-self: center; width: 46px;
}
.chip {
  flex: none; font-size: 13.5px; padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink2); cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.chip:hover { border-color: var(--brand2); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.result-line {
  font-size: 13px; color: var(--muted); padding: 6px 0 2px;
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
}

/* ---------- 卡片列表 ---------- */
main { padding: 22px 0 60px; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
  display: flex; flex-direction: column; text-align: left;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
a.card { color: var(--ink); }
a.card:hover { text-decoration: none; transform: translateY(-2px); border-color: #cfd8d1; }
.card-top h3 { color: var(--ink); }
.d-head h2 .badge { vertical-align: middle; font-size: 12px; margin-left: 6px; }
.card:focus-visible { outline: 2px solid var(--brand2); outline-offset: 2px; }
.card-peak { display: block; width: 100%; height: 78px; }
.card-photo { display: block; width: 100%; height: 152px; object-fit: cover; background: #eceae3; }
@media (min-width: 700px) { .card-photo { height: 168px; } }

/* 详情页大图 */
.d-photo { margin: 0; }
.d-photo img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; }
.d-photo figcaption {
  display: flex; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap;
  padding: 8px 12px; font-size: 12.5px; color: var(--ink2);
  background: #faf9f5; border-bottom: 1px solid var(--line2);
}
.d-photo .credit { color: var(--muted); font-size: 11.5px; }
.sect .card-peak {
  height: 96px; border: 1px solid var(--line2); border-radius: var(--radius-sm); margin-bottom: 12px;
}
.card-body { padding: 12px 15px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-top h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.card-top .en { font-size: 11.5px; color: var(--muted); flex: 1 1 100%; margin-top: -4px; }
.card-place { font-size: 12.5px; color: var(--brand); font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.stat { font-size: 12px; color: var(--muted); line-height: 1.35; }
.stat b { color: var(--ink); font-weight: 600; }
.card-sum {
  font-size: 13px; color: var(--ink2); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-feat {
  font-size: 12.5px; color: var(--ink2); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-feat b {
  color: var(--brand); font-weight: 700; margin-right: 5px;
  background: var(--brand-soft); border-radius: 5px; padding: 1px 5px; font-size: 11.5px;
}
.months { display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.months i {
  flex: 1; height: 5px; border-radius: 2px; background: #e8e4da;
}
.months i.b { background: var(--brand2); height: 14px; }
.card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.tag {
  font-size: 11.5px; padding: 2px 8px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}
.badge {
  font-size: 11.5px; padding: 2px 9px; border-radius: 999px; font-weight: 700;
  color: #fff; letter-spacing: .3px;
}
.lv1, .lv2 { background: #2f8f74; }
.lv3 { background: #2e6f9e; }
.lv4 { background: #c1622a; }
.lv5 { background: #b3261e; }

/* ---------- 详情 ---------- */
.detail { max-width: 820px; margin: 0 auto; }
.backbtn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; cursor: pointer; font-family: inherit; color: var(--ink2); margin-bottom: 14px;
}
.backbtn:hover { border-color: var(--brand2); color: var(--brand); }
.d-head { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.d-head .card-peak { height: 120px; }
.d-head-in { padding: 16px 18px 18px; }
.d-head h2 { margin: 0 0 2px; font-size: clamp(22px, 5.4vw, 30px); letter-spacing: -.4px; }
.d-head .en { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.d-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
@media (min-width: 620px) { .d-meta { grid-template-columns: repeat(4, 1fr); } }
.d-meta div { background: #faf9f5; border: 1px solid var(--line2); border-radius: var(--radius-sm); padding: 8px 10px; }
.d-meta span { display: block; font-size: 11.5px; color: var(--muted); }
.d-meta b { font-size: 14px; font-weight: 700; }
.sect {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 18px; margin-top: 14px; box-shadow: var(--shadow);
}
.sect h3 {
  margin: 0 0 10px; font-size: 16px; display: flex; align-items: center; gap: 8px;
}
.sect h3::before {
  content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--brand2);
}
.sect h3.warn::before { background: var(--accent); }
.sect h3.danger::before { background: var(--danger); }
.sect p { margin: 0 0 10px; font-size: 14.5px; color: var(--ink2); }
.sect ul { margin: 0; padding-left: 0; list-style: none; }
.sect ul li {
  position: relative; padding-left: 18px; font-size: 14px; color: var(--ink2); margin-bottom: 7px;
}
.sect ul li::before {
  content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand2); opacity: .55;
}
.sect ul.plain li::before { border-radius: 1px; transform: rotate(45deg); background: var(--accent); }
.sect ul.risk li::before { background: var(--danger); border-radius: 1px; }
.tl { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 16px; }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -23px; top: 7px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; border: 2px solid var(--brand2);
}
.tl-item .day {
  font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .5px;
}
.tl-item .tt { font-weight: 600; font-size: 14.5px; }
.tl-item .tc { font-size: 13.5px; color: var(--ink2); margin-top: 2px; }
.kv { font-size: 14px; color: var(--ink2); }
.kv b { color: var(--ink); }
.srcs { font-size: 13px; color: var(--muted); }
.srcs a { word-break: break-all; }

/* ---------- 警示 ---------- */
.warnband {
  margin-top: 34px; background: var(--danger-soft); border: 1px solid #f0cfcb;
  border-radius: var(--radius); padding: 16px 18px;
}
.warnband > h3 { margin: 0 0 6px; font-size: 17px; color: #7d1a15; }
.warnband > p { margin: 0 0 14px; font-size: 13.5px; color: #8a3a33; }
.warncard {
  background: #fff; border: 1px solid #f0d5d1; border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 10px;
}
.warncard h4 { margin: 0 0 4px; font-size: 15px; color: var(--danger); }
.warncard .wp { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.warncard ul { margin: 0; padding: 0; list-style: none; }
.warncard li { font-size: 13.5px; color: var(--ink2); padding-left: 16px; position: relative; margin-bottom: 5px; }
.warncard li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; background: var(--danger); border-radius: 1px; }

/* ---------- 页脚 ---------- */
footer {
  background: #10262a; color: rgba(255, 255, 255, .62); padding: 28px 0 34px; font-size: 13px;
}
footer a { color: #a8e0cd; }
footer .ftitle { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
footer ul { padding-left: 0; list-style: none; margin: 0 0 14px; }
footer li { margin-bottom: 6px; }
.disc { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; line-height: 1.75; }
.visits { margin: 0 0 14px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.visits[hidden] { display: none; }
.visits b { color: #a8e0cd; font-size: 16px; font-weight: 700; }
.visits .src { color: rgba(255, 255, 255, .42); font-size: 12px; margin-left: 6px; }
#visitStat[hidden] { display: none; }

/* ---------- 通用内容页 ---------- */
.page-head { padding: 30px 0 6px; }
.page-head h1 { font-size: clamp(24px, 6vw, 34px); margin: 0 0 8px; letter-spacing: -.4px; }
.page-head p { color: var(--ink2); font-size: 14.5px; margin: 0; max-width: 700px; }
.sec-nav { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; }
section[id] { scroll-margin-top: 78px; }
.sec-nav::-webkit-scrollbar { display: none; }
.tblwrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; }
th { background: #faf9f5; font-size: 12.5px; color: var(--ink2); font-weight: 700; white-space: nowrap; }
td b { font-weight: 650; }
tr:last-child td { border-bottom: none; }
.mbar { display: flex; gap: 2px; }
.mbar i { width: 8px; height: 16px; border-radius: 2px; background: #ece8df; display: block; }
.mbar i.b { background: var(--brand2); }
.mbar i.h { background: var(--accent); }

.note {
  background: var(--brand-soft); border: 1px solid #cfe6de; border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 13.5px; color: #17513f;
}
.alert {
  background: var(--warn-soft); border: 1px solid #eddcaa; border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 13.5px; color: #6a4e00;
}
.two { display: grid; gap: 14px; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; } }
.chk { list-style: none; padding: 0; margin: 0; }
.chk li {
  font-size: 14px; color: var(--ink2); padding: 6px 0 6px 26px; position: relative;
  border-bottom: 1px dashed var(--line2);
}
.chk li:last-child { border-bottom: none; }
.chk li::before {
  content: ""; position: absolute; left: 2px; top: 12px; width: 7px; height: 7px;
  border-radius: 50%; border: 2px solid var(--brand2);
}
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: rgba(16, 38, 42, .95); color: #fff; font-size: 13.5px;
  padding: 9px 16px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .25s ease; z-index: 90; max-width: 90vw; text-align: center;
}
.toast.on { opacity: 1; }
.empty {
  text-align: center; padding: 40px 10px; color: var(--muted); font-size: 14px;
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
}
