/* ==========================================================================
   《服装零售经营升级实战课》微信 H5 邀请函样式表
   设计语言：深邃丹宁蓝（Deep Denim）+ 复古香槟金（Champagne Gold）+ 暖米白
   与官方视觉封面高度统一，面向 B 端服装店老板的实干高端质感
   ========================================================================== */

:root {
  --bg-deep: #07101d;
  --bg-navy: #0b182a;
  --bg-card: #112238;
  --bg-card-elevated: #162b46;
  --bg-ivory: #f5f0e6;
  --bg-ivory-soft: #ebe3d3;

  --gold: #d6b26e;
  --gold-bright: #ebd097;
  --gold-dim: rgba(214, 178, 110, 0.28);
  --gold-line: rgba(214, 178, 110, 0.22);

  --text-main: #f4efe5;
  --text-sub: #c6d0dd;
  --text-muted: #8fa0b6;
  --text-dark: #111c2c;
  --text-dark-sub: #445266;

  --danger: #ff7b72;
  --danger-bg: rgba(255, 123, 114, 0.12);
  --success: #56c288;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC",
    Georgia, serif;

  --max-w: 460px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: #040a12;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 0%, rgba(28, 56, 94, 0.45), transparent 60%),
    linear-gradient(180deg, #060e1a 0%, #091525 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* 手机优先单栏居中容器（PC 打开自动呈现精致手机画幅） */
.page-shell {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background-color: var(--bg-navy);
  /* 细腻丹宁斜纹暗肌理 */
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.014) 0px,
      rgba(255, 255, 255, 0.014) 1px,
      transparent 1px,
      transparent 5px
    ),
    radial-gradient(ellipse at 80% 18%, rgba(36, 76, 122, 0.35), transparent 55%);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.65);
  position: relative;
  padding-bottom: 92px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* Hides content visually but keeps it in the accessibility tree */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* ===== 顶部 VIP 定制抬头横幅 ===== */
.vip-banner {
  background: linear-gradient(90deg, rgba(214, 178, 110, 0.16), rgba(214, 178, 110, 0.06));
  border-bottom: 1px solid var(--gold-line);
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vip-banner__text {
  font-size: 0.84rem;
  color: var(--gold-bright);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.vip-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 2px 7px;
  border-radius: 999px;
}

.vip-banner__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-banner__studio-link {
  flex-shrink: 0;
  font-size: 0.74rem;
  color: var(--text-sub);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 9px;
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}

.vip-banner__studio-link:hover,
.vip-banner__studio-link:focus-visible {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* 专属定制客户尊享函卡片（URL 带 ?shop= 时重点高亮展示） */
.personal-card {
  margin: 14px 18px 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(214, 178, 110, 0.17), rgba(17, 34, 56, 0.92));
  border: 1px solid rgba(214, 178, 110, 0.48);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.personal-card[hidden] {
  display: none;
}

.personal-card__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.personal-card__salutation {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.38;
  margin: 0;
}

.personal-card__salutation strong {
  color: var(--gold-bright);
}

.personal-card__meta {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--text-sub);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

/* ===== 首屏 Hero ===== */
.hero {
  padding: 22px 20px 26px;
  position: relative;
  overflow: hidden;
}

.hero__audience {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-sub);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.hero__audience::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 9.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

.hero__slogan {
  margin: 12px 0 0;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

.hero__stage {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 18px;
}

.hero__speaker-copy {
  padding-bottom: 4px;
}

.hero__speaker-rule {
  width: 28px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 12px;
}

.hero__speaker-name {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-main);
  line-height: 1.1;
}

.hero__speaker-tag {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.hero__speaker-creds {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.68;
}

.hero__portrait-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(214, 178, 110, 0.34);
  background: #0d1d33;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}

.hero__portrait {
  width: 100%;
  aspect-ratio: 640 / 756;
  object-fit: cover;
  object-position: center top;
}

.hero__portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 68%, rgba(11, 24, 42, 0.72) 100%);
  pointer-events: none;
}

/* 日期与倒计时信息卡 */
.event-bar {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: rgba(10, 20, 36, 0.72);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.event-bar__cell {
  text-align: center;
}

.event-bar__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.event-bar__value {
  margin-top: 2px;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.event-bar__divider {
  width: 1px;
  height: 36px;
  background: var(--gold-line);
}

.countdown {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(214, 178, 110, 0.08);
  border: 1px solid rgba(214, 178, 110, 0.2);
}

.countdown__label {
  font-size: 0.78rem;
  color: var(--gold-bright);
  font-weight: 600;
}

.countdown__timer {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  color: var(--text-sub);
}

.countdown__num {
  display: inline-block;
  min-width: 24px;
  text-align: center;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--bg-deep);
  border: 1px solid var(--gold-line);
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.9rem;
}

.hero__actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

/* ===== 通用按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, background-color 0.2s ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: #101926;
  box-shadow: 0 8px 22px rgba(214, 178, 110, 0.28);
}

.btn--gold:hover {
  filter: brightness(1.05);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--gold-dim);
  color: var(--gold-bright);
}

.btn--outline:hover {
  background: rgba(214, 178, 110, 0.12);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-sub);
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
}

.btn--full {
  width: 100%;
}

/* ===== 通用板块 ===== */
.section {
  padding: 26px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section--ivory {
  background: var(--bg-ivory);
  color: var(--text-dark);
}

.section__header {
  margin-bottom: 18px;
}

.section__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section--ivory .section__eyebrow {
  color: #8c6a2b;
}

.section__title {
  margin: 0;
  font-size: 1.36rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.section__lead {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.section--ivory .section__lead {
  color: var(--text-dark-sub);
}

/* ===== 金句引语块 ===== */
.quote-slab {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(214, 178, 110, 0.12), rgba(214, 178, 110, 0.02));
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote-slab__text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.5;
}

.quote-slab__cite {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ===== 三大痛点卡片 ===== */
.pain-list {
  display: grid;
  gap: 12px;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.pain-card__num {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  padding-top: 2px;
}

.pain-card__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.pain-card__desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-sub);
  line-height: 1.58;
}

/* ===== 四大已确认实证数据卡 ===== */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.proof-card {
  background: #ffffff;
  border: 1px solid rgba(17, 28, 44, 0.1);
  border-radius: var(--radius-md);
  padding: 15px 14px;
  box-shadow: 0 4px 12px rgba(17, 28, 44, 0.05);
}

.proof-card__val {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0e2038;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.proof-card__unit {
  font-size: 0.88rem;
  font-weight: 700;
  color: #9e752d;
  margin-left: 2px;
}

.proof-card__label {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-dark-sub);
  line-height: 1.4;
}

.proof-footnote {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(14, 32, 56, 0.06);
  border-left: 3px solid #9e752d;
  font-size: 0.84rem;
  color: var(--text-dark);
  line-height: 1.55;
}

/* 讲师现场授课实拍双图 */
.photo-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.photo-card {
  margin: 0;
  background: #ffffff;
  border: 1px solid rgba(17, 28, 44, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(17, 28, 44, 0.06);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}

.photo-card figcaption {
  padding: 7px 9px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-dark-sub);
  text-align: center;
}

/* 新版模块展开详情 */
.module-detail {
  padding: 12px 14px 16px 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.module-detail__summary {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--text-sub);
  line-height: 1.6;
}

.module-detail__points {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-main);
}

.module-detail__quote {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--gold);
  background: rgba(214, 178, 110, 0.09);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.5;
}

/* ===== 五大模块 18 章手风琴（遵循 modern-web-guidance accordion 规范） ===== */
.syllabus-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.syllabus-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

[command="--toggle-all"][aria-expanded="true"] .expand,
[command="--toggle-all"][aria-expanded="false"] .collapse {
  display: none;
}

.accordion {
  display: grid;
  gap: 10px;
}

.accordion > details {
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion > details[open] {
  border-color: rgba(214, 178, 110, 0.52);
  background: linear-gradient(180deg, rgba(22, 43, 70, 0.96), rgba(15, 30, 51, 0.98));
}

.accordion > details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 15px 14px;
  cursor: pointer;
  user-select: none;
}

.accordion > details > summary::-webkit-details-marker {
  display: none;
}

/* 自定义矢量箭头位于文字左侧，方便垂直扫读，旋转而非替换 */
.accordion > details > summary::before {
  content: "";
  inline-size: 1.05em;
  block-size: 1.05em;
  flex-shrink: 0;
  background-color: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E")
    no-repeat center / contain;
  rotate: -90deg;
}

.accordion > details[open] > summary::before {
  rotate: 0deg;
}

@media (prefers-reduced-motion: no-preference) {
  .accordion > details > summary::before {
    transition: rotate 0.2s ease;
  }
}

.module-summary__body {
  flex: 1;
  min-width: 0;
}

.module-summary__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.module-summary__code {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(214, 178, 110, 0.12);
  padding: 2px 7px;
  border-radius: 999px;
}

.module-summary__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.module-summary__count {
  margin-left: auto;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.module-summary__sub {
  margin-top: 3px;
  font-size: 0.84rem;
  color: var(--gold-bright);
}

/* 渐进增强平滑展开动画 */
.accordion > details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.accordion > details:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .accordion > details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.28s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.chapter-list {
  margin: 0;
  padding: 4px 14px 16px 38px;
  list-style: none;
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chapter-item {
  padding-top: 10px;
}

.chapter-item + .chapter-item {
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.chapter-item__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.chapter-item__no {
  flex-shrink: 0;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
}

.chapter-item__title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
}

.chapter-item__quote {
  margin: 5px 0 0;
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ===== 报名钩子与 8 张工具表 ===== */
.gift-banner {
  background: linear-gradient(135deg, rgba(214, 178, 110, 0.2), rgba(214, 178, 110, 0.06));
  border: 1px solid rgba(214, 178, 110, 0.45);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.gift-banner__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bg-deep);
  background: var(--gold-bright);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.gift-banner__title {
  margin: 0 0 6px;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--text-main);
}

.gift-banner__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-sub);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.tool-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.tool-card__scene {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.45;
}

.qa-callout {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: rgba(86, 194, 136, 0.09);
  border: 1px solid rgba(86, 194, 136, 0.3);
  font-size: 0.84rem;
  color: #d7f3e3;
}

/* ===== 参会信息清单 ===== */
.info-table {
  display: grid;
  gap: 10px;
}

.info-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
}

.info-row__k {
  color: var(--gold);
  font-weight: 700;
}

.info-row__v {
  color: var(--text-main);
}

/* ===== 报名表单（遵循 validate-input-after-interaction 规范） ===== */
.reg-card {
  background: var(--bg-card);
  border: 1px solid rgba(214, 178, 110, 0.36);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.field .req {
  color: var(--gold-bright);
  margin-left: 3px;
}

/* 规则与提示位于输入框上方，避免手机键盘或自动填充遮挡 */
.hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 16, 29, 0.78);
  color: var(--text-main);
  font-size: 0.96rem;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6b7d96;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 178, 110, 0.18);
}

.error-msg {
  display: none;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--danger);
  line-height: 1.4;
}

/* 仅在交互或提交尝试后显示校验错误，:is() 兼容旧版微信 WebView */
.field :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--danger);
  background-color: var(--danger-bg);
}

.field :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: block;
}

.field :is(input, select, textarea):is(:user-valid, .user-valid-fallback) {
  border-color: rgba(86, 194, 136, 0.7);
}

/* 快捷痛点标签 */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.chip {
  border: 1px solid rgba(214, 178, 110, 0.3);
  background: rgba(214, 178, 110, 0.07);
  color: var(--text-sub);
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.chip[aria-pressed="true"] {
  background: rgba(214, 178, 110, 0.24);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  font-weight: 600;
}

.form-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ===== 底部固定转化条 ===== */
.sticky-cta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--max-w);
  z-index: 20;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 16, 29, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gold-line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.sticky-cta__poster {
  padding: 11px 12px;
  font-size: 0.82rem;
  border-radius: 10px;
  white-space: nowrap;
}

.sticky-cta__main {
  padding: 11px 16px;
  font-size: 0.94rem;
  border-radius: 10px;
}

/* ===== 原生 Modal Dialog（遵循 dialog + prevent-page-scroll-under-modal-dialog） ===== */
dialog {
  border: 1px solid rgba(214, 178, 110, 0.45);
  border-radius: var(--radius-lg);
  background: var(--bg-navy);
  color: var(--text-main);
  width: min(92vw, 410px);
  max-height: 88dvh;
  padding: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

dialog[open] {
  display: flex;
  flex-direction: column;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(3, 8, 16, 0.78);
  backdrop-filter: blur(4px);
}

.dialog__header {
  padding: 16px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dialog__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.dialog__close {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.dialog__body {
  padding: 16px 18px 20px;
  overflow-y: auto;
}

.ticket-box {
  background: linear-gradient(155deg, #132843, #0b182a);
  border: 1px solid rgba(214, 178, 110, 0.48);
  border-radius: var(--radius-md);
  padding: 16px;
}

.ticket-box__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0b2416;
  background: var(--success);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.ticket-box__no {
  font-size: 0.76rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.ticket-box__who {
  margin: 4px 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
}

.ticket-box__grid {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-sub);
  border-top: 1px dashed var(--gold-line);
  padding-top: 10px;
}

.dialog__actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.poster-preview-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.poster-tip {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gold-bright);
}

/* ===== 页脚 ===== */
.footer {
  padding: 24px 20px 30px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer a {
  color: var(--gold);
  text-decoration: none;
}

/* ===== Toast 提示 ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(16px);
  background: rgba(15, 30, 51, 0.96);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
