:root {
  --ink: #1c1f26;
  --ink-soft: #3b404a;
  --muted: #6b7280;
  --muted-2: #9aa1ad;
  --line: #e8ebf0;
  --line-soft: #f0f2f5;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --card: #ffffff;
  --brand: #0052d9;
  --brand-soft: #e8f1ff;
  --brand-hover: #003cab;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-hover: 0 2px 8px rgba(16, 24, 40, 0.06), 0 16px 40px rgba(0, 82, 217, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1120px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--brand-hover); }

.wrap,
.site-header-inner,
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* —— Header：白底 SaaS —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.brand:hover { color: var(--ink); text-decoration: none; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.header-nav a:hover {
  color: var(--ink);
  background: var(--bg-soft);
  text-decoration: none;
}
.header-nav a.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}
.header-nav a.nav-out {
  margin-left: 8px;
  color: var(--brand);
  border: 1px solid #c9dbff;
  background: #fff;
}
.header-nav a.nav-out:hover {
  background: var(--brand-soft);
  border-color: #a8c5ff;
}

/* —— Hero：白底高级 —— */
.hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 80% 60% at 10% -20%, rgba(0, 82, 217, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(0, 82, 217, 0.04), transparent 50%),
    linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}
.hero p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.85;
  font-size: 15px;
}

/* —— Quick cards —— */
.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
}
.quick a {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.quick a:hover {
  border-color: #c9dbff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
.quick .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}
.quick .ico svg { width: 20px; height: 20px; }
.quick h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.quick p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.quick .go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}
.quick .go svg { width: 14px; height: 14px; }

/* —— Section —— */
.section {
  padding: 56px 0 72px;
  background: var(--bg);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section .lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  border-color: #d4e2ff;
  box-shadow: var(--shadow);
}
.product-card .meta {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.product-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.product-card .domain {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.doc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.doc-links a:hover {
  background: var(--brand-soft);
  border-color: #c9dbff;
  color: var(--brand);
  text-decoration: none;
}

/* —— Doc page —— */
.doc-page {
  padding: 32px 0 80px;
  background: var(--bg-soft);
  min-height: calc(100vh - var(--header-h) - 80px);
}
.crumb {
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 20px;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--brand); }

.product-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.product-switch a {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.product-switch a:hover {
  border-color: #c9dbff;
  color: var(--brand);
  text-decoration: none;
}
.product-switch a.is-active {
  border-color: transparent;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 12px rgba(0, 82, 217, 0.25);
}

.kind-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 0;
  padding: 0 8px;
  margin-bottom: 0;
}
.kind-tabs a {
  padding: 14px 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.kind-tabs a:hover { color: var(--ink); text-decoration: none; }
.kind-tabs a.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow: auto;
  padding: 16px 0;
  border-right: 1px solid var(--line-soft);
  background: #fafbfc;
}
.toc-label {
  padding: 4px 18px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.toc a {
  display: block;
  padding: 8px 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  border-left: 2px solid transparent;
}
.toc a:hover {
  color: var(--brand);
  background: rgba(0, 82, 217, 0.04);
  text-decoration: none;
}
.toc a.is-active {
  color: var(--brand);
  background: var(--brand-soft);
  border-left-color: var(--brand);
  font-weight: 600;
}

.article {
  background: #fff;
  padding: 36px 40px 48px;
  min-width: 0;
}
.article h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
}
.article .dates {
  margin: 0 0 20px;
  color: var(--muted-2);
  font-size: 13px;
}
.article .intro {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  line-height: 1.85;
  color: var(--ink-soft);
  font-size: 14px;
}
.article h2 {
  margin: 32px 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.article h2:first-of-type { margin-top: 8px; }
.article p {
  margin: 0 0 12px;
  line-height: 1.9;
  color: var(--ink-soft);
  font-size: 15px;
}

/* —— Footer —— */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted-2);
  font-size: 12px;
}
.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--brand); }

.certs-section {
  padding-bottom: 8px;
}
.cert-marquee {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cert-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  padding: 18px 40px;
  animation: cert-scroll 28s linear infinite;
}
.cert-marquee:hover .cert-track {
  animation-play-state: paused;
}
.cert-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
  opacity: 0.92;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.cert-item:hover {
  opacity: 1;
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
}
.cert-logo {
  display: inline-flex;
  align-items: center;
  height: 36px;
}
.cert-logo img {
  height: 36px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.cert-name {
  font-size: 14px;
  font-weight: 650;
  color: #2c3c69;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
@keyframes cert-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.not-found {
  padding: 120px 0;
  text-align: center;
  background: var(--bg-soft);
}
.not-found h1 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
}
.not-found p { color: var(--muted); }

@media (max-width: 900px) {
  .quick,
  .product-grid,
  .doc-layout { grid-template-columns: 1fr; }
  .toc {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 28px; }
  .quick { margin-top: -24px; }
  .article { padding: 24px 18px 32px; }
  .article h1 { font-size: 22px; }
  .kind-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wrap,
  .site-header-inner,
  .site-footer-inner { padding: 0 16px; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* —— 移动端导航（腾讯风格） —— */
.privacy-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.privacy-nav-toggle svg { width: 22px; height: 22px; display: block; }

.privacy-mobile-bar {
  display: none;
}
@media (max-width: 900px) {
  .privacy-nav-toggle { display: inline-flex; }
  .header-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    z-index: 45;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 16px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(12px);
  }
  body.privacy-nav-open .header-nav { display: flex; }
  body.privacy-nav-open { overflow: hidden; }
  .header-nav a {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
  }
  .privacy-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    align-items: stretch;
    justify-content: space-around;
    padding: 0 max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
  }
  .privacy-mobile-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 50px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
  }
  .privacy-mobile-bar a.is-active { color: var(--brand); }
  .privacy-mobile-bar svg { width: 20px; height: 20px; }
}
