/* ============================================================
   AdoX Platform — 统一设计系统
   博客社区 · 产品 · 官方知识库 · 个人知识库
   浅色 / 深色主题共用一套 Design Tokens
   ============================================================ */

:root,
html[data-theme="light"] {
  color-scheme: light;
  --pt-bg: #fbfbfd;
  --pt-bg-soft: #f5f5f7;
  --pt-surface: #ffffff;
  --pt-surface-2: #f5f5f7;
  --pt-elevated: #ffffff;
  --pt-ink: #1d1d1f;
  --pt-ink-soft: #424245;
  --pt-muted: #6e6e73;
  --pt-faint: #86868b;
  --pt-line: #e5e5ea;
  --pt-line-soft: rgba(16, 21, 18, .07);
  --pt-line-strong: #d2d2d7;
  --pt-accent: #1f6b45;
  --pt-accent-strong: #174c32;
  --pt-accent-soft: rgba(31, 107, 69, .08);
  --pt-lime: #d8ff5a;
  --pt-lime-ink: #101512;
  --pt-glow: rgba(216, 255, 90, .22);
  --pt-shadow: 0 30px 70px -46px rgba(16, 21, 18, .38);
  --pt-topbar: rgba(251, 251, 253, .78);
  --pt-code-bg: #f5f5f7;
  --pt-danger: #c73a2c;

  /* 兼容沿用 site.css 的旧页面 */
  --paper: #fbfbfd;
  --paper-2: #f5f5f7;
  --paper-3: #fafafc;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #e5e5ea;
  --line-strong: #d2d2d7;
  --accent: #1f6b45;
  --accent-strong: #174c32;
  --accent-soft: rgba(31, 107, 69, .08);
  --lime: #d8ff5a;
  --lime-soft: rgba(216, 255, 90, .22);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --pt-bg: #0b0f0c;
  --pt-bg-soft: #0e1410;
  --pt-surface: #111713;
  --pt-surface-2: #16201a;
  --pt-elevated: #17221b;
  --pt-ink: #f2f7f3;
  --pt-ink-soft: #d2dfd5;
  --pt-muted: #a8b9ac;
  --pt-faint: #82988b;
  --pt-line: #263b2c;
  --pt-line-soft: rgba(216, 255, 90, .09);
  --pt-line-strong: #35563f;
  --pt-accent: #78d99c;
  --pt-accent-strong: #a5e9b7;
  --pt-accent-soft: rgba(120, 217, 156, .12);
  --pt-lime: #d8ff5a;
  --pt-lime-ink: #101512;
  --pt-glow: rgba(120, 217, 156, .16);
  --pt-shadow: 0 30px 70px -40px rgba(0, 0, 0, .7);
  --pt-topbar: rgba(11, 15, 12, .76);
  --pt-code-bg: #0d1510;
  --pt-danger: #ff8a7a;

  --paper: #0b0f0c;
  --paper-2: #111713;
  --paper-3: #0e1410;
  --surface: #111713;
  --ink: #f2f7f3;
  --ink-soft: #d2dfd5;
  --muted: #a8b9ac;
  --faint: #82988b;
  --line: #263b2c;
  --line-strong: #35563f;
  --accent: #78d99c;
  --accent-strong: #a5e9b7;
  --accent-soft: rgba(120, 217, 156, .12);
  --lime: #d8ff5a;
  --lime-soft: rgba(216, 255, 90, .14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--pt-bg);
  color: var(--pt-ink);
  font-family: "SF Pro Display", "SF Pro Text", "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s ease, color .4s ease;
}
h1, h2, h3, h4, p, dl, dd, ol, ul { margin-top: 0; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--pt-accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--pt-accent-strong); }
::selection { background: rgba(216, 255, 90, .5); color: var(--pt-lime-ink); }
:focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 10px; z-index: 300;
  padding: 10px 14px; border-radius: 10px;
  background: var(--pt-ink); color: var(--pt-bg); font-size: 12px;
}
.skip-link:focus { left: 12px; color: var(--pt-bg); }

/* ---------- 顶栏 ---------- */
.pt-topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: clamp(10px, 2vw, 28px);
  min-height: 64px;
  padding: 10px max(22px, calc((100vw - 1240px) / 2));
  background: var(--pt-topbar);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background-color .3s ease, border-color .3s ease;
}
.pt-topbar.is-scrolled { border-bottom-color: var(--pt-line); }
.pt-brand { display: flex; align-items: center; flex: 0 0 auto; }
.pt-lockup { display: block; height: 27px; width: auto; }
html[data-theme="dark"] .pt-lockup,
html[data-theme="dark"] .pt-footer-logo,
html[data-theme="dark"] .pt-brand img { filter: brightness(0) invert(1); }
.pt-nav {
  display: flex; align-items: center; gap: 2px;
  margin-left: clamp(2px, 1.4vw, 18px); margin-right: auto;
}
.pt-nav > a {
  padding: 8px 12px; border-radius: 999px;
  color: var(--pt-muted); font-size: 13px; font-weight: 500;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}
.pt-nav > a:hover { color: var(--pt-ink); background: var(--pt-surface-2); }
.pt-nav > a[aria-current="page"] {
  color: var(--pt-ink); background: var(--pt-surface-2);
  box-shadow: inset 0 -2px 0 var(--pt-lime);
}
.pt-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pt-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--pt-ink);
  transition: background-color .18s ease, transform .18s ease;
}
.pt-icon:hover { background: var(--pt-surface-2); }
.pt-icon:active { transform: scale(.94); }
.pt-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pt-menu { position: relative; }
.pt-popover {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120;
  min-width: 190px; padding: 8px;
  border: 1px solid var(--pt-line); border-radius: 16px;
  background: var(--pt-elevated); color: var(--pt-ink);
  box-shadow: 0 28px 70px -28px rgba(16, 21, 18, .4);
  animation: pt-pop .18s cubic-bezier(.2, .75, .25, 1) both;
}
@keyframes pt-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.pt-popover button,
.pt-popover a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 10px 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--pt-ink-soft);
  font-size: 13px; text-align: left;
}
.pt-popover button:hover,
.pt-popover a:hover { background: var(--pt-surface-2); color: var(--pt-ink); }
.pt-popover [aria-checked="true"] { color: var(--pt-ink); font-weight: 600; }
.pt-popover [aria-checked="true"]::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--pt-lime); box-shadow: 0 0 0 1px var(--pt-accent);
}
.pt-popover-title {
  padding: 10px 12px 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--pt-line);
  color: var(--pt-faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.pt-popover-note { padding: 18px 12px; color: var(--pt-muted); font-size: 12.5px; line-height: 1.7; }
.pt-auth { display: flex; align-items: center; gap: 6px; margin-left: 2px; }
.pt-login {
  display: inline-flex; align-items: center; padding: 9px 18px;
  border-radius: 999px; background: var(--pt-ink); color: var(--pt-bg);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pt-login:hover { background: var(--pt-accent); color: #fff; }
html[data-theme="dark"] .pt-login { color: #101512; }
html[data-theme="dark"] .pt-login:hover { background: var(--pt-lime); color: #101512; }
.pt-menu-toggle { display: none; }

/* 账号菜单（复用 account-menu.js） */
.pt-auth .account-menu summary {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: transparent; color: var(--pt-ink);
  cursor: pointer; list-style: none;
}
.pt-auth .account-menu summary::-webkit-details-marker { display: none; }
.pt-auth .account-menu summary:hover { background: var(--pt-surface-2); }
.pt-auth .account-menu summary svg { width: 20px; height: 20px; }
.pt-auth .account-menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 130;
  display: flex; flex-direction: column; min-width: 224px; padding: 8px;
  border: 1px solid var(--pt-line); border-radius: 16px;
  background: var(--pt-elevated); box-shadow: 0 28px 70px -28px rgba(16, 21, 18, .4);
}
.pt-auth .account-menu-panel strong {
  padding: 10px 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--pt-line);
  color: var(--pt-ink); font-size: 13px;
}
.pt-auth .account-menu-panel a,
.pt-auth .account-menu-panel button {
  display: block; width: 100%; padding: 10px 12px;
  border: 0; border-radius: 9px; background: transparent;
  color: var(--pt-ink-soft); font-size: 13px; text-align: left;
}
.pt-auth .account-menu-panel a:hover,
.pt-auth .account-menu-panel button:hover { background: var(--pt-surface-2); color: var(--pt-ink); }
.pt-auth .saved-accounts { border-top: 1px solid var(--pt-line); }
.pt-auth .saved-accounts > span { padding: 10px 12px 2px; color: var(--pt-faint); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 搜索层 ---------- */
.pt-search-layer {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 20px 40px;
  background: rgba(10, 14, 11, .42);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
html[data-theme="dark"] .pt-search-layer { background: rgba(0, 0, 0, .6); }
.pt-search-box {
  width: min(100%, 680px); overflow: hidden;
  border: 1px solid var(--pt-line); border-radius: 20px;
  background: var(--pt-elevated);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .55);
  animation: pt-pop .2s cubic-bezier(.2, .75, .25, 1) both;
}
.pt-search-form { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--pt-line); }
.pt-search-form svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--pt-faint); stroke-width: 1.6; stroke-linecap: round; }
.pt-search-form input {
  flex: 1; min-width: 0; padding: 4px 0; border: 0; outline: 0;
  background: transparent; color: var(--pt-ink); font-size: 17px;
}
.pt-search-form kbd {
  padding: 3px 7px; border: 1px solid var(--pt-line); border-radius: 6px;
  color: var(--pt-faint); font-family: inherit; font-size: 11px;
}
.pt-search-results { max-height: min(52vh, 430px); overflow-y: auto; padding: 8px; }
.pt-search-result {
  display: flex; flex-direction: column; gap: 4px;
  padding: 11px 12px; border-radius: 10px; color: var(--pt-ink);
}
.pt-search-result:hover { background: var(--pt-surface-2); color: var(--pt-ink); }
.pt-search-result strong { font-size: 14px; font-weight: 600; }
.pt-search-result span { color: var(--pt-muted); font-size: 12.5px; line-height: 1.55; }
.pt-search-result em { color: var(--pt-faint); font-size: 10.5px; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.pt-search-empty { padding: 30px 16px 36px; color: var(--pt-muted); font-size: 13.5px; text-align: center; }

/* ---------- 通用组件 ---------- */
.pt-shell { width: min(100% - 48px, 1200px); margin: 0 auto; }
.pt-main { min-height: calc(100vh - 64px); }
.pt-eyebrow {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 14px; color: var(--pt-faint);
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.pt-eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--pt-lime); box-shadow: 0 0 0 1px var(--pt-accent);
}
.pt-page-head { padding: clamp(42px, 6vw, 78px) 0 clamp(26px, 4vw, 40px); }
.pt-page-head h1 {
  margin: 0 0 16px; max-width: 18ch;
  font-size: clamp(38px, 5.4vw, 68px); font-weight: 650;
  line-height: 1.05; letter-spacing: -.045em;
}
.pt-page-head .pt-lead {
  max-width: 58ch; margin: 0; color: var(--pt-muted);
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.8;
}
.pt-head-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1px solid var(--pt-line-strong); border-radius: 999px;
  background: transparent; color: var(--pt-ink);
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.pt-btn:hover { border-color: var(--pt-ink); color: var(--pt-ink); transform: translateY(-1px); }
.pt-btn.primary { border-color: var(--pt-ink); background: var(--pt-ink); color: var(--pt-bg); }
.pt-btn.primary:hover { border-color: var(--pt-accent); background: var(--pt-accent); color: #fff; }
.pt-btn.lime { border-color: var(--pt-lime); background: var(--pt-lime); color: var(--pt-lime-ink); }
.pt-btn.lime:hover { background: #c8f23f; border-color: #c8f23f; color: var(--pt-lime-ink); }
.pt-btn.ghost { border-color: var(--pt-line); background: var(--pt-surface); }
.pt-btn.ghost:hover { border-color: var(--pt-line-strong); background: var(--pt-surface-2); }
.pt-btn.danger { border-color: rgba(199, 58, 44, .35); color: var(--pt-danger); }
.pt-btn.danger:hover { border-color: var(--pt-danger); background: rgba(199, 58, 44, .08); color: var(--pt-danger); }
.pt-btn.small { padding: 7px 13px; font-size: 12px; }
.pt-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.pt-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pt-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border: 1px solid var(--pt-line); border-radius: 999px;
  color: var(--pt-muted); font-size: 10.5px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.pt-chip.official { border-color: rgba(16, 21, 18, .2); background: var(--pt-lime); color: var(--pt-lime-ink); }
.pt-chip.featured { border-color: var(--pt-line-strong); background: var(--pt-surface-2); color: var(--pt-ink); }
.pt-chip.community { background: transparent; }
.pt-chip.live { color: var(--pt-accent); border-color: rgba(31, 107, 69, .3); }
.pt-chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pt-lime); box-shadow: 0 0 0 1px var(--pt-accent); }
.pt-chip.dev { color: var(--pt-faint); }

.pt-avatar {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--pt-surface-2); color: var(--pt-ink);
  border: 1px solid var(--pt-line);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.pt-avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.pt-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-author-meta { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.pt-author-meta strong { color: var(--pt-ink); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-author-meta span { color: var(--pt-faint); font-size: 11.5px; }

.pt-section { padding: clamp(34px, 5vw, 58px) 0 0; }
.pt-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding-bottom: 16px; margin-bottom: 22px;
  border-bottom: 1px solid var(--pt-line);
}
.pt-section-head h2 { margin: 0; font-size: clamp(24px, 2.8vw, 34px); font-weight: 650; letter-spacing: -.035em; line-height: 1.1; }
.pt-section-head .pt-section-label { display: block; margin-bottom: 8px; color: var(--pt-faint); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.pt-section-head p { margin: 0 0 2px; color: var(--pt-faint); font-size: 12.5px; }
.pt-section-count { color: var(--pt-faint); font-size: 12px; font-variant-numeric: tabular-nums; }

.pt-card {
  border: 1px solid var(--pt-line); border-radius: 20px;
  background: var(--pt-surface);
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
.pt-card:hover { border-color: var(--pt-line-strong); box-shadow: var(--pt-shadow); transform: translateY(-2px); }

.pt-empty {
  padding: 46px 24px;
  border: 1px dashed var(--pt-line-strong); border-radius: 18px;
  color: var(--pt-muted); font-size: 13.5px; line-height: 1.8; text-align: center;
  background: color-mix(in srgb, var(--pt-surface) 65%, transparent);
}
.pt-notice {
  padding: 12px 16px; border: 1px solid var(--pt-line);
  border-left: 3px solid var(--pt-lime);
  border-radius: 0 12px 12px 0;
  background: var(--pt-surface); color: var(--pt-muted); font-size: 12.5px; line-height: 1.7;
}

/* ---------- 博客社区 ---------- */
.pt-blog-hero {
  position: relative; overflow: hidden;
  padding: clamp(54px, 8vw, 96px) 0 clamp(30px, 4vw, 46px);
}
.pt-blog-hero::after {
  content: ""; position: absolute; right: -12%; top: -40%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, var(--pt-glow), transparent 68%);
  pointer-events: none;
}
.pt-blog-hero .pt-page-head { position: relative; z-index: 1; padding-bottom: 0; }
.pt-stats { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 24px; color: var(--pt-faint); font-size: 12px; }
.pt-stats strong { margin-right: 5px; color: var(--pt-ink); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.pt-official-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pt-post-card {
  position: relative; display: flex; flex-direction: column;
  overflow: hidden; color: var(--pt-ink);
}
.pt-post-card:hover { color: var(--pt-ink); }
.pt-cover { display: block; aspect-ratio: 16 / 8.4; overflow: hidden; background: linear-gradient(140deg, var(--pt-surface-2), var(--pt-surface)); }
.pt-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pt-post-card:hover .pt-cover img { transform: scale(1.03); }
.pt-cover-fallback { display: grid; place-items: center; height: 100%; color: var(--pt-faint); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.pt-post-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.pt-post-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pt-post-top time { color: var(--pt-faint); font-size: 11px; }
.pt-post-card h3 { margin: 0; font-size: clamp(19px, 2vw, 24px); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.pt-post-card p { margin: 0; color: var(--pt-muted); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-post-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--pt-line-soft); }
.pt-post-foot .pt-author-meta span { font-size: 10.5px; }
.pt-post-feed { display: flex; gap: 14px; padding: 18px 20px; color: var(--pt-ink); }
.pt-post-feed:hover { color: var(--pt-ink); }
.pt-post-feed .pt-feed-body { flex: 1; min-width: 0; }
.pt-post-feed h3 { margin: 8px 0 7px; font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pt-post-feed p { margin: 0; color: var(--pt-muted); font-size: 12.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-feed-thumb { flex: 0 0 104px; width: 104px; height: 78px; border-radius: 12px; object-fit: cover; background: var(--pt-surface-2); }
.pt-feed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--pt-faint); font-size: 11px; }
.pt-feed-meta .name { color: var(--pt-ink-soft); font-weight: 500; }
.pt-feed-counts { display: flex; gap: 14px; margin-top: 10px; color: var(--pt-faint); font-size: 11.5px; }
.pt-feed-counts span { display: inline-flex; align-items: center; gap: 5px; }
.pt-feed-counts svg { width: 13px; height: 13px; }
.pt-featured-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pt-featured-mini { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.pt-featured-mini .pt-feed-meta { gap: 6px; }
.pt-featured-mini h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.pt-featured-mini p { margin: 0; color: var(--pt-muted); font-size: 12px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-admin-inline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pt-admin-inline button {
  padding: 4px 9px; border: 1px solid var(--pt-line); border-radius: 999px;
  background: var(--pt-surface); color: var(--pt-muted); font-size: 10.5px;
}
.pt-admin-inline button:hover { border-color: var(--pt-line-strong); color: var(--pt-ink); }
.pt-admin-inline button.on { background: var(--pt-lime); border-color: var(--pt-lime); color: var(--pt-lime-ink); }

/* ---------- 文章详情 ---------- */
.pt-doc { padding: 28px 0 40px; }
.pt-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--pt-faint); font-size: 11.5px; }
.pt-crumbs a { color: var(--pt-muted); }
.pt-crumbs a:hover { color: var(--pt-accent); }
.pt-crumbs .current { color: var(--pt-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.pt-doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(30px, 5vw, 72px); align-items: start; margin-top: 28px; }
.pt-doc-main { min-width: 0; }
.pt-doc-head { padding-bottom: 24px; margin-bottom: 30px; border-bottom: 1px solid var(--pt-line); }
.pt-doc-head .pt-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pt-doc-head h1 { margin: 0 0 14px; font-size: clamp(32px, 4.6vw, 54px); font-weight: 650; line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.pt-doc-head .pt-summary { max-width: 68ch; margin: 0 0 20px; color: var(--pt-muted); font-size: 15.5px; line-height: 1.8; }
.pt-doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; color: var(--pt-faint); font-size: 12px; }
.pt-doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pt-reaction {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border: 1px solid var(--pt-line); border-radius: 999px;
  background: transparent; color: var(--pt-muted); font-size: 12px;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.pt-reaction svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pt-reaction:hover { border-color: var(--pt-line-strong); color: var(--pt-ink); }
.pt-reaction.active { border-color: var(--pt-accent); background: var(--pt-accent-soft); color: var(--pt-accent); }
.pt-reaction.active svg { fill: currentColor; }
.pt-reaction:disabled { opacity: .45; cursor: not-allowed; }
.pt-rail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 26px; }
.pt-rail h2 { margin: 0 0 10px; color: var(--pt-faint); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pt-toc { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--pt-line); }
.pt-toc a { padding: 5px 0 5px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--pt-muted); font-size: 12px; line-height: 1.5; }
.pt-toc a:hover { color: var(--pt-ink); }
.pt-toc a.is-active { border-left-color: var(--pt-accent); color: var(--pt-ink); font-weight: 500; }
.pt-toc a.sub { padding-left: 22px; font-size: 11.5px; }
.pt-toc .pt-toc-empty { margin: 0; color: var(--pt-faint); font-size: 12px; }
.pt-rail-meta { display: flex; flex-direction: column; gap: 9px; margin: 0; }
.pt-rail-meta div { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; }
.pt-rail-meta dt { color: var(--pt-faint); }
.pt-rail-meta dd { margin: 0; color: var(--pt-ink-soft); text-align: right; overflow-wrap: anywhere; }
.pt-rail-links { display: flex; flex-direction: column; gap: 6px; }
.pt-rail-links a { color: var(--pt-muted); font-size: 12.5px; }
.pt-rail-links a:hover { color: var(--pt-accent); }

/* Markdown 正文 */
.pt-markdown { color: var(--pt-ink-soft); font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.pt-markdown > :first-child { margin-top: 0; }
.pt-markdown h1, .pt-markdown h2, .pt-markdown h3, .pt-markdown h4 {
  color: var(--pt-ink); font-weight: 650; letter-spacing: -.03em; line-height: 1.3;
  scroll-margin-top: 90px;
}
.pt-markdown h1 { margin: 1.5em 0 .6em; font-size: 1.85em; }
.pt-markdown h2 { margin: 1.7em 0 .6em; font-size: 1.45em; padding-bottom: .35em; border-bottom: 1px solid var(--pt-line-soft); }
.pt-markdown h3 { margin: 1.5em 0 .5em; font-size: 1.18em; }
.pt-markdown p { margin: 0 0 1.15em; }
.pt-markdown ul, .pt-markdown ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.pt-markdown li { margin: .35em 0; }
.pt-markdown blockquote {
  margin: 1.4em 0; padding: 14px 18px;
  border-left: 3px solid var(--pt-lime); border-radius: 0 12px 12px 0;
  background: var(--pt-surface-2); color: var(--pt-muted);
}
.pt-markdown blockquote p:last-child { margin-bottom: 0; }
.pt-markdown a { color: var(--pt-accent); border-bottom: 1px solid var(--pt-line-strong); }
.pt-markdown a:hover { border-bottom-color: var(--pt-accent); }
.pt-markdown code {
  padding: .15em .4em; border-radius: 6px;
  background: var(--pt-code-bg); color: var(--pt-ink);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; font-size: .86em;
}
.pt-markdown pre {
  overflow-x: auto; margin: 1.4em 0; padding: 18px 20px;
  border: 1px solid var(--pt-line); border-radius: 14px;
  background: var(--pt-code-bg); font-size: 13.5px; line-height: 1.7;
}
.pt-markdown pre code { padding: 0; background: transparent; font-size: inherit; }
.pt-markdown table { width: 100%; margin: 1.4em 0; border-collapse: collapse; font-size: 14px; }
.pt-markdown th, .pt-markdown td { padding: 9px 12px; border: 1px solid var(--pt-line); text-align: left; }
.pt-markdown th { background: var(--pt-surface-2); color: var(--pt-ink); font-weight: 600; }
.pt-markdown img { display: block; max-width: 100%; margin: 1.4em auto; border-radius: 14px; }
.pt-markdown hr { margin: 2em 0; border: 0; border-top: 1px solid var(--pt-line); }
.pt-markdown input[type="checkbox"] { accent-color: var(--pt-accent); }

/* ---------- 评论 ---------- */
.pt-comments { margin-top: clamp(38px, 5vw, 64px); padding-top: 30px; border-top: 1px solid var(--pt-line); }
.pt-comments-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.pt-comments-head h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.pt-comments-head span { color: var(--pt-faint); font-size: 12px; }
.pt-comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.pt-comment-form textarea,
.pt-field textarea,
.pt-field input,
.pt-field select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--pt-line-strong); border-radius: 12px;
  background: var(--pt-surface); color: var(--pt-ink);
  font-size: 14px; line-height: 1.7; outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.pt-comment-form textarea { min-height: 94px; resize: vertical; }
.pt-field input:focus, .pt-field textarea:focus, .pt-field select:focus, .pt-comment-form textarea:focus {
  border-color: var(--pt-accent); box-shadow: 0 0 0 3px var(--pt-accent-soft);
}
.pt-comment-form .pt-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pt-comment-form .hint { color: var(--pt-faint); font-size: 11.5px; }
.pt-comment-login { padding: 18px 20px; border: 1px dashed var(--pt-line-strong); border-radius: 14px; color: var(--pt-muted); font-size: 13px; }
.pt-comment { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--pt-line-soft); }
.pt-comment-main { flex: 1; min-width: 0; }
.pt-comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--pt-faint); font-size: 11.5px; }
.pt-comment-head strong { color: var(--pt-ink); font-size: 13px; font-weight: 600; }
.pt-comment-head .role { padding: 2px 7px; border-radius: 999px; background: var(--pt-lime); color: var(--pt-lime-ink); font-size: 9.5px; font-weight: 700; }
.pt-comment-body { margin: 7px 0 8px; color: var(--pt-ink-soft); font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.pt-comment-actions { display: flex; gap: 12px; }
.pt-comment-actions button { padding: 0; border: 0; background: none; color: var(--pt-faint); font-size: 11.5px; }
.pt-comment-actions button:hover { color: var(--pt-accent); }
.pt-comment-replies { margin-top: 8px; padding-left: 18px; border-left: 1px solid var(--pt-line); }
.pt-reply-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pt-reply-form textarea { min-height: 72px; }
.pt-comment-empty { padding: 26px 0; color: var(--pt-faint); font-size: 13px; }

/* ---------- 编辑器 ---------- */
.pt-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding-bottom: 60px; }
.pt-editor { padding: clamp(20px, 3vw, 30px); }
.pt-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.pt-field > span { color: var(--pt-muted); font-size: 12px; font-weight: 600; }
.pt-field .counter { align-self: flex-end; color: var(--pt-faint); font-size: 10.5px; }
.pt-editor-title input {
  padding: 8px 0 14px; border: 0; border-bottom: 1px solid var(--pt-line);
  border-radius: 0; background: transparent; color: var(--pt-ink);
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 650; letter-spacing: -.035em;
}
.pt-editor-title input:focus { border-bottom-color: var(--pt-accent); box-shadow: none; }
.pt-editor textarea.pt-body {
  min-height: 460px; padding: 16px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Microsoft YaHei", monospace;
  font-size: 13.5px; line-height: 1.8;
}
.pt-editor-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.pt-editor-tabs button {
  padding: 7px 13px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--pt-muted); font-size: 12px;
}
.pt-editor-tabs button[aria-selected="true"] { border-color: var(--pt-line); background: var(--pt-surface-2); color: var(--pt-ink); font-weight: 600; }
.pt-preview { min-height: 460px; padding: 6px 4px; }
.pt-editor-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.pt-side-card { padding: 18px; border: 1px solid var(--pt-line); border-radius: 18px; background: var(--pt-surface); }
.pt-side-card h3 { margin: 0 0 12px; font-size: 13px; font-weight: 650; }
.pt-side-card .pt-actions { display: flex; flex-direction: column; gap: 8px; }
.pt-side-card .pt-actions .pt-btn { width: 100%; }
.pt-cover-preview { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: 10px; overflow: hidden; border: 1px dashed var(--pt-line-strong); border-radius: 12px; color: var(--pt-faint); font-size: 11.5px; background: var(--pt-surface-2); }
.pt-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.pt-mine-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.pt-mine-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--pt-ink-soft); font-size: 12px; }
.pt-mine-item:hover { background: var(--pt-surface-2); color: var(--pt-ink); }
.pt-mine-item span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-mine-item em { flex: 0 0 auto; color: var(--pt-faint); font-style: normal; font-size: 10px; }
.pt-editor-status { display: flex; align-items: center; gap: 8px; color: var(--pt-faint); font-size: 11.5px; }

/* ---------- 产品 ---------- */
.pt-products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pt-product-card {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  min-height: 250px; padding: clamp(24px, 3vw, 34px); overflow: hidden;
  color: var(--pt-ink);
}
.pt-product-card:hover { color: var(--pt-ink); }
.pt-product-card::after {
  content: ""; position: absolute; right: -30px; bottom: -50px;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, var(--pt-glow), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.pt-product-card:hover::after { opacity: 1; }
.pt-product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pt-product-logo { display: flex; align-items: center; height: 36px; }
.pt-product-logo img { display: block; max-height: 36px; width: auto; max-width: 210px; }
html[data-theme="dark"] .pt-product-logo img { filter: brightness(0) invert(1); }
.pt-product-card h2 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); font-weight: 650; letter-spacing: -.035em; }
.pt-product-tag { margin: 4px 0 0; color: var(--pt-faint); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.pt-product-card > p { margin: 0; max-width: 40ch; color: var(--pt-muted); font-size: 13.5px; line-height: 1.75; }
.pt-product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; color: var(--pt-faint); font-size: 12px; }
.pt-product-arrow { transition: transform .2s ease; }
.pt-product-card:hover .pt-product-arrow { transform: translateX(4px); color: var(--pt-accent); }
.pt-product-hero { padding: clamp(50px, 7vw, 84px) 0 34px; border-bottom: 1px solid var(--pt-line); }
.pt-product-hero .pt-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 26px; color: var(--pt-muted); font-size: 12.5px; }
.pt-product-hero .pt-back:hover { color: var(--pt-accent); }
.pt-product-hero-logo { height: 44px; margin-bottom: 22px; }
.pt-product-hero-logo img { max-height: 44px; width: auto; }
html[data-theme="dark"] .pt-product-hero-logo img { filter: brightness(0) invert(1); }
.pt-product-hero h1 { margin: 0 0 10px; font-size: clamp(38px, 5vw, 64px); font-weight: 650; letter-spacing: -.045em; line-height: 1.05; }
.pt-product-hero .pt-tagline { max-width: 50ch; margin: 0; color: var(--pt-muted); font-size: 16px; line-height: 1.8; }
.pt-product-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--pt-faint); font-size: 12px; }
.pt-doc-placeholder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.pt-doc-placeholder .pt-card { padding: 22px; }
.pt-doc-placeholder h2 { margin: 0 0 8px; font-size: 16px; font-weight: 650; }
.pt-doc-placeholder p { margin: 0; color: var(--pt-muted); font-size: 12.5px; line-height: 1.7; }
.pt-doc-placeholder .pt-chip { margin-bottom: 16px; }

/* ---------- 官方知识库 ---------- */
.pt-knowledge-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0 22px; border-bottom: 1px solid var(--pt-line); }
.pt-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-filters button {
  padding: 7px 13px; border: 1px solid var(--pt-line); border-radius: 999px;
  background: transparent; color: var(--pt-muted); font-size: 12px;
}
.pt-filters button:hover { border-color: var(--pt-line-strong); color: var(--pt-ink); }
.pt-filters button[aria-pressed="true"] { background: var(--pt-ink); border-color: var(--pt-ink); color: var(--pt-bg); }
.pt-search-input { position: relative; min-width: 240px; flex: 0 1 320px; }
.pt-search-input svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--pt-faint); stroke-width: 1.7; stroke-linecap: round; }
.pt-search-input input { width: 100%; padding: 9px 14px 9px 37px; border: 1px solid var(--pt-line); border-radius: 999px; background: var(--pt-surface); color: var(--pt-ink); font-size: 12.5px; outline: 0; }
.pt-search-input input:focus { border-color: var(--pt-accent); }
.pt-knowledge-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.pt-knowledge-item { display: flex; flex-direction: column; gap: 10px; padding: 22px; color: var(--pt-ink); }
.pt-knowledge-item:hover { color: var(--pt-ink); }
.pt-knowledge-item .pt-feed-meta { justify-content: space-between; }
.pt-knowledge-item h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.pt-knowledge-item p { margin: 0; color: var(--pt-muted); font-size: 12.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.pt-tags span { padding: 2px 8px; border-radius: 999px; background: var(--pt-surface-2); color: var(--pt-faint); font-size: 10px; }
.pt-knowledge-aside { position: sticky; top: 88px; }
.pt-knowledge-aside h2 { margin: 0 0 12px; color: var(--pt-faint); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.pt-knowledge-aside a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; margin-left: -10px; border-radius: 8px; color: var(--pt-muted); font-size: 12.5px; }
.pt-knowledge-aside a:hover { background: var(--pt-surface-2); color: var(--pt-ink); }
.pt-knowledge-aside a span { color: var(--pt-faint); font-variant-numeric: tabular-nums; }

/* ---------- 作者页 ---------- */
.pt-author-hero { display: flex; align-items: center; gap: 20px; padding: clamp(44px, 6vw, 72px) 0 28px; border-bottom: 1px solid var(--pt-line); }
.pt-author-hero h1 { margin: 0 0 4px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 650; letter-spacing: -.04em; }
.pt-author-hero p { margin: 0; color: var(--pt-faint); font-size: 12.5px; }

/* ---------- 页脚与提示 ---------- */
.pt-footer { margin-top: clamp(60px, 8vw, 100px); border-top: 1px solid var(--pt-line); background: var(--pt-bg); }
.pt-footer-inner { width: min(100% - 48px, 1200px); margin: 0 auto; padding: 40px 0 26px; }
.pt-footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--pt-line-soft); }
.pt-footer-logo { display: block; height: 24px; width: auto; }
.pt-footer-main p { max-width: 46ch; margin: 14px 0 0; color: var(--pt-muted); font-size: 12.5px; line-height: 1.75; }
.pt-footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 22px 0; }
.pt-footer-links a { color: var(--pt-muted); font-size: 12.5px; }
.pt-footer-links a:hover { color: var(--pt-accent); }
.pt-footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid var(--pt-line-soft); color: var(--pt-faint); font-size: 11px; }
.pt-footer-meta a { color: var(--pt-faint); }
.pt-footer-meta a:hover { color: var(--pt-accent); }
.pt-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 250; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.pt-toast {
  min-width: 200px; max-width: 360px; padding: 11px 14px;
  border: 1px solid var(--pt-line); border-left: 3px solid var(--pt-lime); border-radius: 10px;
  background: var(--pt-elevated); color: var(--pt-ink); box-shadow: var(--pt-shadow);
  font-size: 12.5px; overflow-wrap: anywhere;
  animation: pt-rise .2s ease-out;
}
.pt-toast.error { border-left-color: var(--pt-danger); }
@keyframes pt-rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .pt-doc-layout { grid-template-columns: minmax(0, 1fr); }
  .pt-rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .pt-rail > div { flex: 1 1 240px; }
  .pt-editor-layout { grid-template-columns: minmax(0, 1fr); }
  .pt-editor-side { position: static; }
  .pt-knowledge-aside { position: static; }
  .pt-featured-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pt-menu-toggle { display: grid; }
  .pt-nav {
    position: fixed; top: 68px; left: 12px; right: 12px; z-index: 110;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 10px; border: 1px solid var(--pt-line); border-radius: 18px;
    background: var(--pt-elevated); box-shadow: 0 30px 70px -24px rgba(16, 21, 18, .4);
  }
  .pt-nav.is-open { display: flex; animation: pt-pop .2s cubic-bezier(.2, .75, .25, 1) both; }
  .pt-nav > a { padding: 13px 14px; border-radius: 10px; font-size: 15px; }
  .pt-nav > a[aria-current="page"] { box-shadow: none; background: var(--pt-surface-2); }
  .pt-official-grid, .pt-products-grid, .pt-knowledge-list { grid-template-columns: minmax(0, 1fr); }
  .pt-doc-placeholder { grid-template-columns: minmax(0, 1fr); }
  .pt-topbar { gap: 6px; }
  .pt-tools { gap: 2px; }
  .pt-icon { width: 40px; height: 40px; }
  .pt-login { padding: 8px 14px; }
}
@media (max-width: 640px) {
  .pt-shell, .pt-footer-inner { width: min(100% - 32px, 1200px); }
  .pt-topbar { padding: 8px 16px; min-height: 60px; }
  .pt-lockup { height: 24px; }
  .pt-nav { top: 62px; }
  .pt-page-head h1 { font-size: clamp(34px, 11vw, 48px); }
  .pt-blog-hero { padding-top: 40px; }
  .pt-section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pt-featured-strip { grid-template-columns: minmax(0, 1fr); }
  .pt-post-feed { padding: 16px; }
  .pt-feed-thumb { flex-basis: 76px; width: 76px; height: 64px; }
  .pt-doc-head h1 { font-size: clamp(28px, 8.6vw, 40px); }
  .pt-comment-replies { padding-left: 10px; }
  .pt-author-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pt-search-layer { padding: 8vh 12px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* ---------- 顶栏小部件补充 ---------- */
.pt-icon-inner { display: grid; place-items: center; }
.pt-popover button svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pt-auth .account-menu { position: relative; }
.pt-auth .account-menu-panel { top: calc(100% + 6px); }

/* ---------- 博客列表补充 ---------- */
.pt-community-list { display: flex; flex-direction: column; gap: 12px; }
.pt-featured-link { display: flex; flex-direction: column; gap: 8px; color: var(--pt-ink); }
.pt-featured-link:hover { color: var(--pt-ink); }
.pt-post-card h3 a:hover { color: var(--pt-accent); }
.pt-card > .pt-admin-inline { padding: 0 20px 14px; margin-top: 0; }
.pt-featured-mini > .pt-admin-inline { padding: 0; }
.pt-featured-mini { padding: 18px; }

/* ---------- 个人知识库：统一为顶部子导航，不使用后台侧栏 ---------- */
body.library-page .portal-shell {
  display: block;
  width: min(100% - 48px, 1200px);
  padding: 26px 0 64px;
}
body.library-page .portal-side {
  position: static;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px;
  margin-bottom: 28px; padding: 10px 14px;
  border: 1px solid var(--pt-line); border-radius: 16px;
  background: var(--pt-surface);
}
body.library-page .side-kicker { display: none; }
body.library-page .portal-nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; margin: 0; }
body.library-page .portal-nav a {
  padding: 8px 13px; border-left: 0; border-radius: 999px;
  color: var(--pt-muted); font-family: var(--sans); font-size: 13px;
}
body.library-page .portal-nav a:hover { border-left: 0; background: var(--pt-surface-2); color: var(--pt-ink); }
body.library-page .portal-nav a[aria-current="page"] { border-left: 0; background: var(--pt-ink); color: var(--pt-bg); }
body.library-page .side-note {
  display: flex; flex-direction: row; align-items: center; gap: 8px;
  margin-left: auto; padding: 0; border: 0; background: none;
  color: var(--pt-faint); font-family: var(--sans); font-size: 11px; letter-spacing: 0;
}
body.library-page .side-note strong { color: var(--pt-ink); font-size: 12px; }
body.library-page .page-head { padding-bottom: 20px; margin-bottom: 24px; border-bottom-color: var(--pt-line); }
body.library-page .page-head h1 { font-family: "SF Pro Display", "PingFang SC", sans-serif; font-weight: 650; letter-spacing: -.04em; }
body.library-page .hint { font-family: var(--sans); color: var(--pt-muted); font-size: 14px; }
body.library-page .card,
body.library-page .feedback-card,
body.library-page .feedback-list .feedback-card {
  border: 1px solid var(--pt-line); border-radius: 18px;
  background: var(--pt-surface); box-shadow: none;
}
body.library-page .feedback-card:hover { border-color: var(--pt-line-strong); box-shadow: var(--pt-shadow); }
body.library-page .badge {
  border-radius: 999px; font-family: var(--sans);
  font-size: 10px; letter-spacing: .02em; text-transform: none;
}
body.library-page .badge.type { border-color: var(--pt-line-strong); color: var(--pt-ink); }
body.library-page .field input,
body.library-page .field textarea,
body.library-page .field select {
  border-radius: 11px; border-color: var(--pt-line-strong);
  background: var(--pt-surface); color: var(--pt-ink);
}
body.library-page .reply { border-left-color: var(--pt-lime); border-radius: 0 12px 12px 0; background: var(--pt-surface-2); }
body.library-page .reply strong { color: var(--pt-accent); }
body.library-page .feedback-body,
body.library-page .reply p,
body.library-page .no-reply { font-family: var(--sans); }
@media (max-width: 760px) {
  body.library-page .portal-shell { width: min(100% - 32px, 1200px); }
  body.library-page .portal-side { gap: 8px; padding: 10px; }
  body.library-page .portal-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  body.library-page .portal-nav a { white-space: nowrap; }
  body.library-page .side-note { margin-left: 0; padding: 4px 4px 0; }
}

/* ---------- 文章封面 ---------- */
.pt-doc-cover { margin: 0 0 24px; aspect-ratio: 16 / 7; overflow: hidden; border: 1px solid var(--pt-line); border-radius: 20px; background: var(--pt-surface-2); }
.pt-doc-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .pt-doc-cover { aspect-ratio: 16 / 9; border-radius: 14px; } }

/* 博客社区沿用欢迎页的顶栏、首屏和阅读节奏。 */
body[data-platform="blog"] .pt-topbar { min-height:72px; padding:12px clamp(24px,4.5vw,72px); gap:clamp(20px,4vw,60px); background:var(--pt-bg); border-bottom:1px solid var(--pt-line); box-shadow:none; }
body[data-platform="blog"] .pt-lockup { width:94px; height:auto; }
body[data-platform="blog"] .pt-nav { margin-left:auto; margin-right:0; gap:clamp(10px,2vw,28px); }
body[data-platform="blog"] .pt-nav > a { padding:8px 2px; border-radius:0; background:transparent; box-shadow:none; font-size:14px; font-weight:550; }
body[data-platform="blog"] .pt-nav > a:hover, body[data-platform="blog"] .pt-nav > a[aria-current="page"] { color:var(--pt-accent); background:transparent; box-shadow:none; }
body[data-platform="blog"] .pt-tools { margin-left:0; }
body[data-platform="blog"] .pt-blog-hero { display:flex; align-items:center; min-height:min(680px,calc(100svh - 72px)); padding:clamp(54px,8vh,100px) 0; background:radial-gradient(ellipse at 78% 42%,var(--pt-bg-soft),var(--pt-bg) 58%); }
body[data-platform="blog"] .pt-blog-hero::after { display:none; }
body[data-platform="blog"] .pt-blog-hero .pt-page-head { max-width:750px; padding:0; }
body[data-platform="blog"] .pt-page-head h1 { font-family:"SF Pro Display","Helvetica Neue","PingFang SC",sans-serif; font-size:clamp(44px,5.1vw,76px); font-weight:650; line-height:1.17; letter-spacing:-.035em; }
body[data-platform="blog"] .pt-page-head .pt-lead { max-width:46ch; font-size:16px; line-height:1.75; }
body[data-platform="blog"] .pt-eyebrow { color:var(--pt-muted); letter-spacing:.04em; text-transform:none; }
body[data-platform="blog"] .pt-head-actions { margin-top:32px; gap:12px; }
body[data-platform="blog"] .pt-btn.primary { background:var(--pt-ink); border-color:var(--pt-ink); color:var(--pt-bg); }
body[data-platform="blog"] .pt-btn.ghost { background:transparent; }
body[data-platform="blog"] .pt-stats { margin-top:38px; }
body[data-platform="blog"] .pt-section { padding-top:68px; }
body[data-platform="blog"] .pt-section-head h2 { font-family:"SF Pro Display","PingFang SC",sans-serif; font-size:clamp(28px,3vw,42px); font-weight:650; letter-spacing:-.035em; }
body[data-platform="blog"] .pt-card { border-radius:18px; box-shadow:none; }
body[data-platform="blog"] .pt-card:hover { transform:none; border-color:var(--pt-line-strong); box-shadow:none; }
@media (max-width:760px) { body[data-platform="blog"] .pt-topbar { min-height:68px; padding:12px 18px; gap:12px; } body[data-platform="blog"] .pt-lockup { width:80px; } body[data-platform="blog"] .pt-blog-hero { min-height:570px; padding:60px 0; } body[data-platform="blog"] .pt-page-head h1 { font-size:clamp(39px,9vw,56px); } body[data-platform="blog"] .pt-page-head .pt-lead { font-size:14px; } }
/* 所有产品页面共用欢迎页的顶栏布局。 */
body[data-platform] .pt-topbar { min-height:72px; padding:12px clamp(24px,4.5vw,72px); gap:clamp(20px,4vw,60px); background:var(--pt-bg); border-bottom:1px solid var(--pt-line); box-shadow:none; }
body[data-platform] .pt-lockup { width:94px; height:auto; }
body[data-platform] .pt-nav { margin-left:0; margin-right:auto; gap:clamp(10px,2vw,28px); }
body[data-platform] .pt-nav > a { padding:8px 2px; border-radius:0; background:transparent; box-shadow:none; font-size:14px; font-weight:550; }
body[data-platform] .pt-nav > a:hover, body[data-platform] .pt-nav > a[aria-current="page"] { color:var(--pt-accent); background:transparent; box-shadow:none; }
body[data-platform] .pt-tools { margin-left:auto; gap:8px; }
body[data-platform] .pt-popover [aria-current="true"] { color:var(--pt-accent); font-weight:650; }
@media (max-width:960px) { body[data-platform] .pt-nav { position:fixed; top:72px; left:12px; right:12px; margin:0; background:var(--pt-elevated); border:1px solid var(--pt-line); border-radius:14px; } }
@media (max-width:760px) { body[data-platform] .pt-topbar { min-height:68px; padding:12px 18px; gap:12px; } body[data-platform] .pt-lockup { width:80px; } body[data-platform] .pt-nav { top:68px; } body[data-platform] .pt-nav > a { font-size:13px; } }

/* 同源页面导航时保持顶栏连续，并让正文淡入。 */
@view-transition { navigation: auto; }
.pt-topbar { view-transition-name: adox-topbar; }
::view-transition-old(adox-topbar), ::view-transition-new(adox-topbar) { animation: none; }
::view-transition-old(root) { animation: adox-page-out .18s ease-in both; }
::view-transition-new(root) { animation: adox-page-in .32s cubic-bezier(.2,.7,.2,1) both; }
@keyframes adox-page-out { to { opacity:0; } }
@keyframes adox-page-in { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation:none; } }

/* 博客社区：官方置顶与按发布时间混排的文章流。 */
.pt-feed-section { max-width:900px; margin-inline:auto; }
.pt-pinned-feed { margin:28px 0 42px; }
.pt-pinned-feed > .pt-post-card { position:relative; border-color:var(--pt-line-strong); }
.pt-pinned-feed > .pt-post-card::before { content:"官方置顶"; position:absolute; z-index:1; top:16px; right:16px; padding:5px 10px; border-radius:999px; background:var(--pt-lime); color:var(--pt-lime-ink); font-size:11px; font-weight:700; letter-spacing:.04em; }
.pt-pinned-feed .pt-post-body { padding-right:110px; }
.pt-feed-heading { display:flex; justify-content:space-between; gap:16px; padding:0 2px 14px; border-bottom:1px solid var(--pt-line); color:var(--pt-muted); font-size:12px; }
.pt-feed-heading span:first-child { color:var(--pt-ink); font-size:18px; font-weight:650; }
.pt-feed-section .pt-community-list { gap:0; }
.pt-feed-section .pt-community-list > .pt-card { margin:0; padding:0; border:0; border-bottom:1px solid var(--pt-line); border-radius:0; background:transparent; }
.pt-feed-section .pt-community-list > .pt-card:hover { border-color:var(--pt-line-strong); }
.pt-feed-section .pt-community-list .pt-post-card { display:flex; flex-direction:row-reverse; align-items:center; justify-content:space-between; gap:24px; }
.pt-feed-section .pt-community-list .pt-post-card > .pt-cover { flex:0 0 150px; height:110px; margin:18px 0; }
.pt-feed-section .pt-community-list .pt-post-card > .pt-post-body { flex:1; min-width:0; padding:22px 0; }
@media (max-width:600px) { .pt-pinned-feed .pt-post-body { padding-right:24px; } .pt-pinned-feed > .pt-post-card::before { top:12px; right:12px; } .pt-feed-section .pt-community-list .pt-post-card > .pt-cover { flex-basis:92px; height:78px; } }

/* 知识库仪表盘：柔和画布、明确的卡片层级和大面积留白。 */
body[data-platform="knowledge"], body.library-page { --dashboard-canvas:#f3f5f8; --dashboard-card:#fff; --dashboard-soft:#e9f3ed; --dashboard-shadow:0 12px 36px rgba(31,45,39,.055); }
html[data-theme="dark"] body[data-platform="knowledge"], html[data-theme="dark"] body.library-page { --dashboard-canvas:#0e1410; --dashboard-card:#17201a; --dashboard-soft:#20352a; --dashboard-shadow:0 12px 36px rgba(0,0,0,.15); }
body[data-platform="knowledge"], body.library-page { background:var(--dashboard-canvas); }
.pt-dashboard-main { padding-bottom:84px; }
.pt-dashboard-head { display:flex; align-items:end; justify-content:space-between; gap:32px; padding:58px 0 48px; }
.pt-dashboard-kicker { margin:0 0 10px; color:var(--pt-accent); font-size:13px; font-weight:650; }
.pt-dashboard-head h1 { margin:0 0 10px; color:var(--pt-ink); font-size:clamp(38px,4.5vw,58px); font-weight:680; letter-spacing:-.055em; line-height:1.12; }
.pt-dashboard-head p:last-child { margin:0; color:var(--pt-muted); font-size:15px; }
.pt-dashboard-summary { display:flex; gap:28px; padding:17px 23px; border:1px solid var(--pt-line); border-radius:20px; background:var(--dashboard-card); box-shadow:var(--dashboard-shadow); white-space:nowrap; }
.pt-dashboard-summary span { display:grid; gap:2px; color:var(--pt-muted); font-size:12px; }
.pt-dashboard-summary strong { color:var(--pt-ink); font-size:25px; font-weight:650; line-height:1; }
.pt-dashboard-section { margin-bottom:46px; }
.pt-dashboard-section-head { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:0 0 17px; }
.pt-dashboard-section-head h2, .pt-personal-section-title { margin:0; color:var(--pt-ink); font-size:24px; font-weight:650; letter-spacing:-.035em; }
.pt-dashboard-section-head > span { color:var(--pt-muted); font-size:12px; }
.pt-dashboard-tiles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.pt-dashboard-tile { display:flex; min-height:162px; flex-direction:column; align-items:flex-start; justify-content:space-between; padding:20px; border:1px solid var(--pt-line); border-radius:22px; background:var(--dashboard-card); color:var(--pt-ink); text-align:left; box-shadow:var(--dashboard-shadow); transition:transform .2s ease,border-color .2s ease,background-color .2s ease; }
.pt-dashboard-tile:hover { transform:translateY(-3px); border-color:var(--pt-accent); }
.pt-dashboard-tile[aria-pressed="true"] { border-color:var(--pt-accent); background:var(--dashboard-soft); }
.pt-dashboard-tile-symbol { display:grid; width:40px; height:40px; place-items:center; border-radius:13px; background:var(--dashboard-soft); color:var(--pt-accent); font-size:23px; line-height:1; }
.pt-dashboard-tile strong { margin-top:15px; font-size:17px; font-weight:630; }
.pt-dashboard-tile-count { color:var(--pt-muted); font-size:12px; }
body[data-platform="knowledge"] .pt-knowledge-toolbar { gap:18px; border-bottom:0; padding:4px 0 14px; }
body[data-platform="knowledge"] .pt-knowledge-item { border-radius:20px; background:var(--dashboard-card); box-shadow:var(--dashboard-shadow); }
body.library-page .portal-main { min-width:0; }
body.library-page .pt-dashboard-head { padding:14px 0 34px; }
.pt-dashboard-private { flex:none; padding:8px 13px; border:1px solid var(--pt-line); border-radius:999px; background:var(--dashboard-card); color:var(--pt-muted); font-size:12px; }
.pt-personal-tiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; margin-bottom:44px; }
.pt-personal-tile { display:flex; min-height:170px; align-items:flex-end; gap:16px; padding:23px; border:1px solid var(--pt-line); border-radius:23px; background:var(--dashboard-card); color:var(--pt-ink); box-shadow:var(--dashboard-shadow); transition:transform .2s ease,border-color .2s ease; }
.pt-personal-tile:hover { transform:translateY(-3px); border-color:var(--pt-accent); color:var(--pt-ink); }
.pt-personal-tile-primary { background:var(--dashboard-soft); }
.pt-personal-icon { display:grid; width:42px; height:42px; flex:none; place-items:center; border-radius:14px; background:var(--dashboard-soft); color:var(--pt-accent); font-size:25px; line-height:1; }
.pt-personal-tile-primary .pt-personal-icon { background:var(--dashboard-card); }
.pt-personal-tile > span:nth-child(2) { display:grid; gap:5px; min-width:0; }
.pt-personal-tile strong { font-size:19px; font-weight:650; }
.pt-personal-tile small { color:var(--pt-muted); font-size:12px; }
.pt-personal-arrow { margin-left:auto; align-self:flex-start; color:var(--pt-muted); font-size:18px; }
.pt-personal-section-title { margin-bottom:16px; }
body.library-page .pt-personal-profile { max-width:none; background:var(--dashboard-card); box-shadow:var(--dashboard-shadow); }
@media (max-width:800px) { .pt-dashboard-head { align-items:start; flex-direction:column; padding:38px 0 32px; } .pt-dashboard-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .pt-dashboard-tiles,.pt-personal-tiles { grid-template-columns:1fr; } .pt-dashboard-tile { min-height:140px; } .pt-personal-tile { min-height:135px; } .pt-dashboard-summary { width:100%; } .pt-dashboard-section-head > span { display:none; } }
@media (prefers-reduced-motion:reduce) { .pt-dashboard-tile,.pt-personal-tile { transition:none; } .pt-dashboard-tile:hover,.pt-personal-tile:hover { transform:none; } }

/* 两套知识库共用的侧边栏仪表盘布局。 */
.pt-dashboard-layout { display:grid; grid-template-columns:224px minmax(0,1fr); gap:clamp(32px,4vw,64px); align-items:start; }
.pt-dashboard-content { min-width:0; }
.pt-dashboard-sidebar, body.library-page .portal-side { position:sticky; top:92px; display:block; min-width:0; padding:18px 12px; border:1px solid var(--pt-line); border-radius:21px; background:var(--dashboard-card); box-shadow:var(--dashboard-shadow); }
.pt-dashboard-sidebar-heading { display:flex; align-items:center; gap:11px; padding:5px 10px 23px; color:var(--pt-ink); font-size:16px; font-weight:650; }
.pt-sidebar-mark { display:grid; width:31px; height:31px; place-items:center; border-radius:10px; background:var(--dashboard-soft); color:var(--pt-accent); font-size:19px; line-height:1; }
.pt-dashboard-sidebar-label { margin:0 10px 8px; color:var(--pt-faint); font-size:11px; font-weight:600; }
.pt-dashboard-sidebar-nav, .pt-dashboard-sidebar-categories, body.library-page .portal-nav { display:grid; gap:3px; }
.pt-dashboard-sidebar-nav a, .pt-dashboard-sidebar-categories button, body.library-page .portal-nav a { display:block; width:100%; padding:9px 11px; border:0; border-radius:11px; background:transparent; color:var(--pt-muted); text-align:left; font-size:13px; font-weight:520; }
.pt-dashboard-sidebar-nav a:hover, .pt-dashboard-sidebar-categories button:hover, body.library-page .portal-nav a:hover { background:var(--pt-bg-soft); color:var(--pt-ink); }
.pt-dashboard-sidebar-nav a[aria-current="page"], .pt-dashboard-sidebar-categories button[aria-pressed="true"], body.library-page .portal-nav a[aria-current="page"] { background:var(--dashboard-soft); color:var(--pt-accent); font-weight:650; }
.pt-dashboard-sidebar-divider { height:1px; margin:18px 10px; background:var(--pt-line); }
.pt-dashboard-sidebar-bottom { display:grid; gap:3px; margin-top:22px; padding-top:15px; border-top:1px solid var(--pt-line); }
.pt-dashboard-sidebar-bottom a { padding:7px 11px; color:var(--pt-muted); font-size:12px; }
.pt-dashboard-sidebar-bottom a:hover { color:var(--pt-accent); }
body.library-page .portal-shell { display:grid; grid-template-columns:224px minmax(0,1fr); gap:clamp(32px,4vw,64px); align-items:start; }
body.library-page .portal-side { top:92px; margin:0; }
body.library-page .portal-nav { flex-wrap:nowrap; margin:0; }
body.library-page .portal-nav a { border-left:0; border-radius:11px; }
body.library-page .side-note { display:grid; gap:3px; margin:22px 10px 0; padding:16px 0 0; border-top:1px solid var(--pt-line); font-size:11px; }
body.library-page .side-note strong { font-size:13px; }

/* 其余内容页沿用同一套 Apple 风格的材质与排版。 */
body[data-platform="blog"], body[data-platform="products"], body[data-platform="info"] { --dashboard-canvas:#f3f5f8; }
html[data-theme="dark"] body[data-platform="blog"], html[data-theme="dark"] body[data-platform="products"], html[data-theme="dark"] body[data-platform="info"] { --dashboard-canvas:#0e1410; }
body[data-platform="blog"], body[data-platform="products"], body[data-platform="info"] { background:var(--dashboard-canvas); }
body[data-platform="blog"] .pt-blog-hero { min-height:auto; padding:65px 0 54px; background:transparent; }
body[data-platform="blog"] .pt-blog-hero .pt-page-head { max-width:850px; }
body[data-platform="blog"] .pt-page-head h1, body[data-platform="products"] .pt-page-head h1 { font-size:clamp(38px,4.7vw,64px); line-height:1.13; }
body[data-platform="products"] .pt-page-head { padding-top:62px; }
body[data-platform="blog"] .pt-card, body[data-platform="products"] .pt-card, body[data-platform="knowledge"] .pt-doc-main, body[data-platform="info"] .pt-card { border-radius:22px; }
body[data-platform="blog"] .pt-feed-section { padding-top:12px; }
body[data-platform="products"] .pt-product-card { background:var(--pt-surface); box-shadow:0 12px 36px rgba(31,45,39,.055); }
.pt-doc-layout { gap:clamp(32px,5vw,68px); }
.pt-doc-main { padding:clamp(20px,3vw,38px); border:1px solid var(--pt-line); background:var(--pt-surface); }
.pt-doc-head h1 { line-height:1.16; }
@media (max-width:900px) { .pt-dashboard-layout, body.library-page .portal-shell { grid-template-columns:1fr; gap:20px; } .pt-dashboard-sidebar, body.library-page .portal-side { position:static; } .pt-dashboard-sidebar-categories { grid-template-columns:repeat(2,minmax(0,1fr)); } body.library-page .portal-nav { grid-template-columns:repeat(2,minmax(0,1fr)); } body.library-page .side-note { display:none; } }
@media (max-width:560px) { .pt-dashboard-sidebar-categories, body.library-page .portal-nav { grid-template-columns:1fr 1fr; } .pt-dashboard-sidebar { padding:14px 10px; } .pt-dashboard-sidebar-bottom { grid-template-columns:1fr 1fr; } .pt-doc-main { padding:18px; } }
/* ============================================================
   Apple Glass UI — iCloud & Docs 风格页面层
   仅重写 Topbar 以下的页面内容；欢迎页与顶栏保持不变
   ============================================================ */

body:not(.landing-page) {
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-soft: rgba(255, 255, 255, .42);
  --glass-border: rgba(255, 255, 255, .72);
  --glass-shadow: 0 22px 60px -34px rgba(16, 21, 18, .28), 0 1px 3px rgba(16, 21, 18, .04);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .7);
  --canvas: #f2f5f9;
  background-color: var(--canvas);
  background-image:
    radial-gradient(1100px 720px at 84% -10%, rgba(120, 217, 156, .17), transparent 62%),
    radial-gradient(820px 620px at 2% 4%, rgba(216, 255, 90, .13), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .5), transparent 420px);
  background-attachment: fixed;
}
html[data-theme="dark"] body:not(.landing-page) {
  --glass: rgba(20, 31, 24, .58);
  --glass-strong: rgba(25, 37, 29, .84);
  --glass-soft: rgba(32, 46, 36, .4);
  --glass-border: rgba(120, 217, 156, .15);
  --glass-shadow: 0 26px 70px -34px rgba(0, 0, 0, .8), 0 1px 2px rgba(0, 0, 0, .3);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .06);
  --canvas: #090e0b;
  background-image:
    radial-gradient(1100px 720px at 84% -10%, rgba(120, 217, 156, .16), transparent 62%),
    radial-gradient(820px 620px at 2% 4%, rgba(216, 255, 90, .07), transparent 58%);
}
body:not(.landing-page) .pt-glass,
body:not(.landing-page) .pt-app-sidebar,
body:not(.landing-page) .pt-docs-sidebar,
body:not(.landing-page) .pt-docs-rail,
body:not(.landing-page) .pt-app-rail,
body:not(.landing-page) .pt-dashboard-sidebar,
body:not(.landing-page) .pt-dashboard-summary,
body:not(.landing-page) .pt-dashboard-tile,
body:not(.landing-page) .pt-personal-tile,
body:not(.landing-page) .pt-thread-feed,
body:not(.landing-page) .pt-featured-tile,
body:not(.landing-page) .pt-docs-main,
body:not(.landing-page) .pt-product-card,
body:not(.landing-page) .pt-product-hero,
body:not(.landing-page) .pt-side-card,
body:not(.landing-page) .pt-comment,
body:not(.landing-page) .legal-nav {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
}
body:not(.landing-page) .pt-docs-main { background: var(--glass-strong); }
body:not(.landing-page) .pt-docs-sidebar,
body:not(.landing-page) .pt-docs-rail,
body:not(.landing-page) .pt-app-sidebar,
body:not(.landing-page) .pt-app-rail,
body:not(.landing-page) .pt-dashboard-sidebar,
body.library-page .portal-side { position: sticky; top: 84px; }

/* ---------- 应用框架：侧栏 + 主内容 ---------- */
.pt-app-frame {
  display: grid; grid-template-columns: 248px minmax(0, 1fr);
  gap: 26px; align-items: start;
  width: min(100% - 48px, 1400px);
  margin: 0 auto; padding: 22px 0 72px;
}
.pt-app-content { min-width: 0; }
.pt-app-sidebar,
.pt-app-rail { min-width: 0; padding: 14px; border-radius: 26px; }
.pt-app-sidebar { display: flex; flex-direction: column; gap: 4px; }
.pt-app-side-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 20px; }
.pt-app-icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(145deg, var(--pt-lime), var(--pt-accent));
  color: #101512; font-size: 17px; font-weight: 800;
  box-shadow: 0 8px 20px -10px rgba(31, 107, 69, .55);
}
html[data-theme="dark"] .pt-app-icon { color: #0b120d; }
.pt-app-side-head strong { display: block; color: var(--pt-ink); font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.pt-app-side-head span { display: block; margin-top: 2px; color: var(--pt-faint); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.pt-app-side-label {
  margin: 16px 10px 7px; color: var(--pt-faint);
  font-size: 10.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
}
.pt-app-nav { display: grid; gap: 3px; }
.pt-app-nav a,
.pt-app-nav button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 11px; border: 0; border-radius: 11px;
  background: transparent; color: var(--pt-muted);
  font-size: 13px; font-weight: 520; text-align: left;
  transition: background-color .16s ease, color .16s ease;
}
.pt-app-nav a:hover,
.pt-app-nav button:hover { background: var(--pt-surface-2); color: var(--pt-ink); }
.pt-app-nav a[aria-current="page"],
.pt-app-nav button[aria-pressed="true"] { background: var(--pt-accent-soft); color: var(--pt-accent); font-weight: 650; }
.pt-app-nav .count { margin-left: auto; color: var(--pt-faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.pt-app-nav .glyph {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none;
  border-radius: 7px; background: var(--pt-surface-2); color: var(--pt-accent);
  font-size: 12px; line-height: 1;
}
.pt-app-divider { height: 1px; margin: 14px 10px; background: var(--pt-line); }
.pt-app-side-foot { display: grid; gap: 2px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--pt-line); }
.pt-app-side-foot a { padding: 7px 11px; color: var(--pt-muted); font-size: 12px; }
.pt-app-side-foot a:hover { color: var(--pt-accent); }
.pt-side-account {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 11px;
  border: 1px solid var(--pt-line); border-radius: 15px;
  background: var(--glass-soft);
}
.pt-side-account .pt-avatar { width: 34px; height: 34px; }
.pt-side-account strong { display: block; color: var(--pt-ink); font-size: 12.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-side-account span { display: block; color: var(--pt-faint); font-size: 10.5px; }
.pt-side-account a { margin-left: auto; color: var(--pt-accent); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pt-side-stat { display: flex; gap: 14px; padding: 12px 11px; color: var(--pt-muted); font-size: 11.5px; }
.pt-side-stat strong { color: var(--pt-ink); font-size: 15px; font-weight: 650; }

/* ---------- iCloud 风格页头 ---------- */
.pt-app-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; padding: 14px 4px 30px;
}
.pt-app-head .pt-kicker { margin: 0 0 8px; color: var(--pt-accent); font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.pt-app-head h1 { margin: 0 0 10px; color: var(--pt-ink); font-size: clamp(34px, 4vw, 52px); font-weight: 680; letter-spacing: -.05em; line-height: 1.1; }
.pt-app-head p:last-child { max-width: 56ch; margin: 0; color: var(--pt-muted); font-size: 14.5px; line-height: 1.7; }
.pt-head-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-head-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border: 1px solid var(--glass-border); border-radius: 999px;
  background: var(--glass); box-shadow: var(--glass-highlight);
  color: var(--pt-muted); font-size: 12px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.pt-head-pill strong { color: var(--pt-ink); font-size: 14px; font-weight: 650; }

/* ---------- Threads 式信息流 ---------- */
.pt-thread-feed {
  width: min(100%, 780px); margin: 0 auto;
  padding: 8px 22px 18px; border-radius: 30px;
}
.pt-feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 6px 14px; border-bottom: 1px solid var(--pt-line-soft); }
.pt-feed-head h1 { margin: 0; color: var(--pt-ink); font-size: 28px; font-weight: 680; letter-spacing: -.04em; }
.pt-feed-head p { margin: 4px 0 0; color: var(--pt-faint); font-size: 12.5px; }
.pt-feed-head .pt-feed-count { color: var(--pt-faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.pt-thread-section { padding: 24px 0 4px; }
.pt-thread-section + .pt-thread-section { border-top: 1px solid var(--pt-line); }
.pt-thread-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 6px 10px; }
.pt-thread-section-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--pt-ink); font-size: 14px; font-weight: 680; letter-spacing: -.01em; }
.pt-thread-section-head h2 .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pt-lime); box-shadow: 0 0 0 1px var(--pt-accent); }
.pt-thread-section-head span { color: var(--pt-faint); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.pt-thread-list { display: flex; flex-direction: column; }
.pt-thread {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px;
  padding: 16px 8px 14px; border-radius: 18px;
  transition: background-color .18s ease;
}
.pt-thread:hover { background: var(--glass-soft); }
.pt-thread + .pt-thread { border-top: 1px solid var(--pt-line-soft); }
.pt-thread-avatar { text-decoration: none; }
.pt-thread-avatar .pt-avatar { width: 42px; height: 42px; background: var(--glass-strong); }
.pt-thread-body { min-width: 0; }
.pt-thread-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--pt-faint); font-size: 11.5px; }
.pt-thread-meta a { color: var(--pt-ink); font-size: 12.5px; font-weight: 650; }
.pt-thread-meta a:hover { color: var(--pt-accent); }
.pt-thread-title { display: block; margin-top: 4px; color: var(--pt-ink); font-size: 16.5px; font-weight: 650; line-height: 1.42; letter-spacing: -.015em; }
.pt-thread-title:hover { color: var(--pt-accent); }
.pt-thread-text { margin: 5px 0 0; color: var(--pt-muted); font-size: 13.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pt-thread-cover { display: block; margin-top: 10px; overflow: hidden; border: 1px solid var(--pt-line-soft); border-radius: 16px; aspect-ratio: 16 / 7; background: var(--pt-surface-2); }
.pt-thread-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pt-thread-actions { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.pt-thread-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 2px; border: 0; border-radius: 8px;
  background: none; color: var(--pt-faint); font-size: 11.5px;
  transition: color .16s ease;
}
.pt-thread-action:hover { color: var(--pt-ink); }
.pt-thread-action.active { color: var(--pt-accent); }
.pt-thread-action.active svg { fill: currentColor; }
.pt-thread-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pt-thread-admin { display: inline-flex; gap: 5px; margin-left: auto; }
.pt-thread-admin button, .pt-thread-admin a {
  padding: 3px 8px; border: 1px solid var(--pt-line); border-radius: 999px;
  background: transparent; color: var(--pt-muted); font-size: 10px;
}
.pt-thread-admin button:hover, .pt-thread-admin a:hover { border-color: var(--pt-accent); color: var(--pt-accent); }
.pt-thread-admin button.on { border-color: var(--pt-lime); background: var(--pt-lime); color: var(--pt-lime-ink); }
.pt-thread-empty { padding: 26px 8px 30px; color: var(--pt-faint); font-size: 13px; }

/* 精选卡片 */
.pt-featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 4px 0 2px; }
.pt-featured-tile {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  border-radius: 18px; color: var(--pt-ink);
  transition: transform .2s ease, border-color .2s ease;
}
.pt-featured-tile:hover { transform: translateY(-2px); border-color: var(--pt-accent); color: var(--pt-ink); }
.pt-featured-tile .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--pt-faint); font-size: 10.5px; }
.pt-featured-tile h3 { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.4; letter-spacing: -.02em; }
.pt-featured-tile p { margin: 0; color: var(--pt-muted); font-size: 12px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-featured-tile .pt-thread-pin { align-self: flex-start; padding: 3px 8px; border-radius: 999px; background: var(--pt-lime); color: var(--pt-lime-ink); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; }

/* ---------- Apple Docs 文档框架 ---------- */
.pt-docs-frame {
  display: grid; grid-template-columns: 228px minmax(0, 1fr) 252px;
  gap: 22px; align-items: start;
  width: min(100% - 48px, 1480px);
  margin: 0 auto; padding: 22px 0 72px;
}
.pt-docs-sidebar, .pt-docs-rail { padding: 14px; border-radius: 24px; }
.pt-docs-main { min-width: 0; padding: clamp(24px, 3.4vw, 48px); border-radius: 30px; }
.pt-docs-main .pt-markdown { max-width: 74ch; }
.pt-docs-side-head { padding: 4px 8px 16px; }
.pt-docs-side-head strong { display: block; color: var(--pt-ink); font-size: 14px; font-weight: 650; }
.pt-docs-side-head span { display: block; margin-top: 3px; color: var(--pt-faint); font-size: 10.5px; }
.pt-docs-nav { display: grid; gap: 2px; }
.pt-docs-nav a, .pt-docs-nav button {
  display: flex; justify-content: space-between; gap: 10px;
  width: 100%; padding: 8px 10px; border: 0; border-radius: 9px;
  background: transparent; color: var(--pt-muted); font-size: 12.5px; text-align: left;
}
.pt-docs-nav a:hover, .pt-docs-nav button:hover { background: var(--pt-surface-2); color: var(--pt-ink); }
.pt-docs-nav a[aria-current="page"], .pt-docs-nav button[aria-pressed="true"] { background: var(--pt-accent-soft); color: var(--pt-accent); font-weight: 650; }
.pt-docs-nav span { color: var(--pt-faint); font-size: 10.5px; }
.pt-docs-rail h2 { margin: 4px 8px 10px; color: var(--pt-faint); font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.pt-docs-rail .pt-toc { margin: 0 0 20px; }
.pt-docs-rail .pt-rail-meta { margin: 0 8px 20px; }
.pt-docs-rail .pt-rail-links { margin: 0 8px; }
.pt-docs-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 24px; color: var(--pt-faint); font-size: 11.5px; }
.pt-docs-crumbs a { color: var(--pt-muted); }
.pt-docs-crumbs a:hover { color: var(--pt-accent); }
.pt-docs-head { padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--pt-line); }
.pt-docs-head h1 { margin: 0 0 14px; color: var(--pt-ink); font-size: clamp(30px, 3.8vw, 48px); font-weight: 680; line-height: 1.14; letter-spacing: -.045em; overflow-wrap: anywhere; }
.pt-docs-head .pt-summary { max-width: 66ch; margin: 0 0 18px; color: var(--pt-muted); font-size: 15px; line-height: 1.75; }
.pt-docs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--pt-faint); font-size: 12px; }
.pt-docs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pt-docs-cover { margin: 0 0 26px; overflow: hidden; border: 1px solid var(--pt-line-soft); border-radius: 20px; aspect-ratio: 16 / 7; background: var(--pt-surface-2); }
.pt-docs-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 评论 = Threads 式对话 */
.pt-comments { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--pt-line); }
.pt-comments-head h2 { font-size: 20px; }
.pt-comment { margin: 0 -10px; padding: 16px 10px; border: 0; border-top: 1px solid var(--pt-line-soft); border-radius: 14px; background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.pt-comment:hover { background: var(--glass-soft) !important; }
.pt-comment-form textarea, .pt-reply-form textarea { background: var(--glass-strong); border-color: var(--glass-border); }
.pt-comment-body { font-size: 13.5px; }

/* ---------- 知识库 / 个人库的 iCloud 质感 ---------- */
body[data-platform="knowledge"] .pt-dashboard-layout,
body.library-page .portal-shell { grid-template-columns: 248px minmax(0, 1fr); gap: 26px; width: min(100% - 48px, 1400px); padding-top: 22px; }
.pt-dashboard-sidebar, body.library-page .portal-side { padding: 14px; border-radius: 26px; }
.pt-dashboard-head { padding: 16px 4px 28px; }
.pt-dashboard-head h1 { font-size: clamp(34px, 4vw, 52px); }
.pt-dashboard-summary { border-radius: 18px; background: var(--glass); border-color: var(--glass-border); box-shadow: var(--glass-shadow), var(--glass-highlight); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); }
.pt-dashboard-tile { border-radius: 22px; background: var(--glass); border-color: var(--glass-border); box-shadow: var(--glass-shadow), var(--glass-highlight); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); }
.pt-dashboard-tile:nth-child(6n+1) .pt-dashboard-tile-symbol { background: linear-gradient(145deg, var(--pt-lime), #a9e23f); color: #101512; }
.pt-dashboard-tile:nth-child(6n+2) .pt-dashboard-tile-symbol { background: linear-gradient(145deg, #b9f0cf, #78d99c); color: #0b1a10; }
.pt-dashboard-tile:nth-child(6n+3) .pt-dashboard-tile-symbol { background: linear-gradient(145deg, #d8ff5a, #6ba84a); color: #101512; }
.pt-dashboard-tile:nth-child(6n+4) .pt-dashboard-tile-symbol { background: linear-gradient(145deg, #c9e7d4, #4f8a66); color: #0b1a10; }
.pt-dashboard-tile:nth-child(6n+5) .pt-dashboard-tile-symbol { background: linear-gradient(145deg, #e6ff96, #94c74b); color: #101512; }
.pt-dashboard-tile:nth-child(6n+6) .pt-dashboard-tile-symbol { background: linear-gradient(145deg, #9fe3b6, #2f7350); color: #f4fff7; }
.pt-personal-tile { border-radius: 22px; background: var(--glass); border-color: var(--glass-border); box-shadow: var(--glass-shadow), var(--glass-highlight); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); }
.pt-personal-tile-primary { background: linear-gradient(145deg, var(--glass-strong), rgba(216, 255, 90, .2)); }
.pt-personal-icon { background: linear-gradient(145deg, var(--pt-lime), #8fce4a) !important; color: #101512 !important; box-shadow: 0 8px 18px -10px rgba(31, 107, 69, .5); }
.pt-knowledge-list { grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; border: 1px solid var(--glass-border); border-radius: 24px; background: var(--glass); box-shadow: var(--glass-shadow), var(--glass-highlight); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%); }
.pt-knowledge-item { border: 0; border-bottom: 1px solid var(--pt-line-soft); border-radius: 0; background: transparent; box-shadow: none; padding: 20px 22px; }
.pt-knowledge-item:last-child { border-bottom: 0; }
.pt-knowledge-item:hover { background: var(--glass-soft); color: var(--pt-ink); box-shadow: none; transform: none; }
.pt-knowledge-toolbar { border-bottom: 0; }
.pt-filters button { background: var(--glass-soft); border-color: var(--glass-border); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.pt-filters button[aria-pressed="true"] { background: var(--pt-ink); border-color: var(--pt-ink); }
.pt-search-input input { background: var(--glass); border-color: var(--glass-border); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

/* 产品：iCloud 启动台 */
.pt-products-grid { gap: 16px; }
.pt-product-card { border-radius: 26px; background: var(--glass); border-color: var(--glass-border); box-shadow: var(--glass-shadow), var(--glass-highlight); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); }
.pt-product-card:hover { transform: translateY(-4px); border-color: var(--pt-accent); }
.pt-product-logo { padding: 6px 0; }
.pt-product-hero { border: 1px solid var(--glass-border); border-radius: 30px; padding: clamp(26px, 3.6vw, 46px); margin-bottom: 22px; -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); }
.pt-doc-placeholder .pt-card { border-radius: 20px; background: var(--glass-soft); border-color: var(--glass-border); box-shadow: none; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.pt-notice { border: 1px solid var(--glass-border); border-left: 3px solid var(--pt-lime); border-radius: 14px; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.pt-app-rail { padding: 18px; border-radius: 24px; }
.pt-app-rail h2 { margin: 0 0 10px; color: var(--pt-faint); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.pt-rail-list { display: grid; gap: 2px; margin: 0 0 20px; }
.pt-rail-list a { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 9px; color: var(--pt-muted); font-size: 12.5px; }
.pt-rail-list a:hover { background: var(--pt-surface-2); color: var(--pt-ink); }
.pt-rail-list a[aria-current="page"] { background: var(--pt-accent-soft); color: var(--pt-accent); font-weight: 650; }
.pt-rail-list img { width: 54px; max-height: 18px; object-fit: contain; }
html[data-theme="dark"] .pt-rail-list img { filter: brightness(0) invert(1); opacity: .75; }

/* 编辑器：Pages 式玻璃工作区 */
.pt-editor-frame { display: grid; grid-template-columns: 250px minmax(0, 1fr) 292px; gap: 22px; align-items: start; width: min(100% - 48px, 1480px); margin: 0 auto; padding: 22px 0 72px; }
.pt-editor-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.pt-editor { border-radius: 28px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), var(--glass-highlight); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); }
.pt-side-card { border-radius: 22px; }
.pt-mine-list { max-height: 46vh; }
.pt-mine-item { border-radius: 9px; }
.pt-editor textarea.pt-body { background: var(--glass-soft); }

/* 法律信息页沿用 Docs 材质 */
body[data-platform="info"] .legal-shell { padding-top: 22px; }
body[data-platform="info"] .legal-nav,
body[data-platform="info"] .doc-rail { border: 1px solid var(--glass-border); border-radius: 22px; background: var(--glass); box-shadow: var(--glass-shadow), var(--glass-highlight); padding: 16px; -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
body[data-platform="info"] .legal-article { padding: clamp(24px, 3.4vw, 44px); border: 1px solid var(--glass-border); border-radius: 28px; background: var(--glass-strong); box-shadow: var(--glass-shadow), var(--glass-highlight); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); }
body[data-platform="info"] .breadcrumb { padding: 8px 4px 20px; }

/* 404 */
.not-found { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 64px); padding: 40px 20px; }
.not-found-inner { width: min(100%, 880px); padding: clamp(28px, 5vw, 56px); border: 1px solid var(--glass-border); border-radius: 32px; background: var(--glass-strong); box-shadow: var(--glass-shadow), var(--glass-highlight); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); }
.not-found-code { color: var(--pt-line-strong); }
.not-found h1 { color: var(--pt-ink); }
.not-found p { color: var(--pt-muted); }

/* 响应式 */
@media (max-width: 1180px) {
  .pt-docs-frame { grid-template-columns: 220px minmax(0, 1fr); }
  .pt-docs-rail { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .pt-docs-rail > div { min-width: 0; }
}
@media (max-width: 1000px) {
  .pt-editor-frame { grid-template-columns: 230px minmax(0, 1fr); }
  .pt-editor-frame > .pt-editor-side:last-child { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-featured-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pt-app-frame, .pt-docs-frame, .pt-editor-frame { width: min(100% - 32px, 1400px); grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .pt-app-sidebar, .pt-docs-sidebar, .pt-app-rail, .pt-docs-rail, .pt-editor-side { position: static; }
  .pt-app-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-app-side-head { grid-column: 1 / -1; padding-bottom: 12px; }
  .pt-app-side-label, .pt-app-divider, .pt-app-side-foot, .pt-side-account { display: none; }
  .pt-app-nav { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-docs-sidebar { display: none; }
  .pt-docs-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-docs-main { padding: 20px; border-radius: 24px; }
  .pt-thread-feed { padding: 6px 12px 14px; border-radius: 24px; }
  .pt-editor-frame > .pt-editor-side:last-child { grid-template-columns: 1fr; }
  .pt-app-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  body[data-platform="knowledge"] .pt-dashboard-layout,
  body.library-page .portal-shell { width: min(100% - 32px, 1400px); grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pt-dashboard-sidebar, body.library-page .portal-side { position: static; display: block; }
  body.library-page .side-note { display: flex; margin: 12px 10px 0; }
  .pt-dashboard-sidebar-categories, body.library-page .portal-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pt-thread { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 14px 4px 12px; }
  .pt-thread-avatar .pt-avatar { width: 34px; height: 34px; font-size: 11px; }
  .pt-thread-title { font-size: 15.5px; }
  .pt-thread-text { font-size: 13px; }
  .pt-thread-actions { gap: 14px; }
  .pt-feed-head h1 { font-size: 24px; }
  .pt-head-pills { width: 100%; }
  .pt-head-pill { flex: 1; justify-content: center; }
  .pt-docs-rail { grid-template-columns: 1fr; }
  .pt-app-sidebar { grid-template-columns: 1fr; }
  .pt-app-nav { grid-template-columns: 1fr 1fr; }
  .pt-docs-main { padding: 16px; }
  .not-found-inner { padding: 24px; border-radius: 24px; }
}
/* 博客侧栏写作入口与精选列表 */
.pt-write-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 14px 6px 4px; padding: 11px 14px; border-radius: 12px;
  background: linear-gradient(145deg, var(--pt-lime), #b7e84a);
  color: #101512; font-size: 13px; font-weight: 700;
  box-shadow: 0 12px 26px -16px rgba(31, 107, 69, .75);
  transition: transform .18s ease, box-shadow .18s ease;
}
.pt-write-cta:hover { color: #101512; transform: translateY(-1px); box-shadow: 0 16px 30px -16px rgba(31, 107, 69, .8); }
.pt-side-featured { display: grid; gap: 3px; }
.pt-side-featured-item { display: grid; gap: 3px; padding: 9px 11px; border-radius: 11px; color: var(--pt-ink); }
.pt-side-featured-item:hover { background: var(--pt-surface-2); color: var(--pt-ink); }
.pt-side-featured-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; font-weight: 600; line-height: 1.45; }
.pt-side-featured-item small { color: var(--pt-faint); font-size: 10px; }
.pt-side-featured-pin { color: var(--pt-accent); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; }
.pt-side-featured .pt-thread-empty { padding: 8px 11px 12px; }

/* iCloud 细节收尾 */
body.library-page .pt-personal-profile {
  border: 1px solid var(--glass-border) !important;
  border-radius: 22px !important;
  background: var(--glass) !important;
  box-shadow: var(--glass-shadow), var(--glass-highlight) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
}
body.library-page .pt-dashboard-private,
body[data-platform="knowledge"] .pt-dashboard-private {
  border-color: var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.pt-app-side-head .pt-avatar.lg { width: 44px; height: 44px; font-size: 16px; }
@media (max-width: 900px) { .pt-side-featured { display: none; } }

/* 布局对齐与移动端侧栏压缩 */
body.library-page .pt-personal-profile .profile { margin-top: 0; border-top: 0; }
body.library-page .pt-personal-profile .profile div:first-child { border-top: 1px solid var(--pt-line); }
@media (max-width: 900px) {
  .pt-app-sidebar {
    display: flex; flex-direction: row; align-items: center; gap: 6px;
    padding: 8px; border-radius: 18px; overflow-x: auto;
  }
  .pt-app-side-head { display: none; }
  .pt-app-nav { display: flex; flex-direction: row; gap: 4px; flex: 1; }
  .pt-app-nav a { padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
  .pt-app-nav .count, .pt-app-nav .glyph { display: none; }
  .pt-write-cta { flex: none; margin: 0; padding: 9px 14px; }
  .pt-side-account, .pt-app-divider, .pt-app-side-label, .pt-side-featured, .pt-app-side-foot { display: none; }
}
.pt-side-stat strong { margin-right: 4px; }

/* 互动与个人库卡片补充 */
.pt-thread-actions { flex-wrap: wrap; }
body.library-page .feedback-card,
body.library-page .view > .card,
body.library-page .empty {
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
}
body.library-page .feedback-card:hover { border-color: var(--pt-accent); }

/* ============================================================
   知识库浏览器 — iCloud 风格文件列表
   浅色沿用 Apple 的留白与灰阶；深色以纯黑为底，绿色只做点缀
   ============================================================ */
body[data-platform="knowledge"]:not(.landing-page),
body.library-page:not(.landing-page) {
  --kb-canvas: #f5f5f7;
  --kb-surface: #ffffff;
  --kb-surface-2: #f5f5f7;
  --kb-elevated: #ffffff;
  --kb-ink: #1d1d1f;
  --kb-ink-soft: #3a3a3c;
  --kb-muted: #6e6e73;
  --kb-faint: #86868b;
  --kb-line: rgba(60, 60, 67, .12);
  --kb-line-soft: rgba(60, 60, 67, .07);
  --kb-accent: #1f6b45;
  --kb-accent-soft: rgba(31, 107, 69, .09);
  --kb-selected: #e8e8ed;
  --kb-hover: rgba(0, 0, 0, .035);
  --kb-topbar: rgba(245, 245, 247, .82);
  --kb-panel-shadow: 0 18px 50px -34px rgba(0, 0, 0, .18);
  --kb-radius: 20px;
}
html[data-theme="dark"] body[data-platform="knowledge"]:not(.landing-page),
html[data-theme="dark"] body.library-page:not(.landing-page) {
  --kb-canvas: #000000;
  --kb-surface: #0d0d0d;
  --kb-surface-2: #161616;
  --kb-elevated: #141414;
  --kb-ink: #f5f5f7;
  --kb-ink-soft: #d2d2d7;
  --kb-muted: #a1a1a6;
  --kb-faint: #7c7c80;
  --kb-line: rgba(255, 255, 255, .09);
  --kb-line-soft: rgba(255, 255, 255, .05);
  --kb-accent: #8ab79b;
  --kb-accent-soft: rgba(138, 183, 155, .13);
  --kb-selected: rgba(255, 255, 255, .075);
  --kb-hover: rgba(255, 255, 255, .045);
  --kb-topbar: rgba(0, 0, 0, .8);
  --kb-panel-shadow: none;
}
body[data-platform="knowledge"]:not(.landing-page),
body.library-page:not(.landing-page) {
  background-color: var(--kb-canvas);
  background-image: none;
  color: var(--kb-ink);
  font-family: "SF Pro Text", "SF Pro Display", "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
html[data-theme="dark"] body[data-platform="knowledge"]:not(.landing-page),
html[data-theme="dark"] body.library-page:not(.landing-page) { background-color: #000; }
body[data-platform="knowledge"]:not(.landing-page),
body.library-page:not(.landing-page) {
  --pt-accent: var(--kb-accent);
  --pt-accent-strong: var(--kb-accent);
  --pt-accent-soft: var(--kb-accent-soft);
}
html[data-theme="dark"] body[data-platform="knowledge"] .pt-login:hover,
html[data-theme="dark"] body.library-page .pt-login:hover { background: var(--kb-accent); color: #0b0f0c; }
body[data-platform="knowledge"] ::selection,
body.library-page ::selection { background: var(--kb-accent-soft); color: var(--kb-ink); }
body[data-platform="knowledge"] .pt-topbar,
body.library-page .pt-topbar {
  background: var(--kb-topbar);
  border-bottom-color: var(--kb-line);
  box-shadow: none;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
body[data-platform="knowledge"] .pt-footer,
body.library-page .pt-footer { background: var(--kb-canvas); border-top-color: var(--kb-line); }

/* ---------- 两栏骨架 ---------- */
.pt-browser-shell {
  position: relative;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 26px;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: 24px 0 80px;
  align-items: start;
  transition: grid-template-columns .26s cubic-bezier(.2, .7, .2, 1), gap .26s ease;
}
.pt-browser-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: calc(100vh - 120px);
  padding: 6px 6px 10px 2px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--kb-line) transparent;
  transition: opacity .18s ease, transform .22s ease;
}
.pt-browser-content {
  min-width: 0;
  min-height: calc(100vh - 190px);
  padding: 16px clamp(18px, 2.6vw, 34px) 34px;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius);
  background: var(--kb-surface);
  box-shadow: var(--kb-panel-shadow);
}
.pt-browser-scrim { display: none; }

/* ---------- 侧边栏 ---------- */
.pt-browser-brand { display: flex; flex-direction: row; align-items: center; gap: 11px; padding: 2px 10px 22px; }
.pt-browser-nav svg,
.pt-browser-iconbtn svg,
.pt-browser-accountbtn svg,
.pt-browser-search svg,
.pt-browser-file svg,
.pt-browser-empty-icon svg {
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.pt-browser-brand-copy { display: block; min-width: 0; }
.pt-browser-brand-copy strong { display: block; color: var(--kb-ink); font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.pt-browser-brand-copy span { display: block; margin-top: 2px; color: var(--kb-faint); font-size: 10.5px; letter-spacing: .02em; }
.pt-browser-label { margin: 20px 10px 7px; color: var(--kb-faint); font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.pt-browser-nav { display: grid; gap: 2px; }
.pt-browser-nav a,
.pt-browser-nav button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 34px; padding: 7px 10px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--kb-ink-soft);
  font-family: inherit; font-size: 13px; font-weight: 500;
  text-align: left; text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
.pt-browser-nav a:hover,
.pt-browser-nav button:hover { background: var(--kb-hover); color: var(--kb-ink); }
.pt-browser-nav a[aria-current="page"],
.pt-browser-nav button[aria-current="page"] { background: var(--kb-selected); color: var(--kb-ink); font-weight: 600; }
.pt-browser-nav a[aria-current="page"] svg,
.pt-browser-nav button[aria-current="page"] svg { color: var(--kb-accent); }
.pt-browser-nav svg { width: 17px; height: 17px; flex: none; color: var(--kb-faint); }
.pt-browser-nav a > span:not(.pt-browser-count),
.pt-browser-nav button > span:not(.pt-browser-count) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-browser-count { margin-left: auto; flex: none; color: var(--kb-faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.pt-browser-divider { height: 1px; margin: 18px 10px; background: var(--kb-line); }
.pt-browser-side-note { margin: auto 10px 0; padding-top: 22px; color: var(--kb-faint); font-size: 11px; line-height: 1.65; }
.pt-browser-account {
  display: flex; align-items: center; gap: 10px;
  margin: 24px 2px 0; padding: 16px 8px 4px;
  border-top: 1px solid var(--kb-line);
}
.pt-browser-avatar {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--kb-accent-soft); color: var(--kb-accent);
  font-size: 12.5px; font-weight: 650;
}
.pt-browser-account-copy { display: block; min-width: 0; }
.pt-browser-account-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kb-ink); font-size: 12.5px; font-weight: 600; }
.pt-browser-account-copy span { display: block; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kb-faint); font-size: 10.5px; }
.pt-browser-accountbtn {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; margin-left: auto; padding: 0;
  border: 0; border-radius: 7px;
  background: transparent; color: var(--kb-faint);
  transition: background-color .16s ease, color .16s ease;
}
.pt-browser-accountbtn:hover { background: var(--kb-hover); color: var(--kb-ink); }
.pt-browser-accountbtn svg { width: 16px; height: 16px; }

/* ---------- 工具栏与标题 ---------- */
.pt-browser-bar { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-bottom: 8px; }
.pt-browser-bar-main { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pt-browser-iconbtn {
  display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--kb-muted);
  transition: background-color .16s ease, color .16s ease;
}
.pt-browser-iconbtn:hover { background: var(--kb-hover); color: var(--kb-ink); }
.pt-browser-iconbtn svg { width: 18px; height: 18px; }
.pt-browser-search { position: relative; display: block; width: min(260px, 44vw); }
.pt-browser-search svg { position: absolute; left: 10px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--kb-faint); pointer-events: none; }
.pt-browser-search input {
  width: 100%; height: 32px; padding: 0 12px 0 32px;
  border: 1px solid var(--kb-line); border-radius: 9px;
  background: var(--kb-surface-2); color: var(--kb-ink);
  font-family: inherit; font-size: 12.5px; outline: none;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.pt-browser-search input::placeholder { color: var(--kb-faint); }
.pt-browser-search input:focus { border-color: var(--kb-accent); background: var(--kb-surface); box-shadow: 0 0 0 3px var(--kb-accent-soft); }
.pt-browser-head { padding: 16px 2px 22px; }
.pt-browser-head h1 {
  margin: 0 0 5px; color: var(--kb-ink);
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: clamp(26px, 3vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -.045em;
}
.pt-browser-head p { max-width: 68ch; margin: 0; color: var(--kb-muted); font-size: 13px; line-height: 1.65; }

/* ---------- 列表 ---------- */
.pt-browser-list { display: block; }
.pt-browser-columns {
  display: grid; gap: 16px; align-items: center;
  padding: 0 10px 8px; border-bottom: 1px solid var(--kb-line);
  color: var(--kb-faint); font-size: 11px; font-weight: 500;
}
.pt-browser-columns.is-official { grid-template-columns: minmax(0, 1fr) 132px 132px 104px 60px; }
.pt-browser-columns.is-personal { grid-template-columns: minmax(0, 1fr) 132px 128px 104px; }
.pt-browser-row {
  display: grid; gap: 16px; align-items: center;
  min-height: 50px; padding: 7px 10px;
  border-bottom: 1px solid var(--kb-line-soft); border-radius: 8px;
  color: var(--kb-ink); text-decoration: none;
  transition: background-color .14s ease;
}
.pt-browser-row.is-official { grid-template-columns: minmax(0, 1fr) 132px 132px 104px 60px; }
.pt-browser-row.is-personal { grid-template-columns: minmax(0, 1fr) 132px 128px 104px; }
.pt-browser-row:last-child { border-bottom-color: transparent; }
.pt-browser-row:hover { background: var(--kb-hover); color: var(--kb-ink); }
.pt-browser-group {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 22px 10px 6px; color: var(--kb-ink);
  font-size: 12.5px; font-weight: 600; letter-spacing: .005em;
}
.pt-browser-group-count { color: var(--kb-faint); font-size: 11px; font-weight: 400; }
.pt-browser-cell {
  min-width: 0; overflow: hidden;
  color: var(--kb-muted); font-size: 12.5px; line-height: 1.45;
  text-overflow: ellipsis; white-space: nowrap;
}
.pt-browser-cell.col-name { overflow: visible; }
.pt-browser-cell.is-date { color: var(--kb-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-browser-cell.is-status { overflow: visible; }
.pt-browser-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pt-browser-file {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--kb-accent-soft); color: var(--kb-accent);
}
.pt-browser-file.is-feedback { background: var(--kb-selected); color: var(--kb-muted); }
.pt-browser-file svg { width: 15px; height: 15px; }
.pt-browser-name-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.pt-browser-name-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kb-ink); font-size: 13px; font-weight: 500; }
.pt-browser-name-sub { display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kb-faint); font-size: 11px; }
.pt-browser-tags { display: flex; gap: 5px; overflow: hidden; }
.pt-browser-tag { padding: 2px 7px; border-radius: 999px; background: var(--kb-surface-2); color: var(--kb-muted); font-size: 10.5px; white-space: nowrap; }
.pt-browser-status { color: var(--kb-faint); font-size: 11.5px; }
.pt-browser-status.is-accent { color: var(--kb-accent); }
.pt-browser-dim { color: var(--kb-faint); }
.pt-browser-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 260px; padding: 42px 20px;
  color: var(--kb-muted); text-align: center;
}
.pt-browser-empty-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 6px;
  border-radius: 14px; background: var(--kb-surface-2); color: var(--kb-faint);
}
.pt-browser-empty-icon svg { width: 24px; height: 24px; stroke-width: 1.4; }
.pt-browser-empty strong { color: var(--kb-ink); font-size: 14px; font-weight: 600; }
.pt-browser-empty p { max-width: 42ch; margin: 0; color: var(--kb-muted); font-size: 12.5px; line-height: 1.65; }

/* ---------- 个人知识库：反馈表单与卡片 ---------- */
.pt-browser-form { max-width: 760px; padding: 2px 2px 6px; }
.pt-browser-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pt-browser-form .field {
  display: flex; flex-direction: column; gap: 7px; margin: 0 0 16px;
  color: var(--kb-ink-soft); font-family: inherit; font-size: 12.5px;
  font-weight: 500; letter-spacing: 0; text-transform: none;
}
.pt-browser-form .field input,
.pt-browser-form .field textarea,
.pt-browser-form .field select {
  width: 100%; padding: 9px 11px;
  border: 1px solid var(--kb-line); border-radius: 9px;
  background: var(--kb-surface-2); color: var(--kb-ink);
  font-family: inherit; font-size: 13px; letter-spacing: 0; text-transform: none;
  outline: none;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.pt-browser-form .field textarea { min-height: 180px; resize: vertical; line-height: 1.7; font-family: inherit; }
.pt-browser-form .field input:hover,
.pt-browser-form .field textarea:hover,
.pt-browser-form .field select:hover { border-color: var(--kb-line); }
.pt-browser-form .field input:focus,
.pt-browser-form .field textarea:focus,
.pt-browser-form .field select:focus {
  border-color: var(--kb-accent); background: var(--kb-surface);
  box-shadow: 0 0 0 3px var(--kb-accent-soft);
}
.pt-browser-form .field select {
  appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--kb-faint) 50%), linear-gradient(135deg, var(--kb-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.pt-browser-form .counter { align-self: flex-end; color: var(--kb-faint); font-family: inherit; font-size: 11px; letter-spacing: 0; text-transform: none; }
.pt-browser-form .form-error,
.pt-browser-form .form-success { margin: 10px 0 0; font-family: inherit; font-size: 12.5px; line-height: 1.6; }
.pt-browser-form .form-error { color: var(--pt-danger); }
.pt-browser-form .form-success { color: var(--kb-accent); }
.pt-browser-form .actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.pt-browser-form .button.primary {
  padding: 10px 18px; border: 1px solid var(--kb-ink); border-radius: 10px;
  background: var(--kb-ink); color: var(--kb-surface);
  font-family: inherit; font-size: 13px; font-weight: 600;
  transition: opacity .16s ease, background-color .16s ease;
}
.pt-browser-form .button.primary:hover { background: var(--kb-ink); color: var(--kb-surface); opacity: .86; transform: none; }
html[data-theme="dark"] .pt-browser-form .button.primary { border-color: var(--kb-accent); background: var(--kb-accent); color: #0b0f0c; }
html[data-theme="dark"] .pt-browser-form .button.primary:hover { background: var(--kb-accent); color: #0b0f0c; }
.pt-browser-form .actions .quiet { padding: 8px 0; color: var(--kb-muted); font-family: inherit; font-size: 12.5px; }
.pt-browser-form .actions .quiet:hover { color: var(--kb-accent); }
.pt-browser-feedback-list { display: grid; gap: 12px; padding-top: 4px; }
.pt-browser-feedback-list .feedback-card {
  padding: 18px 20px; border: 1px solid var(--kb-line); border-radius: 14px;
  background: var(--kb-surface); box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: border-color .16s ease;
}
.pt-browser-feedback-list .feedback-card:hover { border-color: var(--kb-line); box-shadow: none; transform: none; }
.pt-browser-feedback-list .feedback-top { gap: 6px; margin-bottom: 10px; }
.pt-browser-feedback-list .badge {
  padding: 3px 8px; border: 1px solid var(--kb-line); border-radius: 999px;
  color: var(--kb-muted); font-family: inherit; font-size: 10.5px;
  font-weight: 500; letter-spacing: 0; text-transform: none;
}
.pt-browser-feedback-list .badge.type { border-color: var(--kb-line); color: var(--kb-ink-soft); }
.pt-browser-feedback-list .status-pending,
.pt-browser-feedback-list .status-processing,
.pt-browser-feedback-list .status-resolved,
.pt-browser-feedback-list .status-closed { border-color: var(--kb-line); color: var(--kb-muted); }
.pt-browser-feedback-list .status-resolved { color: var(--kb-accent); border-color: var(--kb-accent-soft); }
.pt-browser-feedback-list .feedback-card h2 { margin: 0 0 6px; font-family: inherit; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.pt-browser-feedback-list .meta { margin: 0 0 12px; color: var(--kb-faint); font-family: inherit; font-size: 11px; letter-spacing: 0; }
.pt-browser-feedback-list .feedback-body { color: var(--kb-ink-soft); font-family: inherit; font-size: 13px; line-height: 1.75; }
.pt-browser-feedback-list .reply { margin-top: 16px; padding: 13px 15px; border-left: 2px solid var(--kb-accent); border-radius: 0 10px 10px 0; background: var(--kb-accent-soft); }
.pt-browser-feedback-list .reply strong { margin-bottom: 5px; color: var(--kb-accent); font-family: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.pt-browser-feedback-list .reply p { margin: 0; color: var(--kb-ink-soft); font-family: inherit; font-size: 12.5px; line-height: 1.7; }
.pt-browser-feedback-list .reply time,
.pt-browser-feedback-list .no-reply,
.pt-browser-feedback-list .feedback-reference { color: var(--kb-faint); font-family: inherit; font-size: 11.5px; }
.pt-browser-feedback-list .feedback-reference { margin: 12px 0 0; }
.pt-browser-feedback-list .feedback-reference a { color: var(--kb-accent); }

/* ---------- 桌面端收起侧边栏 ---------- */
@media (min-width: 901px) {
  .pt-browser-shell.is-collapsed { grid-template-columns: 0 minmax(0, 1fr); gap: 0; }
  .pt-browser-shell.is-collapsed .pt-browser-side {
    width: 0; padding: 0; opacity: 0; visibility: hidden;
    pointer-events: none; overflow: hidden;
    transform: translateX(-8px);
  }
}

/* ---------- 中等宽度：侧栏仍展开时让标题保留更多空间 ---------- */
@media (min-width: 901px) and (max-width: 1100px) {
  .pt-browser-columns.is-official,
  .pt-browser-row.is-official { grid-template-columns: minmax(0, 1fr) 120px 96px 58px; }
  .pt-browser-columns.is-official .col-tags,
  .pt-browser-row.is-official .col-tags { display: none; }
}

/* ---------- 移动端：侧边栏变成抽屉 ---------- */
@media (max-width: 900px) {
  .pt-browser-shell {
    display: block;
    width: min(100% - 24px, 1280px);
    padding: 12px 0 56px;
  }
  .pt-browser-side {
    position: fixed; z-index: 120;
    top: 72px; bottom: 0; left: 0;
    width: min(84vw, 300px); max-height: none;
    margin: 0; padding: 18px 14px 24px;
    border-right: 1px solid var(--kb-line);
    background: var(--kb-canvas);
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.2, .7, .2, 1);
  }
  .pt-browser-shell:not(.is-collapsed) .pt-browser-side {
    transform: none;
    visibility: visible;
    box-shadow: 22px 0 60px -36px rgba(0, 0, 0, .45);
  }
  .pt-browser-shell.is-collapsed .pt-browser-side { visibility: hidden; }
  .pt-browser-shell:not(.is-collapsed) .pt-browser-scrim {
    display: block; position: fixed; inset: 72px 0 0 0; z-index: 110;
    margin: 0; padding: 0; border: 0;
    background: rgba(0, 0, 0, .28);
  }
  .pt-browser-content { min-height: calc(100vh - 140px); padding: 12px 16px 28px; border-radius: 16px; }
  .pt-browser-account { margin-top: auto; }
}
@media (max-width: 760px) {
  .pt-browser-side { top: 68px; }
  .pt-browser-shell:not(.is-collapsed) .pt-browser-scrim { inset: 68px 0 0 0; }
  .pt-browser-columns.is-official,
  .pt-browser-row.is-official { grid-template-columns: minmax(0, 1fr) 92px; }
  .pt-browser-columns.is-personal,
  .pt-browser-row.is-personal { grid-template-columns: minmax(0, 1fr) 92px; }
  .pt-browser-cell.is-date { font-size: 11.5px; }
  .pt-browser-cell.is-status,
  .pt-browser-columns .is-status { display: none; }
  .pt-browser-columns .col-category,
  .pt-browser-columns .col-type,
  .pt-browser-columns .col-tags,
  .pt-browser-cell.col-category,
  .pt-browser-cell.col-type,
  .pt-browser-cell.col-tags { display: none; }
  .pt-browser-name-sub { display: block; }
  .pt-browser-search { width: min(200px, 50vw); }
  .pt-browser-form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  .pt-browser-columns.is-official,
  .pt-browser-row.is-official,
  .pt-browser-columns.is-personal,
  .pt-browser-row.is-personal { grid-template-columns: minmax(0, 1fr) 82px; }
  .pt-browser-columns .col-category,
  .pt-browser-columns .col-type,
  .pt-browser-columns .col-tags,
  .pt-browser-cell.col-category,
  .pt-browser-cell.col-type,
  .pt-browser-cell.col-tags { display: none; }
  .pt-browser-cell.is-date { font-size: 10.5px; }
  .pt-browser-search { width: 100%; }
  .pt-browser-bar-main { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-browser-shell,
  .pt-browser-side,
  .pt-browser-row,
  .pt-browser-nav a,
  .pt-browser-nav button { transition: none; }
}

/* ============================================================
   全宽应用布局 — 博客社区三栏 / 知识库贴边侧栏
   左右栏贴住视口边缘，中间内容尽量展开
   ============================================================ */
body[data-platform="knowledge"]:not(.landing-page),
body.library-page:not(.landing-page) {
  --kb-side-width: 282px;
}
body[data-platform="knowledge"] .pt-browser-shell,
body.library-page .pt-browser-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  grid-template-columns: var(--kb-side-width) minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 72px);
}
body[data-platform="knowledge"] .pt-browser-side,
body.library-page .pt-browser-side {
  top: 72px;
  height: calc(100vh - 72px);
  max-height: none;
  padding: 26px 18px 28px 28px;
  border-right: 1px solid var(--kb-line);
  background: var(--kb-canvas);
  border-radius: 0;
}
body[data-platform="knowledge"] .pt-browser-content,
body.library-page .pt-browser-content {
  min-height: calc(100vh - 72px);
  padding: 20px clamp(28px, 4vw, 72px) 56px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body[data-platform="knowledge"] .pt-browser-brand,
body.library-page .pt-browser-brand { padding: 2px 10px 24px; }
body[data-platform="knowledge"] .pt-browser-brand-copy strong,
body.library-page .pt-browser-brand-copy strong { font-size: 16px; }
body[data-platform="knowledge"] .pt-browser-nav a,
body[data-platform="knowledge"] .pt-browser-nav button,
body.library-page .pt-browser-nav a,
body.library-page .pt-browser-nav button { min-height: 38px; padding: 9px 11px; font-size: 13.5px; }
body[data-platform="knowledge"] .pt-browser-nav svg,
body.library-page .pt-browser-nav svg { width: 18px; height: 18px; }
body[data-platform="knowledge"] .pt-browser-label,
body.library-page .pt-browser-label { font-size: 11.5px; }
body.library-page .pt-browser-account { margin-top: auto; }

@media (max-width: 900px) {
  body[data-platform="knowledge"] .pt-browser-shell,
  body.library-page .pt-browser-shell { width: 100%; padding: 0; }
  body[data-platform="knowledge"] .pt-browser-side,
  body.library-page .pt-browser-side { height: auto; width: min(86vw, 320px); padding: 18px 16px 26px; }
  body[data-platform="knowledge"] .pt-browser-content,
  body.library-page .pt-browser-content { min-height: calc(100vh - 68px); padding: 14px 16px 40px; }
}

/* ---------- 博客社区：左栏 / 中间信息流 / 右侧概览 ---------- */
body[data-platform="blog"]:not(.landing-page) {
  --bl-canvas: #f5f5f7;
  --bl-surface: #ffffff;
  --bl-surface-2: #f5f5f7;
  --bl-card: #ffffff;
  --bl-ink: #1d1d1f;
  --bl-ink-soft: #3a3a3c;
  --bl-muted: #6e6e73;
  --bl-faint: #86868b;
  --bl-line: rgba(60, 60, 67, .12);
  --bl-line-soft: rgba(60, 60, 67, .07);
  --bl-accent: #1f6b45;
  --bl-accent-soft: rgba(31, 107, 69, .09);
  --bl-selected: #e8e8ed;
  --bl-hover: rgba(0, 0, 0, .035);
  --bl-topbar: rgba(245, 245, 247, .82);
  --pt-accent: var(--bl-accent);
  --pt-accent-strong: var(--bl-accent);
  --pt-accent-soft: var(--bl-accent-soft);
}
html[data-theme="dark"] body[data-platform="blog"]:not(.landing-page) {
  --bl-canvas: #000000;
  --bl-surface: #0d0d0d;
  --bl-surface-2: #161616;
  --bl-card: #141414;
  --bl-ink: #f5f5f7;
  --bl-ink-soft: #d2d2d7;
  --bl-muted: #a1a1a6;
  --bl-faint: #7c7c80;
  --bl-line: rgba(255, 255, 255, .09);
  --bl-line-soft: rgba(255, 255, 255, .05);
  --bl-accent: #8ab79b;
  --bl-accent-soft: rgba(138, 183, 155, .13);
  --bl-selected: rgba(255, 255, 255, .075);
  --bl-hover: rgba(255, 255, 255, .045);
  --bl-topbar: rgba(0, 0, 0, .8);
}
body[data-platform="blog"]:not(.landing-page) {
  background-color: var(--bl-canvas);
  background-image: none;
  color: var(--bl-ink);
}
html[data-theme="dark"] body[data-platform="blog"]:not(.landing-page) { background-color: #000; }
body[data-platform="blog"] .pt-topbar {
  background: var(--bl-topbar);
  border-bottom-color: var(--bl-line);
  box-shadow: none;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
body[data-platform="blog"] .pt-footer { background: var(--bl-canvas); border-top-color: var(--bl-line); }
html[data-theme="dark"] body[data-platform="blog"] .pt-login:hover { background: var(--bl-accent); color: #0b0f0c; }
body[data-platform="blog"] ::selection { background: var(--bl-accent-soft); color: var(--bl-ink); }

.pt-blog-main { min-height: calc(100vh - 72px); }
.pt-blog-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 290px;
  width: 100%;
  min-height: calc(100vh - 72px);
  align-items: start;
  background: var(--bl-canvas);
  transition: grid-template-columns .26s cubic-bezier(.2, .7, .2, 1);
}
.pt-blog-side {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
  padding: 26px 18px 28px 26px;
  border-right: 1px solid var(--bl-line);
  background: var(--bl-canvas);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bl-line) transparent;
  transition: opacity .18s ease, transform .22s ease;
}
.pt-blog-center {
  min-width: 0;
  min-height: calc(100vh - 72px);
  padding: 0 clamp(22px, 2vw, 36px) 72px;
  background: var(--bl-surface);
}
.pt-blog-rail {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  padding: 26px 24px 32px 22px;
  border-left: 1px solid var(--bl-line);
  background: var(--bl-canvas);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bl-line) transparent;
}
.pt-blog-scrim { display: none; }

/* 左栏 */
.pt-blog-brand { display: flex; flex-direction: row; align-items: center; gap: 11px; padding: 2px 8px 26px; }
.pt-blog-nav svg,
.pt-blog-iconbtn svg {
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.pt-blog-brand-copy { display: block; min-width: 0; }
.pt-blog-brand-copy strong { display: block; color: var(--bl-ink); font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.pt-blog-brand-copy span { display: block; margin-top: 2px; color: var(--bl-faint); font-size: 10.5px; letter-spacing: .02em; }
.pt-blog-label { margin: 20px 10px 7px; color: var(--bl-faint); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; }
.pt-blog-nav { display: grid; gap: 2px; }
.pt-blog-nav a {
  display: flex; align-items: center; gap: 10px;
  min-height: 38px; padding: 9px 11px; border-radius: 8px;
  color: var(--bl-ink-soft); font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
.pt-blog-nav a:hover { background: var(--bl-hover); color: var(--bl-ink); }
.pt-blog-nav a[aria-current="page"] { background: var(--bl-selected); color: var(--bl-ink); font-weight: 600; }
.pt-blog-nav a[aria-current="page"] svg { color: var(--bl-accent); }
.pt-blog-nav svg { width: 18px; height: 18px; flex: none; color: var(--bl-faint); }
.pt-blog-nav a > span:not(.pt-blog-count) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-blog-count { margin-left: auto; flex: none; color: var(--bl-faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.pt-blog-divider { height: 1px; margin: 18px 10px; background: var(--bl-line); }
.pt-blog-side-note { margin: auto 10px 0; padding-top: 22px; color: var(--bl-faint); font-size: 11px; line-height: 1.65; }
body[data-platform="blog"] .pt-side-account {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 6px 0; padding: 11px;
  border: 1px solid var(--bl-line); border-radius: 12px;
  background: var(--bl-surface-2);
}
body[data-platform="blog"] .pt-side-account .pt-avatar { width: 32px; height: 32px; border-color: var(--bl-line); background: var(--bl-surface); color: var(--bl-ink); }
body[data-platform="blog"] .pt-side-account strong { color: var(--bl-ink); font-size: 12.5px; font-weight: 600; }
body[data-platform="blog"] .pt-side-account span { color: var(--bl-faint); font-size: 10.5px; }
body[data-platform="blog"] .pt-side-account a { color: var(--bl-accent); }
body[data-platform="blog"] .pt-write-cta {
  margin: 18px 6px 0; padding: 10px 14px; border-radius: 9px;
  background: var(--bl-ink); color: var(--bl-surface);
  font-size: 13px; font-weight: 600; box-shadow: none;
}
body[data-platform="blog"] .pt-write-cta:hover { background: var(--bl-ink); color: var(--bl-surface); transform: none; box-shadow: none; opacity: .86; }
html[data-theme="dark"] body[data-platform="blog"] .pt-write-cta,
html[data-theme="dark"] body[data-platform="blog"] .pt-write-cta:hover,
html[data-theme="dark"] .pt-blog-topcta,
html[data-theme="dark"] .pt-blog-topcta:hover {
  background: var(--bl-accent-soft);
  color: var(--bl-accent);
}

/* 中间栏 */
.pt-blog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding-top: 12px; }
.pt-blog-iconbtn {
  display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--bl-muted);
  transition: background-color .16s ease, color .16s ease;
}
.pt-blog-iconbtn:hover { background: var(--bl-hover); color: var(--bl-ink); }
.pt-blog-iconbtn svg { width: 18px; height: 18px; }
.pt-blog-topcta {
  display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 9px;
  background: var(--bl-ink); color: var(--bl-surface);
  font-size: 12.5px; font-weight: 600;
  text-decoration: none;
  transition: opacity .16s ease;
}
.pt-blog-topcta:hover { color: var(--bl-surface); opacity: .86; }
html[data-theme="dark"] .pt-blog-topcta,
html[data-theme="dark"] .pt-blog-topcta:hover { background: var(--bl-accent-soft); color: var(--bl-accent); }
body[data-platform="blog"] .pt-blog-center .pt-app-head { padding: 18px 0 28px; }
body[data-platform="blog"] .pt-app-head .pt-kicker { color: var(--bl-accent); }
body[data-platform="blog"] .pt-app-head h1 { color: var(--bl-ink); font-size: clamp(34px, 3.8vw, 54px); }
body[data-platform="blog"] .pt-app-head p:last-child { color: var(--bl-muted); }
body[data-platform="blog"]:not(.landing-page) .pt-thread-feed {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body[data-platform="blog"] .pt-feed-head { padding: 20px 4px 14px; border-bottom: 1px solid var(--bl-line); }
body[data-platform="blog"] .pt-feed-head h1 { color: var(--bl-ink); font-size: 24px; font-weight: 600; letter-spacing: -.035em; }
body[data-platform="blog"] .pt-feed-head p,
body[data-platform="blog"] .pt-feed-head .pt-feed-count { color: var(--bl-faint); }
body[data-platform="blog"] .pt-thread-section { padding: 22px 0 4px; }
body[data-platform="blog"] .pt-thread-section + .pt-thread-section { border-top: 1px solid var(--bl-line-soft); }
body[data-platform="blog"] .pt-thread-section-head h2 { color: var(--bl-ink); font-size: 13px; font-weight: 600; }
body[data-platform="blog"] .pt-thread-section-head h2 .dot { background: var(--bl-accent); box-shadow: none; }
body[data-platform="blog"] .pt-thread-section-head span { color: var(--bl-faint); font-size: 10.5px; letter-spacing: .04em; }
body[data-platform="blog"] .pt-thread { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 6px; border-radius: 10px; }
body[data-platform="blog"] .pt-thread:hover { background: var(--bl-hover); }
body[data-platform="blog"] .pt-thread + .pt-thread { border-top: 1px solid var(--bl-line-soft); }
body[data-platform="blog"] .pt-thread-avatar .pt-avatar { width: 38px; height: 38px; border-color: var(--bl-line); background: var(--bl-surface-2); color: var(--bl-ink); }
body[data-platform="blog"] .pt-thread-meta { color: var(--bl-faint); }
body[data-platform="blog"] .pt-thread-meta a { color: var(--bl-ink); }
body[data-platform="blog"] .pt-thread-title { color: var(--bl-ink); font-size: 17px; font-weight: 600; }
body[data-platform="blog"] .pt-thread-title:hover { color: var(--bl-accent); }
body[data-platform="blog"] .pt-thread-text { color: var(--bl-muted); font-size: 13.5px; }
body[data-platform="blog"] .pt-chip { border-color: var(--bl-line); color: var(--bl-muted); letter-spacing: .02em; text-transform: none; }
body[data-platform="blog"] .pt-chip.official { border-color: transparent; background: var(--bl-accent-soft); color: var(--bl-accent); }
body[data-platform="blog"] .pt-chip.featured { border-color: var(--bl-line); background: var(--bl-surface-2); color: var(--bl-ink); }
body[data-platform="blog"] .pt-thread-action { color: var(--bl-faint); }
body[data-platform="blog"] .pt-thread-action:hover { color: var(--bl-ink); }
body[data-platform="blog"] .pt-thread-action.active { color: var(--bl-accent); }
body[data-platform="blog"] .pt-thread-admin button,
body[data-platform="blog"] .pt-thread-admin a { border-color: var(--bl-line); color: var(--bl-muted); }
body[data-platform="blog"] .pt-thread-admin button.on { border-color: var(--bl-accent-soft); background: var(--bl-accent-soft); color: var(--bl-accent); }
body[data-platform="blog"] .pt-thread-cover { border-color: var(--bl-line-soft); background: var(--bl-surface-2); }
body[data-platform="blog"] .pt-thread-empty { color: var(--bl-faint); }

/* 右栏 */
.pt-rail-card {
  padding: 18px; margin-bottom: 14px;
  border: 1px solid var(--bl-line); border-radius: 14px;
  background: var(--bl-card);
}
.pt-rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pt-rail-head h2 { margin: 0; color: var(--bl-faint); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.pt-rail-head a { color: var(--bl-muted); font-size: 11.5px; }
.pt-rail-stats { display: grid; gap: 10px; margin: 14px 0 0; }
.pt-rail-stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pt-rail-stats dt { color: var(--bl-muted); font-size: 12.5px; }
.pt-rail-stats dd { margin: 0; color: var(--bl-ink); font-size: 20px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.pt-rail-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--bl-line-soft); color: var(--bl-faint); font-size: 11.5px; }
.pt-rail-copy { margin: 2px 0 12px; color: var(--bl-muted); font-size: 12.5px; line-height: 1.7; }
.pt-rail-links { display: grid; gap: 7px; }
.pt-rail-links a { color: var(--bl-accent); font-size: 12.5px; }
.pt-blog-rail .pt-side-featured { gap: 2px; }
.pt-blog-rail .pt-side-featured-item { padding: 9px 10px; border-radius: 8px; color: var(--bl-ink); }
.pt-blog-rail .pt-side-featured-item:hover { background: var(--bl-hover); color: var(--bl-ink); }
.pt-blog-rail .pt-side-featured-item strong { font-size: 12.5px; }
.pt-blog-rail .pt-side-featured-item small { color: var(--bl-faint); }
.pt-blog-rail .pt-side-featured-pin { color: var(--bl-accent); font-size: 9.5px; font-weight: 600; letter-spacing: .02em; }
.pt-blog-rail .pt-thread-empty { padding: 8px 10px 10px; }

/* 桌面收起左栏 */
@media (min-width: 901px) {
  .pt-blog-shell.is-collapsed { grid-template-columns: 0 minmax(0, 1fr) 290px; }
  .pt-blog-shell.is-collapsed .pt-blog-side {
    width: 0; padding: 0; opacity: 0; visibility: hidden;
    pointer-events: none; overflow: hidden;
    transform: translateX(-8px);
  }
}
@media (max-width: 1240px) {
  .pt-blog-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .pt-blog-rail { display: none; }
  .pt-blog-featured-link { display: none; }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .pt-blog-shell.is-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
}

/* 移动端：左栏抽屉 */
@media (max-width: 900px) {
  .pt-blog-shell { display: block; min-height: calc(100vh - 72px); }
  .pt-blog-side {
    position: fixed; z-index: 120;
    top: 72px; bottom: 0; left: 0;
    width: min(86vw, 320px); height: auto;
    padding: 18px 16px 26px;
    border-right: 1px solid var(--bl-line);
    background: var(--bl-canvas);
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.2, .7, .2, 1);
  }
  .pt-blog-shell:not(.is-collapsed) .pt-blog-side {
    transform: none; visibility: visible;
    box-shadow: 22px 0 60px -36px rgba(0, 0, 0, .45);
  }
  .pt-blog-shell.is-collapsed .pt-blog-side { visibility: hidden; }
  .pt-blog-shell:not(.is-collapsed) .pt-blog-scrim {
    display: block; position: fixed; inset: 72px 0 0 0; z-index: 110;
    margin: 0; padding: 0; border: 0;
    background: rgba(0, 0, 0, .28);
  }
  .pt-blog-center { min-height: calc(100vh - 72px); padding: 0 18px 56px; }
  body[data-platform="blog"] .pt-side-account { display: flex; }
}
@media (max-width: 600px) {
  body[data-platform="blog"] .pt-app-head { padding: 12px 0 22px; }
  body[data-platform="blog"] .pt-app-head h1 { font-size: clamp(32px, 9vw, 42px); }
  body[data-platform="blog"] .pt-thread { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 16px 4px; }
  body[data-platform="blog"] .pt-thread-avatar .pt-avatar { width: 34px; height: 34px; }
  body[data-platform="blog"] .pt-thread-title { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-blog-shell,
  .pt-blog-side { transition: none; }
}

/* ============================================================
   顶栏账户区 — 头像、菜单与未登录入口
   ============================================================ */
.pt-auth { position: relative; margin-left: 0; margin-right: 0; }
.pt-auth .account-menu summary { width: 38px; height: 38px; padding: 0; }
.pt-topbar-avatar {
  width: 34px; height: 34px; padding: 0;
  border: 0; background: var(--pt-accent-soft); color: var(--pt-accent);
  font-family: inherit; font-size: 14px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
}
.pt-topbar-avatar.has-image,
.account-menu-avatar.has-image { padding: 0; overflow: hidden; background: transparent; }
.pt-topbar-avatar img,
.account-menu-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pt-account-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--pt-line); border-radius: 50%;
  background: var(--pt-surface); color: var(--pt-ink);
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.pt-account-icon:hover { color: var(--pt-accent); border-color: var(--pt-accent); background: var(--pt-surface-2); }
.pt-account-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pt-auth .account-menu-panel { right: 0; left: auto; min-width: 240px; }
.account-menu-identity {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--pt-line);
}
.account-menu-avatar {
  width: 36px; height: 36px; padding: 0;
  border: 0; background: var(--pt-accent-soft); color: var(--pt-accent);
  font-family: inherit; font-size: 15px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
}
.account-menu-identity > div { display: grid; gap: 1px; min-width: 0; }
.pt-auth .account-menu-identity strong {
  display: block; padding: 0; margin: 0; border: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--pt-ink); font-size: 13px; font-weight: 600;
}
.account-menu-identity > div > span { color: var(--pt-faint); font-size: 11px; }
.pt-auth .account-menu-exit {
  margin-top: 4px; border-top: 1px solid var(--pt-line);
  border-radius: 0 0 9px 9px; color: var(--pt-danger);
}
.pt-auth .account-menu-exit:hover { color: var(--pt-danger); background: var(--pt-surface-2); }
@media (max-width: 760px) {
  .pt-auth .account-menu-panel { right: 0; left: auto; min-width: min(260px, calc(100vw - 28px)); }
}

/* ============================================================
   产品中心 — 与知识库一致的全宽侧栏 + 六张产品快捷卡片
   ============================================================ */
body.products-page:not(.landing-page) {
  --kb-canvas: #f5f5f7;
  --kb-surface: #ffffff;
  --kb-surface-2: #f5f5f7;
  --kb-ink: #1d1d1f;
  --kb-ink-soft: #3a3a3c;
  --kb-muted: #6e6e73;
  --kb-faint: #86868b;
  --kb-line: rgba(60, 60, 67, .12);
  --kb-line-soft: rgba(60, 60, 67, .07);
  --kb-accent: #1f6b45;
  --kb-accent-soft: rgba(31, 107, 69, .09);
  --kb-selected: #e8e8ed;
  --kb-hover: rgba(0, 0, 0, .035);
  --kb-topbar: rgba(245, 245, 247, .82);
  --pt-accent: var(--kb-accent);
  --pt-accent-strong: var(--kb-accent);
  --pt-accent-soft: var(--kb-accent-soft);
}
html[data-theme="dark"] body.products-page:not(.landing-page) {
  --kb-canvas: #000000;
  --kb-surface: #0d0d0d;
  --kb-surface-2: #161616;
  --kb-ink: #f5f5f7;
  --kb-ink-soft: #d2d2d7;
  --kb-muted: #a1a1a6;
  --kb-faint: #7c7c80;
  --kb-line: rgba(255, 255, 255, .09);
  --kb-line-soft: rgba(255, 255, 255, .05);
  --kb-accent: #8ab79b;
  --kb-accent-soft: rgba(138, 183, 155, .13);
  --kb-selected: rgba(255, 255, 255, .075);
  --kb-hover: rgba(255, 255, 255, .045);
  --kb-topbar: rgba(0, 0, 0, .8);
}
body.products-page:not(.landing-page) {
  background-color: var(--kb-canvas);
  background-image: none;
  color: var(--kb-ink);
}
html[data-theme="dark"] body.products-page:not(.landing-page) { background-color: #000; }
body.products-page .pt-topbar {
  background: var(--kb-topbar);
  border-bottom-color: var(--kb-line);
  box-shadow: none;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
body.products-page .pt-footer { background: var(--kb-canvas); border-top-color: var(--kb-line); }
body.products-page .pt-browser-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 72px);
}
body.products-page .pt-browser-side {
  top: 72px;
  height: calc(100vh - 72px);
  max-height: none;
  padding: 26px 18px 28px 28px;
  border-right: 1px solid var(--kb-line);
  background: var(--kb-canvas);
  border-radius: 0;
}
body.products-page .pt-browser-content {
  min-height: calc(100vh - 72px);
  padding: 20px clamp(28px, 4vw, 72px) 56px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.products-page .pt-browser-brand { padding: 2px 10px 24px; }
body.products-page .pt-browser-brand-copy strong { font-size: 16px; }
body.products-page .pt-browser-nav a { min-height: 38px; padding: 9px 11px; font-size: 13.5px; }
body.products-page .pt-browser-nav svg { width: 18px; height: 18px; }
body.products-page .pt-browser-label { font-size: 11.5px; }

/* 产品文档侧栏计数 */
.pt-product-count { color: var(--kb-faint); font-size: 12px; }

@media (max-width: 900px) {
  body.products-page .pt-browser-shell { width: 100%; padding: 0; }
  body.products-page .pt-browser-side { height: auto; width: min(86vw, 320px); padding: 18px 16px 26px; }
  body.products-page .pt-browser-content { min-height: calc(100vh - 68px); padding: 14px 16px 40px; }
}

/* 窄屏顶栏：保留搜索、主题与菜单，隐藏语言和通知 */
@media (max-width: 760px) {
  .pt-tools .pt-menu-bell { display: none; }
}

/* 全宽侧栏的收起状态需要高于页面级网格声明 */
@media (min-width: 901px) {
  body[data-platform="knowledge"] .pt-browser-shell.is-collapsed,
  body.library-page .pt-browser-shell.is-collapsed,
  body.products-page .pt-browser-shell.is-collapsed { grid-template-columns: 0 minmax(0, 1fr); gap: 0; }
  body[data-platform="knowledge"] .pt-browser-shell.is-collapsed .pt-browser-side,
  body.library-page .pt-browser-shell.is-collapsed .pt-browser-side,
  body.products-page .pt-browser-shell.is-collapsed .pt-browser-side {
    width: 0; padding: 0; opacity: 0; visibility: hidden;
    pointer-events: none; overflow: hidden; transform: translateX(-8px);
  }
}

/* 侧栏品牌：无底衬的 A.doX 纯符号，使用页面品牌色 */
.pt-brand-symbol {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px;
}
.pt-brand-symbol svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.pt-browser-brand .pt-brand-symbol { color: var(--kb-accent); }
.pt-blog-brand .pt-brand-symbol { color: var(--bl-accent); }

/* ============================================================
   官方智库 — 统一文件导航 + 主区内嵌阅读
   ============================================================ */
body[data-platform="knowledge"] .pt-kb-side { overflow: hidden; }
body[data-platform="knowledge"] .pt-kb-content { padding-top: 14px; }

.pt-kb-history {
  display: flex; align-items: center; gap: 3px;
  margin: 8px 4px 10px; padding: 0 2px;
}
.pt-kb-history button {
  display: grid; place-items: center;
  width: 29px; height: 29px; padding: 0;
  border: 0; border-radius: 7px;
  background: transparent; color: var(--kb-muted);
  transition: background-color .16s ease, color .16s ease;
}
.pt-kb-history button:hover:not(:disabled) { background: var(--kb-hover); color: var(--kb-ink); }
.pt-kb-history button:disabled { opacity: .32; cursor: default; }
.pt-kb-history button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pt-kb-history-label {
  min-width: 0; margin-left: 5px; overflow: hidden;
  color: var(--kb-faint); font-size: 11.5px;
  text-overflow: ellipsis; white-space: nowrap;
}
.pt-kb-explorer {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 0 2px 10px;
  scrollbar-width: thin; scrollbar-color: var(--kb-line) transparent;
}
.pt-kb-explorer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 2px 10px 8px;
}
.pt-kb-explorer-count { flex: none; color: var(--kb-faint); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.pt-kb-crumbs {
  display: flex; align-items: center; gap: 4px;
  min-width: 0; overflow: hidden;
  color: var(--kb-faint); font-size: 11px;
}
.pt-kb-crumbs button {
  padding: 0; border: 0; background: transparent;
  color: var(--kb-muted); font: inherit; white-space: nowrap;
}
.pt-kb-crumbs button:hover { color: var(--kb-accent); }
.pt-kb-crumb-sep { flex: none; color: var(--kb-line-strong); }
.pt-kb-crumb-current { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kb-ink-soft); }
.pt-kb-tree { display: grid; gap: 1px; }
.pt-kb-tree-item {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 8px 10px;
  border: 0; border-radius: 7px;
  background: transparent; color: var(--kb-ink-soft);
  font: inherit; font-size: 12.5px; text-align: left;
  transition: background-color .14s ease, color .14s ease;
}
.pt-kb-tree-item:hover { background: var(--kb-hover); color: var(--kb-ink); }
.pt-kb-tree-item[aria-current="page"] { background: var(--kb-selected); color: var(--kb-ink); }
.pt-kb-tree-icon { display: grid; place-items: center; flex: none; width: 16px; height: 16px; color: var(--kb-faint); }
.pt-kb-tree-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pt-kb-tree-item.is-folder .pt-kb-tree-icon { color: var(--kb-accent); }
.pt-kb-tree-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-kb-tree-count { flex: none; margin-left: auto; color: var(--kb-faint); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.pt-kb-tree-empty { margin: 0; padding: 12px 10px; color: var(--kb-faint); font-size: 11.5px; }

.pt-kb-main { min-height: 420px; }
.pt-kb-head .pt-kb-crumbs { margin-bottom: 10px; }
.pt-kb-kicker { margin: 0 0 6px; color: var(--kb-accent); font-size: 11.5px; font-weight: 600; }
.pt-kb-section { margin-top: 30px; }
.pt-kb-section-head, .pt-kb-group-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
}
.pt-kb-section-head h2, .pt-kb-group-head h2 { margin: 0; color: var(--kb-ink); font-size: 14px; font-weight: 600; }
.pt-kb-section-head span, .pt-kb-group-head span { color: var(--kb-faint); font-size: 11px; }
.pt-kb-folder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pt-kb-folder-card {
  display: flex; align-items: center; gap: 13px;
  padding: 17px; border: 1px solid var(--kb-line); border-radius: 14px;
  background: var(--kb-surface); color: var(--kb-ink);
  font: inherit; text-align: left;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.pt-kb-folder-card:hover { transform: translateY(-1px); border-color: var(--kb-accent); background: var(--kb-surface-2); color: var(--kb-ink); }
.pt-kb-folder-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--kb-accent-soft); color: var(--kb-accent); }
.pt-kb-folder-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pt-kb-folder-copy { display: grid; gap: 2px; min-width: 0; }
.pt-kb-folder-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kb-ink); font-size: 13.5px; font-weight: 600; }
.pt-kb-folder-copy small { color: var(--kb-faint); font-size: 11px; }
.pt-kb-folder-arrow { margin-left: auto; color: var(--kb-faint); font-size: 15px; }
.pt-kb-folder-card:hover .pt-kb-folder-arrow { color: var(--kb-accent); }

.pt-kb-file-list { display: grid; }
.pt-kb-file-row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 120px 92px 18px;
  gap: 12px; align-items: center;
  width: 100%; min-height: 56px; padding: 10px 10px;
  border: 0; border-bottom: 1px solid var(--kb-line-soft); border-radius: 0;
  background: transparent; color: var(--kb-ink); font: inherit; text-align: left;
}
.pt-kb-file-row:hover { background: var(--kb-hover); color: var(--kb-ink); }
.pt-kb-file-row[aria-current="page"] { background: var(--kb-selected); }
.pt-kb-file-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--kb-accent-soft); color: var(--kb-accent); }
.pt-kb-file-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pt-kb-file-main { display: grid; gap: 2px; min-width: 0; }
.pt-kb-file-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kb-ink); font-size: 13px; font-weight: 500; }
.pt-kb-file-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kb-faint); font-size: 11px; }
.pt-kb-file-cat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kb-muted); font-size: 11.5px; }
.pt-kb-file-date { color: var(--kb-faint); font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pt-kb-file-arrow { color: var(--kb-faint); }
.pt-kb-file-row:hover .pt-kb-file-arrow { color: var(--kb-accent); }
.pt-kb-empty-actions { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.pt-kb-linkbtn {
  padding: 8px 14px; border: 1px solid var(--kb-line); border-radius: 8px;
  background: var(--kb-surface-2); color: var(--kb-ink-soft);
  font: inherit; font-size: 12px;
}
.pt-kb-linkbtn:hover { border-color: var(--kb-accent); color: var(--kb-accent); }

/* 阅读区 */
.pt-kb-reader { max-width: 1120px; margin: 0 auto; padding: 8px 0 56px; }
.pt-kb-reader > .pt-kb-crumbs { margin-bottom: 20px; }
.pt-kb-article-head { padding-bottom: 26px; margin-bottom: 32px; border-bottom: 1px solid var(--kb-line); }
.pt-kb-article-head .pt-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.pt-kb-article-head h1 {
  margin: 0 0 12px; color: var(--kb-ink);
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: clamp(32px, 3.6vw, 48px); font-weight: 600;
  line-height: 1.16; letter-spacing: -.045em;
}
.pt-kb-article-summary { max-width: 70ch; margin: 0 0 18px; color: var(--kb-muted); font-size: 15px; line-height: 1.8; }
.pt-kb-reader-layout {
  display: grid; grid-template-columns: minmax(0, 780px) 220px;
  gap: clamp(32px, 4vw, 64px); align-items: start;
}
.pt-kb-reader-layout .pt-markdown { max-width: 780px; color: var(--kb-ink-soft); }
.pt-kb-reader-layout .pt-markdown h1,
.pt-kb-reader-layout .pt-markdown h2,
.pt-kb-reader-layout .pt-markdown h3,
.pt-kb-reader-layout .pt-markdown h4 { color: var(--kb-ink); }
.pt-kb-toc { position: sticky; top: 96px; }
.pt-kb-toc h2 { margin: 0 0 10px; color: var(--kb-faint); font-size: 10.5px; font-weight: 600; letter-spacing: .03em; }
.pt-kb-toc .pt-toc { border-left-color: var(--kb-line); }
.pt-kb-toc .pt-toc a { color: var(--kb-muted); }
.pt-kb-toc .pt-toc a:hover { color: var(--kb-ink); }
.pt-kb-toc .pt-toc a.is-active { border-left-color: var(--kb-accent); color: var(--kb-ink); }
.pt-kb-reader-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 44px; padding-top: 20px;
  border-top: 1px solid var(--kb-line);
  color: var(--kb-faint); font-size: 11.5px;
}

@media (max-width: 1180px) {
  .pt-kb-folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-kb-reader-layout { grid-template-columns: minmax(0, 1fr); }
  .pt-kb-toc { display: none; }
}
@media (max-width: 760px) {
  .pt-kb-folder-grid { grid-template-columns: minmax(0, 1fr); }
  .pt-kb-file-row { grid-template-columns: 28px minmax(0, 1fr) 18px; gap: 10px; }
  .pt-kb-file-cat, .pt-kb-file-date { display: none; }
  .pt-kb-article-head h1 { font-size: clamp(28px, 8vw, 38px); }
  .pt-kb-reader { padding-bottom: 32px; }
  .pt-kb-reader-foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-kb-folder-card, .pt-kb-tree-item, .pt-kb-file-row, .pt-kb-history button { transition: none; }
}

/* 阅读页标签：去掉荧光官方底色，保持知识库的低调绿色 */
body[data-platform="knowledge"] .pt-chip {
  border-color: var(--kb-line); background: var(--kb-surface-2); color: var(--kb-muted);
}
body[data-platform="knowledge"] .pt-chip.official {
  border-color: transparent; background: var(--kb-accent-soft); color: var(--kb-accent);
}

/* 文件夹切换的淡入位移动效 */
.pt-kb-enter { animation: pt-kb-enter .26s cubic-bezier(.2, .7, .2, 1) both; }
.pt-kb-explorer.pt-kb-enter { animation-name: pt-kb-enter-side; }
@keyframes pt-kb-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pt-kb-enter-side {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .pt-kb-enter { animation: none; }
}

/* ============================================================
   产品文档 — 纯色引导卡片与文件夹式文档浏览
   ============================================================ */
.pt-product-guide-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin-top: 4px;
}
.pt-product-guide-card {
  display: grid; place-items: center;
  min-height: 154px; padding: 30px;
  border: 1px solid var(--kb-line); border-radius: 16px;
  background: var(--kb-surface-2); color: var(--kb-ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.pt-product-guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--kb-line-strong);
  background: var(--kb-surface);
  color: var(--kb-ink);
}
.pt-product-guide-card .pt-product-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: auto; }
.pt-product-guide-card .pt-product-logo img { max-width: min(72%, 220px); max-height: 42px; width: auto; }

.pt-product-folder-head {
  display: flex; align-items: flex-start; gap: 22px;
  padding: 8px 0 28px; border-bottom: 1px solid var(--kb-line);
}
.pt-product-folder-logo { display: flex; align-items: center; flex: none; height: 48px; }
.pt-product-folder-logo img { max-width: 220px; max-height: 48px; width: auto; }
.pt-product-folder-copy { min-width: 0; }
.pt-product-folder-desc { max-width: 64ch; margin: 0 0 10px; color: var(--kb-muted); font-size: 14px; line-height: 1.75; }
.pt-product-folder-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--kb-faint); font-size: 11.5px; }
.pt-product-file-row { grid-template-columns: 28px minmax(0, 1fr) 18px; }

.pt-product-overview-head .pt-product-overview-logo { display: flex; align-items: center; height: 36px; margin-bottom: 18px; }
.pt-product-overview-head .pt-product-overview-logo img { max-width: 210px; max-height: 36px; width: auto; }
.pt-product-info h2 { margin: 0 0 12px; color: var(--kb-faint); font-size: 10.5px; font-weight: 600; letter-spacing: .03em; }
.pt-product-info-list { display: grid; gap: 12px; margin: 0; }
.pt-product-info-list div { display: grid; gap: 2px; }
.pt-product-info-list dt { color: var(--kb-faint); font-size: 11px; }
.pt-product-info-list dd { margin: 0; color: var(--kb-ink-soft); font-size: 12.5px; }

@media (max-width: 1180px) { .pt-product-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .pt-product-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .pt-product-folder-head { flex-direction: column; gap: 14px; }
  .pt-product-guide-card { min-height: 132px; padding: 24px; }
}

/* ============================================================
   登录页 — 数字流品牌区与账号确认
   ============================================================ */
html[data-theme] .auth-page .auth-brand {
  background: radial-gradient(ellipse at 26% 18%, #12221a 0%, #070b09 58%, #050806 100%);
  color: #f5faf6;
}
html[data-theme] .auth-page .auth-brand::before,
html[data-theme] .auth-page .auth-brand::after { display: none; }
.auth-flow {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  opacity: .82; pointer-events: none;
}
.auth-brand-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 8, 6, .06) 25%, rgba(5, 8, 6, .72) 90%);
}
html[data-theme] .auth-page .auth-arasaka-mark {
  position: relative; z-index: 2;
  height: 28px; width: auto; max-width: 190px;
  filter: brightness(0) invert(1);
}
html[data-theme] .auth-page .auth-slogan {
  position: relative; z-index: 2;
  max-width: 12ch; margin: 0;
  color: #f5faf6;
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 650; line-height: 1.06; letter-spacing: -.05em;
}
/* 浅色主题：左侧换成比纯白略灰的浅色底，遮罩同步改为浅色。 */
html[data-theme="light"] .auth-page .auth-brand {
  background: radial-gradient(ellipse at 26% 18%, #f7f7f9 0%, #f0f0f3 58%, #ebebee 100%);
  color: var(--pt-ink);
}
html[data-theme="light"] .auth-page .auth-brand-veil {
  background: linear-gradient(180deg, rgba(235, 235, 238, 0) 25%, rgba(235, 235, 238, .7) 90%);
}
html[data-theme="light"] .auth-page .auth-slogan { color: var(--pt-ink); }

.auth-form-logo { display: block; height: 28px; width: auto; margin: 0 0 18px; }
html[data-theme="dark"] .auth-form-logo { filter: brightness(0) invert(1); }
/* 两行说明文字已移除，用等高留白保持与原布局一致的纵向比例。 */
.auth-gap-top { height: 42px; }
.auth-gap-bottom { height: 50px; }
.auth-session {
  padding: 16px; margin: 0 0 18px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface);
}
.auth-session-user { display: flex; align-items: center; gap: 11px; min-width: 0; }
.auth-session-avatar {
  width: 38px; height: 38px; flex: none;
  border: 0; background: var(--pt-accent-soft); color: var(--pt-accent);
  font-size: 14px; font-weight: 600;
}
.auth-session-user > div { display: grid; gap: 1px; min-width: 0; }
.auth-session-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 14px; font-weight: 650; }
.auth-session-user span:not(.auth-session-avatar) { color: var(--muted); font-size: 11.5px; }
.auth-session-actions { display: grid; gap: 8px; margin-top: 14px; }
.auth-session-actions .auth-id-button { margin: 0; }
.auth-secondary {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--ink-soft);
  font: inherit; font-size: 12px;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}
.auth-secondary:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.auth-session-error { margin: 10px 0 0; color: var(--danger); font-size: 11.5px; }
.auth-other-account { margin: 12px 0 0; text-align: center; }
.auth-other-account a { color: var(--muted); font-size: 11.5px; }
.auth-other-account a:hover { color: var(--accent); }
html[data-theme="dark"] .auth-page .auth-id-button { color: #08110c; }
html[data-theme="dark"] .auth-page .auth-id-button:hover { color: #08110c; }

@media (max-width: 900px) {
  html[data-theme] .auth-page .auth-slogan { font-size: clamp(38px, 9vw, 52px); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-flow { opacity: .38; }
}

.auth-form-side { position: relative; overflow: hidden; }
.auth-form-side .auth-card { position: relative; z-index: 1; }

/* 登录页统一字体 */
.auth-page,
.auth-page .kicker,
.auth-page .auth-hint,
.auth-page .auth-switch,
.auth-page .auth-id-button,
.auth-page .auth-other-account a,
.auth-page .auth-secondary,
.auth-page .auth-session,
.auth-page .auth-session-user strong,
.auth-page .auth-session-user span,
.auth-page .auth-card h1,
.auth-page .auth-slogan {
  font-family: "SF Pro Text", "SF Pro Display", "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* 登录页品牌：左侧只保留 slogan，ArasakaToru 置于右侧登录标题上方 */
html[data-theme] .auth-page .auth-brand { justify-content: flex-end; }
.auth-title { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
/* 文字墨迹中心比行盒中心低约 .05em，微调后与“登录”两字视觉居中对齐。 */
.auth-title-logo { height: .7em; width: auto; transform: translateY(.05em); }
html[data-theme="dark"] .auth-title-logo { filter: brightness(0) invert(1); }

/* 侧栏“其他空间”固定在底部 */
.pt-side-bottom { margin-top: auto; }
.pt-blog-side-bottom { margin-top: auto; }

/* 博客社区 — X 式时间线 */
body[data-platform="blog"] .pt-blog-center { padding: 0; }
body[data-platform="blog"]:not(.landing-page) .pt-thread-feed {
  width: min(100%, 820px);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 0 20px 64px;
  border-left: 1px solid var(--bl-line);
  border-right: 1px solid var(--bl-line);
  background: var(--bl-surface);
}
.pt-feed-tabs-bar {
  position: sticky; top: 72px; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  height: 56px; margin: 0 -20px; padding: 0 10px;
  background: color-mix(in srgb, var(--bl-surface) 86%, transparent);
  border-bottom: 1px solid var(--bl-line);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}
.pt-feed-tabs { display: flex; flex: 1; height: 100%; }
.pt-feed-tabs button {
  position: relative; flex: 1;
  border: 0; background: transparent; color: var(--bl-muted);
  font: inherit; font-size: 14px; font-weight: 600;
  transition: background-color .16s ease, color .16s ease;
}
.pt-feed-tabs button:hover { background: var(--bl-hover); color: var(--bl-ink); }
.pt-feed-tabs button[aria-selected="true"] { color: var(--bl-ink); }
.pt-feed-tabs button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 48px; height: 2px; border-radius: 2px;
  transform: translateX(-50%); background: var(--bl-accent);
}
.pt-feed-compose {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px;
  border: 1px solid var(--bl-line); border-radius: 50%;
  color: var(--bl-ink); font-size: 22px; line-height: 1;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.pt-feed-compose:hover { background: var(--bl-hover); border-color: var(--bl-line-strong); color: var(--bl-accent); }
body[data-platform="blog"] .pt-thread {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px; padding: 16px 4px; border-radius: 0;
}
body[data-platform="blog"] .pt-thread + .pt-thread { border-top: 1px solid var(--bl-line-soft); }
body[data-platform="blog"] .pt-thread-actions { justify-content: space-between; gap: 10px; max-width: 520px; }
body[data-platform="blog"] .pt-thread-admin { margin-left: auto; }
body[data-platform="blog"] .pt-thread-title { font-size: 17px; }
body[data-platform="blog"] .pt-thread-text { font-size: 13.5px; }
@media (max-width: 900px) {
  body[data-platform="blog"]:not(.landing-page) .pt-thread-feed {
    width: 100%; min-height: calc(100vh - 72px);
    padding: 0 16px 48px; border-left: 0; border-right: 0;
  }
  .pt-feed-tabs-bar { top: 72px; margin: 0 -16px; }
}
@media (max-width: 760px) {
  .pt-blog-shell { min-height: calc(100vh - 68px); }
  .pt-blog-side { top: 68px; }
  .pt-blog-shell:not(.is-collapsed) .pt-blog-scrim { inset: 68px 0 0 0; }
  .pt-blog-center { min-height: calc(100vh - 68px); }
  body[data-platform="blog"]:not(.landing-page) .pt-thread-feed { min-height: calc(100vh - 68px); }
  .pt-feed-tabs-bar { top: 68px; }
}

/* ============================================================
   移动端 — 底部主导航、抽屉与单列阅读
   ============================================================ */
.pt-mobile-nav { display: none; }

@media (max-width: 900px) {
  body.has-mobile-nav { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  body.has-mobile-nav .pt-nav,
  body.has-mobile-nav #ptMenuToggle { display: none !important; }
  .pt-mobile-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--pt-line);
    background: var(--pt-topbar);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
  .pt-mobile-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; min-height: 46px; padding: 4px 2px;
    border-radius: 10px;
    color: var(--pt-muted); font-size: 10px; font-weight: 550;
    text-decoration: none;
  }
  .pt-mobile-nav a[aria-current="page"] { color: var(--pt-accent); }
  .pt-mobile-nav a:active { background: var(--pt-surface-2); }
  .pt-mobile-nav-icon { display: grid; place-items: center; width: 22px; height: 22px; }
  .pt-mobile-nav-icon svg {
    width: 20px; height: 20px; fill: none; stroke: currentColor;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  }
  .pt-mobile-nav-label { line-height: 1.2; }

  /* 博客时间线占满宽度，保留底部安全距离 */
  body[data-platform="blog"]:not(.landing-page) .pt-thread-feed {
    padding-bottom: 56px;
  }

  /* 文章阅读页去掉两侧导航，正文独占屏幕 */
  body[data-platform="blog"] .pt-docs-frame {
    width: min(100% - 24px, 760px);
    padding-top: 10px;
  }
  body[data-platform="blog"] .pt-docs-sidebar,
  body[data-platform="blog"] .pt-docs-rail { display: none; }
  body[data-platform="blog"] .pt-docs-main { padding: 16px 18px 32px; }

  /* 作者页优先展示帖子流 */
  body[data-platform="blog"] .pt-app-frame {
    width: min(100% - 24px, 760px);
    padding-top: 12px;
  }
  body[data-platform="blog"] .pt-app-frame > .pt-app-sidebar { display: none; }
  body[data-platform="blog"] .pt-app-frame .pt-thread-feed { width: 100%; padding: 0; border: 0; min-height: 0; }
}

@media (max-width: 760px) {
  /* 登录页在手机上直接进入表单，隐藏装饰性品牌区 */
  .auth-page { grid-template-columns: minmax(0, 1fr); min-height: calc(100svh - 68px); }
  .auth-brand { display: none; }
  .auth-form-side { min-height: calc(100svh - 68px); padding: 34px 22px 56px; }
  .auth-card { width: 100%; }
  .auth-card h1 { font-size: clamp(34px, 10vw, 46px); }
  .auth-title-logo { height: .68em; }
  .auth-session { padding: 14px; }
}

@media (max-width: 560px) {
  body.has-mobile-nav { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .pt-mobile-nav { padding-top: 4px; }
  .pt-mobile-nav a { min-height: 44px; }
  .pt-mobile-nav-label { font-size: 9.5px; }
  body[data-platform="knowledge"] .pt-browser-content,
  body.library-page .pt-browser-content,
  body.products-page .pt-browser-content { padding: 12px 14px 34px; }
  body[data-platform="blog"] .pt-thread-feed { padding-left: 14px; padding-right: 14px; }
  .pt-feed-tabs-bar { margin-left: -14px; margin-right: -14px; padding-left: 6px; padding-right: 6px; }
  .pt-feed-tabs button { font-size: 13px; }
  body[data-platform="blog"] .pt-thread { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 14px 2px; }
  body[data-platform="blog"] .pt-thread-avatar .pt-avatar { width: 34px; height: 34px; font-size: 11px; }
  body[data-platform="blog"] .pt-thread-title { font-size: 15.5px; }
  body[data-platform="blog"] .pt-thread-text { font-size: 13px; }
  body[data-platform="blog"] .pt-thread-actions { max-width: none; gap: 14px; }
}

/* ============================================================
   博客三栏桌面：左右栏对齐官方智库宽度，中间时间线铺满剩余空间
   ============================================================ */
@media (min-width: 901px) {
  body[data-platform="blog"] .pt-blog-shell {
    grid-template-columns: 282px minmax(0, 1fr) 282px;
    gap: 0;
  }
  body[data-platform="blog"] .pt-blog-shell.is-collapsed {
    grid-template-columns: 0 minmax(0, 1fr) 282px;
  }
  body[data-platform="blog"]:not(.landing-page) .pt-thread-feed {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 28px 64px;
    border-left: 0;
    border-right: 0;
  }
  .pt-feed-tabs-bar { margin: 0 -28px; }
}
@media (min-width: 901px) and (max-width: 1240px) {
  body[data-platform="blog"] .pt-blog-shell { grid-template-columns: 282px minmax(0, 1fr); }
  body[data-platform="blog"] .pt-blog-rail { display: none; }
  body[data-platform="blog"] .pt-blog-shell.is-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
}

/* ============================================================
   站点信息 — 顶部站点导航 + 文档目录 + 正文
   ============================================================ */
body.site-info-page {
  --si-canvas: #f5f5f7;
  --si-surface: #ffffff;
  --si-surface-2: #f5f5f7;
  --si-ink: #1d1d1f;
  --si-ink-soft: #3a3a3c;
  --si-muted: #6e6e73;
  --si-faint: #86868b;
  --si-line: rgba(60, 60, 67, .12);
  --si-line-strong: rgba(60, 60, 67, .2);
  --si-accent: #1f6b45;
  --si-accent-soft: rgba(31, 107, 69, .08);
  --si-topbar: rgba(245, 245, 247, .84);
  --si-panel-shadow: 0 22px 60px -46px rgba(0, 0, 0, .3);
  --pt-accent: var(--si-accent);
  --pt-accent-strong: var(--si-accent);
  --pt-accent-soft: var(--si-accent-soft);
}
html[data-theme="dark"] body.site-info-page {
  --si-canvas: #000000;
  --si-surface: #0d0d0d;
  --si-surface-2: #161616;
  --si-ink: #f5f5f7;
  --si-ink-soft: #d2d2d7;
  --si-muted: #a1a1a6;
  --si-faint: #7c7c80;
  --si-line: rgba(255, 255, 255, .09);
  --si-line-strong: rgba(255, 255, 255, .16);
  --si-accent: #8ab79b;
  --si-accent-soft: rgba(138, 183, 155, .13);
  --si-topbar: rgba(0, 0, 0, .82);
  --si-panel-shadow: none;
}
body.site-info-page {
  background-color: var(--si-canvas);
  background-image: none;
  color: var(--si-ink);
}
html[data-theme="dark"] body.site-info-page { background-color: #000; }
body.site-info-page .pt-topbar {
  background: var(--si-topbar);
  border-bottom-color: var(--si-line);
  box-shadow: none;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
body.site-info-page .pt-footer { background: var(--si-canvas); border-top-color: var(--si-line); }
body.site-info-page ::selection { background: var(--si-accent-soft); color: var(--si-ink); }

.site-info-main { padding: 0 0 88px; }
.site-info-shell { width: min(100% - 48px, 1180px); margin: 0 auto; }
.site-info-head { padding: clamp(48px, 6vw, 78px) 0 34px; border-bottom: 1px solid var(--si-line); }
.site-info-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--si-accent); font-size: 11.5px; font-weight: 650; letter-spacing: .04em; }
.site-info-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--si-accent); }
.site-info-head h1 {
  margin: 0 0 16px; color: var(--si-ink);
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: clamp(42px, 5.6vw, 68px); font-weight: 650;
  line-height: 1.05; letter-spacing: -.055em;
}
.site-info-lead { max-width: 62ch; margin: 0; color: var(--si-muted); font-size: 16px; line-height: 1.8; }
.site-info-meta { margin: 20px 0 0; color: var(--si-faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.site-info-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); align-items: start; padding-top: 36px; }
.site-info-rail { position: sticky; top: 100px; display: grid; gap: 30px; min-width: 0; }
.site-info-rail-label { margin: 0 0 10px; color: var(--si-faint); font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.site-info-rail .pt-toc { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--si-line); }
.site-info-rail .pt-toc a { display: block; padding: 5px 0 5px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--si-muted); font-size: 12px; line-height: 1.5; }
.site-info-rail .pt-toc a:hover { color: var(--si-ink); }
.site-info-rail .pt-toc a.is-active { border-left-color: var(--si-accent); color: var(--si-ink); font-weight: 550; }
.site-info-rail .pt-toc a.sub { padding-left: 22px; font-size: 11.5px; }
.site-info-rail .pt-toc-empty { margin: 0; padding-left: 12px; color: var(--si-faint); font-size: 12px; }
.site-info-quick { display: grid; gap: 8px; }
.site-info-quick a { color: var(--si-accent); font-size: 12.5px; }
.site-info-quick a:hover { color: var(--si-ink); }
.site-info-article {
  min-width: 0; padding: clamp(26px, 3.6vw, 46px);
  border: 1px solid var(--si-line); border-radius: 22px;
  background: var(--si-surface);
  box-shadow: var(--si-panel-shadow);
  color: var(--si-muted);
}
.site-info-article h1, .site-info-article h2, .site-info-article h3, .site-info-article h4 { color: var(--si-ink); }
.site-info-article h2 {
  margin-top: 2.3em; padding-top: 1.15em;
  border-top: 1px solid var(--si-line); border-bottom: 0;
}
.site-info-article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.site-info-article p, .site-info-article li { color: var(--si-muted); }
.site-info-article strong { color: var(--si-ink-soft); }
.site-info-article a { color: var(--si-accent); }
.site-info-article li::marker { color: var(--si-accent); }
.site-info-article code { border: 1px solid var(--si-line); background: var(--si-surface-2); color: var(--si-ink-soft); }
.site-info-article pre { border: 1px solid var(--si-line); background: var(--si-surface-2); }
.site-info-article blockquote { border-left-color: var(--si-accent); background: var(--si-surface-2); }
.site-info-article hr { border-color: var(--si-line); }
.site-info-article table th, .site-info-article table td { border-color: var(--si-line); }
.site-info-article table th { background: var(--si-surface-2); color: var(--si-ink); }

@media (min-width: 961px) {
  body.site-info-page .pt-topbar { position: sticky; }
  body.site-info-page .pt-nav {
    position: absolute; left: 50%; margin: 0;
    transform: translateX(-50%);
    gap: clamp(18px, 2.4vw, 36px);
  }
}
@media (max-width: 900px) {
  .site-info-main { padding-bottom: 56px; }
  .site-info-shell { width: min(100% - 28px, 1180px); }
  .site-info-head { padding: 34px 0 26px; }
  .site-info-head h1 { font-size: clamp(38px, 10vw, 54px); }
  .site-info-lead { font-size: 15px; }
  .site-info-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 22px; }
  .site-info-rail { display: none; }
  .site-info-article { padding: 22px 18px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-info-rail .pt-toc a { transition: none; }
}
