/* GPAway 协议中心 · 独立全屏双栏规范样式 */
body.terms-center-body {
  margin: 0;
  min-height: 100vh;
  background: #f5f6f8;
  color: var(--ink, #2E3036);
  font-family: var(--font-editorial, "GPAway Times New Roman", "GPAway Song", SimSun, serif);
  display: flex;
  flex-direction: column;
}
.terms-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(245, 246, 248, 0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(46, 48, 54, 0.08);
}
.terms-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.terms-logo-img { height: 30px; width: auto; display: block; }
.terms-topbar-meta { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--ink-secondary, rgba(46, 48, 54, 0.66)); flex-wrap: wrap; }
.terms-shell {
  flex: 1; width: 100%; max-width: 1320px; margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 48px) 72px;
  box-sizing: border-box; display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.terms-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }
.terms-sidebar-kicker { margin: 0; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-secondary, rgba(46, 48, 54, 0.66)); }
.terms-nav { display: flex; flex-direction: column; gap: 8px; }
.terms-nav-btn {
  appearance: none; text-align: left; padding: 13px 16px; border-radius: 14px;
  border: 1px solid rgba(46, 48, 54, 0.1); background: rgba(255, 255, 255, 0.7);
  color: var(--ink, #2E3036); font-family: inherit; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.terms-nav-btn:hover { background: #ffffff; border-color: rgba(46, 48, 54, 0.22); }
.terms-nav-btn.is-active { background: #22242A; border-color: #22242A; color: #ffffff; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1); }
.terms-nav-title { font-size: 1rem; font-weight: 700; }
.terms-nav-sub { font-size: 0.78rem; opacity: 0.72; }
.terms-toc { padding-top: 16px; border-top: 1px solid rgba(46, 48, 54, 0.08); }
.terms-toc-title { margin: 0 0 10px; font-size: 0.82rem; font-weight: 700; color: var(--ink-secondary, rgba(46, 48, 54, 0.66)); }
.terms-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.terms-toc a { display: block; padding: 4px 0; font-size: 0.88rem; line-height: 1.45; color: var(--ink-secondary, rgba(46, 48, 54, 0.72)); text-decoration: none; }
.terms-toc a:hover { color: var(--ink-strong, #22242A); }
.terms-sidebar-note { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(46, 48, 54, 0.08); background: rgba(255, 255, 255, 0.55); font-size: 0.82rem; line-height: 1.65; color: var(--ink-secondary, rgba(46, 48, 54, 0.72)); }
.terms-content { min-width: 0; max-width: 820px; }
.terms-article[hidden] { display: none; }
.terms-anchor { display: block; position: relative; top: -88px; visibility: hidden; }
.terms-doc-header { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid rgba(46, 48, 54, 0.1); }
.terms-doc-kicker { margin: 0 0 8px; font-size: 0.84rem; color: var(--ink-secondary, rgba(46, 48, 54, 0.66)); }
.terms-doc-header h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.25; color: var(--ink-strong, #22242A); }
.terms-doc-meta { margin: 0; font-size: 0.9rem; color: var(--ink-secondary, rgba(46, 48, 54, 0.72)); }
.terms-callout { margin: 0 0 32px; padding: 18px 22px; border-radius: 14px; border: 1px solid rgba(46, 48, 54, 0.12); background: #ffffff; font-size: 0.95rem; line-height: 1.75; }
.terms-highlight-box { margin: 16px 0 20px; padding: 16px 20px; border-radius: 12px; border-left: 3px solid #22242A; background: rgba(255, 255, 255, 0.85); border-top: 1px solid rgba(46, 48, 54, 0.08); border-right: 1px solid rgba(46, 48, 54, 0.08); border-bottom: 1px solid rgba(46, 48, 54, 0.08); font-size: 0.95rem; line-height: 1.75; }
.terms-section { margin-bottom: 36px; scroll-margin-top: 96px; }
.terms-section h2 { margin: 0 0 14px; font-size: 1.32rem; line-height: 1.38; color: var(--ink-strong, #22242A); }
.terms-section p { margin: 0 0 12px; font-size: 0.98rem; line-height: 1.82; }
.terms-section ul { margin: 10px 0 14px; padding-inline-start: 1.4em; }
.terms-section li { margin-bottom: 8px; font-size: 0.98rem; line-height: 1.8; }
.terms-section a { color: var(--ink-strong, #22242A); text-decoration: underline; text-underline-offset: 3px; }
.terms-section code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: rgba(46, 48, 54, 0.06); }
.terms-footer { border-top: 1px solid rgba(46, 48, 54, 0.08); padding: 24px clamp(20px, 4vw, 48px); text-align: center; font-size: 0.85rem; color: var(--ink-secondary, rgba(46, 48, 54, 0.66)); line-height: 1.8; }
.terms-footer p { margin: 0; }
.terms-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .terms-shell { grid-template-columns: 1fr; gap: 28px; }
  .terms-sidebar { position: static; }
  .terms-nav { flex-direction: row; }
  .terms-nav-btn { flex: 1; }
  .terms-toc { display: none; }
}
