/* ============================================================
   通玄 TONGXUAN · 万术归一序章页 wanshu.css
   （.ws-orbit 阵图组件样式来自 home.css，此处只做页级布局与放大）
   ============================================================ */
[hidden] { display: none !important; }

/* ---------- 序章主视觉 ---------- */
.wsp-hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 48px) 0 72px;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 90% at 50% -10%, rgba(212, 175, 106, 0.1), transparent 55%),
    linear-gradient(180deg, var(--ink-900), var(--ink-950) 70%);
}
.wsp-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.wsp-hero-inner { position: relative; z-index: 2; text-align: center; }

/* ---------- 归一阵 · 盘底晕染（.rite-disc 骨架承自 base.css，此处放大成旗舰规格） ---------- */
.rite-wanshu { width: min(1060px, 168vw); bottom: -46%; color: rgba(212, 175, 106, 0.3); }
.rite-wanshu .rw-spin2 {
  transform-origin: 360px 360px;
  transform-box: view-box;
  animation: rdSpin 150s linear infinite reverse;
}
.rite-wanshu .rd-r4 { opacity: 0; animation: rdRing 0.9s var(--ease-soft) 0.2s forwards; }
.rite-wanshu .rd-r3 { animation-delay: 0.55s; }
.rite-wanshu .rd-r2 { animation-delay: 0.9s; }
.rite-wanshu .rd-r1 { animation-delay: 1.25s; }
.rite-wanshu .rw-qi { font-weight: 700; letter-spacing: 0; }
.rite-wanshu .rw-beam {
  position: absolute; inset: 2.5%;
  border-radius: 50%;
  background: conic-gradient(from 8deg, transparent 0deg, currentColor 26deg, transparent 58deg);
  opacity: 0.1;
  -webkit-mask-image: radial-gradient(circle, transparent 24%, #000 38%, #000 62%, transparent 78%);
  mask-image: radial-gradient(circle, transparent 24%, #000 38%, #000 62%, transparent 78%);
  animation: rwBeam 46s linear infinite;
}
.rite-wanshu .rw-beam2 {
  background: conic-gradient(from 190deg, transparent 0deg, currentColor 20deg, transparent 44deg);
  opacity: 0.07;
  animation-duration: 74s;
  animation-direction: reverse;
}
@keyframes rwBeam { to { transform: rotate(360deg); } }
.rite-wanshu .rw-glow {
  position: absolute; left: 50%; top: 50%;
  width: 34%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, currentColor, transparent 62%);
  opacity: 0.1;
  animation: rwGlow 5.2s var(--ease-soft) infinite;
}
@keyframes rwGlow {
  0%, 100% { opacity: 0.07; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 0.13; transform: translate(-50%, -50%) scale(1); }
}
.wsp-hero::after {                      /* 盘脚洗染入页底 */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 150px;
  z-index: 1;
  background: linear-gradient(180deg, transparent, var(--ink-950));
  pointer-events: none;
}
.wsp-eyebrow {
  font-family: var(--font-serif);
  font-size: 14px; letter-spacing: 0.32em; text-indent: 0.32em;
  color: var(--gold-500);
}
.wsp-eyebrow em {
  font-style: normal;
  margin-left: 10px;
  padding: 3px 12px;
  font-size: 12px; letter-spacing: 0.14em;
  color: #f8ecd8;
  background: linear-gradient(155deg, var(--cinnabar), var(--cinnabar-deep));
  border-radius: 999px;
}
.wsp-title {
  margin-top: 16px;
  font-size: clamp(56px, 10vw, 112px);
  font-weight: 900;
  letter-spacing: 0.12em; text-indent: 0.12em;
  line-height: 1.2;
  background: linear-gradient(168deg, #f4e3b8 8%, var(--gold-400) 38%, var(--gold-500) 62%, #a8813f 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(212, 175, 106, 0.25));
}
.wsp-en {
  margin-top: 10px;
  font-size: 13px; letter-spacing: 0.5em; text-indent: 0.5em;
  color: var(--text-low);
}
.wsp-sub {
  margin-top: 22px;
  font-size: 15.5px; line-height: 2.1;
  letter-spacing: 0.05em;
  color: var(--text-mid);
}
.wsp-actions {
  margin-top: 32px;
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}

/* ---------- 何谓归一 ---------- */
.wsp-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.wsp-why-card {
  padding: 34px 26px;
  text-align: center;
  border: 1px solid rgba(150, 114, 58, 0.35);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--paper-50), var(--paper-100));
  box-shadow: 0 10px 26px rgba(44, 42, 36, 0.08);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.wsp-why-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(44, 42, 36, 0.14); }
.wsp-why-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 700;
  color: #f8ecd8;
  background: linear-gradient(155deg, var(--cinnabar), var(--cinnabar-deep));
  border-radius: 15px;
  box-shadow: inset 0 0 0 1.5px rgba(248, 236, 216, 0.4);
}
.wsp-why-card h3 {
  margin-top: 18px;
  font-size: 20px; letter-spacing: 0.12em;
  color: var(--paper-ink);
}
.wsp-why-card p {
  margin-top: 12px;
  font-size: 14px; line-height: 2;
  color: var(--paper-ink-soft);
  text-align: left;
}

/* ---------- 阵法一览 ---------- */
.wsp-array {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 120% at 50% 120%, rgba(212, 175, 106, 0.08), transparent 55%),
    linear-gradient(180deg, var(--ink-950), var(--ink-900));
}
.wsp-array-stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.wsp-array .container { position: relative; }
.wsp-arts {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  max-width: 980px;
  margin-inline: auto;
}
.wsp-art {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 8px 16px;
  border: 1px solid rgba(212, 175, 106, 0.18);
  border-radius: var(--radius-md);
  background: rgba(13, 20, 38, 0.5);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}
.wsp-art:hover { transform: translateY(-4px); }
.wsp-art b {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700;
  border-radius: 12px;
  color: rgba(237, 232, 216, 0.35);
  border: 1px dashed rgba(212, 175, 106, 0.3);
}
.wsp-art i {
  font-style: normal;
  font-size: 12.5px; letter-spacing: 0.08em;
  color: var(--text-low);
}
.wsp-art.on b {
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 106, 0.55);
  background: linear-gradient(160deg, rgba(212, 175, 106, 0.16), rgba(212, 175, 106, 0.05));
  box-shadow: 0 6px 16px rgba(5, 8, 18, 0.4);
}
.wsp-art.on i { color: var(--text-mid); }
.wsp-array-note {
  margin-top: 34px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 13.5px; letter-spacing: 0.16em;
  color: var(--text-low);
}

/* ---------- 与单术之别 ---------- */
.wsp-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin-inline: auto;
}
.wsp-diff-card {
  padding: 32px 30px;
  border: 1px solid rgba(150, 114, 58, 0.35);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--paper-50), var(--paper-100));
}
.wsp-diff-card h3 {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 21px; letter-spacing: 0.1em;
  color: var(--paper-ink);
}
.wsp-diff-card h3 span {
  font-size: 11.5px; letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--paper-ink-soft);
  border: 1px solid rgba(44, 42, 36, 0.25);
}
.wsp-diff-card ul {
  list-style: none;
  margin: 20px 0 24px; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.wsp-diff-card li {
  position: relative;
  padding-left: 20px;
  font-size: 14px; line-height: 1.9;
  color: var(--paper-ink-soft);
}
.wsp-diff-card li::before {
  content: "✦";
  position: absolute; left: 0; top: 0;
  font-size: 11px;
  color: var(--gold-600);
}
.wsp-diff-flag {
  border-color: rgba(184, 73, 62, 0.45);
  background:
    radial-gradient(ellipse 120% 100% at 50% -30%, rgba(212, 175, 106, 0.16), transparent 55%),
    linear-gradient(165deg, var(--ink-800), var(--ink-950));
}
.wsp-diff-flag h3 { color: var(--gold-300); }
.wsp-diff-flag h3 span { color: #f8ecd8; border-color: transparent; background: linear-gradient(155deg, var(--cinnabar), var(--cinnabar-deep)); }
.wsp-diff-flag li { color: var(--text-mid); }
.wsp-diff-flag li b { color: var(--gold-300); }

/* ---------- 预约留名 ---------- */
.wsp-reserve {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 100% at 50% 110%, rgba(212, 175, 106, 0.12), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink-950));
}
.wsp-reserve-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.wsp-reserve-inner { position: relative; }
.wsp-reserve-title {
  margin-top: 18px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0.12em;
  color: var(--text-hi);
}
.wsp-reserve-sub {
  margin-top: 14px;
  font-size: 14.5px; letter-spacing: 0.05em;
  color: var(--text-mid);
}
.wsp-reserve-cta { margin-top: 30px; }
.wsp-reserve-state {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-serif);
  font-size: 15.5px; letter-spacing: 0.12em;
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 106, 0.45);
  border-radius: 999px;
  background: rgba(212, 175, 106, 0.07);
}
.wsp-reserve-count {
  margin-top: 16px;
  font-size: 13px; letter-spacing: 0.1em;
  color: var(--text-low);
}
.wsp-footer { border-top: 1px solid rgba(212, 175, 106, 0.14); }

/* ---------- 袖中天适配 ---------- */
[data-theme="xiu"] .wsp-hero {
  background:
    radial-gradient(ellipse 100% 90% at 50% -10%, rgba(127, 111, 174, 0.12), transparent 55%),
    linear-gradient(180deg, var(--paper-100), var(--paper-50) 70%);
}
[data-theme="xiu"] .wsp-title {
  background: linear-gradient(168deg, #a493cf 8%, #7f6fae 45%, #584a85 95%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 6px 30px rgba(127, 111, 174, 0.25));
}
[data-theme="xiu"] .wsp-hero::after { background: linear-gradient(180deg, transparent, var(--paper-50)); }
[data-theme="xiu"] .wsp-eyebrow { color: #7c6bab; }
[data-theme="xiu"] .wsp-sub { color: #5d5478; }
[data-theme="xiu"] .wsp-en { color: rgba(51, 44, 77, 0.45); }
[data-theme="xiu"] .wsp-array {
  background:
    radial-gradient(ellipse 90% 120% at 50% 120%, rgba(127, 111, 174, 0.1), transparent 55%),
    linear-gradient(180deg, var(--ink-950), var(--ink-900));
}
[data-theme="xiu"] .wsp-art.on b {
  color: var(--zi-300);
  border-color: rgba(179, 165, 214, 0.55);
  background: linear-gradient(160deg, rgba(127, 111, 174, 0.2), rgba(127, 111, 174, 0.06));
}
[data-theme="xiu"] .wsp-reserve {
  background:
    radial-gradient(ellipse 80% 100% at 50% 110%, rgba(127, 111, 174, 0.14), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink-950));
}
[data-theme="xiu"] .wsp-reserve-state { color: var(--zi-300); border-color: rgba(179, 165, 214, 0.45); background: rgba(127, 111, 174, 0.1); }
[data-theme="xiu"] .wsp-diff-flag {
  background:
    radial-gradient(ellipse 120% 100% at 50% -30%, rgba(127, 111, 174, 0.18), transparent 55%),
    linear-gradient(165deg, var(--ink-800), var(--ink-950));
}
[data-theme="xiu"] .wsp-diff-flag h3, [data-theme="xiu"] .wsp-diff-flag li b { color: var(--zi-300); }

/* ---------- 起阵 ---------- */
.wsp-cast {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 100% at 50% 110%, rgba(212, 175, 106, 0.12), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink-950));
}
.wsp-cast-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.wsp-cast-inner { position: relative; max-width: 860px; }

.wsp-form {
  border: 1px solid rgba(184, 145, 75, 0.4);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 130% 100% at 50% -30%, rgba(212, 175, 106, 0.1), transparent 55%),
    rgba(13, 20, 38, 0.55);
  backdrop-filter: blur(4px);
  padding: 30px 32px 34px;
}

.wsp-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.wsp-mode {
  text-align: center;
  padding: 15px 16px;
  border: 1px solid rgba(212, 175, 106, 0.28);
  border-radius: var(--radius-md);
  background: rgba(212, 175, 106, 0.05);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}
.wsp-mode:hover { transform: translateY(-2px); border-color: rgba(212, 175, 106, 0.6); }
.wsp-mode b {
  display: block;
  font-family: var(--font-serif);
  font-size: 19px; font-weight: 700;
  letter-spacing: 0.4em; text-indent: 0.4em;
  color: var(--text-hi);
}
.wsp-mode i {
  display: block; font-style: normal;
  margin-top: 5px;
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--text-low);
}
.wsp-mode.active {
  border-color: var(--gold-500);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 60%, var(--gold-600));
  box-shadow: 0 10px 26px rgba(212, 175, 106, 0.28);
}
.wsp-mode.active b { color: #241a08; }
.wsp-mode.active i { color: rgba(36, 26, 8, 0.65); }

.wsp-frow { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.wsp-flabel {
  flex: 0 0 92px;
  font-family: var(--font-serif);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-400);
}
.wsp-flabel em {
  display: block; font-style: normal; font-weight: 400;
  font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--cinnabar);
}
.wsp-fctrls { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: relative; }
.wsp-input {
  padding: 11px 14px;
  border: 1px solid rgba(212, 175, 106, 0.3);
  border-radius: var(--radius-md);
  background: rgba(13, 20, 38, 0.6);
  color: var(--text-hi);
  font-family: inherit; font-size: 14px; letter-spacing: 0.03em;
  color-scheme: dark;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.wsp-input::placeholder { color: var(--text-low); }
.wsp-input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.16);
}
.wsp-input-wide { flex: 1; min-width: 240px; }
textarea.wsp-input { resize: vertical; min-height: 54px; line-height: 1.7; }

.wsp-now {
  padding: 10px 16px;
  border: 1px dashed rgba(212, 175, 106, 0.5);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--gold-400);
  font-size: 13px; letter-spacing: 0.1em;
  transition: all 0.3s;
}
.wsp-now:hover { border-style: solid; color: var(--gold-300); }

.wsp-pill {
  padding: 10px 18px;
  border: 1px solid rgba(212, 175, 106, 0.3);
  border-radius: 999px;
  background: rgba(212, 175, 106, 0.05);
  color: var(--text-mid);
  font-size: 13.5px; letter-spacing: 0.06em;
  transition: all 0.3s var(--ease-out);
}
.wsp-pill:hover { transform: translateY(-1px); border-color: rgba(212, 175, 106, 0.6); }
.wsp-pill.active {
  border-color: var(--gold-500);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 70%);
  color: #241a08; font-weight: 600;
}
.wsp-pill-sm { padding: 8px 14px; font-size: 12.5px; }

.wsp-castfoot {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(212, 175, 106, 0.18);
  text-align: center;
}
.wsp-price-line {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px; letter-spacing: 0.14em;
  color: var(--text-hi);
}
.wsp-price-line b {
  font-size: 1.5em;
  color: var(--gold-300);
  padding: 0 4px;
}
.wsp-price-was {
  display: block;
  margin-top: 6px;
  font-size: 12.5px; letter-spacing: 0.08em;
  color: var(--gold-400);
}
.wsp-price-was s { color: var(--text-low); margin: 0 2px; }
.wsp-price-sub {
  display: block;
  margin-top: 8px;
  font-size: 12.5px; letter-spacing: 0.06em;
  color: var(--text-low);
}
.wsp-price-sub a { color: var(--gold-400); border-bottom: 1px solid rgba(212, 175, 106, 0.4); }
.wsp-price-sub b { color: var(--gold-300); }
.wsp-go { margin-top: 22px; min-width: 320px; }
.wsp-cast-note {
  margin-top: 14px;
  font-size: 12.5px; letter-spacing: 0.07em;
  color: var(--text-low);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .rite-wanshu { width: min(780px, 172vw); bottom: -36%; }
  .wsp-arts { grid-template-columns: repeat(4, 1fr); }
  .wsp-why-grid { grid-template-columns: 1fr; }
  .wsp-diff-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wsp-arts { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .wsp-hero { padding-top: calc(var(--nav-h) + 28px); }
  .wsp-form { padding: 22px 16px 26px; }
  .wsp-modes { grid-template-columns: 1fr; gap: 10px; }
  .wsp-frow { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wsp-flabel { flex: none; }
  .wsp-go { min-width: 0; width: 100%; }
}
@media (max-width: 560px) {
  .rite-wanshu { width: min(620px, 180vw); bottom: -28%; color: rgba(212, 175, 106, 0.24); }
}
@media (prefers-reduced-motion: reduce) {
  .rite-wanshu .rw-spin2, .rite-wanshu .rw-beam, .rite-wanshu .rw-glow { animation: none !important; }
  .rite-wanshu .rd-r4 { animation: none !important; opacity: 1; }
}
