/* 使用本地系统字体和品牌紫色，页面不依赖脚本或第三方资源。 */
:root {
  color-scheme: light dark;
  --page: #f7f6fa;
  --surface: #ffffff;
  --text: #282431;
  --muted: #635c70;
  --accent: #604594;
  --soft: #efebf7;
  --line: #ddd7e7;
  --focus: #8b4700;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--page); color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.75; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 2px; }
p { margin: 0 0 1.15rem; }
li + li { margin-top: .7rem; }
ul { padding-left: 1.4rem; }
h1, h2, h3 { line-height: 1.3; }
h2 { font-size: 1.4rem; letter-spacing: -.025em; }
h3 { margin: 1.8rem 0 .7rem; font-size: 1.075rem; }
main, .site-header, .site-footer { width: min(1120px, calc(100% - 5rem)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--text); font-size: 1.2rem; font-weight: 750; text-decoration: none; }
.brand-mark { width: 1.6rem; height: 1.7rem; position: relative; display: inline-block; flex-shrink: 0; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 1.05rem; height: 1.3rem; border: 2px solid var(--accent); border-radius: 3px; }
.brand-mark::before { top: 0; left: 0; }
.brand-mark::after { bottom: 0; right: 0; background: var(--page); }
.header-label { color: var(--muted); font-size: .85rem; }
.hero { padding: 4.25rem 0 2.5rem; max-width: 850px; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
h1 { margin: 0 0 1.5rem; font-size: clamp(2.4rem, 5.5vw, 4.25rem); line-height: 1.12; letter-spacing: -.055em; font-weight: 720; }
.intro { color: var(--muted); max-width: 680px; font-size: 1.12rem; }
.updated { margin-top: 1.75rem; font-size: .9rem; color: var(--muted); }
.identity { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; font-size: .85rem; margin: 1.6rem 0 0; }
.identity dt { color: var(--muted); font-size: .78rem; }
.identity dd { margin: .15rem 0 0; }
.summary { background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 1.45rem 1.75rem; margin-bottom: 3.5rem; }
.summary h2 { font-size: 1rem; margin: 0 0 .7rem; letter-spacing: 0; }
.summary ul { margin: 0; font-size: .95rem; max-width: 900px; }
.summary li + li { margin-top: .45rem; }
.policy-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 3.6rem; align-items: start; }
.contents { position: sticky; top: 2rem; font-size: .83rem; max-height: calc(100vh - 4rem); overflow-y: auto; padding: .2rem .5rem .7rem 0; }
.contents h2 { margin: 0 0 1.1rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.contents ol { margin: 0; padding-left: 1.4rem; }
.contents li { padding-left: .15rem; }
.contents li + li { margin-top: .62rem; }
.contents li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.contents a { display: inline-block; text-decoration: none; padding-block: .13rem; color: var(--muted); }
.contents a:hover { color: var(--accent); text-decoration: underline; }
.policy-body { min-width: 0; padding-bottom: 1.5rem; }
.policy-body section { padding-bottom: 2.35rem; margin-bottom: 2.35rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.policy-body section:last-child { border-bottom: 0; margin-bottom: 0; }
.policy-body h2 { margin: 0 0 1.25rem; }
.section-number { display: block; margin-bottom: .45rem; color: var(--accent); font-size: .75rem; letter-spacing: .08em; font-weight: 700; }
.policy-body section > :last-child { margin-bottom: 0; }
.security-section { background: var(--surface); padding: 1.75rem; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px; }
.retention-list { margin: 0; }
.retention-list div + div { margin-top: 1.5rem; }
.retention-list dt { font-weight: 700; margin-bottom: .4rem; }
.retention-list dd { margin: 0; }
address { font-style: normal; }
.site-footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2.5rem; font-size: .83rem; color: var(--muted); }
.skip-link { position: absolute; top: -10rem; left: 1rem; z-index: 10; background: var(--surface); padding: .6rem 1rem; }
.skip-link:focus { top: 1rem; }
.error-page { max-width: 700px; padding-block: 5rem; min-height: 65vh; }
.error-page h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }

/* 窄屏及放大字体时取消侧栏固定，保证正文和长包名自然换行。 */
@media (max-width: 850px) {
  main, .site-header, .site-footer { width: calc(100% - 2.5rem); }
  .policy-layout { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .contents { position: static; max-height: none; padding: 0 0 2rem; border-bottom: 1px solid var(--line); }
  .contents ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.3rem; row-gap: .35rem; }
  .contents li + li { margin-top: 0; }
  .hero { padding-top: 3rem; }
  .summary { margin-bottom: 2.5rem; }
}
@media (max-width: 480px) {
  .header-label { font-size: .75rem; }
  .site-header { padding-block: 1.2rem; }
  .hero { padding-top: 2.25rem; }
  .identity { gap: 1rem 1.5rem; }
  .identity .package { flex-basis: 100%; }
  .summary { padding: 1.1rem; }
  .contents ol { grid-template-columns: minmax(0, 1fr); }
  .contents a { padding-block: .25rem; }
  .security-section { padding: 1.25rem; }
  h2 { font-size: 1.3rem; }
}
@media (prefers-color-scheme: dark) {
  :root { --page: #19171e; --surface: #23202b; --text: #efecf5; --muted: #bfb7ce; --accent: #cbbbfa; --soft: #292333; --line: #433b50; --focus: #ffca80; }
}
/* 打印只保留完整正文和身份信息，不裁切固定侧栏。 */
@media print {
  :root { color-scheme: light; --page: #fff; --surface: #fff; --text: #000; --muted: #333; --accent: #333; --soft: #fff; --line: #aaa; }
  body { font-size: 10pt; line-height: 1.55; }
  main, .site-header, .site-footer { width: 100%; }
  .skip-link, .contents, .site-footer, .header-label { display: none; }
  .site-header { padding: 0 0 .5rem; }
  .hero { padding: 1rem 0; }
  h1 { font-size: 28pt; }
  h2 { font-size: 15pt; }
  h3 { font-size: 11pt; }
  .intro { font-size: 11pt; }
  .summary { margin-bottom: 1.5rem; }
  .policy-layout { display: block; }
  .policy-body section { margin-bottom: 1.3rem; padding-bottom: 1.3rem; }
  .security-section { padding: 1rem; border: 1px solid #aaa; }
  h2, h3, dt { break-after: avoid; }
  p, li, dd { orphans: 3; widows: 3; }
  a { color: #000; }
  @page { margin: 18mm; }
}
