/* 协议 / 隐私 / 支持页：沿用官网的纸面与细线版式 */

body {
  background: var(--paper);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) 0 clamp(56px, 7vw, 88px);
}

/* 页头保持左侧对齐，和官网一致 */
.site-header .brand {
  margin: 0;
}

/* 文档标题区 */
.brand {
  display: block;
  margin: 0 0 clamp(32px, 4vw, 48px);
  text-align: left;
}

.brand .name {
  display: none;
}

.brand .kicker {
  display: block;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.brand h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.brand p.lead,
.brand .meta {
  max-width: 48ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.brand .meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

/* 正文：以细线分节，不做卡片 */
.card {
  margin: 0 0 clamp(30px, 4vw, 42px);
  padding: clamp(22px, 3vw, 28px) 0 0;
  border-top: 1px solid var(--hair);
  background: none;
  border-radius: 0;
}

.card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card h3 {
  margin: 1.2rem 0 0.5rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.88;
}

.card p + p {
  margin-top: 0.7rem;
}

.card ul,
.card ol {
  padding-left: 1.2rem;
}

.card li {
  margin-bottom: 0.32rem;
}

.card strong {
  color: var(--ink);
  font-weight: 600;
}

.card a,
.wrap a {
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(78, 51, 224, 0.28);
}

.card a:hover,
.wrap a:hover {
  border-bottom-color: var(--accent-ink);
}

.en {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--hair-2);
}

.en p {
  color: var(--muted-2);
  font-size: 0.86rem;
  line-height: 1.78;
}

/* 联系按钮 */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
}

.contact a {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 1.2em;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.22s ease;
}

.contact a:hover {
  background: var(--accent);
}

.contact .hint,
.note {
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* 折叠问答 */
details {
  border-top: 1px solid var(--hair);
  padding: 0.9rem 0;
}

details:first-of-type {
  border-top: none;
  padding-top: 0.1rem;
}

details:last-of-type {
  padding-bottom: 0.1rem;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 500;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

details p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.85;
}

@media (max-width: 520px) {
  .brand h1 {
    font-size: 1.9rem;
  }

  .contact {
    align-items: stretch;
    flex-direction: column;
  }

  .contact a {
    justify-content: center;
  }
}
