:root {
  --ink: #070b14;
  --ink-2: #0b111e;
  --heading: #eaf1fa;
  --body: #9aa7bc;
  --muted: #5e6b82;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #0391e8;
  --bright: #35a8ff;
  --violet: #8b7cff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--bright);
}

/* ---------- 顶部导航：与官网深色导航同源 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header-inner {
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  display: block;
  height: 32px;
  width: auto;
}

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

.site-nav a {
  color: var(--body);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #fff;
}

.nav-login {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, #0391e8, #4632da);
  box-shadow: 0 6px 24px -8px rgba(3, 145, 232, 0.7);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- 页头：光斑 + 网格 + 渐变大标题 ---------- */
.container {
  flex: 1;
  width: 100%;
}

.page-header {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 56px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(680px 320px at 50% -20%, rgba(3, 145, 232, 0.22), transparent 70%),
    radial-gradient(520px 280px at 88% 10%, rgba(70, 50, 218, 0.18), transparent 70%);
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 68% 62% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 68% 62% at 50% 0%, #000 30%, transparent 100%);
  pointer-events: none;
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.title {
  color: var(--heading);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.subtitle {
  display: block;
  margin-top: 10px;
  color: var(--body);
  font-size: 14.5px;
}

.subtitle.effective {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--bright);
  font-size: 13.5px;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* ---------- 法务正文卡片 ---------- */
.scroll {
  width: 100%;
}

.privacy {
  max-width: 1120px;
  margin: 40px auto 72px;
  padding: 40px 44px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 90px -40px rgba(0, 0, 0, 0.8);
}

.section {
  margin: 0;
}

.h2 {
  margin: 34px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--bright);
  color: var(--heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.section > .h2:first-child,
.section > .legal-tabs + .h2 {
  margin-top: 0;
}

.p {
  margin-bottom: 14px;
  color: var(--body);
  font-size: 14.5px;
  line-height: 1.85;
}

.dl {
  margin-bottom: 18px;
}

.dt {
  margin-bottom: 6px;
  color: var(--heading);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
}

.dd {
  margin-bottom: 6px;
  color: var(--body);
  font-size: 14.5px;
  line-height: 1.85;
}

.sdk {
  margin-bottom: 18px;
}

.sdk-item {
  margin-bottom: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sdk-item .p {
  margin-bottom: 6px;
  font-size: 13.5px;
}

.sdk-item .link {
  margin-top: 8px;
}

.divider {
  height: 1px;
  margin: 28px 0 0;
  background: var(--line);
}

.link {
  display: inline-block;
  margin-top: 8px;
  color: var(--bright);
  font-size: 13.5px;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* ---------- 协议/隐私合并页的页签 ---------- */
.legal-tabs {
  display: flex;
  gap: 28px;
  margin: 0 0 26px;
  border-bottom: 1px solid var(--line);
}

.legal-tab {
  appearance: none;
  padding: 10px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.legal-tab.active {
  color: var(--bright);
  border-bottom-color: var(--bright);
}

.legal-panel {
  display: none;
}

.legal-panel.active {
  display: block;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #05080f;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand img {
  display: block;
  height: 30px;
  width: auto;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}

.footer-links a {
  color: var(--body);
  font-size: 13px;
  text-decoration: none;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

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

.footer-bottom a:hover {
  color: var(--bright);
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .site-header-inner {
    height: 64px;
    padding: 0 18px;
  }

  .nav-login {
    padding: 8px 14px;
    font-size: 12.5px;
  }

  .page-header {
    padding: 56px 18px 36px;
  }

  .subtitle {
    font-size: 13.5px;
  }

  .privacy {
    margin: 28px 14px 48px;
    padding: 24px 20px;
    border-radius: 16px;
  }

  .h2 {
    margin-top: 28px;
    font-size: 19px;
  }

  .p,
  .dd {
    font-size: 14px;
  }

  .dt {
    font-size: 15px;
  }

  .site-footer-inner {
    padding: 26px 18px 16px;
  }

  .footer-bottom {
    padding: 12px 18px 20px;
  }
}
