:root {
  --ink: #173026;
  --muted: #5d7268;
  --line: #e3ece7;
  --paper: #f7f7f6;
  --green: #1a8f45;
  --green-d: #146b34;
  --green-s: #eef6f1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-d); }
a:hover { text-decoration: none; }

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 24px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.legal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.legal-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.legal-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover,
.legal-links a.is-on { color: var(--green-d); }

.user-item-wrap { padding: 28px 20px 72px; }
.user-item-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 40px 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow-x: auto;
}
.user-item-content h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -.3px;
}
.sensitive-box {
  margin: 22px 0 28px;
  padding: 18px 20px 8px;
  background: #fff1f0;
  border: 3px solid #cf1322;
  border-radius: 12px;
}
.sensitive-box .sensitive-title {
  margin: 0 0 12px;
  color: #cf1322;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
}
.sensitive-box .sensitive-name {
  margin: 14px 0 6px;
  color: #cf1322;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}
.sensitive-box p {
  color: #1a1a1a;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
}
.dates {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.user-item-content h3,
.user-item-content h5 {
  margin: 32px 0 12px;
  font-size: 18px;
  line-height: 1.4;
}
.user-item-content p {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
  word-break: normal;
}
.user-item-content b { font-weight: 700; }

.user-item-content table {
  width: 100%;
  min-width: 860px;
  margin: 16px 0 24px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.6;
}
.user-item-content tr:first-child td {
  background: var(--green-s);
  font-weight: 700;
  color: var(--green-d);
}
.user-item-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.sdk-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 28px;
}
.sdk-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.sdk-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--green-s);
  border-radius: 14px 14px 0 0;
}
.sdk-item h4 {
  margin: 0;
  min-width: 0;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.sdk-tag {
  flex-shrink: 0;
  margin-top: 1px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--green-d);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
}
.sdk-item dl { margin: 0; }
.sdk-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 8px 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
.sdk-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.sdk-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.sdk-row a { word-break: break-all; }

.legal-foot {
  padding: 0 20px 36px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.legal-foot a { color: var(--muted); text-decoration: none; }
.legal-foot a:hover { color: var(--ink); text-decoration: underline; }
.legal-foot-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.product-recommend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  max-width: 960px;
  margin: 16px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.product-recommend span { font-weight: 700; }
.product-recommend a {
  color: var(--muted);
  white-space: nowrap;
}
.product-recommend a:hover { color: var(--green-d); text-decoration: none; }

.sitemap-list { margin: 8px 0 0; padding: 0; list-style: none; }
.sitemap-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.sitemap-list a { font-weight: 700; text-decoration: none; }
.sitemap-list a:hover { text-decoration: underline; }
.sitemap-list span { display: block; color: var(--muted); font-size: 13px; }
.user-item-content h2 {
  margin: 28px 0 12px;
  font-size: 18px;
  line-height: 1.4;
}

.dock {
  position: fixed;
  right: 20px;
  bottom: 28px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dock-btn {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #fff;
  color: var(--green-d);
  box-shadow: 0 10px 24px rgba(18, 58, 36, 0.16);
}
.dock-btn svg { width: 22px; height: 22px; display: block; }
.dock-btn:hover, .dock-btn[aria-expanded="true"] { background: var(--green); color: #fff; }
.dock-pop {
  position: absolute;
  right: 62px;
  bottom: 0;
  width: 176px;
  padding: 14px 14px 12px;
  background: #fff;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(18, 58, 36, 0.16);
}
.dock-pop[hidden] { display: none; }
.dock-pop img { width: 128px; height: 128px; margin: 0 auto 8px; border-radius: 8px; }
.dock-pop p { margin: 0; font-size: 13px; color: var(--muted); }

@media (max-width: 720px) {
  .legal-nav { height: auto; padding: 12px 16px; flex-wrap: wrap; }
  .legal-links { gap: 12px; font-size: 13px; }
  .user-item-wrap { padding: 16px 12px 48px; }
  .user-item-content { padding: 24px 16px 32px; border-radius: 16px; }
  .user-item-content h1 { font-size: 26px; }
  .sdk-item header { flex-wrap: wrap; }
  .sdk-row { grid-template-columns: 1fr; gap: 2px; }
  .dock { right: 12px; bottom: 16px; }
  .dock-pop { right: 60px; }
}
