/* 三个页面共用：配色、标题栏、按钮、色块标签、表单。移动端优先，≥860px 为桌面。 */
:root {
  --bg: #faf6ef; --ink: #2b2118; --muted: #7a6a5a; --card: #fff; --line: #eadfce; --accent: #c2410c;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5; overflow-x: hidden; }
a { color: var(--accent); }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 56px;
  padding: env(safe-area-inset-top) 16px 0; color: #fff;
  background: linear-gradient(135deg, #7c2d12, #c2410c 55%, #d97706); }
.bar h1 { flex: 1; margin: 0; font-size: 18px; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar h1 a { color: inherit; text-decoration: none; }
.bar .tag { font-size: 13px; opacity: .85; }
.bar .btn { min-height: 38px; background: #fff; color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.block { width: 100%; }
.chips { display: flex; gap: 8px; padding: 2px 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
  font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.off { opacity: .35; }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.pad { padding: 16px; }
.muted { color: var(--muted); }
.field { display: block; min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.field > span, .field > legend { display: block; margin-bottom: 6px; padding: 0; font-size: 14px; color: var(--muted); }
.field :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=file]) {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.field textarea { resize: vertical; }
footer { padding: 20px 16px calc(96px + var(--safe-b)); text-align: center; font-size: 12px; color: var(--muted); }
@media (max-width: 859px) { .desktop-only { display: none !important; } .bar .tag { display: none; } }
@media (min-width: 860px) { .mobile-only { display: none !important; } }
