:root {
  font:
    15px/1.65 system-ui,
    "Microsoft YaHei",
    sans-serif;
  color: #e8edf5;
  background: #0d1420;
  color-scheme: dark;
  --panel: #172130;
  --muted: #9caec5;
  --line: #2b3b50;
  --accent: #9ae6c5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  border: 1px solid var(--line);
  background: #243448;
  color: #e8edf5;
  border-radius: 9px;
  padding: 9px 17px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
button:hover,
.button:hover {
  background: #30465f;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--accent);
  color: #10261e;
  border-color: var(--accent);
  font-weight: 650;
}
.primary:hover {
  background: #b4f4d9;
}
.danger {
  color: #ffb2ae;
}
.test-banner {
  background: #292332;
  color: #ffd594;
  text-align: center;
  padding: 8px 15px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
header {
  max-width: 1120px;
  margin: auto;
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 750;
  color: var(--accent);
}
.brand span {
  color: #f0f5fc;
  font-size: 20px;
}
.brand small,
.tag {
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 20px;
  color: var(--accent);
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  color: #cbd7e6;
  font-size: 14px;
}
main {
  max-width: 1060px;
  min-height: 65vh;
  margin: 0 auto;
  padding: 52px 30px;
}
h1 {
  font-size: 42px;
  line-height: 1.22;
  margin: 12px 0 18px;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 22px;
  margin: 0 0 12px;
}
h3 {
  margin: 0;
  font-size: 17px;
}
p {
  margin: 10px 0 20px;
}
.eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
}
.muted,
small {
  color: var(--muted);
}
.hero {
  max-width: 720px;
  margin-bottom: 36px;
}
.hero > p {
  font-size: 17px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  min-width: 0;
}
.card.highlight {
  border-color: #638e80;
}
.price {
  font-size: 42px;
  font-weight: 750;
  margin: 16px 0;
}
.price small {
  font-size: 14px;
  font-weight: 400;
}
.features {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  color: #bdcde0;
}
.features li {
  padding: 6px 0;
}
.features li:before {
  content: "✓";
  color: var(--accent);
  margin-right: 10px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 20px;
}
.section {
  margin-top: 34px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #b9c9dd;
  margin: 14px 0;
}
input,
select {
  background: #101a28;
  color: #eef4fc;
  border: 1px solid #3a4b61;
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.auth {
  max-width: 450px;
  margin: 0 auto;
}
.auth-switch {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.auth-switch .selected {
  color: var(--accent);
  border-color: #638e80;
}
.pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 18px;
  background: #243747;
  color: #bdd2e9;
}
.pill.active {
  color: #b0f1d5;
  background: #223e36;
}
.pill.expired {
  color: #ffbdad;
  background: #402c2c;
}
.list {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}
.item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.item strong,
.item code {
  overflow-wrap: anywhere;
}
.item p {
  margin: 6px 0;
}
.item small {
  display: block;
}
.item button {
  font-size: 13px;
  padding: 6px 12px;
}
.empty {
  padding: 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.checkout {
  max-width: 650px;
  margin: auto;
}
.cashier {
  margin-top: 20px;
  border: 1px dashed #4b657d;
  border-radius: 12px;
  text-align: center;
  padding: 30px;
}
.cashier .symbol {
  font-size: 42px;
  color: var(--accent);
}
.notice-card {
  padding: 18px;
  border-left: 3px solid var(--accent);
  background: #1a2b30;
  border-radius: 6px;
  margin: 20px 0;
}
.code {
  display: block;
  overflow-wrap: anywhere;
  background: #0d1724;
  padding: 14px;
  border-radius: 8px;
  color: var(--accent);
  user-select: all;
}
.wide {
  width: 100%;
}
.loading {
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #31475d;
  border: 1px solid #607b96;
  padding: 13px 22px;
  border-radius: 10px;
  max-width: min(90vw, 640px);
  z-index: 20;
}
#notice.error {
  background: #4b2b32;
  border-color: #aa696f;
}
dialog {
  background: var(--panel);
  color: #e8edf5;
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(460px, 92vw);
  padding: 28px;
}
dialog::backdrop {
  background: #030910c9;
}
footer {
  padding: 26px 20px;
  text-align: center;
  color: #7d91aa;
  font-size: 12px;
  border-top: 1px solid var(--line);
}
[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  header {
    padding: 20px;
    align-items: flex-start;
    gap: 18px;
  }
  nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .brand small {
    display: none;
  }
  main {
    padding: 32px 20px;
  }
  h1 {
    font-size: 32px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 22px;
  }
  .price {
    font-size: 36px;
  }
  .row > button {
    flex-shrink: 0;
  }
}
body {
  overflow-wrap: anywhere;
}
textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: #101b2b;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.check input {
  width: auto;
  margin-top: 7px;
}
.item small,
.hero p {
  overflow-wrap: anywhere;
}
.row > * {
  min-width: 0;
}
.brand {
  flex-shrink: 0;
  white-space: nowrap;
}
.brand span {
  white-space: nowrap;
}
@media (max-width: 650px) {
  nav {
    min-width: 0;
    font-size: 13px;
  }
}

.plan-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.plan-summary a, footer a { text-decoration: underline; }

.manual-site {
  color-scheme: light;
  color: #171b2b;
  background: #f9f9f6;
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  --panel: #fff;
  --muted: #4f586e;
  --line: #dbe0ee;
  --accent: #2f45bf;
}
.manual-site .test-banner { background: #e9edf9; color: #394677; letter-spacing: 0; }
.manual-site header { padding-block: 16px; }
.manual-site .brand span, .manual-site nav a { color: #171b2b; }
.manual-site .brand:hover, .manual-site nav a:hover { color: var(--accent); }
.manual-site nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.manual-site main { max-width: 1120px; }
.manual-site button, .manual-site .button { background: #eef1fd; color: #25336d; }
.manual-site button:hover, .manual-site .button:hover { background: #e1e7fc; }
.manual-site .primary { background: #354ddb; color: #fff; border-color: #354ddb; }
.manual-site .primary:hover { background: #263bbd; }
.manual-site .danger { color: #8a3037; }
.manual-site .card { border-radius: 13px; box-shadow: 0 8px 24px #14266008; }
.manual-site label { color: #39425c; }
.manual-site input, .manual-site select, .manual-site textarea { background: #fbfcff; color: #171b2b; border-color: #bdc7e2; }
.manual-site .code { margin-bottom: 15px; color: #263dad; background: #f2f4ff; }
.manual-site .notice-card { background: #eef1fc; }
.manual-site .notice-card h2 { margin: 0; }
.manual-site .notice-card p { margin-bottom: 0; }
.manual-site .pill { color: #35466a; background: #edf0fa; }
.manual-site .pill.active { color: #1f6546; background: #e5f4ea; }
.manual-site .pill.expired { color: #883d3b; background: #faece9; }
.manual-site .auth-switch .selected { color: var(--accent); border-color: #a2adf4; }
.manual-site footer { color: var(--muted); }
.manual-site dialog { color: #171b2b; }
.manual-site #notice { background: #edf1ff; color: #172556; border-color: #becafa; }
.manual-site #notice.error { background: #fbeded; color: #761f23; border-color: #eabfc2; }
.member-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 30px 34px; border-radius: 17px; color: #fff; background: radial-gradient(ellipse at top right, #424eae, transparent 65%), #202746; }
.member-hero .eyebrow { color: #c9d2ff; }
.member-hero h1 { margin: 8px 0 12px; }
.member-hero p { margin: 0; color: #dce4ff; }
.member-hero-account { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: 280px; color: #dce4ff; font-size: 13px; }
.purchase-options, .purchase-steps, .member-account-grid { margin-top: 24px; }
.member-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.member-plan { display: grid; gap: 5px; padding: 15px 17px; background: #fff; color: #26304d; border: 1px solid var(--line); border-radius: 10px; }
.member-plan:hover { text-decoration: none; border-color: #a1adf3; background: #f6f7ff; }
.member-plan.selected { background: #eef1ff; color: #243cb4; border-color: #8799f4; box-shadow: inset 0 0 0 1px #8799f4; }
.member-plan strong { font-size: clamp(16px, 2vw, 23px); }
.member-plan small { font-size: 12px; }
.step-label { margin: 0 0 4px; color: var(--accent); font-weight: 700; font-size: 13px; }
.purchase-steps h2 { margin-bottom: 4px; }
.member-data { display: grid; gap: 9px; margin: 12px 0; }
.member-data dt { color: var(--muted); font-size: 12px; }
.member-data dd { margin: 2px 0 0; font-weight: 600; }
.order-data { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.order-amount { margin-inline-start: 6px; color: #3348bd; font-weight: 700; }
.member-tools summary { cursor: pointer; font-weight: 700; }
@media (max-width: 650px) {
  .manual-site main { padding: 22px 14px; }
  .member-hero { flex-direction: column; align-items: flex-start; gap: 16px; padding: 23px 18px; }
  .member-hero-account { align-items: flex-start; }
  .member-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .member-plan { padding: 10px 7px; }
  .order-data { grid-template-columns: 1fr; }
}
