:root {
  color-scheme: dark;
  --bg: #111111;
  --bg-soft: #151515;
  --panel: #181818;
  --panel-2: #202020;
  --line: #2b2b2b;
  --line-strong: #3a3a3a;
  --text: #f6f6f3;
  --muted: #a7a7a2;
  --muted-2: #737373;
  --white: #f8f8f6;
  --purple: #6f43b8;
  --danger: #8e2828;
  --gold: #d5a72f;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
  --max: 960px;
  --pricing-max: 1500px;
  font-family: "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f4;
  --bg-soft: #f0f0ec;
  --panel: #ffffff;
  --panel-2: #f4f4f0;
  --line: #deded8;
  --line-strong: #c9c9c1;
  --text: #161616;
  --muted: #686864;
  --muted-2: #8b8b86;
  --white: #161616;
  --shadow: 0 24px 70px rgba(0,0,0,.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,0.032), transparent 30rem),
    var(--bg);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 50% 0, rgba(0,0,0,0.028), transparent 30rem),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.nav {
  height: 58px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-mark {
  width: 64px;
  height: 22px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
}

.nav-button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--line);
  color: var(--text);
  background: var(--panel);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon.sun,
:root[data-theme="light"] .theme-icon.moon {
  display: none;
}

:root[data-theme="light"] .theme-icon.sun {
  display: block;
}

.language-chip {
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 500;
}

.language-chip svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 8px 12px;
}

.announcement-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(10px);
}

.announcement-modal {
  width: min(1024px, 100%);
  height: min(82vh, 940px);
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.announcement-head,
.announcement-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 48px;
}

.announcement-title {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 26px;
  font-weight: 780;
}

.announcement-title svg,
.announcement-close svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.announcement-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.announcement-close:focus {
  outline: 0;
}

.announcement-body {
  overflow: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 48px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
}

.announcement-body blockquote {
  margin: 0;
  border-left: 8px solid var(--line-strong);
  padding-left: 28px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.55;
  font-weight: 760;
}

.announcement-section {
  padding: 42px 0;
}

.announcement-section + .announcement-section {
  border-top: 1px solid var(--line);
}

.announcement-body h3 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 24px;
}

.announcement-body ul {
  margin: 0;
  padding-left: 26px;
}

.announcement-body li + li {
  margin-top: 13px;
}

.announcement-actions {
  justify-content: flex-end;
  padding-top: 24px;
  padding-bottom: 24px;
}

.announcement-secondary,
.announcement-primary {
  min-height: 56px;
  border-radius: 10px;
  padding: 0 24px;
  font-size: 18px;
  font-weight: 760;
  cursor: pointer;
}

.announcement-secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.announcement-primary {
  border: 0;
  background: var(--white);
  color: var(--bg);
}

.guide-hero {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 352px;
  padding: 82px 24px 26px;
  text-align: center;
  display: grid;
  justify-items: center;
  align-content: start;
}

.guide-hero.compact {
  min-height: 300px;
}

.guide-hero h1,
.page-hero h1,
.about-panel h1 {
  margin: 0;
  font-size: clamp(34px, 2.65vw, 46px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 780;
}

.guide-hero p,
.page-hero p,
.about-panel p {
  max-width: 850px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.65;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 40px;
  margin-top: 30px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--bg);
  font-size: 14px;
  font-weight: 750;
}

.platform-tabs {
  margin-top: 118px;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px;
  background: var(--panel);
}

.platform-tabs button {
  min-width: 104px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.platform-tabs button.active {
  background: var(--white);
  color: var(--bg);
}

.guide {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 78px;
}

.docs-guide {
  padding-top: 18px;
}

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.step-no {
  padding-top: 7px;
  color: var(--muted-2);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 15px;
  font-weight: 750;
}

.step h2 {
  margin: 0;
  font-size: clamp(20px, 1.5vw, 26px);
  line-height: 1.2;
  font-weight: 760;
}

.step p {
  margin: 20px 0 14px;
  color: var(--muted);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.6;
}

.inline-code {
  border-radius: 6px;
  background: var(--panel-2);
  padding: 1px 7px;
  color: var(--white);
  font-family: Consolas, "SFMono-Regular", monospace;
}

.code-window {
  margin: 14px 0 34px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
}

.code-head {
  min-height: 44px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted-2);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
}

.dots {
  width: 43px;
  height: 10px;
  background:
    radial-gradient(circle at 5px 5px, #6a6a70 0 4px, transparent 5px),
    radial-gradient(circle at 21px 5px, #6a6a70 0 4px, transparent 5px),
    radial-gradient(circle at 37px 5px, #6a6a70 0 4px, transparent 5px);
}

.code-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

pre {
  margin: 0;
  padding: 24px 22px;
  overflow-x: auto;
  color: var(--text);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: clamp(13px, .9vw, 15px);
  line-height: 1.75;
}

.page-hero {
  min-height: 238px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  padding: 38px 24px;
}

.page-hero h1 {
  font-size: clamp(30px, 2.15vw, 38px);
  line-height: 1.08;
  font-weight: 800;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(14px, .95vw, 17px);
  font-weight: 600;
}

.page-hero p {
  margin: 0;
}

.pricing-section {
  max-width: var(--pricing-max);
  margin: 0 auto;
  padding: 76px 24px;
}

.section-title {
  margin-bottom: 36px;
}

.section-title.with-search {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 1.65vw, 30px);
  line-height: 1.12;
  font-weight: 800;
}

.section-title p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  position: relative;
  min-height: 398px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plan-card.featured {
  border-color: var(--purple);
  box-shadow: inset 0 0 0 1px rgba(111,67,184,0.7);
}

.plan-card.paygo .plan-main {
  min-height: 150px;
  justify-content: center;
}

.plan-main {
  min-height: 148px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 22px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.plan-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.plan-card h3 span {
  color: var(--gold);
}

.plan-main p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.plan-price {
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(28px, 2.1vw, 38px);
  font-weight: 800;
}

.plan-price small {
  color: #888882;
  font-size: 15px;
  font-weight: 550;
}

.plan-card ul {
  list-style: none;
  margin: 0;
  padding: 24px 26px 18px;
  display: grid;
  gap: 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.plan-card li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.plan-card li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 10px;
}

.plan-button {
  min-height: 40px;
  margin: auto 28px 28px;
  border: 0;
  border-radius: 7px;
  background: var(--white);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.plan-button:disabled {
  cursor: not-allowed;
  background: #202020;
  color: #777;
}

.status,
.recommend {
  position: absolute;
  right: 16px;
  top: 14px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.status.sold {
  background: var(--danger);
  color: #f3d1d1;
}

.recommend {
  left: 50%;
  right: auto;
  top: 0;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: #8850d4;
  color: #fff;
}

.search-box {
  min-width: 320px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--panel);
}

.search-box input {
  width: 100%;
  min-height: 58px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
}

.price-table,
.note-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.table-group + .table-group {
  border-top: 1px solid var(--line);
}

.table-group-head {
  min-height: 62px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.table-group-head strong {
  font-size: 19px;
}

.table-group-head span {
  border-radius: 999px;
  background: #292929;
  padding: 7px 14px;
  color: #d4d4cf;
  font-weight: 700;
}

.rate-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr .9fr;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 15px;
}

.rate-row:last-child {
  border-bottom: 0;
}

.rate-row.head {
  color: #969690;
  font-family: "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.note-box {
  margin-top: 42px;
  padding: 26px;
  color: #aaa9a4;
  font-size: 16px;
  line-height: 1.7;
}

.note-box strong {
  display: block;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 18px;
}

.about-main {
  flex: 1;
  min-height: calc(100vh - 146px);
  display: grid;
  place-items: center;
  padding: 72px 24px;
}

.about-panel {
  width: min(820px, 100%);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--white);
  font-size: 17px;
  font-weight: 750;
}

.auth-wrap {
  width: min(1040px, calc(100% - 40px));
  min-height: calc(100vh - 146px);
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .55fr);
  gap: 24px;
  align-items: stretch;
}

.auth-brand,
.auth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.auth-brand {
  min-height: 440px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand img {
  width: min(360px, 100%);
  height: auto;
  object-fit: contain;
}

.auth-brand h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
}

.auth-brand .eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  text-transform: uppercase;
}

.auth-brand .hero-copy {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.auth-panel {
  align-self: center;
  padding: 30px;
}

.auth-panel h2 {
  margin: 0;
  font-size: 25px;
}

.muted {
  color: var(--muted);
  line-height: 1.65;
}

.form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 14px;
}

.field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  background: var(--bg);
  color: var(--text);
  padding: 0 13px;
}

.field input:focus {
  border-color: #eeeeea;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.form-button.ghost {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.form-message.error {
  color: #ff8f8f;
}

.form-message.success {
  color: #72d58d;
}

.site-footer {
  margin-top: auto;
  min-height: 66px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  color: var(--muted);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav {
    height: 64px;
    padding: 0 14px;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    padding: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .brand-mark {
    width: 62px;
  }

  .nav-actions {
    margin-left: auto;
    gap: 6px;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .nav-actions .nav-button {
    display: none;
  }

  .guide-hero {
    min-height: auto;
    padding: 56px 18px 28px;
  }

  .pill-button {
    min-height: 54px;
    margin-top: 34px;
    padding: 0 26px;
    font-size: 18px;
  }

  .platform-tabs {
    width: 100%;
    margin-top: 48px;
  }

  .platform-tabs button {
    min-width: 0;
    min-height: 48px;
    font-size: 16px;
  }

  .guide {
    width: min(100% - 28px, 880px);
  }

  .step {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 48px;
  }

  .step-no {
    padding-top: 0;
  }

  .step p {
    margin-top: 22px;
  }

  .code-head {
    min-height: 52px;
    grid-template-columns: auto 1fr auto;
    padding: 0 14px;
    font-size: 14px;
  }

  .dots {
    width: 43px;
  }

  pre {
    padding: 24px 18px;
  }

  .pricing-section {
    padding: 56px 18px;
  }

  .announcement-backdrop {
    padding: 12px;
  }

  .announcement-head,
  .announcement-actions {
    padding: 20px;
  }

  .announcement-body {
    padding: 0 20px;
    font-size: 16px;
  }

  .announcement-modal {
    min-height: 0;
    height: min(88vh, 760px);
  }

  .announcement-section {
    padding: 28px 0;
  }

  .announcement-title {
    font-size: 22px;
  }

  .announcement-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .plan-grid,
  .section-title.with-search,
  .auth-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .auth-wrap {
    width: min(100% - 28px, 1180px);
    padding: 40px 0;
  }

  .auth-brand {
    min-height: 360px;
  }

  .search-box {
    min-width: 0;
  }

  .rate-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 18px;
    padding: 18px;
  }
}

