:root {
  --bg: #16171c;
  --bg-deep: #0d0e12;
  --surface-solid: #1b1d24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.74);
  --muted: rgba(255, 255, 255, 0.46);
  --brand: #f52e48;
  --brand-hover: #ff425b;
  --brand-soft: rgba(245, 46, 72, 0.16);
  --ok: #2bd576;
  --ok-soft: rgba(43, 213, 118, 0.14);
  --warn: #f5a623;
  --err: #ff5c72;
  --wx: #07c160;
  --ali: #1677ff;
  --nav-h: 92px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 全站统一深炭灰底 + 红/暖橙/蓝三色氛围光晕 + Raycast 138° 长虹玻璃微斜纹 */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 440px at 50% 40%, rgba(245, 46, 72, 0.22), transparent 68%),
    radial-gradient(560px 420px at 28% 32%, rgba(255, 166, 56, 0.15), transparent 66%),
    radial-gradient(620px 460px at 74% 36%, rgba(62, 134, 255, 0.17), transparent 68%),
    linear-gradient(160deg, #1d1f26 0%, #15161c 56%, #101116 100%);
  pointer-events: none;
  overflow: hidden;
}
.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  max-width: 1220px;
  margin: 0 auto;
  background: repeating-linear-gradient(
    138deg,
    rgba(255, 255, 255, 0.022) 0px,
    rgba(255, 255, 255, 0.022) 1px,
    transparent 1px,
    transparent 34px
  );
  -webkit-mask-image: radial-gradient(64% 56% at 50% 42%, #000 0%, rgba(0, 0, 0, 0.32) 55%, transparent 100%);
  mask-image: radial-gradient(64% 56% at 50% 42%, #000 0%, rgba(0, 0, 0, 0.32) 55%, transparent 100%);
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 17, 22, 0.16) 0%, rgba(16, 17, 22, 0) 35%, rgba(16, 17, 22, 0.72) 100%),
    radial-gradient(circle at 50% 42%, transparent 38%, rgba(13, 14, 18, 0.62) 100%);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.hidden { display: none !important; }

/* ====== Raycast 风格悬浮暗色玻璃胶囊顶栏（首页、开通会员居左，昵称居右无圆形头像） ====== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 16px 20px 0;
  pointer-events: none;
}
.site-navbar {
  pointer-events: auto;
  max-width: 1080px;
  height: 60px;
  margin: 0 auto;
  padding: 0 22px;
  border-radius: 16px;
  background: linear-gradient(137deg, rgba(24, 26, 33, 0.76) 5%, rgba(15, 16, 21, 0.9) 76%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    0 12px 32px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-left {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.brand-logo {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(245, 46, 72, 0.38));
}
.nav-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav a.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #9c9c9d;
  padding: 6px 11px;
  border-radius: 8px;
  transition: color 0.16s ease, background 0.16s ease;
}
.site-nav a.nav-link:hover,
.site-nav a.nav-link.active {
  color: #ffffff;
}
.site-nav a.nav-link.active {
  background: rgba(255, 255, 255, 0.07);
}
.nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav-text-link {
  font-size: 13px;
  font-weight: 500;
  color: #b4b5b8;
  transition: color 0.16s ease;
}
.nav-text-link:hover,
.nav-text-link.active { color: #ffffff; }
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease;
}
.nav-btn.light {
  background: #e6e6e6;
  color: #1c1d21;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.9),
    inset 0 -1px 0.5px rgba(0, 0, 0, 0.18);
}
.nav-btn.light:hover { background: #ffffff; }
.nav-user-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.nav-user-link:hover,
.nav-user-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

/* ====== 单屏居中极简首页 ====== */
body.is-hero {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: calc(var(--nav-h) + 8px) 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-glow-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.72;
}
.glow-red {
  width: 540px;
  height: 360px;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245, 46, 72, 0.44) 0%, rgba(184, 2, 50, 0.14) 52%, transparent 74%);
}
.glow-warm {
  width: 390px;
  height: 300px;
  left: 34%;
  top: 38%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 168, 56, 0.30) 0%, transparent 72%);
}
.glow-blue {
  width: 430px;
  height: 320px;
  left: 66%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(64, 140, 255, 0.32) 0%, transparent 72%);
}

.hero-center {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* 纯净放大版官方红色主标，无黑色圆角底座 */
.hero-logo {
  width: 116px;
  height: 116px;
  display: block;
  margin-bottom: 24px;
  filter: drop-shadow(0 14px 34px rgba(245, 46, 72, 0.42));
}
.hero-title {
  margin: 0;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}
.hero-desc {
  margin: 20px 0 36px;
  max-width: 540px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.75;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: 0.25px;
  text-wrap: balance;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Raycast 四层立体高光主按钮 */
.hero-dl-btn,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.25px;
  background: #ececec;
  color: #191a1e;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.52),
    0 0 24px rgba(255, 255, 255, 0.2),
    inset 0 -1px 0.6px rgba(0, 0, 0, 0.22),
    inset 0 1px 0.6px rgba(255, 255, 255, 1);
  transition: background 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}
.hero-dl-btn:hover,
.btn-light:hover:not(:disabled) {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.55),
    0 6px 30px rgba(255, 255, 255, 0.28),
    inset 0 -1px 0.6px rgba(0, 0, 0, 0.18),
    inset 0 1px 0.6px rgba(255, 255, 255, 1);
}
.hero-dl-btn:active,
.btn-light:active:not(:disabled) {
  background: #d5d6d8;
  transform: translateY(0);
}
.btn-light:disabled { opacity: 0.55; cursor: not-allowed; }
.hero-dl-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.hero-req {
  margin-top: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.42);
}

/* 首页底部极简合规备案条（无会员与我的入口） */
.hero-footer {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.36);
}
.hero-footer a {
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.16s ease;
}
.hero-footer a:hover { color: rgba(255, 255, 255, 0.82); }
.hero-footer .sep { opacity: 0.35; }

/* ====== 去卡片化子页面统一排版（与首页同源的极简通透质感） ====== */
.sub-page {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 34px) 24px 80px;
  max-width: 960px;
  margin: 0 auto;
}
.auth-page {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 20px) 20px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.auth-panel {
  width: 100%;
  max-width: 380px;
}
.auth-head {
  text-align: center;
  margin-bottom: 28px;
}
.auth-head img {
  width: 52px;
  height: 52px;
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 8px 20px rgba(245, 46, 72, 0.38));
}
.auth-title { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.auth-sub { margin: 0; font-size: 13px; color: var(--muted); }

/* 极简无框分段容器：用细线与留白替代厚重卡片 */
.band {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.band:first-of-type { border-top: none; padding-top: 0; }
.band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.band-head h2, .band-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1px;
}
.band-sub { font-size: 12px; color: var(--muted); }

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  flex-wrap: wrap;
}
.page-hero h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.page-hero p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* 表单与按钮 */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.field input, .field select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(14, 15, 20, 0.62);
  color: #fff;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.field input:focus, .field select:focus {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(14, 15, 20, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.field input::placeholder { color: rgba(255, 255, 255, 0.30); }
.field-hint { margin-top: 6px; font-size: 12px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.full, .btn-light.full { width: 100%; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.btn.ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.24);
}
.btn.wx { background: var(--wx); color: #fff; }
.btn.wx:hover:not(:disabled) { background: #06ad56; }
.btn.ali { background: var(--ali); color: #fff; }
.btn.ali:hover:not(:disabled) { background: #2b83ff; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }

.auth-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth-foot a { color: #ffffff; font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

/* 状态徽标 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-2);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.brand { background: var(--brand-soft); color: #ff6b81; }
.badge.warn { background: rgba(245, 166, 35, 0.16); color: #ffc55c; }

/* ====== 开通会员页（/vip，去卡片堆积，极简横排选档 + 结算条） ====== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.plan-option {
  position: relative;
  border-radius: 14px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}
.plan-option:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.045);
}
.plan-option.active {
  border-color: rgba(245, 46, 72, 0.85);
  background: linear-gradient(180deg, rgba(245, 46, 72, 0.13) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 0 0 1px rgba(245, 46, 72, 0.25);
}
.plan-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(245, 46, 72, 0.22);
  color: #ff7a8d;
}
.plan-name { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 6px;
}
.plan-price .yen { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, 0.72); }
.plan-price .num { font-size: 36px; font-weight: 800; letter-spacing: -0.6px; }
.plan-price .days { font-size: 12px; color: var(--muted); margin-left: 4px; }
.plan-desc { font-size: 12px; color: var(--muted); min-height: 18px; }

.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.checkout-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.checkout-amount .label { font-size: 13px; color: var(--muted); }
.checkout-amount .price { font-size: 30px; font-weight: 800; color: #ffffff; letter-spacing: -0.5px; }
.checkout-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.note-line {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-wrap;
}

/* ====== 我的页面（/me，去卡片、去圆形头像、通透信息流） ====== */
.me-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 26px;
}
.me-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.me-name-row h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.me-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.me-meta-grid b { color: var(--ink); font-weight: 600; margin-left: 4px; }

.inline-redeem {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
}
.inline-redeem input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 15, 20, 0.62);
  color: #fff;
  outline: none;
}
.inline-redeem input:focus {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(14, 15, 20, 0.82);
}

.metrics-row {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.metric-item .k { font-size: 12px; color: var(--muted); }
.metric-item .v { font-size: 28px; font-weight: 800; margin-top: 2px; letter-spacing: -0.4px; }

/* 极简细线表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
.empty-state {
  padding: 28px 0;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
}

/* 扫码收银台弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-box {
  width: 100%;
  max-width: 390px;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.65);
}
.modal-box h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.modal-sub { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.qr-frame {
  width: 224px;
  height: 224px;
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  display: grid;
  place-items: center;
}
.qr-frame canvas { width: 200px; height: 200px; display: block; image-rendering: pixelated; }
.qr-amount { font-size: 26px; font-weight: 900; margin-bottom: 4px; }
.qr-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
  margin: 6px 0 16px;
}
.qr-status.ok { color: var(--ok); font-weight: 700; }

/* Toast */
#site-toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(24, 26, 33, 0.96);
  border: 1px solid var(--line-strong);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
#site-toast.err {
  background: rgba(52, 20, 28, 0.96);
  border-color: rgba(255, 92, 114, 0.45);
  color: #ff9aab;
}
#site-toast.ok {
  background: rgba(18, 44, 32, 0.96);
  border-color: rgba(43, 213, 118, 0.45);
  color: #79f2ad;
}

@media (max-width: 780px) {
  .plan-grid { grid-template-columns: 1fr; }
  .inline-redeem { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .site-header { padding: 12px 12px 0; }
  .site-navbar { height: 54px; padding: 0 14px; }
  .nav-left { gap: 10px; }
  .site-brand span { display: none; }
  .nav-divider { display: none; }
  .site-nav { gap: 4px; }
  .site-nav a.nav-link { font-size: 13px; padding: 5px 8px; }
  .hero-logo { width: 92px; height: 92px; margin-bottom: 18px; }
}
