/* 星楼 Token 代理页 —— 双主题：浅色=雾青玻璃（方案 A），深色=深色科技（方案 B），随站内 data-theme 切换。 */

body.page-token {
  --tk-card: rgba(255, 255, 255, 0.72);
  --tk-card-solid: #ffffff;
  --tk-ink: #0a1826;
  --tk-muted: rgba(10, 24, 38, 0.62);
  --tk-line: rgba(43, 123, 187, 0.16);
  --tk-accent-a: #6cb4ee;
  --tk-accent-b: #2dd4bf;
  --tk-chip: rgba(108, 180, 238, 0.12);
  --tk-shadow: 0 18px 40px rgba(31, 78, 121, 0.10);
  --tk-btn-shadow: 0 10px 24px rgba(47, 155, 232, 0.35);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 96px 0 96px;
  background:
    radial-gradient(1100px 520px at 85% -80px, rgba(45, 212, 191, 0.16), transparent 60%),
    radial-gradient(900px 480px at -10% 0, rgba(108, 180, 238, 0.20), transparent 55%),
    linear-gradient(180deg, #eef6fb 0%, #e9f3f8 55%, #eef6fb 100%);
  color: var(--tk-ink);
  font-family: var(--vg-font, system-ui, -apple-system, "Microsoft YaHei", sans-serif);
  -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] body.page-token {
  --tk-card: rgba(20, 24, 48, 0.88);
  --tk-card-solid: #141830;
  --tk-ink: #e8ebf7;
  --tk-muted: rgba(232, 235, 247, 0.62);
  --tk-line: rgba(139, 146, 255, 0.22);
  --tk-accent-a: #6c5ce7;
  --tk-accent-b: #22d3ee;
  --tk-chip: rgba(108, 92, 231, 0.18);
  --tk-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  --tk-btn-shadow: 0 10px 28px rgba(108, 92, 231, 0.5), 0 0 0 1px rgba(34, 211, 238, 0.25);
  background:
    radial-gradient(1100px 520px at 85% -80px, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(900px 480px at -10% 0, rgba(108, 92, 231, 0.22), transparent 55%),
    linear-gradient(180deg, #0b0e1a 0%, #0d1122 55%, #0b0e1a 100%);
}

body.page-token .container {
  width: min(100% - 32px, 880px);
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.tk-hero {
  text-align: center;
  padding: 26px 0 30px;
}

.tk-badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 14px;
  border: 1px solid var(--tk-line);
  border-radius: 999px;
  background: var(--tk-chip);
  color: var(--tk-ink);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.tk-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.tk-sub {
  margin: 0 auto 24px;
  max-width: 620px;
  color: var(--tk-muted);
  font-size: 15.5px;
  line-height: 1.75;
}

.tk-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}

.tk-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tk-btn-primary {
  background: linear-gradient(120deg, var(--tk-accent-a), var(--tk-accent-b));
  color: #fff;
  box-shadow: var(--tk-btn-shadow);
}

.tk-btn-primary:hover { transform: translateY(-1px); }

.tk-btn-ghost {
  border: 1px solid var(--tk-line);
  background: var(--tk-card);
  color: var(--tk-ink);
}

.tk-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  color: var(--tk-muted);
  font-size: 13.5px;
}

.tk-code-row code {
  padding: 4px 10px;
  border: 1px dashed var(--tk-line);
  border-radius: 8px;
  background: var(--tk-card);
  color: var(--tk-ink);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.tk-copy {
  padding: 5px 14px;
  border: 1px solid var(--tk-line);
  border-radius: 999px;
  background: var(--tk-chip);
  color: var(--tk-ink);
  font-size: 13px;
  cursor: pointer;
}

.tk-copy:hover { filter: brightness(1.05); }

.tk-code-note { flex-basis: 100%; font-size: 12.5px; }

/* ---------- Cards & sections ---------- */
.tk-card {
  margin: 0 0 18px;
  padding: 26px 26px 28px;
  border: 1px solid var(--tk-line);
  border-radius: 20px;
  background: var(--tk-card);
  box-shadow: var(--tk-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tk-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.tk-note { margin: 0 0 16px; color: var(--tk-muted); font-size: 13.5px; line-height: 1.7; }
.tk-body { margin: 0; color: var(--tk-muted); font-size: 14.5px; line-height: 1.8; }

.tk-points, .tk-others {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tk-others { grid-template-columns: repeat(2, 1fr); }

.tk-point, .tk-other {
  padding: 16px;
  border: 1px solid var(--tk-line);
  border-radius: 14px;
  background: var(--tk-chip);
}

.tk-point h3, .tk-other h3 { margin: 0 0 8px; font-size: 15px; }
.tk-point p, .tk-other p { margin: 0; color: var(--tk-muted); font-size: 13.5px; line-height: 1.7; }

/* ---------- Plans ---------- */
.tk-plans {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.tk-plan {
  position: relative;
  padding: 18px 10px 16px;
  border: 1px solid var(--tk-line);
  border-radius: 14px;
  background: var(--tk-chip);
  text-align: center;
}

.tk-plan h3 { margin: 0 0 8px; font-size: 14px; color: var(--tk-muted); letter-spacing: 0.06em; }
.tk-plan-price { margin: 0 0 4px; font-size: 21px; font-weight: 700; }
.tk-plan-pts { margin: 0; color: var(--tk-muted); font-size: 12.5px; }

.tk-plan-featured {
  border-color: var(--tk-accent-b);
  box-shadow: 0 8px 22px rgba(45, 212, 191, 0.18);
}

html[data-theme="dark"] .tk-plan-featured {
  box-shadow: 0 8px 26px rgba(108, 92, 231, 0.45);
}

.tk-models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 12px;
  margin: 14px 0 6px;
}

.tk-model {
  padding: 14px 14px 12px;
  border: 1px solid var(--tk-line);
  border-radius: 14px;
  background: var(--tk-chip);
  text-align: left;
}

.tk-model-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tk-model-head h3 { margin: 0; font-size: 14.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.tk-model-off { flex: none; font-size: 11.5px; font-weight: 700; color: var(--tk-accent-b); border: 1px solid var(--tk-accent-b); border-radius: 999px; padding: 1px 8px; }
.tk-model-spec { margin: 4px 0 10px; color: var(--tk-muted); font-size: 12.5px; }
.tk-model-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.tk-model-prices li { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.tk-model-prices span { width: 56px; flex: none; color: var(--tk-muted); }
.tk-model-prices strong { font-size: 15px; }
.tk-model-prices s { color: var(--tk-muted); font-size: 12px; }
.tk-model-note { margin: 10px 0 0; font-size: 12px; color: var(--tk-accent-b); }
.tk-note { margin: 10px 0 0; color: var(--tk-muted); font-size: 12.5px; line-height: 1.7; }

.tk-plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--tk-accent-a), var(--tk-accent-b));
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
}

.tk-cta-line { margin: 20px 0 0; text-align: center; }

/* ---------- Steps ---------- */
.tk-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tk-step;
}

.tk-steps li {
  padding: 16px;
  border: 1px solid var(--tk-line);
  border-radius: 14px;
  background: var(--tk-chip);
}

.tk-steps li::before {
  counter-increment: tk-step;
  content: counter(tk-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--tk-accent-a), var(--tk-accent-b));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.tk-steps strong { display: block; margin-bottom: 6px; font-size: 15px; }
.tk-steps span { color: var(--tk-muted); font-size: 13.5px; line-height: 1.7; }
.tk-steps a { color: var(--tk-accent-a); }
.tk-steps code { font-size: 12.5px; }

/* ---------- Tags ---------- */
.tk-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.tk-tags span {
  padding: 6px 14px;
  border: 1px solid var(--tk-line);
  border-radius: 999px;
  background: var(--tk-chip);
  font-size: 13px;
}

/* ---------- FAQ ---------- */
.tk-faq-item { border-top: 1px solid var(--tk-line); }
.tk-faq-item:last-child { border-bottom: 1px solid var(--tk-line); }

.tk-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 2px;
  border: 0;
  background: none;
  color: var(--tk-ink);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.tk-faq-icon {
  flex: none;
  font-weight: 400;
  font-size: 18px;
  color: var(--tk-muted);
  transition: transform 0.2s ease;
}

.tk-faq-item.open .tk-faq-icon { transform: rotate(45deg); }

.tk-faq-panel { display: none; }
.tk-faq-item.open .tk-faq-panel { display: block; }

.tk-faq-panel p {
  margin: 0;
  padding: 0 2px 16px;
  color: var(--tk-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- Disclosure & toast ---------- */
.tk-disclosure {
  padding: 6px 10px 0;
  text-align: center;
}

.tk-disclosure p { margin: 0; color: var(--tk-muted); font-size: 12.5px; line-height: 1.8; }

.tk-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translate(-50%, 12px);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--tk-ink);
  color: var(--tk-card-solid);
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60;
}

.tk-toast.show { opacity: 1; transform: translate(-50%, 0); }

body.page-token a:focus-visible,
body.page-token button:focus-visible {
  outline: 2px solid var(--tk-accent-a);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .tk-points, .tk-steps { grid-template-columns: 1fr; }
  .tk-plans { grid-template-columns: repeat(2, 1fr); }
  .tk-plan-featured { grid-column: span 2; }
  .tk-card { padding: 22px 18px 24px; }
}

@media (max-width: 420px) {
  .tk-others { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tk-btn, .tk-faq-icon, .tk-toast { transition: none; }
}
