/*
 * 文件用途：售电小岛四幕前置页的完整视觉、响应式布局与动效。
 * 核心逻辑：浏览器原生滚动吸附连接四幕；CSS 关键帧负责七色循环、文字渐变和预约选择状态。
 * 外部依赖：无；所有颜色和时长集中为变量，便于 Claude Code 后续移植到 Next.js。
 */

:root {
  --hero-red: #ff3b30;
  --hero-orange: #ff9500;
  --hero-yellow: #ffcc00;
  --hero-green: #34c759;
  --hero-blue: #007aff;
  --hero-purple: #af52de;
  --hero-pink: #ff2d55;

  --stage: #0a0612;
  --purple: #a855f7;
  --purple-light: #c084fc;
  --pink-light: #f472b6;
  --gold: #fbbf24;
  --green-light: #4ade80;
  --yellow-light: #fde047;
  --white: #ffffff;
  --line: rgba(192, 132, 252, 0.25);
  --line-strong: rgba(192, 132, 252, 0.62);
  --muted: rgba(255, 255, 255, 0.62);
  --danger: #fb7185;
  --radius: 1rem;

  --card-radius: 1rem;
  --content-width: 64rem;
  --dialog-width: 45rem;
  --dialog-height: 27rem;
  --focus-ring: #fde047;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--stage);
}

html {
  color-scheme: dark;
}

body {
  overflow: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
}

input,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 50;
  padding: 0.7rem 1rem;
  color: var(--stage);
  background: var(--white);
  border-radius: 0.5rem;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.snap-container {
  width: 100%;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.snap-container::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.scene {
  position: relative;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.scene--hero {
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  background: var(--hero-red);
  animation: bg-flash 3s ease-in-out infinite;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: var(--white);
  font-size: clamp(4rem, 18vw, 16rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  /* 阴影小而锐利：原 60px 大光晕会让文字发虚 */
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45));
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-wrap: balance;
}

.hero-kicker {
  display: block;
  margin-bottom: 0.1em;
  font-size: clamp(1.8rem, 7vw, 6.5rem);
  letter-spacing: 0.1em;
}

.hero-line {
  display: block;
}

@keyframes bg-flash {
  0% {
    background-color: var(--hero-red);
  }
  14% {
    background-color: var(--hero-orange);
  }
  28% {
    background-color: var(--hero-yellow);
  }
  42% {
    background-color: var(--hero-green);
  }
  57% {
    background-color: var(--hero-blue);
  }
  71% {
    background-color: var(--hero-purple);
  }
  85% {
    background-color: var(--hero-pink);
  }
  100% {
    background-color: var(--hero-red);
  }
}

.scene--gateway {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vh, 4.25rem) 1.5rem;
  overflow: hidden;
  background: var(--stage);
}

.stage-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(88, 28, 135, 0.1),
    transparent 50%,
    rgba(88, 28, 135, 0.2)
  );
}

.gateway-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-width));
  margin: auto;
  text-align: center;
}

.gateway-content.reveal-ready {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.gateway-content.reveal-ready.in-view {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow,
.dialog-eyebrow {
  margin: 0;
  color: var(--purple-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  font-size: clamp(0.875rem, 1.3vw, 1.125rem);
  line-height: 1.5;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.gateway-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: clamp(0.8rem, 2vh, 1.4rem) 0 0;
  color: var(--white);
  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 900;
  /* 两行标题要保留足够的呼吸空间，避免大字号文字在不同屏幕上视觉粘连。 */
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(
    135deg,
    var(--purple-light),
    var(--pink-light),
    var(--gold)
  );
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-slide 4s linear infinite;
}

@keyframes gradient-slide {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1.1rem, 2.7vh, 1.8rem);
}

.entry-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 9.9rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  overflow: hidden;
  color: var(--white);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--card-radius);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.3s ease,
    background-color 0.3s ease, box-shadow 0.3s ease;
}

.entry-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 110%,
    rgba(168, 85, 247, 0.22),
    transparent 58%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.entry-card:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.25);
  transform: translateY(-3px);
}

.entry-card:hover::before {
  opacity: 1;
}

.entry-card:active {
  transform: translateY(0) scale(0.985);
}

.entry-card:focus-visible,
.dialog-close:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.entry-title,
.entry-description {
  position: relative;
  z-index: 1;
}

.entry-title {
  color: var(--white);
  font-size: clamp(1.55rem, 2.7vw, 2.4rem);
  font-weight: 900;
  line-height: 1.08;
  text-wrap: balance;
}

.entry-description {
  max-width: 18rem;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.benefit-copy {
  margin-top: clamp(1.2rem, 2.8vh, 1.9rem);
}

.benefit-copy > p:first-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.15rem, 2.1vw, 1.875rem);
  line-height: 1.2;
}

.benefit-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 0.28em;
  margin: 0.45rem 0 0;
  color: var(--white);
  font-size: clamp(1.5rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.benefit-green {
  color: var(--green-light);
}

.benefit-yellow {
  color: var(--yellow-light);
}

.benefit-purple {
  color: var(--purple-light);
}

.join-cta {
  margin: clamp(1.05rem, 2.8vh, 1.8rem) 0 0;
  color: var(--white);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.6),
    0 0 60px rgba(168, 85, 247, 0.3);
  animation: join-pulse 2s ease-in-out infinite;
}

@keyframes join-pulse {
  0%,
  100% {
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.6),
      0 0 60px rgba(168, 85, 247, 0.3);
  }
  50% {
    text-shadow: 0 0 40px var(--purple),
      0 0 100px rgba(168, 85, 247, 0.6),
      0 0 180px rgba(168, 85, 247, 0.3);
  }
}

/*
 * 第三幕直接显示“聊一聊”，用参考页同类的蓝白文字渐变作为唯一主动画。
 * 不加入多语言问候轮播，用户一进入这一幕就能看懂当前行动目标。
 */
.scene--contact {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 5rem) 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 45%, rgba(0, 102, 255, 0.13), transparent 31rem),
    radial-gradient(circle at 73% 58%, rgba(126, 34, 206, 0.14), transparent 29rem),
    #050507;
}

.contact-glow {
  position: absolute;
  width: min(70vw, 62rem);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.18), transparent 67%);
  filter: blur(18px);
  animation: contact-glow-breathe 5s ease-in-out infinite;
}

.contact-content {
  position: relative;
  z-index: 1;
  width: min(100%, 70rem);
  text-align: center;
}

.contact-kicker {
  margin: 0;
  color: var(--purple-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  letter-spacing: 0.18em;
}

.contact-title {
  margin: 0.15em 0 0;
  color: transparent;
  background: linear-gradient(90deg, #0066ff 0%, #ffffff 48%, #0066ff 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.06em;
  filter: drop-shadow(0 0 42px rgba(0, 102, 255, 0.18));
  animation: contact-gradient-shift 3s ease infinite;
}

.contact-lead {
  max-width: 45rem;
  margin: clamp(1.2rem, 3vh, 2rem) auto 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.8;
  text-wrap: pretty;
}

.contact-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(1.6rem, 4vh, 2.8rem);
}

.contact-action {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  color: var(--white);
  background: #0066ff;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 0 42px rgba(0, 102, 255, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.contact-action:hover {
  background: #1d73ff;
  box-shadow: 0 0 62px rgba(0, 102, 255, 0.46);
  transform: translateY(-2px);
}

.contact-action:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 5px;
}

@keyframes contact-gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes contact-glow-breathe {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

/*
 * 第四幕与第三幕属于同一个滚动容器：预约内容可以自然增高，不使用独立页顶栏或内部滚动条。
 * 选中状态才使用紫色发光，避免整张长表单到处闪烁而影响阅读。
 */
.scene--booking {
  min-height: 100dvh;
  padding: clamp(3.5rem, 7vw, 7rem) 1.5rem;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 102, 255, 0.12), transparent 31rem),
    radial-gradient(circle at 85% 34%, rgba(126, 34, 206, 0.13), transparent 26rem),
    #07040d;
  scroll-snap-stop: normal;
}

.booking-glow {
  position: absolute;
  top: 3rem;
  left: 50%;
  width: min(75vw, 58rem);
  aspect-ratio: 1.8;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.12), transparent 68%);
  filter: blur(30px);
  transform: translateX(-50%);
}

.booking-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 74rem);
  margin: 0 auto;
}

.booking-heading {
  max-width: 48rem;
  margin: 0 auto clamp(2.2rem, 5vw, 4rem);
  text-align: center;
}

.booking-heading > p,
.section-heading > p {
  margin: 0;
  color: #4f8cff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  letter-spacing: 0.18em;
}

.booking-heading h2 {
  margin: 0.22em 0 0;
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.booking-heading > span {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}

.booking-form {
  display: grid;
  gap: 1.25rem;
}

.booking-section,
.success-panel {
  padding: clamp(1.4rem, 3vw, 2.5rem);
  background: rgba(18, 10, 31, 0.78);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading > p {
  font-size: 0.78rem;
}

.section-heading h3 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.92fr) minmax(22rem, 1.08fr);
  gap: 1.25rem;
}

.calendar-panel,
.time-panel {
  min-width: 0;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
}

.calendar-toolbar,
.time-panel-heading {
  display: flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.calendar-toolbar button {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  cursor: pointer;
}

.calendar-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.25;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.calendar-weekdays {
  margin-top: 1.1rem;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.75rem;
  text-align: center;
}

.calendar-grid {
  margin-top: 0.5rem;
}

.calendar-day,
.calendar-blank {
  aspect-ratio: 1;
}

.calendar-day {
  min-width: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  cursor: pointer;
}

.calendar-day:hover:not(:disabled) {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(192, 132, 252, 0.32);
}

.calendar-day.is-selected {
  color: var(--white);
  background: linear-gradient(145deg, #0066ff, #7e22ce);
  box-shadow: 0 0 25px rgba(0, 102, 255, 0.28);
}

.calendar-day:disabled {
  color: rgba(255, 255, 255, 0.17);
  cursor: not-allowed;
}

.time-panel-heading {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.time-panel-heading span {
  color: var(--muted);
  font-size: 0.82rem;
}

.time-panel-heading strong {
  min-height: 1.5rem;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.time-slot {
  min-height: 3.2rem;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 0.8rem;
  cursor: pointer;
}

.time-slot:hover,
.time-slot.is-selected {
  color: var(--white);
  background: rgba(0, 102, 255, 0.14);
  border-color: rgba(79, 140, 255, 0.65);
}

.time-slot.is-selected {
  box-shadow: 0 0 26px rgba(0, 102, 255, 0.2);
}

.schedule-note {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
  line-height: 1.6;
}

.choice-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.method-card,
.duration-grid label,
.topic-choice-grid label {
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

.method-card {
  display: flex;
  min-height: 9rem;
  align-items: flex-start;
  flex-direction: column;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--radius);
}

.method-card:hover,
.topic-choice-grid label:hover {
  transform: translateY(-2px);
}

.choice-input:focus-visible + label {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.choice-input:checked + label {
  background: rgba(0, 102, 255, 0.12);
  border-color: rgba(79, 140, 255, 0.72);
  box-shadow: 0 0 28px rgba(0, 102, 255, 0.18);
}

.method-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: auto;
  place-items: center;
  color: #79a7ff;
  background: rgba(0, 102, 255, 0.12);
  border-radius: 0.65rem;
  font-weight: 900;
}

.method-card strong {
  margin-top: 1.1rem;
  font-size: 1rem;
}

.method-card small {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.45;
}

.duration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.duration-grid label {
  display: flex;
  min-height: 6.5rem;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--radius);
}

.duration-grid label strong {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
}

.duration-grid label span {
  color: var(--muted);
}

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

.form-field,
.attachment-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.55rem;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field > span,
.attachment-field > span,
.topic-choice-grid legend {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-field em,
.topic-choice-grid em {
  color: #79a7ff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 500;
}

.form-field small,
.attachment-field small {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 0.95rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  outline: none;
}

.form-field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(79, 140, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.topic-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.topic-choice-grid legend {
  width: 100%;
  margin-bottom: 0.55rem;
}

.topic-choice-grid label {
  position: relative;
  display: flex;
  min-height: 7rem;
  justify-content: center;
  flex-direction: column;
  padding: 1.2rem 3.4rem 1.2rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--radius);
}

.topic-choice-grid label::after {
  position: absolute;
  top: 50%;
  right: 1.2rem;
  width: 1.15rem;
  height: 1.15rem;
  content: "";
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 3px rgba(10, 6, 18, 0.9);
}

.topic-choice-grid .choice-input:checked + label::after {
  background: #4f8cff;
  border-color: #8db3ff;
  box-shadow: inset 0 0 0 3px #120a1f, 0 0 20px rgba(0, 102, 255, 0.5);
}

.topic-choice-grid label strong,
.topic-choice-grid label span {
  display: block;
}

.topic-choice-grid label strong {
  font-size: 1.1rem;
}

.topic-choice-grid label span {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.attachment-field {
  position: relative;
  min-height: 8rem;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px dashed rgba(79, 140, 255, 0.4);
  border-radius: 0.9rem;
  cursor: pointer;
  text-align: center;
}

.attachment-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.attachment-field strong {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-error {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  color: #fecdd3;
  background: rgba(127, 29, 29, 0.32);
  border: 1px solid rgba(251, 113, 133, 0.34);
  border-radius: 0.75rem;
}

.complete-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.4rem;
}

.complete-row p {
  max-width: 31rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.8rem;
  line-height: 1.6;
}

.complete-button {
  display: inline-flex;
  min-height: 3.6rem;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 0.9rem 1.3rem 0.9rem 1.6rem;
  color: var(--white);
  background: #0066ff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 0 36px rgba(0, 102, 255, 0.28);
}

.complete-button span {
  font-size: 1.5rem;
}

.complete-button:hover {
  background: #1d73ff;
  transform: translateY(-1px);
}

.success-panel {
  max-width: 54rem;
  margin: 2rem auto;
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}

.success-mark {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  place-items: center;
  color: #052e16;
  background: var(--green-light);
  border-radius: 50%;
  box-shadow: 0 0 42px rgba(74, 222, 128, 0.3);
  font-size: 2rem;
  font-weight: 900;
}

.success-panel > p:first-of-type {
  color: #79a7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  letter-spacing: 0.15em;
}

.success-panel h2 {
  margin: 0.65rem 0 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  text-wrap: balance;
}

.success-panel > p:last-of-type {
  color: var(--muted);
  line-height: 1.7;
}

.success-panel > div {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.success-panel button,
.success-panel a {
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.entry-dialog {
  width: min(var(--dialog-width), calc(100vw - 2rem));
  height: min(var(--dialog-height), calc(100dvh - 2rem));
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  color: var(--white);
  background: rgba(18, 10, 31, 0.82);
  border: 1px solid rgba(216, 180, 254, 0.48);
  border-radius: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 52px rgba(168, 85, 247, 0.2), 0 2rem 6rem rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(30px) saturate(1.35);
  -webkit-backdrop-filter: blur(30px) saturate(1.35);
}

/*
 * 为什么分成两段动效：先让卡片柔和浮起，再只用光影慢慢呼吸，
 * 避免持续缩放正文造成阅读晃动，同时保留类似 iOS 浮层的生命感。
 */
.entry-dialog[open] {
  animation: dialog-arrive 480ms cubic-bezier(0.2, 0.9, 0.22, 1.12) both,
    dialog-breathe 4.8s ease-in-out 480ms infinite;
}

/*
 * 公司介绍图片本身已经包含完整标题与信息层级，因此视觉模式只保留大图和关闭按钮。
 * 图片完整缩放进统一弹窗，避免出现容易被误解为“还有下一页”的内部滚动条。
 */
.entry-dialog--visual {
  width: min(var(--dialog-width), calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(0.5rem, 1.5vw, 1rem);
  overflow: hidden;
}

.entry-dialog--visual .dialog-sheen {
  display: none;
}

.dialog-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.9rem;
}

.dialog-image[hidden] {
  display: none;
}

.entry-dialog--visual .dialog-close--icon {
  z-index: 2;
  top: 1rem;
  right: 1rem;
  background: rgba(10, 6, 18, 0.82);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.entry-dialog::backdrop {
  background: rgba(4, 2, 8, 0.66);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.dialog-sheen {
  position: absolute;
  inset: -35% -10% auto;
  height: 14rem;
  pointer-events: none;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 68%);
}

@keyframes dialog-arrive {
  from {
    opacity: 0;
    transform: translateY(1.1rem) scale(0.965);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes dialog-breathe {
  0%,
  100% {
    border-color: rgba(216, 180, 254, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 48px rgba(168, 85, 247, 0.18), 0 2rem 6rem rgba(0, 0, 0, 0.54);
  }
  50% {
    border-color: rgba(244, 114, 182, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
      0 0 78px rgba(168, 85, 247, 0.3), 0 2.2rem 6.5rem rgba(0, 0, 0, 0.58);
  }
}

.dialog-eyebrow,
.entry-dialog h3,
.entry-dialog p,
.dialog-close {
  position: relative;
  z-index: 1;
}

.entry-dialog h3 {
  margin: 0.8rem 0 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

#dialog-description {
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.7;
}

.dialog-note {
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.875rem;
  line-height: 1.6;
}

.dialog-close {
  color: var(--white);
  cursor: pointer;
}

.dialog-close--icon {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dialog-close--icon:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.7);
}

.dialog-close--action {
  min-height: 2.75rem;
  margin-top: 1.5rem;
  padding: 0.65rem 1.2rem;
  color: #180d24;
  background: var(--purple-light);
  border: 0;
  border-radius: 0.75rem;
  font-weight: 900;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.dialog-close--action:hover {
  background: #d8b4fe;
  transform: translateY(-1px);
}

/* 为什么使用圆形箭头：它表达“继续进入”，同时与普通确认按钮形成明确区别。 */
.dialog-action--arrow {
  display: grid;
  width: 3.25rem;
  min-height: 3.25rem;
  padding: 0;
  place-items: center;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 880px) {
  .schedule-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .form-field--wide {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .entry-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .entry-dialog--visual {
    padding: 0.5rem;
  }

  .scene--contact {
    padding: 3rem 1rem;
    overflow: visible;
  }

  .contact-title {
    font-size: clamp(5rem, 25vw, 7rem);
  }

  .contact-action {
    width: 100%;
  }

  .scene--booking {
    padding: 3.5rem 1rem;
  }

  .booking-heading {
    margin-bottom: 2rem;
  }

  .booking-heading h2 {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  .booking-section {
    padding: 1rem;
  }

  .schedule-layout {
    gap: 0.8rem;
  }

  .calendar-panel,
  .time-panel {
    padding: 0.85rem;
  }

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

  .method-grid,
  .duration-grid,
  .topic-choice-grid {
    grid-template-columns: 1fr;
  }

  .method-card {
    min-height: 7.5rem;
  }

  .duration-grid label {
    min-height: 5rem;
  }

  .complete-row,
  .success-panel > div {
    align-items: stretch;
    flex-direction: column;
  }

  .complete-button {
    width: 100%;
  }

  .scene--gateway {
    min-height: 100dvh;
    padding: 2.4rem 1.1rem;
    overflow: visible;
  }

  .gateway-title {
    font-size: clamp(2.8rem, 11.5vw, 3.5rem);
  }

  .entry-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .entry-card {
    min-height: 5.6rem;
    padding: 1rem;
  }

  .entry-title {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }

  .entry-description {
    margin-top: 0.35rem;
    font-size: 0.875rem;
  }

  .benefit-copy {
    margin-top: 1.15rem;
  }

  .benefit-list {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .join-cta {
    margin-top: 1rem;
    font-size: clamp(3.8rem, 19vw, 5.5rem);
  }
}

@media (min-width: 701px) and (max-height: 780px) {
  .scene--gateway {
    padding-block: 1.2rem;
  }

  .gateway-title {
    font-size: clamp(3.8rem, 9vh, 5.7rem);
  }

  .entry-grid {
    margin-top: 0.9rem;
  }

  .entry-card {
    min-height: 7.6rem;
    padding-block: 1.25rem;
  }

  .benefit-copy,
  .join-cta {
    margin-top: 0.9rem;
  }

  .join-cta {
    font-size: clamp(4rem, 12vh, 6rem);
  }
}

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

  .scene--hero {
    background: var(--hero-purple);
    animation: none;
  }

  .gradient-text,
  .join-cta,
  .contact-title {
    animation: none;
  }

  .gateway-content.reveal-ready {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
 * 顶栏：居中一排内容入口（了解我们 / 学习中心 / 售电小岛 / 聊一聊）
 * ============================================================ */

/* 顶栏本体只负责定位与居中，不画任何底色；
 * pointer-events: none 让顶栏空白区不挡住幕内的「点空白翻页」交互，
 * 只有真正的胶囊导航恢复为 auto 才能点。 */
.landing-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.6rem;
  background: none;
  pointer-events: none;
}

/* 为什么用荧光描边而不是灰底胶囊：四幕背景明暗差别极大
 * （第一幕橙红亮底、其余深紫暗底），灰色半透明胶囊在亮底上显得脏、不合场景；
 * 白字 + 荧光紫描边不依赖底色对比，任何一幕下都清晰可读。 */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  padding: 0.3rem;
  pointer-events: auto;
}

.topbar-nav-link {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: none;
  display: inline-flex;
  align-items: center;
  height: 2.4rem;
  padding: 0;
  color: var(--white);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 0 4px rgba(192, 132, 252, 0.9), 0 0 10px rgba(192, 132, 252, 0.55);
  transition: text-shadow 160ms ease;
}

.topbar-nav-link:hover {
  text-shadow: 0 0 6px rgba(192, 132, 252, 1), 0 0 16px rgba(192, 132, 252, 0.8);
}

.topbar-nav-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 4px;
  border-radius: 0.3rem;
}

/* 当前所在幕高亮：只有「聊一聊」声明了 data-scene-index 才会命中，
 * 另外三项是动作入口（弹窗/跳转），不属于任何一幕，天然不参与高亮。 */
.topbar-nav-link.is-active {
  text-shadow: 0 0 6px rgba(192, 132, 252, 1), 0 0 18px rgba(192, 132, 252, 0.85);
}

/* NEW 徽标：不继承父按钮的荧光描边，否则一颗小红标也会发紫光，反而不像"新功能"标记 */
.topbar-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.65rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--hero-red);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-shadow: none;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.55);
}

/* 「聊一聊」做成实心按钮：四个入口里唯一的行动号召，需要用底色和其余三个纯文字入口区分出来 */
.topbar-nav-link--cta {
  padding: 0 1.2rem;
  background: #0066ff;
  border-radius: 999px;
  text-shadow: none;
  box-shadow: 0 0 18px rgba(0, 102, 255, 0.45);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.topbar-nav-link--cta:hover {
  background: #1d73ff;
  text-shadow: none;
  box-shadow: 0 0 26px rgba(0, 102, 255, 0.6);
}

.topbar-nav-link--cta.is-active {
  background: #1d73ff;
  text-shadow: none;
}

/* ============================================================
 * 章节导航点（点击翻页配套）
 * ============================================================ */

.scene-dots {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.6rem 0.4rem;
}

.scene-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: height 220ms ease, background 220ms ease, opacity 220ms ease;
}

.scene-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.scene-dot.is-active {
  height: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 640px) {
  .scene-dots {
    right: 0.45rem;
    gap: 0.5rem;
  }

  .scene-dot {
    width: 0.45rem;
    height: 0.45rem;
  }
}

.time-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.time-slot.is-full {
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}

.time-slot.is-full:hover {
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.time-slot-note {
  font-size: 0.66rem;
  color: var(--danger);
}

/* 手机端：去掉登录/注册后只剩四个短词，缩小字号与内边距即可一排放下，
 * 不做汉堡菜单（少一次点击，入口全部直接可见）。 */
@media (max-width: 640px) {
  .landing-topbar {
    padding: 0.7rem 0.75rem;
  }

  .topbar-nav {
    gap: 0.6rem;
    padding: 0.25rem;
  }

  .topbar-nav-link {
    height: 1.9rem;
    padding: 0;
    font-size: 0.75rem;
    letter-spacing: 0;
  }

  .topbar-nav-link--cta {
    padding: 0 0.75rem;
  }

  .topbar-badge {
    top: -0.4rem;
    right: -0.5rem;
    font-size: 0.55rem;
  }
}

/* 极窄屏（iPhone SE 一类 375px 及以下）再收一档，保证不换行、不溢出 */
@media (max-width: 380px) {
  .topbar-nav {
    gap: 0.4rem;
  }

  .topbar-nav-link {
    padding: 0;
    font-size: 0.7rem;
  }
}
