:root {
  color-scheme: light;
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --paper: #f7f6ef;
  --white: #fffefa;
  --ink: #222d26;
  --green: #23483d;
  --muted: #5e695f;
  --line: #e4e1d6;
  --mist: #e8ede4;
  --gold: #c79b58;
  --serif: "Songti SC", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #9e6b30; outline-offset: 3px; }
a { color: inherit; }
img, video { display: block; width: 100%; }
[hidden] { display: none !important; }
h1,h2,h3,p { margin: 0; }
h1,h2 { font-family: var(--serif); }
h1 { font-size: clamp(2.5rem, 6.9vw, 5.25rem); line-height: 1.08; letter-spacing: -.045em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.35rem); letter-spacing: -.035em; }
small { color: var(--muted); font-size: .81rem; }
button { color: inherit; }
.icon { width: 22px; height: 22px; display: inline-block; flex: 0 0 auto; }
.bar { position: sticky; z-index: 4; top: 0; background: #f7f6eff2; border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.bar-inner { max-width: 1240px; padding: 0 32px; margin: auto; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; text-align: left; }
.brand img { width: 42px; height: 42px; }
.brand b { font-family: Georgia, serif; font-size: 1.32rem; display: block; line-height: 1.05; }
.brand span { display: block; color: var(--muted); font-size: .74rem; margin-top: 3px; letter-spacing: .12em; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav button { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; border-radius: 12px; color: var(--muted); padding: 10px 13px; font-size: .88rem; white-space: nowrap; }
.nav button[aria-current="page"] { background: var(--mist); color: var(--green); font-weight: 700; }
.nav .icon { width: 18px; height: 18px; }
.bottom { display: none; }
.wrap { max-width: 1240px; margin: auto; padding: 28px 32px 55px; }
.hero { display: grid; grid-template-columns: .88fr 1.12fr; min-height: 520px; border-radius: 27px; overflow: hidden; background: #1d3b32; color: #faf5e9; }
.hero-copy { padding: clamp(26px,5.1vw,72px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #836231; letter-spacing: .15em; font-size: .8rem; font-weight: 700; margin-bottom: 14px; }
.eyebrow::before { content: ''; height: 1px; width: 24px; background: currentColor; }
.hero .eyebrow { color: #e0bb7d; }
.hero h1 { font-size: clamp(2.7rem, 5.5vw, 5.2rem); }
.hero-copy p { color: #e0e8da; line-height: 1.8; margin: 20px 0 26px; max-width: 26rem; }
.hero-art { position: relative; overflow: hidden; background: #575e47; min-height: 265px; margin: 0; }
.hero-art img { height: 100%; position: absolute; object-fit: cover; object-position: 56% center; }
.hero-art::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent,#182716c9); pointer-events: none; }
.hero-art figcaption { position: absolute; bottom: 23px; left: 24px; right: 24px; z-index: 1; color: #fffdf5; display: flex; justify-content: space-between; gap: 8px; align-items: flex-end; }
.hero-art figcaption small { color: #fffdf5; }
.section { margin-top: 34px; }
.section-top { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 15px; }
.section-top p,.lead p { color: var(--muted); line-height: 1.65; margin-top: 8px; }
.lead { padding: 25px 0 22px; }
.lead h1 { font-size: clamp(2.35rem,6vw,4.75rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.btn, .text-btn, .icon-btn { border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 44px; border-radius: 12px; padding: 9px 15px; font-weight: 650; font-size: .91rem; }
.btn { background: var(--green); color: #fffdf6; }
.btn:hover { background: #315e4f; }
.btn.light { background: #f5d9a7; color: #2b3428; }
.btn.outline,.icon-btn { background: var(--white); color: var(--green); border-color: var(--line); }
.hero .btn.outline { background: transparent; color: #fffdf6; border-color: #8fa399; }
.btn[disabled] { opacity: .55; cursor: wait; }
.text-btn { background: none; color: var(--green); padding-inline: 7px; }
.text-btn:hover { text-decoration: underline; }
.icon-btn { width: 44px; padding: 0; flex: 0 0 44px; }
.danger { color: #a43b2b; }
.grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.card,.panel { background: var(--white); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.card { position: relative; min-width: 0; }
.card .card-body { padding: 13px 14px 16px; display: grid; gap: 5px; }
.card h3 { font-family: var(--serif); font-size: 1.23rem; }
.card-hit { display: block; width: 100%; border: 0; padding: 0; text-align: left; background: transparent; }
.card-hit:hover h3 { color: #36664c; }
.art-picture { position: relative; display: block; isolation: isolate; aspect-ratio: 4/3; background: #dee5d9; overflow: hidden; }
.art-picture img { position: absolute; inset: 0; object-fit: cover; height: 100%; }
.art-picture .fallback { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; color: #5c7467; }
.art-picture .fallback .icon { width: 40px; height: 40px; opacity: .55; }
/* 说明文字只在确实没有图片时出现，图片还在加载时不提前显示。 */
.art-picture .fallback span { display: none; position: absolute; left: 12px; bottom: 10px; font-size: .73rem; }
.images-ready .art-picture:has(img[hidden]) .fallback span { display: block; }
.art-picture[data-tone="1"] { background: #efe2ce; }
.art-picture[data-tone="2"] { background: #e1e5e9; }
.art-picture[data-tone="3"] { background: #e6ddd8; }
.panel { padding: clamp(15px,3vw,26px); }
.tools { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 17px; }
.field { display: grid; width: 100%; gap: 7px; font-weight: 650; color: var(--green); }
.field input,.field textarea,.field select,.control { border: 1px solid #d5dbcf; color: var(--ink); background: var(--white); border-radius: 10px; padding: 11px 12px; min-height: 44px; min-width: 0; }
.field textarea { min-height: 116px; resize: vertical; }
.tools .control[type=search] { flex: 1 1 240px; }
.tools select { flex: 1 1 155px; max-width: 235px; }
.pills { display: flex; gap: 6px; overflow-x: auto; padding: 2px; margin-bottom: 15px; scrollbar-width: thin; }
.pills button,.pill { padding: 7px 13px; border: 1px solid var(--line); background: var(--white); color: var(--muted); border-radius: 99px; white-space: nowrap; font-size: .88rem; }
.pills button { min-height: 42px; }
.pills button[aria-pressed=true] { background: var(--green); color: white; border-color: var(--green); }
.album-cover-empty { display: grid; place-items: center; aspect-ratio: 4/3; background: #dee5d9; color: var(--green); }
.album-cover-empty .icon { width: 36px; height: 36px; opacity: .65; }
.album-grid .card-body h3, .album-caption, .album-choice > span { overflow-wrap: anywhere; }
.album-caption { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.album-choices { min-width: 0; display: grid; gap: 6px; margin: 0; padding: 8px; max-height: 43vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.album-choices legend { padding-inline: 5px; font-weight: 600; }
.album-choice { display: flex; align-items: center; gap: 10px; padding: 6px 8px; min-height: 44px; border-radius: 8px; cursor: pointer; }
.album-choice:has(input:checked) { background: #e6eee4; }
.album-choice input { width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--green); }
.album-choice .art-picture { width: 48px; height: 42px; flex: 0 0 48px; border-radius: 6px; }
.album-choice small { display: block; color: var(--muted); }
.album-entry-control { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.album-entry-control small { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .gallery-pills { gap: 4px; }
  .gallery-pills button { padding-inline: 8px; font-size: .8rem; }
}
.empty { padding: 35px 18px; text-align: center; border: 1px dashed #c9d1c6; border-radius: 16px; color: var(--muted); line-height: 1.65; }
.empty strong { display: block; color: var(--ink); margin-bottom: 5px; }
.empty .btn { margin-top: 12px; }
.detail { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start; }
.detail .art-picture { border-radius: 16px; aspect-ratio: 1; margin-bottom: 12px; }
.detail .art-picture img { object-fit: contain; }
.detail h1 { font-size: clamp(2rem,5.8vw,3.9rem); }
.detail .metadata { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 16px 0; background: var(--mist); border-radius: 12px; padding: 14px; }
.metadata span { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 4px; }
.detail h3 { margin: 16px 0 6px; }
.detail p { line-height: 1.7; }
.map-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; }
.calendar { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; text-align: center; align-items: center; }
.calendar button { display: grid; justify-items: center; align-content: center; gap: 3px; border: 0; background: none; border-radius: 9px; min-height: 41px; padding: 2px; min-width: 0; }
.calendar button.has { background: var(--mist); font-weight: 700; }
.calendar button[aria-pressed=true] { background: var(--green); color: white; }
.calendar i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 6px; }
.chat { max-width: 760px; }
.chatlog { display: grid; gap: 8px; margin: 14px 0; }
.msg { border-radius: 13px; padding: 10px 13px; background: var(--mist); max-width: 91%; width: fit-content; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.msg.user { justify-self: end; background: var(--green); color: white; }
.chat form { display: flex; gap: 8px; margin-top: 13px; }
.chat input { flex: 1; min-width: 0; }
dialog { color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px; width: min(540px,calc(100% - 24px)); max-height: 88dvh; }
dialog::backdrop { background: #192b23a6; backdrop-filter: blur(3px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 6px; }
.dialog-form { display: grid; gap: 13px; }
.registration-total { display: grid; gap: 2px; color: var(--green); }
.registration-total strong { font-size: 2.6rem; line-height: 1.1; }
.registration-table { overflow: auto; max-height: 45vh; }
.registration-table table { width: 100%; border-collapse: collapse; text-align: left; }
.registration-table :is(th,td) { padding: 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.dialog-form p { color: var(--muted); line-height: 1.6; }
dialog video { max-height: 53dvh; border-radius: 12px; background: #202923; }
#toast { position: fixed; z-index: 9; bottom: max(22px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 26px); background: #1d3b32; color: white; padding: 11px 15px; border-radius: 12px; box-shadow: 0 8px 20px #20292235; }
.footer { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 32px; color: var(--muted); font-size: .84rem; }

/* 社区：小红书式的笔记卡片。封面、两行标题和底栏都是固定高度，整排对齐。 */
.note-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.note { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.note-hit { display: block; width: 100%; border: 0; padding: 0; background: none; text-align: left; }
.note-cover { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: #dee5d9; }
.note-cover .art-picture { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.note-cover .art-picture img { object-position: var(--focus, center); }
.note-cover video { position: absolute; inset: 0; height: 100%; object-fit: cover; background: #202923; }
.note-play { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1c2a236b; color: #fff; }
.note-play .icon { width: 14px; height: 14px; fill: currentColor; }
.note-text { position: absolute; inset: 0; padding: 18px 15px; overflow: hidden; font-family: var(--serif); font-size: 1.02rem; line-height: 1.65; color: var(--green); white-space: pre-wrap; overflow-wrap: anywhere; background: #e8ede4; }
.note-text[data-tone="1"] { background: #efe2ce; }
.note-text[data-tone="2"] { background: #e1e5e9; }
.note-text[data-tone="3"] { background: #e6ddd8; }
.note-text[data-tone="4"] { background: #f1e9d2; }
.note-text::after { content: ''; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent, #ffffff8f); }
.note-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; height: 2.8em; margin: 9px 11px 0; font-size: .92rem; font-weight: 650; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.note-hit:hover .note-title { color: #36664c; }
.note-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 5px 7px 11px; }
.note-author { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: .78rem; }
.note-author > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { position: relative; flex: 0 0 22px; display: grid; place-items: center; width: 22px; height: 22px; overflow: hidden; border-radius: 50%; background: #56776a; color: #fffdf6; font-size: .68rem; font-weight: 700; }
.avatar[data-tone="1"] { background: #b0844a; }
.avatar[data-tone="2"] { background: #6c7f9c; }
.avatar[data-tone="3"] { background: #a0655a; }
.avatar[data-tone="4"] { background: #7b6a9a; }
.avatar img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.note-like { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 6px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.note-like .icon { width: 17px; height: 17px; }
.note-like[aria-pressed=true] { color: #cf4034; }
.note-like[aria-pressed=true] .icon { fill: currentColor; }
.note-detail { display: grid; gap: 13px; }
.note-detail .art-picture { border-radius: 13px; }
.note-detail .art-picture img { object-fit: contain; }
.note-detail .note-foot { padding: 0; }
.note-detail .note-author { gap: 10px; font-size: .8rem; }
.note-detail .note-author b { display: block; color: var(--ink); font-size: .93rem; }
.note-detail .avatar { flex-basis: 38px; width: 38px; height: 38px; font-size: 1rem; }
.note-detail .note-like { min-height: 40px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; font-size: .9rem; }
.note-body { line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }

@media(max-width: 1100px) {
  .note-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media(max-width: 880px) {
  .bar-inner,.wrap { padding-inline: 19px; }
  .hero { min-height: 410px; }
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .note-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
}
@media(max-width: 760px) {
  .bar-inner { height: 60px; padding-inline: 14px; }
  .bar-inner .nav { display: none; }
  .brand img { width: 38px; height: 38px; }
  .wrap { padding: 14px 13px calc(81px + env(safe-area-inset-bottom)); }
  .bottom { position: fixed; z-index: 5; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); background: #f7f6eff8; border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .bottom button { flex-direction: column; justify-content: center; gap: 4px; padding: 5px 3px; min-height: 48px; font-size: .74rem; }
  .bottom .icon { width: 20px; height: 20px; }
  .hero { grid-template-columns: 1fr; border-radius: 19px; }
  .hero-copy { grid-row: 2; padding: 24px 20px 26px; }
  .hero h1 { font-size: clamp(2.4rem,10vw,3.6rem); }
  .hero-art { min-height: 220px; }
  .hero-art figcaption { left: 15px; bottom: 13px; right: 15px; }
  .hero-copy p { margin: 13px 0 16px; }
  .section { margin-top: 24px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .card .card-body { padding: 10px 10px 12px; }
  .card h3 { font-size: 1.03rem; }
  .lead { padding: 16px 0; }
  .detail,.map-layout { grid-template-columns: 1fr; gap: 12px; }
  .detail .art-picture { aspect-ratio: 4/3; }
  .detail .metadata { margin: 12px 0; }
  .tools select { max-width: none; }
  #toast { bottom: calc(70px + env(safe-area-inset-bottom)); }
}
@media(max-width: 600px) {
  .note-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .note { border-radius: 12px; }
  .note-title { margin: 8px 9px 0; font-size: .88rem; }
  .note-foot { padding-left: 9px; }
}

.map-layout .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.empty .icon { margin-bottom: 5px; color: var(--green); }

.dialog-feedback { margin-top: 12px; padding: 10px 12px; background: var(--mist); border-radius: 10px; color: var(--green); }

.bar-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.language-switch { min-width: 44px; min-height: 40px; padding: 4px 9px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; background: #fffdf7; color: inherit; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.language-switch:hover, .language-switch:focus-visible { border-color: currentColor; }
html[lang="en"] .bar-inner { gap: clamp(8px, 1.2vw, 20px); }
html[lang="en"] .bar .brand > span > span { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1080px) {
  html[lang="en"] .bar .nav { gap: 2px; }
  html[lang="en"] .bar .nav button { flex-direction: column; gap: 3px; padding: 6px; font-size: .78rem; }
  html[lang="en"] .catalog-link { width: 44px; padding-inline: 0; }
  html[lang="en"] .catalog-link span { display: none; }
}
.calendar-months { margin: 14px 0 0; }
@media(max-width: 720px) {
  .catalog-link span { display: none; }
  .catalog-link { width: 44px; padding: 0; }
}

/* 地图相册 */
.footprint-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(285px, 1fr);
  gap: 16px;
  align-items: start;
}
.footprint-layout.single { grid-template-columns: minmax(0, 1fr); }
.footprint-layout.single .empty { margin-top: 12px; }
.footprint-main, .footprint-sidebar { min-width: 0; }
.footprint-sidebar { display: grid; gap: 12px; }
.footprint-frame {
  position: relative;
  isolation: isolate;
  height: clamp(435px, 55vw, 610px);
  overflow: hidden;
  border-radius: 19px;
  border: 1px solid #dedaca;
  background: #7ea5c2;
}
.footprint-viewport { position: absolute; inset: 0; z-index: 0; }
.footprint-toolbar { position: absolute; z-index: 2; inset: 13px 13px auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; pointer-events: none; }
.footprint-toolbar > * { border-radius: 12px; box-shadow: 0 3px 15px #26383018; }
.footprint-toolbar > span { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; background: #24483e; color: #fffdf6; font-weight: 650; }
.footprint-toolbar > span .icon { color: #f5d9a7; }
.footprint-toolbar .btn { pointer-events: auto; background: #fffefa; }
.footprint-toolbar .icon { width: 17px; height: 17px; }
.map-actions { display: flex; gap: 5px; pointer-events: auto; box-shadow: none; }
/* 街道详图只在放大到城市后才有内容，按钮也到那时再出现。 */
.map-actions .map-open-amap { text-decoration: none; white-space: nowrap; }
.map-zoom { position: absolute; z-index: 2; right: 13px; bottom: 15px; display: grid; gap: 3px; }
.map-credit { position: absolute; z-index: 2; bottom: 9px; left: 11px; padding: 3px 6px; border-radius: 5px; background: #fffdf0d9; font-size: .7rem; color: var(--green); }
.map-hint { display: none; position: absolute; z-index: 2; left: 50%; bottom: 12px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 150px); padding: 5px 10px; border-radius: 99px; background: #fffdf0e6; color: var(--green); font-size: .74rem; text-align: center; pointer-events: none; }
.is-close:not(.has-streets) .map-hint { display: block; }
.footprint-message { position: absolute; z-index: 2; left: 11px; bottom: 58px; max-width: calc(100% - 75px); padding: 7px 10px; border-radius: 12px; background: #fffefa; color: var(--green); font-size: .8rem; pointer-events: none; }

.footprint-map.leaflet-container { background: #7ea5c2; font: inherit; outline-offset: -3px; }
.footprint-map .terrain-tiles { filter: saturate(.72) brightness(.9); }
.schematic-tile { box-shadow: inset 0 0 0 .5px #fffdf033; }
/* Leaflet 会把图钉里的图片宽度改成 auto，这里改回铺满缩略图。 */
.footprint-map .footprint-pin .art-picture img { width: 100%; }
.footprint-map .leaflet-control-scale { margin: 0 0 33px 11px; }
.footprint-map .leaflet-control-scale-line { border-color: #23483d; background: #fffdf0b8; color: var(--green); font-size: .66rem; line-height: 1.2; padding: 1px 5px; }
.footprint-marker, .lit-glow, .landmark { width: 0 !important; height: 0 !important; }
.footprint-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0;
  padding: 0 0 13px;
  background: none;
  cursor: pointer;
  color: var(--green);
}
.footprint-marker .footprint-pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); pointer-events: auto; font-size: 1rem; }
.footprint-pin[data-group] .pin-label { background: #f5d9a7; color: #3d2f12; }
.footprint-pin .art-picture {
  width: 57px;
  height: 54px;
  aspect-ratio: auto;
  border-radius: 9px;
  border: 2px solid #fffefa;
  box-shadow: 0 3px 10px #1d332f4d;
}
.footprint-pin[aria-pressed=true] .art-picture { width: 68px; height: 63px; }
.footprint-pin .fallback span, .place-card .fallback span { display: none !important; }
.pin-label { margin-top: -2px; z-index: 1; background: #fffefa; color: var(--green); box-shadow: 0 2px 9px #243a2b29; border-radius: 20px; padding: 5px 9px; white-space: nowrap; font-size: .77rem; font-weight: 700; line-height: 1.25; }
.pin-label b { color: #806032; margin-left: 3px; }
.footprint-pin[aria-pressed=true] .pin-label { background: var(--green); color: #fffefa; }
.pin-point { position: absolute; bottom: 2px; width: 15px; height: 15px; transform: rotate(-45deg); border-radius: 50% 50% 50% 0; border: 2px solid #fffefa; background: #c79b58; box-shadow: 0 2px 5px #22352c55; }
.footprint-pin[aria-pressed=true] .pin-point { background: #96703b; }

/* 点亮：去过的地方亮起暖色的灯，没去过的是一个小圆点。 */
.lit-glow::before, .lit-glow::after { content: ''; position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.lit-glow::before { width: 170px; height: 170px; background: radial-gradient(circle, #fff3c4f2 0, #ffdd8ec4 16%, #ffc75e7a 38%, #ffb94a2e 58%, #ffb94a00 72%); animation: lit-breathe 3.6s ease-in-out infinite; }
.lit-glow::after { width: 13px; height: 13px; background: #fff8dc; box-shadow: 0 0 10px 4px #ffe19ad9; }
.lit-glow.fresh::before { animation: lit-burst 1.5s cubic-bezier(.2,.8,.3,1) 1, lit-breathe 3.6s ease-in-out 1.5s infinite; }
@keyframes lit-breathe {
  0%, 100% { opacity: .78; transform: translate(-50%, -50%) scale(.92); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}
@keyframes lit-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.1); }
  45% { opacity: 1; transform: translate(-50%, -50%) scale(2.4); }
  100% { opacity: .78; transform: translate(-50%, -50%) scale(.92); }
}
.unlit-dot { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; transform: translate(-50%, -50%); border: 0; padding: 0; background: none; pointer-events: auto; }
.unlit-dot i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fffdf3; background: #5b7468; box-shadow: 0 1px 4px #1d332f66; transition: transform .15s; }
.unlit-dot:hover i, .unlit-dot:focus-visible i { transform: scale(1.35); }
.unlit-dot span { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); padding: 3px 8px; border-radius: 10px; background: #fffdf3e0; color: #33493f; font-size: .72rem; font-weight: 650; white-space: nowrap; }
.landmark span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--serif); font-size: .98rem; letter-spacing: .32em; color: #24483ec4; text-shadow: 0 0 5px #fffdf0, 0 0 2px #fffdf0; opacity: 0; transition: opacity .25s; }
.landmark.sea span { font-size: .84rem; font-style: italic; letter-spacing: .5em; color: #f4f8f9d9; text-shadow: 0 1px 3px #2b506eb3; }
.show-landmarks .landmark span { opacity: 1; }

.lit-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.lit-stat { position: relative; overflow: hidden; display: grid; gap: 1px; padding: 10px 12px 14px; border-radius: 13px; background: #1d3b32; color: #b9c8bd; }
.lit-number { font-size: .86rem; font-variant-numeric: tabular-nums; }
.lit-number b { margin-right: 2px; font-family: var(--serif); font-size: 1.65rem; color: #f5d9a7; }
.lit-stat small { color: #d5ded2; font-size: .74rem; white-space: nowrap; }
.lit-stat i { position: absolute; left: 0; bottom: 0; width: var(--progress); min-width: 5px; height: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(90deg, #c79b58, #f5d9a7); }
.lit-badges { margin-top: 12px; padding: 15px 13px 13px; border: 1px solid var(--line); border-radius: 16px; background: #fbf9f3; }
.lit-badges-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 4px 11px; }
.lit-badges h2 { font-size: 1.15rem; color: var(--green); }
.lit-badges-top .btn { min-height: 38px; padding: 6px 12px; font-size: .83rem; }
.badge-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 7px; }
.badge { display: grid; justify-items: center; align-content: start; gap: 5px; padding: 12px 7px 10px; border: 1px solid #e6e1d5; border-radius: 12px; background: #fffefa; text-align: center; }
.badge-medal, .unlit-mark { display: grid; place-items: center; border-radius: 50%; background: #e9ece4; color: #8d998f; }
.badge-medal { width: 42px; height: 42px; }
.badge-medal .icon { width: 20px; height: 20px; }
.badge[data-done=true] .badge-medal, .unlit-row[data-lit=true] .unlit-mark, .celebration-mark { background: radial-gradient(circle at 35% 30%, #fff3cf, #e8be6d 68%, #c79b58); color: #5a3d10; box-shadow: 0 0 0 3px #f5d9a770, 0 3px 10px #c79b5866; }
.badge strong { font-size: .86rem; color: var(--green); }
.badge small { font-size: .7rem; line-height: 1.4; }
.badge[data-done=false] strong { color: var(--muted); }
.unlit-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.unlit-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.unlit-row > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.unlit-row strong { font-size: .92rem; }
.unlit-mark { flex: 0 0 34px; width: 34px; height: 34px; }
.unlit-mark .icon { width: 17px; height: 17px; }
.unlit-row .btn { min-height: 38px; padding: 6px 11px; font-size: .83rem; white-space: nowrap; }
.dialog-form h3 { margin-top: 3px; color: var(--green); font-size: 1rem; }
#celebration { position: fixed; z-index: 10; top: calc(84px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 26px); animation: celebrate-in .5s cubic-bezier(.2,.9,.3,1.25); }
#celebration button { display: flex; align-items: center; gap: 12px; padding: 11px 17px 11px 12px; border: 1px solid #e3c88f; border-radius: 17px; background: linear-gradient(135deg, #24483d, #1a332b); color: #fff8e6; text-align: left; box-shadow: 0 10px 28px #1d332f5c, 0 0 0 4px #f5d9a73d; }
#celebration strong { display: block; font-size: .98rem; }
#celebration small { color: #e8dcbd; line-height: 1.5; }
.celebration-mark { flex: 0 0 38px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; animation: celebrate-spin 1.4s ease-out; }
@keyframes celebrate-in {
  from { opacity: 0; transform: translate(-50%, -18px) scale(.94); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes celebrate-spin {
  from { transform: rotate(-120deg) scale(.5); }
  to { transform: rotate(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lit-glow::before, .lit-glow.fresh::before, #celebration, .celebration-mark { animation: none; }
}

.footprint-stops { margin-top: 14px; padding: 15px 13px 13px; border: 1px solid var(--line); background: #fbf9f3; border-radius: 16px; }
.footprint-stops h2 { font-size: 1.15rem; margin: 0 4px 9px; color: var(--green); }
.footprint-stops h2:not(:first-child) { margin-top: 12px; }
.place-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(165px, 1fr); overflow-x: auto; gap: 7px; padding: 3px 4px 6px; scrollbar-width: thin; }
.place-card { text-align: left; display: flex; gap: 9px; align-items: center; padding: 6px; min-height: 61px; border: 1px solid #e6e1d5; background: #fffefa; color: var(--green); border-radius: 11px; }
.place-card[aria-pressed=true] { border-color: #93a799; background: #ecf0e8; }
.place-card .art-picture { width: 42px; height: 44px; flex: 0 0 42px; border-radius: 7px; }
.place-card-copy { display: grid; gap: 3px; min-width: 0; }
.place-card-copy strong { font-size: .87rem; }
.place-card-copy small { font-size: .74rem; }
.unplaced { padding: 3px 4px 0; }
.footprint-calendar, .footprint-visit { padding: 15px; }
.footprint-calendar .calendar-header h2 { font-size: 1.55rem; }
.calendar-year { font-family: inherit; color: var(--muted); font-size: .82em; }
.footprint-calendar .calendar button { min-height: 34px; }
.footprint-visit p { color: var(--muted); margin: 8px 0 12px; }
.visit-heading { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.visit-heading h2 { font-size: 1.5rem; }
.visit-heading .eyebrow { margin-bottom: 5px; }
.visit-heading a { white-space: nowrap; padding: 6px; }
.footprint-visit .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.footprint-visit .card .card-body { padding: 9px; }
.footprint-visit .card h3 { font-size: 1rem; }
@media (max-width: 760px) {
  .footprint-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .footprint-frame { height: clamp(400px, 72dvh, 520px); border-radius: 16px; }
  .footprint-stops { margin-top: 9px; }
  .footprint-toolbar { inset: 9px 9px auto; }
  .place-list { grid-auto-columns: minmax(165px, 46%); }
  .lit-summary { gap: 6px; }
  .lit-stat { padding: 8px 9px 12px; }
  .lit-number b { font-size: 1.4rem; }
  .lit-stat small { font-size: .7rem; }
  .lit-glow::before { width: 136px; height: 136px; }
  #celebration { top: calc(70px + env(safe-area-inset-top)); }
}
@media(max-width: 470px) {
  .footprint-toolbar > span, .footprint-toolbar .btn { padding-inline: 8px; font-size: .79rem; }
  .footprint-toolbar .btn .icon { display: none; }
  .map-zoom { right: 9px; bottom: 10px; }
  .map-hint { max-width: calc(100% - 130px); bottom: 34px; }
  .badge-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gift-hero { background: #1e4338; color: #f8f2e3; border-radius: 24px; padding: clamp(20px,5vw,64px); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.gift-hero .eyebrow { color: #ebbd77; }
.gift-hero p { margin-top: 16px; }
.gift-hero img { width: clamp(74px,17vw,182px); }
.gift-tabs { margin: 20px 0 16px; }
.gift-filters { margin-bottom: 13px; }
.gift-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.gift-card { display: flex; flex-direction: column; border-radius: 17px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.gift-image { position: relative; background: #e6e8de; aspect-ratio: 3/4; overflow: hidden; }
.gift-image .art-picture { border-radius: 0; aspect-ratio: 3/4; }
.gift-copy { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.gift-copy h2 { font-size: clamp(1rem,2.2vw,1.4rem); }
.gift-copy p { color: var(--muted); font-size: .84rem; line-height: 1.55; flex: 1; }
.gift-copy .btn,.visit-ticket.btn { text-decoration: none; }
.curation-picker { display: grid; gap: 8px; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
@media(max-width:760px) {
  .bottom { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .gift-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .gift-copy { padding: 10px; }
  .gift-copy .btn { padding-inline: 9px; min-height: 40px; }
}

.amap-viewport { z-index: 1; visibility: hidden; }
.amap-viewport.is-ready { visibility: visible; }
.has-amap .map-credit,.has-amap .map-hint { display: none; }
.amap-viewport .footprint-pin { cursor: pointer; }

.museum-visit { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; margin: 12px 0; padding: 12px; }
.museum-visit small { display: block; margin-top: 3px; }
.unlit-row .actions { justify-content: flex-end; }
.amap-viewport .unlit-dot { cursor: pointer; }

.reflection-form { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; display: grid; gap: 10px; }
.reflection-form .btn { justify-self: start; }
.reflection-form textarea { resize: vertical; }
.card-reflection { color: var(--muted); font-size: .83rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.card-body .card-reflection { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.art-illustration-label { position: absolute; left: 8px; bottom: 8px; padding: 3px 7px; border-radius: 5px; background: #24382f; color: white; z-index: 1; }

.gift-product-photo { width: 100%; height: 100%; object-fit: cover; }
.note-image-count { position: absolute; right: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; color: #fff; background: #25372ee6; }
.note-carousel { min-width: 0; }
.note-gallery.multiple { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 13px; }
.note-gallery.multiple::-webkit-scrollbar { display: none; }
.note-gallery.multiple .art-picture { aspect-ratio: 4/5; scroll-snap-align: start; scroll-snap-stop: always; border-radius: 0; background: #edeae4; }
.note-gallery.multiple .art-picture img { object-fit: contain; }
.note-picture-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.note-picture-nav .icon-btn[aria-disabled="true"] { opacity: .4; }
.street-provider-link { margin: 6px 0 14px; font-size: .84rem; }
.footprint-map.country-map { background: #e5edf2; }
.country-map-legend { position: absolute; z-index: 2; left: 12px; bottom: 29px; display: flex; gap: 10px; padding: 5px 9px; border-radius: 8px; background: #fffdf3ee; color: #344b41; font-size: .72rem; pointer-events: none; }
.country-map-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 2px; background: #c9cdd0; }
.country-map-legend span + span i { background: #86c398; }
.has-amap .country-map-legend { display: none; }
.country-fresh { animation: country-light 2s ease-out 2; }
dialog[data-layout="note"] { inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; padding: 0; overflow-y: auto; overscroll-behavior-y: contain; }
dialog[data-layout="note"] .dialog-top { position: sticky; top: 0; z-index: 3; margin: 0; padding: max(12px,env(safe-area-inset-top)) 16px 12px; background: var(--white); border-bottom: 1px solid var(--line); }
dialog[data-layout="note"] .note-detail { width: min(100%,860px); margin-inline: auto; padding: 0 0 max(20px,env(safe-area-inset-bottom)); }
dialog[data-layout="note"] .note-detail > :is(.note-foot,.note-body,.actions) { margin-inline: 16px; }
dialog[data-layout="note"] .note-detail .art-picture { border-radius: 0; max-height: 72dvh; }
.scan-status { display: flex; align-items: center; gap: 10px; line-height: 1.65; }
.scan-spinner { width: 18px; height: 18px; flex-shrink: 0; border: 2px solid #dce8dc; border-top-color: #336449; border-radius: 50%; animation: scan-spin .8s linear infinite; }
@keyframes scan-spin { to { transform: rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .scan-spinner { animation: none; } }
.answer-source { display: block; color: var(--muted); font-size: .73rem; margin-bottom: 5px; }
@keyframes country-light { 0% { fill: #e9c263; stroke: #d29c39; } 65% { fill: #a4d4a8; } }
@media(prefers-reduced-motion:reduce) { .country-fresh { animation: none; } }

.profile-avatar { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border: 1px solid #adc8b5; border-radius: 50%; background: #e1eee1; color: #244737; font: inherit; font-weight: 700; }
button.profile-avatar { cursor: pointer; }
.auth-loading { display: grid; min-height: 100vh; place-items: center; color: var(--muted); }
.auth-layout { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(290px,.88fr); max-width: 1100px; margin: auto; align-items: stretch; padding: clamp(16px,4vw,42px); }
.auth-cover { display: grid; align-content: center; gap: 20px; border-radius: 24px 0 0 24px; padding: clamp(22px,5vw,54px); background: #1e4234; color: #f6efdf; }
.auth-cover .eyebrow { color: #e7c584; }
.auth-cover h1 { font-size: clamp(2.1rem,4.5vw,4rem); line-height: 1.15; }
.auth-cover img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }
.auth-panel { display: grid; align-content: center; gap: 15px; padding: clamp(24px,5vw,54px); border-radius: 0 24px 24px 0; border: 1px solid var(--line); background: #fffdf7; }
.auth-panel > .btn, .auth-panel form .btn { width: 100%; }
.auth-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-settings { display: grid; gap: 18px; }
.settings-identity { display: flex; align-items: center; gap: 11px; }
.settings-identity small { display: block; color: var(--muted); margin-top: 3px; }
@media(max-width:640px) {
  .auth-layout { display: block; min-height: auto; padding: 15px; }
  .auth-cover { border-radius: 18px 18px 0 0; gap: 10px; padding: 20px; }
  .auth-cover h1 { font-size: 1.8rem; }
  .auth-cover img { max-height: 140px; }
  .auth-panel { border-radius: 0 0 18px 18px; padding: 20px; }
  .profile-avatar { width: 36px; height: 36px; }
}
.digital-gifts .gift-copy h2 { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.physical-gifts .gift-copy h2 { font-family: inherit; font-size: .98rem; line-height: 1.35; }
.product-metadata { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.product-metadata strong { color: #b64729; font-size: .94rem; }
.product-metadata small,.gift-store-note { color: var(--muted); }
.gift-store-note { font-size: .8rem; margin-top: 14px; }
.physical-gifts .actions .btn:first-child { color: white; background: #ac3e22; border-color: #ac3e22; }
