@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  --bg: #f0f9ff;
  --bg-accent: #e0f2fe;
  --bg-warm: #fff7ed;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.97);
  --surface-dark: #082f49;
  --line: rgba(14, 116, 144, 0.14);
  --line-strong: rgba(14, 116, 144, 0.22);
  --text: #082f49;
  --muted: #35556d;
  --primary: #0ea5e9;
  --primary-deep: #0369a1;
  --secondary: #38bdf8;
  --cta: #f97316;
  --cta-deep: #ea580c;
  --success: #0f766e;
  --shadow-lg: 0 28px 80px rgba(8, 47, 73, 0.12);
  --shadow-md: 0 18px 40px rgba(8, 47, 73, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(960px 540px at 0% -10%, rgba(56, 189, 248, 0.25), transparent 60%),
    radial-gradient(840px 480px at 100% 0%, rgba(249, 115, 22, 0.14), transparent 56%),
    linear-gradient(180deg, var(--bg), #ffffff 50%, #f8fafc);
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

code,
pre {
  font-family: "JetBrains Mono", Consolas, monospace;
}

.site-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-brand img {
  width: 52px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(14, 116, 144, 0.18);
}

.site-brand span {
  font-size: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 560px;
  min-width: 0;
  flex-wrap: wrap;
}

.site-nav a,
.lang-switch button,
.lang-switch a {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-nav a:hover,
.lang-switch button:hover,
.lang-switch a:hover,
.site-nav a:focus-visible,
.lang-switch button:focus-visible,
.lang-switch a:focus-visible {
  color: var(--text);
  background: rgba(56, 189, 248, 0.12);
  outline: none;
}

.site-nav a.is-active,
.lang-switch button.is-active,
.lang-switch a.is-active,
.lang-switch a[aria-current="page"] {
  color: var(--text);
  background: rgba(14, 165, 233, 0.14);
  box-shadow: inset 0 0 0 1px rgba(14, 116, 144, 0.12);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.page-stack {
  display: grid;
  gap: 26px;
}

.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  box-shadow: var(--shadow-md);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 36px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 260px at 100% 0%, rgba(14, 165, 233, 0.16), transparent 58%),
    radial-gradient(420px 220px at 0% 100%, rgba(249, 115, 22, 0.1), transparent 54%);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 18px;
  line-height: 1.3;
}

p,
li {
  color: var(--muted);
  line-height: 1.78;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
}

.lead {
  max-width: 780px;
  font-size: 19px;
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.hero-note {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 116, 144, 0.14);
  background: rgba(255, 255, 255, 0.8);
}

.pill-row,
.action-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(14, 116, 144, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--primary-deep);
  font-size: 14px;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  color: #fff;
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.24);
}

.button-secondary {
  border-color: rgba(14, 116, 144, 0.16);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.button-ghost {
  border-color: transparent;
  background: rgba(14, 165, 233, 0.08);
  color: var(--primary-deep);
}

.hero-panel,
.metric-card,
.feature-card,
.code-card,
.faq-card,
.fit-card,
.notice-card,
.article-card,
.timeline-card,
.quote-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(235, 248, 255, 0.96));
  border-color: rgba(14, 116, 144, 0.16);
  box-shadow:
    0 18px 40px rgba(8, 47, 73, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.hero-panel > h2 {
  color: var(--text);
  text-shadow: none;
}

.hero-panel h2,
.hero-panel h3,
.hero-panel h4,
.hero-panel p,
.hero-panel li,
.hero-panel .pill {
  color: inherit;
}

.hero-panel .pill {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 116, 144, 0.12);
}

.hero-panel .metric-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 255, 0.92));
  border-color: rgba(14, 116, 144, 0.12);
  box-shadow:
    0 10px 24px rgba(8, 47, 73, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.hero-panel .metric-card h3 {
  color: var(--text);
}

.hero-panel .metric-card p {
  color: var(--muted);
}

.metric-grid,
.feature-grid,
.package-grid,
.info-grid,
.faq-grid,
.fit-grid,
.timeline-grid,
.article-grid,
.code-grid,
.quote-grid {
  display: grid;
  gap: 18px;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid,
.faq-grid,
.fit-grid,
.article-grid,
.quote-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.code-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.section-shell {
  display: grid;
  gap: 18px;
}

.package-stack,
.package-row,
.package-row-head {
  display: grid;
  gap: 14px;
}

.package-row-head {
  max-width: 760px;
}

.package-row-head h3,
.package-row-head p {
  margin: 0;
}

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

.code-card {
  display: grid;
  gap: 14px;
}

.code-card pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  border-radius: 16px;
  background: #082032;
  color: #ecfeff;
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.code-card code {
  font-size: 13px;
  line-height: 1.7;
}

.list-tight {
  display: grid;
  gap: 8px;
}

.list-tight li {
  margin: 0;
}

.label-chip {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 700;
}

.muted-box {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(14, 116, 144, 0.12);
  background: rgba(240, 249, 255, 0.92);
}

.warning-box {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.98));
}

.tutorial-card {
  display: grid;
  gap: 14px;
}

.tutorial-shot {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(14, 116, 144, 0.14);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(14, 116, 144, 0.08);
}

th {
  font-size: 14px;
  color: var(--primary-deep);
  background: rgba(14, 165, 233, 0.06);
}

.timeline-card time {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 700;
}

.faq-card details {
  border-top: 1px solid rgba(14, 116, 144, 0.08);
  padding-top: 14px;
  margin-top: 14px;
}

.faq-card details:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.faq-card summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  list-style: none;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card p {
  margin-top: 10px;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 26px 4px 0;
  border-top: 1px solid var(--line);
}

.site-footer p {
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 14px 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  outline: none;
}

.support-inline {
  color: var(--primary-deep);
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-main {
  display: grid;
  gap: 24px;
}

.legal-card {
  padding: 32px;
}

.legal-card h1 {
  margin-bottom: 10px;
}

.legal-card .meta {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.legal-card h2 {
  margin-top: 34px;
  margin-bottom: 14px;
}

.legal-card h3 {
  margin-top: 26px;
  margin-bottom: 12px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul,
.legal-card ol {
  margin-bottom: 16px;
}

.legal-card code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.08);
  color: var(--primary-deep);
  font-size: 0.95em;
}

.legal-box {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(14, 116, 144, 0.14);
  background: rgba(240, 249, 255, 0.72);
}

.legal-box p:last-child,
.legal-box ul:last-child,
.legal-box ol:last-child {
  margin-bottom: 0;
}

.legal-box-warning {
  border-color: rgba(249, 115, 22, 0.18);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.98));
}

.legal-box-highlight {
  border-color: rgba(14, 165, 233, 0.18);
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.96), rgba(255, 255, 255, 0.98));
}

.legal-price {
  margin: 12px 0 18px;
  color: var(--primary-deep);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

@media (max-width: 1080px) {
  .hero-grid,
  .feature-grid,
  .package-grid,
  .metric-grid,
  .timeline-grid,
  .code-grid,
  .split-shell {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .faq-grid,
  .fit-grid,
  .article-grid,
  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100%, calc(100% - 20px));
  }

  .site-header {
    position: static;
    border-radius: 24px;
  }

  .info-grid,
  .faq-grid,
  .fit-grid,
  .article-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .metric-card,
  .feature-card,
  .code-card,
  .faq-card,
  .fit-card,
  .notice-card,
  .article-card,
  .timeline-card,
  .quote-card,
  .hero-panel,
  .legal-card {
    padding: 20px;
  }

  .button {
    width: 100%;
  }

  .action-row {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .site-nav a,
  .lang-switch button {
    transition: none;
  }
}
