:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-subtle: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1040px;
  --prose-width: 780px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--prose {
  max-width: var(--prose-width);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

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

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Hero */
.hero {
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  max-width: 780px;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 32px;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 660px;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1e293b;
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text-muted);
}

/* Sections */
.section {
  padding: 68px 0;
}

.section--tinted {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-desc {
  margin: 0;
  font-size: 0.96875rem;
  color: var(--text-secondary);
  max-width: 640px;
}

/* Product cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.card-subtitle {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
}

.card-body {
  margin: 0 0 22px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.feature-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.feature-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  font-weight: 500;
}

.card-links a::after {
  content: " →";
  font-weight: 400;
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.contact-card p {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.contact-email {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  word-break: break-all;
}

/* Subpages (Support & Privacy) */
.page-hero {
  padding: 56px 0 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 680px;
}

.meta-bar {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.meta-bar strong {
  color: var(--text);
  font-weight: 600;
}

.prose {
  padding: 48px 0 72px;
}

.prose-intro {
  margin: 0 0 36px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.96875rem;
  color: var(--text);
  line-height: 1.8;
}

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

.prose-section:last-child {
  margin-bottom: 0;
}

.prose-section h2 {
  margin: 0 0 14px;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.prose-section p {
  margin: 0 0 14px;
  font-size: 0.96875rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.prose-section p:last-child {
  margin-bottom: 0;
}

.info-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.info-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  background: #ffffff;
}

.info-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.info-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.support-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.support-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
}

.support-table tr {
  border-bottom: 1px solid var(--border);
}

.support-table tr:last-child {
  border-bottom: none;
}

.support-table th,
.support-table td {
  text-align: left;
  padding: 12px 0;
  font-size: 0.9375rem;
  vertical-align: top;
}

.support-table th {
  width: 160px;
  color: var(--text);
  font-weight: 600;
  padding-right: 16px;
}

.support-table td {
  color: var(--text-secondary);
}

.toc {
  margin-bottom: 36px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.toc-title {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  font-size: 0.9rem;
}

.toc a {
  color: var(--text-secondary);
}

.toc a:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 32px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer-legal a {
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--text);
}

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

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

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 820px) {
  .card-grid,
  .contact-grid,
  .toc ol {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 48px 0;
  }

  .card {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 18px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-nav {
    gap: 18px;
  }

  .support-table th,
  .support-table td {
    display: block;
    width: 100%;
    padding: 4px 0;
  }

  .support-table tr {
    display: block;
    padding: 10px 0;
  }
}
