:root {
  color-scheme: light;
  --primary: #252729;
  --primary-soft: #3b3d3f;
  --background: #f5f6f7;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-ink: #efefec;
  --text-primary: #212121;
  --text-secondary: #757575;
  --text-muted: #8d8d8d;
  --line: rgba(37, 39, 41, 0.12);
  --line-strong: rgba(37, 39, 41, 0.22);
  --shadow-lg: 0 28px 60px rgba(37, 39, 41, 0.14);
  --shadow-md: 0 14px 32px rgba(37, 39, 41, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(230, 233, 238, 0.85), transparent 36%),
    radial-gradient(circle at top right, rgba(227, 231, 224, 0.8), transparent 32%),
    linear-gradient(180deg, #fbfbfb 0%, var(--background) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 39, 41, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 39, 41, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 82%);
}

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

code {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(37, 39, 41, 0.06);
  color: var(--text-primary);
  font-family: "SFMono-Regular", "SFMono-Regular", ui-monospace, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
}

img {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(245, 246, 247, 0.76);
  border-bottom: 1px solid rgba(37, 39, 41, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 12px 28px rgba(37, 39, 41, 0.2);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 18px;
}

.brand-text span {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(37, 39, 41, 0.08);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.page {
  flex: 1 0 auto;
  padding: 34px 0 72px;
}

.home-page {
  display: flex;
  align-items: center;
  padding: 28px 0 42px;
}

.home-stage {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-card {
  width: min(100%, 920px);
  padding: 0;
  text-align: center;
}

.home-card h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.home-lead {
  margin: 14px 0 0;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
  white-space: nowrap;
}

.error-page {
  display: flex;
  align-items: center;
  padding: 28px 0 42px;
}

.error-stage {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-panel {
  width: min(100%, 780px);
  text-align: center;
}

.error-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(37, 39, 41, 0.05);
  border: 1px solid rgba(37, 39, 41, 0.08);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.error-panel h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.error-lead {
  margin: 18px auto 0;
  max-width: 42rem;
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-primary);
}

.error-note {
  margin: 10px auto 0;
  max-width: 38rem;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.error-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-actions .button.primary {
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.error-actions .button.secondary {
  color: var(--text-primary);
  background: rgba(37, 39, 41, 0.04);
  border: 1px solid rgba(37, 39, 41, 0.1);
  box-shadow: none;
}

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

.hero.hero-single {
  grid-template-columns: minmax(0, 1fr);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.hero-panel.dark {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(135deg, #252729 0%, #323436 58%, #45494d 100%);
  color: #fff;
}

.hero-panel.light {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(37, 39, 41, 0.08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel.light .eyebrow {
  border-color: rgba(37, 39, 41, 0.12);
  background: rgba(37, 39, 41, 0.04);
  color: var(--text-secondary);
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero p.lead {
  margin: 18px 0 0;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.hero-panel.light p.lead {
  color: var(--text-secondary);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.button.secondary {
  color: var(--text-primary);
  background: #fff;
  border: 1px solid rgba(37, 39, 41, 0.08);
  box-shadow: var(--shadow-md);
}

.hero-tags {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.84);
}

.hero-panel.light .tag {
  background: rgba(37, 39, 41, 0.04);
  border-color: rgba(37, 39, 41, 0.08);
  color: var(--text-secondary);
}

.mini-stack {
  display: grid;
  gap: 14px;
  height: 100%;
}

.mini-card {
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(245, 246, 247, 0.72);
}

.mini-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.mini-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.section {
  margin-top: 26px;
}

.section-card,
.doc-card {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(37, 39, 41, 0.08);
  box-shadow: var(--shadow-md);
}

.section-card {
  padding: 28px;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.section-title-row p {
  margin: 0;
  max-width: 520px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 246, 247, 0.86));
  border: 1px solid rgba(37, 39, 41, 0.08);
}

.feature-index {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}

.feature-card h3,
.timeline-card h3,
.info-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.feature-card p,
.timeline-card p,
.info-card p,
.company-list li,
.doc-meta,
.doc-intro,
.doc-section p,
.doc-section li,
.doc-table td,
.doc-table th {
  color: var(--text-secondary);
  line-height: 1.85;
}

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

.timeline-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(37, 39, 41, 0.08);
}

.timeline-step {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(37, 39, 41, 0.08);
}

.info-card ul,
.company-list,
.doc-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.company-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
}

.company-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.company-list li + li {
  margin-top: 10px;
}

.company-note {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(37, 39, 41, 0.05), rgba(37, 39, 41, 0.02));
  border: 1px dashed rgba(37, 39, 41, 0.18);
}

.company-note strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

.footer {
  margin-top: 0;
  padding: 22px 0 14px;
  background: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(37, 39, 41, 0.08);
}

.footer-shell {
  display: block;
  padding: 0;
}

.footer-branding {
  display: grid;
  gap: 12px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--text-secondary);
  font-size: 14px;
}

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

.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(37, 39, 41, 0.05);
  color: var(--text-secondary);
  font-weight: 600;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.doc-card {
  padding: 30px;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(37, 39, 41, 0.08);
  box-shadow: var(--shadow-md);
}

.toc strong {
  display: block;
  margin-bottom: 14px;
  font-size: 15px;
}

.toc nav {
  display: grid;
  gap: 8px;
}

.toc a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.toc a:hover {
  background: rgba(37, 39, 41, 0.05);
  color: var(--text-primary);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
}

.doc-card h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.doc-intro {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(37, 39, 41, 0.05), rgba(37, 39, 41, 0.02));
  border: 1px solid rgba(37, 39, 41, 0.08);
}

.doc-section + .doc-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(37, 39, 41, 0.08);
}

.doc-section h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.doc-section h3 {
  margin: 18px 0 10px;
  font-size: 18px;
}

.doc-section p {
  margin: 0;
}

.doc-section p + p {
  margin-top: 12px;
}

.doc-list li + li {
  margin-top: 8px;
}

.doc-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(37, 39, 41, 0.08);
}

.doc-table th,
.doc-table td {
  padding: 14px 16px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid rgba(37, 39, 41, 0.08);
}

.doc-table th {
  background: rgba(37, 39, 41, 0.05);
  color: var(--text-primary);
  font-size: 14px;
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 39, 41, 0.06);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero,
  .company-panel,
  .legal-layout,
  .feature-grid,
  .timeline,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .topbar-inner {
    min-height: 68px;
    gap: 12px;
  }

  .nav {
    gap: 6px;
  }

  .nav a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .page {
    padding: 20px 0 48px;
  }

  .home-page {
    padding: 18px 0 40px;
  }

  .error-page {
    padding: 18px 0 40px;
  }

  .home-card,
  .error-panel,
  .doc-card,
  .toc,
  .footer-shell {
    padding: 22px;
  }

  .home-card h1 {
    max-width: none;
    font-size: 38px;
    white-space: normal;
  }

  .home-lead {
    font-size: 16px;
    white-space: normal;
  }

  .error-panel h1 {
    font-size: 38px;
  }

  .error-lead,
  .error-note {
    font-size: 15px;
  }

  .hero-panel,
  .section-card,
  .footer-shell {
    padding: 22px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .section-title-row {
    flex-direction: column;
    align-items: start;
  }

  .section-title-row h2,
  .doc-section h2 {
    font-size: 24px;
  }

  .footer-shell {
    padding: 0;
  }

  .doc-table,
  .doc-table tbody,
  .doc-table tr,
  .doc-table td,
  .doc-table th {
    display: block;
    width: 100%;
  }

  .doc-table thead {
    display: none;
  }

  .doc-table td {
    border-bottom: 1px solid rgba(37, 39, 41, 0.08);
  }

  .doc-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  body.legal-page {
    background: #fff;
  }

  body.legal-page::before,
  .legal-page .topbar,
  .legal-page .toc,
  .legal-page .footer {
    display: none;
  }

  .legal-page .page {
    padding: 0;
  }

  .legal-page .container {
    width: 100%;
  }

  .legal-page .legal-layout {
    display: block;
  }

  .legal-page .doc-card {
    padding: 18px 18px 36px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .legal-page .eyebrow {
    margin-bottom: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
  }

  .legal-page .doc-card h1 {
    font-size: 24px;
    line-height: 1.28;
    letter-spacing: 0;
  }

  .legal-page .doc-meta {
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    font-size: 13px;
  }

  .legal-page .doc-intro {
    margin-top: 18px;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
  }

  .legal-page .doc-section + .doc-section {
    margin-top: 26px;
    padding-top: 26px;
  }

  .legal-page .doc-section h2 {
    font-size: 19px;
    line-height: 1.35;
  }

  .legal-page .doc-section p,
  .legal-page .doc-section li {
    font-size: 15px;
    line-height: 1.85;
  }
}
