/* ============ 主题预设 ============ */
:root,
[data-theme="emerald"] {
  --ink: #07211c;
  --ink-2: #0c2b25;
  --ink-3: #051713;
  --accent: #c3a367;
  --accent-soft: #e3cea3;
  --accent-rgb: 195, 163, 103;
  --accent-ink: #20260f;
  --accent-deep: #6b5620;
  --ink-rgb: 7, 33, 28;
  --hero-tint-rgb: 46, 122, 104;
  --ivory: #f4f3ec;
  --line: rgba(7, 33, 28, 0.1);
  --muted: #6b7370;
  --shadow: 0 18px 50px rgba(7, 33, 28, 0.14);
}

[data-theme="ink"] {
  --ink: #0b1220;
  --ink-2: #131c2e;
  --ink-3: #0a101c;
  --accent: #c8a45c;
  --accent-soft: #e4c98f;
  --accent-rgb: 200, 164, 92;
  --accent-ink: #241a08;
  --accent-deep: #8a6a24;
  --ink-rgb: 11, 18, 32;
  --hero-tint-rgb: 56, 91, 148;
  --ivory: #f7f5f1;
  --line: rgba(11, 18, 32, 0.1);
  --muted: #6b7280;
  --shadow: 0 18px 50px rgba(11, 18, 32, 0.12);
}

[data-theme="burgundy"] {
  --ink: #2a0d14;
  --ink-2: #3a121b;
  --ink-3: #1f080e;
  --accent: #cd9d72;
  --accent-soft: #eccfb4;
  --accent-rgb: 205, 157, 114;
  --accent-ink: #2b1508;
  --accent-deep: #7a4526;
  --ink-rgb: 42, 13, 20;
  --hero-tint-rgb: 132, 52, 46;
  --ivory: #f8f2ee;
  --line: rgba(42, 13, 20, 0.11);
  --muted: #7b6a6c;
  --shadow: 0 18px 50px rgba(42, 13, 20, 0.14);
}

[data-theme="graphite"] {
  --ink: #14161a;
  --ink-2: #1d2127;
  --ink-3: #0d0f12;
  --accent: #79cbbd;
  --accent-soft: #b9ece2;
  --accent-rgb: 121, 203, 189;
  --accent-ink: #062521;
  --accent-deep: #0f5e56;
  --ink-rgb: 20, 22, 26;
  --hero-tint-rgb: 44, 86, 128;
  --ivory: #f3f4f4;
  --line: rgba(20, 22, 26, 0.11);
  --muted: #6a7078;
  --shadow: 0 18px 50px rgba(20, 22, 26, 0.16);
}

[data-theme="indigo"] {
  --ink: #0d1533;
  --ink-2: #16204a;
  --ink-3: #080e26;
  --accent: #a6b8ff;
  --accent-soft: #d3ddff;
  --accent-rgb: 166, 184, 255;
  --accent-ink: #101a3a;
  --accent-deep: #3a4a8f;
  --ink-rgb: 13, 21, 51;
  --hero-tint-rgb: 58, 74, 160;
  --ivory: #f4f5fa;
  --line: rgba(13, 21, 51, 0.1);
  --muted: #6a7086;
  --shadow: 0 18px 50px rgba(13, 21, 51, 0.14);
}

:root {
  /* 兼容别名 */
  --gold: var(--accent);
  --gold-soft: var(--accent-soft);
  --paper: #ffffff;
  --ok: #1f8a5b;
  --warn: #b4453a;
  --radius: 16px;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(var(--ink-rgb), 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.04em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent-soft), var(--accent));
  color: var(--accent-ink); font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.35);
}
.topbar .meta { display: flex; align-items: center; gap: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.topbar .meta strong { color: var(--accent-soft); font-weight: 600; }
.topbar .ghost-link {
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 14px; border-radius: 999px; font-size: 13px;
  transition: 0.2s;
}
.topbar .ghost-link:hover { border-color: var(--accent); color: var(--accent-soft); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(var(--accent-rgb), 0.26), transparent 62%),
    radial-gradient(700px 420px at 8% 110%, rgba(var(--hero-tint-rgb), 0.42), transparent 65%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink-3) 100%);
  padding: 74px 0 84px;
}
.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(70% 60% at 50% 30%, #000 20%, transparent 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  color: var(--accent-soft);
  font-size: 12.5px; letter-spacing: 0.12em;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: #5fd39a; box-shadow: 0 0 0 4px rgba(95, 211, 154, 0.16); }
h1.hero-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.22;
  margin: 22px 0 14px;
  letter-spacing: 0.01em;
  font-weight: 700;
}
.hero-sub { font-size: clamp(15px, 1.4vw, 18px); color: rgba(255, 255, 255, 0.74); margin: 0 0 28px; max-width: 34em; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px; color: rgba(255, 255, 255, 0.9);
}
.chip svg { width: 15px; height: 15px; opacity: 0.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px; border: 0;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s;
}
.btn-primary {
  background: linear-gradient(140deg, var(--accent-soft), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 14px 30px rgba(var(--accent-rgb), 0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(var(--accent-rgb), 0.36); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-line {
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.btn-line:hover { border-color: rgba(255, 255, 255, 0.5); }
.hero-note { font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* seat card */
.seat-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 26px;
  backdrop-filter: blur(8px);
}
.seat-card h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.72); letter-spacing: 0.08em; }
.seat-big { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 18px; }
.seat-big b { font-size: 40px; font-family: var(--serif); color: var(--accent-soft); font-weight: 700; line-height: 1; }
.seat-big span { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.progress { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); transition: width 0.6s ease; }
.seat-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); margin-top: 10px; }

/* ---------- sections ---------- */
section.block { padding: 72px 0; }
section.block.tint { background: var(--paper); border-block: 1px solid var(--line); }
.eyebrow { font-size: 12.5px; letter-spacing: 0.18em; color: var(--accent); font-weight: 600; text-transform: uppercase; }
h2.section-title { font-family: var(--serif); font-size: clamp(23px, 2.6vw, 32px); margin: 10px 0 16px; line-height: 1.35; }
.lede { color: #4b5563; font-size: 15.5px; max-width: 62ch; margin: 0; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.highlights { display: grid; gap: 14px; }
.highlight {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--ivory); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px;
}
.highlight i {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700; font-style: normal;
  background: rgba(var(--accent-rgb), 0.16); color: var(--accent-deep);
}
.highlight p { margin: 0; font-size: 14.5px; color: #1f2937; }

.agenda { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.agenda li { position: relative; padding: 0 0 26px 26px; font-size: 14.8px; color: #1f2937; }
.agenda li::before {
  content: ""; position: absolute; left: -5px; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
.agenda li:last-child { padding-bottom: 0; }

/* sessions */
.session-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.session-card {
  position: relative; text-align: left; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px 20px;
  transition: 0.2s; color: inherit;
}
.session-card:hover { border-color: rgba(var(--accent-rgb), 0.55); transform: translateY(-2px); box-shadow: var(--shadow); }
.session-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }
.session-card.full { opacity: 0.62; cursor: not-allowed; }
.session-card h3 { margin: 0 0 6px; font-size: 17px; }
.session-time { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.session-meter { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.session-meter .bar { flex: 1; height: 5px; border-radius: 999px; background: #ecebe6; overflow: hidden; }
.session-meter .bar > i { display: block; height: 100%; background: var(--accent); }
.session-flag {
  position: absolute; top: 16px; right: 16px;
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: rgba(31, 138, 91, 0.1); color: var(--ok);
}
.session-flag.full { background: rgba(180, 69, 58, 0.1); color: var(--warn); }

/* ---------- form ---------- */
.form-shell {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.75fr);
  gap: 0; background: var(--paper); border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
}
.form-main { padding: 40px 42px; }
.form-side {
  background: linear-gradient(165deg, var(--ink-2), var(--ink));
  color: #fff; padding: 40px 34px;
  display: flex; flex-direction: column; gap: 22px;
}
.form-side h3 { font-family: var(--serif); margin: 0; font-size: 20px; }
.form-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 13.6px; color: rgba(255,255,255,0.76); }
.form-side li { display: flex; gap: 10px; align-items: flex-start; }
.form-side li b { color: var(--accent-soft); font-weight: 600; }
.form-side .divider { height: 1px; background: rgba(255,255,255,0.12); }
.form-side .side-note { font-size: 12.5px; color: rgba(255,255,255,0.5); margin-top: auto; }

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: #374151; }
label .req { color: var(--warn); margin-left: 3px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; padding: 12px 14px; font-size: 14.5px;
  border: 1.5px solid #e2e1dc; border-radius: 11px;
  background: #fcfbf9; color: var(--ink); font-family: inherit;
  transition: 0.16s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}
textarea { resize: vertical; min-height: 84px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.form-actions .btn-primary { min-width: 180px; }
.form-msg { font-size: 13.5px; margin-top: 14px; padding: 11px 14px; border-radius: 10px; display: none; }
.form-msg.show { display: block; }
.form-msg.err { background: rgba(180, 69, 58, 0.08); color: var(--warn); border: 1px solid rgba(180, 69, 58, 0.22); }
.form-msg.ok { background: rgba(31, 138, 91, 0.08); color: var(--ok); border: 1px solid rgba(31, 138, 91, 0.22); }

.success { display: none; text-align: center; padding: 30px 10px; }
.success.show { display: block; }
.success .tick {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: rgba(31, 138, 91, 0.1); color: var(--ok); font-size: 30px;
}
.success h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 8px; }
.success p { color: #4b5563; margin: 0 0 20px; font-size: 14.5px; }
.code-pill {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  background: var(--ink); color: var(--accent-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; letter-spacing: 0.14em;
}
.success .again { margin-top: 22px; font-size: 13px; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; font-size: 13px; text-decoration: underline; }

/* footer */
footer.site {
  background: var(--ink); color: rgba(255, 255, 255, 0.6);
  padding: 40px 0; font-size: 13px;
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer.site a:hover { color: var(--accent-soft); }

.skeleton { background: linear-gradient(90deg, #eee 25%, #f6f6f4 37%, #eee 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 6px; color: transparent; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .grid-2 { grid-template-columns: 1fr; gap: 30px; }
  .session-grid { grid-template-columns: 1fr; }
  .form-shell { grid-template-columns: 1fr; }
  .form-side { order: -1; }
  .form-main { padding: 30px 24px; }
  .form-side { padding: 28px 24px; }
}
@media (max-width: 560px) {
  .topbar .meta span.hide-sm { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  section.block { padding: 52px 0; }
  .hero { padding: 52px 0 60px; }
}
