@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/Manrope-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/Manrope-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/SpaceGrotesk-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/InstrumentSans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --ink: #171a1d;
  --ink-2: #4f5862;
  --ink-3: #7b848e;
  --line: #e2e7ec;
  --accent: #2273a6;
  --accent-soft: #e8f3fa;
  --orange: #f27a2a;
  --font-display: 'Space Grotesk', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: 'Manrope', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-label: 'Instrument Sans', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(760px 420px at 92% -8%, rgba(34, 115, 166, 0.08), transparent 66%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
.container {
  width: min(100% - 40px, 860px);
  margin-inline: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(242, 122, 42, 0.22);
}
.brand-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.brand-sub {
  margin-top: 2px;
  font-family: var(--font-label);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}
.back:hover {
  color: var(--accent);
}
.hero {
  padding: 34px 0 22px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
h1 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.meta {
  margin: 0;
  font-family: var(--font-label);
  font-size: 12.5px;
  color: var(--ink-3);
}
.summary {
  margin-top: 20px;
  padding: 15px 18px;
  border: 1px solid #d5e6f0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #2c5368;
  font-size: 13.5px;
  line-height: 1.75;
}
.card {
  margin-top: 18px;
  padding: 6px 30px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(20, 35, 55, 0.05);
}
section {
  padding-top: 24px;
}
section + section {
  border-top: 1px solid #eef1f4;
}
h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
p:last-child {
  margin-bottom: 0;
}
strong {
  color: var(--ink);
  font-weight: 600;
}
.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f7f9fb;
  border: 1px solid #e8edf2;
}
.contact div {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.contact span {
  display: block;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 50px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}
.page-footer a {
  color: var(--ink-2);
}
.footer-links {
  display: flex;
  gap: 14px;
}
@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 860px);
  }
  .card {
    padding: 4px 18px 20px;
    border-radius: 14px;
  }
  h1 {
    font-size: 30px;
  }
  h2 {
    font-size: 16px;
  }
  p {
    font-size: 14px;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding-top: 16px;
  }
  .brand-sub {
    display: none;
  }
}
@media print {
  body {
    background: #fff;
  }
  .topbar,
  .page-footer,
  .back {
    display: none;
  }
  .card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}

/* ---------- 协议文档（legal/*）：目录、表格、提示块 ---------- */
.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
}
.doc-toc a {
  color: var(--ink-2);
  text-decoration: none;
}
.doc-toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.card ul {
  margin: 10px 0;
  padding-left: 22px;
}
.card li {
  margin: 6px 0;
}
.table-wrap {
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
/* 窄屏不压缩列宽，改为在 .table-wrap 内横向滚动，保证可读 */
.table-wrap table {
  min-width: 620px;
}
th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  background: #fafbfc;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
.note {
  margin: 16px 0;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- 窄屏：表格折叠为「键: 值」块（放在最后以覆盖基础规则） ---------- */
@media (max-width: 600px) {
  .table-wrap {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .table-wrap table {
    min-width: 0;
    font-size: 13px;
  }
  .table-wrap thead {
    display: none;
  }
  .table-wrap tr {
    display: block;
    margin: 0 0 10px;
    padding: 4px 0;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  .table-wrap td {
    display: flex;
    gap: 10px;
    padding: 6px 12px;
    border-bottom: 0;
  }
  .table-wrap td::before {
    content: attr(data-label);
    flex: 0 0 78px;
    color: var(--ink-3);
    font-size: 12px;
    line-height: 1.7;
  }
}
