/* Pickr 官网 · 隐私政策与技术支持样式表（与首页极深色冷暖起伏光学毛玻璃设计语言统一） */

:root {
  color-scheme: dark;
  --bg: #04060a;
  --bg-tinted: rgba(255, 255, 255, 0.046);
  --card: rgba(255, 255, 255, 0.068);
  --glass-surface: linear-gradient(138deg, rgba(255, 255, 255, 0.078) 0%, rgba(255, 255, 255, 0.024) 52%, rgba(255, 255, 255, 0.048) 100%);
  --glass-border: rgba(255, 255, 255, 0.105);
  --glass-shadow: 0 24px 60px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 1px 0 0 rgba(255, 255, 255, 0.055);
  --fg: #f5f5f7;
  --muted: #b0b0b8;
  --rule: rgba(255, 255, 255, 0.085);
  --accent: #5eb0ff;
  --accent-strong: #0a84ff;
  --pill-bg: rgba(255, 255, 255, 0.08);
  --pill-hover: rgba(255, 255, 255, 0.14);
  --nav-bg: rgba(4, 6, 10, 0.68);
  --focus: #0a84ff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo",
    "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  padding: 0 24px 96px;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------- 全局深色光学底韵（与首页一致：极深谷底 #04060a + 冷暖峰谷起伏散景光斑） ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 460px at 18% 14%, rgba(28, 96, 218, 0.34) 0%, rgba(16, 52, 132, 0.16) 46%, transparent 72%),
    radial-gradient(circle 420px at 84% 22%, rgba(182, 94, 32, 0.28) 0%, rgba(108, 46, 16, 0.13) 46%, transparent 72%),
    radial-gradient(circle 520px at 52% 48%, rgba(18, 124, 142, 0.22) 0%, rgba(10, 62, 82, 0.1) 48%, transparent 74%),
    radial-gradient(circle 440px at 14% 78%, rgba(168, 84, 30, 0.25) 0%, rgba(96, 40, 14, 0.11) 46%, transparent 72%),
    radial-gradient(circle 480px at 82% 84%, rgba(40, 82, 198, 0.32) 0%, rgba(20, 42, 118, 0.15) 48%, transparent 74%);
  filter: blur(30px);
  -webkit-filter: blur(30px);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- 顶部 Apple 风格毛玻璃吸顶导航（与首页 .global-nav 统一） ---------- */
.site-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  margin-inline: calc(50% - 50vw);
  padding: 8px max(24px, calc(50vw - 460px));
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--fg);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 6.5px;
  background: url("assets/icon-256.webp") center / cover no-repeat;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}

.wordmark:hover {
  color: var(--fg);
  opacity: 0.85;
}

/* ---------- 语言选择器胶囊（与首页 .lang-pill 统一） ---------- */
.language-picker {
  display: none;
  position: relative;
}

.js .language-picker {
  display: inline-flex;
  align-items: center;
}

.language-picker select {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  padding: 0 30px 0 14px;
  border: 1px solid var(--glass-border);
  border-radius: 980px;
  background: var(--pill-bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.language-picker select:hover {
  background: var(--pill-hover);
}

.language-picker::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.language-picker select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

.language-panel {
  padding-top: 1px;
}

/* 没有 JS 时各语言会全部堆在一起，靠这条分隔线区分。 */
html:not(.js) .language-panel + .language-panel {
  margin-top: 96px;
  border-top: 2px solid var(--rule);
}

.js .language-panel {
  display: none;
}

.js .language-panel.is-active {
  display: block;
}

/* ---------- 页面头部与 Bento 深色毛玻璃导语横幅 ---------- */
header {
  text-align: center;
  padding: 56px 0 28px;
}

h1 {
  margin: 0 0 16px;
  max-width: 100%;
  font-family: var(--font);
  font-size: clamp(36px, 5.2vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: var(--fg);
  text-wrap: balance;
}

h1:lang(zh-Hans),
h1:lang(zh-Hant),
h1:lang(zh-HK),
h1:lang(ja) {
  line-break: strict;
  letter-spacing: -0.02em;
}

.updated {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 6px 15px;
  border-radius: 980px;
  background: var(--pill-bg);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lede {
  max-width: 100%;
  margin: 0 0 36px;
  padding: 24px 32px;
  background: rgba(18, 22, 30, 0.88);
  border: 1px solid var(--glass-border);
  box-shadow: none;
  border-radius: 24px;
  font-family: var(--font);
  font-size: clamp(17px, 1.9vw, 19.5px);
  font-weight: 500;
  line-height: 1.58;
  color: var(--fg);
  text-align: center;
  text-wrap: balance;
}

/* ---------- 章节标题与正文卡片化层次 ---------- */
h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 40px 0 14px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--font);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--fg);
}

.language-panel > h2:first-of-type {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 0;
}

h2::before {
  content: "";
  width: 5px;
  height: 18px;
  border-radius: 99px;
  background: var(--accent);
  flex-shrink: 0;
}

h3 {
  margin: 28px 0 10px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

p,
ul {
  max-width: 100%;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

ul {
  margin: 14px 0 18px;
  padding: 20px 24px 20px 42px;
  background: rgba(18, 22, 30, 0.88);
  border: 1px solid var(--glass-border);
  box-shadow: none;
  border-radius: 20px;
}

li {
  margin-bottom: 10px;
  color: var(--fg);
  font-size: 15.5px;
  line-height: 1.62;
}

li:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #8cc8ff;
  text-decoration: underline;
}

/* ---------- 提示框（Bento 深海蓝微光毛玻璃卡片） ---------- */
.note {
  max-width: 100%;
  background: linear-gradient(138deg, rgba(10, 132, 255, 0.16) 0%, rgba(10, 132, 255, 0.06) 100%);
  border: 1px solid rgba(94, 176, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 20px 24px;
  margin: 22px 0;
}

.note p {
  color: var(--fg);
  font-size: 15.5px;
  font-weight: 500;
}

.note p:last-child {
  margin-bottom: 0;
}

.divider {
  margin: 64px 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

/* ---------- 页脚（与首页 .site-footer 统一） ---------- */
footer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

footer a {
  color: var(--muted);
  font-weight: 500;
}

footer a:hover {
  color: var(--accent);
}

code {
  padding: 0.14em 0.42em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--fg);
  font: 0.88em/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  body {
    padding-inline: 20px;
  }

  .site-bar {
    padding-inline: 20px;
  }

  .language-picker select {
    max-width: 190px;
    text-overflow: ellipsis;
  }

  header {
    padding-top: 40px;
    padding-bottom: 20px;
  }

  .lede {
    padding: 20px;
    text-align: left;
  }

  h1 {
    font-size: clamp(30px, 9vw, 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* Long-form pages prioritize reading over decorative containers. */
ul { background: none; border: 0; box-shadow: none; padding: 0 0 0 24px; }
body::before { opacity: 0.45; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  body::before { display: none; }
  .site-bar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  :root { --muted: #d1d1d6; --glass-border: #85858d; --rule: #85858d; }
}
