/* ── Pixel CDK 兑换站 · 基础与兑换页样式 ─────────────────────── */
:root {
  --bg: #05060b;
  --panel: rgba(16, 18, 29, 0.72);
  --panel-solid: #10121d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9ebf6;
  --muted: #99a1ba;
  --faint: #6b7390;
  --brand-1: #6d8bff;
  --brand-2: #a06bff;
  --brand-3: #ff6bb5;
  --ok: #3ddc97;
  --warn: #ffb547;
  --bad: #ff5f7a;
  --radius: 22px;
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brand-1); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(109, 139, 255, 0.35); }

/* ── 背景氛围 ─────────────────────────────────────────────── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(92px); opacity: 0.42; }
.b1 { width: 52vw; height: 52vw; left: -12vw; top: -18vw; background: radial-gradient(circle, #3358ff 0%, transparent 62%); animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 46vw; height: 46vw; right: -10vw; top: -6vw; background: radial-gradient(circle, #9d4dff 0%, transparent 62%); animation: drift2 32s ease-in-out infinite alternate; }
.b3 { width: 40vw; height: 40vw; left: 32vw; top: 34vh; background: radial-gradient(circle, #ff4b9d 0%, transparent 64%); opacity: 0.24; animation: drift3 38s ease-in-out infinite alternate; }
.grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}
@keyframes drift1 { to { transform: translate(6vw, 5vh) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-5vw, 8vh) scale(1.12); } }
@keyframes drift3 { to { transform: translate(4vw, -6vh) scale(1.1); } }

/* ── 顶栏 ─────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(6, 7, 13, 0.62);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 13px;
  font-size: 19px; color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  box-shadow: 0 8px 24px rgba(109, 139, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; letter-spacing: 0.01em; }
.brand-text em { font-style: normal; font-size: 11.5px; color: var(--faint); letter-spacing: 0.08em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-btn, .nav-link, .nav-cta {
  font-family: inherit; font-size: 14px; border: 0; cursor: pointer;
  color: var(--muted); background: transparent; border-radius: 10px;
  padding: 8px 13px; transition: color 0.2s, background 0.2s;
}
.nav-btn:hover, .nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav-btn.is-active { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.nav-cta {
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 6px 18px rgba(109, 139, 255, 0.34);
}
.nav-cta:hover { text-decoration: none; filter: brightness(1.1); }

/* ── 布局 ─────────────────────────────────────────────────── */
.shell { width: min(1120px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 72px; }

.hero { padding: clamp(40px, 7vw, 76px) 0 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; background: rgba(255, 255, 255, 0.03);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

.hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.14; font-weight: 800; letter-spacing: -0.028em;
}
.grad {
  background: linear-gradient(100deg, #8fa6ff 0%, #b78cff 46%, #ff9ecb 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 640px; margin: 0; color: var(--muted); font-size: clamp(14px, 1.6vw, 16.5px); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.hero-tags li {
  font-size: 12.5px; color: var(--muted); padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03);
}
.hero-tags li::before { content: "✦"; margin-right: 7px; color: var(--brand-2); font-size: 10px; }

.notice {
  margin: 6px 0 22px; padding: 13px 18px; border-radius: 14px;
  border: 1px solid rgba(255, 181, 71, 0.35);
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.12), rgba(255, 107, 181, 0.07));
  color: #ffd9a1; font-size: 14px;
}

.view { animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.grid-2.gap-sm { grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── 卡片 ─────────────────────────────────────────────────── */
.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018) 42%, rgba(255, 255, 255, 0.03));
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(20px, 3vw, 30px);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h2 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03); white-space: nowrap;
}
.chip.warn { color: #ffcf8b; border-color: rgba(255, 181, 71, 0.4); background: rgba(255, 181, 71, 0.1); }
.chip.ok { color: #8af0c4; border-color: rgba(61, 220, 151, 0.4); background: rgba(61, 220, 151, 0.1); }
.chip.bad { color: #ffa3b3; border-color: rgba(255, 95, 122, 0.4); background: rgba(255, 95, 122, 0.1); }

/* ── 表单 ─────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: #cfd4e6; }
.field > label sup { color: var(--brand-3); font-size: 11px; }
.opt { font-weight: 400; color: var(--faint); font-size: 12px; margin-left: 4px; }

input[type="text"], input[type="email"], input[type="password"], input:not([type]) {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 7, 14, 0.66); color: var(--text);
  font-family: inherit; font-size: 14.5px; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
input::placeholder { color: #59607a; }
input:focus {
  border-color: rgba(124, 146, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(109, 139, 255, 0.16);
  background: rgba(5, 7, 14, 0.85);
}
input.mono { font-family: var(--mono); letter-spacing: 0.06em; font-size: 14px; }
input.is-bad { border-color: rgba(255, 95, 122, 0.7); box-shadow: 0 0 0 4px rgba(255, 95, 122, 0.12); }

.input-wrap { position: relative; }
.input-wrap input { padding-right: 46px; }
.eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; cursor: pointer; font-size: 15px; padding: 8px;
  color: var(--faint); border-radius: 8px;
}
.eye:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.hint { margin: 7px 0 0; font-size: 12.5px; color: var(--faint); }
.hint.ok { color: #7ee7b8; }
.hint.bad { color: #ff9aab; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plan {
  position: relative; cursor: pointer; text-align: left;
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 13px 14px;
  background: rgba(7, 9, 16, 0.55); color: var(--text); font-family: inherit;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.plan:hover { border-color: rgba(160, 107, 255, 0.5); }
.plan.is-active {
  border-color: transparent;
  background:
    linear-gradient(160deg, rgba(109, 139, 255, 0.2), rgba(160, 107, 255, 0.12)) padding-box,
    linear-gradient(135deg, var(--brand-1), var(--brand-2), var(--brand-3)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 10px 26px -14px rgba(120, 110, 255, 0.7);
}
.plan .plan-name { display: block; font-weight: 700; font-size: 15px; }
.plan .plan-sub { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.plan .plan-price { display: block; margin-top: 8px; font-family: var(--mono); font-size: 15px; color: #cdd5ff; }
.plan.is-active .plan-price { color: #fff; }
.plan .tick {
  position: absolute; top: 9px; right: 10px; width: 17px; height: 17px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  display: none; place-items: center; font-size: 10px; color: #fff;
}
.plan.is-active .tick { display: grid; }
.plan:disabled { opacity: 0.4; cursor: not-allowed; }

.agree { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 12.8px; color: var(--muted); cursor: pointer; }
.agree input { margin-top: 3px; accent-color: var(--brand-2); width: 15px; height: 15px; flex: none; }

.primary-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 20px; border: 0; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-size: 15.5px; font-weight: 700; color: #fff; letter-spacing: 0.01em;
  background: linear-gradient(135deg, #5a7bff 0%, #9a5bff 55%, #ff63ae 120%);
  box-shadow: 0 14px 34px -14px rgba(122, 96, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.16s, filter 0.16s, box-shadow 0.16s;
}
.primary-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.primary-btn:active { transform: translateY(0); }
.primary-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; filter: none; }
.primary-btn.compact { width: auto; padding: 12px 22px; white-space: nowrap; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-foot { margin: 12px 0 0; font-size: 12px; color: var(--faint); }

/* ── 侧栏 ─────────────────────────────────────────────────── */
.side { display: grid; gap: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.checks li { display: flex; gap: 12px; }
.checks .num {
  font-family: var(--mono); font-size: 11.5px; color: var(--brand-2);
  border: 1px solid rgba(160, 107, 255, 0.35); border-radius: 8px;
  padding: 2px 7px; height: fit-content; background: rgba(160, 107, 255, 0.08);
}
.checks strong { font-size: 13.8px; }
.checks p { margin: 3px 0 0; font-size: 12.6px; color: var(--muted); }

.note-card h3 { margin: 0 0 8px; font-size: 15px; }
.note-card p { margin: 0 0 8px; font-size: 12.8px; color: var(--muted); }
.note-card p:last-child { margin-bottom: 0; }
.muted { color: var(--faint); }

/* ── 任务结果面板 ─────────────────────────────────────────── */
.result-card { margin-top: 22px; border-color: rgba(109, 139, 255, 0.25); }
.result-head { display: flex; align-items: center; gap: 14px; }
.result-title-wrap { flex: 1; min-width: 0; }
.result-title-wrap h2 { margin: 0; font-size: 18px; }
.result-title-wrap p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.status-dot {
  width: 13px; height: 13px; border-radius: 50%; flex: none;
  background: var(--brand-2); box-shadow: 0 0 0 5px rgba(160, 107, 255, 0.16);
}
.status-dot.pending { background: var(--warn); box-shadow: 0 0 0 5px rgba(255, 181, 71, 0.15); animation: pulse 2s infinite; }
.status-dot.running { background: var(--brand-1); box-shadow: 0 0 0 5px rgba(109, 139, 255, 0.16); animation: pulse 1.6s infinite; }
.status-dot.success { background: var(--ok); box-shadow: 0 0 0 5px rgba(61, 220, 151, 0.16); }
.status-dot.failed { background: var(--bad); box-shadow: 0 0 0 5px rgba(255, 95, 122, 0.16); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0 6px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 12px; height: 2px;
  background: var(--line); border-radius: 2px;
}
.tl-step { position: relative; text-align: center; font-size: 12px; color: var(--faint); z-index: 1; }
.tl-step i {
  display: block; width: 24px; height: 24px; margin: 0 auto 8px; border-radius: 50%;
  background: #0d1020; border: 2px solid var(--line-strong);
  transition: all 0.3s;
}
.tl-step.is-done i { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); border-color: transparent; box-shadow: 0 0 16px rgba(130, 120, 255, 0.5); }
.tl-step.is-done { color: #cdd4ff; }
.tl-step.is-active i { border-color: var(--brand-1); box-shadow: 0 0 0 5px rgba(109, 139, 255, 0.15); animation: pulse 1.8s infinite; }
.tl-step.is-active { color: var(--text); }
.tl-step.is-fail i { background: var(--bad); border-color: transparent; box-shadow: 0 0 16px rgba(255, 95, 122, 0.45); }
.tl-step.is-fail { color: #ffb3c0; }

.result-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px;
  margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line);
}
.result-meta div { min-width: 0; }
.result-meta dt { font-size: 11.5px; color: var(--faint); letter-spacing: 0.04em; }
.result-meta dd { margin: 2px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.result-meta dd.mono { font-family: var(--mono); }

.result-message {
  margin: 16px 0 0; padding: 12px 15px; border-radius: 12px; font-size: 13.5px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); color: #cfd5ea;
  white-space: pre-wrap;
}
.result-message.bad { border-color: rgba(255, 95, 122, 0.35); background: rgba(255, 95, 122, 0.07); color: #ffb9c5; }
.result-message.ok { border-color: rgba(61, 220, 151, 0.35); background: rgba(61, 220, 151, 0.07); color: #a8f5d1; }

.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ghost-btn {
  font-family: inherit; font-size: 13.5px; color: var(--text);
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04);
  border-radius: 11px; padding: 9px 15px; cursor: pointer; transition: all 0.16s;
}
.ghost-btn:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--line-strong); }
.ghost-btn.danger { color: #ff9aab; border-color: rgba(255, 95, 122, 0.35); }
.ghost-btn.danger:hover { background: rgba(255, 95, 122, 0.1); }
.poll-note { margin: 12px 0 0; font-size: 12px; color: var(--faint); }

/* ── 查询页 ───────────────────────────────────────────────── */
.track-form { display: flex; gap: 10px; }
.track-form input { flex: 1; }
.track-results { display: grid; gap: 16px; margin-top: 18px; }
.track-item { padding: 18px 20px; }
.track-item .ti-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.track-item .ti-head h3 { margin: 0; font-size: 15px; }
.track-item .ti-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 12.8px; color: var(--muted); }
.track-item .ti-meta span b { color: #cfd4e6; font-weight: 600; }
.track-item .ti-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--mono); letter-spacing: 0.04em;
}
.badge.submitting { color: #cfc2ff; border-color: rgba(160, 107, 255, 0.4); background: rgba(160, 107, 255, 0.1); }
.badge.pending { color: #ffd9a1; border-color: rgba(255, 181, 71, 0.4); background: rgba(255, 181, 71, 0.1); }
.badge.running { color: #b9c8ff; border-color: rgba(109, 139, 255, 0.45); background: rgba(109, 139, 255, 0.12); }
.badge.success { color: #9cf3cb; border-color: rgba(61, 220, 151, 0.45); background: rgba(61, 220, 151, 0.12); }
.badge.failed { color: #ffafbc; border-color: rgba(255, 95, 122, 0.45); background: rgba(255, 95, 122, 0.12); }

.empty {
  text-align: center; padding: 40px 20px; color: var(--faint); font-size: 13.5px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
}

/* ── 步骤 & 页脚 ──────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 46px; }
.steps article { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: rgba(255, 255, 255, 0.02); }
.step-no { font-family: var(--mono); font-size: 12px; color: var(--brand-2); }
.steps h3 { margin: 8px 0 5px; font-size: 15px; }
.steps p { margin: 0; font-size: 12.6px; color: var(--muted); }

.footer { border-top: 1px solid var(--line); padding: 26px clamp(16px, 4vw, 40px) 42px; text-align: center; }
.footer p { margin: 4px 0; font-size: 12.4px; color: var(--muted); }

/* ── Toast ────────────────────────────────────────────────── */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; max-width: min(360px, calc(100vw - 36px)); }
.toast {
  padding: 12px 16px; border-radius: 13px; font-size: 13.5px;
  border: 1px solid var(--line-strong); background: rgba(14, 16, 26, 0.92);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.9);
  animation: toastIn 0.25s ease;
  backdrop-filter: blur(10px);
}
.toast.ok { border-color: rgba(61, 220, 151, 0.4); color: #b7f7d9; }
.toast.bad { border-color: rgba(255, 95, 122, 0.45); color: #ffb6c2; }
.toast.info { color: #cdd4ea; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ── 响应式 ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .br-lg { display: none; }
}
@media (max-width: 720px) {
  .topbar { padding: 12px 16px; }
  .nav-link { display: none; }
  .brand-text em { display: none; }
  .plans { grid-template-columns: 1fr; }
  .plan { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .plan .plan-price { margin: 0; }
  .grid-2.gap-sm { grid-template-columns: 1fr; }
  .timeline::before { left: 10%; right: 10%; }
  .steps { grid-template-columns: 1fr; }
  .track-form { flex-direction: column; }
  .result-head { flex-wrap: wrap; }
}

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