:root {
  color-scheme: light;
  --bg: #eef1e9;
  --paper: #fafbf6;
  --ink: #1c332b;
  --muted: #506759;
  --line: #d4ddcf;
  --forest: #214a3a;
  --wash: #e0e8d9;
  --warm: #f8edd9;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 310px; }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; }
:focus-visible { outline: 3px solid #b6662e; outline-offset: 3px; }
.shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.site-head { border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand-tail { font-weight: 500; margin-left: 4px; color: var(--muted); }
.logo { width: 36px; height: 36px; display: grid; place-items: center; color: #f3f7e9; background: var(--forest); font-family: "Songti SC", "Noto Serif SC", serif; font-weight: 800; border-radius: 6px; }
#app { padding-block: 42px 64px; }
.hero { display: grid; grid-template-columns: 1.13fr 1fr; border: 1px solid var(--line); background: var(--paper); min-height: 372px; }
.hero img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: center 54%; }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 5vw, 66px); gap: 13px; }
h1 { font: 750 clamp(36px, 6vw, 66px)/1.09 "Songti SC", "Noto Serif SC", "STSong", serif; letter-spacing: -.045em; }
h2 { font-size: 24px; line-height: 1.26; }
h3 { font-size: 19px; line-height: 1.3; }
.intro { color: var(--muted); max-width: 38em; margin-top: 10px; }
.page-title { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.page-title h1 { font-size: clamp(37px, 6vw, 55px); }
.stamp { align-self: flex-start; width: max-content; display: inline-block; padding: 4px 9px; background: var(--warm); color: #694d2e; border-radius: 3px; font-size: 12px; font-weight: 600; }
.stamp.green { background: var(--wash); color: var(--forest); }
.buttons, .row, .tools, .tabbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.spread, .tools { justify-content: space-between; }
.buttons { margin-top: 12px; }
.button, .text-nav { border: 1px solid transparent; padding: 9px 14px; min-height: 43px; border-radius: 5px; background: var(--forest); color: #fff; font-weight: 650; font-size: 14px; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; }
.button.light, .text-nav { background: transparent; border-color: var(--line); color: var(--forest); }
.button.light:hover, .text-nav:hover { background: var(--wash); }
.button.danger { background: #f1dfd7; color: #743c2c; }
.tabbar { margin-bottom: 20px; border-bottom: 1px solid var(--line); gap: 18px; }
.tabbar button { color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; padding: 9px 1px; min-height: 44px; }
.tabbar .active { color: var(--forest); font-weight: 750; border-bottom-color: var(--forest); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 18px; }
.card, .sheet { padding: 20px; border: 1px solid var(--line); background: var(--paper); }
.card > * + *, .sheet > * + * { margin-top: 12px; }
.card.listing { padding: 0; overflow: hidden; }
.listing img { width: 100%; height: 214px; object-fit: cover; object-position: center 55%; display: block; }
.listing .box { padding: 0 18px 18px; }
.copy { white-space: pre-wrap; color: #44594d; background: #eef2e8; padding: 13px; margin-block: 13px; overflow-wrap: anywhere; }
.money { color: var(--forest); font-weight: 750; font-size: 21px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.muted, .help { color: var(--muted); }
.help { font-size: 13px; }
.empty { padding: 20px 0; color: var(--muted); }
.notice { background: #f7ecd9; padding: 11px 13px; color: #6c4c23; }
.form { display: grid; gap: 15px; max-width: 660px; }
label:not(.tick) { display: grid; gap: 5px; font-weight: 650; }
input:not([type=checkbox]), textarea, select { color: var(--ink); padding: 10px; background: #fff; border: 1px solid #b9cbb9; min-height: 44px; border-radius: 4px; width: 100%; }
textarea { min-height: 110px; resize: vertical; }
.tick { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.tick input { margin-top: 4px; }
.stack { display: grid; gap: 12px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); background: var(--paper); margin-top: 16px; }
table { width: 100%; min-width: 630px; text-align: left; border-collapse: collapse; }
td, th { border-bottom: 1px solid var(--line); padding: 12px; vertical-align: top; }
th { background: var(--wash); }
td code { overflow-wrap: anywhere; font-size: 12px; }
dialog { width: min(550px, calc(100% - 26px)); padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); max-height: 86dvh; }
dialog::backdrop { background: #192a24a0; }
.dialog-body { padding: clamp(16px, 4vw, 25px); }
.dialog-body > * + * { margin-top: 15px; }
.dialog-photo, .image-preview { display: block; width: 100%; object-fit: contain; max-height: 50dvh; }
.toast { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: #21392f; color: white; padding: 12px 18px; border-radius: 6px; max-width: calc(100% - 30px); z-index: 2; }
.error { color: #853b2c; }
@media(max-width:620px) {
  .shell { width: calc(100% - 28px); }
  .head-inner { min-height: 62px; }
  #app { padding-top: 23px; }
  .hero { grid-template-columns: 1fr; }
  .hero img { height: 202px; min-height: 0; }
  .hero-text { padding: 24px; min-height: 245px; }
  .tabbar { gap: 14px; }
  .brand-tail { display: none; }
  .listing img { height: 180px; }
}
