:root {
  --bg: #ffffff;
  --surface: #f5f6f7;
  --surface-alt: #eceef0;
  --dark: #111315;
  --dark-card: #191c20;
  --text: #14171a;
  --muted: #5a626b;
  --text-inv: #f6f7f8;
  --muted-inv: #a4acb5;
  --border: #e1e4e8;
  --border-dark: rgba(255, 255, 255, 0.12);
  --accent: #ff6a1a;
  --accent-hover: #e5580e;
  --max-w: 1180px;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: "Archivo", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 19, 21, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-inv);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #ffffff;
  color: #111315;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.04em;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
}

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

.brand-en {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-zh {
  font-size: 12px;
  color: var(--muted-inv);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: #d6dbe0;
}

.nav-links a:hover {
  color: #ffffff;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: 0;
  color: var(--muted-inv);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  cursor: pointer;
  font-family: inherit;
}

.lang-btn.active {
  background: #ffffff;
  color: #111315;
}

/* Hero */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--text-inv);
  overflow: hidden;
  padding: 96px 0 88px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 19, 21, 0.94) 0%, rgba(17, 19, 21, 0.82) 52%, rgba(17, 19, 21, 0.42) 100%), url("assets/hero-c8.jpg");
  background-size: cover;
  background-position: center right;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d4dae0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero-sub {
  margin: 0 0 32px;
  font-size: 17px;
  color: #cdd3da;
  max-width: 630px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.btn-primary {
  background: var(--accent);
  color: #130800;
}

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

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Metrics strip */
.metrics-strip {
  background: #171a1e;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-inv);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric-item {
  padding: 28px 20px;
  border-right: 1px solid var(--border-dark);
}

.metric-item:last-child {
  border-right: 0;
}

.metric-val {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.metric-lbl {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted-inv);
}

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

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

.section-dark {
  background: var(--dark);
  color: var(--text-inv);
}

.section-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 10px;
}

.section-dark .section-kicker {
  color: var(--muted-inv);
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 36px;
  color: var(--muted);
  max-width: 760px;
  font-size: 16px;
}

.section-dark .section-lead {
  color: var(--muted-inv);
}

/* About cards */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.pillar-num {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.pillar-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.pillar-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  border-color: #14171a;
  box-shadow: 0 10px 26px rgba(17, 19, 21, 0.08);
}

.product-img-wrap {
  aspect-ratio: 1 / 1;
  background: #eef0f2;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-code {
  font-size: 12px;
  color: var(--muted);
}

.product-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.product-specs {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  flex: 1;
}

.product-link {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-link:hover {
  color: var(--accent);
}

.footnote {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Brand & Affiliate Disclosure */
.affiliate-box {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: center;
}

.affiliate-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.affiliate-list li {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  font-size: 14px;
}

.affiliate-list strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-inv);
  margin-bottom: 4px;
}

/* Registry Table */
.registry-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  vertical-align: top;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.info-table th {
  width: 34%;
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.contact-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.contact-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}

.contact-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-item a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Legal subpages */
.legal-hero {
  background: var(--dark);
  color: var(--text-inv);
  padding: 56px 0 44px;
}

.legal-hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.legal-hero p {
  margin: 0;
  color: var(--muted-inv);
  font-size: 14px;
}

.legal-body {
  padding: 48px 0 76px;
  max-width: 820px;
}

.legal-body h2 {
  margin: 30px 0 10px;
  font-size: 20px;
}

.legal-body p, .legal-body li {
  color: #31373d;
  font-size: 15px;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--muted-inv);
  border-top: 1px solid var(--border-dark);
  padding: 44px 0 36px;
  font-size: 13.5px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

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

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
}

/* Language visibility */
[data-lang="zh"] {
  display: none;
}

body.lang-zh [data-lang="en"] {
  display: none;
}

body.lang-zh [data-lang="zh"] {
  display: revert;
}

@media (max-width: 980px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-item:nth-child(2) {
    border-right: 0;
  }
  .metric-item:nth-child(1),
  .metric-item:nth-child(2) {
    border-bottom: 1px solid var(--border-dark);
  }
  .pillars-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .affiliate-box,
  .registry-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 64px 0 60px;
  }
  .pillars-grid,
  .product-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .metric-item {
    border-right: 0;
    border-bottom: 1px solid var(--border-dark);
  }
  .metric-item:last-child {
    border-bottom: 0;
  }
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
  .info-table th {
    padding-bottom: 4px;
    border-bottom: 0;
  }
}
