:root {
  --paper: #f2eddf;
  --paper-deep: #e6dec9;
  --card: #fcf9f1;
  --ink: #1b241c;
  --ink-2: #34402f;
  --muted: #6f7867;
  --line: rgba(43, 54, 39, 0.14);
  --line-strong: rgba(43, 54, 39, 0.28);
  --gold: #a9884e;
  --gold-soft: #c9ae7d;
  --olive: #3e4a36;
  --olive-deep: #2c3627;
  --khaki: #c9be9e;
  --navy: #2f3a2c;
  --navy-2: #3d4a37;
  --danger: #8e3b32;
  --ok: #3d6b4f;
  --radius: 5px;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

/* 有些组件显式写了 display:grid/flex，会盖掉 hidden 属性的 UA 样式 */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  background:
    radial-gradient(120% 70% at 50% -10%, #fbf8ee 0%, var(--paper) 46%, var(--paper-deep) 100%)
      fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(62, 74, 54, 0.035) 0 1px,
      transparent 1px 26px
    ),
    radial-gradient(90% 55% at 50% 0%, rgba(201, 190, 158, 0.2), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 1;
  padding-bottom: 40px;
}

.page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--olive-deep) 0 34%,
    var(--khaki) 34% 67%,
    var(--gold) 67% 100%
  );
}

/* ---------------------------------------------------------------- 页头 */

.hero {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  padding: 54px 26px 30px;
  text-align: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}

.hero__eyebrow::after {
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(29px, 7.6vw, 42px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.hero__subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.hero__dates {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 100%;
  margin-top: 22px;
  padding: 9px 20px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: 14px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.hero__dates .dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.hero__intro {
  max-width: 500px;
  margin: 20px auto 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.9;
  text-align: left;
  white-space: pre-line;
}

.emblem {
  position: absolute;
  top: 34px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--olive);
  opacity: 0.9;
  transform: rotate(-4deg);
}

.emblem::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  border: 1px solid rgba(62, 74, 54, 0.22);
  border-radius: 50%;
}

.emblem__star {
  width: 38px;
  height: 38px;
  fill: var(--olive);
}

.emblem__text {
  padding-top: 3px;
  border-top: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.hero__ribbon {
  display: flex;
  justify-content: center;
  gap: 2px;
  width: 132px;
  height: 4px;
  margin: 14px auto 0;
}

.hero__ribbon i {
  flex: 1;
  height: 100%;
  background: var(--olive);
}

.hero__ribbon i:nth-child(2) {
  background: var(--khaki);
}

.hero__ribbon i:nth-child(3) {
  background: var(--gold);
}

.hero__serial {
  margin: 9px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}

/* ---------------------------------------------------------------- 主体 */

main {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 20px 140px;
}

.form-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -48px rgba(18, 32, 43, 0.55);
  padding: 6px 26px 30px;
}

.form-card::before,
.form-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
  opacity: 0.75;
}

.form-card::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.form-card::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.block {
  padding: 26px 0 10px;
  border-top: 1px solid var(--line);
}

.block:first-of-type {
  border-top: 0;
}

.block__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.block__num {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.block__head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.block__head .rule {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--khaki) 0 5px,
    transparent 5px 9px
  );
  opacity: 0.7;
}

.hint {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------------------------------------------------------------- 表单 */

.field {
  display: block;
  margin-bottom: 18px;
}

.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.field__label em {
  font-style: normal;
  color: var(--muted);
  opacity: 0.7;
  letter-spacing: 0.06em;
}

.field__label em[data-req] {
  color: var(--gold);
  opacity: 0.9;
}

.hint em {
  color: var(--gold);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fbf7ef;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.7;
}

.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A9884E' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: #fffdf8;
  box-shadow: 0 0 0 3px rgba(169, 136, 78, 0.14);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a3a39b;
}

.field__err {
  display: block;
  min-height: 0;
  margin-top: 6px;
  color: var(--danger);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.field__err:empty {
  display: none;
}

.is-invalid input,
.is-invalid select,
.is-invalid textarea {
  border-color: var(--danger);
  background: #fdf6f4;
}

/* ------------------------------------------------------------ 乘车卡片 */

.trip {
  display: grid;
  grid-template-columns: 88px 1fr;
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fbf7ec;
}

.trip__date {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 16px 8px;
  overflow: hidden;
  background: linear-gradient(165deg, var(--olive) 0%, var(--olive-deep) 100%);
  color: #f6f2e9;
}

.trip__date::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -8px;
  width: 56px;
  height: 56px;
  opacity: 0.12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 5l13 27 30 4-22 21 5 30-26-14-26 14 5-30L7 36l30-4z' fill='%23c9be9e'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transform: rotate(8deg);
}

.trip__date strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.trip__dow {
  color: var(--khaki);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
}

.trip__body {
  padding: 13px 15px 15px;
  min-width: 0;
}

.trip__name {
  margin-bottom: 9px;
  color: var(--gold);
  font-size: 12.5px;
  letter-spacing: 0.2em;
}

.trip .field {
  margin-bottom: 0;
}

.trip .field__label {
  margin-bottom: 6px;
  letter-spacing: 0.1em;
}

.trip-select {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fbf7ec;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.trip-select:hover {
  border-color: var(--gold-soft);
}

.trip-select:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169, 136, 78, 0.14);
}

.trip-select__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #9c9a8d;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-select__meta {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.trip-select__arrow {
  flex: none;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  transform: rotate(90deg);
}

.trip-select.is-selected {
  border-color: rgba(169, 136, 78, 0.6);
  background: #fffdf6;
  box-shadow: inset 3px 0 0 var(--olive);
}

.trip-select.is-selected .trip-select__label {
  color: var(--ink);
  font-weight: 500;
}

.trip.is-selected .trip__date {
  box-shadow: inset 0 0 0 1px rgba(201, 190, 158, 0.35);
}

/* 登车点选择弹层 */
.point-picker {
  white-space: normal;
}

.point-picker__sub {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.point-picker__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.point-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fbf7ec;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.point-option:hover {
  border-color: var(--gold);
  background: #fffdf6;
}

.point-option__index {
  flex: none;
  width: 26px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.point-option__main {
  flex: 1;
  min-width: 0;
}

.point-option__main strong {
  display: block;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
}

.point-option__main em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.point-option__mark {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.point-option.is-selected {
  border-color: var(--gold);
  background: #fffdf6;
  box-shadow: inset 3px 0 0 var(--olive);
}

.point-option.is-selected .point-option__mark {
  border-color: var(--olive);
  background: var(--olive);
}

.point-option.is-selected .point-option__mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #f6f2e9;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.trip__time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.trip__time strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
}

.trip-call {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--olive);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.trip-call:active {
  border-color: var(--gold);
  color: var(--gold);
}

/* -------------------------------------------------------------- 同意栏 */

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--gold);
}

.consent a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 136, 78, 0.5);
}

/* ------------------------------------------------------------ 报名选择 */

.chooser {
  padding: 6px 0 0;
}

.chooser__head {
  margin-bottom: 18px;
  text-align: center;
}

.chooser__eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}

.chooser__hint {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.chooser__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chooser-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 20px 40px -40px rgba(18, 32, 43, 0.55);
  color: var(--ink);
  text-decoration: none;
}

.chooser-item:active {
  border-color: var(--gold);
}

.chooser-item__main {
  min-width: 0;
}

.chooser-item__title {
  display: block;
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.chooser-item__meta {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.chooser-item__state {
  flex: none;
  padding: 3px 10px;
  border: 1px solid rgba(61, 107, 79, 0.35);
  border-radius: 999px;
  color: var(--ok);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.chooser-item__state.is-closed {
  border-color: var(--line-strong);
  color: var(--muted);
}

/* -------------------------------------------------------------- 提交条 */

.submitbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(246, 242, 233, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.submitbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 600px;
  margin: 0 auto;
}

.btn-primary {
  flex: 1;
  min-height: 50px;
  border: 1px solid #0b1620;
  border-radius: 4px;
  background: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(201, 174, 125, 0.35);
  color: #f7f2e7;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: var(--navy-2);
}

.btn-primary:active {
  transform: scale(0.995);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ------------------------------------------------------------ 结果页面 */

.loading {
  padding: 60px 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-align: center;
}

.success {
  padding: 34px 24px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 30px 60px -48px rgba(18, 32, 43, 0.5);
  text-align: center;
}

.success__seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  transform: rotate(-4deg);
}

.success__seal::before {
  content: "★";
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  text-indent: 0;
}

.success h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.success__sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13.5px;
}

.success__code {
  display: inline-block;
  padding: 10px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 21px;
  letter-spacing: 0.12em;
  background: #fbf7ef;
}

.success__list {
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.success__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.success__row span {
  color: var(--muted);
  flex: none;
}

.success__row strong {
  font-weight: 500;
  text-align: right;
}

.success__tip {
  margin: 22px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--gold);
  background: #faf5e9;
  color: var(--ink-2);
  font-size: 13.5px;
  text-align: left;
}

.success__actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.btn-ghost {
  flex: 1;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* -------------------------------------------------------------- 提示 */

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(169, 136, 78, 0.4);
  border-left: 3px solid var(--gold);
  background: #faf4e6;
  color: var(--ink-2);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.08em;
}

.edit-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.edit-notice strong {
  display: inline;
  margin: 0;
}

.edit-notice__hint {
  color: var(--muted);
  font-size: 13px;
}

.edit-notice .linkbtn {
  margin: 0 0 0 auto;
}

.foot {
  margin: 22px 0 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  text-align: center;
}

.foot p {
  margin: 6px 0;
  white-space: pre-line;
}

.foot__edit {
  margin: 0 0 10px !important;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--olive);
  letter-spacing: 0.02em;
}

.linkbtn {
  margin: 8px 0 2px;
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

/* ---------------------------------------------------------- 微信引导 */

.gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 26px;
  background:
    radial-gradient(120% 70% at 50% 0%, #fffdf7 0%, var(--paper) 50%, var(--paper-deep) 100%);
}

.gate__card {
  width: min(360px, 100%);
  text-align: center;
}

.gate__mark {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}

.gate h2 {
  margin: 14px 0 10px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.gate p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.gate__qr {
  display: inline-block;
  padding: 14px;
  border: 1px solid var(--line-strong);
  background: #fffdf8;
}

.gate__qr svg {
  display: block;
  width: 190px;
  height: 190px;
}

/* -------------------------------------------------------------- 弹层 */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 29, 42, 0.42);
  padding: 0;
}

.sheet__panel {
  width: min(620px, 100%);
  max-height: 82vh;
  overflow: auto;
  padding: 24px 24px calc(26px + env(safe-area-inset-bottom));
  border-top: 3px solid var(--olive);
  border-radius: 10px 10px 0 0;
  background: var(--card);
  animation: rise 0.22s ease-out;
}

@keyframes rise {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sheet__head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.sheet__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.sheet__body {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.85;
  white-space: pre-line;
}

.my-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.my-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.my-item__code {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.badge {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.badge--valid {
  border-color: rgba(61, 107, 79, 0.4);
  color: var(--ok);
}

.badge--cancelled {
  border-color: rgba(163, 59, 50, 0.35);
  color: var(--danger);
}

.my-item__meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.my-boarding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
}

.my-boarding__text {
  flex: 1;
  min-width: 0;
}

.my-call {
  flex: none;
  padding: 5px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--olive);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.my-call:active {
  border-color: var(--gold);
  color: var(--gold);
}

.my-item__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.my-item__edit {
  flex: none;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.my-item__locked {
  color: var(--muted);
  font-size: 12.5px;
}

.my-item__campaign {
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 95;
  transform: translateX(-50%);
  max-width: 86vw;
  padding: 11px 18px;
  border-radius: 4px;
  background: rgba(15, 29, 42, 0.94);
  color: #f7f2e7;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.8);
}

.hidden {
  display: none !important;
}

@media (max-width: 430px) {
  main {
    padding: 0 18px 160px;
  }

  .hero {
    padding: 38px 20px 24px;
  }

  .emblem {
    top: 26px;
    right: 12px;
    transform: scale(0.83) rotate(-4deg);
    transform-origin: top right;
  }

  .hero__ribbon {
    width: 112px;
  }

  .form-card {
    padding: 4px 18px 24px;
  }

  .trip {
    grid-template-columns: 72px 1fr;
  }

  .trip__date strong {
    font-size: 19px;
  }

  .btn-primary {
    letter-spacing: 0.16em;
    text-indent: 0.16em;
  }
}

/* 375 / 390 主流屏 */
@media (max-width: 390px) {
  main {
    padding: 0 16px 168px;
  }

  .hero {
    padding: 34px 18px 22px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero__intro {
    font-size: 14.5px;
  }

  .form-card {
    padding: 4px 16px 22px;
  }

  .trip {
    grid-template-columns: 68px 1fr;
  }

  .trip__body {
    padding: 12px 13px 14px;
  }

  .trip__date strong {
    font-size: 18px;
  }

  .submitbar {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }

  .success {
    padding: 30px 18px 26px;
  }
}

/* 320 / 360 小屏 */
@media (max-width: 360px) {
  main {
    padding: 0 12px 196px;
  }

  .hero {
    padding: 30px 14px 20px;
  }

  .hero__eyebrow {
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.26em;
  }

  .hero__eyebrow::before,
  .hero__eyebrow::after {
    width: 28px;
  }

  .hero h1 {
    font-size: 25px;
    letter-spacing: 0.03em;
  }

  .hero__subtitle {
    font-size: 13px;
  }

  .hero__dates {
    gap: 8px;
    padding: 8px 13px;
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .emblem {
    display: none;
  }

  .form-card {
    padding: 2px 13px 20px;
  }

  .block {
    padding: 22px 0 8px;
  }

  .block__head {
    gap: 9px;
  }

  .block__head h2 {
    font-size: 18px;
  }

  .trip {
    grid-template-columns: 62px 1fr;
  }

  .trip__date {
    padding: 13px 6px;
  }

  .trip__date strong {
    font-size: 17px;
  }

  .trip__body {
    padding: 11px 11px 13px;
  }

  .submitbar {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .submitbar__inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .btn-primary {
    flex: 1 1 100%;
  }

  .success__actions {
    flex-direction: column;
  }

  .success__code {
    font-size: 19px;
    letter-spacing: 0.08em;
  }

  .success__row {
    gap: 10px;
    font-size: 14px;
  }

  .sheet__panel {
    padding: 20px 16px calc(22px + env(safe-area-inset-bottom));
  }
}
