/* 组件。每个组件在 specimen.html 里有样本；页面只许用这里的组件拼。 */

/* ───────── 身份颜色 ───────── */
.role-student { --role: var(--role-student); --on-role: var(--ink); }
.role-teacher { --role: var(--role-teacher); --on-role: #fff; }
.role-staff   { --role: var(--role-staff);   --on-role: #fff; }
.role-friend  { --role: var(--role-friend);  --on-role: #fff; }

/* ───────── 胸牌（全案的主角）─────────
   尺寸只由 --bw（牌宽）决定，内部全部用 em，所以可以整体缩放。 */
.badge {
  --bw: 250px;
  --lanyard: 11em;            /* 挂绳露出来的长度 */
  position: relative;
  width: var(--bw);
  font-size: calc(var(--bw) / 20);
  line-height: 1.2;
  color: var(--ink);
}
.badge__lanyard {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: var(--lanyard);
  overflow: visible;
  pointer-events: none;
}
.badge__card {
  position: relative;
  z-index: 1;
  margin-top: -1em;
  background: var(--paper);
  border-radius: var(--r-badge);
  box-shadow:
    0 0 0 0.08em rgba(29, 43, 18, 0.1),
    0 0.15em 0 rgba(29, 43, 18, 0.12),
    0 1.8em 2.2em -1.5em rgba(12, 22, 6, 0.6);
}
.badge__band {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 3em;
  padding: 0 1.1em;
  border-radius: var(--r-badge) var(--r-badge) 0 0;
  background: var(--role);
  color: var(--on-role);
  font-size: 1em;
}
.badge__band > span { font-size: 0.88em; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.badge__band > span:last-child { text-align: right; }
.badge__slot {
  width: 3.2em; height: 0.85em;
  border-radius: 1em;
  background: rgba(12, 22, 6, 0.42);
  box-shadow: inset 0 0.12em 0.1em rgba(0, 0, 0, 0.35);
}
.badge__photo {
  position: relative;
  margin: 1.1em 1.1em 0;
  aspect-ratio: 1 / 1;
  border-radius: 0.5em;
  overflow: hidden;
  background: var(--green-100);
}
.badge__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.badge__body { padding: 0.95em 1.1em 1.05em; }
.badge__name {
  font-size: 2.7em;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.badge__name.is-long { font-size: 2.15em; }
.badge__name.is-xlong { font-size: 1.7em; letter-spacing: -0.015em; }
.badge__zh { margin-top: 0.4em; font-size: 1.2em; font-weight: 500; color: var(--ink-2); }
.badge__foot {
  display: flex; justify-content: space-between; gap: 1em;
  margin-top: 0.9em; padding-top: 0.7em;
  border-top: 0.1em dashed var(--line);
  font-size: 0.86em; color: var(--ink-2);
}
.badge__foot b { color: var(--ink); font-weight: 700; }
.badge__seal {
  position: absolute; z-index: 2;
  right: 0.2em; top: 15.6em;
  width: 8em;
  transform: rotate(-11deg);
  pointer-events: none;
}

/* 小胸牌：列表和横滑里用 */
.mini { width: 104px; flex: none; text-decoration: none; color: var(--ink); }
.mini__card {
  position: relative;
  background: var(--paper);
  border-radius: 10px;
  padding: 0 6px 8px;
  box-shadow: 0 0 0 1px rgba(29, 43, 18, 0.1), 0 10px 14px -12px rgba(12, 22, 6, 0.55);
}
.mini__band {
  height: 14px; margin: 0 -6px 6px;
  border-radius: 10px 10px 0 0;
  background: var(--role);
  display: grid; place-items: center;
}
.mini__band::after { content: ""; width: 18px; height: 4px; border-radius: 4px; background: rgba(12, 22, 6, 0.4); }
.mini__photo { aspect-ratio: 1 / 1; border-radius: 5px; overflow: hidden; background: var(--green-100); }
.mini__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.mini__name { margin-top: 7px; font-size: var(--t-sm); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.mini__note { margin-top: 6px; padding: 0 2px; font-size: var(--t-xs); line-height: 1.3; color: var(--ink-2); }

/* ───────── 印章 ───────── */
.stamp { display: block; overflow: visible; mix-blend-mode: multiply; }
.stamp text { font-family: var(--font); font-weight: 800; fill: currentColor; }
.stamp--arrive { color: var(--ink-arrive); }
.stamp--depart { color: var(--ink-depart); }
.stamp--seal   { color: var(--ink-seal); }
.stamp--post   { color: var(--ink-post); }

/* ───────── 邮票（城市小景）和明信片 ───────── */
.pstamp {
  --tooth: 9px;
  width: calc(var(--tooth) * 11);
  height: calc(var(--tooth) * 14);
  padding: 6px;
  background: var(--paper);
  -webkit-mask:
    linear-gradient(#000 0 0) center / calc(100% - var(--tooth)) calc(100% - var(--tooth)) no-repeat,
    radial-gradient(circle, transparent 0 calc(var(--tooth) * 0.3), #000 calc(var(--tooth) * 0.3 + 0.5px)) calc(var(--tooth) * -0.5) calc(var(--tooth) * -0.5) / var(--tooth) var(--tooth);
  mask:
    linear-gradient(#000 0 0) center / calc(100% - var(--tooth)) calc(100% - var(--tooth)) no-repeat,
    radial-gradient(circle, transparent 0 calc(var(--tooth) * 0.3), #000 calc(var(--tooth) * 0.3 + 0.5px)) calc(var(--tooth) * -0.5) calc(var(--tooth) * -0.5) / var(--tooth) var(--tooth);
}
.pstamp img { width: 100%; height: 100%; object-fit: cover; }

.postcard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(29, 43, 18, 0.08), 0 16px 22px -18px rgba(12, 22, 6, 0.55);
  transform: rotate(-1.1deg);
}
.postcard__msg { font-size: var(--t-lg); font-weight: 500; line-height: 1.28; letter-spacing: -0.005em; text-wrap: pretty; }
.postcard__meta { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--ink-2); line-height: 1.4; }
.postcard__meta b { display: block; color: var(--ink); font-size: var(--t-md); font-weight: 800; }
.postcard__side {
  position: relative;
  padding-left: var(--s-4);
  border-left: 1.5px dashed var(--line);
  filter: drop-shadow(0 1px 1px rgba(12, 22, 6, 0.25));
}
.postcard__side .stamp {
  position: absolute; left: -24px; top: 80px;
  width: 138px;
  transform: rotate(-8deg);
  filter: none;
}
.postcard__left { display: flex; flex-direction: column; justify-content: space-between; min-height: 176px; }

/* ───────── 按钮 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 54px; padding: 0 var(--s-6);
  border-radius: var(--r-btn);
  font-size: var(--t-md); font-weight: 800; letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 0.12s var(--ease-out), background-color 0.12s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--green-600); color: #fff; }
.btn--primary:active { background: var(--green-700); }
.btn--onstage { background: var(--paper); color: var(--green-800); }
.btn--block { display: flex; width: 100%; }

.btn-sm {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-size: var(--t-sm); font-weight: 700;
  white-space: nowrap; text-decoration: none; color: var(--ink);
}
.btn-sm:active { background: var(--green-100); }
.btn-sm.is-done { box-shadow: inset 0 0 0 1.5px var(--green-600); color: var(--green-700); }

.link-onstage {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #fff; font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}

/* 圆形图标按钮（顶栏） */
.iconbtn {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.iconbtn svg { width: 22px; height: 22px; }
.langbtn {
  flex: none; white-space: nowrap;
  min-height: 42px; padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  color: #fff; font-size: var(--t-sm); font-weight: 700;
}

/* ───────── 版块 ───────── */
.sec { padding: var(--s-8) var(--gutter) 0; }
.sec__h { font-size: var(--t-lg); font-weight: 800; letter-spacing: -0.012em; line-height: 1.2; }
.sec__sub { margin-top: 2px; font-size: var(--t-sm); color: var(--ink-2); }
.sec__body { margin-top: var(--s-4); }

/* 联系方式：一行一种，不做卡片 */
.reach { border-top: 1px solid var(--line); }
.reach li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.reach__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green-100); color: var(--green-700); }
.reach__icon svg { width: 20px; height: 20px; }
.reach__label { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.25; }
.reach__value { font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 横向滑动的一排 */
.hscroll {
  display: flex; gap: var(--s-3);
  margin: 0 calc(var(--gutter) * -1);
  padding: 4px var(--gutter) var(--s-5);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }

/* 一句话近况 */
.now-line { font-size: var(--t-xl); font-weight: 500; line-height: 1.25; letter-spacing: -0.012em; text-wrap: pretty; }

/* 示例资料的小标记 */
.sample-tag {
  display: inline-block; padding: 1px 8px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--t-xs); color: var(--ink-3);
}

/* ───────── 底部标签栏 ───────── */
.tabs {
  position: fixed; z-index: 20;
  left: 50%; bottom: 0;
  width: min(100%, var(--col));
  transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.tabs[hidden] { display: none; }
.tabs a {
  display: grid; place-items: center; align-content: center; gap: 3px;
  color: var(--ink-3);
  font-size: 0.6875rem; font-weight: 700;
  text-decoration: none;
}
.tabs a svg { width: 24px; height: 24px; }
.tabs a[aria-current="page"] { color: var(--green-700); }

/* 轻提示 */
.toast {
  position: fixed; z-index: 30;
  left: 50%; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 16px);
  transform: translate(-50%, 12px);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  font-size: var(--t-sm); font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ═════════ 第二批组件（12-04，铺页面用）═════════ */

/* 浅底上的语言按钮 */
.langbtn--light { background: var(--green-100); color: var(--green-800); }
.langbtn--photo { background: rgba(29, 43, 18, 0.58); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* 页面标题区（浅底的标签页用） */
.pagehead {
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4);
  padding: var(--s-5) var(--gutter) 0;
  padding-top: calc(var(--s-5) + env(safe-area-inset-top, 0px));
}
.pagehead__h { font-size: var(--t-2xl); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
.pagehead__sub { margin-top: var(--s-2); font-size: var(--t-md); color: var(--ink-2); line-height: 1.4; max-width: 30em; text-wrap: pretty; }
.sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.sec__more { flex: none; font-size: var(--t-sm); font-weight: 700; color: var(--green-700); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* 次要按钮、危险按钮、文字按钮 */
.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--quiet:active { background: var(--green-100); }
.btn--danger { background: transparent; color: var(--role-friend); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-sm--fill { background: var(--green-600); color: #fff; box-shadow: none; }
.btn-sm--fill:active { background: var(--green-700); }
.btn-sm--danger { color: #B3341F; box-shadow: inset 0 0 0 1.5px currentColor; }
.textlink {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; color: var(--green-700);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.btn[disabled], .btn-sm[disabled] { opacity: 0.45; pointer-events: none; }

/* ───────── 表单 ───────── */
.field { display: grid; gap: 6px; }
.field + .field, .field + .fieldset, .fieldset + .field, .fieldset + .fieldset { margin-top: var(--s-5); }
.field__label { font-weight: 800; font-size: var(--t-md); line-height: 1.3; }
.field__opt { font-weight: 500; color: var(--ink-3); }
.field__hint { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.4; }
.field__error { font-size: var(--t-sm); font-weight: 700; color: #B3341F; line-height: 1.35; }
.field__error:empty { display: none; }
.input, .select, .textarea {
  width: 100%; min-height: 52px;
  padding: 12px 14px;
  border: 0; border-radius: var(--r-field);
  background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: var(--t-md);   /* 16px：iPhone 不会自动放大 */
  line-height: 1.35;
  -webkit-appearance: none; appearance: none;
}
.input:focus, .select:focus, .textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--green-600); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #B3341F; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.textarea { min-height: 96px; resize: vertical; }
.select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D2B12' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
.count { justify-self: end; font-size: var(--t-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3); }
.pair input[type="date"] { min-width: 0; padding-right: 8px; }
.pair > .field { margin-top: 0; }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset > legend { padding: 0; margin-bottom: var(--s-3); }

/* 身份选择：四块，带挂绳色条 */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box {
  display: block; height: 100%;
  padding: 0 var(--s-3) var(--s-3);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  overflow: hidden;
}
.choice__box::before { content: ""; display: block; height: 10px; margin: 0 calc(var(--s-3) * -1) var(--s-3); background: var(--role); }
.choice__name { display: block; font-weight: 800; line-height: 1.2; }
.choice__desc { display: block; margin-top: 2px; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.3; }
.choice input:checked + .choice__box { box-shadow: inset 0 0 0 2.5px var(--ink); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--role-teacher); outline-offset: 2px; }

/* 插画头像选择 */
.picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-2); }
.pick { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--green-100); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick input:checked ~ img { outline: 3px solid var(--ink); outline-offset: -3px; }
.pick input:focus-visible ~ img { outline: 3px solid var(--role-teacher); outline-offset: -3px; }

/* 上传 */
.upload { display: flex; align-items: center; gap: var(--s-4); }
.upload__thumb { width: 72px; aspect-ratio: 4 / 5; flex: none; border-radius: 8px; overflow: hidden; background: var(--green-100); box-shadow: inset 0 0 0 1.5px var(--line); }
.upload__thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload__thumb--qr { aspect-ratio: 1; }
.upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* 勾选 */
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; cursor: pointer; line-height: 1.4; }
.check input {
  -webkit-appearance: none; appearance: none; margin: 0;
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-3);
  display: grid; place-items: center; cursor: pointer;
}
.check input:checked { background: var(--green-600); box-shadow: none; }
.check input:checked::after { content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-2px) rotate(-45deg); }
.check--small { font-size: var(--t-sm); color: var(--ink-2); }

/* 搜索框 */
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 44px; }

/* 筛选标签：横排，可以横滑 */
.chips { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  min-height: 38px; padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: var(--t-sm); font-weight: 700; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip__dot { width: 10px; height: 10px; border-radius: 3px; background: var(--role); }

/* 两段切换 */
.seg { display: inline-grid; grid-auto-flow: column; padding: 3px; border-radius: var(--r-pill); background: var(--green-100); }
.seg button { min-height: 36px; padding: 0 16px; border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(12, 22, 6, 0.18); }

/* ───────── 名录 ───────── */
.group + .group { margin-top: var(--s-8); }
.group__head { display: flex; align-items: center; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1.5px solid var(--ink); }
.group__head .pstamp { --tooth: 5px; padding: 3px; filter: drop-shadow(0 1px 1px rgba(12, 22, 6, 0.25)); }
.group__title { font-size: var(--t-lg); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.group__meta { font-size: var(--t-sm); color: var(--ink-2); }
.group__year { font-size: var(--t-3xl); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

.person {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.person:active { background: var(--green-100); }
.person__pic { position: relative; width: 52px; aspect-ratio: 4 / 5; border-radius: 7px; overflow: hidden; background: var(--green-100); }
.person__pic::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: var(--role); z-index: 1; }
.person__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.person__name, .person__sub { display: block; }
.person__name { font-weight: 800; line-height: 1.2; letter-spacing: -0.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person__sub { margin-top: 2px; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person__years { font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.person__years small { display: block; font-size: var(--t-xs); font-weight: 500; color: var(--ink-3); }

/* ───────── 空状态、提示条 ───────── */
.empty { display: grid; justify-items: center; text-align: center; padding: var(--s-8) var(--s-4); }
.empty img { width: min(200px, 56vw); height: auto; aspect-ratio: 1; mix-blend-mode: multiply; }
.empty__h { margin-top: var(--s-2); font-size: var(--t-lg); font-weight: 800; }
.empty__p { margin-top: var(--s-2); max-width: 24em; color: var(--ink-2); text-wrap: pretty; }
.empty .btn, .empty .textlink { margin-top: var(--s-4); }

.notice {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: center;
  padding: var(--s-3) var(--s-4);
  border-radius: 12px;
  background: var(--green-100);
  font-size: var(--t-sm); line-height: 1.4; color: var(--ink);
}
.notice img { width: 56px; height: 56px; mix-blend-mode: multiply; }
.notice b { display: block; font-size: var(--t-md); }

/* 步骤：第几步、共几步 */
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); }
.steps i.is-on { background: #fff; }
.steps-label { margin-top: var(--s-2); font-size: var(--t-sm); color: rgba(255, 255, 255, 0.75); }

/* 底部固定的操作条（表单页） */
.actionbar {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; gap: var(--s-3);
  margin-top: var(--s-8);
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  background: var(--green-50);
  border-top: 1px solid var(--line);
}
.actionbar .btn { flex: 1; }
.actionbar .btn--quiet { flex: 0 0 auto; }

/* 菜单式列表（“我”页面） */
.menu { border-top: 1px solid var(--line); }
.menu > li > a, .menu > li > button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3);
  width: 100%; min-height: 60px; padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  text-align: left; text-decoration: none; color: var(--ink);
}
.menu b { display: block; font-weight: 800; line-height: 1.25; }
.menu span.sub { display: block; margin-top: 2px; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.35; }
.menu svg { width: 20px; height: 20px; color: var(--ink-3); }
.menu .is-danger b { color: #B3341F; }

/* 确认框 */
.dialog {
  width: min(calc(100% - 40px), 400px);
  padding: var(--s-6);
  border: 0; border-radius: 18px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(12, 22, 6, 0.55);
}
.dialog::backdrop { background: rgba(29, 43, 18, 0.5); }
.dialog h2 { font-size: var(--t-xl); font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; }
.dialog p { margin-top: var(--s-3); color: var(--ink-2); }
.dialog__acts { display: grid; gap: var(--s-2); margin-top: var(--s-6); }

/* 二维码 */
.qr { margin-top: var(--s-3); padding: var(--s-4); border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.qr img { width: min(240px, 70%); margin: 0 auto; }
.qr p { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--ink-2); }

/* 明信片做链接时 */
a.postcard-link { display: block; text-decoration: none; color: inherit; }
.postcard__by { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); font-size: var(--t-sm); color: var(--ink-2); }
.postcard__by img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.hscroll .postcard-link { width: 300px; flex: none; padding: 6px 2px 2px; }
