:root {
  --ink: #05070a;
  --ink-2: #0a0e14;
  --panel: rgba(15, 19, 26, 0.82);
  --gold: #c9a24b;
  --gold-2: #efd8a4;
  --gold-3: #8a6d31;
  --text: #f2efe8;
  --muted: #98a1ab;
  --dim: #6c7580;
  --line: rgba(201, 162, 75, 0.22);
  --line-soft: rgba(255, 255, 255, 0.07);
  --ok: #63c08a;
  --err: #e0756b;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  overflow: hidden;
}

/* ---------- 背景 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 22% 18%, rgba(201, 162, 75, 0.14), transparent 62%),
    radial-gradient(60% 50% at 82% 84%, rgba(58, 84, 122, 0.16), transparent 66%),
    linear-gradient(180deg, #06080c 0%, #04060a 100%);
}
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 50%, transparent 42%, rgba(0, 0, 0, 0.72) 100%);
}

/* ---------- 布局 ---------- */
.portal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  height: 100dvh;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 clamp(28px, 4vw, 76px);
}

/* ---------- 左侧品牌 ---------- */
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(24px, 5vw, 90px);
  border-right: 1px solid var(--line-soft);
}
.brand-logo {
  width: clamp(190px, 16vw, 258px);
  height: auto;
  filter: drop-shadow(0 14px 44px rgba(201, 162, 75, 0.22));
}
.brand-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 46px 0 18px;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-transform: uppercase;
}
.brand-eyebrow i { width: 44px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.brand h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 2.9vw, 44px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.brand h1 em { font-style: normal; color: var(--gold-2); }
.brand p {
  margin: 0;
  max-width: 30em;
  font-size: clamp(14px, 1.06vw, 16px);
  line-height: 1.95;
  color: var(--muted);
}
.brand-foot {
  margin-top: clamp(38px, 8vh, 96px);
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* ---------- 右侧面板 ---------- */
.pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: clamp(28px, 5vw, 86px);
}
.view { width: 100%; max-width: 560px; }
.view[hidden] { display: none; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow i { width: 40px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

.view h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lead {
  margin: 0 0 34px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--dim);
  margin-bottom: 9px;
  text-transform: uppercase;
}
.field input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
}
.field input::placeholder { color: #4e5763; }
.field input:focus {
  outline: none;
  border-color: rgba(201, 162, 75, 0.62);
  background: rgba(201, 162, 75, 0.05);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.2s, background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  width: 100%;
  margin-top: 8px;
  color: #170f02;
  font-weight: 600;
  background: linear-gradient(100deg, #e8c887, #c9a24b 62%, #b98f3e);
  box-shadow: 0 14px 34px rgba(201, 162, 75, 0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(201, 162, 75, 0.26); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.btn-ghost {
  height: 40px;
  font-size: 12.5px;
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.1);
  background: transparent;
}
.btn-ghost:hover { color: var(--gold-2); border-color: var(--line); }

.err {
  min-height: 20px;
  margin: 2px 0 10px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--err);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.25s, transform 0.25s;
}
.err.is-on { opacity: 1; transform: none; }

.hint {
  margin-top: 26px;
  font-size: 11.5px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--dim);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
.is-shake { animation: shake 0.42s ease; }

/* ---------- 方案列表 ---------- */
.picker-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.picker-head h2 { margin-bottom: 0; }

.decks { display: flex; flex-direction: column; gap: 14px; }

.deck-card {
  position: relative;
  display: grid;
  grid-template-columns: 168px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.deck-card.is-ready:hover,
.deck-card.is-ready:focus-visible {
  outline: none;
  border-color: rgba(201, 162, 75, 0.5);
  background: linear-gradient(120deg, rgba(201, 162, 75, 0.1), rgba(201, 162, 75, 0.02));
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}
.deck-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #0b0f15;
}
.deck-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.92; }
.deck-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.05), rgba(5, 7, 10, 0.45));
}
.deck-thumb--soon {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: #49525e;
  font-size: 22px;
  letter-spacing: 0.2em;
}
.deck-body { min-width: 0; }
.deck-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  margin-bottom: 8px;
  border-radius: 2px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--gold-2);
  background: rgba(201, 162, 75, 0.14);
  border: 1px solid rgba(201, 162, 75, 0.28);
}
.deck-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.deck-sub { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.deck-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--dim); letter-spacing: 0.06em; }
.deck-meta span { position: relative; padding-left: 12px; }
.deck-meta span::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--gold-3);
}
.deck-go {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 16px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.deck-card.is-ready:hover .deck-go {
  color: #170f02;
  background: var(--gold-2);
  border-color: var(--gold-2);
}
.deck-card.is-soon { opacity: 0.45; pointer-events: none; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.user-chip b { color: var(--gold-2); font-weight: 500; }

/* ---------- 小屏 / iPad 竖屏 ---------- */
@media (max-width: 1080px) {
  body { overflow: auto; }
  .portal { grid-template-columns: 1fr; height: auto; min-height: 100dvh; padding: 40px 26px 56px; gap: 34px; }
  .brand { border-right: 0; padding-right: 0; }
  .brand-logo { width: 168px; }
  .brand-eyebrow { margin: 26px 0 14px; }
  .brand-foot { margin-top: 26px; }
  .pane { padding-left: 0; justify-content: flex-start; }
  .view { max-width: none; }
  .deck-card { grid-template-columns: 118px 1fr; gap: 16px; }
  .deck-go { display: none; }
}

@media (max-height: 700px) and (min-width: 1081px) {
  .brand-eyebrow { margin: 26px 0 12px; }
  .brand-foot { margin-top: 38px; }
}
