:root {
  color-scheme: light;
  --ink: #192820;
  --muted: #58665d;
  --paper: #f7f8f3;
  --white: #fff;
  --line: #e0e5db;
  --accent: #fba848;
  --green: #234d3c;
  --radius: 19px;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
main { min-height: 59vh; }
main:focus { outline: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.21; letter-spacing: -.035em; }
svg { flex: none; vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #9e4d05; outline-offset: 4px; }
.shell { width: min(1216px, calc(100% - 72px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 3; top: 8px; left: 8px; padding: 8px 14px; background: white; }
.site-header { background: #fffefb; border-bottom: 1px solid #e7ebe2; }
.header-row { min-height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; line-height: 1; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: #192820; }
.brand b { display: block; font-size: 23px; font-weight: 900; letter-spacing: .01em; }
.brand small { display: block; margin-top: 6px; color: #57615b; font-size: 10px; font-weight: 750; letter-spacing: .105em; }
.brand-period { color: #ca611a; }
.navigation { display: flex; gap: 30px; align-items: stretch; align-self: stretch; }
.navigation a { position: relative; display: flex; align-items: center; font-weight: 650; font-size: 15px; white-space: nowrap; color: #536158; }
.navigation a:hover, .navigation a[aria-current] { color: var(--green); }
.navigation a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; bottom: 0; background: #ed9039; border-radius: 3px 3px 0 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 8px 15px; border: 1px solid transparent; border-radius: 10px; font-weight: 750; font-size: 14px; white-space: nowrap; transition: background .16s, color .16s, border-color .16s, transform .16s; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent); color: #1d251a; border-color: #f3a044; }
.button.primary:hover { background: #ffc371; }
.button.outline { border-color: #dbe2d8; color: var(--green); background: #fffefb; }
.button.outline:hover, .button.outline[aria-current] { background: #e8f0e5; border-color: #bad0bd; }
.log-button { justify-self: end; }
.home { padding-top: 26px; padding-bottom: 45px; }
.hero { isolation: isolate; position: relative; overflow: hidden; display: grid; align-items: center; min-height: clamp(390px, 34vw, 442px); border-radius: 24px; background: #225849 url('assets/city.jpg') center center / cover no-repeat; color: #fffdf6; box-shadow: 0 14px 36px #24392d17; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #102d25f3 2%, #10291fdd 17%, #142d2394 29%, #1a37292b 44%, transparent 65%); }
.hero-copy { position: relative; z-index: 1; width: fit-content; padding: 38px 0 44px clamp(27px, 4vw, 57px); pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero-kicker { display: flex; align-items: center; gap: 7px; color: #fce5c1; font-size: 14px; font-weight: 750; letter-spacing: .08em; }
.hero-kicker > span { width: 7px; height: 7px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.hero-kicker b { font-size: 12px; background: #ffd98a24; border: 1px solid #f7d9a56b; color: #ffdea8; border-radius: 6px; padding: 0 6px; }
.hero h1 { margin-top: 15px; font-size: clamp(47px, 5.5vw, 80px); font-weight: 900; line-height: .99; letter-spacing: -.09em; }
.hero h1 span { color: #ffc66f; }
.hero h1 .hero-stop { color: #fff9ea; }
.hero-copy p { margin-top: 20px; font-size: 17px; font-weight: 550; color: #fff8e8; }
.hero-copy p.hero-filing { margin-top: 12px; font-size: 13px; max-width: 350px; overflow-wrap: anywhere; }
.mobile-break { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.button.glass { background: #142a22a3; border-color: #fffbef88; color: #fffaf0; }
.button.glass:hover { background: #214e3d; }
.city-stage { position: absolute; inset: 0; }
.scene-label { position: absolute; top: 18px; right: 18px; display: flex; align-items: center; gap: 6px; padding: 7px 11px; background: #15382ce8; border: 1px solid #fffdf465; border-radius: 8px; color: #fffaf0; font-size: 13px; font-weight: 700; }
.scene-caption { position: absolute; right: 18px; bottom: 17px; padding: 4px 9px; border-radius: 6px; background: #13382de8; color: #fffaf0; font-size: 12px; }
.hotspot { --pin-color: #f9ba66; position: absolute; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; background: #fffaf2; color: #21352a; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 16px #18231857; transform: translate(-50%, -100%); border: 1px solid #fff; transition: background .15s; }
.hotspot:hover { background: var(--pin-color); }
.hotspot svg { color: #324335; }
.hotspot::before { content: ""; position: absolute; top: 100%; left: 50%; height: 10px; width: 2px; background: #fffaf2; }
.hotspot::after { content: ""; position: absolute; left: calc(50% - 5px); top: calc(100% + 8px); width: 10px; height: 10px; border: 2px solid white; background: var(--pin-color); border-radius: 50%; box-shadow: 0 0 0 4px #192c2465; }
.hotspot-park { left: 34%; top: 43%; }
.hotspot-mail { --pin-color: #ffa58e; left: 52%; top: 54%; }
.hotspot-ferry { --pin-color: #a0e5df; left: 84%; top: 43%; }
.hotspot-xidi { --pin-color: #c8e29b; left: 66%; top: 33%; }
.section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin-bottom: 17px; }
.section-kicker { display: block; color: #346653; font-size: 14px; font-weight: 800; letter-spacing: .09em; margin-bottom: 5px; }
.section-title h2, .page h1 { font-weight: 900; font-size: clamp(31px, 3.4vw, 46px); }
.themes { margin-top: 32px; }
.theme-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.theme-card { --tile: #f6dec7; --tile-ink: #883e24; display: block; overflow: hidden; background: #fffefb; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .18s, box-shadow .18s; }
.theme-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #23362617; }
.theme-photo { height: 139px; background-color: #dfe9db; background-size: cover; background-repeat: no-repeat; }
.art-landmark { background-image: url('assets/landmark.jpg'); background-position: center 43%; }
.art-photo { background-image: url('assets/photo.jpg'); background-position: center 50%; }
.art-pet { background-image: url('assets/pet.jpg'); background-position: center 73%; }
.art-date { background-image: url('assets/date.jpg'); background-position: center 59%; }
.theme-copy { display: flex; align-items: center; gap: 10px; min-height: 78px; padding: 11px 13px 12px; }
.theme-copy h3 { font-size: 19px; font-weight: 850; }
.theme-copy p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.tile-icon { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; color: var(--tile-ink,#305244); background: var(--tile,#e4efe4); }
.photo { --tile: #dceff6; --tile-ink: #27576b; }
.pet { --tile: #eae1f8; --tile-ink: #5d4484; }
.date { --tile: #f9e1e1; --tile-ink: #923a4b; }
.extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.extra { display: flex; align-items: flex-start; gap: 13px; min-height: 99px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #eff3e9; }
.extra h2 { font-size: 21px; font-weight: 850; margin: 2px 0 5px; }
.extra p { font-size: 14px; color: var(--muted); }
.extra a:hover, .breadcrumb a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.eggs-card { background: #f6eddf; --tile: #f6dec7; --tile-ink: #883e24; }
.site-footer { background: #eaf0e8; border-top: 1px solid var(--line); padding: 23px 0 14px; font-size: 14px; color: #355347; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-grid b { font-size: 20px; font-weight: 900; }
.footer-grid p { font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.filing { margin-top: 16px; text-align: center; display: flex; justify-content: center; flex-wrap: wrap; column-gap: 13px; row-gap: 4px; border-top: 1px solid #cfdbd0; padding-top: 12px; font-size: 13px; }
.filing a, .legal a, .source a { text-decoration: underline; text-underline-offset: 3px; }
.page { padding-block: 37px 56px; }
.page-title { margin-bottom: 23px; }
.page-title p, .muted { color: var(--muted); }
.page-title p { margin-top: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 5px 12px; border-radius: 30px; border: 1px solid var(--line); background: var(--white); color: var(--tile-ink,var(--ink)); font-size: 14px; font-weight: 700; }
.filter:hover { background: #e9efe5; }
.filter[aria-current] { background: var(--green); color: #fff; border-color: var(--green); }
.search-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 20px; }
.search-input { display: flex; align-items: center; flex: 1 1 250px; gap: 8px; background: white; border: 1px solid var(--line); border-radius: 10px; padding-left: 11px; }
.search-input input { display: block; width: 100%; background: none; border: 0; border-radius: 10px; }
input:not([type=checkbox]), select, textarea { min-height: 43px; border: 1px solid #cdd8ce; border-radius: 8px; padding: 6px 11px; background: white; color: var(--ink); }
.search-input input { border: 0; }
.select-wrap select { height: 100%; }
.notice { background: #fff0d7; color: #563508; border: 1px solid #eddbbc; padding: 10px 13px; border-radius: 9px; margin-bottom: 16px; }
.map-layout { display: grid; grid-template-columns: minmax(275px, 1fr) minmax(0, 1.85fr); gap: 20px; align-items: start; }
.result-list, .map-panel, .calendar-board, .calendar-events, .journal-box, .detail-card, .admin-form, .table-scroll { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.result-list { padding: 10px; }
.result-count { padding: 5px 9px 9px; font-size: 14px; }
.result { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border-radius: 9px; padding: 10px 8px; border: 1px solid transparent; }
.result + .result { margin-top: 3px; }
.result:hover, .result.selected { background: #edf4eb; border-color: #d9ead9; }
.result-title { font-weight: 800; font-size: 16px; }
.result-detail { color: #2f6552; padding: 7px 3px; font-size: 14px; font-weight: 700; }
.result a:hover { text-decoration: underline; }
.result p { font-size: 14px; color: var(--muted); }
.map-panel { overflow: hidden; scroll-margin-top: 15px; }
.map-heading { padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.map-heading h2 { font-size: 22px; }
.map-canvas { height: 395px; background-size: cover; background-color: #c7d7c5; }
.map-cover { display: grid; align-content: center; justify-items: center; gap: 12px; width: 100%; height: 100%; background: #18392dbc; color: #fff; padding: 20px; text-align: center; }
.map-canvas iframe { display: block; width: 100%; height: 100%; border: 0; background: #f1f4ee; }
.empty { padding: 11px; color: var(--muted); }
.breadcrumb { font-weight: 700; color: #316650; margin-bottom: 12px; }
.detail-card { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 360px; overflow: hidden; }
.detail-art { min-height: 245px; display: flex; align-items: flex-end; padding: 13px; background-size: cover; background-color: #d2e0c9; }
.detail-art span { border-radius: 5px; background: #1c352a; color: white; font-size: 12px; padding: 3px 8px; }
.detail-body { padding: clamp(20px, 4vw, 50px); }
.detail-date { display: flex; gap: 8px; margin-top: 11px; align-items: center; color: var(--muted); font-size: 15px; }
.body-copy { margin-block: 18px; white-space: pre-line; }
.action-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.live-status:not(:empty) { color: #2d654f; font-size: 14px; margin-top: 8px; }
.source { margin-top: 17px; font-size: 14px; color: #315e4b; }
.calendar-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.calendar-board, .calendar-events, .journal-box { padding: 19px; }
.month-head { display: grid; grid-template-columns: 1fr 1.7fr 1fr; align-items: center; text-align: center; gap: 4px; margin-bottom: 12px; }
.month-head h2 { grid-column: 2; font-size: clamp(16px, 3vw, 23px); }
.month-head a:first-child { grid-column: 1; justify-self: start; }
.month-head a:last-child { grid-column: 3; justify-self: end; }
.month-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; text-align: center; }
.month-grid span, .month-grid time { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 1px; padding: 5px 2px; min-height: 42px; }
.month-grid .weekday { min-height: auto; color: var(--muted); font-size: 13px; }
.month-grid time { border-radius: 7px; background: #f3f6f0; font-weight: 650; }
.month-grid .today { background: #cee4d0; }
.month-grid .outside { color: #627165; background: #fafbf9; }
.month-grid i { width: 6px; height: 6px; display: block; border-radius: 50%; background: #c96d27; }
.calendar-events h2, .journal-box h2 { font-size: 22px; }
.event-list-item { display: flex; gap: 10px; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line); }
.event-list-item p { font-size: 14px; color: var(--muted); }
.event-list-item h3 { margin-block: 4px; }
.event-list-item a:hover { text-decoration: underline; }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.journal-box h2 { display: flex; gap: 8px; align-items: center; }
.journal-box h2 svg { color: var(--green); }
.journal-box p { margin-top: 10px; }
.journal-box ul { list-style: none; padding: 0; margin: 0; }
.journal-box li { display: flex; flex-direction: column; padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--line); }
.journal-box small { color: var(--muted); }
.journal-box a { font-weight: 800; overflow-wrap: anywhere; }
.journal-box a:hover { text-decoration: underline; }
.legal { max-width: 754px; }
.legal h2 { margin-top: 25px; font-size: 23px; }
.legal p { margin-block: 9px; }
.legal .button { margin-top: 11px; }
.admin-form { max-width: 750px; margin-inline: auto; padding: 24px; }
.login-form { max-width: 445px; }
.admin-form form { margin-top: 18px; display: grid; gap: 11px; }
.admin-form label { display: grid; gap: 4px; font-weight: 700; }
.admin-form button { justify-self: start; min-width: 92px; }
.admin-form fieldset { border: 1px solid var(--line); border-radius: 9px; margin: 0; padding: 8px 10px; }
.admin-form legend { font-weight: 700; }
.check-grid { display: flex; gap: 7px 13px; flex-wrap: wrap; }
.check-grid label { display: flex; align-items: center; gap: 3px; font-size: 14px; }
.admin-toolbar { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 10px 0; }
.edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.edit-grid input { min-width: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 11px; border-bottom: 1px solid var(--line); }
td a { color: #2d6651; font-weight: 750; }
td a:hover { text-decoration: underline; }
tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 48px); }
  .hotspot-park { left: 40%; }
  .theme-copy { align-items: flex-start; }
  .theme-copy .tile-icon { width: 33px; height: 33px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 28px); }
  .header-row { grid-template-columns: 1fr auto; gap: 0 10px; padding-top: 10px; }
  .brand b { font-size: 20px; }
  .brand-mark { width: 37px; height: 37px; }
  .navigation { grid-column: span 2; grid-row: 2; justify-content: space-between; gap: 7px; padding: 4px 10px 0; }
  .navigation a { min-height: 39px; font-size: 14px; }
  .log-button { min-height: 38px; }
  .home { padding-top: 14px; }
  .hero { display: block; background: #193c30; min-height: 0; border-radius: 16px; }
  .hero::before { background: linear-gradient(145deg,#1b4134,#102a21); }
  .hero-copy { padding: 20px 19px 19px; }
  .hero h1 { font-size: clamp(46px, 10vw, 64px); margin-top: 11px; }
  .hero-copy p { margin-top: 12px; }
  .hero-actions { margin-top: 14px; }
  .city-stage { position: relative; height: 210px; background: #23584a url('assets/city.jpg') center center / cover no-repeat; }
  .hotspot-park { left: 25%; top: 48%; }
  .hotspot-mail { left: 49%; top: 65%; }
  .hotspot-xidi { left: 60%; top: 27%; }
  .hotspot-ferry { left: 83%; top: 51%; }
  .hotspot { font-size: 12px; padding: 4px 6px; gap: 3px; }
  .hotspot svg { width: 13px; height: 13px; }
  .scene-label { display: none; }
  .scene-caption { right: 9px; bottom: 8px; }
  .theme-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .theme-photo { height: 116px; }
  .theme-copy { padding: 9px; gap: 6px; min-height: 76px; }
  .theme-copy h3 { font-size: 17px; }
  .extra-grid { gap: 9px; }
  .extra { padding: 10px; flex-direction: column; gap: 6px; }
  .extra h2 { font-size: 18px; }
  .footer-grid { align-items: start; flex-direction: column; gap: 8px; }
  .page { padding-block: 26px 35px; }
  .map-layout, .detail-card, .calendar-layout, .journal-grid { grid-template-columns: minmax(0, 1fr); }
  .map-panel { grid-row: 1; }
  .map-canvas { height: 290px; }
  .detail-art { min-height: 186px; }
  .journal-box { padding: 15px; }
}
@media (max-width: 350px) {
  .theme-copy .tile-icon { display: none; }
  .log-button { padding-inline: 7px; }
  .extra-grid, .edit-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
