@font-face {
  font-family: "ShanheDaoLi";
  src: url("../assets/fonts/AlimamaDaoLiTi-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #183b34;
  --ink-soft: #52675f;
  --muted: #5d7064;
  --paper: #f4f1e9;
  --paper-deep: #ebe6da;
  --white: #fffdf8;
  --line: #ded9cc;
  --cinnabar: #b45132;
  --gold: #b89356;
  --shadow: 0 18px 60px rgba(23, 45, 37, .14);
  --cat-revolution: #b45132;
  --cat-cave: #a98243;
  --cat-building: #287065;
  --cat-inscription: #77658c;
  --cat-site: #4e7891;
  --cat-tomb: #6e7350;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 3px; }
button { border: 0; background: none; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.topbar {
  height: calc(64px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: #f8f3e8;
  position: relative;
  z-index: 1200;
  box-shadow: 0 2px 14px rgba(10, 30, 25, .18);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 280px; min-height: 44px; }
.brand-seal {
  width: 38px; height: 38px; display: block; object-fit: contain; flex: 0 0 auto;
}
.brand-copy { display: block; }
.brand-copy strong { font-family: "ShanheDaoLi", "STSong", "Songti SC", serif; font-size: 28px; letter-spacing: 4px; font-weight: 400; }
.main-nav { display: flex; align-items: center; gap: 8px; height: 100%; }
.nav-item { color: #b7c8bf; height: 100%; padding: 0 20px; font-size: 14px; letter-spacing: 1px; position: relative; }
.nav-item:hover, .nav-item.active { color: #fffaf0; }
.nav-item.active::after { content: ""; height: 2px; background: var(--cinnabar); position: absolute; bottom: 0; left: 20px; right: 20px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; min-width: 0; }
.topbar-meta { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #b7c8bf; letter-spacing: .4px; }
.topbar-meta b { color: #f5efe3; font-weight: 500; }
.topbar-count { margin-left: 15px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.15); }
.topbar-count b { font-family: "Times New Roman", serif; font-size: 20px; margin-right: 5px; }
.topbar-count > span { color: #b7c8bf; }
.my-entry { height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 2px 0 18px; border-left: 1px solid rgba(255,255,255,.15); color: #f8f3e8; font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.my-entry:hover, .my-entry.active { color: #d2ae70; }
.nav-menu-toggle { width: 44px; height: 44px; display: none; place-items: center; color: #f8f3e8; }
.nav-menu-toggle svg { width: 20px; height: 20px; }
.nav-menu-toggle:hover, .nav-menu-toggle[aria-expanded="true"] { color: #d2ae70; }
.my-count { min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 10px; background: var(--cinnabar); color: white; font: 14px/1 "Times New Roman", serif; }

.workspace { height: calc(100dvh - 64px - env(safe-area-inset-top)); display: grid; grid-template-columns: 360px minmax(0, 1fr); position: relative; }
.sidebar { background: var(--paper); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; position: relative; z-index: 1000; }
@media (min-width: 761px) {
  body.explore-detail-open .workspace { grid-template-columns: minmax(0, 1fr); }
  body.explore-detail-open .sidebar { display: none; }
  body.explore-detail-open .map-heading { display: none; }
}
.sidebar-intro { padding: 50px 25px 42px; background: linear-gradient(145deg, #f5f1e7 30%, #ede7d9); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.sidebar-intro::after { content: "迹"; position: absolute; right: -7px; top: 3px; font-family: "STKaiti", serif; font-size: 132px; color: rgba(24,59,52,.045); line-height: 1; pointer-events: none; }
.eyebrow { font-family: "Times New Roman", serif; font-size: 14px; letter-spacing: 2.2px; color: var(--cinnabar); font-weight: 600; }
.sidebar-intro h1 { margin: 10px 0 9px; font-family: "STSong", "Songti SC", "SimSun", serif; font-size: 28px; line-height: 1.24; letter-spacing: 2px; font-weight: 600; }
.sidebar-intro h1 span { font-size: 17px; letter-spacing: 1px; }
.sidebar-intro p { margin: 0; font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif; font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--ink-soft); letter-spacing: .5px; }
.sidebar-intro .intro-lead { display: inline-block; margin-right: 4px; font-size: 2em; line-height: 1; vertical-align: -2px; }
.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.summary-strip div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border-right: 1px solid #d8d1c2; padding-left: 12px; }
.summary-strip div:first-child { padding-left: 0; }
.summary-strip div:last-child { border: 0; }
.summary-strip strong { font-family: "Times New Roman", serif; font-size: 23px; font-weight: 400; }
.summary-strip span { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }

.filter-area { padding: 12px 18px 10px; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.5); position: relative; z-index: 8; }
.dataset-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 50px; padding: 3px; margin-bottom: 10px; background: #e9e5db; border-radius: 4px; }
.dataset-tab { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border-radius: 3px; color: var(--ink-soft); font-size: 14px; white-space: nowrap; transition: background .16s, color .16s, box-shadow .16s; }
.dataset-tab span { font: 14px "Times New Roman", serif; color: var(--muted); }
.dataset-tab:hover { color: var(--ink); }
.dataset-tab.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(23,45,37,.12); }
.dataset-tab.active span { color: var(--cinnabar); }
.search-box { height: 44px; display: flex; align-items: center; padding: 0 12px; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 3px; }
.search-box:focus-within { border-color: #78948a; box-shadow: 0 0 0 3px rgba(24,59,52,.05); }
.search-box svg { width: 16px; color: #87958e; flex: 0 0 auto; }
.search-box input { border: 0; outline: 0; background: none; min-width: 0; width: 100%; font-size: 14px; color: var(--ink); }
.search-box input::placeholder { color: var(--muted); }
.search-box kbd { font: 14px "Times New Roman", serif; color: #94a098; border: 1px solid var(--line); padding: 1px 5px; border-radius: 2px; }
.filter-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; margin-top: 9px; }
.select-wrap { position: relative; min-width: 0; height: 44px; }
.select-wrap.is-open { z-index: 2; }
.select-trigger { width: 100%; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: border-color .16s, box-shadow .16s, background .16s; }
.select-trigger:hover { border-color: #aab5aa; background: #fffefb; }
.select-wrap.is-open .select-trigger { border-color: #78948a; box-shadow: 0 0 0 3px rgba(24,59,52,.05); }
.select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-trigger svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--muted); transition: transform .18s; }
.select-wrap.is-open .select-trigger svg { transform: rotate(180deg); }
.select-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: max-content; min-width: 100%; max-width: 240px; max-height: 292px; overflow-y: auto; overscroll-behavior: contain; padding: 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); box-shadow: 0 14px 40px rgba(23,45,37,.16); scrollbar-width: thin; scrollbar-color: #c6c4b8 transparent; animation: select-menu-in .14s ease-out; }
.select-wrap:last-child .select-menu { left: auto; right: 0; }
.select-option { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 3px; color: var(--ink); font-size: 14px; text-align: left; white-space: nowrap; cursor: pointer; }
.select-option > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.select-option:hover, .select-option:focus-visible { background: #eef1eb; outline: none; }
.select-option.is-selected { background: #e8ede6; color: var(--ink); font-weight: 600; }
.select-option svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--ink); opacity: 0; }
.select-option.is-selected svg { opacity: 1; }
@keyframes select-menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.results-meta { display: flex; align-items: center; gap: 8px; padding: 10px 2px 0; font-size: 14px; color: var(--ink-soft); }
.results-meta > span:first-child { font-weight: 600; color: var(--ink); }
.sort-note { margin-left: auto; color: var(--muted); font-size: 14px; }
.text-button { min-height: 44px; padding: 0; color: var(--cinnabar); font-size: 14px; }
.heritage-list { overflow-y: auto; overscroll-behavior: contain; padding: 7px 9px 20px; scrollbar-width: thin; scrollbar-color: #c6c4b8 transparent; flex: 1; }
.heritage-card { width: 100%; display: grid; grid-template-columns: minmax(36px, 62px) 1fr 16px; gap: 11px; align-items: center; text-align: left; min-height: 88px; padding: 12px 9px; border-bottom: 1px solid #e0dbcf; transition: background .18s, transform .18s; border-radius: 3px; }
.heritage-card:hover { background: #ebe7dc; }
.heritage-card.selected { background: #e4e8df; box-shadow: inset 3px 0 0 var(--ink); }
.heritage-placeholder { width: 36px; height: 36px; display: grid; place-items: center; justify-self: start; border-radius: 50%; color: white; background: var(--cat-color); }
.heritage-placeholder svg { width: 20px; height: 20px; stroke-width: 1.8; }
.heritage-thumb { width: 62px; height: 62px; justify-self: start; border-radius: 3px; object-fit: cover; background: #e8e3d8; box-shadow: 0 2px 8px rgba(23,45,37,.12); }
.heritage-card-copy { min-width: 0; }
.heritage-card-heading { display: flex; align-items: center; gap: 7px; min-width: 0; }
.heritage-card-heading > strong { min-width: 0; }
.compact-rating-tags { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; }
.scenic-tag { display: inline-flex; align-items: center; justify-content: center; min-height: 23px; padding: 2px 6px; border: 1px solid rgba(169,82,54,.28); border-radius: 3px; background: rgba(169,82,54,.07); color: #93472f; font: 14px/1 "Times New Roman", serif; white-space: nowrap; }
.heritage-card-copy small { display: block; font: 14px "Times New Roman", serif; letter-spacing: .8px; color: var(--cat-color); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heritage-card-copy strong { display: block; font-family: "STSong", "Songti SC", serif; font-weight: 600; font-size: 16px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heritage-card-copy p { margin: 4px 0 0; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heritage-card > svg { width: 13px; color: #98a198; }
.empty-list { text-align: center; padding: 50px 15px; color: var(--ink-soft); }
.empty-list svg { width: 30px; height: 30px; margin-bottom: 10px; color: #a6b0a6; }
.empty-list strong { display: block; font-family: serif; font-size: 16px; margin-bottom: 6px; }
.empty-list p { font-size: 14px; line-height: 1.7; margin: 0; }
.mobile-list-close { display: none; }

.map-area { position: relative; min-width: 0; overflow: hidden; background: #f6f4ed; }
#map { position: absolute; inset: 0; background: #f6f4ed; }
.leaflet-roadNetwork-pane { filter: grayscale(1); }
.map-heading { position: absolute; z-index: 500; top: 24px; left: 25px; padding: 14px 18px 13px; background: rgba(255,253,248,.93); border: 1px solid rgba(213,208,195,.9); box-shadow: 0 8px 26px rgba(23,45,37,.08); border-radius: 3px; pointer-events: none; }
.map-kicker { display: flex; align-items: center; gap: 7px; font-size: 14px; letter-spacing: 2px; color: var(--ink-soft); }
.map-kicker i { width: 15px; height: 1px; background: var(--cinnabar); flex: 0 0 auto; }
.map-heading-bottom { display: flex; align-items: baseline; gap: 9px; margin-top: 6px; }
.map-heading-bottom strong { font-family: "Times New Roman", serif; font-size: 29px; line-height: 1; font-weight: 400; }
.map-heading-bottom span { font-size: 14px; color: var(--ink-soft); }
.map-toolbar { position: absolute; z-index: 500; right: 22px; top: 24px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 5px 20px rgba(23,45,37,.09); overflow: hidden; }
.map-toolbar button { width: 44px; height: 44px; display: grid; place-items: center; font: 23px "Times New Roman", serif; }
.map-toolbar button:hover { background: #ebe9df; }
.map-toolbar button svg { width: 17px; }
.map-toolbar > span { height: 1px; background: var(--line); margin: 2px 7px; }
.map-legend { position: absolute; z-index: 500; left: 25px; bottom: 32px; display: flex; flex-wrap: wrap; gap: 6px 10px; max-width: calc(100% - 260px); padding: 10px 12px; background: rgba(255,253,248,.94); border: 1px solid rgba(213,208,195,.9); border-radius: 3px; box-shadow: 0 5px 20px rgba(23,45,37,.07); }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #52675f; white-space: nowrap; }
.legend-mark { width: 18px; height: 18px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--cat-color); color: white; box-shadow: 0 0 0 2px color-mix(in srgb, var(--cat-color) 18%, transparent); }
.legend-mark svg { width: 12px; height: 12px; stroke-width: 1.8; }
.map-hint { position: absolute; z-index: 500; left: 25px; bottom: 83px; display: flex; align-items: center; gap: 6px; font-size: 14px; color: #5d7068; text-shadow: 0 1px 3px white; pointer-events: none; }
.map-hint svg { width: 13px; height: 13px; }
.map-error { position: absolute; z-index: 800; top: 24px; left: 50%; transform: translateX(-50%); background: #fff5e9; border: 1px solid #dab98c; padding: 11px 15px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; box-shadow: var(--shadow); }
.map-error span { color: #755f47; font-size: 14px; }
.map-error button { min-height: 44px; padding: 0 14px; background: var(--ink); color: #fffaf0; border-radius: 3px; font-size: 14px; }
.mobile-list-toggle { display: none; }

.detail-panel { position: absolute; z-index: 900; right: 16px; top: 16px; bottom: 16px; width: 398px; background: var(--white); box-shadow: var(--shadow); border: 1px solid rgba(207,201,186,.85); border-radius: 4px; overflow: hidden; transform: translateX(calc(100% + 30px)); opacity: 0; pointer-events: none; transition: transform .34s cubic-bezier(.2,.75,.2,1), opacity .25s; display: flex; flex-direction: column; }
.detail-panel.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
.detail-close, .detail-favorite { position: absolute; z-index: 5; top: 9px; width: 44px; height: 44px; border-radius: 50%; background: rgba(20,37,32,.52); color: white; display: grid; place-items: center; backdrop-filter: blur(8px); }
.detail-close { right: 9px; }
.detail-favorite { left: 9px; }
.detail-close:hover, .detail-favorite:hover { background: rgba(20,37,32,.8); }
.detail-favorite.is-favorite { color: #fff2c9; }
.detail-favorite.is-favorite svg { fill: currentColor; }
.detail-close svg, .detail-favorite svg { width: 17px; }
.detail-hero { height: 208px; flex: 0 0 auto; position: relative; background: var(--ink); overflow: hidden; }
.detail-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.detail-hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(13,34,28,.05) 20%, rgba(13,34,28,.8) 100%); }
.detail-hero-content { position: absolute; z-index: 2; bottom: 16px; left: 21px; right: 21px; display: flex; align-items: center; justify-content: space-between; color: #fff8e9; }
.detail-number { font: 14px "Times New Roman", serif; letter-spacing: 2px; }
.detail-category { font-size: 14px; letter-spacing: 1px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.55); border-radius: 2px; background: rgba(15,35,29,.25); backdrop-filter: blur(6px); }
.detail-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cbc7ba transparent; flex: 1; padding-bottom: 24px; }
.detail-jump { position: sticky; top: 0; z-index: 4; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 7px 18px; background: rgba(255,253,248,.96); border-top: 1px solid #e7e1d5; border-bottom: 1px solid #e7e1d5; backdrop-filter: blur(8px); }
.detail-jump button { min-height: 44px; padding: 0 4px; color: var(--ink-soft); font-size: 14px; border-radius: 3px; }
.detail-jump button:hover { background: #ecefe8; color: var(--cinnabar); }
.detail-explore-nav { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px; margin: 0 24px 18px; padding-top: 15px; border-top: 1px solid #e7e1d5; }
.detail-explore-nav[hidden], .detail-explore-nav [hidden] { display: none; }
.detail-explore-nav button { min-width: 0; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid #ded8ca; border-radius: 3px; background: #f8f4ea; color: var(--ink); text-align: left; }
.detail-explore-nav button:hover { border-color: #bd8d76; background: #f0e9dc; color: var(--cinnabar); }
.detail-explore-nav button > span { min-width: 0; font-size: 14px; line-height: 1.4; }
.detail-explore-nav button small { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.detail-explore-nav svg { width: 15px; height: 15px; flex: 0 0 auto; }
.detail-section { scroll-margin-top: 60px; }
.detail-title-block { padding: 24px 24px 18px; }
.detail-title-block h2 { margin: 8px 0 4px; font-family: "STSong", "Songti SC", "SimSun", serif; font-size: 31px; line-height: 1.2; letter-spacing: 1.5px; font-weight: 600; }
.current-name { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.scenic-ratings { display: flex; flex-direction: column; gap: 7px; margin: -8px 0 17px; }
.scenic-ratings:empty { display: none; }
.scenic-ratings-label { color: var(--muted); font-size: 14px; }
.scenic-rating-list { display: flex; flex-direction: column; gap: 6px; }
.scenic-rating-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 9px; align-items: center; width: 100%; min-height: 44px; padding: 7px 10px; border: 1px solid #ded8ca; border-radius: 3px; background: #f5f1e7; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.scenic-rating-item:hover { border-color: #bd8d76; background: #f0e9dc; }
.scenic-rating-item b { grid-row: span 2; color: #93472f; font: 14px/1.2 "Times New Roman", serif; white-space: nowrap; }
.scenic-rating-item span { overflow: hidden; font-size: 14px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.scenic-rating-item small { color: var(--muted); font-size: 14px; line-height: 1.3; }
.address-card { display: grid; grid-template-columns: 30px 1fr 44px; gap: 9px; align-items: center; padding: 12px; background: #f1eee5; border-left: 2px solid var(--cinnabar); }
.address-icon { width: 28px; height: 28px; border-radius: 50%; background: #e4ddd0; display: grid; place-items: center; color: var(--cinnabar); }
.address-icon svg { width: 15px; }
.address-card div:nth-child(2) { min-width: 0; }
.address-card span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 3px; }
.address-card strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.55; }
.address-card small { display: block; font-size: 14px; color: #6f5c46; margin-top: 3px; line-height: 1.4; }
.address-card button { width: 44px; height: 44px; display: grid; place-items: center; color: #52675f; }
.address-card button svg { width: 15px; }
.coordinate-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.coordinate-line > span { font-family: "SFMono-Regular", Consolas, monospace; font-size: 14px; }
.coordinate-line button { min-height: 44px; display: flex; align-items: center; gap: 4px; padding: 0 4px; color: var(--cinnabar); font-size: 14px; white-space: nowrap; }
.coordinate-line svg { width: 12px; height: 12px; }
.detail-section { padding: 19px 24px 21px; border-top: 1px solid #e7e1d5; }
.section-label { display: flex; align-items: center; gap: 9px; font-family: "STSong", "Songti SC", serif; font-size: 15px; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 14px; }
.section-label span { font: 14px "Times New Roman", serif; color: var(--cinnabar); border-bottom: 1px solid var(--cinnabar); padding-bottom: 2px; letter-spacing: 0; }
.intro-section > p { margin: 0; font-size: 14px; line-height: 1.9; color: #50645a; text-align: justify; white-space: pre-line; }
.fact-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.fact-chips span { font-size: 14px; padding: 5px 8px; background: #ecefe8; color: #4e665a; border-radius: 2px; }
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 5px; bottom: 8px; width: 1px; background: #d7d5c8; }
.timeline-item { position: relative; padding: 0 0 16px 8px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -20px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--white); border: 2px solid #809588; }
.timeline-item:first-child::before { border-color: var(--cinnabar); background: var(--cinnabar); }
.timeline-item time { display: block; font: 14px "Times New Roman", "STSong", serif; color: var(--cinnabar); margin-bottom: 4px; letter-spacing: .5px; }
.timeline-item p { margin: 0; font-size: 14px; color: #617168; line-height: 1.7; }
.highlight-list { display: flex; flex-direction: column; gap: 9px; }
.highlight-item { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 10px 11px; background: #f3f0e7; border-radius: 2px; }
.highlight-item > span { font: italic 15px "Times New Roman", serif; color: #aa8c5c; padding-top: 1px; }
.highlight-item strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.highlight-item p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.65; }
.visit-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.visit-card { border: 1px solid #ded9cc; padding: 12px 11px; border-radius: 3px; background: #fffdf8; }
.visit-card svg { width: 17px; height: 17px; color: var(--cinnabar); margin-bottom: 8px; }
.visit-card span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 3px; }
.visit-card strong { display: block; font: 16px "STSong", serif; margin-bottom: 6px; }
.visit-card p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.65; }
.season-card { background: #eaf0e9; padding: 14px; border-radius: 3px; }
.season-head { display: flex; align-items: center; gap: 10px; }
.season-head svg { color: var(--ink); width: 22px; height: 22px; }
.season-head strong { display: block; font: 15px "STSong", serif; margin-bottom: 3px; }
.season-head span { display: block; font-size: 14px; color: var(--muted); }
.month-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: 14px 0 10px; }
.month-grid span { text-align: center; font: 14px "Times New Roman", serif; color: var(--muted); padding: 7px 0 5px; border-radius: 2px; position: relative; }
.month-grid span::after { content: ""; display: block; width: 4px; height: 4px; margin: 5px auto 0; border-radius: 50%; background: #cdd6cb; }
.month-grid span.best { background: #2d6a5c; color: #fff; }
.month-grid span.best::after { background: #d6b679; }
.month-grid span.good { background: #b8cbbd; color: #284d42; }
.month-grid span.good::after { background: #527969; }
.season-card > p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.section-note { margin: -7px 0 12px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.nearby-card { display: grid; grid-template-columns: 40px 1fr 16px; gap: 9px; align-items: center; width: 100%; padding: 10px 0; text-align: left; border-bottom: 1px solid #e8e2d6; }
.nearby-card:last-child { border-bottom: 0; }
.nearby-num { width: 36px; height: 36px; display: grid; place-items: center; font: 14px "Times New Roman", serif; border: 1px solid #d8d4c8; color: var(--muted); }
.nearby-card strong { display: block; font: 16px "STSong", serif; margin-bottom: 3px; }
.nearby-card small { font-size: 14px; color: var(--muted); }
.nearby-card > svg { width: 12px; color: #9ba399; }
.detail-footer { padding: 6px 24px 10px; border-top: 1px solid #e7e1d5; background: #f2eee4; }
.source-button { min-height: 44px; display: flex; align-items: center; gap: 7px; width: 100%; padding: 0; font-size: 14px; color: #556b5f; }
.source-button svg { width: 14px; }
.source-button svg:last-child { margin-left: auto; }

.map-marker { background: transparent; border: 0; }
.map-marker-inner { width: 25px; height: 25px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--cat-color); border: 2px solid #fffaf0; box-shadow: 0 2px 7px rgba(23,45,37,.35); display: grid; place-items: center; transition: transform .15s; }
.map-marker-inner svg { width: 13px; height: 13px; color: #fffaf0; stroke-width: 1.9; transform: rotate(45deg); pointer-events: none; }
.map-marker:hover .map-marker-inner, .map-marker.active .map-marker-inner { transform: rotate(-45deg) scale(1.25); }
.map-marker.active .map-marker-inner { box-shadow: 0 0 0 5px rgba(180,81,50,.18), 0 3px 10px rgba(23,45,37,.3); }
.map-marker-world .map-marker-inner { width: 27px; height: 27px; border-radius: 50%; transform: none; border-width: 3px; }
.map-marker-world .map-marker-inner svg { width: 14px; height: 14px; transform: none; }
.map-marker-world:hover .map-marker-inner, .map-marker-world.active .map-marker-inner { transform: scale(1.2); }
.world-detail #detail-highlights-section,
.world-detail #detail-visits-section,
.world-detail #detail-season-section,
.world-detail #detail-nearby-section { display: none; }
.world-detail #detail-jump button[data-section="detail-highlights-section"],
.world-detail #detail-jump button[data-section="detail-visits-section"],
.world-detail #detail-jump button[data-section="detail-season-section"],
.world-detail #detail-jump button[data-section="detail-nearby-section"] { display: none; }
.world-detail #detail-jump { grid-template-columns: repeat(2, 1fr); }
.map-label { background: transparent; border: 0; box-shadow: none; pointer-events: none; text-align: center; white-space: nowrap; }
.map-label span { display: inline-block; color: #52695f; font-family: "STSong", "Songti SC", serif; font-weight: 600; text-shadow: 0 1px 2px #fffdf8, 0 -1px 2px #fffdf8, 1px 0 2px #fffdf8, -1px 0 2px #fffdf8; opacity: .86; }
.map-label-province span { font-size: 14px; letter-spacing: 2px; }
.heritage-tooltip { border: 1px solid rgba(206,200,186,.9); border-radius: 3px; box-shadow: 0 6px 20px rgba(23,45,37,.13); padding: 7px 10px; color: var(--ink); font-family: "PingFang SC", sans-serif; font-size: 14px; line-height: 1.65; }
.heritage-tooltip::before { border-top-color: var(--white); }
.heritage-tooltip strong { font-family: "STSong", serif; font-size: 14px; font-weight: 600; }
.marker-cluster-small { background: rgba(45,106,92,.75); }
.marker-cluster-medium { background: rgba(140,116,67,.78); }
.marker-cluster-large { background: rgba(180,81,50,.78); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: rgba(255,253,248,.9); color: var(--ink); font-family: "Times New Roman", serif; box-shadow: 0 2px 8px rgba(23,45,37,.16); }
.leaflet-container { font-family: inherit; }
.leaflet-control-attribution { font-size: 14px !important; background: rgba(255,253,248,.76) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: #53695e !important; }
.leaflet-bottom.leaflet-right { right: max(18px, env(safe-area-inset-right)); bottom: calc(7px + env(safe-area-inset-bottom)); }
.leaflet-popup-content-wrapper { border-radius: 3px; background: var(--white); box-shadow: 0 10px 35px rgba(23,45,37,.18); }
.leaflet-popup-content { margin: 14px 16px; font-family: inherit; }
.leaflet-popup-content strong { display: block; font: 16px "STSong", serif; margin-bottom: 5px; }
.leaflet-popup-content span { display: block; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.leaflet-popup-content em { display: block; font: normal 14px "Times New Roman", serif; color: var(--cinnabar); margin-bottom: 7px; letter-spacing: 1px; }
.marker-menu { min-width: 180px; }
.marker-menu > span { margin-bottom: 10px; }
.marker-menu-actions { display: grid; gap: 6px; }
.marker-menu-actions button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; text-align: left; }
.marker-menu-actions button svg { width: 16px; height: 16px; }
.marker-menu-actions [data-marker-action="want"] svg { fill: var(--cinnabar); stroke: var(--cinnabar); }
.marker-menu-actions button:hover { background: var(--paper-deep); }
.marker-menu-actions button.is-active { color: var(--cinnabar); background: #f3e7df; border-color: #d8b5a6; }

.modal-backdrop { position: fixed; inset: 0; z-index: 2000; background: rgba(15,33,28,.58); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 30px; }
.modal { width: min(920px, 100%); max-height: min(820px, calc(100dvh - 60px)); background: var(--paper); position: relative; overflow-y: auto; box-shadow: 0 25px 100px rgba(0,0,0,.3); border-radius: 4px; }
.modal-close { position: sticky; float: right; top: 15px; right: 15px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 50%; }
.modal-close svg { width: 17px; }
.modal.daily-modal { width: min(720px, 100%); background: #f8f4ea; }
.daily-header { padding: 42px 44px 30px; color: #fffaf0; background: var(--ink); }
.daily-kicker { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-right: 38px; color: #c8d2c6; font-size: 14px; letter-spacing: .5px; }
.daily-kicker span:first-child { color: #dfb18f; font-family: "Times New Roman", serif; letter-spacing: 1.5px; }
.daily-header h2 { margin: 13px 0 10px; font: 32px "STSong", serif; letter-spacing: 3px; }
.daily-header p { margin: 0; color: #d8dfd5; font-size: 16px; line-height: 1.7; }
.daily-content { padding: 30px 44px 34px; }
.daily-story { padding: 0 0 27px; border-bottom: 1px solid var(--line); }
.daily-site-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #6d776e; font-size: 14px; }
.daily-site-meta span:last-child { flex: 0 0 auto; padding: 4px 8px; color: var(--cinnabar); border: 1px solid rgba(157,63,44,.28); border-radius: 2px; }
.daily-story h3 { margin: 16px 0 12px; color: var(--ink); font: 28px "STSong", serif; letter-spacing: 1px; line-height: 1.35; }
.daily-story > p { margin: 0; color: #3e4c43; font: 16px/1.95 "STSong", serif; }
.daily-detail-link, .daily-previous-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; margin-top: 19px; padding: 0; color: var(--cinnabar); font-size: 15px; font-weight: 700; }
.daily-detail-link svg { width: 16px; height: 16px; }
.daily-detail-link:hover, .daily-previous-link:hover { color: var(--ink); }
.daily-question { padding: 26px 0 25px; border-bottom: 1px solid var(--line); }
.daily-section-label { margin-bottom: 12px; color: var(--cinnabar); font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.daily-question h3 { margin: 0 0 16px; font: 19px/1.65 "STSong", serif; }
.daily-options { display: grid; gap: 9px; }
.daily-option { width: 100%; min-height: 48px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 9px 13px; color: var(--ink-soft); background: rgba(255,253,248,.75); border: 1px solid #d7d0c1; border-radius: 3px; text-align: left; transition: border-color .16s, background .16s; }
.daily-option > span { width: 26px; height: 26px; display: grid; place-items: center; color: #788078; background: #ece7da; border-radius: 50%; font: 14px "Times New Roman", serif; }
.daily-option strong { font-size: 16px; font-weight: 400; line-height: 1.55; }
.daily-option > svg { width: 17px; height: 17px; color: #3e7259; }
.daily-option:not(:disabled):hover { border-color: #a88a71; background: #fffdf8; }
.daily-option:disabled { cursor: default; }
.daily-option.is-selected { color: var(--cinnabar); border-color: var(--cinnabar); background: #fcf2eb; }
.daily-option.is-selected > span { color: #fffaf0; background: var(--cinnabar); }
.daily-option.is-correct { color: #2e6249; border-color: #8ba391; background: #eef4ec; }
.daily-option.is-correct > span { color: #fffaf0; background: #4b755d; }
.daily-option.is-selected.is-correct { color: #2e6249; border-color: #4b755d; background: #eef4ec; }
.daily-option.is-selected.is-correct > span { background: #4b755d; }
.daily-answer-note { margin: 12px 0 0; color: #7a8077; font-size: 14px; line-height: 1.6; }
.daily-yesterday { margin-top: 25px; padding: 0; background: #ecefe6; border: 1px solid #d6ddcf; border-radius: 3px; }
.daily-yesterday-summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; color: #4d6556; font-size: 14px; font-weight: 700; letter-spacing: .5px; list-style: none; cursor: pointer; }
.daily-yesterday-summary::-webkit-details-marker { display: none; }
.daily-yesterday-summary svg { width: 15px; height: 15px; flex: 0 0 auto; transition: transform .18s; }
.daily-yesterday[open] .daily-yesterday-summary { border-bottom: 1px solid #d6ddcf; }
.daily-yesterday[open] .daily-yesterday-summary svg { transform: rotate(90deg); }
.daily-yesterday-content { padding: 18px 20px 20px; }
.daily-yesterday-site { margin: 0 0 15px; }
.daily-yesterday-site strong { display: block; margin-bottom: 6px; color: var(--ink); font: 19px "STSong", serif; }
.daily-yesterday-site span { display: block; color: #657168; font-size: 14px; line-height: 1.7; }
.daily-yesterday .daily-option { background: rgba(255,253,248,.7); border-color: #d0d7ca; }
.daily-yesterday .daily-option.is-correct { background: #e2ecdf; border-color: #8ba391; }
.daily-explanation { margin: 14px 0 0; color: #536158; font-size: 14px; line-height: 1.8; }
.daily-previous-link { margin-top: 11px; color: #4d6c59; font-size: 14px; }
.daily-previous-link svg { width: 14px; height: 14px; }
.archive-header { padding: 36px 40px 23px; border-bottom: 1px solid var(--line); background: #ebe6d9; }
.archive-header .eyebrow { margin-bottom: 9px; }
.archive-header h2 { margin: 0 0 9px; font: 28px "STSong", serif; letter-spacing: 2px; }
.archive-header p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.archive-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.archive-actions .search-box { width: 300px; }
.download-button { height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 7px; background: var(--ink); color: #fffaf0; border-radius: 3px; font-size: 14px; }
.download-button svg { width: 15px; }
.my-header { padding: 36px 40px 23px; border-bottom: 1px solid var(--line); background: #ebe6d9; }
.my-header .eyebrow { margin-bottom: 9px; }
.my-header h2 { margin: 0; font: 28px "STSong", serif; letter-spacing: 2px; }
.my-content { padding: 24px 40px 36px; }
.my-section + .my-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.my-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.my-section-head h3 { margin: 0; font: 20px "STSong", serif; letter-spacing: 1px; }
.my-section-head > span { color: var(--muted); font: 14px "Times New Roman", serif; }
.my-favorite-actions { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.my-favorite-tabs { width: 100%; display: flex; align-items: center; justify-content: flex-start; gap: 20px; }
.my-favorite-tabs button { min-width: 0; min-height: 44px; padding: 0 0 10px; position: relative; background: none; color: #252a27; font: 700 20px "STSong", serif; letter-spacing: 1px; box-shadow: none; white-space: nowrap; }
.my-favorite-tabs button:hover { color: #93472f; }
.my-favorite-tabs button.active { background: none; color: var(--cinnabar); box-shadow: none; }
.my-favorite-tabs button.active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 28px; height: 3px; background: var(--cinnabar); transform: translateX(-50%); }
.my-map-mode { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; padding: 0; color: var(--cinnabar); font-size: 14px; white-space: nowrap; }
.my-map-mode svg { width: 15px; height: 15px; }
.my-map-mode:hover { color: var(--ink); }
.my-map-mode:disabled { opacity: .45; cursor: not-allowed; }
.my-site-media { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 3px; object-fit: cover; background: #e8e3d8; color: white; }
.my-site-media svg { width: 22px; height: 22px; }
.my-site-copy { min-width: 0; }
.my-site-copy strong { display: block; font: 600 17px "STSong", serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-site-copy p { margin: 4px 0 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-favorite-row { width: 100%; min-height: 68px; border-bottom: 1px solid var(--line); transition: background .16s; }
.my-favorite-row.has-remove { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 4px; align-items: center; }
.my-favorite-main { width: 100%; min-height: 68px; display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 12px; align-items: center; padding: 12px 2px; text-align: left; }
.my-favorite-main > svg { width: 14px; color: #98a198; }
.my-site-remove { width: 44px; height: 44px; display: grid; place-items: center; color: #98a198; }
.my-site-remove svg { width: 14px; height: 14px; }
.my-site-remove:hover { color: var(--cinnabar); }
.my-favorite-row:hover { background: rgba(23,45,37,.055); }
.my-favorite-row:hover .my-site-copy strong { color: var(--cinnabar); }
.continue-card { width: 100%; display: grid; grid-template-columns: 58px minmax(0, 1fr) 18px; gap: 14px; align-items: center; padding: 15px; border: 1px solid #c9d2c6; border-radius: 3px; background: #eef1e9; text-align: left; }
.continue-card:hover { background: #e5ebe1; border-color: #9eafa0; }
.continue-card .my-site-media { width: 58px; height: 58px; }
.continue-card > svg { width: 16px; color: var(--ink); }
.my-empty { padding: 24px 18px; border: 1px dashed #c9c3b5; border-radius: 3px; color: var(--muted); text-align: center; font-size: 14px; line-height: 1.7; background: rgba(255,253,248,.45); }
.my-empty strong { display: block; margin-bottom: 4px; color: var(--ink-soft); font: 600 17px "STSong", serif; }
.archive-group { padding: 20px 40px 8px; }
.archive-group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 18px "STSong", serif; }
.archive-group-title span { font: 14px "Times New Roman", serif; color: var(--cinnabar); }
.archive-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.archive-table th { text-align: left; padding: 9px 8px; color: var(--muted); font-size: 14px; font-weight: 400; border-bottom: 1px solid #cfcabc; }
.archive-table td { padding: 11px 8px; border-bottom: 1px solid #dfdacd; vertical-align: middle; line-height: 1.5; }
.archive-table td:first-child { font: 14px "Times New Roman", serif; color: var(--muted); width: 48px; }
.archive-table td:nth-child(2) { width: 26%; }
.archive-table td:nth-child(3) { width: 15%; color: #6c7b70; }
.archive-table th:nth-child(4), .archive-table td:nth-child(4) { width: 84px; }
.archive-table th:nth-child(4) { white-space: nowrap; }
.archive-table td:nth-child(5) { color: #6c7b70; }
.archive-table button { min-height: 44px; padding: 8px 0; text-align: left; font: 600 16px "STSong", serif; }
.archive-table button:hover { color: var(--cinnabar); }
.archive-table .compact-rating-tags { flex-wrap: wrap; }
.rating-source-list a { color: #4f7564; text-decoration: underline; text-underline-offset: 3px; }
.archive-footer { padding: 18px 40px 30px; font-size: 14px; color: var(--muted); }
.about-content { padding: 38px 42px 42px; }
.about-content h2 { margin: 9px 0 15px; font: 30px "STSong", serif; letter-spacing: 2px; }
.about-lead { font: 15px/1.9 "STSong", serif; color: #4b6256; margin: 0 0 24px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-card { background: var(--white); border: 1px solid var(--line); padding: 18px; }
.about-card h3 { margin: 0 0 9px; font: 15px "STSong", serif; }
.about-card p, .about-card li { font-size: 14px; color: var(--muted); line-height: 1.85; }
.about-card ul { padding-left: 16px; margin: 0; }
.about-sources { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.about-sources h3 { margin: 0 0 10px; font: 15px "STSong", serif; }
.about-sources a { display: block; font-size: 14px; color: #4f7564; margin: 7px 0; text-decoration: underline; text-underline-offset: 3px; }
.about-sources p { margin: 5px 0 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.photo-credits { margin-top: 18px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.photo-credits a { color: #687f70; }
.toast { position: fixed; z-index: 3000; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom)); transform: translate(-50%, 15px); opacity: 0; pointer-events: none; background: var(--ink); color: #fffaf0; font-size: 14px; padding: 11px 18px; border-radius: 3px; box-shadow: 0 8px 30px rgba(15,33,28,.2); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body { font-size: 16px; }
.sidebar-intro p,
.archive-header p,
.intro-section > p,
.timeline-item p,
.about-card p,
.about-card li { font-size: 16px; }
.heritage-card-copy strong,
.address-card strong,
.highlight-item strong,
.visit-card strong,
.nearby-card strong,
.heritage-tooltip strong { font-size: 16px; }
.section-label,
.about-card h3,
.about-sources h3 { font-size: 18px; }
.about-lead { font-size: 18px; }
.leaflet-container { font-family: inherit; font-size: 14px; }
.leaflet-popup-content { font-size: 14px; }
.marker-cluster div { font-size: 14px; }

@media (min-width: 1500px) {
  .workspace { grid-template-columns: 390px minmax(0, 1fr); }
  .detail-panel { width: 430px; right: 22px; top: 22px; bottom: 22px; }
  .detail-hero { height: 230px; }
  .detail-title-block, .detail-section { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 1100px) {
  .topbar { padding: env(safe-area-inset-top) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
  .brand { min-width: 230px; }
  .topbar-count { display: none; }
  .workspace { grid-template-columns: 330px minmax(0, 1fr); }
  .sidebar-intro { padding-left: 20px; padding-right: 20px; }
  .detail-panel { width: 365px; }
  .map-legend { max-width: calc(100% - 40px); gap: 5px 9px; }
}

@media (max-width: 1100px) {
  .detail-panel { inset: 0; z-index: 1200; width: 100%; height: 100%; border: 0; border-radius: 0; transform: translateX(100%); }
  .detail-hero { height: 210px; }
  .detail-scroll { width: 100%; max-width: 760px; margin: 0 auto; }
  .detail-jump { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .detail-title-block, .detail-section, .detail-footer { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  .detail-footer { padding-bottom: calc(25px + env(safe-area-inset-bottom)); }
}

@media (max-width: 1260px) {
  .topbar-meta { display: none; }
  .topbar-actions { margin-left: auto; gap: 0; }
  .nav-menu-toggle { display: grid; }
  .main-nav { display: none; position: absolute; top: calc(100% + 8px); right: max(15px, env(safe-area-inset-right)); width: 180px; height: auto; padding: 6px; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 30px rgba(10,30,25,.28); }
  .main-nav.mobile-open { display: flex; }
  .nav-item { height: 44px; padding: 0 14px; text-align: left; }
  .nav-item.active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
}

@media (max-width: 760px) {
  .topbar { height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(15px, env(safe-area-inset-right)) 0 max(15px, env(safe-area-inset-left)); }
  .brand { min-width: 0; gap: 9px; }
  .brand-seal { width: 24px; height: 24px; }
  .brand-copy strong { font-size: 17px; letter-spacing: 3px; }
  .my-entry { padding-left: 10px; }
  .workspace { height: calc(100dvh - 56px - env(safe-area-inset-top)); display: block; }
  .sidebar { position: absolute; z-index: 1100; inset: 0; transform: translateX(-100%); transition: transform .3s; border: 0; }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-intro { padding: 41px 22px 32px; }
  .sidebar-intro h1 { font-size: 26px; }
  .summary-strip { margin-top: 14px; }
  .filter-area { padding: 13px 17px 9px; }
  .heritage-list { padding: 6px 12px 18px; }
  .heritage-card { grid-template-columns: minmax(36px, 64px) 1fr 16px; padding: 11px 8px; }
  .mobile-list-close { display: block; flex: 0 0 auto; height: calc(45px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--ink); color: white; font-size: 14px; letter-spacing: 1px; }
  .map-area { height: 100%; }
  .map-heading { top: 14px; left: 14px; padding: 11px 14px; }
  .map-heading-bottom strong { font-size: 24px; }
  .map-heading-bottom span { font-size: 14px; }
  .map-toolbar { right: max(14px, env(safe-area-inset-right)); top: 14px; }
  .map-toolbar button { width: 44px; height: 44px; }
  .map-legend { left: 14px; bottom: 73px; max-width: calc(100% - 28px); padding: 8px 10px; }
  .map-hint { display: none; }
  .mobile-list-toggle { display: flex; position: absolute; z-index: 600; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); align-items: center; gap: 8px; min-height: 44px; background: var(--ink); color: #fffaf0; border: 1px solid rgba(255,255,255,.25); padding: 11px 18px; border-radius: 30px; box-shadow: 0 6px 22px rgba(23,45,37,.25); font-size: 14px; white-space: nowrap; }
  .mobile-list-toggle svg { width: 15px; }
  .mobile-list-toggle span { font: 14px "Times New Roman", serif; color: #d6bd8d; padding-left: 7px; border-left: 1px solid rgba(255,255,255,.25); }
  .detail-panel { inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; transform: translateX(100%); }
  .detail-hero { height: 235px; }
  .detail-title-block { padding: 22px max(20px, env(safe-area-inset-right)) 18px max(20px, env(safe-area-inset-left)); }
  .detail-section { padding: 18px max(20px, env(safe-area-inset-right)) 20px max(20px, env(safe-area-inset-left)); }
  .detail-footer { padding: 18px max(20px, env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  .detail-title-block h2 { font-size: 29px; }
  .modal-backdrop { padding: 0; }
  .modal { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .modal-close { top: calc(15px + env(safe-area-inset-top)); right: calc(15px + env(safe-area-inset-right)); }
  .daily-header { padding: calc(34px + env(safe-area-inset-top)) 22px 24px; }
  .daily-kicker { align-items: flex-start; flex-direction: column; gap: 7px; padding-right: 38px; }
  .daily-header h2 { font-size: 30px; }
  .daily-content { padding: 24px 20px calc(30px + env(safe-area-inset-bottom)); }
  .daily-story h3 { font-size: 25px; }
  .daily-site-meta { align-items: flex-start; }
  .daily-yesterday-summary { padding: 12px 15px; }
  .daily-yesterday-content { padding: 16px 15px 18px; }
  .archive-header { padding: calc(30px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 20px max(20px, env(safe-area-inset-left)); }
  .archive-actions { align-items: stretch; flex-direction: column; }
  .archive-actions .search-box { width: 100%; }
  .download-button { justify-content: center; }
  .my-header { padding: calc(30px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 20px max(20px, env(safe-area-inset-left)); }
  .my-content { padding: 20px max(16px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .my-section-head { flex-wrap: wrap; }
  .my-site-media, .continue-card .my-site-media { width: 46px; height: 46px; }
  .continue-card { grid-template-columns: 46px minmax(0, 1fr) 16px; gap: 10px; padding: 12px; }
  .archive-group { padding: 18px 16px 8px; }
  .archive-table, .archive-table tbody { display: block; width: 100%; }
  .archive-table thead { display: none; }
  .archive-table tbody { display: grid; gap: 10px; }
  .archive-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "name name name" "code time rating" "address address address"; align-items: start; column-gap: 14px; row-gap: 12px; padding: 14px; background: var(--white); border: 1px solid #d8d2c4; border-radius: 4px; }
  .archive-table td { display: block; min-width: 0; padding: 0; border: 0; line-height: 1.6; }
  .archive-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #7a8077; font-size: 14px; font-weight: 400; line-height: 1.4; }
  .archive-table td:nth-child(1) { grid-area: code; width: auto; color: #8b8e84; }
  .archive-table td:nth-child(2) { grid-area: name; width: auto; }
  .archive-table td:nth-child(2)::before { display: none; }
  .archive-table td:nth-child(3) { grid-area: time; width: auto; color: #6c7b70; }
  .archive-table td:nth-child(4) { grid-area: rating; width: auto; justify-self: stretch; text-align: left; }
  .archive-table td:nth-child(4)::before { text-align: left; }
  .archive-table td:nth-child(5) { grid-area: address; width: auto; padding-top: 10px; color: #59665d; border-top: 1px solid #e3ded2; overflow-wrap: anywhere; }
  .archive-table button { min-height: 44px; display: flex; align-items: center; padding: 0; font-size: 16px; line-height: 1.45; white-space: normal; overflow: visible; }
  .archive-table .compact-rating-tags { justify-content: flex-start; }
  .archive-footer { padding: 18px max(20px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  .about-content { padding: calc(32px + env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .map-heading-bottom span { max-width: 120px; line-height: 1.4; }
}

.explore-view {
  position: fixed;
  z-index: 1600;
  top: var(--container-top, 0px);
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  color: #f8f3e8;
  background: #173c35;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .42s cubic-bezier(.22,.8,.24,1), opacity .2s, visibility .42s;
}
.explore-view::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(184,147,86,.11), transparent 26%),
    radial-gradient(circle at 88% 76%, rgba(184,147,86,.08), transparent 30%),
    repeating-radial-gradient(ellipse at 78% 20%, transparent 0 34px, rgba(255,255,255,.025) 35px 36px);
}
.explore-view.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
}
.explore-topbar {
  position: relative;
  z-index: 2;
  flex: 0 0 calc(64px + env(safe-area-inset-top));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: env(safe-area-inset-top) max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.explore-back, .explore-close {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: #d8e1da;
  font-size: 14px;
  letter-spacing: .5px;
}
.explore-back { justify-self: start; }
.explore-close { justify-self: end; width: 44px; justify-content: center; }
.explore-back:hover, .explore-close:hover { color: #fffaf0; }
.explore-brand { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.explore-brand img { width: 28px; height: 28px; object-fit: contain; }
.explore-brand strong { font-family: "ShanheDaoLi", "STSong", "Songti SC", serif; font-size: 22px; font-weight: 400; letter-spacing: 3px; }
.explore-scroll {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255,255,255,.24) transparent;
  scrollbar-width: thin;
}
.explore-index {
  width: 100%;
  max-width: 1180px;
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(24px, 4.5vh, 48px) clamp(24px, 4vw, 56px) 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.explore-index.has-explore-overflow { padding-bottom: 82px; }
.explore-index-header { margin-bottom: 20px; text-align: center; }
.explore-kicker { display: flex; align-items: center; justify-content: center; gap: 14px; color: #bfae8c; font: 14px/1.4 "Times New Roman", serif; letter-spacing: 1.6px; }
.explore-kicker span + span { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.2); }
.explore-index-header h1 { margin: 12px 0 8px; font-family: "ShanheDaoLi", "STSong", "Songti SC", serif; font-size: clamp(32px, 4vw, 44px); font-weight: 400; letter-spacing: 7px; }
.explore-index-title { margin: 0; color: #d8e1da; font-size: 15px; line-height: 1.6; letter-spacing: 1px; }
.explore-quote { margin: 10px 0 0; color: #cdb98f; font-family: "STSong", "Songti SC", serif; font-size: 15px; letter-spacing: 2px; }
.explore-theme-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(92px, auto));
  grid-auto-flow: column;
  border-top: 1px solid rgba(255,255,255,.16);
  border-left: 1px solid rgba(255,255,255,.16);
}
.explore-theme {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  grid-template-rows: auto 1fr;
  align-content: center;
  gap: 6px 8px;
  padding: 14px 16px;
  border-right: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: #f8f3e8;
  text-align: left;
  transition: background .2s, color .2s;
}
.explore-theme:hover { background: rgba(255,255,255,.065); }
.explore-theme-number { grid-column: 1 / -1; color: #a99b7f; font: 14px/1.2 "Times New Roman", serif; letter-spacing: 1px; }
.explore-theme-copy { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.explore-theme-copy strong { font-family: "STSong", "Songti SC", serif; font-size: 23px; font-weight: 600; line-height: 1.25; letter-spacing: 2px; white-space: nowrap; }
.explore-theme-copy small { color: rgba(185,201,191,.42); font: 12px/1.35 "Times New Roman", serif; letter-spacing: .2px; overflow-wrap: anywhere; }
.explore-theme > svg { grid-column: 2; grid-row: 2; align-self: center; width: 17px; color: #a99b7f; transition: transform .2s, color .2s; }
.explore-theme:hover > svg { color: #e2c58e; transform: translateX(3px); }
.explore-preface { width: 100%; max-width: 760px; margin: 0 auto; color: #c8d4cc; border-top: 1px solid rgba(255,255,255,.1); }
.explore-preface summary { min-height: 44px; display: flex; align-items: center; justify-content: center; color: #b9c9bf; font-size: 14px; cursor: pointer; list-style: none; }
.explore-preface summary::-webkit-details-marker { display: none; }
.explore-preface[open] summary { color: #e2c58e; }
.explore-preface p { margin: 0 0 14px; font-size: 16px; line-height: 1.9; }
.explore-detail { width: 100%; max-width: 820px; margin: 0 auto; padding: 48px 32px calc(56px + env(safe-area-inset-bottom)); }
.explore-detail-header { padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.16); }
.explore-detail-header .explore-kicker { justify-content: flex-start; }
.explore-detail-header h2 { margin: 18px 0 6px; font-family: "ShanheDaoLi", "STSong", "Songti SC", serif; font-size: 48px; font-weight: 400; letter-spacing: 6px; }
.explore-detail-pinyin { margin: 0; color: rgba(191,174,140,.62); font: 16px/1.5 "Times New Roman", serif; letter-spacing: 1px; }
.explore-detail-slogan { margin: 24px 0 0; color: #e2c58e; font-family: "STSong", "Songti SC", serif; font-size: 21px; line-height: 1.6; letter-spacing: 1px; }
.explore-theme-intro { padding: 26px 0 8px; }
.explore-theme-intro p { margin: 0 0 16px; color: #d7e0da; font-size: 17px; line-height: 1.95; }
.explore-theme-sites { margin-top: 18px; }
.explore-site { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.14); }
.explore-site-number { padding-top: 5px; color: #a99b7f; font: 30px/1.4 "Times New Roman", serif; }
.explore-site-title { display: inline-flex; align-items: center; gap: 10px; padding: 0; color: #fffaf0; font-family: "STSong", "Songti SC", serif; font-size: 22px; font-weight: 600; line-height: 1.5; text-align: left; }
.explore-site-title svg { flex: 0 0 auto; width: 18px; color: #bfae8c; transition: transform .2s; }
.explore-site-title:hover { color: #e2c58e; }
.explore-site-title:hover svg { transform: translateX(3px); }
.explore-site-meta { margin: 8px 0 16px; color: #bfae8c; font-size: 14px; line-height: 1.6; }
.explore-site-body > p:not(.explore-site-meta) { margin: 0 0 14px; color: #c8d4cc; font-size: 16px; line-height: 1.9; }
.explore-theme-closing { margin-top: 12px; padding: 26px 28px; border: 1px solid rgba(205,185,143,.3); background: rgba(255,255,255,.035); }
.explore-theme-closing span { color: #e2c58e; font-size: 14px; letter-spacing: 2px; }
.explore-theme-closing p { margin: 12px 0 0; color: #d7e0da; font-family: "STSong", "Songti SC", serif; font-size: 17px; line-height: 1.9; }
.explore-pager {
  position: absolute;
  z-index: 4;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.explore-pager button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: #fffaf0; background: #173c35; box-shadow: 0 6px 20px rgba(0,0,0,.18); pointer-events: auto; }
.explore-pager button:disabled { opacity: .3; }
.explore-pager span { color: #c8d4cc; font-size: 14px; letter-spacing: 1px; text-shadow: 0 1px 8px #173c35; }

@media (min-width: 761px) {
  .explore-index-pc { position: absolute; inset: 0; max-width: none; height: auto; min-height: 0; }
  .explore-theme-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; container-type: size; }
  .explore-index-pc .explore-theme-grid { flex: none; width: min(100cqw, 200cqh); aspect-ratio: 2 / 1; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .explore-index-pc .explore-theme { position: relative; isolation: isolate; min-height: 0; aspect-ratio: 3 / 2; gap: clamp(2px, .8vh, 6px) 8px; padding: clamp(4px, 1.6vh, 14px) clamp(10px, 1.5vw, 16px); overflow: hidden; }
  .explore-theme-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.025); transition: opacity .38s ease, transform .7s cubic-bezier(.22,.8,.24,1); pointer-events: none; }
  .explore-index-pc .explore-theme::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,24,20,.7), rgba(8,24,20,.32) 55%, rgba(8,24,20,.06)), linear-gradient(0deg, rgba(8,24,20,.3), transparent 70%); opacity: 0; transition: opacity .38s ease; pointer-events: none; }
  .explore-index-pc .explore-theme-number, .explore-index-pc .explore-theme-copy { position: relative; z-index: 2; }
  .explore-index-pc .explore-theme:hover .explore-theme-image { opacity: 1; transform: scale(1); }
  .explore-index-pc .explore-theme:hover::after { opacity: 1; }
  .explore-index-pc .explore-theme:hover .explore-theme-number { color: #f0d6a2; }
  .explore-index-pc .explore-theme:hover .explore-theme-copy small { color: rgba(225,235,228,.82); }
  .explore-index-pc .explore-theme:hover .explore-theme-copy strong, .explore-index-pc .explore-theme:hover .explore-theme-number, .explore-index-pc .explore-theme:hover .explore-theme-copy small { text-shadow: 0 1px 12px rgba(0,0,0,.65); }
  .explore-index-pc .explore-theme > svg { position: absolute; z-index: 2; right: clamp(10px, 1.5vw, 16px); bottom: clamp(4px, 1.6vh, 14px); grid-column: auto; grid-row: auto; }
  .explore-index-pc .explore-theme-copy { gap: clamp(2px, .7vh, 6px); }
  .explore-index-pc .explore-theme-copy strong { font-size: clamp(14px, 2.7vh, 23px); }
  .explore-index-pc .explore-index-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
  .explore-index-pc .explore-index-header .explore-index-heading { order: 1; position: relative; display: flex; align-items: center; justify-content: center; opacity: 1; }
  .explore-index-pc .explore-index-header > * { opacity: 0; }
  .explore-index-pc .explore-index-header h1 { order: 1; margin: 0 0 8px; }
  .explore-index-pc .explore-index-title { order: 2; }
  .explore-index-pc .explore-kicker { order: 3; margin-top: 10px; }
  .explore-index-pc .explore-quote { display: none; }
  .explore-index-pc.is-entering h1 { animation: explore-title-in .9s cubic-bezier(.16,1,.3,1) var(--title-delay, .15s) both; }
  .explore-index-pc.is-entering .explore-index-title { animation: explore-subtitle-in .78s cubic-bezier(.22,1,.36,1) var(--subtitle-delay, .7s) both; }
  .explore-index-pc.is-entering .explore-kicker { animation: explore-kicker-in .72s cubic-bezier(.4,0,.2,1) var(--kicker-delay, 1.25s) both; }
  .explore-index-pc.is-complete .explore-index-header > * { opacity: 1; }
  .explore-preface-stage { position: relative; height: 320px; margin-bottom: 18px; transition: height .6s cubic-bezier(.22,.8,.24,1), margin-bottom .6s cubic-bezier(.22,.8,.24,1); }
  .explore-preface-copy { position: absolute; inset: 0; max-width: 900px; margin: auto; display: flex; flex-direction: column; justify-content: center; transition: opacity .3s, visibility .3s; }
  .explore-preface-line { margin: 0; color: #c8d4cc; font: 18px/1.8 "STSong", "Songti SC", serif; text-align: left; opacity: 0; }
  .explore-preface-line + .explore-preface-line { margin-top: 10px; }
  .explore-preface-line:first-child { color: #cdb98f; font-size: 20px; letter-spacing: 2px; }
  .explore-index-pc.is-entering .explore-preface-line { animation: explore-line-focus var(--line-duration, .9s) cubic-bezier(.16,1,.3,1) both; animation-delay: var(--line-delay, 2.1s); }
  .explore-char { display: inline-block; white-space: pre; will-change: transform, opacity, filter; }
  .explore-preface-stage.is-scattering .explore-char { animation: explore-char-drift var(--scatter-duration, 1.15s) var(--scatter-ease, cubic-bezier(.22,.58,.32,1)) both; }
  .explore-preface-stage.is-scattered .explore-preface-copy { opacity: 0; visibility: hidden; }
  .explore-lamp { position: absolute; top: 50%; left: calc(100% + 12px); width: 48px; height: 72px; padding: 0; border: 0; color: #bfae8c; background: transparent; opacity: 0; transform: translateY(-50%) scale(.72); pointer-events: none; transition: opacity .55s, transform .55s cubic-bezier(.22,.8,.24,1); }
  .explore-index-pc.is-lamp-ready .explore-lamp { opacity: 1; transform: translateY(-50%) scale(1); pointer-events: auto; }
  .explore-lamp-image { position: absolute; top: 0; left: 50%; width: 22px; height: auto; color: #a9936b; transform: translateX(-50%); transition: opacity .45s, filter .45s, color .45s; }
  .explore-lamp-flame { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .35s; }
  .explore-lamp:hover .explore-lamp-image { color: #c0a879; }
  .explore-lamp:hover .explore-lamp-flame { opacity: .38; }
  .explore-lamp.is-lit .explore-lamp-image { color: #d7bc83; filter: drop-shadow(0 0 12px rgba(238,177,73,.38)); animation: explore-lamp-kindle .7s ease-out; }
  .explore-lamp.is-lit .explore-lamp-flame { opacity: 1; animation: explore-flame-flicker 2.4s ease-in-out infinite; }
  .explore-lamp-glow { position: absolute; top: 8px; left: 50%; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle, rgba(240,179,75,.24), rgba(240,179,75,.07) 38%, transparent 70%); opacity: 0; transform: translate(-50%, -50%) scale(.35); transition: opacity .6s, transform .6s; }
  .explore-lamp.is-lit .explore-lamp-glow { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .explore-index-pc.is-complete .explore-preface-stage { height: 0; margin-bottom: 12px; }
  .explore-index-pc:not(.is-complete) .explore-theme-grid { visibility: hidden; pointer-events: none; }
  .explore-index-pc .explore-theme { opacity: 0; }
  .explore-index-pc.is-complete .explore-theme { animation: explore-card-approach var(--card-duration, .72s) var(--card-ease, cubic-bezier(.16,.8,.24,1)) both; animation-delay: calc(var(--theme-order) * 70ms); }
  .explore-index-pc.is-restored .explore-theme { animation: none; opacity: 1; }
  .explore-detail-pc { position: relative; max-width: none; padding: 0; }
  .explore-detail-sticky { position: sticky; top: 0; height: var(--detail-height, 100%); overflow: hidden; background: #0b241e; isolation: isolate; }
  .explore-detail-artwork { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
  .explore-detail-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(90deg, rgba(4,14,12,.62) 0%, rgba(4,14,12,.58) 16%, rgba(4,14,12,.48) 38%, rgba(4,14,12,.24) 55%, transparent 68%),
      radial-gradient(ellipse 42% 64% at 24% 50%, rgba(238,228,210,.88), rgba(238,228,210,.18) 62%, transparent 80%);
    pointer-events: none;
  }
  .explore-detail-viewport { position: relative; z-index: 2; height: 100%; overflow: hidden; }
  .explore-detail-intro { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 5vh clamp(48px, 8vw, 144px); will-change: transform, opacity; }
  .explore-detail-intro .explore-detail-header { max-width: 900px; padding: 0; border: 0; }
  .explore-detail-intro .explore-detail-header h2 { margin-top: 20px; font-size: clamp(56px, 6vw, 88px); letter-spacing: 9px; }
  .explore-detail-intro .explore-detail-pinyin { font-size: 17px; }
  .explore-detail-intro .explore-detail-slogan { margin-top: 26px; font-size: clamp(20px, 1.8vw, 26px); }
  .explore-detail-intro .explore-theme-intro { max-width: 780px; padding: 28px 0 0; }
  .explore-detail-intro .explore-theme-intro p { margin-bottom: 12px; font-size: 17px; line-height: 1.85; }
  .explore-detail-track { display: flex; width: max-content; height: 100%; will-change: transform; }
  .explore-detail-site { flex: 0 0 var(--detail-width, 100vw); width: var(--detail-width, 100vw); height: 100%; display: flex; align-items: center; grid-template-columns: none; gap: 0; padding: 6vh clamp(48px, 8vw, 144px); border: 0; will-change: transform; }
  .explore-detail-site .explore-site-number { width: 88px; flex: 0 0 88px; padding-top: 0; font-size: 48px; line-height: 1; }
  .explore-detail-site .explore-site-body { max-width: 780px; }
  .explore-detail-site .explore-site-title { font-size: clamp(26px, 2.6vw, 38px); }
  .explore-detail-site .explore-site-meta { margin: 12px 0 22px; font-size: 15px; }
  .explore-detail-site .explore-site-body > p:not(.explore-site-meta) { margin-bottom: 14px; font-size: 17px; line-height: 1.85; }
  .explore-detail-ending { flex: 0 0 var(--detail-width, 100vw); width: var(--detail-width, 100vw); height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 6vh clamp(48px, 8vw, 144px); }
  .explore-detail-ending span { color: #e2c58e; font-size: 14px; letter-spacing: 3px; }
  .explore-detail-ending p { max-width: 780px; margin: 22px 0 0; color: #f3eee3; font-family: "STSong", "Songti SC", serif; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.8; letter-spacing: 1px; }
  .explore-detail-status { position: absolute; z-index: 3; right: clamp(28px, 4vw, 64px); bottom: 28px; display: flex; align-items: center; gap: 14px; color: rgba(240,214,162,.82); font: 14px/1 "Times New Roman", serif; letter-spacing: 1px; }
  .explore-detail-current { min-width: 20px; color: #f0d6a2; font-size: 18px; }
  .explore-detail-progress { width: 96px; height: 1px; overflow: hidden; background: rgba(255,255,255,.24); }
  .explore-detail-progress i { display: block; width: 100%; height: 100%; background: #e2c58e; transform: scaleX(0); transform-origin: left; }
  .explore-detail-hint { position: absolute; z-index: 3; bottom: 28px; left: clamp(48px, 8vw, 144px); color: rgba(216,225,218,.66); font-size: 14px; letter-spacing: 2px; }
  .modal.explore-preface-modal { width: min(820px, 100%); background: #f8f4ea; }
  .explore-preface-modal-header { padding: 38px 44px 30px; color: #fffaf0; background: #173c35; }
  .explore-preface-modal-header > span { color: #bfae8c; font: 14px/1.4 "Times New Roman", serif; letter-spacing: 1.6px; }
  .explore-preface-modal-header h2 { margin: 12px 0 10px; font: 32px/1.3 "STSong", "Songti SC", serif; letter-spacing: 3px; }
  .explore-preface-modal-header p { margin: 0; color: #cdb98f; font: 20px/1.6 "STSong", "Songti SC", serif; letter-spacing: 1px; }
  .explore-preface-modal-body { padding: 30px 44px 36px; }
  .explore-preface-modal-body p { margin: 0 0 18px; color: #3e4c43; font: 18px/1.95 "STSong", "Songti SC", serif; }
  .explore-preface-modal-body p:last-child { margin-bottom: 0; }
}

@media (min-width: 761px) and (max-height: 700px) {
  .explore-index-pc .explore-theme-grid { width: min(100cqw, 450cqh); aspect-ratio: 4.5 / 1; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
}

@keyframes explore-title-in {
  from { opacity: 0; transform: translateY(20px) scale(.98); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes explore-subtitle-in {
  from { opacity: 0; transform: translateY(10px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes explore-kicker-in {
  from { opacity: 0; transform: translateY(6px) scale(.985); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes explore-line-focus {
  from { opacity: 0; transform: translateY(var(--line-rise, 8px)) scale(.995); filter: blur(var(--line-blur, 12px)); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes explore-char-drift {
  0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); filter: blur(0); }
  58% { opacity: .72; transform: translate(var(--scatter-mid-x), var(--scatter-mid-y)) rotate(0) scale(.9); filter: blur(.6px); }
  100% { opacity: 0; transform: translate(var(--scatter-x), var(--scatter-y)) rotate(var(--scatter-rotate)) scale(.55); filter: blur(2.5px); }
}

@keyframes explore-card-approach {
  from { opacity: 0; transform: translate(var(--card-x, 0), var(--card-rise, 26px)) scale(var(--card-scale, .78)); filter: blur(var(--card-blur, 14px)); }
  to { opacity: 1; transform: translate(0, 0) scale(1); filter: blur(0); }
}

@keyframes explore-lamp-kindle {
  from { filter: brightness(1.8) drop-shadow(0 0 20px rgba(238,177,73,.7)); }
  to { filter: brightness(1) drop-shadow(0 0 12px rgba(238,177,73,.38)); }
}

@keyframes explore-flame-flicker {
  0% { transform: rotate(-3deg) scaleX(.96) scaleY(1.02); }
  25% { transform: rotate(2deg) scaleX(1.03) scaleY(.98); }
  50% { transform: rotate(-1.5deg) scaleX(.98) scaleY(1.03); }
  75% { transform: rotate(3deg) scaleX(1.02) scaleY(.97); }
  100% { transform: rotate(-2deg) scaleX(.97) scaleY(1.01); }
}

@media (max-width: 1100px) {
  .explore-theme-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(88px, auto)); }
}

@media (max-width: 760px) {
  .explore-view { top: 0; }
  .explore-topbar { grid-template-columns: 1fr auto; flex-basis: calc(56px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); gap: 10px; padding-right: max(15px, env(safe-area-inset-right)); padding-left: max(15px, env(safe-area-inset-left)); }
  .explore-brand { display: none; }
  .explore-index { padding: 20px 20px 18px; justify-content: flex-start; }
  .explore-index-header { margin-bottom: 16px; }
  .explore-index-header h1 { margin-top: 9px; font-size: 32px; letter-spacing: 5px; }
  .explore-index-title { font-size: 14px; }
  .explore-quote { margin-top: 7px; font-size: 14px; }
  .explore-theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(82px, auto)); }
  .explore-theme { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 10px 11px; }
  .explore-theme > svg { display: none; }
  .explore-theme-copy { gap: 4px; }
  .explore-theme-copy strong { font-size: 21px; letter-spacing: 1px; }
  .explore-theme-copy small { font-size: 12px; line-height: 1.25; }
  .explore-detail { padding: 30px 20px calc(42px + env(safe-area-inset-bottom)); }
  .explore-detail-header h2 { font-size: 38px; letter-spacing: 4px; }
  .explore-detail-slogan { font-size: 19px; }
  .explore-theme-intro p { font-size: 16px; }
  .explore-site { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 24px 0; }
  .explore-site-title { font-size: 20px; }
  .explore-theme-closing { padding: 22px 20px; }
}

@media (max-width: 390px) {
  .explore-index { padding-right: 16px; padding-left: 16px; }
  .explore-theme { padding-right: 9px; padding-left: 9px; }
  .explore-theme-copy strong { font-size: 20px; }
  .explore-kicker { gap: 9px; letter-spacing: 1px; }
  .explore-kicker span + span { padding-left: 9px; }
}

@media (max-width: 369px) {
  .explore-theme-grid {
    display: flex;
    gap: 0;
    margin: 0 -16px;
    padding: 0 16px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .explore-theme-grid::-webkit-scrollbar { display: none; }
  .explore-theme { flex: 0 0 calc((100vw - 56px) / 2); min-height: 84px; scroll-snap-align: start; }
  .explore-pager { right: max(14px, env(safe-area-inset-right)); left: max(14px, env(safe-area-inset-left)); }
}

@media (max-width: 760px) and (max-height: 700px) {
  .explore-index { padding-top: 12px; padding-bottom: 12px; }
  .explore-index-header { margin-bottom: 10px; }
  .explore-index-header h1 { margin: 6px 0 4px; font-size: 28px; }
  .explore-index-title { line-height: 1.4; }
  .explore-quote { display: none; }
  .explore-theme { padding-top: 8px; padding-bottom: 8px; }
  .explore-theme-copy { gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .explore-lamp.is-lit .explore-lamp-flame { animation: explore-flame-flicker 2.4s ease-in-out infinite !important; }
}
