/* ==========================================================
   约会登记 · 视觉系统
   纸张象牙白 + 墨色 + 酒红，衬线标题 / 无衬线正文
   ========================================================== */
:root {
  --paper: #f3eee5;
  --paper-2: #ebe4d8;
  --card: #fbf8f2;
  --ink: #1d1916;
  --ink-2: #4a423b;
  --ink-3: #8a8077;
  --line: rgba(29, 25, 22, .12);
  --line-2: rgba(29, 25, 22, .07);
  --wine: #7b2d3a;
  --wine-2: #9a3f4d;
  --wine-soft: rgba(123, 45, 58, .08);
  --gold: #a88452;
  --sage: #5f6f5a;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --latin: "Cormorant Garamond", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --r: 14px;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 1px 2px rgba(29,25,22,.06), 0 12px 32px -18px rgba(29,25,22,.28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
/* 细微纸纹 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image:
    radial-gradient(rgba(29,25,22,.035) 1px, transparent 1px),
    radial-gradient(rgba(29,25,22,.025) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- 刊头 ---------- */
.masthead { padding: 44px 0 30px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.brand .eyebrow { font: italic 500 15px/1 var(--latin); letter-spacing: .08em; color: var(--wine); }
.brand h1 { margin: 10px 0 0; font: 600 clamp(30px, 5vw, 46px)/1.1 var(--serif); letter-spacing: .06em; }
.masthead-meta { text-align: right; color: var(--ink-3); font-size: 13px; }
.masthead-meta .today { font: 500 28px/1 var(--latin); color: var(--ink); letter-spacing: .02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 24px; border-radius: 999px;
  font-weight: 500; letter-spacing: .12em; font-size: 14px;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
}
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -14px rgba(29,25,22,.8); }
.btn-primary:hover { background: var(--wine); transform: translateY(-1px); }
.btn-primary:disabled { background: #b7ada3; box-shadow: none; transform: none; cursor: not-allowed; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn .plus { font: 300 20px/1 var(--latin); margin-top: -2px; }

/* ---------- 概览条 ---------- */
.overview { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0; margin: 28px 0 8px; align-items: center; }
.stat { padding: 4px 24px 4px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font: 500 34px/1 var(--latin); }
.stat span { font-size: 12px; letter-spacing: .18em; color: var(--ink-3); }

/* ---------- 分栏 Tabs ---------- */
.tabs { display: flex; gap: 28px; margin: 36px 0 22px; border-bottom: 1px solid var(--line); }
.tab { position: relative; padding: 0 0 14px; font: 500 16px/1 var(--serif); color: var(--ink-3); letter-spacing: .08em; transition: color .2s; }
.tab sup { font: 500 12px var(--latin); margin-left: 4px; color: var(--ink-3); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

/* ---------- 票据卡 ---------- */
.list { display: grid; gap: 18px; padding-bottom: 80px; }
.ticket {
  position: relative; display: grid; grid-template-columns: 210px 1fr; background: var(--card);
  border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden;
  animation: rise .5s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.ticket.is-ended { background: #f6f2ea; }
.ticket.is-ended .stub, .ticket.is-ended .body { filter: saturate(.3); }
.ticket.is-ended .stub { opacity: .78; }

.stub { position: relative; padding: 24px 22px; border-right: 1px dashed rgba(29,25,22,.22); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
/* 打孔半圆 */
.stub::before, .stub::after { content: ""; position: absolute; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); }
.stub::before { top: -9px; box-shadow: inset 0 -1px 2px rgba(29,25,22,.08); }
.stub::after { bottom: -9px; box-shadow: inset 0 1px 2px rgba(29,25,22,.08); }
.stub .month { font: italic 500 13px/1 var(--latin); color: var(--wine); letter-spacing: .14em; text-transform: uppercase; }
.stub .dates { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font: 500 40px/1 var(--latin); }
.stub .dates .to { font-size: 18px; color: var(--ink-3); }
.stub .dates small { font-size: 16px; color: var(--ink-3); }
.stub .span { font-size: 12px; color: var(--ink-3); letter-spacing: .1em; margin-top: 8px; }

.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; letter-spacing: .12em; width: max-content; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.upcoming { color: var(--wine); background: var(--wine-soft); }
.pill.ongoing { color: var(--sage); background: rgba(95,111,90,.12); }
.pill.ongoing::before { animation: pulse 1.6s infinite; }
.pill.ended { color: var(--ink-3); background: rgba(29,25,22,.06); }
@keyframes pulse { 50% { opacity: .25; } }

.body { padding: 22px 26px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.body-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.body h3 { margin: 0; font: 600 20px/1.35 var(--serif); letter-spacing: .04em; }
.body .sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.rows { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.row { min-width: 0; }
.row .k { font-size: 11px; letter-spacing: .24em; color: var(--ink-3); }
.row .v { font: 500 15px/1.5 var(--serif); margin-top: 3px; overflow-wrap: anywhere; }
.row .m { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.body-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 2px; }
.body-foot .note { font-size: 13px; color: var(--ink-2); font-style: italic; overflow-wrap: anywhere; }
.del { font-size: 12px; letter-spacing: .14em; color: var(--ink-3); padding: 6px 10px; border-radius: 999px; transition: color .2s, background .2s; white-space: nowrap; }
.del:hover { color: var(--wine); background: var(--wine-soft); }
.del.confirm { color: #fff; background: var(--wine); }

.empty { text-align: center; padding: 70px 20px 90px; color: var(--ink-3); }
.empty .glyph { font: italic 400 64px/1 var(--latin); color: var(--gold); opacity: .8; }
.empty h4 { margin: 14px 0 6px; font: 500 18px var(--serif); color: var(--ink-2); letter-spacing: .08em; }
.empty h4 + .btn { margin-top: 10px; }

/* ---------- 抽屉（新建登记） ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(29,25,22,.38); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.drawer {
  position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(640px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(104%); transition: transform .5s var(--ease);
  box-shadow: -30px 0 60px -30px rgba(29,25,22,.45);
}
body.drawer-open { overflow: hidden; }
body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: none; }
.drawer-head { padding: 26px 32px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; }
.drawer-head .eyebrow { font: italic 500 14px/1 var(--latin); color: var(--wine); letter-spacing: .08em; }
.drawer-head h2 { margin: 8px 0 0; font: 600 26px/1.2 var(--serif); letter-spacing: .08em; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); font: 300 22px/1 var(--latin); color: var(--ink-2); transition: all .2s; }
.x:hover { border-color: var(--ink); color: var(--ink); transform: rotate(90deg); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 32px 40px; overscroll-behavior: contain; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 32px calc(16px + env(safe-area-inset-bottom)); display: flex; gap: 16px; align-items: center; justify-content: space-between; background: var(--paper); }
.drawer-foot .summary { font-size: 13px; color: var(--ink-3); line-height: 1.5; min-width: 0; }
.drawer-foot .summary b { color: var(--ink); font-weight: 500; }

/* 表单分节 */
.sec { padding: 26px 0 6px; border-bottom: 1px solid var(--line-2); }
.sec:last-child { border-bottom: 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.sec-no { font: italic 500 22px/1 var(--latin); color: var(--gold); width: 28px; }
.sec-title { font: 600 17px/1 var(--serif); letter-spacing: .1em; }
.sec-aside { margin-left: auto; font-size: 12.5px; color: var(--ink-3); text-align: right; }
.sec-aside b { color: var(--wine); font-weight: 500; }

/* 日期范围预定条 */
.range-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 14px; }
.range-cell { padding: 12px 18px; border-radius: 12px; transition: background .2s; text-align: left; }
.range-cell.active { background: var(--wine-soft); }
.range-cell .k { font-size: 11px; letter-spacing: .22em; color: var(--ink-3); }
.range-cell .v { font: 500 17px/1.4 var(--serif); }
.range-cell .v.ph { color: #b2a89e; font-weight: 400; }
.range-mid { font: 500 12px/1 var(--sans); color: var(--ink-3); padding: 6px 10px; border-radius: 999px; background: var(--paper-2); letter-spacing: .08em; white-space: nowrap; }

.cal { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 16px 16px 12px; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.cal-titles { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; text-align: center; font: 600 14px/34px var(--serif); letter-spacing: .1em; }
.cal-nav button { width: 34px; height: 34px; border-radius: 50%; font: 400 18px/1 var(--latin); color: var(--ink-2); transition: background .2s; }
.cal-nav button:hover { background: var(--paper-2); }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-dow { text-align: center; font-size: 11px; color: var(--ink-3); padding: 8px 0 6px; letter-spacing: .1em; }
.day { position: relative; height: 38px; display: grid; place-items: center; font: 500 14px/1 var(--latin); font-variant-numeric: tabular-nums; }
.day button { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; transition: background .15s, color .15s; }
.day button:hover { background: var(--paper-2); }
.day.past button { color: #b7ada3; }
.day.today button { box-shadow: inset 0 0 0 1px var(--gold); }
.day.in::before { content: ""; position: absolute; inset: 1px 0; background: var(--wine-soft); }
.day.preview::before { content: ""; position: absolute; inset: 1px 0; background: rgba(123,45,58,.045); }
.day.start::before { left: 50%; } .day.end::before, .day.pv-end::before { right: 50%; }
.day.start.end::before { display: none; }
.day.pv-end button { box-shadow: inset 0 0 0 1.5px var(--wine); }
.day.start button, .day.end button { background: var(--wine); color: #fff; }
.day.weekend button { color: var(--wine-2); }
.day.past.weekend button { color: #c9b2b2; }
.day.start button, .day.end button { color: #fff !important; }
.cal.one .cal-titles, .cal.one .cal-months { grid-template-columns: 1fr; }

/* 分段选择 */
.seg { display: inline-flex; padding: 4px; background: var(--paper-2); border-radius: 999px; gap: 2px; }
.seg button { height: 36px; padding: 0 20px; border-radius: 999px; font-size: 14px; letter-spacing: .14em; color: var(--ink-2); transition: all .25s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px -3px rgba(29,25,22,.3); }

/* 娱乐大类方块 */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat { text-align: left; padding: 14px 14px 12px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line-2); transition: all .25s var(--ease); min-height: 76px; }
.cat:hover { box-shadow: 0 0 0 1px var(--line), 0 8px 18px -12px rgba(29,25,22,.4); transform: translateY(-1px); }
.cat .en { font: italic 500 12px/1 var(--latin); color: var(--ink-3); letter-spacing: .06em; }
.cat .zh { font: 600 16px/1.2 var(--serif); margin-top: 8px; letter-spacing: .08em; }
.cat[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.cat[aria-pressed="true"] .en { color: var(--gold); }
.cats + #funSub:not(:empty) { margin-top: 4px; }

/* 子级面板 */
.sub-panel { margin-top: 14px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.4); box-shadow: inset 0 0 0 1px var(--line-2); animation: rise .35s var(--ease) both; }
.sub-label { font-size: 11px; letter-spacing: .24em; color: var(--ink-3); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; letter-spacing: .06em; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); transition: all .2s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--wine); color: #fff; box-shadow: none; }
.chip small { font: italic 12px var(--latin); opacity: .7; margin-left: 4px; }
.sub-panel .chips + .sub-label { margin-top: 16px; }

/* 场地 / 餐厅选项卡片 */
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 18px 1fr; gap: 14px; align-items: start; text-align: left; padding: 13px 16px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line-2); transition: all .2s var(--ease); width: 100%; }
.opt:hover { box-shadow: 0 0 0 1px var(--line); }
.opt .dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #c3b9ae; margin-top: 3px; transition: all .2s; }
.opt[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--wine), 0 10px 22px -16px rgba(123,45,58,.7); }
.opt[aria-pressed="true"] .dot { box-shadow: inset 0 0 0 5px var(--wine); }
.opt .t { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font: 600 15px/1.4 var(--serif); letter-spacing: .03em; }
.opt .t em { font: italic 400 13px var(--latin); color: var(--ink-3); letter-spacing: 0; }
.opt .tag { font: 500 11px/1 var(--sans); color: var(--gold); border: 1px solid rgba(168,132,82,.4); padding: 3px 7px; border-radius: 4px; letter-spacing: .08em; }
.opt .d { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.55; }
.none { font-size: 13px; color: var(--ink-3); padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.35); border: 1px dashed var(--line); }

.dine-city { display: inline-flex; align-items: center; gap: 8px; }
.dine-city .badge { font: 600 13px/1 var(--serif); color: var(--paper); background: var(--wine); padding: 6px 10px; border-radius: 6px; letter-spacing: .1em; }
.dine-city .badge.flash { animation: flash .7s var(--ease); }
@keyframes flash { 0% { transform: scale(.85); background: var(--gold); } 100% { transform: none; } }
.search { width: 100%; height: 42px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 10px; outline: none; transition: box-shadow .2s; }
.search:focus { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.notice { font-size: 12.5px; color: var(--wine); background: var(--wine-soft); padding: 9px 12px; border-radius: 8px; margin-bottom: 10px; animation: rise .3s var(--ease) both; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 11px; letter-spacing: .24em; color: var(--ink-3); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 8px 0; outline: none; font: 500 16px/1.5 var(--serif); transition: border-color .2s; resize: none; }
.field input:focus, .field textarea:focus { border-color: var(--wine); }
.field input::placeholder, .field textarea::placeholder { color: #b8aea3; font-weight: 400; }

.errs { color: var(--wine); font-size: 12.5px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(32px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); z-index: 80; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); padding: 12px 22px; border-radius: 999px; font-size: 14px; letter-spacing: .08em; box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); transition: all .4s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

footer.colophon { border-top: 1px solid var(--line); padding: 12px 0 30px; color: var(--ink-3); font-size: 12px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; letter-spacing: .04em; }
footer.colophon a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 三轮：两人共用 · 锁屏提醒 ---------- */
/* 刊头右侧：日期 + 铃铛 */
.masthead-meta { display: flex; align-items: flex-end; gap: 18px; }
.bell { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; flex: none; }
.bell:hover { border-color: var(--ink); color: var(--ink); }
.bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.bell-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 2px var(--paper); }
[hidden] { display: none !important; }

/* 顶部横幅：对方新动态（酒红） / 开启提醒（素） */
.alert { position: sticky; top: 0; z-index: 20; margin: 0 -28px; padding: calc(10px + env(safe-area-inset-top)) 28px 10px; display: flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .04em; animation: rise .4s var(--ease) both; }
.alert.is-news { background: var(--wine); color: #fff; }
.alert.is-nudge { background: var(--paper-2); color: var(--ink-2); border-bottom: 1px solid var(--line); }
.alert-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; animation: pulse 1.6s infinite; }
.alert-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.alert-go { min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; letter-spacing: .12em; flex: none; }
.alert.is-news .alert-go { background: #fff; color: var(--wine); }
.alert.is-nudge .alert-go { background: var(--ink); color: var(--paper); }
.alert-x { width: 36px; height: 36px; border-radius: 50%; font: 300 20px/1 var(--latin); opacity: .75; flex: none; }
.alert-x:hover { opacity: 1; }

/* 分栏红点、卡片“谁登记”、新动态与定位高亮 */
.tab-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--wine); margin-left: 4px; vertical-align: super; }
.by { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; letter-spacing: .14em; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.by.by-other { color: var(--gold); box-shadow: inset 0 0 0 1px rgba(168,132,82,.45); }
.by i { width: 6px; height: 6px; border-radius: 50%; background: var(--wine); }
.ticket.is-new { box-shadow: 0 0 0 1.5px rgba(123,45,58,.35), var(--shadow); }
.ticket.is-focus { box-shadow: 0 0 0 2px var(--wine), var(--shadow); }
.acts { display: inline-flex; gap: 2px; flex: none; }

/* 首次打开：选身份 */
body.gate-open { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 90; background: var(--paper); display: grid; place-items: center; padding: 24px 22px calc(24px + env(safe-area-inset-bottom)); animation: rise .4s var(--ease) both; }
.gate::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(29,25,22,.035) 1px, transparent 1px); background-size: 3px 3px; }
.gate-card { position: relative; width: min(420px, 100%); text-align: center; }
.gate-card .eyebrow { font: italic 500 15px/1 var(--latin); letter-spacing: .08em; color: var(--wine); }
.gate-card h2 { margin: 14px 0 28px; font: 600 34px/1.2 var(--serif); letter-spacing: .12em; }
.gate-p { color: var(--ink-3); font-size: 14px; letter-spacing: .06em; }
.who-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.who-pick button { min-height: 128px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transition: all .25s var(--ease); }
.who-pick button:hover { transform: translateY(-2px); }
.who-pick button[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--wine), var(--shadow); }
.who-pick b { font: 600 26px/1 var(--serif); letter-spacing: .1em; }
.who-pick span { font-size: 12px; color: var(--ink-3); letter-spacing: .12em; }
.gate-cancel { margin-top: 18px; min-height: 44px; padding: 0 18px; color: var(--ink-3); font-size: 13px; letter-spacing: .14em; }

/* 锁屏提醒引导面板：桌面为右侧窄抽屉，手机为底部弹层 */
.sheet-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(29,25,22,.38); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.sheet { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .45s var(--ease); box-shadow: -30px 0 60px -30px rgba(29,25,22,.45); }
body.sheet-open { overflow: hidden; }
body.sheet-open .sheet-scrim { opacity: 1; pointer-events: auto; }
body.sheet-open .sheet { transform: none; }
.sheet-body { flex: 1; overflow-y: auto; padding: 18px 32px calc(28px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.people { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.step:last-child { border-bottom: 0; }
.step-t { font: 600 17px/1.4 var(--serif); letter-spacing: .1em; }
.step-p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.step-p.strong { color: var(--wine); }
.step-p.ok { color: var(--sage); }
.step.is-done .sec-no { color: var(--sage); }
.step.is-wait { opacity: .55; }
.step-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; vertical-align: 1px; }
.sheet-foot { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
footer.colophon .colophon-links { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
footer.colophon button { color: var(--ink-2); min-height: 44px; letter-spacing: .04em; }
footer.colophon button b { font-weight: 500; color: var(--wine); }
.toast { z-index: 95; }

/* ---------- 响应式 ---------- */
/* 手机优先验收视口 390×844：全屏登记层、单月日历、触控高度 ≥ 44px */
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .masthead { padding: 30px 0 22px; flex-direction: column; align-items: flex-start; }
  .masthead-meta { text-align: left; }
  .overview { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .stat { padding-right: 12px; } .stat + .stat { padding-left: 14px; }
  .stat b { font-size: 28px; }
  .ticket { grid-template-columns: 1fr; }
  .stub { border-right: 0; border-bottom: 1px dashed rgba(29,25,22,.22); flex-direction: row; align-items: flex-end; padding: 18px 20px; }
  .stub::before { top: auto; bottom: -9px; left: -9px; right: auto; }
  .stub::after { bottom: -9px; right: -9px; }
  .stub .dates { font-size: 32px; }
  .body { padding: 18px 20px 14px; }
  .rows { grid-template-columns: 1fr; gap: 12px; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 18px; padding-right: 18px; }
  .cats { grid-template-columns: repeat(2, 1fr); }

  /* 列表：底部常驻“新建登记”，单手可达 */
  .masthead { padding: 24px 0 18px; }
  .overview { margin-top: 20px; }
  .overview .btn { position: fixed; z-index: 30; left: 18px; right: 18px; bottom: calc(14px + env(safe-area-inset-bottom)); width: auto; height: 52px; }
  .list { padding-bottom: 24px; }
  footer.colophon { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .tabs { margin: 26px 0 16px; gap: 6px; }
  .tab { min-height: 44px; padding: 0 12px 0 0; display: inline-flex; align-items: center; }
  .del { min-height: 44px; padding: 0 16px; margin-right: -10px; }
  .body-foot { padding-top: 6px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* 新建登记：全屏层，自下而上 */
  .drawer { width: 100%; height: 100%; height: 100dvh; transform: translateY(100%); box-shadow: none; }
  .scrim { backdrop-filter: none; }
  .drawer-head { padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: 12px; align-items: center; }
  .drawer-head .eyebrow { font-size: 12px; }
  .drawer-head h2 { margin-top: 4px; font-size: 21px; }
  .x { width: 44px; height: 44px; flex: none; }
  .drawer-body { padding-bottom: 28px; }
  .drawer-foot { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .drawer-foot .btn { width: 100%; height: 52px; }
  .sec { padding-top: 20px; }
  .sec-head { margin-bottom: 12px; }

  /* 日期条与单月日历：日期格 ≥ 44px */
  .range-cell { padding: 10px 14px; min-height: 56px; }
  .range-cell .v { font-size: 15px; }
  .range-mid { padding: 6px 8px; }
  .cal { padding: 10px 8px 8px; }
  .cal-nav button { width: 44px; height: 44px; font-size: 22px; }
  .cal-titles { line-height: 44px; }
  .day { height: 46px; }
  .day button { width: 44px; height: 44px; font-size: 16px; }

  /* 选择控件 */
  .seg { display: flex; }
  .seg button { flex: 1; height: 44px; }
  .chip { min-height: 44px; padding: 0 18px; font-size: 14px; }
  .cat { min-height: 72px; }
  .opt { padding: 14px 16px; min-height: 56px; }
  .search { height: 46px; font-size: 16px; }
  .field input, .field textarea { min-height: 44px; font-size: 16px; }

  /* 三轮：横幅、铃铛、身份、引导面板 */
  .masthead-meta { width: 100%; justify-content: space-between; }
  .bell { width: 44px; height: 44px; }
  .alert { margin: 0 -18px; padding-left: 18px; padding-right: 10px; gap: 8px; font-size: 13.5px; }
  .alert-go { min-height: 44px; padding: 0 16px; }
  .alert-x { width: 44px; height: 44px; }
  .by { height: 26px; }
  .acts .del { margin-right: 0; padding: 0 12px; }
  .acts .del:last-child { margin-right: -10px; }
  .who-pick button { min-height: 132px; }
  .gate-card h2 { font-size: 30px; }
  .sheet { top: auto; width: 100%; max-height: 88vh; max-height: 88dvh; border-radius: 18px 18px 0 0; transform: translateY(104%); box-shadow: 0 -20px 50px -30px rgba(29,25,22,.5); }
  .sheet .drawer-head { padding: 16px 18px 12px; align-items: center; }
  .sheet .drawer-head h2 { margin-top: 4px; font-size: 21px; }
  .sheet-body { padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); }
  .step-acts .btn { flex: 1; height: 48px; }
  footer.colophon button { min-height: 44px; }
  footer.colophon .colophon-links { gap: 14px; }
}
@media (pointer: coarse) {
  .cal-nav button, .x { min-width: 44px; min-height: 44px; }
  .chip, .seg button, .del, .tab { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 四轮：沿用表单、票根与纸色 */
.field select { width:100%; min-height:44px; padding:10px; border:1px solid var(--line); color:inherit; background:transparent; font:inherit; }
.pair-code { overflow-wrap:anywhere; user-select:all; font-family:monospace; font-size:20px; letter-spacing:1px; }
#customGate { z-index:150; overflow:auto; }
#customGate .gate-card { margin:auto; }
#memoryAdd, #addDine, #addVenue, #customGate button, #gate button { min-height:44px; }

/* 五轮：一键直达、往返行程、想去清单与转盘（沿用纸色、墨、酒红、金） */
.go-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.go { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; letter-spacing: .1em; color: var(--ink-2); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: all .2s; }
.go:hover { color: var(--wine); box-shadow: inset 0 0 0 1px rgba(123,45,58,.4); }
.go[data-go="amap"] { color: var(--wine); }
.opts > .go-row { margin: -2px 0 4px 48px; }
.row-trip { grid-column: 1 / -1; }
.row-trip .m { line-height: 1.7; }
.buy { color: var(--wine); font-weight: 600; }
.trip .sub-label { margin-top: 14px; }
.trip .d, .spin .d, .place .d { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; margin-top: 4px; }
.leg { margin-top: 4px; }
.leg-st { display: flex; align-items: center; gap: 8px; }
.leg-st select { flex: 1; min-width: 0; height: 42px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 500 14px var(--serif); }
.leg-st span { color: var(--gold); }
.leg-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; margin-top: 8px; }
.leg-in .search { margin-bottom: 0; }
.wish .seg { margin-bottom: 14px; }
.wish #wishModes { margin: 16px 0 12px; }
.spin { display: grid; grid-template-columns: 54px 1fr; gap: 6px 16px; align-items: center; padding: 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.spin .dial { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--wine); background: repeating-conic-gradient(var(--wine-soft) 0 30deg, transparent 30deg 60deg); box-shadow: inset 0 0 0 1.5px rgba(168,132,82,.5); }
.spin.is-on .dial { animation: spinDial 1.1s var(--ease) both; }
@keyframes spinDial { from { transform: rotate(-540deg); } to { transform: rotate(0); } }
.spin-t { font: 600 18px/1.4 var(--serif); letter-spacing: .03em; overflow-wrap: anywhere; }
.spin-acts, .spin .go-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spin-acts { margin-top: 8px; }
.places { display: grid; gap: 8px; }
.place { padding: 13px 16px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line-2); }
.place-head { display: grid; grid-template-columns: 1fr 44px; gap: 10px; align-items: start; }
.place .t { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font: 600 15px/1.4 var(--serif); letter-spacing: .03em; }
.place .tag { font: 500 11px/1 var(--sans); color: var(--gold); border: 1px solid rgba(168,132,82,.4); padding: 3px 7px; border-radius: 4px; letter-spacing: .08em; }
.marks { display: flex; gap: 6px; margin-top: 6px; }
.mark { font-size: 11.5px; letter-spacing: .1em; color: var(--wine); background: var(--wine-soft); padding: 2px 8px; border-radius: 999px; }
.mark.is-seen { color: var(--sage); background: rgba(95,111,90,.12); }
.heart { width: 44px; height: 44px; border-radius: 50%; font-size: 18px; color: #c3b9ae; box-shadow: inset 0 0 0 1px var(--line); transition: all .2s; }
.heart[aria-pressed="true"] { color: #fff; background: var(--wine); box-shadow: none; }
@media (max-width: 760px) {
  .go { min-height: 44px; padding: 0 14px; }
  .opts > .go-row { margin-left: 0; }
  .leg-st select { height: 46px; font-size: 16px; }
  .spin-acts .btn { flex: 1; min-height: 46px; }
}
/* 最近位置 */
.latest-location { border-top: 1px solid currentColor; padding: 16px 0; line-height: 1.7; overflow-wrap: anywhere; }
.latest-location .eyebrow { margin-bottom: 4px; }
.location-time { font-size: 12px; opacity: .65; }

/* Account entry */
.gate-card input {width:100%; min-height:44px; box-sizing:border-box;}
.pair-code {overflow-wrap:anywhere;user-select:all;}
#accountName {overflow-wrap:anywhere;}

.gate-card input[type="radio"] {width:20px; min-height:20px; margin-right:8px; accent-color:var(--wine);}
.gate-card fieldset.who-pick {border:1px solid var(--line);border-radius:12px;padding:12px;margin:16px 0;gap:12px;}
.gate-card .who-pick label {display:flex;align-items:center;min-height:44px;}
.gate-card .who-pick label:has(input:disabled) {opacity:.5;}
