/* ==========================================================================
   第十七届全国高等院校建筑与环境设计专业美术教学研讨会 · 报名小程序
   设计语言：宣纸 / 墨 / 朱砂 / 金 —— 学术、留白、克制动效
   ========================================================================== */

:root {
  --ink: #1c1b19;
  --ink-2: #4b463e;
  --ink-3: #8a8274;
  --paper: #f4eee2;
  --paper-2: #fbf7ee;
  --card: #fffdf8;
  --accent: #a8312a;
  --accent-deep: #8c2721;
  --accent-soft: rgba(168, 49, 42, 0.08);
  --gold: #a98b54;
  --indigo: #33505e;
  --line: rgba(28, 27, 25, 0.1);
  --line-strong: rgba(28, 27, 25, 0.22);
  --ok: #3f6b4f;
  --warn: #a86a1f;
  --danger: #a8312a;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --sh-1: 0 1px 2px rgba(60, 45, 25, 0.05), 0 6px 18px -12px rgba(60, 45, 25, 0.22);
  --sh-2: 0 2px 6px rgba(60, 45, 25, 0.06), 0 18px 40px -22px rgba(60, 45, 25, 0.3);
  --sh-3: 0 24px 60px -24px rgba(60, 45, 25, 0.42);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", "宋体", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabh: 62px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 70% at 50% -12%, #fdfaf2 0%, rgba(253, 250, 242, 0) 62%),
    radial-gradient(90% 50% at 100% 0%, rgba(169, 139, 84, 0.1) 0%, rgba(169, 139, 84, 0) 60%),
    repeating-linear-gradient(0deg, rgba(28, 27, 25, 0.012) 0 1px, rgba(28, 27, 25, 0) 1px 4px);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* 手机壳：桌面端居中成 480px 卡片，手机端全屏 */
.shell {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: calc(var(--tabh) + var(--safe-b) + 8px);
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; }

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 16px;
  background: rgba(244, 238, 226, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-serif); font-size: 15px; letter-spacing: 0.04em; font-weight: 700;
}
.topbar .brand small {
  display: block; font-family: var(--font-sans); font-size: 10.5px; font-weight: 400;
  letter-spacing: 0.12em; color: var(--ink-3); margin-top: -2px;
}
.topbar .spacer { flex: 1; }
.topbar .admin-link {
  font-size: 12px; color: var(--ink-3); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

/* 印章式 logo（端正摆放，不做旋转） */
.seal {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 15px; line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55), 0 2px 8px -2px rgba(140, 39, 33, 0.5);
  transform: none;
  vertical-align: middle;
}
.seal span, .seal {
  text-align: center;
  text-indent: 0;
  padding: 0;
  box-sizing: border-box;
}
.seal.small { width: 26px; height: 26px; flex-basis: 26px; font-size: 12px; border-radius: 6px; }
.seal.lg { width: 54px; height: 54px; flex-basis: 54px; font-size: 22px; border-radius: 10px; }

/* ---------------------------------------------------------------- 视图 */
.view { padding: 0 16px 24px; animation: viewIn 0.42s var(--ease) both; }
.view[hidden] { display: none; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- 标题 */
.eyebrow {
  font-size: 10.5px; letter-spacing: 0.16em; line-height: 1.6;
  color: var(--ink-3); text-transform: uppercase; margin: 0 0 10px;
}
h1.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(25px, 7.4vw, 33px);
  line-height: 1.32;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin: 0 0 14px;
  text-wrap: balance;
}
h1.hero-title em { font-style: normal; color: var(--accent); }
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-size: 18px; font-weight: 700;
  letter-spacing: 0.04em; margin: 34px 0 14px;
}
.section-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}
.section-title small {
  font-family: var(--font-sans); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.1em; font-weight: 400; margin-left: auto;
}

/* ---------------------------------------------------------------- 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--sh-1);
}
.card.flush { padding: 0; overflow: hidden; }
.card.tight { padding: 14px; }

/* ---------------------------------------------------------------- 首页 hero */
.hero { padding: 26px 0 4px; position: relative; }
.hero-rule { display: flex; align-items: center; gap: 12px; margin: 18px 0 20px; }
.hero-rule::before, .hero-rule::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.hero-rule span { font-size: 10px; letter-spacing: 0.32em; color: var(--ink-3); }

.hero-sub {
  font-family: var(--font-serif);
  font-size: 15px; letter-spacing: 0.24em; color: var(--ink-2);
  margin: 0 0 20px;
}
.hero-sub b { color: var(--accent); font-weight: 700; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  padding: 6px 11px; border-radius: 999px;
  white-space: nowrap;
}
.meta-chip b { color: var(--ink); font-weight: 600; }
.meta-chip i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block;
}

/* 倒计时 */
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: linear-gradient(180deg, rgba(28, 27, 25, 0.96), rgba(28, 27, 25, 0.88));
  border-radius: var(--r-lg);
  padding: 16px 12px 13px;
  color: #f6f1e7;
  box-shadow: var(--sh-2);
  position: relative; overflow: hidden;
}
.countdown::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 100% at 50% 0%, rgba(169, 139, 84, 0.28), transparent 70%);
  pointer-events: none;
}
.countdown .cell { text-align: center; position: relative; }
.countdown .num {
  font-family: var(--font-serif); font-size: 26px; line-height: 1.1; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.countdown .lab { font-size: 10.5px; letter-spacing: 0.18em; color: rgba(246, 241, 231, 0.62); margin-top: 3px; }
.countdown .cd-note {
  grid-column: 1 / -1; font-size: 11.5px; color: rgba(246, 241, 231, 0.7);
  text-align: center; letter-spacing: 0.06em; margin-top: 2px;
  border-top: 1px solid rgba(246, 241, 231, 0.14); padding-top: 9px;
}
.countdown.over .num { color: #e6b3ad; }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.03em;
  transition: transform 0.16s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s;
  text-align: center;
}
.btn:active { transform: scale(0.975); }
.btn-primary {
  background: linear-gradient(180deg, #b73c33, var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(168, 49, 42, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-ink { background: var(--ink); color: var(--paper-2); box-shadow: var(--sh-1); }
.btn-ghost { background: rgba(255, 255, 255, 0.6); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-quiet { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 12.5px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.cta-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px;
  bottom: calc(var(--tabh) + var(--safe-b));
  z-index: 30;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(244, 238, 226, 0), rgba(244, 238, 226, 0.92) 42%, var(--paper));
  pointer-events: none;
}
.cta-bar .inner { margin: 0 auto; pointer-events: auto; display: flex; gap: 10px; align-items: center; }
.cta-bar .hint { font-size: 11px; color: var(--ink-3); line-height: 1.35; flex: 1; }
.cta-bar .hint b { display: block; color: var(--ink-2); font-size: 12.5px; }

/* ---------------------------------------------------------------- 主题 / 议题 */
.theme-grid { display: grid; gap: 10px; }
.theme-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 15px;
  box-shadow: var(--sh-1);
}
.theme-card .idx {
  font-family: var(--font-serif); font-size: 13px; color: var(--gold);
  letter-spacing: 0.06em; padding-top: 2px; flex: 0 0 auto; font-variant-numeric: tabular-nums;
}
.theme-card h3 {
  margin: 0 0 4px; font-size: 15px; font-family: var(--font-serif);
  letter-spacing: 0.03em; font-weight: 700;
}
.theme-card p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

/* 关键词三联 */
.keywords { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keyword {
  background: linear-gradient(180deg, var(--card), #fdf8ee);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 8px 14px;
  text-align: center;
  box-shadow: var(--sh-1);
}
.keyword b {
  display: block; font-family: var(--font-serif); font-size: 16px;
  letter-spacing: 0.14em; margin-bottom: 5px;
}
.keyword span { font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.08em; }

/* ---------------------------------------------------------------- 关键信息 grid */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-cell {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 14px; box-shadow: var(--sh-1);
}
.info-cell.wide { grid-column: 1 / -1; }
.info-cell .k { font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-3); margin-bottom: 5px; }
.info-cell .v { font-family: var(--font-serif); font-size: 15px; line-height: 1.45; letter-spacing: 0.02em; }
.info-cell .v small { display: block; font-family: var(--font-sans); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0; margin-top: 3px; }
.info-cell.accent .v { color: var(--accent); }

/* ---------------------------------------------------------------- 日程时间轴 */
.day { margin-bottom: 14px; }
.day-head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px;
}
.day-head .d {
  font-family: var(--font-serif); font-size: 20px; font-weight: 700; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.day-head .d small { font-size: 12px; color: var(--ink-3); font-family: var(--font-sans); font-weight: 400; margin-left: 3px; }
.day-head .tag {
  font-size: 10.5px; letter-spacing: 0.1em; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(168, 49, 42, 0.18);
}
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; border-left: 1px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 16px 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -4.5px; top: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold);
}
.timeline li.key::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline .time { font-size: 11.5px; letter-spacing: 0.08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline .what { font-family: var(--font-serif); font-size: 15px; letter-spacing: 0.02em; margin-top: 1px; }
.timeline .note { font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.55; }

/* ---------------------------------------------------------------- 表单 */
.form-head { margin: 20px 0 18px; }
.form-head h2 {
  font-family: var(--font-serif); font-size: 22px; margin: 0 0 4px; letter-spacing: 0.03em;
}
.form-head p { margin: 0; font-size: 12.5px; color: var(--ink-3); }

.steps {
  display: flex; align-items: center; gap: 6px; margin: 0 0 20px;
}
.steps .s {
  flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0;
}
.steps .s .dot {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line-strong); color: var(--ink-3); background: var(--card);
  transition: all 0.3s var(--ease);
}
.steps .s .txt {
  font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; transition: color 0.3s;
}
.steps .s .bar { flex: 1; height: 1px; background: var(--line); min-width: 6px; }
.steps .s:last-child { flex: 0 0 auto; }
.steps .s.done .dot { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.steps .s.cur .dot { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.steps .s.cur .txt, .steps .s.done .txt { color: var(--ink); font-weight: 600; }

.step-panel { display: none; }
.step-panel.cur { display: block; animation: viewIn 0.34s var(--ease) both; }

.fieldset { border: 0; padding: 0; margin: 0 0 4px; }
.fieldset > legend {
  padding: 0; margin: 0 0 12px;
  font-family: var(--font-serif); font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
}
.fieldset > legend::before { content: ""; width: 3px; height: 13px; background: var(--gold); border-radius: 2px; }

.field { margin-bottom: 16px; }
.field > label, .field > .label {
  display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 7px; letter-spacing: 0.02em;
}
.field > label i { color: var(--accent); font-style: normal; margin-left: 2px; }
.field .hint { font-size: 11px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.field .err { font-size: 11.5px; color: var(--danger); margin-top: 6px; display: none; }
.field.has-err .err { display: block; }
.field.has-err input, .field.has-err textarea, .field.has-err select,
.field.has-err .chip-group { border-color: rgba(168, 49, 42, 0.55); background: rgba(168, 49, 42, 0.035); }

input[type="text"], input[type="tel"], input[type="email"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%;
  font: inherit; font-size: 14.5px; color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 13px;
  min-height: 46px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  appearance: none;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(28, 27, 25, 0.07);
}
input::placeholder, textarea::placeholder { color: #b3aa9a; }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

/* 单选 / 多选 chip */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; cursor: pointer; user-select: none;
}
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 7px 14px;
  font-size: 13px; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.chip input:checked + span {
  background: var(--ink); color: var(--paper-2); border-color: var(--ink);
  box-shadow: 0 6px 16px -10px rgba(28, 27, 25, 0.9);
}
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(28, 27, 25, 0.18); }
.chip.multi input:checked + span { background: var(--accent); border-color: var(--accent); }

/* 主题卡片式多选（议题） */
.track-pick { display: grid; gap: 8px; }
.track-pick .chip { display: block; }
.track-pick .chip input { position: absolute; }
.track-pick .chip span {
  display: block; width: 100%; text-align: left; border-radius: var(--r-md);
  padding: 12px 14px; min-height: 0; white-space: normal;
}
.track-pick .chip span b {
  display: block; font-family: var(--font-serif); font-size: 14px; letter-spacing: 0.03em; margin-bottom: 2px;
}
.track-pick .chip span em {
  display: block; font-style: normal; font-size: 11.5px; line-height: 1.5; color: var(--ink-3);
}
.track-pick .chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.track-pick .chip input:checked + span em { color: rgba(246, 241, 231, 0.7); }

/* 开关式分段 */
.segmented { display: flex; gap: 0; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: rgba(255,255,255,.7); }
.segmented label { flex: 1; position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span {
  display: block; text-align: center; padding: 12px 8px; font-size: 13.5px; color: var(--ink-2);
  transition: all 0.18s var(--ease);
}
.segmented label + label span { border-left: 1px solid var(--line); }
.segmented input:checked + span { background: var(--ink); color: var(--paper-2); }

/* 上传 */
.upload {
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  padding: 16px; text-align: center; background: rgba(255, 255, 255, 0.5);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.upload:hover { border-color: var(--ink-3); background: rgba(255, 255, 255, 0.8); }
.upload input { display: none; }
.upload .u-ico { font-size: 20px; color: var(--gold); line-height: 1; }
.upload .u-t { font-size: 13px; margin-top: 6px; }
.upload .u-s { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.upload.filled { border-style: solid; border-color: rgba(63, 107, 79, 0.4); background: rgba(63, 107, 79, 0.05); text-align: left; }
.upload .file-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.upload .file-row .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload .file-row .rm { color: var(--accent); cursor: pointer; font-size: 12px; }

/* 摘要计数 */
.counter { font-size: 11px; color: var(--ink-3); text-align: right; margin-top: 5px; font-variant-numeric: tabular-nums; }
.counter.ok { color: var(--ok); }

/* 折叠区块（条件显示） */
.cond { display: none; margin-top: 2px; padding: 14px; border-radius: var(--r-md); background: rgba(169, 139, 84, 0.06); border: 1px solid rgba(169, 139, 84, 0.18); }
.cond.show { display: block; animation: viewIn 0.3s var(--ease) both; }
.cond .field:last-child { margin-bottom: 0; }

/* 表单底部操作 */
.form-actions { display: flex; gap: 10px; margin-top: 22px; }
.form-actions .btn { flex: 1; }

/* 复习确认 */
.review-block { border-top: 1px solid var(--line); padding: 14px 0; }
.review-block:first-child { border-top: 0; padding-top: 0; }
.review-block h4 {
  margin: 0 0 10px; font-size: 12px; letter-spacing: 0.14em; color: var(--ink-3); font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
}
.review-block h4 button { font-size: 11.5px; color: var(--accent); background: none; border: 0; cursor: pointer; letter-spacing: 0; }
.rv-row { display: flex; gap: 12px; font-size: 13.5px; padding: 4px 0; }
.rv-row .k { flex: 0 0 88px; color: var(--ink-3); font-size: 12.5px; }
.rv-row .v { flex: 1; word-break: break-word; }

.agree {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.6;
  background: rgba(169, 139, 84, 0.07); border: 1px solid rgba(169, 139, 84, 0.2);
  border-radius: var(--r-md); padding: 13px 14px; cursor: pointer;
}
.agree input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--accent); flex: 0 0 17px; }

/* ---------------------------------------------------------------- 成功页 */
.success { text-align: center; padding-top: 26px; }
.success .seal.lg { margin: 0 auto 18px; transform: none; }
.success h2 {
  font-family: var(--font-serif); font-size: 24px; margin: 0 0 8px; letter-spacing: 0.05em;
}
.success .sub { font-size: 13px; color: var(--ink-3); margin: 0 0 22px; }
.ticket {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); overflow: hidden; text-align: left; position: relative;
}
.ticket-top {
  padding: 18px; background: linear-gradient(160deg, #1c1b19, #2a2723); color: var(--paper-2);
  position: relative;
}
.ticket-top::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 100% 0%, rgba(169, 139, 84, 0.3), transparent 60%);
}
.ticket-top .tt-k { font-size: 10.5px; letter-spacing: 0.2em; opacity: 0.62; position: relative; }
.ticket-top .tt-id {
  font-family: var(--font-serif); font-size: 22px; letter-spacing: 0.06em; margin-top: 5px;
  position: relative; font-variant-numeric: tabular-nums;
}
.ticket-top .tt-st { position: absolute; right: 16px; bottom: 16px; z-index: 1; }
.badge {
  display: inline-block; font-size: 11px; padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.08em; border: 1px solid currentColor;
}
.badge.submitted { color: #e0c9a0; }
.badge.confirmed { color: #9fd0b0; }
.badge.paid { color: #a8e0c0; }
.badge.cancelled { color: #e6a9a3; }
.ticket-body { padding: 16px 18px 18px; }
.ticket-body .t-row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.ticket-body .t-row:last-child { border-bottom: 0; }
.ticket-body .t-row .k { color: var(--ink-3); flex: 0 0 auto; }
.ticket-body .t-row .v { text-align: right; word-break: break-word; }

.next-steps { text-align: left; margin-top: 20px; }
.next-steps h4 {
  font-family: var(--font-serif); font-size: 15px; margin: 0 0 10px; letter-spacing: 0.04em;
}
.next-steps ol { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.next-steps ol b { color: var(--accent); }

.qr-block { text-align: center; margin-top: 20px; }
.qr-block img { width: 168px; margin: 0 auto 10px; border-radius: 8px; background: #fff; padding: 6px; box-shadow: var(--sh-1); }
.qr-block .cap { font-size: 11.5px; color: var(--ink-3); }
.qr-placeholder {
  width: 168px; height: 168px; margin: 0 auto 10px; border-radius: 8px;
  border: 1px dashed var(--line-strong); background: rgba(255,255,255,.6);
  display: grid; place-items: center; text-align: center; padding: 14px;
  font-size: 11.5px; color: var(--ink-3); line-height: 1.6;
}

/* ---------------------------------------------------------------- 我的 */
.mine-head { display: flex; align-items: center; gap: 12px; margin: 8px 0 20px; }
.mine-head .nm { font-family: var(--font-serif); font-size: 19px; letter-spacing: 0.03em; }
.mine-head .sg { font-size: 12px; color: var(--ink-3); }

.empty { text-align: center; padding: 40px 20px; }
.empty .ico { font-size: 30px; color: var(--gold); opacity: 0.7; }
.empty h3 { font-family: var(--font-serif); font-size: 17px; margin: 12px 0 6px; }
.empty p { font-size: 12.5px; color: var(--ink-3); margin: 0 0 18px; }

.list-card { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-card:last-child { border-bottom: 0; }
.list-card .lc-main { flex: 1; min-width: 0; }
.list-card .lc-t { font-size: 13.5px; }
.list-card .lc-s { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------------------------------------------------------------- 后台 */
.admin-gate { padding: 40px 0; text-align: center; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-cell {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px; box-shadow: var(--sh-1);
}
.stat-cell .n { font-family: var(--font-serif); font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-cell .l { font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; margin-top: 3px; }
.stat-cell.accent .n { color: var(--accent); }

.bar-row { margin-bottom: 10px; }
.bar-row .bl { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.bar-row .bl span:last-child { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bar-track { height: 6px; border-radius: 3px; background: rgba(28,27,25,.07); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--accent)); transition: width .6s var(--ease); }

.admin-row {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 13px;
  margin-bottom: 9px; background: var(--card);
}
.admin-row .ar-top { display: flex; align-items: baseline; gap: 8px; }
.admin-row .ar-nm { font-family: var(--font-serif); font-size: 15px; }
.admin-row .ar-id { font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-left: auto; }
.admin-row .ar-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.55; }
.admin-row .ar-act { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.pill-select {
  font-size: 11.5px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.7); min-height: 0;
}

/* ---------------------------------------------------------------- 通知全文 */
.notice-article { font-size: 13.5px; line-height: 1.95; color: var(--ink-2); }
.notice-article h3 {
  font-family: var(--font-serif); font-size: 16px; color: var(--ink); margin: 24px 0 9px;
  letter-spacing: 0.04em;
}
.notice-article p { margin: 0 0 12px; text-indent: 2em; }
.notice-article p.noindent { text-indent: 0; }
.notice-article .sign { text-align: right; line-height: 2; font-size: 13px; margin-top: 22px; }

details.fold {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card);
  padding: 0; overflow: hidden; margin-top: 10px;
}
details.fold > summary {
  padding: 13px 15px; font-size: 13.5px; cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 8px;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "＋"; margin-left: auto; color: var(--ink-3); font-size: 13px; }
details.fold[open] > summary::after { content: "－"; }
details.fold > .fold-body { padding: 0 15px 15px; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }

/* ---------------------------------------------------------------- 底部 tabbar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(251, 247, 238, 0.92);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
  max-width: 520px; margin: 0 auto;
}
.tabbar button {
  appearance: none; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 58px; color: var(--ink-3); font-size: 10.5px; letter-spacing: 0.06em;
  transition: color 0.2s;
}
.tabbar button svg { width: 21px; height: 21px; stroke-width: 1.6; transition: transform .25s var(--ease); }
.tabbar button.active { color: var(--accent); }
.tabbar button.active svg { transform: translateY(-1px) scale(1.04); }
.tabbar button:active svg { transform: scale(0.92); }

/* ---------------------------------------------------------------- Toast / Sheet */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabh) + var(--safe-b) + 22px);
  transform: translate(-50%, 14px);
  max-width: min(88vw, 420px);
  background: rgba(28, 27, 25, 0.94); color: var(--paper-2);
  font-size: 13px; line-height: 1.5; padding: 11px 17px; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: all 0.32s var(--ease);
  z-index: 90; box-shadow: var(--sh-3); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: rgba(140, 39, 33, 0.96); }

.mask {
  position: fixed; inset: 0; z-index: 80; background: rgba(28, 27, 25, 0.42);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.mask.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 81;
  width: min(520px, 100%); transform: translate(-50%, 102%);
  background: var(--paper-2);
  border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(20px + var(--safe-b));
  transition: transform 0.42s var(--ease);
  box-shadow: var(--sh-3);
  max-height: 86vh; overflow-y: auto;
}
.sheet.show { transform: translate(-50%, 0); }
.sheet .grab { width: 38px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 6px auto 14px; }
.sheet h3 { font-family: var(--font-serif); font-size: 19px; margin: 0 0 6px; letter-spacing: 0.02em; }
.sheet .sh-sub { font-size: 12.5px; color: var(--ink-3); margin: 0 0 16px; line-height: 1.6; }
.sheet .sh-actions { display: flex; gap: 9px; margin-top: 16px; }
.sheet .sh-actions .btn { flex: 1; }

/* ---------------------------------------------------------------- 打印凭证 */
#print-area { display: none; }
@media print {
  body { background: #fff; }
  .topbar, .tabbar, .cta-bar, .view, .toast, .mask, .sheet, .print-hide { display: none !important; }
  #print-area { display: block !important; padding: 0 6mm; }
  .print-sheet { font-family: var(--font-sans); }
  .print-sheet h1 { font-family: var(--font-serif); font-size: 19pt; text-align: center; margin: 0 0 4pt; }
  .print-sheet .ps-sub { text-align: center; font-size: 10pt; color: #555; margin-bottom: 14pt; }
  .print-sheet .ps-id { text-align: center; font-size: 12pt; letter-spacing: .06em; margin-bottom: 12pt; }
  .print-sheet table { width: 100%; border-collapse: collapse; font-size: 10.5pt; }
  .print-sheet th, .print-sheet td { border: 1px solid #999; padding: 5pt 7pt; text-align: left; vertical-align: top; }
  .print-sheet th { background: #f0ece3; width: 30%; font-weight: 600; }
  .print-sheet .ps-foot { margin-top: 16pt; font-size: 9.5pt; color: #555; line-height: 1.7; }
  @page { margin: 12mm; }
}

/* ---------------------------------------------------------------- 动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* 桌面端：给一点舞台感 */
@media (min-width: 600px) {
  body { background-image: radial-gradient(70% 50% at 50% 0%, #f8f2e6, #efe7d8 70%), none; }
  .shell {
    box-shadow: 0 0 0 1px rgba(28, 27, 25, 0.06), 0 40px 80px -50px rgba(60, 45, 25, 0.5);
    background: transparent;
  }
  .tabbar { box-shadow: 0 -10px 30px -24px rgba(60, 45, 25, 0.5); }
}
