/* ==========================================================================
   雪原票务 · 全站样式
   ========================================================================== */

:root {
  --ink: #171c2e;
  --ink-2: #2b3247;
  --ink-3: #3b435b;
  --muted: #757d92;
  --muted-2: #9ba2b5;
  --line: #e3e7f0;
  --line-2: #eef1f7;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #fafbfe;
  --brand: #3a57d6;
  --brand-2: #2f47bb;
  --brand-soft: #eef2ff;
  --brand-line: #cfd9fa;
  --navy: #141a2e;
  --navy-2: #1d2540;
  --gold: #a97c2c;
  --gold-soft: #fbf3e2;
  --price: #e5543d;
  --ok: #17855f;
  --ok-soft: #e8f6f0;
  --warn: #a96a12;
  --warn-soft: #fdf5e6;
  --danger: #cc3f3f;
  --danger-soft: #fdeeee;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 26, 46, 0.05), 0 1px 1px rgba(20, 26, 46, 0.03);
  --shadow-md: 0 6px 20px rgba(20, 26, 46, 0.06), 0 1px 3px rgba(20, 26, 46, 0.04);
  --shadow-lg: 0 24px 70px rgba(13, 18, 34, 0.22);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --container: 1180px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
p,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.24;
  letter-spacing: -0.012em;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: #dbe3ff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.icon {
  display: inline-block;
  vertical-align: -0.16em;
  flex: none;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

.text-price {
  color: var(--price);
}

.fade-in {
  animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
  width: min(var(--container), calc(100% - 48px));
  height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #263255 0%, #141a2e 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 3px 10px rgba(20, 26, 46, 0.2);
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 2px;
  font-size: 8.5px;
  letter-spacing: 0.17em;
  color: var(--muted-2);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.nav a:hover {
  background: #f3f5fa;
  color: var(--ink);
}

.nav a.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
  padding-right: 8px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: 0.15s;
}

.user-chip:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #3d4f7c, #1a2138);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  width: 40px;
  height: 40px;
  color: var(--ink-2);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px;
  background: #fff;
}

.mobile-panel a {
  display: block;
  padding: 11px 6px;
  font-size: 15px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}

.mobile-panel a:last-child {
  border-bottom: 0;
}

.mobile-panel a.active {
  color: var(--brand);
  font-weight: 600;
}

.mobile-panel .mobile-link {
  display: block;
  width: 100%;
  padding: 11px 6px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
}

.mobile-panel .mobile-link:last-child {
  border-bottom: 0;
}

/* ------------------------------------------------------------------ 页脚 */

.site-footer {
  margin-top: 80px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  padding: 48px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  gap: 12px;
  max-width: 330px;
}

.footer-brand strong {
  font-size: 15px;
}

.footer-brand p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, auto));
  gap: 32px;
}

.footer-links h5 {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-links a,
.footer-links span {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  padding: 4px 0;
}

.footer-links button {
  display: block;
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--ink-3);
  text-align: left;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--brand);
}

.footer-muted {
  color: var(--muted-2) !important;
}

.footer-bottom {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  border-top: 1px solid var(--line-2);
  padding: 16px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted-2);
}

/* ------------------------------------------------------------------ 按钮 / 徽标 */

.btn {
  --btn-bg: #fff;
  --btn-fg: var(--ink-2);
  --btn-border: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
  user-select: none;
}

.btn:hover {
  border-color: #cdd4e3;
  background: #fbfcff;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-border: var(--ink);
  box-shadow: 0 6px 16px rgba(20, 26, 46, 0.16);
}

.btn-primary:hover {
  background: #232a40;
  border-color: #232a40;
  box-shadow: 0 10px 24px rgba(20, 26, 46, 0.22);
}

.btn-brand {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-border: var(--brand);
  box-shadow: 0 6px 16px rgba(58, 87, 214, 0.24);
}

.btn-brand:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
}

.btn-soft {
  --btn-bg: var(--brand-soft);
  --btn-fg: var(--brand);
  --btn-border: transparent;
}

.btn-soft:hover {
  background: #e5ebff;
  border-color: transparent;
}

.btn-ghost {
  --btn-bg: #fff;
}

.btn-danger {
  --btn-bg: var(--danger-soft);
  --btn-fg: var(--danger);
  --btn-border: transparent;
}

.btn-danger:hover {
  background: #fbdede;
  border-color: transparent;
}

.btn-danger-solid {
  --btn-bg: var(--danger);
  --btn-fg: #fff;
  --btn-border: var(--danger);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-lg {
  height: 52px;
  padding: 0 26px;
  font-size: 15.5px;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

.btn .icon {
  vertical-align: 0;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: 0.15s;
}

.icon-btn:hover {
  background: #f3f5fa;
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  background: #f1f3f8;
  color: var(--muted);
}

.badge-blue,
.badge-brand {
  background: var(--brand-soft);
  color: var(--brand);
}

.badge-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.badge-red {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-muted {
  background: #f2f4f8;
  color: #8a92a5;
}

.badge-lg {
  height: 27px;
  padding: 0 11px;
  font-size: 12px;
  border-radius: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 12px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > label,
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.field-error {
  font-size: 12px;
  color: var(--danger);
  min-height: 0;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input,
.select {
  height: 46px;
  padding: 0 14px;
}

.textarea {
  padding: 11px 14px;
  min-height: 92px;
  resize: vertical;
  line-height: 1.65;
}

.input::placeholder,
.textarea::placeholder {
  color: #aeb5c5;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #cdd4e3;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(58, 87, 214, 0.1);
}

.input:disabled,
.select:disabled,
.textarea:disabled {
  background: #f7f8fc;
  color: var(--muted);
  cursor: not-allowed;
}

.input.has-error,
.textarea.has-error {
  border-color: #e7a5a5;
  background: #fffafa;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group .input {
  padding-left: 42px;
}

.input-group .input-icon {
  position: absolute;
  left: 14px;
  color: var(--muted-2);
  pointer-events: none;
}

.input-group .input-action {
  position: absolute;
  right: 6px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.input-group .input-action:hover {
  background: #f3f5fa;
  color: var(--ink);
}

.input-group.has-action .input {
  padding-right: 48px;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b93a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  line-height: 1.55;
}

.checkbox input {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid #c8cfdd;
  border-radius: 5px;
  margin: 1px 0 0;
  flex: none;
  cursor: pointer;
  transition: 0.15s;
  background: #fff;
}

.checkbox input:checked {
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
  border-color: var(--brand);
}

.checkbox input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.switch input {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #dce1ec;
  position: relative;
  cursor: pointer;
  transition: 0.18s;
  margin: 0;
  flex: none;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: 0.18s;
  box-shadow: 0 1px 3px rgba(20, 26, 46, 0.25);
}

.switch input:checked {
  background: var(--brand);
}

.switch input:checked::after {
  transform: translateX(16px);
}

/* ------------------------------------------------------------------ 卡片 / 空态 / 骨架 */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-pad {
  padding: 24px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 52px 24px;
  gap: 6px;
}

.empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #f2f5fb;
  color: #96a2ba;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.empty h4 {
  font-size: 15px;
  font-weight: 600;
}

.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.7;
}

.empty .btn {
  margin-top: 10px;
}

.skeleton-stack {
  display: grid;
  gap: 10px;
}

.skeleton {
  display: block;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef1f7 25%, #f7f9fd 37%, #eef1f7 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.skeleton.tall {
  height: 96px;
  border-radius: 12px;
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.spinner {
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: none;
}

.btn-ghost .spinner,
.btn-soft .spinner {
  border-color: rgba(58, 87, 214, 0.2);
  border-top-color: var(--brand);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------------ 首页 */

.hero-section {
  padding: 26px 0 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: 452px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(80% 120% at 88% 0%, rgba(108, 137, 255, 0.28) 0%, rgba(108, 137, 255, 0) 55%),
    radial-gradient(70% 90% at 6% 100%, rgba(41, 62, 120, 0.55) 0%, rgba(20, 26, 46, 0) 60%),
    linear-gradient(130deg, #1c2540 0%, #141a2e 52%, #0e1322 100%);
  box-shadow: 0 24px 60px -18px rgba(17, 23, 40, 0.45);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 80% at 70% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 54px 20px 48px 52px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: #aebbe2;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: #6f84bd;
}

.hero h1 {
  font-size: clamp(40px, 4.7vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero h1 sup {
  font-size: 0.28em;
  top: -1.6em;
  position: relative;
  margin-left: 2px;
  font-weight: 500;
  color: #93a4d4;
}

.hero-sub {
  font-size: 15.5px;
  color: #b9c3dd;
  max-width: 420px;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: #dae1f3;
  backdrop-filter: blur(4px);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hero-actions .btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  height: 50px;
  padding: 0 26px;
  border-radius: 11px;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero-actions .btn-light:hover {
  background: #eef1f8;
  border-color: #eef1f8;
  transform: translateY(-1px);
}

.hero-actions .btn-outline {
  height: 50px;
  padding: 0 22px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e7ecf9;
  font-size: 14.5px;
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-price-note {
  margin-left: 4px;
  font-size: 12.5px;
  color: #9aa7c9;
}

.hero-price-note strong {
  display: block;
  font-size: 22px;
  color: #fff;
  font-weight: 700;
  line-height: 1.15;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 30px 42px 30px 0;
  z-index: 2;
}

.hero-poster-wrap {
  position: relative;
  width: min(330px, 100%);
  border-radius: 16px;
  transform: rotate(-3.2deg);
  box-shadow: 0 34px 70px -14px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-poster-wrap img {
  width: 100%;
  border-radius: 16px;
}

.hero-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  line-height: 1.35;
}

.hero-float strong {
  display: block;
  font-size: 13px;
}

.hero-float small {
  color: var(--muted);
  font-size: 11px;
}

.hero-float .float-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}

.hero-float.top {
  top: 34px;
  right: 6px;
}

.hero-float.bottom {
  bottom: 42px;
  left: -2px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.hero-stat .stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #f3f6fd;
  color: #59647e;
  flex: none;
}

.hero-stat strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}

.hero-stat span {
  font-size: 12px;
  color: var(--muted);
}

.section {
  padding: 64px 0 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}

.section-head .link-more {
  font-size: 13.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.section-head .link-more:hover {
  color: var(--brand);
}

.link-more {
  font-size: 12.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.link-more:hover {
  color: var(--brand);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  position: relative;
}

.step-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.1em;
}

.step-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin: 14px 0 12px;
}

.step-card h4 {
  font-size: 15px;
  margin-bottom: 5px;
}

.step-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: 0.18s;
}

.event-row:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.event-row-poster {
  width: 104px;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  background: #1b2338;
}

.event-row h3 {
  font-size: 19px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.event-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 7px;
}

.event-row-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.event-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.event-row-price {
  font-size: 14px;
  color: var(--muted);
}

.event-row-price strong {
  font-size: 24px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.event-row-price small {
  font-size: 12px;
  color: var(--muted-2);
}

.event-soon {
  border: 1px dashed #d8deea;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  background: #fafbfe;
}

.event-soon .soon-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff2f8;
  display: grid;
  place-items: center;
  color: #98a2b7;
  flex: none;
}

.event-soon strong {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
}

.event-soon span {
  font-size: 12.5px;
}

/* ------------------------------------------------------------------ 活动 / 购票页 */

.page-shell {
  padding: 22px 0 0;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
  padding: 8px 10px 8px 6px;
  border-radius: 8px;
  flex: none;
}

.back-link:hover {
  color: var(--ink);
  background: #eef1f7;
}

.event-band {
  position: relative;
  flex: 1;
  height: 50px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(95deg, #5a75d9, #6a83e2 55%, #5d78dc);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 22px -10px rgba(58, 87, 214, 0.55);
}

.event-band::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
  z-index: -1;
}

.event-card-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 56px;
}

.event-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap;
}

.event-head h1 {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.event-head .head-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.event-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 36px;
  padding: 24px 28px 26px;
  border-bottom: 1px solid var(--line-2);
}

.info-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  align-items: start;
}

.info-label {
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 2px;
}

.info-value {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.info-value .icon {
  color: #a3aabd;
}

.info-sub {
  display: block;
  flex-basis: 100%;
  width: 100%;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
}

.copy-mini {
  border: 0;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  padding: 3px;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
}

.copy-mini:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.event-poster {
  align-self: start;
}

.event-poster img {
  width: 232px;
  height: 232px;
  border-radius: 9px;
  box-shadow: 0 14px 34px -12px rgba(20, 26, 46, 0.4);
  object-fit: cover;
}

.event-poster figcaption {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--muted-2);
  text-align: center;
  letter-spacing: 0.04em;
}

.block {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line-2);
}

.block:last-child {
  border-bottom: 0;
}

.block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.block-head .block-icon {
  color: #8d97ad;
  display: inline-grid;
  place-items: center;
}

.block-head h2 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.block-head .block-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(23, 133, 95, 0.35);
  animation: livePulse 2s infinite;
  flex: none;
}

.hero-stat strong .live-dot {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  vertical-align: 1px;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(23, 133, 95, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(23, 133, 95, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(23, 133, 95, 0);
  }
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 12px;
}

.type-card {
  position: relative;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid #dee3ee;
  border-radius: 9px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: inherit;
  overflow: hidden;
}

.type-card:hover {
  border-color: #b8c5ea;
  box-shadow: 0 4px 14px rgba(58, 87, 214, 0.08);
}

.type-card.selected {
  border-color: var(--brand);
  background: #f7f9ff;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.type-card.selected::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 24px solid var(--brand);
  border-left: 24px solid transparent;
}

.type-card.selected::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center/11px no-repeat;
}

.type-card.disabled {
  background: #fafbfd;
  border-color: #ebedf4;
  color: #a4abbd;
  cursor: not-allowed;
  box-shadow: none;
}

.type-card.disabled:hover {
  border-color: #ebedf4;
}

.type-name {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  flex-wrap: wrap;
  width: 100%;
}

.type-meta {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.type-card.disabled .type-meta {
  color: #b2b8c7;
}

.type-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}

.type-card.disabled .type-price {
  color: #b2b8c7;
}

.type-state {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f3f5f9;
  color: #8d95a8;
}

.type-card.selected .type-state {
  background: #e4eaff;
  color: var(--brand);
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.option-group {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.option-question {
  font-size: 13.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 210px;
}

.option-question .q-help {
  color: #aab2c4;
  cursor: help;
  display: inline-flex;
}

.option-choices {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.choice-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid #dfe3ee;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: 0.15s;
}

.choice-btn:hover {
  border-color: #b8c5ea;
}

.choice-btn.selected {
  border-color: var(--brand);
  color: var(--brand);
  background: #f6f8ff;
  box-shadow: inset 0 0 0 1px var(--brand);
  font-weight: 600;
}

.choice-delta {
  font-size: 11.5px;
  color: var(--muted-2);
  font-weight: 400;
}

.choice-btn.selected .choice-delta {
  color: var(--brand);
  opacity: 0.8;
}

.sale-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.sale-block {
  min-width: 148px;
}

.sale-date {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.sale-clock {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.sale-sep {
  color: #c6ccda;
  display: flex;
  align-items: center;
}

.sale-flag {
  margin-left: auto;
}

.sale-tip {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}

.feature-tile {
  position: relative;
  min-height: 100px;
  padding: 14px 6px 10px;
  border: 1px solid #e8ebf3;
  border-radius: 7px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.feature-tile .f-icon {
  color: #5c6d95;
  height: 26px;
  display: grid;
  place-items: center;
}

.feature-tile .f-name {
  font-size: 11.5px;
  line-height: 1.28;
  color: #3c455d;
  word-break: keep-all;
}

.feature-tile .f-mark {
  margin-top: auto;
  color: #7d8bab;
  line-height: 0;
}

.feature-tile.off {
  background: #fafbfd;
  border-color: #eef0f6;
}

.feature-tile.off .f-icon,
.feature-tile.off .f-name,
.feature-tile.off .f-mark {
  color: #c3c9d5;
}

.feature-tile .f-info {
  position: absolute;
  top: 4px;
  right: 4px;
  color: #b3bbca;
  cursor: help;
  line-height: 0;
}

.feature-tile .f-note {
  display: none;
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  line-height: 1.55;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 20, 35, 0.25);
  pointer-events: none;
}

.feature-tile .f-note::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}

.feature-tile:hover .f-note {
  display: block;
}

.notice-box {
  border-left: 3px solid #5b77d9;
  background: #f7f8fc;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 12.5px;
  color: #68718a;
}

.notice-box ol,
.notice-box ul {
  margin: 0;
  padding-left: 17px;
  display: grid;
  gap: 6px;
  line-height: 1.7;
}

.buy-bar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(12px);
  border-radius: 0 0 16px 16px;
  flex-wrap: wrap;
}

.buy-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.buy-price .amount {
  font-size: 29px;
  font-weight: 700;
  color: var(--price);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.buy-price .amount small {
  font-size: 15px;
  font-weight: 600;
}

.buy-price .note {
  font-size: 11.5px;
  color: var(--muted);
}

.buy-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.qty {
  display: inline-flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.qty button {
  width: 38px;
  height: 100%;
  border: 0;
  background: #fff;
  color: var(--ink-3);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.qty button:hover:not(:disabled) {
  background: #f3f5fa;
}

.qty button:disabled {
  color: #c9cfdb;
  cursor: not-allowed;
}

.qty input {
  width: 44px;
  height: 100%;
  border: 0;
  border-inline: 1px solid var(--line-2);
  text-align: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.buy-btn {
  height: 52px;
  min-width: 176px;
  border: 0;
  border-radius: 10px;
  background: #262b3d;
  color: #fff;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: 0.18s;
  box-shadow: 0 8px 22px -8px rgba(20, 26, 46, 0.45);
}

.buy-btn:hover:not(:disabled) {
  background: #333a52;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -8px rgba(20, 26, 46, 0.5);
}

.buy-btn:disabled {
  background: #b6bccb;
  cursor: not-allowed;
  box-shadow: none;
}

.buy-login-tip {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.buy-login-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.buy-login-btn:hover {
  color: var(--brand);
}

.event-description {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.85;
  white-space: pre-line;
}

.event-description .muted {
  font-size: 12.5px;
}

/* ------------------------------------------------------------------ 登录 / 注册 */

.auth-page {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  min-height: 100vh;
  background: #fff;
}

.auth-mobile-brand {
  display: none;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.auth-aside {
  position: relative;
  overflow: hidden;
  padding: 48px 52px 40px;
  color: #fff;
  background:
    radial-gradient(75% 75% at 88% 8%, rgba(101, 131, 255, 0.32) 0%, rgba(101, 131, 255, 0) 55%),
    linear-gradient(150deg, #1d2745 0%, #131a2e 55%, #0c1120 100%);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(160deg, #000 0%, transparent 62%);
  pointer-events: none;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  position: relative;
  z-index: 2;
  color: #fff;
}

.auth-brand .brand-text small {
  color: #8b9bc4;
}

.auth-aside-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.auth-aside-copy .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #98a8d1;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}

.auth-aside-copy h2 {
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 420px;
}

.auth-aside-copy h2 em {
  font-style: normal;
  color: #9fb2ee;
}

.auth-aside-copy p {
  margin-top: 14px;
  color: #a9b5d2;
  font-size: 13.5px;
  max-width: 380px;
  line-height: 1.8;
}

.auth-points {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 13px;
  margin-top: 26px;
}

.auth-point {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  color: #c9d3ea;
}

.auth-point .point-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: #dbe4fb;
  flex: none;
}

.auth-art {
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 320px;
  transform: rotate(-8deg);
  opacity: 0.5;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.auth-aside-foot {
  position: relative;
  z-index: 2;
  font-size: 11.5px;
  color: #7f8dad;
  letter-spacing: 0.02em;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 48px 28px;
  background: var(--bg);
}

.auth-card {
  width: min(430px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 36px 30px;
  box-shadow: 0 20px 50px -24px rgba(17, 23, 40, 0.25);
}

.auth-card h1 {
  font-size: 26px;
  letter-spacing: -0.025em;
}

.auth-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.auth-form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form .field > label {
  font-size: 12.5px;
}

.auth-form .input {
  height: 47px;
}

.auth-submit {
  height: 48px;
  width: 100%;
  margin-top: 4px;
  font-size: 15px;
}

.auth-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.auth-inline a {
  color: var(--brand);
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--brand);
  font-weight: 600;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
}

.link-btn:hover {
  color: var(--brand-2);
  text-decoration: underline;
}

/* ------------------------------------------------------------------ 登录浮层 */

.modal-auth {
  width: min(520px, 100%);
}

.modal-auth .modal-body {
  padding-top: 18px;
}

.auth-modal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #f1f3f9;
}

.auth-tabs button {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  transition: 0.15s;
}

.auth-tabs button.active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(20, 26, 46, 0.1);
}

.auth-modal-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form-compact {
  margin-top: 6px;
  gap: 14px;
}

.auth-form-compact .input {
  height: 44px;
}

.auth-form-compact .form-grid {
  gap: 12px;
}

.auth-modal .auth-divider {
  margin: 16px 0 12px;
}

.auth-modal .demo-box {
  background: #fafbfe;
}

.auth-modal .auth-switch {
  margin-top: 14px;
}

.auth-modal .field-error {
  font-size: 11.5px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.demo-box {
  border: 1px dashed #d9dfec;
  border-radius: 12px;
  background: #fafbfe;
  padding: 12px 13px;
}

.demo-box-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 9px;
}

.demo-accounts {
  display: grid;
  gap: 7px;
}

.demo-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: 0.15s;
}

.demo-account:hover {
  border-color: var(--brand-line);
  background: #f7f9ff;
}

.demo-account code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.demo-account b {
  font-weight: 600;
}

.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 2px;
  transition: opacity 0.2s;
}

.password-strength[data-score="0"] {
  opacity: 0;
}

.password-strength span {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: #e9edf5;
  transition: 0.2s;
}

.password-strength[data-score="1"] span:nth-child(1) {
  background: #e0a54b;
}

.password-strength[data-score="2"] span:nth-child(-n + 2) {
  background: #d3a13c;
}

.password-strength[data-score="3"] span:nth-child(-n + 3) {
  background: #7aa76a;
}

.password-strength[data-score="4"] span {
  background: var(--ok);
}

/* ------------------------------------------------------------------ 个人中心 */

.account-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0 72px;
  align-items: start;
}

.account-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 16px 14px;
  box-shadow: var(--shadow-sm);
}

.account-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px 18px;
  border-bottom: 1px solid var(--line-2);
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #33415f, #161d31);
  color: #fff;
  font-size: 23px;
  font-weight: 600;
  box-shadow: 0 8px 20px -6px rgba(20, 26, 46, 0.5);
}

.account-identity h3 {
  margin-top: 11px;
  font-size: 16px;
}

.account-identity .account-handle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.account-identity .badge {
  margin-top: 8px;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0 8px;
}

.account-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink-3);
  transition: 0.15s;
}

.account-nav a .icon {
  color: #98a1b5;
}

.account-nav a:hover {
  background: #f4f6fb;
}

.account-nav a.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.account-nav a.active .icon {
  color: var(--brand);
}

.account-nav a .nav-count {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 5px;
  background: #f1f4fa;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
}

.account-nav a.active .nav-count {
  background: #e2e9ff;
  color: var(--brand);
}

.account-side-foot {
  border-top: 1px solid var(--line-2);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-side-foot a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--muted);
  transition: 0.15s;
}

.account-side-foot a:hover {
  background: #f4f6fb;
  color: var(--ink);
}

.account-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.account-greeting {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.account-greeting h1 {
  font-size: 25px;
  letter-spacing: -0.025em;
}

.account-greeting p {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap;
}

.panel-head h2 {
  font-size: 16px;
}

.panel-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.panel-body {
  padding: 22px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-card .stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.stat-card .stat-top .icon {
  color: #aab3c6;
}

.stat-card strong {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.stat-card small {
  font-size: 11.5px;
  color: var(--muted-2);
}

.next-event {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
}

.next-event img {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
}

.next-event h3 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.next-event .meta {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.countdown {
  display: flex;
  gap: 7px;
}

.countdown span {
  min-width: 46px;
  padding: 8px 6px;
  border-radius: 9px;
  background: #f5f7fc;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.1;
}

.countdown span small {
  display: block;
  font-size: 9.5px;
  font-weight: 400;
  color: var(--muted-2);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: #f1f3f9;
  border-radius: 10px;
}

.tab {
  border: 0;
  background: transparent;
  padding: 7px 13px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 26, 46, 0.1);
  font-weight: 600;
}

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

.order-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.order-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.order-head .order-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.order-head .order-date {
  margin-left: auto;
}

.order-body {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}

.order-thumb {
  width: 62px;
  height: 62px;
  border-radius: 9px;
  object-fit: cover;
  background: #1b2338;
}

.order-title {
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.order-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.order-options .chip {
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  background: #f7f9fd;
}

.order-options .chip-more {
  color: var(--muted-2);
  border-style: dashed;
}

.order-status-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.order-empty {
  padding: 36px 20px;
}

.order-amount {
  text-align: right;
}

.order-amount strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.order-amount small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.order-foot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 0 18px 14px;
  flex-wrap: wrap;
}

.order-tickets {
  border-top: 1px dashed var(--line);
  padding: 12px 18px 16px;
  display: none;
}

.order-card.expanded .order-tickets {
  display: block;
}

.order-ticket-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
}

.order-ticket-row:last-child {
  border-bottom: 0;
}

.order-ticket-row .code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}

.order-ticket-row .row-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ticket-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  min-height: 186px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-sm);
  background: #151b2c;
}

.ticket-main {
  position: relative;
  padding: 18px 18px 16px;
  color: #fff;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(96, 125, 232, 0.28) 0%, rgba(96, 125, 232, 0) 60%),
    linear-gradient(155deg, #222b45 0%, #151b2c 60%, #101524 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.ticket-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(80% 80% at 90% 10%, #000 0%, transparent 70%);
  pointer-events: none;
}

.ticket-kind {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #93a1c7;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.ticket-kind-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.ticket-kind-row .badge {
  background: rgba(255, 255, 255, 0.12);
  color: #dfe6f7;
  backdrop-filter: blur(4px);
}

.ticket-kind-row .badge-ok {
  background: rgba(41, 178, 127, 0.2);
  color: #7fe0b9;
}

.ticket-kind-row .badge-muted {
  background: rgba(255, 255, 255, 0.1);
  color: #97a1b8;
}

.ticket-kind-row .badge-brand {
  background: rgba(120, 146, 255, 0.22);
  color: #b9c8ff;
}

.ticket-title {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.ticket-type {
  font-size: 12px;
  color: #b7c2dd;
  position: relative;
  z-index: 1;
}

.ticket-holder {
  margin-top: auto;
  font-size: 11.5px;
  color: #8592b1;
  position: relative;
  z-index: 1;
}

.ticket-code {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #9daac9;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
  word-break: break-all;
}

.ticket-qr {
  position: relative;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-left: 1px dashed #d8deea;
}

.ticket-qr::before,
.ticket-qr::after {
  content: "";
  position: absolute;
  left: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
}

.ticket-qr::before {
  top: -8px;
}

.ticket-qr::after {
  bottom: -8px;
}

.ticket-qr img {
  width: 82px;
  height: 82px;
  border-radius: 4px;
}

.ticket-qr span {
  font-size: 9.5px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.ticket-card.is-used {
  filter: saturate(0.35);
}

.ticket-status {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.ticket-card .badge {
  background: rgba(255, 255, 255, 0.12);
  color: #dfe6f7;
  backdrop-filter: blur(4px);
}

.ticket-card .badge-ok {
  background: rgba(41, 178, 127, 0.18);
  color: #7fe0b9;
}

.ticket-card .badge-muted {
  background: rgba(255, 255, 255, 0.1);
  color: #97a1b8;
}

.ticket-card .ticket-open {
  position: absolute;
  inset: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 3;
}

.settings-form {
  display: grid;
  gap: 16px;
  max-width: 480px;
}

.qr-modal {
  text-align: center;
}

.qr-frame {
  display: inline-grid;
  place-items: center;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin: 4px auto 14px;
}

.qr-frame img {
  width: 232px;
  height: 232px;
}

.qr-code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 9px 12px;
  background: #f6f8fc;
  border: 1px dashed #dbe1ee;
  border-radius: 8px;
  color: var(--ink-2);
  word-break: break-all;
}

.qr-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0 4px;
  text-align: left;
  font-size: 13px;
}

.qr-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
}

.qr-meta dt {
  color: var(--muted);
}

.qr-meta dd {
  margin: 0;
  color: var(--ink-2);
  font-weight: 500;
  text-align: right;
}

.used-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
}

/* ------------------------------------------------------------------ 结算弹层 */

.checkout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcfe;
}

.checkout-summary img {
  width: 76px;
  height: 76px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
}

.checkout-summary-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkout-summary-main strong {
  font-size: 14.5px;
}

.checkout-summary-main > span {
  font-size: 12px;
  color: var(--muted);
}

.checkout-qty {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 11.5px;
  color: var(--muted);
  flex: none;
}

.qty.small {
  height: 36px;
}

.qty.small button {
  width: 28px;
}

.qty.small input {
  width: 34px;
  font-size: 12.5px;
}

.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-price {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line-2);
  padding-top: 12px;
  font-size: 13px;
}

.checkout-price > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.checkout-price > div span:last-child {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.checkout-total {
  border-top: 1px dashed var(--line);
  padding-top: 9px;
  margin-top: 2px;
  color: var(--ink-2) !important;
  font-weight: 600;
}

.checkout-total strong {
  font-size: 23px;
  color: var(--price);
  letter-spacing: -0.02em;
}

.checkout-callout {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e6ebf6;
  background: #f7f9fe;
}

.callout-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}

.checkout-callout strong {
  font-size: 13.5px;
}

.checkout-callout p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.65;
}

.checkout-success {
  text-align: center;
  padding: 4px 0;
}

.success-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.checkout-success h3 {
  font-size: 18px;
}

.checkout-success > p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}

.code-list {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  text-align: left;
}

.code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f7f9fc;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 12px;
}

.code-row .mono {
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .checkout-summary {
    flex-wrap: wrap;
  }

  .checkout-qty {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .checkout-fields {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ 提示 / 弹层 */

.toast-host {
  position: fixed;
  top: calc(var(--header-h) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: min(440px, calc(100% - 32px));
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px -12px rgba(17, 23, 40, 0.3);
  font-size: 13px;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(-8px);
  transition: 0.22s;
  max-width: 100%;
}

.toast.show {
  opacity: 1;
  transform: none;
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #f2f5fb;
  color: #7d879c;
  flex: none;
}

.toast-success .toast-icon {
  background: var(--ok-soft);
  color: var(--ok);
}

.toast-error .toast-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(12, 17, 30, 0.52);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: overlayIn 0.16s ease;
}

.overlay.is-closing {
  animation: overlayOut 0.16s ease forwards;
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }
}

@keyframes overlayOut {
  to {
    opacity: 0;
  }
}

.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: modalIn 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
  overflow: hidden;
}

.overlay.is-closing .modal {
  animation: modalOut 0.16s ease forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

@keyframes modalOut {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
}

.modal-sm {
  width: min(420px, 100%);
}

.modal-lg {
  width: min(760px, 100%);
}

.modal-xl {
  width: min(940px, 100%);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line-2);
}

.modal-title h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.modal-title p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

.modal-head .icon-btn {
  margin-left: auto;
  flex: none;
}

.modal-body {
  padding: 22px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 22px;
  border-top: 1px solid var(--line-2);
  background: #fcfdff;
  flex-wrap: wrap;
}

.confirm-text {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.75;
}

/* ------------------------------------------------------------------ 通用页面头 */

.page-main {
  padding: 32px 0 0;
}

.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.page-title h1 {
  font-size: 27px;
  letter-spacing: -0.03em;
}

.page-title p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}

/* ------------------------------------------------------------------ 响应式 */

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr 0.8fr;
  }

  .hero-visual {
    padding-right: 28px;
  }

  .hero-float.top {
    right: -4px;
  }

  .account-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .ticket-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .nav,
  .lang-switch {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-header.menu-open .mobile-panel {
    display: block;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .btn-sm {
    padding: 0 11px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-content {
    padding: 38px 28px 8px;
  }

  .hero-visual {
    padding: 16px 28px 36px;
    justify-content: flex-start;
  }

  .hero-poster-wrap {
    width: min(260px, 70%);
  }

  .hero-float.bottom {
    left: auto;
    right: 24px;
    bottom: 26px;
  }

  .hero-float.top {
    top: 10px;
    right: 24px;
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    padding: 13px 16px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-overview {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .event-poster {
    display: none;
  }

  .feature-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .event-row {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .event-row-poster {
    width: 84px;
  }

  .event-row-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .auth-mobile-brand {
    display: inline-flex;
  }

  .auth-main {
    padding: 36px 18px 56px;
  }

  .auth-card {
    padding: 28px 24px 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .account-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .account-side {
    position: static;
    padding: 14px;
  }

  .account-identity {
    flex-direction: row;
    text-align: left;
    gap: 12px;
    padding: 0 4px 12px;
  }

  .account-avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .account-identity h3 {
    margin-top: 0;
  }

  .account-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 0 4px;
    gap: 6px;
    scrollbar-width: none;
  }

  .account-nav::-webkit-scrollbar {
    display: none;
  }

  .account-nav a {
    white-space: nowrap;
    padding: 8px 12px;
  }

  .account-side-foot {
    display: none;
  }

  .next-event {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .next-event img {
    width: 64px;
    height: 64px;
  }

  .next-event .countdown {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    padding-bottom: 24px;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 28px);
  }

  .header-inner {
    width: calc(100% - 28px);
    gap: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .brand-text small {
    font-size: 7.5px;
  }

  .user-chip-name {
    display: none;
  }

  .hero-section {
    padding-top: 14px;
  }

  .hero {
    border-radius: 20px;
  }

  .hero-content {
    padding: 30px 22px 4px;
    gap: 13px;
  }

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

  .hero-sub {
    font-size: 13.5px;
  }

  .hero-meta span {
    font-size: 11.5px;
    height: 29px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn-light,
  .hero-actions .btn-outline {
    height: 44px;
    font-size: 13.5px;
    padding: 0 18px;
  }

  .hero-price-note {
    width: 100%;
    margin-top: 6px;
  }

  .hero-visual {
    padding: 10px 22px 28px;
  }

  .hero-poster-wrap {
    width: min(220px, 64%);
  }

  .hero-float {
    padding: 8px 10px;
    font-size: 10.5px;
    border-radius: 10px;
  }

  .hero-float strong {
    font-size: 11.5px;
  }

  .hero-float small {
    display: none;
  }

  .hero-float .float-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .section {
    padding-top: 44px;
  }

  .section-head {
    margin-bottom: 16px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .steps {
    gap: 10px;
  }

  .step-card {
    padding: 16px;
    border-radius: 14px;
  }

  .step-icon {
    width: 36px;
    height: 36px;
    margin: 10px 0 10px;
  }

  .event-row {
    gap: 14px;
    padding: 14px;
  }

  .event-row h3 {
    font-size: 16.5px;
  }

  .event-row-price strong {
    font-size: 20px;
  }

  .page-shell {
    padding-top: 12px;
  }

  .topbar {
    gap: 8px;
  }

  .back-link {
    font-size: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .back-link .icon {
    font-size: 18px;
  }

  .event-band {
    height: 44px;
    font-size: 13.5px;
  }

  .event-head {
    padding: 16px 18px;
  }

  .event-head h1 {
    font-size: 18px;
  }

  .event-overview {
    padding: 6px 18px 14px;
  }

  .info-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
  }

  .info-value {
    font-size: 14px;
  }

  .copy-mini {
    display: none;
  }

  .block {
    padding: 20px 18px;
  }

  .block-head {
    margin-bottom: 14px;
  }

  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .type-card {
    padding: 11px 12px;
  }

  .type-name {
    font-size: 13.5px;
  }

  .type-meta {
    font-size: 11px;
  }

  .option-question {
    min-width: 0;
    width: 100%;
  }

  .option-group {
    gap: 8px;
    padding: 10px 0;
  }

  .choice-btn {
    height: 34px;
    font-size: 12.5px;
    padding: 0 13px;
  }

  .sale-row {
    gap: 12px;
  }

  .sale-block {
    min-width: 128px;
  }

  .sale-date {
    font-size: 14.5px;
  }

  .sale-flag {
    margin-left: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .feature-tile {
    min-height: 88px;
    padding: 11px 4px 8px;
    gap: 6px;
  }

  .feature-tile .f-name {
    font-size: 10.5px;
  }

  .notice-box {
    font-size: 11.5px;
    padding: 12px 14px;
  }

  .buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
    box-shadow: 0 -8px 30px rgba(20, 26, 46, 0.1);
  }

  .buy-price .amount {
    font-size: 23px;
  }

  .buy-price .note {
    font-size: 10.5px;
  }

  .buy-controls {
    gap: 8px;
  }

  .qty {
    height: 40px;
  }

  .qty button {
    width: 30px;
  }

  .qty input {
    width: 32px;
    font-size: 13px;
  }

  .buy-btn {
    height: 44px;
    min-width: 124px;
    font-size: 14px;
  }

  .buy-login-tip {
    display: none;
  }

  .event-card-main {
    margin-bottom: 110px;
    border-radius: 14px;
  }

  .buy-bar {
    border-radius: 0;
  }

  .auth-main {
    padding: 22px 14px 48px;
  }

  .auth-card {
    border-radius: 18px;
    border: 0;
    box-shadow: none;
    padding: 8px 6px 0;
    background: transparent;
  }

  .auth-form .input {
    height: 48px;
  }

  .account-shell {
    padding: 18px 0 56px;
  }

  .account-greeting h1 {
    font-size: 21px;
  }

  .stat-card strong {
    font-size: 21px;
  }

  .order-body {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .order-thumb {
    width: 48px;
    height: 48px;
  }

  .order-amount {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .order-amount small {
    display: inline;
  }

  .order-head {
    padding: 10px 14px;
  }

  .order-head .order-date {
    margin-left: 0;
  }

  .order-foot {
    padding: 0 14px 12px;
  }

  .order-tickets {
    padding: 10px 14px 14px;
  }

  .ticket-card {
    grid-template-columns: minmax(0, 1fr) 104px;
    min-height: 168px;
  }

  .ticket-main {
    padding: 15px 14px 13px;
  }

  .ticket-title {
    font-size: 14.5px;
  }

  .ticket-qr img {
    width: 70px;
    height: 70px;
  }

  .modal {
    border-radius: 16px;
  }

  .overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .modal {
    max-height: calc(100vh - 24px);
  }

  .modal-head {
    padding: 16px 18px 13px;
  }

  .modal-body {
    padding: 18px;
  }

  .modal-foot {
    padding: 12px 18px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 22px;
    padding-top: 32px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .toast-host {
    top: auto;
    bottom: 90px;
  }
}

@media (max-width: 400px) {
  .type-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------ 404 */

.notfound {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 72px 24px 40px;
}

.notfound-code {
  font-size: clamp(84px, 14vw, 132px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.9;
  color: var(--ink);
}

.notfound h1 {
  margin-top: 18px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.notfound p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.notfound-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
