/* GPAway 协议中心 · 严格沿用主站 Liquid Glass 视觉、Times New Roman 英文规范与物理动效 */
body.terms-center-body,
body.terms-center-body button,
body.terms-center-body a,
body.terms-center-body code {
  font-family: "GPAway Times New Roman", "Times New Roman", "GPAway Song", SimSun, STSong, serif !important;
}
body.terms-center-body {
  margin: 0;
  min-height: 100vh;
  background: #f5f6f8;
  color: var(--ink, #2E3036);
  display: flex;
  flex-direction: column;
  position: relative;
}

.terms-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(245, 246, 248, 0.72);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(46, 48, 54, 0.06);
}

.terms-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.terms-logo-link:hover { opacity: 0.78; }
.terms-logo-img { height: 30px; width: auto; display: block; }

.terms-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--rim-control);
  color: var(--ink-strong, #22242A);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}
.terms-login-btn:hover { background: #ffffff; transform: translateY(-1px); }

.terms-shell {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 52px) clamp(20px, 5vw, 56px) 84px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.terms-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.terms-sidebar-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-secondary, rgba(46, 48, 54, 0.56));
}

.terms-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-nav-btn {
  appearance: none;
  text-align: left;
  padding: 13px 18px;
  border-radius: 18px;
  border: none !important;
  background: rgba(255, 255, 255, 0.62) !important;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--rim-control);
  color: var(--ink, #2E3036) !important;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.terms-nav-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: var(--rim-card-hover);
}

.terms-nav-btn:active { transform: scale(0.985); }

.terms-nav-btn.is-active {
  background: linear-gradient(160deg, rgba(64, 70, 82, 0.94) 0%, rgba(36, 40, 49, 0.98) 100%) !important;
  color: #ffffff !important;
  box-shadow: var(--rim-primary);
}

.terms-nav-title { font-size: 0.98rem; font-weight: 700; color: inherit; }
.terms-nav-sub { font-size: 0.78rem; opacity: 0.72; color: inherit; }

.terms-toc {
  padding-top: 16px;
  border-top: 1px solid rgba(46, 48, 54, 0.08);
  max-height: calc(100vh - 240px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.terms-toc::-webkit-scrollbar {
  display: none;
}
.terms-toc-title {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-secondary, rgba(46, 48, 54, 0.56));
}
.terms-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.terms-toc a {
  display: block;
  padding: 4px 6px 4px 0;
  font-size: 0.86rem;
  line-height: 1.48;
  color: rgba(46, 48, 54, 0.52);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.18s ease, font-weight 0.18s ease, padding-left 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.terms-toc a:hover { color: rgba(34, 36, 42, 0.85); padding-left: 2px; }
.terms-toc a.is-active {
  color: #14161a !important;
  font-weight: 700;
  padding-left: 3px;
}

.terms-content { min-width: 0; max-width: 820px; }

.terms-article { animation: gp-panel-enter 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
.terms-article[hidden] { display: none; }

@keyframes gp-panel-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.terms-anchor { display: block; position: relative; top: -92px; visibility: hidden; }

.terms-doc-header {
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(46, 48, 54, 0.08);
}
.terms-doc-kicker { margin: 0 0 8px; font-size: 0.82rem; color: var(--ink-secondary, rgba(46, 48, 54, 0.6)); }
.terms-doc-header h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 38px); line-height: 1.25; color: var(--ink-strong, #22242A); }
.terms-doc-meta { margin: 0; font-size: 0.88rem; color: var(--ink-secondary, rgba(46, 48, 54, 0.66)); }

/* 无黑边、纯 Liquid Glass 重点容器 */
.terms-callout,
.terms-highlight-box {
  margin: 18px 0 26px;
  padding: 20px 24px;
  border-radius: 20px;
  border: none;
  background: var(--glass-card, rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(20px) saturate(155%);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
  box-shadow: var(--rim-card);
  font-size: 0.95rem;
  line-height: 1.8;
}

.terms-section { margin-bottom: 38px; scroll-margin-top: 96px; }
.terms-section h2 { margin: 0 0 14px; font-size: 1.3rem; line-height: 1.38; color: var(--ink-strong, #22242A); }
.terms-section p { margin: 0 0 12px; font-size: 0.98rem; line-height: 1.84; }
.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.82; }
.terms-section a { color: var(--ink-strong, #22242A); text-decoration: underline; text-underline-offset: 3px; }
.terms-section code {
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(46, 48, 54, 0.06);
}

@media (max-width: 900px) {
  .terms-shell { grid-template-columns: 1fr; gap: 24px; }
  .terms-sidebar { position: static; }
  .terms-nav { flex-direction: row; }
  .terms-nav-btn { flex: 1; }
  .terms-toc { display: none; }
}
