/* 观众端入口页（/login 与 /projects）共用样式。
 * 视觉来自根目录 viewer-login/ 静态原型（舞台深色背景 + 纸质入场券），文件前半部分原样沿用；
 * 末尾是接入真实功能后新增的部分：登录错误提示、项目选择页。 */
:root {
  color-scheme: dark;

  --stage: #0a0c11;
  --stage-soft: #10131a;
  --line: rgba(244, 233, 214, 0.14);
  --line-strong: rgba(244, 233, 214, 0.26);

  --cream: #f6efe2;
  --cream-muted: #c0b8aa;
  --cream-faint: #9b9488;

  --amber: #f2bd74;
  --amber-strong: #e6a04a;
  --coral: #e06a4b;

  --paper: #f8f2e7;
  --paper-deep: #efe6d5;
  --paper-ink: #1c1712;
  --paper-muted: #6e6457;

  --font-display: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Menlo", "Consolas", monospace;

  --radius-card: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--cream);
  background: var(--stage);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection {
  background: rgba(224, 106, 75, 0.24);
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--amber-strong);
  outline-offset: 3px;
  border-radius: 2px;
}

button,
input {
  font: inherit;
  color: inherit;
}

/* ---------- 舞台氛围 ---------- */

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 12% -10%, rgba(242, 189, 116, 0.16), transparent 55%),
    radial-gradient(90% 80% at 92% 108%, rgba(224, 106, 75, 0.14), transparent 60%),
    linear-gradient(160deg, #0c0e14 0%, #0a0c11 45%, #080a0e 100%);
}

.stage__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.stage__glow--warm {
  width: 46vw;
  height: 46vw;
  min-width: 380px;
  min-height: 380px;
  top: -16vw;
  left: -8vw;
  background: radial-gradient(circle, rgba(242, 189, 116, 0.5), transparent 68%);
  animation: drift-warm 22s var(--ease) infinite alternate;
}

.stage__glow--cool {
  width: 34vw;
  height: 34vw;
  min-width: 300px;
  min-height: 300px;
  right: -6vw;
  bottom: -12vw;
  background: radial-gradient(circle, rgba(96, 128, 168, 0.32), transparent 70%);
  animation: drift-cool 26s var(--ease) infinite alternate;
}

.stage__beam {
  position: absolute;
  top: -30vh;
  width: 26vw;
  height: 150vh;
  transform-origin: top center;
  filter: blur(26px);
  opacity: 0.45;
}

.stage__beam--one {
  left: 12vw;
  transform: rotate(14deg);
  background: linear-gradient(
    to bottom,
    rgba(242, 189, 116, 0.22),
    rgba(242, 189, 116, 0.04) 45%,
    transparent 72%
  );
}

.stage__beam--two {
  left: 44vw;
  width: 14vw;
  transform: rotate(-9deg);
  background: linear-gradient(
    to bottom,
    rgba(224, 106, 75, 0.16),
    rgba(224, 106, 75, 0.03) 40%,
    transparent 66%
  );
}

.stage__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

@keyframes drift-warm {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(5vw, 4vh, 0) scale(1.12);
  }
}

@keyframes drift-cool {
  from {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  to {
    transform: translate3d(-4vw, -3vh, 0) scale(1);
  }
}

/* ---------- 布局 ---------- */

.layout {
  position: relative;
  z-index: 1;
  width: min(1400px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(26px, 4.2vh, 52px) clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 452px);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.2vh, 36px);
  min-width: 0;
}

/* ---------- 品牌 ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.brand__mark {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  width: 30px;
  height: 30px;
  padding: 7px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(246, 239, 226, 0.04);
}

.brand__mark span {
  width: 2px;
  border-radius: 2px;
  background: var(--amber);
  animation: meter 1.6s var(--ease) infinite alternate;
}

.brand__mark span:nth-child(1) {
  height: 40%;
  animation-delay: -0.2s;
}
.brand__mark span:nth-child(2) {
  height: 75%;
  animation-delay: -0.6s;
}
.brand__mark span:nth-child(3) {
  height: 100%;
  animation-delay: -0.1s;
}
.brand__mark span:nth-child(4) {
  height: 62%;
  animation-delay: -0.8s;
}
.brand__mark span:nth-child(5) {
  height: 32%;
  animation-delay: -0.4s;
}

@keyframes meter {
  from {
    transform: scaleY(0.42);
  }
  to {
    transform: scaleY(1);
  }
}

.brand__name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cream);
}

.brand__name span {
  color: var(--amber);
}

.brand__slash {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

.brand__role {
  color: var(--cream-muted);
  letter-spacing: 0.22em;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 4px;
  padding: 6px 12px;
  border: 1px solid rgba(224, 106, 75, 0.35);
  border-radius: 999px;
  background: rgba(224, 106, 75, 0.08);
  color: #f0b29e;
  font-size: 11px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.live-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(224, 106, 75, 0.6);
  animation: live-pulse 2.4s var(--ease) infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 106, 75, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(224, 106, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(224, 106, 75, 0);
  }
}

/* ---------- 节目介绍 ---------- */

.kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--cream-muted);
  font-size: 12.5px;
  letter-spacing: 0.14em;
}

.kicker__sep {
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 4.9vw, 68px);
  line-height: 1.16;
  letter-spacing: 0.015em;
  color: var(--cream);
  text-wrap: balance;
}

.headline__accent {
  color: var(--amber);
}

.lede {
  max-width: 34em;
  margin: 20px 0 0;
  color: var(--cream-muted);
  font-size: 14.5px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

/* ---------- 能力清单 ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.feature {
  position: relative;
  padding: 20px clamp(14px, 1.6vw, 24px) 4px;
  border-left: 1px solid var(--line);
}

.feature:first-child {
  padding-left: 0;
  border-left: 0;
}

.feature__index {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--amber-strong);
}

.feature__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.feature__text {
  margin: 0;
  color: var(--cream-faint);
  font-size: 12.5px;
  line-height: 1.85;
}

/* ---------- 现场速记 ---------- */

.ticker {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin: 0;
  color: var(--cream-muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.ticker__pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  animation: live-pulse 3s var(--ease) infinite;
}

.ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent);
  mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: ticker 46s linear 2s infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__item {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: #8b8579;
  font-size: 12.5px;
  white-space: nowrap;
}

.ticker__item time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #8a8478;
  letter-spacing: 0.06em;
}

.ticker__tag {
  padding: 1px 7px;
  border: 1px solid rgba(242, 189, 116, 0.28);
  border-radius: 999px;
  color: var(--amber-strong);
  font-size: 10px;
  letter-spacing: 0.08em;
}

@keyframes ticker {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ---------- 入场券 ---------- */

.entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.ticket {
  --notch: 15px;
  --stub-h: 126px;

  position: relative;
  width: 100%;
  max-width: 452px;
  border-radius: var(--radius-card);
  color: var(--paper-ink);
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.55));
  -webkit-mask-image:
    radial-gradient(circle var(--notch) at left calc(100% - var(--stub-h)), transparent 98%, #000 100%),
    radial-gradient(circle var(--notch) at right calc(100% - var(--stub-h)), transparent 98%, #000 100%);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle var(--notch) at left calc(100% - var(--stub-h)), transparent 98%, #000 100%),
    radial-gradient(circle var(--notch) at right calc(100% - var(--stub-h)), transparent 98%, #000 100%);
  mask-size: 100% 100%;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-composite: intersect;
}

.ticket::before {
  /* 纸张高光 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 0 0 1px rgba(90, 70, 45, 0.08);
}

.ticket__body {
  position: relative;
  padding: clamp(26px, 4vh, 34px) clamp(26px, 3.2vw, 36px) 28px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(242, 189, 116, 0.16), transparent 55%),
    linear-gradient(168deg, #fbf6eb 0%, var(--paper) 46%, #f2e9d9 100%);
}

.ticket__body::after {
  /* 细密纸纹 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.34 0 0 0 0 0.22 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}

.ticket__body > * {
  position: relative;
  z-index: 1;
}

.ticket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(28, 23, 18, 0.1);
}

.ticket__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--paper-muted);
  text-transform: uppercase;
}

.ticket__latin {
  color: #806f57;
}

.ticket__no {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #806f57;
}

.ticket__title {
  margin: 20px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(29px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.ticket__sub {
  margin: 0 0 22px;
  color: var(--paper-muted);
  font-size: 12.5px;
  line-height: 1.8;
}

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

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.field__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #756753;
}

.field__control {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(28, 23, 18, 0.18);
  transition: border-color 0.25s var(--ease);
}

.field__control:focus-within {
  border-color: rgba(28, 23, 18, 0.62);
}

.field__prefix {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #7a6b55;
  letter-spacing: 0.04em;
}

.field__input {
  flex: 1;
  min-width: 0;
  padding: 9px 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--paper-ink);
  caret-color: var(--coral);
}

.field__input::placeholder {
  color: #7f715c;
  letter-spacing: 0.02em;
}

/* 浏览器自动填充时保留票面底色 */
.field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--paper-ink);
  -webkit-box-shadow: 0 0 0 1000px var(--paper) inset;
  caret-color: var(--coral);
}

.field__action {
  flex: none;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #9a5a32;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.field__action:hover {
  color: #6d3a19;
}

.field__action:focus-visible {
  outline: 2px solid rgba(224, 106, 75, 0.55);
  outline-offset: 4px;
  border-radius: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.button:focus-visible {
  outline: 2px solid var(--amber-strong);
  outline-offset: 3px;
}

.button--primary {
  margin-top: 6px;
  background: #1d1812;
  color: #f8f1e4;
  box-shadow: 0 12px 24px -14px rgba(29, 24, 18, 0.9);
}

.button--primary svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.button--primary:hover {
  background: #2c2319;
  box-shadow: 0 16px 30px -14px rgba(29, 24, 18, 0.95);
}

.button--primary:hover svg {
  transform: translateX(3px);
}

.button--primary:active {
  transform: translateY(1px);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #7f715c;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(28, 23, 18, 0.1);
}

.button--wechat {
  border-color: rgba(28, 23, 18, 0.16);
  background: rgba(255, 255, 255, 0.42);
  color: #3f3527;
  letter-spacing: 0.06em;
  min-height: 44px;
}

.button--wechat:hover {
  border-color: rgba(28, 23, 18, 0.3);
  background: rgba(255, 255, 255, 0.75);
}

.wechat-icon {
  width: 19px;
  height: 19px;
  fill: #23a455;
}

.legal {
  margin: 16px 0 0;
  color: #7a6b55;
  font-size: 10.5px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.legal a {
  color: #7c5a38;
  text-decoration: underline;
  text-decoration-color: rgba(124, 90, 56, 0.35);
  text-underline-offset: 3px;
}

/* ---------- 票根 ---------- */

.ticket__stub {
  position: relative;
  height: var(--stub-h);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(26px, 3.2vw, 36px) 20px;
  border-top: 1px dashed rgba(28, 23, 18, 0.24);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: linear-gradient(180deg, var(--paper-deep), #e9dfcd);
}

.stub__meta {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px 22px;
  margin: 0;
}

.stub__meta div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stub__meta dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #7d6a4f;
}

.stub__meta dd {
  margin: 0;
  font-size: 11.5px;
  color: #4a3f30;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.stub__code {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  align-self: stretch;
}

.barcode {
  width: 76px;
  flex: 1;
  max-height: 34px;
  background-image: repeating-linear-gradient(
    90deg,
    #3a3126 0 1px,
    transparent 1px 3px,
    #3a3126 3px 5px,
    transparent 5px 7px,
    #3a3126 7px 8px,
    transparent 8px 11px
  );
  opacity: 0.72;
}

.stub__serial {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: #7d6a4f;
  white-space: nowrap;
}

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

.entry__foot {
  margin: 0;
  color: #8a8478;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-align: center;
}

.entry__foot a {
  color: #c9c1b2;
  border-bottom: 1px solid rgba(201, 193, 178, 0.3);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease);
}

.entry__foot a:hover {
  color: var(--amber);
  border-color: rgba(242, 189, 116, 0.5);
}

.entry__dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px;
  border-radius: 50%;
  background: #5a554c;
  vertical-align: middle;
}

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

@media (max-width: 1180px) and (min-width: 901px) {
  /* 小笔记本 / 平板横屏：两栏保留，但收紧票面与栏距 */
  .layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 404px);
    gap: clamp(28px, 4vw, 48px);
    padding-inline: clamp(28px, 4vw, 48px);
  }

  .headline {
    font-size: clamp(40px, 4.4vw, 56px);
  }

  .feature {
    padding-top: 18px;
  }

  .feature__title {
    font-size: 18px;
  }

  .feature__text {
    font-size: 12px;
  }

  .ticket {
    --stub-h: 118px;
    max-width: 404px;
  }

  .ticket__body {
    padding: 24px 28px 24px;
  }

  .ticket__title {
    font-size: 29px;
    margin-top: 18px;
  }

  .ticket__sub {
    margin-bottom: 18px;
  }

  .ticket__stub {
    padding: 18px 28px;
  }

  .legal {
    margin-top: 12px;
  }
}

@media (max-width: 900px) {
  /* 窄屏：单列，并把登录券提到节目介绍之后，避免先滚过整屏才看到表单 */
  .layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .showcase {
    display: contents;
  }

  .brand {
    order: 1;
  }

  .intro {
    order: 2;
  }

  .entry {
    order: 3;
    width: 100%;
  }

  .features {
    order: 4;
  }

  .ticker {
    order: 5;
  }

  .lede {
    max-width: 46em;
  }
}

@media (max-width: 760px) {
  .layout {
    padding: 26px 20px 36px;
    gap: 30px;
  }

  .brand {
    flex-wrap: wrap;
    gap: 10px;
  }

  .live-badge {
    margin-left: 0;
  }

  .kicker {
    row-gap: 6px;
  }

  .kicker__sep {
    display: none;
  }

  .kicker__place {
    flex-basis: 100%;
    color: #a9a196;
    letter-spacing: 0.12em;
  }

  .headline {
    font-size: clamp(34px, 9vw, 46px);
  }

  .lede {
    font-size: 13.5px;
    line-height: 1.85;
    margin-top: 16px;
  }

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

  .feature {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 6px;
    padding: 16px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .feature__index {
    grid-row: 1;
    margin: 4px 0 0;
  }

  .feature__title {
    grid-column: 2;
    margin-bottom: 4px;
    font-size: 17px;
  }

  .feature__text {
    grid-column: 2;
    font-size: 12px;
  }

  .ticker {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ticker__viewport {
    width: 100%;
  }

  .ticket__body {
    padding-left: 22px;
    padding-right: 22px;
  }

  .ticket__stub {
    padding-left: 22px;
    padding-right: 22px;
  }

  .stub__meta {
    grid-template-columns: auto;
    gap: 8px;
  }

  .stub__meta div {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .button--primary {
    min-height: 50px;
  }
}

@media (max-width: 380px) {
  .stub__code {
    display: none;
  }
}

@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;
  }

  .ticker__track {
    animation: none;
  }
}

/* ---------- 接入真实功能后新增 ---------- */

.form-message {
  min-height: 1.4em;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #a2402a;
}

.form-message:empty {
  display: none;
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.ticket--plain {
  /* 登录页票根只放说明文字，不需要条形码那么高 */
  --stub-h: 92px;
}

.stub__note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--paper-muted);
}

/* ---------- 项目选择页 ---------- */

.picker {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(24px, 4vh, 44px) clamp(20px, 5vw, 64px) 64px;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vh, 52px);
}

.picker__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.picker__user {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--cream-muted);
}

.picker__user strong {
  color: var(--cream);
  font-weight: 600;
}

.link-button {
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--cream-muted);
  font-size: 13px;
  cursor: pointer;
}

.link-button:hover {
  color: var(--cream);
  border-bottom-color: var(--cream-muted);
}

.link-button:focus-visible {
  outline: 2px solid var(--amber-strong);
  outline-offset: 3px;
}

.picker__intro .headline {
  font-size: clamp(36px, 5vw, 60px);
}

.picker__intro .lede {
  margin-top: 14px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 每个项目一张纸质卡片，与登录页的入场券同一种材质；正在录制的项目卡片左侧多一条珊瑚色。 */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 26px 26px 22px;
  border-radius: 18px;
  color: var(--paper-ink);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(242, 189, 116, 0.14), transparent 55%),
    linear-gradient(168deg, #fbf6eb 0%, var(--paper) 46%, #f2e9d9 100%);
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.project-card.is-live {
  box-shadow: inset 4px 0 0 var(--coral), 0 26px 50px -24px rgba(0, 0, 0, 0.7);
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-card:focus-visible {
  outline: 3px solid var(--amber-strong);
  outline-offset: 4px;
}

.project-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.project-card__template {
  flex: none;
  padding: 3px 10px;
  border: 1px solid rgba(110, 100, 87, 0.3);
  border-radius: 999px;
  font-size: 12px;
  color: var(--paper-muted);
}

.project-card__live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #b4472c;
}

.project-card__live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  animation: live-pulse 1.8s ease-in-out infinite;
}

.project-card__meta {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--paper-muted);
}

.project-card__go {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(110, 100, 87, 0.35);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--paper-ink);
}

.picker__empty {
  max-width: 34em;
  margin: 0;
  color: var(--cream-muted);
  font-size: 15px;
  line-height: 1.8;
}

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

  .project-card__name {
    font-size: 23px;
  }
}
