:root {
  --ink: #111827;
  --text: #344054;
  --muted: #667085;
  --line: #d9e1ec;
  --bg: #f2f5f8;
  --card: #ffffff;
  --brand: #ff8a00;
  --brand-dark: #d96f00;
  --navy: #12345f;
  --navy-2: #1f5f8f;
  --ok: #0f8f67;
  --bad: #d92d20;
  --soft-orange: #fff3e2;
  --soft-blue: #eaf2fb;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.page {
  min-height: 100vh;
  padding-bottom: 24px;
}

.hero {
  min-height: 430px;
  padding: 18px 18px 30px;
  color: #fff;
  background: #13231f;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "AI";
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 170px;
  line-height: 1;
  font-weight: 900;
  color: rgba(255,255,255,.035);
  pointer-events: none;
}

.brand-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-bottom: 30px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ff7652;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 9px 8px;
  box-shadow: 0 10px 24px rgba(255, 118, 82, .28);
}

.brand-mark i {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: #fff;
}

.brand-mark i:nth-child(1) {
  height: 11px;
}

.brand-mark i:nth-child(2) {
  height: 17px;
}

.brand-mark i:nth-child(3) {
  height: 14px;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.brand-text b {
  font-size: 24px;
  line-height: 1;
}

.brand-text span {
  color: rgba(255,255,255,.58);
  font-size: 12px;
  letter-spacing: .4px;
}

.source-pill {
  margin-left: auto;
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.72);
  font-size: 11px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 340px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 3px;
  color: #ff7652;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  max-width: 330px;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 800;
}

.hero p {
  margin: 12px 0 0;
  max-width: 310px;
  color: rgba(255,255,255,.68);
  font-size: 14px;
  line-height: 1.7;
}

.hero h1 span {
  color: #ff7652;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.hero-points em {
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-style: normal;
}

.hero-points em::before {
  content: "✓";
  margin-right: 6px;
  color: #ff7652;
}

.orbit {
  position: absolute;
  right: -74px;
  bottom: -42px;
  width: 260px;
  height: 260px;
  pointer-events: none;
}

.ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 118, 82, .22);
  border-radius: 50%;
}

.ring.r2 {
  inset: 34px;
}

.ring.r3 {
  inset: 70px;
}

.planet {
  position: absolute;
  right: 54px;
  top: 54px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: #974333;
  box-shadow: 0 0 0 5px rgba(0,0,0,.16), 0 18px 38px rgba(0,0,0,.25);
}

.planet span {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: #e77c58;
}

.seat-badge {
  position: absolute;
  left: 42px;
  top: 106px;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(19,35,31,.66);
  backdrop-filter: blur(4px);
}

.seat-badge b {
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.seat-badge small {
  color: #ff9a7f;
  font-size: 10px;
}

.invite {
  margin: -18px 16px 16px;
  position: relative;
  z-index: 2;
  border: 1px dashed var(--brand);
  background: var(--soft-orange);
  color: #8a4700;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
}

.invite b {
  color: #5f3200;
}

.section-head {
  padding: 4px 16px 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.events {
  display: grid;
  gap: 14px;
  padding: 0 16px 30px;
}

.event-card {
  display: flex;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .06);
}

/* 左侧人物/封面图栏 */
.cover {
  flex: 0 0 128px;
  min-height: 158px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  color: #fff;
  background: linear-gradient(135deg, #15335e, #4f7fac);
}

.cover.sz {
  background: linear-gradient(135deg, #0f5f67, #2f9b88);
}

.cover.gz {
  background: linear-gradient(135deg, #5d344e, #9d624c);
}

.city {
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.badge {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.38);
  font-size: 11px;
  font-weight: 700;
}

.badge.full {
  background: var(--bad);
}

/* 右侧广告信息栏 */
.event-body {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.4;
}

.meta {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.event-foot .primary {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.event-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seats {
  color: var(--text);
  font-size: 13px;
}

.seats b {
  color: var(--brand-dark);
}

.primary,
.ghost {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.primary {
  background: var(--brand);
  color: #241100;
}

.primary:disabled {
  background: #d0d5dd;
  color: #667085;
  cursor: not-allowed;
}

.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 14px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.back {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}

.topbar b {
  font-size: 16px;
}

.summary {
  margin: 14px 16px;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: #15335e;
  border: 1px solid #c9d9ee;
  line-height: 1.7;
  font-size: 13px;
}

.summary b {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.form {
  display: grid;
  gap: 14px;
  padding: 0 16px 28px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.field span {
  color: var(--bad);
}

.field input.err {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(217, 45, 32, .12);
}

.field-err {
  margin-top: 5px;
  color: var(--bad);
  font-size: 12px;
  min-height: 0;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 138, 0, .16);
}

.note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.success {
  padding: 46px 20px 26px;
  text-align: center;
}

.check {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #e6f4ef;
  color: var(--ok);
  font-size: 34px;
  font-weight: 900;
}

.success h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.success p {
  margin: 0 auto 20px;
  max-width: 330px;
  color: var(--muted);
  line-height: 1.8;
}

.teacher-card,
.info-card {
  margin: 14px auto 0;
  max-width: 360px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.teacher-qr {
  width: 156px;
  height: 156px;
  margin: 6px auto 12px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px) 0 0 / 20px 20px,
    linear-gradient(#111 10px, transparent 10px) 0 0 / 20px 20px,
    #fff;
  border: 10px solid #fff;
  outline: 1px solid var(--line);
}

.teacher-qr::after {
  content: "企微";
  padding: 6px 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  color: var(--navy);
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f6;
  font-size: 13px;
  text-align: left;
}

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

.info-row span:first-child {
  color: var(--muted);
  flex: 0 0 74px;
}

.info-row span:last-child {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.loading,
.empty {
  padding: 48px 20px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  max-width: min(340px, calc(100vw - 28px));
  transform: translate(-50%, 80px);
  opacity: 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  transition: .2s ease;
  box-shadow: 0 14px 32px rgba(0,0,0,.24);
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (min-width: 720px) {
  body {
    display: grid;
    place-items: start center;
  }

  #app {
    width: 430px;
    min-height: 100vh;
    background: var(--bg);
    box-shadow: 0 0 0 1px var(--line);
  }
}
