/* ============ Holo Xmas — Apple-inspired dark UI ============ */

:root {
  --bg: #070A18;
  --bg-2: #0B1024;
  --text: #F5F7FF;
  --muted: rgba(245, 247, 255, 0.62);
  --faint: rgba(245, 247, 255, 0.38);
  --line: rgba(255, 255, 255, 0.1);
  --panel: rgba(255, 255, 255, 0.045);
  --gold: #FFD84A;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, p { margin: 0; }

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

button { cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 5vw, 48px);
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(7, 10, 24, 0.62);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__brand {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav__brand span { color: var(--gold); }

.nav__links {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.nav__links button {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.25s, color 0.25s;
}
.nav__links button.is-active { background: rgba(255, 255, 255, 0.16); color: var(--text); }

.nav__cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #0A0D1E;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: transform 0.2s, opacity 0.2s;
}
.nav__cta:hover { transform: scale(1.04); }

/* ---------- Views ---------- */

.view { display: none; }
.view.is-active { display: block; animation: fade 0.5s ease both; }

@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 86px) clamp(20px, 5vw, 40px) clamp(22px, 4vw, 44px);
  text-align: center;
}

.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.05;
  text-wrap: balance;
  letter-spacing: -0.035em;
  font-weight: 700;
  background: linear-gradient(180deg, #FFFFFF 20%, #B9C6FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5;
  color: var(--muted);
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s, opacity 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--text); color: #0A0D1E; }
.btn--primary:hover { transform: scale(1.03); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--large { padding: 17px 40px; font-size: 18px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Showcase ---------- */

.showcase { padding: clamp(20px, 5vw, 60px) 0 clamp(40px, 7vw, 90px); }

.showcase__rail {
  display: flex;
  gap: clamp(16px, 2.6vw, 34px);
  padding: 20px clamp(20px, 5vw, 48px) 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  justify-content: flex-start;
}
.showcase__rail::-webkit-scrollbar { display: none; }
.showcase__rail .card { scroll-snap-align: center; flex: 0 0 auto; --card-w: min(74vw, 300px); }

@media (min-width: 1180px) {
  .showcase__rail { justify-content: center; overflow: visible; }
  .showcase__rail .card { --card-w: 264px; }
}

.showcase__hint {
  text-align: center;
  color: var(--faint);
  font-size: 14px;
  padding: 0 20px;
}

/* ---------- Steps & features ---------- */

.steps, .features, .faq {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 80px) clamp(20px, 5vw, 48px);
}

.steps__grid, .features__grid {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 区块标题：H2 层级，承接 H1 的核心词并覆盖长尾说法 */
.section__title {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: clamp(18px, 2.6vw, 32px);
}

.showcase__title {
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: -0.02em;
  text-align: center;
  padding: 0 20px;
  margin-bottom: 2px;
}

.step, .feature {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.step__num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 14px;
}
.step h3, .feature h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step p, .feature p { color: var(--muted); font-size: 15px; line-height: 1.55; }

.features { padding-top: 0; }
.feature { background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); }

/* ---------- Studio ---------- */

.studio__head {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 84px) clamp(20px, 5vw, 48px) 28px;
}
.studio__head h2 {
  font-size: clamp(34px, 5.4vw, 60px);
  letter-spacing: -0.03em;
  font-weight: 700;
}
.studio__head p { margin-top: 12px; color: var(--muted); font-size: 17px; }

.panels {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .panels { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px 22px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.panel__tag {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: #0A0D1E;
  font-weight: 700;
  font-size: 15px;
}
.panel h3 { font-size: 22px; letter-spacing: -0.02em; }
.panel__note { color: var(--faint); font-size: 13px; line-height: 1.5; margin-top: auto; }

/* --- A: drop zone --- */

.drop {
  position: relative;
  min-height: 230px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1.5px dashed rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  transition: box-shadow 0.2s, background 0.2s;
}
.drop.is-drag { background: rgba(255, 216, 74, 0.1); box-shadow: inset 0 0 0 2px var(--gold); }
.drop__icon { width: 46px; height: 46px; margin: 0 auto 12px; color: var(--faint); }
.drop__icon svg { width: 100%; height: 100%; }
.drop p { font-size: 15px; color: var(--muted); }
.drop__hint { margin-top: 8px; font-size: 13px !important; color: var(--faint) !important; }

.drop__preview { display: grid; gap: 12px; justify-items: center; width: 100%; }
.drop__preview img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(0, 0, 0, 0.4);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
}
.chip b { font-weight: 600; color: var(--gold); margin-right: 4px; }

.drop__loading { display: grid; gap: 12px; width: 100%; max-width: 240px; }
.bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0%; background: var(--gold); border-radius: 999px; transition: width 0.3s; }
#bar-label { font-size: 13px; color: var(--muted); }

.samples { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
.samples .chip { cursor: pointer; transition: background 0.2s; }
.samples .chip:hover { background: rgba(255, 255, 255, 0.16); }
.samples .chip--sample {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
}
.samples .chip--sample img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* --- B: fields --- */

.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5l5-5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field select option { color: #111; }
.field input::placeholder { color: var(--faint); }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg button {
  padding: 11px 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.seg button.is-on { background: var(--text); color: #0A0D1E; box-shadow: none; }

/* --- C: mystery --- */

.mystery { flex: 1; display: grid; place-items: center; min-height: 230px; }
.mystery__card {
  width: 100%;
  min-height: 230px;
  border-radius: 16px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 216, 74, 0.22), rgba(255, 255, 255, 0.04) 60%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 216, 74, 0.35);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.mystery__card:hover { transform: scale(1.02); box-shadow: inset 0 0 0 2px var(--gold); }
.mystery__q {
  font-size: 76px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255, 216, 74, 0.5);
  animation: bob 2.6s ease-in-out infinite;
}
.mystery__label { font-size: 14px; color: var(--muted); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.mystery__result {
  width: 100%;
  min-height: 230px;
  border-radius: 16px;
  padding: 22px 20px;
  background: linear-gradient(160deg, rgba(255, 216, 74, 0.2), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1.5px rgba(255, 216, 74, 0.5);
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: center;
  animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: none; }
}
.mystery__badge {
  justify-self: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #1A1400;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mystery__result h4 { font-size: 24px; letter-spacing: -0.02em; }
.mystery__result p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* --- generate --- */

.studio__go {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px clamp(20px, 5vw, 48px) 10px;
  text-align: center;
}
.hint { margin-top: 12px; font-size: 13.5px; color: var(--faint); }

/* ---------- Result ---------- */

.result {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 70px) clamp(20px, 5vw, 48px) clamp(50px, 8vw, 110px);
  display: grid;
  gap: clamp(26px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
}
@media (min-width: 900px) {
  .result { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); justify-items: start; }
}

.result__card { display: grid; place-items: center; width: 100%; }
.result__card .card { --card-w: min(82vw, 380px); }

.result__side { display: grid; gap: 16px; max-width: 460px; width: 100%; }
.result__side h3 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.03em; }
.result__meta { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.result__meta b { color: var(--text); font-weight: 600; }

.result__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result__actions .btn { padding: 11px 20px; font-size: 15px; }
.result__hint { font-size: 13px; color: var(--faint); line-height: 1.5; }

.share { margin-top: 8px; display: grid; gap: 12px; }
.share__label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.share__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.share__btn {
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 14px 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  color: var(--text);
  transition: background 0.2s, transform 0.2s;
}
.share__btn:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.share__btn svg { width: 22px; height: 22px; }
.share__note { font-size: 13px; color: var(--faint); line-height: 1.5; }

/* ---------- Card ---------- */

.card {
  --card-w: 300px;
  width: var(--card-w);
  aspect-ratio: 900 / 1260;
  container-type: inline-size;
  perspective: 1100px;
  border-radius: 4.2cqw;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.card__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 2.2cqw 7.3cqw 2cqw;
  border-radius: 3.9cqw;
  overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
  background: linear-gradient(155deg, var(--el, #5B6FB5) 0%, var(--el-dark, #2B3566) 55%, #141833 100%);
  box-shadow:
    0 0 0 0.55cqw rgba(255, 226, 150, 0.9),
    0 0 0 1.1cqw rgba(0, 0, 0, 0.55),
    0 3cqw 7cqw rgba(0, 0, 0, 0.6);
}

.card__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 60% at 20% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(70% 50% at 90% 100%, rgba(0, 0, 0, 0.35), transparent 60%);
  pointer-events: none;
}

.card__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2cqw;
  height: 9cqw;
  color: #fff;
}
.card__name { font-size: 4.8cqw; font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; }
.card__sub { margin-top: 0.45cqw; font-size: 2.2cqw; line-height: 1.2; opacity: 0.86; font-weight: 500; white-space: nowrap; }
.card__hp { font-size: 5.5cqw; font-weight: 800; line-height: 1.05; white-space: nowrap; }
.card__hp small { font-size: 2.4cqw; font-weight: 600; opacity: 0.8; margin-right: 0.7cqw; }

.card__art {
  position: relative;
  margin-top: 0.9cqw;
  border-radius: 1.7cqw;
  overflow: hidden;
  aspect-ratio: 128 / 160;
  background: #0B1030;
  box-shadow: 0 0 0 0.45cqw #E6B84A, 0 0 0 0.95cqw rgba(0, 0, 0, 0.55);
}
.card__scene { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.card__live {
  position: absolute;
  top: 1.8cqw;
  left: 1.8cqw;
  display: inline-flex;
  align-items: center;
  gap: 0.9cqw;
  padding: 0.8cqw 1.8cqw 0.8cqw 1.4cqw;
  border-radius: 999px;
  background: rgba(10, 14, 34, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 1.9cqw;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}
.card__live::before {
  content: "";
  width: 1.5cqw;
  height: 1.5cqw;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }

.card__pet {
  position: relative;
  margin-top: 1.1cqw;
  height: 6.7cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  padding: 0 2cqw;
  border-radius: 1.6cqw;
  background: rgba(8, 11, 28, 0.55);
  color: #fff;
}
.card__pet-label { font-size: 1.65cqw; font-weight: 700; letter-spacing: 0.12em; color: var(--el-light, #DCE6FF); }
.card__pet-name { margin-top: 0.3cqw; font-size: 3cqw; font-weight: 700; line-height: 1.1; }
.card__pet-name em { margin-left: 1cqw; font-size: 2.1cqw; font-style: italic; font-weight: 500; opacity: 0.78; }
.card__pet-id { font-family: var(--mono); font-size: 2.3cqw; font-weight: 600; color: #FFE9A8; white-space: nowrap; }

.card__moves {
  position: relative;
  margin-top: 0.9cqw;
  height: 7cqw;
  color: rgba(255, 255, 255, 0.88);
  font-size: 2.1cqw;
  line-height: 1.35;
  overflow: hidden;
}
.card__move b { margin-right: 1.4cqw; font-size: 2.45cqw; font-weight: 700; color: #fff; }
.card__move span { opacity: 0.86; }
.card__blessing { margin-top: 0.5cqw; font-size: 1.95cqw; line-height: 1.3; font-style: italic; color: #FFE9A8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card__foot {
  position: relative;
  margin-top: auto;
  height: 2.7cqw;
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  font-size: 1.9cqw;
  color: rgba(255, 255, 255, 0.74);
}
.card__rarity {
  padding: 0.3cqw 1.3cqw;
  border-radius: 0.9cqw;
  font-weight: 800;
  color: #141833;
  background: #C9CEDC;
}
.card--R .card__rarity { background: #8FD3FF; }
.card--SR .card__rarity { background: #C9A6FF; }
.card--UR .card__rarity { background: #FFD84A; }
.card__num { font-family: var(--mono); font-weight: 600; }
.card__copy { margin-left: auto; font-size: 1.75cqw; }

/* 闪卡与高光 */
.card__foil,
.card__glare { position: absolute; inset: 0; pointer-events: none; }

.card__foil {
  opacity: calc(var(--holo, 0.4) * 0.34);
  mix-blend-mode: color-dodge;
  background-image:
    repeating-linear-gradient(
      115deg,
      rgba(255, 90, 160, 0.3) 0 1.6cqw,
      rgba(90, 220, 255, 0.3) 1.6cqw 3.2cqw,
      rgba(150, 120, 255, 0.3) 3.2cqw 4.8cqw,
      rgba(255, 240, 150, 0.3) 4.8cqw 6.4cqw
    ),
    conic-gradient(from 40deg at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0.5) 90deg, rgba(255, 255, 255, 0) 180deg);
  background-size: 240% 240%, 100% 100%;
  background-position: var(--mx, 50%) var(--my, 50%), center;
  filter: saturate(1.4);
}
.card[data-holo="aurora"] .card__foil {
  background-image:
    repeating-linear-gradient(115deg, rgba(80, 255, 190, 0.45) 0 2cqw, rgba(70, 170, 255, 0.45) 2cqw 4cqw, rgba(160, 110, 255, 0.4) 4cqw 6cqw),
    conic-gradient(from 40deg at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0) 0deg, rgba(200, 255, 240, 0.6) 90deg, rgba(255, 255, 255, 0) 180deg);
  background-size: 240% 240%, 100% 100%;
}
.card[data-holo="gold"] .card__foil {
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 214, 90, 0.5) 0 1.6cqw, rgba(255, 244, 190, 0.45) 1.6cqw 3.2cqw, rgba(214, 150, 40, 0.45) 3.2cqw 4.8cqw),
    conic-gradient(from 40deg at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0) 0deg, rgba(255, 244, 200, 0.7) 90deg, rgba(255, 255, 255, 0) 180deg);
  background-size: 240% 240%, 100% 100%;
}
.card[data-holo="prism"] .card__foil { filter: saturate(2) brightness(1.1); }

.card__glare {
  opacity: calc(var(--holo, 0.4) * 0.85);
  mix-blend-mode: overlay;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 58%);
}

.card--UR .card__inner { box-shadow: 0 0 0 0.55cqw rgba(255, 226, 150, 0.95), 0 0 0 1.1cqw rgba(0, 0, 0, 0.55), 0 0 8cqw rgba(255, 216, 74, 0.45), 0 3cqw 7cqw rgba(0, 0, 0, 0.6); }
.card--SR .card__inner { box-shadow: 0 0 0 0.55cqw rgba(226, 200, 255, 0.95), 0 0 0 1.1cqw rgba(0, 0, 0, 0.55), 0 0 7cqw rgba(190, 150, 255, 0.4), 0 3cqw 7cqw rgba(0, 0, 0, 0.6); }

/* ---------- Footer & toast ---------- */

.foot {
  padding: 40px clamp(20px, 5vw, 48px) calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.foot a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
}

.foot a:hover { opacity: 1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translate(-50%, 30px);
  max-width: min(88vw, 460px);
  padding: 13px 20px;
  border-radius: 999px;
  background: rgba(245, 247, 255, 0.95);
  color: #0A0D1E;
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 80;
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 小屏 ---------- */

@media (max-width: 620px) {
  .nav { padding: 0 16px; gap: 8px; }
  .nav__brand { font-size: 17px; }
  .nav__links button { padding: 6px 11px; font-size: 13px; }
  .nav__cta { padding: 7px 13px; font-size: 13px; }
  .panel { padding: 22px 18px 18px; }
  .share__row { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

/* 极窄屏：导航已无空间，隐藏顶部 CTA（页面内已有主按钮） */
@media (max-width: 430px) {
  .nav__cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- FAQ ---------- */

.faq__list { display: grid; gap: 12px; max-width: 840px; }
.faq__item {
  border-radius: 18px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 2px 22px;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 400;
  color: var(--faint);
  line-height: 1;
}
.faq__item[open] summary::after { content: "\2013"; }
.faq__item p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 68ch;
}
