/* ============================================================
   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%; background: var(--pt-bg); }
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-avatar:has(> img) { overflow:hidden; padding:0; }
.pt-avatar > img { display:block; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.pt-avatar.official-brand > img,
.pt-avatar.bot-brand > img,
.pt-avatar.source-brand > img {
  box-sizing: border-box;
  padding: 18%;
  object-fit: contain;
  background: #f2f3f5;
}
.pt-avatar.source-brand > img {
  padding: 15%;
}
.pt-avatar.source-brand.full-bleed > img {
  padding: 0;
  object-fit: cover;
  background: transparent;
}
html[data-theme="dark"] .pt-avatar.official-brand > img,
html[data-theme="dark"] .pt-avatar.bot-brand > img,
html[data-theme="dark"] .pt-avatar.source-brand > img,
html[data-theme="dark"] .pt-avatar-subbadge > img {
  filter: none;
  opacity: 1;
}
.pt-avatar-composed {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
}
.pt-avatar-subbadge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #f2f3f5;
  border: 2px solid var(--bl-surface, var(--pt-surface));
  padding: 2px;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .14);
}
.pt-avatar-subbadge > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Threads 风格头像右下角快捷关注 + 按钮 */
.pt-avatar-quick-follow {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 2px solid var(--bl-surface, var(--pt-surface, #fff));
  background: var(--bl-ink, #111418);
  color: var(--bl-surface, #fff);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .15s ease, background-color .15s ease;
}
.pt-avatar-quick-follow:hover {
  transform: scale(1.08);
  background: var(--bl-accent, #0f766e);
  color: #fff;
}
.pt-avatar-quick-follow:focus-visible {
  outline: 2px solid var(--bl-accent, #0f766e);
  outline-offset: 2px;
}
.pt-avatar-quick-follow svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  fill: none;
}
html[data-theme="dark"] .pt-avatar-quick-follow {
  background: #f5f7fa;
  color: #111418;
}
html[data-theme="dark"] .pt-avatar-quick-follow:hover {
  background: var(--bl-accent, #34d399);
  color: #0b1410;
}

/* Quick Follow 快捷关注弹窗（桌面居中模态框 / 移动端 Bottom Sheet） */
.pt-qf-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 20, 25, .48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pt-qf-card {
  position: relative;
  width: min(340px, 100%);
  padding: 28px 24px 24px;
  border-radius: 20px;
  border: 1px solid var(--bl-line, var(--pt-line));
  background: var(--bl-surface, var(--pt-surface, #fff));
  color: var(--bl-ink, var(--pt-ink));
  box-shadow: 0 20px 48px rgba(0, 0, 0, .22);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pt-qf-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--bl-muted, var(--pt-muted));
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease;
}
.pt-qf-close:hover {
  background: var(--bl-hover, rgba(0, 0, 0, .06));
  color: var(--bl-ink, var(--pt-ink));
}
.pt-qf-close svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}
.pt-qf-avatar {
  margin-bottom: 12px;
}
.pt-qf-avatar-img {
  width: 68px;
  height: 68px;
  font-size: 24px;
}
.pt-qf-name {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  --pt-author-handle-size: 16px;
}
.pt-qf-handle {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--bl-muted, var(--pt-muted));
}
.pt-qf-followers {
  margin: 12px 0 0;
  min-height: 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bl-ink, var(--pt-ink));
}
.pt-qf-bot-note {
  margin: 10px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bl-hover, rgba(0, 0, 0, .04));
  color: var(--bl-muted, var(--pt-muted));
  font-size: 12px;
  line-height: 1.4;
}
.pt-qf-error {
  margin: 10px 0 0;
  color: #dc2626;
  font-size: 12.5px;
}
.pt-qf-actions {
  width: 100%;
  margin-top: 18px;
}
.pt-qf-submit {
  width: 100%;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bl-ink, #111418);
  color: var(--bl-surface, #fff);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pt-qf-submit:hover:not(:disabled) {
  opacity: .9;
}
.pt-qf-submit:disabled {
  cursor: default;
}
.pt-qf-submit.is-following {
  background: transparent;
  color: var(--bl-ink, var(--pt-ink));
  border-color: var(--bl-line, var(--pt-line));
}
.qf-fade-enter-active,
.qf-fade-leave-active {
  transition: opacity .18s ease;
}
.qf-fade-enter-active .pt-qf-card,
.qf-fade-leave-active .pt-qf-card {
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), opacity .18s ease;
}
.qf-fade-enter-from,
.qf-fade-leave-to {
  opacity: 0;
}
.qf-fade-enter-from .pt-qf-card,
.qf-fade-leave-to .pt-qf-card {
  opacity: 0;
  transform: translateY(12px) scale(.97);
}
@media (max-width: 600px) {
  .pt-qf-backdrop {
    align-items: end;
    padding: 0;
  }
  .pt-qf-card {
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .qf-fade-enter-from .pt-qf-card,
  .qf-fade-leave-to .pt-qf-card {
    transform: translateY(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pt-avatar-quick-follow,
  .qf-fade-enter-active,
  .qf-fade-leave-active,
  .qf-fade-enter-active .pt-qf-card,
  .qf-fade-leave-active .pt-qf-card {
    transition: none;
  }
}
.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: 22px;
  bottom: 22px;
  z-index: 450;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.pt-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 248px;
  max-width: min(376px, calc(100vw - 32px));
  padding: 13px 14px 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .68);
  background: rgba(252, 253, 252, .72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: var(--pt-ink);
  box-shadow:
    0 14px 36px -10px rgba(15, 23, 20, .18),
    0 2px 8px rgba(15, 23, 20, .06),
    inset 0 1px 0 rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}
html[data-theme="dark"] .pt-toast {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(26, 30, 28, .72);
  box-shadow:
    0 18px 42px -10px rgba(0, 0, 0, .55),
    0 2px 8px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .09);
}
.pt-toast-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(27, 138, 90, .12);
  color: var(--pt-accent);
}
.pt-toast.error .pt-toast-icon {
  background: rgba(220, 38, 38, .12);
  color: #dc2626;
}
.pt-toast.info .pt-toast-icon {
  background: rgba(120, 128, 124, .14);
  color: var(--pt-muted);
}
.pt-toast-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pt-toast-body {
  flex: 1;
  min-width: 0;
  font-weight: 480;
  letter-spacing: -.005em;
}
.pt-toast-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--pt-faint);
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease;
}
.pt-toast-close:hover {
  background: rgba(128, 134, 131, .14);
  color: var(--pt-ink);
}
.pt-toast-close svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}
.pt-toast-win-enter-active {
  transition: opacity .26s cubic-bezier(.16, 1, .3, 1), transform .28s cubic-bezier(.16, 1, .3, 1);
}
.pt-toast-win-leave-active {
  transition: opacity .2s ease, transform .22s ease;
}
.pt-toast-win-enter-from {
  opacity: 0;
  transform: translateX(28px) scale(.97);
}
.pt-toast-win-leave-to {
  opacity: 0;
  transform: translateX(24px) scale(.98);
}
@media (prefers-reduced-motion: reduce) {
  .pt-toast-win-enter-active,
  .pt-toast-win-leave-active { transition: none; }
}

/* ---------- 响应式 ---------- */
@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; }
.pt-mobile-nav { view-transition-name: adox-mobile-nav; }
::view-transition { background: var(--pt-bg); }
::view-transition-group(adox-topbar),
::view-transition-group(adox-mobile-nav) {
  animation-duration: 0s;
  z-index: 20;
}
::view-transition-old(adox-topbar),
::view-transition-new(adox-topbar),
::view-transition-old(adox-mobile-nav),
::view-transition-new(adox-mobile-nav) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(adox-topbar),
::view-transition-old(adox-mobile-nav) {
  opacity: 0;
}
::view-transition-old(adox-topbar):only-child,
::view-transition-old(adox-mobile-nav):only-child {
  opacity: 1;
  animation: adox-page-out .2s cubic-bezier(.4, 0, 1, 1) both;
}
::view-transition-new(adox-topbar):only-child,
::view-transition-new(adox-mobile-nav):only-child {
  animation: adox-page-in .34s cubic-bezier(.22, 1, .36, 1) both;
}
::view-transition-old(root),
::view-transition-new(root) {
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  animation: adox-page-out .2s cubic-bezier(.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: adox-page-in .34s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes adox-page-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-4px) scale(.996); }
}
@keyframes adox-page-in {
  from { opacity: 0; transform: translateY(10px) scale(.996); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion:reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-old(adox-topbar),
  ::view-transition-new(adox-topbar),
  ::view-transition-old(adox-mobile-nav),
  ::view-transition-new(adox-mobile-nav) {
    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: 12.5px; }
.pt-thread-meta a { color: var(--pt-ink); font-size: 16.5px; font-weight: 700; }
.pt-thread-meta a:hover { color: var(--pt-accent); }
.pt-thread-title { display: block; margin-top: 4px; color: var(--pt-ink); font-size: 15px; font-weight: 400; line-height: 1.52; letter-spacing: -.005em; }
.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-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-blog-nav > a,
  .pt-blog-more-btn {
    position: relative;
  }

  body[data-platform="blog"] .pt-blog-nav > a > span:not(.pt-blog-count):not(.dm-nav-badge),
  body[data-platform="blog"] .pt-blog-more-btn > span {
    position: absolute;
    left: 54px;
    width: 200px;
    max-width: 200px;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), clip-path .28s cubic-bezier(.22, 1, .36, 1), opacity .18s ease;
  }

  .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: 312px minmax(0, 1fr) 377px;
  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 14px 22px; }
.pt-blog-nav svg,
.pt-blog-iconbtn svg {
  fill: none; stroke: currentColor; stroke-width: 1.75;
  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: 17.6px; font-weight: 700; letter-spacing: -.02em; }
.pt-blog-brand-copy span { display: block; margin-top: 2px; color: var(--bl-faint); font-size: 11px; letter-spacing: .02em; }
.pt-blog-label { margin: 18px 14px 8px; color: var(--bl-faint); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.pt-blog-nav { display: grid; gap: 4px; }
.pt-blog-nav a,
.pt-blog-more-btn {
  display: flex; align-items: center; gap: 16px;
  width: 100%; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--bl-ink); font-size: 15.2px; font-weight: 400;
  line-height: 1.25; text-align: left; text-decoration: none; cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.pt-blog-nav a:hover,
.pt-blog-more-btn: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: 700; }
.pt-blog-nav a[aria-current="page"] svg { color: var(--bl-accent); }
.pt-blog-nav svg,
.pt-blog-more-btn svg { width: 22px; height: 22px; flex: none; color: var(--bl-ink); }
.pt-blog-adot-icon { width: 22px; height: 22px; flex: none; display: block; object-fit: contain; }
html[data-theme="dark"] .pt-blog-adot-icon { filter: invert(1); }
.pt-blog-nav a > span:not(.pt-blog-count),
.pt-blog-more-btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-blog-count { display: none; }
.pt-blog-more-wrap { position: relative; }
.pt-blog-more-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 30;
  display: grid; gap: 2px; padding: 8px;
  border: 1px solid var(--bl-line); border-radius: 18px;
  background: var(--bl-surface); box-shadow: 0 14px 36px rgba(0, 0, 0, .14);
}
.pt-blog-more-menu a { min-height: 42px; padding: 9px 14px; font-size: 13.6px; }
.pt-blog-divider { height: 1px; margin: 16px 12px; 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 8px 0; min-height: 46px; padding: 11px 20px; border-radius: 999px;
  background: var(--bl-ink); color: var(--bl-surface);
  font-size: 12.8px; font-weight: 700; 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); font-size: 16.5px; font-weight: 700; }
body[data-platform="blog"] .pt-thread-title { color: var(--bl-ink); font-size: 15px; font-weight: 400; line-height: 1.52; }
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: 13.2px; font-weight: 600; letter-spacing: .02em; }
.pt-rail-head a { color: var(--bl-muted); font-size: 13.2px; }
#followSuggestions .pt-rail-head { align-items: center; }
.pt-rail-refresh {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--bl-muted, var(--pt-muted));
  font-size: 13.2px; font-weight: 500; line-height: 1.2;
  cursor: pointer; transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.pt-rail-refresh:hover:not(:disabled) {
  color: var(--bl-ink, var(--pt-ink));
  background: var(--bl-hover, var(--pt-surface-2));
  border-color: var(--bl-line, var(--pt-line));
}
.pt-rail-refresh:disabled { opacity: .6; cursor: default; }
.pt-rail-refresh-icon {
  width: 14px; height: 14px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s ease;
}
.pt-rail-refresh:hover:not(:disabled) .pt-rail-refresh-icon { transform: rotate(45deg); }
.pt-rail-refresh.is-loading .pt-rail-refresh-icon { animation: pt-rail-spin .8s linear infinite; }
@keyframes pt-rail-spin { to { transform: rotate(360deg); } }
.pt-follow-suggestions { display:grid; gap:4px; }
.pt-follow-suggestion { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 0; border-top:1px solid var(--bl-line-soft); }
.pt-follow-suggestion:first-child { border-top:0; }
.pt-follow-suggestion-user { display:flex; align-items:center; gap:9px; min-width:0; color:var(--bl-ink); }
.pt-follow-suggestion-user .pt-avatar { flex:none; width:34px; height:34px; }
.pt-follow-suggestion-name { display:grid; min-width:0; }
.pt-follow-suggestion-name strong, .pt-follow-suggestion-name small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pt-follow-suggestion-name strong { font-size:13.8px; }
.pt-follow-suggestion-name small { color:var(--bl-faint); font-size:11.5px; }
.pt-follow-suggestion .pt-follow-button { flex:none; padding:5px 10px; font-size:12.6px; }
.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: 14.4px; }
.pt-rail-stats dd { margin: 0; color: var(--bl-ink); font-size: 23px; 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: 13.2px; }
.pt-rail-copy { margin: 2px 0 12px; color: var(--bl-muted); font-size: 14.4px; line-height: 1.7; }
.pt-rail-links { display: grid; gap: 7px; }
.pt-rail-links a { color: var(--bl-accent); font-size: 14.4px; }
.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: 14.4px; }
.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: 11px; font-weight: 600; letter-spacing: .02em; }
.pt-blog-rail .pt-thread-empty { padding: 8px 10px 10px; font-size: 14.4px; }

/* 桌面收起左栏 */
@media (min-width: 901px) {
  .pt-blog-shell.is-collapsed { grid-template-columns: 0 minmax(0, 1fr) 377px; }
  .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: 312px minmax(0, 1fr); }
  .pt-blog-rail { 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 { display: none; }
  .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: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-blog-shell,
  .pt-blog-side,
  .pt-rail-refresh,
  .pt-rail-refresh-icon { transition: none; }
  .pt-rail-refresh.is-loading .pt-rail-refresh-icon { animation: 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,
body.knowledge-page .pt-kb-side { overflow: hidden; }
body[data-platform="knowledge"] .pt-kb-content,
body.knowledge-page .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; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.pt-kb-tree-item {
  display: flex; align-items: center; gap: 9px;
  width: 100%; min-width: 0; 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 {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.pt-kb-tree-label {
  display: inline-block;
  white-space: nowrap;
  transform: translateX(0);
  will-change: transform;
}
.pt-kb-tree-name.is-overflow {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
}
.pt-kb-tree-item:hover .pt-kb-tree-name.is-overflow .pt-kb-tree-label {
  animation: pt-kb-marquee var(--kb-marquee-duration, 4s) linear .18s infinite;
}
@keyframes pt-kb-marquee {
  0%, 10% { transform: translateX(0); }
  72%, 86% { transform: translateX(var(--kb-marquee-shift, 0px)); }
  100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .pt-kb-tree-item:hover .pt-kb-tree-name.is-overflow .pt-kb-tree-label { animation: none; }
}
.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-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.pt-kb-product-card { --brand-logo-base: 32px; display:grid; place-items:center; min-height:114px; padding:18px 20px; border:1px solid var(--kb-line); border-radius:18px; background:var(--kb-surface-2); transition:border-color .18s ease, transform .18s ease; }
.pt-kb-product-card:hover { border-color:var(--kb-accent); transform:translateY(-2px); }
.pt-kb-product-card img { display:block; width:auto; max-width:min(82%,196px); max-height:38px; object-fit:contain; }
.pt-kb-product-card img[data-product],
.pt-product-logo img[data-product] {
  --brand-logo-scale: 1;
  width: auto;
  height: calc(var(--brand-logo-base, 32px) * var(--brand-logo-scale));
  max-height: none;
  object-fit: contain;
}
.pt-kb-product-card img[data-product="adox"],
.pt-product-logo img[data-product="adox"] { --brand-logo-scale: 0.94; }
.pt-kb-product-card img[data-product="atrip"],
.pt-product-logo img[data-product="atrip"] { --brand-logo-scale: 1.3055; }
.pt-kb-product-card img[data-product="astra"],
.pt-product-logo img[data-product="astra"] { --brand-logo-scale: 1; }
.pt-kb-product-card img[data-product="ahome"],
.pt-product-logo img[data-product="ahome"] { --brand-logo-scale: 1.9585; }
.pt-kb-product-card img[data-product="aeris"],
.pt-product-logo img[data-product="aeris"] { --brand-logo-scale: 0.9; }
.pt-kb-product-card img[data-product="acafe"],
.pt-product-logo img[data-product="acafe"] { --brand-logo-scale: 1.6973; }
html[data-theme="dark"] .pt-kb-product-card img { filter:brightness(0) invert(1); }
.pt-kb-product-link { text-decoration:none; }
.pt-kb-tree-group-label { padding:12px 10px 4px; color:var(--kb-faint); font-size:11px; font-weight:600; }
.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-activity-tabs { display: flex; gap: 8px; margin: 16px 0 18px; flex-wrap: wrap; }
.pt-kb-activity-tabs button {
  padding: 5px 14px; border-radius: 999px; border: 1px solid var(--kb-line);
  background: transparent; color: var(--kb-muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.pt-kb-activity-tabs button.is-active { background: var(--kb-ink); border-color: var(--kb-ink); color: var(--kb-surface); }

/* Carbon Drive V1 云盘样式 */
.pt-carbon-quota-box { margin: 16px 10px 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--kb-line); background: var(--kb-surface-2); display: grid; gap: 7px; }
.pt-carbon-quota-bottom { margin: auto 2px 0; flex: none; }
.pt-carbon-act.is-bookmarked { border-color: var(--kb-accent); color: var(--kb-accent); background: var(--kb-accent-soft); }
.pt-carbon-quota-head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--kb-muted); }
.pt-carbon-quota-head strong { color: var(--kb-ink); font-variant-numeric: tabular-nums; }
.pt-carbon-quota-bar { height: 6px; border-radius: 999px; background: var(--kb-line); overflow: hidden; }
.pt-carbon-quota-bar i { display: block; height: 100%; border-radius: 999px; background: var(--kb-accent); transition: width .2s ease; }
.pt-carbon-quota-box small { color: var(--kb-faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.pt-carbon-upload-cta {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 7px 14px; border: 0; border-radius: 999px;
  background: var(--kb-ink); color: var(--kb-surface); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.pt-carbon-upload-cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pt-carbon-upload-cta:disabled { opacity: .55; cursor: wait; }
.pt-carbon-dropzone {
  margin: 18px 0 22px; padding: 22px 18px; border-radius: 16px;
  border: 1.5px dashed var(--kb-line-strong); background: var(--kb-surface-2);
  display: grid; justify-items: center; gap: 6px; text-align: center; cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.pt-carbon-dropzone:hover, .pt-carbon-dropzone.is-dragover { border-color: var(--kb-accent); background: var(--kb-hover); }
.pt-carbon-dropzone strong { color: var(--kb-ink); font-size: 13.5px; }
.pt-carbon-dropzone small { color: var(--kb-faint); font-size: 12px; }
.pt-carbon-progress { width: min(320px, 100%); height: 6px; border-radius: 999px; background: var(--kb-line); overflow: hidden; }
.pt-carbon-progress i { display: block; height: 100%; background: var(--kb-accent); transition: width .12s linear; }
.pt-carbon-list { display: grid; border-top: 1px solid var(--kb-line-soft); }
.pt-carbon-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 8px;
  border-bottom: 1px solid var(--kb-line-soft); transition: background-color .14s ease;
}
.pt-carbon-row:hover { background: var(--kb-hover); }
.pt-carbon-badge {
  display: inline-grid; place-items: center; flex: none; width: 38px; height: 24px;
  border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: var(--kb-surface-2); border: 1px solid var(--kb-line); color: var(--kb-ink-soft);
}
.pt-carbon-badge.is-pdf { color: #b91c1c; border-color: rgba(185, 28, 28, .25); }
.pt-carbon-badge.is-md { color: var(--kb-accent); border-color: color-mix(in srgb, var(--kb-accent) 30%, transparent); }
.pt-carbon-name {
  flex: 1; min-width: 0; display: grid; gap: 2px; padding: 0; border: 0; background: transparent;
  text-align: left; font: inherit; cursor: pointer;
}
.pt-carbon-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kb-ink); font-size: 13.5px; font-weight: 550; }
.pt-carbon-name small { color: var(--kb-faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.pt-carbon-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.pt-carbon-act {
  padding: 5px 10px; border-radius: 8px; border: 1px solid var(--kb-line);
  background: var(--kb-surface); color: var(--kb-ink-soft); font: inherit; font-size: 12px; text-decoration: none; cursor: pointer;
}
.pt-carbon-act:hover { border-color: var(--kb-accent); color: var(--kb-accent); }
.pt-carbon-act.is-danger:hover { border-color: #c62828; color: #c62828; }
.pt-carbon-modal-backdrop {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px;
  background: rgba(10, 14, 12, .56); backdrop-filter: blur(4px);
}
.pt-carbon-preview-modal {
  width: min(920px, 96vw); height: min(86vh, 840px); display: flex; flex-direction: column;
  border-radius: 18px; border: 1px solid var(--kb-line); background: var(--kb-surface); overflow: hidden;
  box-shadow: 0 28px 80px -24px rgba(0, 0, 0, .45);
}
.pt-carbon-preview-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--kb-line); flex: none;
}
.pt-carbon-preview-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-carbon-preview-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--kb-ink); }
.pt-carbon-preview-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.pt-carbon-preview-body { flex: 1; min-height: 0; overflow: auto; }
.pt-carbon-pdf-frame { width: 100%; height: 100%; border: 0; display: block; }
.pt-carbon-md-view { padding: 22px 26px; }
.pt-carbon-top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.pt-carbon-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.pt-carbon-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--kb-muted); }
.pt-carbon-sort select { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--kb-line); background: var(--kb-surface); color: var(--kb-ink); font: inherit; font-size: 12px; }
.pt-carbon-rename-input { width: 100%; margin: 12px 0 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--kb-line); background: var(--kb-surface); color: var(--kb-ink); font: inherit; }

/* Carbon Drive V1.1 在线 Markdown 编辑器 */
.pt-carbon-editor { display: flex; flex-direction: column; gap: 12px; min-height: calc(100vh - 120px); }
.pt-carbon-editor-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--kb-line); }
.pt-carbon-editor-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; }
.pt-carbon-filename-input { flex: 1; min-width: 0; padding: 6px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--kb-ink); font: inherit; font-size: 15px; font-weight: 600; }
.pt-carbon-filename-input:hover, .pt-carbon-filename-input:focus { border-color: var(--kb-line); background: var(--kb-surface); outline: none; }
.pt-carbon-editor-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-carbon-save-state { font-size: 12px; color: var(--kb-faint); padding-inline: 4px; }
.pt-carbon-save-state.is-failed, .pt-carbon-save-state.is-conflict { color: #c62828; font-weight: 600; }
.pt-carbon-more-wrap { position: relative; }
.pt-carbon-more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 144px; padding: 6px; border-radius: 12px; border: 1px solid var(--kb-line); background: var(--kb-surface); box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .25); display: grid; gap: 2px; }
.pt-carbon-more-menu button { padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--kb-ink); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.pt-carbon-more-menu button:hover { background: var(--kb-hover); }
.pt-carbon-more-menu button.is-danger { color: #c62828; }
.pt-carbon-editor-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--kb-line); background: var(--kb-surface-2); font-size: 12.5px; color: var(--kb-ink-soft); }
.pt-carbon-editor-banner.is-error { border-color: rgba(198, 40, 40, .35); background: rgba(198, 40, 40, .06); color: #b71c1c; }
.pt-carbon-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-carbon-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--kb-line); background: var(--kb-surface-2); }
.pt-carbon-fmt-group { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pt-carbon-fmt-group button { padding: 4px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--kb-ink-soft); font: inherit; font-size: 12px; cursor: pointer; }
.pt-carbon-fmt-group button:hover { border-color: var(--kb-line); background: var(--kb-surface); color: var(--kb-ink); }
.pt-carbon-editor-body { flex: 1; display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--kb-line); background: var(--kb-surface); overflow: hidden; }
.pt-carbon-rich-area { flex: 1; min-height: 460px; padding: 22px 26px; outline: none; line-height: 1.75; }
.pt-carbon-source-area { flex: 1; width: 100%; min-height: 460px; padding: 20px 24px; border: 0; outline: none; resize: vertical; background: transparent; color: var(--kb-ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.7; }
.pt-kb-fb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pt-kb-fb-form { max-width: 640px; padding: 16px 0 22px; border-bottom: 1px solid var(--kb-line); margin-bottom: 18px; }
.pt-kb-fb-success { margin: 0 0 14px; font-size: 13px; color: var(--kb-accent); }
@media (max-width: 640px) {
  .pt-carbon-row { flex-wrap: wrap; }
  .pt-carbon-actions { width: 100%; justify-content: flex-end; }
}
.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, .pt-kb-product-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, .pt-kb-product-grid { grid-template-columns: minmax(0, 1fr); }
  .pt-kb-product-card { --brand-logo-base: 26px; }
  .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 { --brand-logo-base: 36px; display: flex; align-items: center; justify-content: center; width: 100%; height: auto; min-height: 72px; }
.pt-product-guide-card .pt-product-logo img { max-width: min(84%, 220px); max-height: 42px; width: auto; }
.pt-product-guide-card .pt-product-logo img[data-product] { max-height: none; }

.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 { --brand-logo-base: 28px; display: flex; align-items: center; flex: none; min-height: 56px; height: auto; }
.pt-product-folder-logo img { max-width: 220px; max-height: 48px; width: auto; }
.pt-product-folder-logo img[data-product] { max-height: none; }
.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 { --brand-logo-base: 24px; display: flex; align-items: center; min-height: 48px; height: auto; margin-bottom: 18px; }
.pt-product-overview-head .pt-product-overview-logo img { max-width: 210px; max-height: 36px; width: auto; }
.pt-product-overview-head .pt-product-overview-logo img[data-product] { max-height: none; }
.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; }
  .pt-product-guide-card .pt-product-logo { --brand-logo-base: 28px; min-height: 56px; }
}

/* ============================================================
   登录页 — 数字流品牌区与账号确认
   ============================================================ */
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 0 0;
  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: flex-start; gap: 22px; }
body[data-platform="blog"] .pt-thread-admin { margin-left: auto; }
body[data-platform="blog"] .pt-thread-title { font-size: 15px; font-weight: 400; }
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; }
.pt-blog-drawer-trigger { 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(5, 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); background: var(--pt-surface-2); }
  .pt-mobile-nav a:focus-visible { outline: 2px solid var(--pt-accent); outline-offset: -2px; }
  .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 { max-width: 100%; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pt-mobile-nav a { min-height: 48px; }
  .pt-mobile-nav-icon, .pt-mobile-nav-icon svg { width: 24px; height: 24px; }
  .pt-mobile-nav-icon img { display: block; width: 24px; height: 24px; object-fit: contain; }
  html[data-theme="dark"] .pt-mobile-nav-icon img { filter: invert(1); }
  body[data-platform="blog"] .pt-blog-drawer-trigger { display: grid; place-items: center; flex: none; margin-inline-start: -7px; }
  body[data-platform="blog"] .pt-blog-drawer-trigger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  body[data-platform="blog"] .pt-blog-side { display: flex; position: fixed; z-index: 111; top: 0; bottom: 0; left: 0; width: min(82vw, 320px); height: 100dvh; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); border-right: 1px solid var(--bl-line); box-shadow: 16px 0 48px rgba(0,0,0,.16); transform: translateX(-105%); visibility: hidden; }
  body[data-platform="blog"] .pt-blog-side.is-open { transform: translateX(0); visibility: visible; }
  body[data-platform="blog"] .pt-blog-scrim:not([hidden]) { display: block; position: fixed; z-index: 110; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.48); }
  body.blog-drawer-open { overflow: hidden; }
  body[data-platform="blog"] #postRailToggle { display: none; }
  body[data-platform="blog"] #postRail { display: none; }
  body[data-platform="blog"].mobile-discover .pt-blog-center { display: none; }
  body[data-platform="blog"].mobile-discover #postRail { display: block; position: relative; top: auto; width: 100%; height: 100%; min-height: 100%; padding: 20px 16px calc(80px + env(safe-area-inset-bottom)); border-left: 0; background: var(--bl-surface); }
  body[data-platform="blog"].mobile-discover .pt-blog-rail .pt-rail-card { max-width: 680px; margin-inline: auto; }
  body[data-platform="blog"].mobile-discover .post-search { max-width: 680px; margin-inline: auto; }

  /* 博客时间线占满宽度，保留底部安全距离 */
  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: 0; 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; }
  .pt-thread-avatar .pt-avatar-subbadge { width: 16px; height: 16px; right: -2px; bottom: -2px; }
  body[data-platform="blog"] .pt-thread-title { font-size: 15px; }
  body[data-platform="blog"] .pt-thread-text { font-size: 13px; }
  body[data-platform="blog"] .pt-thread-actions { max-width: none; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-platform="blog"] .pt-blog-nav > a > span:not(.pt-blog-count):not(.dm-nav-badge),
  body[data-platform="blog"] .pt-blog-more-btn > span {
    transition: none;
  }
}

/* ============================================================
   博客三栏桌面：左右栏对齐官方智库宽度，中间时间线铺满剩余空间
   ============================================================ */
@media (min-width: 901px) {
  body[data-platform="blog"] .pt-blog-shell {
    grid-template-columns: 367px minmax(0, 1fr) 367px;
    gap: 0;
  }
  body[data-platform="blog"] .pt-blog-shell.is-collapsed {
    grid-template-columns: 0 minmax(0, 1fr) 367px;
  }
  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; }

/* Following 时间线顶部 Sticky 新动态提示条（限制在中央 Feed 容器内，不遮挡全局顶栏） */
.pt-new-posts-wrap {
  position: sticky;
  top: 54px;
  z-index: 6;
  display: flex;
  justify-content: center;
  padding: 8px var(--post-inset, 16px) 6px;
  pointer-events: none;
}
.pt-new-posts-bar {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid color-mix(in srgb, var(--bl-accent) 28%, var(--bl-line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--bl-surface) 92%, var(--bl-accent-soft));
  color: var(--bl-accent);
  font-size: 13.5px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.pt-new-posts-bar:hover:not(:disabled) {
  background: var(--bl-accent-soft);
  border-color: var(--bl-accent);
}
.pt-new-posts-bar:disabled { opacity: .65; cursor: wait; }
.pt-new-posts-bar svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pt-following-more {
  display: flex;
  justify-content: center;
  padding: 20px 0 12px;
}
}
@media (min-width: 901px) and (max-width: 1240px) {
  body[data-platform="blog"] .pt-blog-shell { grid-template-columns: 367px 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; }
}

/* 阅读区沿用时间线中栏的底色、宽度与顶部工具栏。 */
.pt-reader-back { display: inline-flex; align-items: center; gap: 10px; flex: 1; padding-inline-start: 14px; color: var(--bl-ink, currentColor); font-weight: 650; }
.pt-reader-back > span:first-child { font-size: 22px; line-height: 1; }
.pt-reader { padding: 24px 4px 12px; min-width: 0; overflow-wrap: anywhere; }
.pt-reader-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pt-reader-head .pt-docs-meta { order: -2; margin: 0; }
.pt-reader-head .pt-docs-cover { width: 100%; }
.pt-reader-head .pt-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-reader-head h1 { margin: 0; font-size: clamp(23px, 2vw, 32px); line-height: 1.25; letter-spacing: -.025em; }
.pt-reader-head .pt-summary { margin: 0; color: var(--bl-muted); }
.pt-reader .pt-markdown { padding: 20px 0; max-width: 78ch; line-height: 1.8; }
.pt-reader .pt-comments { border-top: 1px solid var(--bl-line); scroll-margin-top: 140px; }
.pt-reader .pt-docs-actions { margin: 0; }
.pt-reader-brand { width: 23px; height: 20px; background: currentColor; mask: url('/assets/brand/adox-brandmark-plain.svg') center / contain no-repeat; }
.pt-reader-byline { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; }
.pt-reader-byline .pt-docs-meta { display: flex; align-items: center; gap: 10px; color: var(--bl-ink); font-size: 16.5px; }
.pt-reader-byline .pt-avatar { width: 42px; height: 42px; flex-shrink: 0; }
.pt-reader-byline .name { font-weight: 700; color: inherit; }
.pt-reader-menu { position: relative; }
.pt-reader-menu summary { padding: 8px; list-style: none; cursor: pointer; color: var(--bl-muted); }
.pt-reader-menu summary::-webkit-details-marker { display: none; }
.pt-reader-menu #ownerActions { position: absolute; z-index: 2; inset-inline-end: 0; display: grid; gap: 4px; min-width: max-content; padding: 6px; background: var(--bl-surface); border: 1px solid var(--bl-line); border-radius: 12px; }
.pt-reader #cover { max-width: 100%; margin-bottom: 16px; border-radius: 16px; overflow: hidden; }
.pt-reader #cover img { display: block; max-width: 100%; max-height: 65vh; width: auto; height: auto; object-fit: contain; }
.pt-reader .pt-markdown img { max-width: 100%; height: auto; border-radius: 14px; }
.pt-reader-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; color: var(--bl-muted); font-size: 14px; padding: 8px 0 16px; }
.pt-reader-stats #readerViews::before { content: '·'; margin-inline-end: 6px; }
.pt-reader-actions { display: flex; justify-content: space-between; align-items: center; border-block-start: 1px solid var(--bl-line); padding-block: 4px; }
.pt-reader-actions .pt-reaction { min-height: 42px; gap: 6px; padding: 4px 6px; background: transparent; border: 0; color: var(--bl-muted); }
.pt-reader-actions .pt-reaction:hover, .pt-reader-actions .pt-reaction.active { color: var(--bl-accent); }
.pt-reader-actions .pt-reaction svg { width: 20px; height: 20px; }

/* 时间线整行共用标题链接，作者和互动控件保留各自入口。 */
body[data-platform="blog"] #stream { --post-inset: clamp(14px, 2vw, 28px); padding-inline: 0; }
#stream > .pt-feed-tabs-bar { margin-inline: 0; }
#readerPane { padding-inline: var(--post-inset); }
body[data-platform="blog"] :is(#communityList, #followingList, #profilePosts, #activityPosts) .pt-thread { position: relative; isolation: isolate; padding-inline: var(--post-inset); }
:is(#communityList, #followingList, #profilePosts, #activityPosts) .pt-thread-title::after { content: ''; position: absolute; inset: 0; z-index: 1; }
:is(#communityList, #followingList, #profilePosts, #activityPosts) .pt-thread-avatar, :is(#communityList, #followingList, #profilePosts, #activityPosts) .pt-thread-meta a,
:is(#communityList, #followingList, #profilePosts, #activityPosts) .pt-thread-actions :is(a, button), :is(#communityList, #followingList, #profilePosts, #activityPosts) .pt-thread-cover, :is(#communityList, #followingList, #profilePosts, #activityPosts) .pt-media-gallery { position: relative; z-index: 2; }
:is(#communityList, #followingList, #profilePosts, #activityPosts) .pt-thread-avatar { align-self: start; }
.pt-post-marks { display: inline-flex; align-items: center; gap: 5px; color: var(--bl-muted); }
.pt-post-marks:empty { display: none; }
.pt-thread-meta .pt-post-marks { margin-inline-start: auto; }
.pt-post-mark { width: 17px; height: 17px; flex: none; background: currentColor; mask: var(--mark) center / contain no-repeat; }
.pt-post-mark.verified { display: inline-block; width: calc(var(--pt-author-handle-size, 1em) * 1.1); height: calc(var(--pt-author-handle-size, 1em) * 1.1); vertical-align: middle; margin-inline-start: 0; color: var(--bl-accent); --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 4 C26.5 14.5 33.5 21.5 44 24 C33.5 26.5 26.5 33.5 24 44 C21.5 33.5 14.5 26.5 4 24 C14.5 21.5 21.5 14.5 24 4Z'/%3E%3C/svg%3E"); }
.pt-post-mark.bot-badge {
  position: relative;
  display: inline-block;
  width: calc(var(--pt-author-handle-size, 1em) * 1.12);
  height: calc(var(--pt-author-handle-size, 1em) * 1.12);
  vertical-align: middle;
  margin-inline-start: 0;
  border-radius: 50%;
  background: var(--bl-accent);
  mask: none;
  -webkit-mask: none;
}
.pt-post-mark.bot-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  mask: url("/assets/brand/adot-black.svg") center / 68% no-repeat;
  -webkit-mask: url("/assets/brand/adot-black.svg") center / 68% no-repeat;
}
.pt-thread-source { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12px; line-height: 1; color: var(--bl-muted); }
.pt-thread-source img { width: 14px; height: 14px; display: block; object-fit: contain; opacity: .94; }
.pt-thread-source img.is-full-bleed { border-radius: 50%; object-fit: cover; }
html[data-theme="dark"] .pt-thread-source img { filter: none; opacity: .96; }
.pt-post-mark.pinned { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate(35 12 12)'%3E%3Cpath d='M8 3h8l-1 7 3 4v1H6v-1l3-4zM12 15v7'/%3E%3C/g%3E%3C/svg%3E"); }
.pt-reader-heading { display: flex; align-items: baseline; gap: 8px; }
.pt-reader-byline .pt-reader-brand { margin-inline-start: auto; flex-shrink: 0; }

.pt-post-mark.featured { color: var(--bl-muted); --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3.1 6.4 7.1 1-5.1 5 1.2 7.1L12 18.2l-6.3 3.3 1.2-7.1-5.1-5 7.1-1z'/%3E%3C/svg%3E"); }
:is(#communityList, #followingList, #profilePosts, #activityPosts) .pt-thread-actions { display: flex; justify-content: flex-start; gap: clamp(16px, 2.8vw, 28px); }
:is(#communityList, #followingList, #profilePosts, #activityPosts) .pt-thread-actions > :first-child { padding-inline-start: 0; }
:is(#communityList, #followingList, #profilePosts, #activityPosts) .pt-thread-actions > :last-child { padding-inline-end: 0; }
:is(#communityList, #followingList, #profilePosts, #activityPosts) .pt-thread-actions > .pt-thread-action { justify-content: center; min-height: 32px; padding-inline: 4px; }
:is(#communityList, #followingList, #profilePosts, #activityPosts) .pt-repost-placeholder { opacity: .45; cursor: default; }
:is(#communityList, #followingList, #profilePosts, #activityPosts) .pt-thread-body > .pt-thread-admin { display: flex; width: fit-content; margin-inline-start: auto; position: relative; z-index: 2; }

/* 社区时间线和阅读页独立滚动。 */
body.blog-workspace { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.blog-workspace > [data-adox-topbar] { flex: none; position: relative; z-index: 100; }
.blog-workspace .pt-blog-main { flex: 1; min-height: 0; min-width: 0; overflow: hidden; display: flex; }
.blog-workspace #blogShell { flex: 1 1 0%; min-width: 0; height: 100%; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.blog-workspace .pt-blog-center, .blog-workspace #postRail { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.blog-workspace .pt-feed-tabs-bar { top: 0; }
.blog-workspace #stream { min-height: 100%; }
.blog-workspace #postRail { position: relative; top: auto; display: flex; flex-direction: column; gap: 14px; }
#postRail > * { flex: none; }
#postRail .pt-rail-card { border-radius: 16px; margin: 0; }
.post-search-field { display: flex; align-items: center; gap: 9px; border: 1px solid var(--bl-line); border-radius: 999px; padding: 10px 15px; color: var(--bl-muted); font-size: 16px; }
.post-search-field svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.post-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--bl-ink); font: inherit; }
#postResults { padding: 10px 4px; font-size: 16px; color: var(--bl-muted); }
#postResults a { display: block; }
.post-rail-footer { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--bl-muted); font-size: 13.8px; }
.post-rail-footer a:hover { text-decoration: underline; }
#postRailToggle { display: none; }
@media (min-width: 901px) {
  .blog-workspace #blogSide { position: relative; top: auto; height: 100%; overflow: hidden; }
}
@media (max-width: 1240px) {
  #postRailToggle { display: inline-flex; }
  .blog-workspace #postRail { display: none; }
  .blog-workspace #postRail.is-open { display: flex; position: fixed; z-index: 80; inset: 130px 0 0 auto; width: min(367px, 94vw); height: auto; border: 1px solid var(--bl-line); }
}
@media (max-width: 900px) {
  .blog-workspace #postRail.is-open { bottom: calc(62px + env(safe-area-inset-bottom)); }
}
.blog-workspace .pt-loading:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.blog-workspace .pt-loading::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: none;
  border: 2px solid var(--bl-line);
  border-top-color: var(--bl-accent);
  border-radius: 50%;
  animation: pt-loading-turn .8s linear infinite;
}
@keyframes pt-loading-turn { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .blog-workspace .pt-loading::before { animation: none; }
}

#readerPane.profile-pane { padding-inline: 0; }
#centerLabel small { display: block; font-size: 12px; font-weight: 400; color: var(--bl-muted); }
.pt-profile-cover {
  position: relative;
  width: 100%;
  height: clamp(200px, 18vw, 240px);
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(110deg, #242625, #1b2420);
}
.pt-profile-cover svg { width: min(56%, 440px); height: 100%; opacity: .75; }
.pt-profile-banner-pic { display: block; width: 100%; height: 100%; }
.pt-profile-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--banner-desktop-x, 50%) var(--banner-desktop-y, 50%);
}
@media (max-width: 900px) {
  .pt-profile-cover { height: clamp(160px, 24vw, 210px); }
}
@media (max-width: 760px) {
  .pt-profile-cover { height: clamp(128px, 34vw, 160px); }
  .pt-profile-banner-img {
    object-position: var(--banner-mobile-x, 50%) var(--banner-mobile-y, 50%);
  }
}
.pt-activity-timeline { width: 100%; }
.pt-activity-list { display: grid; }
.pt-activity-item { display: grid; gap: 5px; padding: 16px 2px; border-bottom: 1px solid var(--bl-line); text-decoration: none; color: var(--bl-ink); }
.pt-activity-item:hover strong { color: var(--bl-accent); }
.pt-activity-item small { color: var(--bl-muted); }
.pt-profile-intro { padding: 0 var(--post-inset) 18px; }
.pt-profile-avatar { width: clamp(72px, 9vw, 112px); height: auto; aspect-ratio: 1; margin-top: clamp(-56px, -4.5vw, -36px); position: relative; border: 4px solid var(--bl-surface); font-size: clamp(26px, 4vw, 40px); background: var(--bl-surface); }
.pt-profile-intro h1 { margin: 12px 0 4px; font-size: clamp(23px, 3vw, 32px); line-height: 1.2; overflow-wrap: anywhere; }
.pt-profile-joined { color: var(--bl-muted); margin: 8px 0 0; }
.pt-profile-bio { max-width:62ch; margin:8px 0; color:var(--bl-ink); line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.pt-profile-section { margin: 0; padding: 12px var(--post-inset); border-block: 1px solid var(--bl-line); font-size: 15px; }
.pt-account-center { max-width:680px; margin:0 auto; padding:clamp(20px,4vw,38px) var(--post-inset) 56px; color:var(--bl-ink); }
.pt-account-center > header { padding-bottom:24px; border-bottom:1px solid var(--bl-line); }
.pt-banner-card { padding: 22px 0; border-bottom: 1px solid var(--bl-line); display: grid; gap: 14px; }
.pt-banner-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pt-banner-card-head > div:first-child { display: grid; gap: 4px; min-width: 0; }
.pt-banner-card-head strong { font-size: 14px; font-weight: 650; }
.pt-banner-card-head small { color: var(--bl-muted); font-size: 12px; line-height: 1.5; }
.pt-banner-card-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-banner-btn {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--bl-line);
  background: var(--bl-surface); color: var(--bl-ink); font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.pt-banner-btn:hover:not(:disabled) { border-color: var(--bl-accent); color: var(--bl-accent); }
.pt-banner-btn.primary { border-color: var(--bl-ink); background: var(--bl-ink); color: var(--bl-surface); }
.pt-banner-btn.primary:hover:not(:disabled) { opacity: .9; color: var(--bl-surface); }
.pt-banner-btn.subtle { border-color: transparent; background: transparent; color: var(--bl-muted); padding-inline: 8px; }
.pt-banner-btn.subtle:hover:not(:disabled) { color: var(--bl-ink); border-color: transparent; }
.pt-banner-btn:disabled { opacity: .5; cursor: wait; }
.pt-banner-preview-static {
  width: 100%; height: 156px; border-radius: 14px; overflow: hidden;
  display: flex; justify-content: flex-end; background: linear-gradient(110deg, #242625, #1b2420);
  border: 1px solid var(--bl-line);
}
.pt-banner-preview-static img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-banner-preview-static svg { width: min(56%, 440px); height: 100%; opacity: .75; }
.pt-banner-editor { display: grid; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--bl-line); background: var(--bl-hover); }
.pt-banner-editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pt-banner-mode-tabs { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--bl-line); background: var(--bl-surface); gap: 2px; }
.pt-banner-mode-tabs button {
  padding: 5px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--bl-muted);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.pt-banner-mode-tabs button.is-active { background: var(--bl-ink); color: var(--bl-surface); }
.pt-banner-stage-wrap { position: relative; padding-bottom: 24px; }
.pt-banner-stage-wrap.is-mobile { max-width: 390px; width: 100%; margin: 0 auto; }
.pt-banner-stage {
  position: relative; width: 100%; aspect-ratio: 3.4 / 1; min-height: 150px;
  border-radius: 12px; overflow: hidden; background: linear-gradient(110deg, #242625, #1b2420);
  border: 1px solid var(--bl-line); cursor: grab; touch-action: none; user-select: none;
}
.pt-banner-stage.is-mobile { aspect-ratio: 2.6 / 1; min-height: 132px; }
.pt-banner-stage.is-dragging { cursor: grabbing; }
.pt-banner-stage img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pt-banner-drag-tip {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 999px; background: rgba(16, 21, 18, .72); color: #fff;
  font-size: 11.5px; white-space: nowrap; pointer-events: none;
}
.pt-banner-avatar-ghost {
  position: absolute; left: 18px; bottom: 0; width: 58px; height: 58px; border-radius: 50%;
  border: 3px solid var(--bl-surface); background: var(--pt-surface-2, #d8dedb); pointer-events: none;
}
.pt-banner-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pt-banner-editor-right { display: flex; align-items: center; gap: 8px; }
.pt-banner-status { margin: 0; font-size: 12.5px; color: var(--bl-muted); }
.pt-account-center h1 { margin:0 0 7px; font-size:clamp(24px,3vw,30px); }
.pt-account-center p { color:var(--bl-muted); line-height:1.6; }
.pt-account-avatar-row { display:flex; align-items:center; gap:18px; padding:24px 0; border-bottom:1px solid var(--bl-line); }
.pt-account-preview { width:74px; height:74px; font-size:26px; }
.pt-account-avatar-row > div { display:grid; justify-items:start; gap:7px; }
.pt-account-avatar-row small, .pt-account-form small { color:var(--bl-muted); }
.pt-account-avatar-row input { max-width:100%; font:inherit; font-size:12px; }
.pt-account-avatar-row button { padding:0; border:0; background:none; color:var(--bl-muted); cursor:pointer; }
.pt-account-form { display:grid; gap:18px; padding:24px 0; }
.pt-account-form label { display:grid; gap:8px; font-size:13px; font-weight:600; }
.pt-account-form input, .pt-account-form textarea { width:100%; padding:12px 14px; border:1px solid var(--bl-line); border-radius:12px; background:var(--bl-surface); color:var(--bl-ink); font:inherit; font-weight:400; transition:border-color .18s ease, box-shadow .18s ease; }
.pt-account-form input:focus, .pt-account-form textarea:focus { outline:none; border-color:var(--bl-accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--bl-accent) 15%,transparent); }
.pt-account-form input[readonly] { color:var(--bl-muted); background:var(--bl-hover); }
.pt-account-actions { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.pt-account-actions button { padding:9px 20px; border:0; border-radius:999px; background:var(--bl-ink); color:var(--bl-surface); font:inherit; font-weight:650; cursor:pointer; }
.pt-account-actions button:disabled { opacity:.5; cursor:wait; }
.pt-account-actions a, .pt-account-security a { color:var(--bl-accent); }
.pt-account-security { padding-top:24px; border-top:1px solid var(--bl-line); }
.pt-account-security strong { font-size:15px; }
.pt-account-security p { margin:8px 0; font-size:13px; }
.onboarding-avatar { display:flex; align-items:center; gap:14px; }
.onboarding-avatar > div { display:grid; gap:6px; min-width:0; }
.onboarding-avatar input { max-width:100%; font-size:12px; }
@media (max-width:520px) { .pt-account-avatar-row { align-items:flex-start; } .pt-account-center { padding-inline:18px; } }
@media (prefers-reduced-motion:reduce) { .pt-account-form input, .pt-account-form textarea { transition:none; } }

.quick-post {
  display:grid; grid-template-columns:40px minmax(0,1fr); align-items:start;
  gap:8px 12px; padding:16px clamp(14px,3vw,28px) 12px; border-bottom:1px solid var(--bl-line,var(--pt-line));
}
.quick-post[hidden] { display:none; }
#quickAvatar { width:40px; height:40px; }
.quick-post-main { min-width:0; display:flex; flex-direction:column; gap:8px; }
.quick-post input, .quick-post textarea, #postDialog textarea { min-width:0; font:inherit; color:inherit; background:transparent; border:0; outline:none; }
.quick-post input, .quick-post-input { width:100%; padding:6px 0; font-size:clamp(18px,2vw,20px); line-height:1.45; resize:none; overflow-y:auto; }
.quick-meta-row { display:flex; align-items:center; gap:8px; padding-bottom:6px; border-bottom:1px solid var(--bl-line-soft,var(--pt-line)); }
.quick-tools { display:flex; align-items:center; justify-content:flex-start; gap:2px; }
#quickImage, #postImage { display:grid; place-items:center; width:36px; height:36px; margin-left:-8px; padding:0; border:0; border-radius:50%; background:transparent; color:var(--bl-accent,var(--pt-accent)); cursor:pointer; transition:background-color .15s ease; }
#quickImage svg, #postImage svg, .emoji-picker svg { width:19.5px; height:19.5px; }
#quickImage:hover, #postImage:hover { background:var(--bl-surface-2,var(--pt-surface-2)); }
#quickSubmit, #submitPost { border:0; border-radius:9999px; background:var(--bl-ink,var(--pt-ink)); color:var(--bl-surface,var(--pt-surface)); font-size:14.5px; font-weight:700; padding:8px 18px; cursor:pointer; transition:opacity .15s ease, transform .12s ease; }
#quickSubmit:disabled, #submitPost:disabled { opacity:.38; cursor:default; }
.composer-preview { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.composer-preview-item { position:relative; display:inline-flex; }
.composer-preview-item img { width:84px; height:84px; object-fit:cover; border-radius:12px; display:block; border:1px solid var(--bl-line-soft,var(--pt-line)); }
.composer-preview-remove { position:absolute; top:4px; right:4px; display:grid; place-items:center; width:22px; height:22px; padding:0; border:0; border-radius:50%; background:rgba(15,20,25,.76); color:#fff; font-size:14px; line-height:1; cursor:pointer; }
.composer-preview-remove:hover { background:rgba(15,20,25,.92); }
.composer-error { margin:0; font-size:13px; color:#dc2626; }

/* X 风格独立发帖弹窗（图 3 视觉设计 + 平滑出入场动效） */
#postDialog.composer-dialog {
  width:min(600px,94vw);
  max-height:86dvh;
  padding:0;
  margin:min(8vh,64px) auto auto;
  border:1px solid var(--bl-line-soft,var(--pt-line));
  border-radius:16px;
  background:var(--bl-surface,var(--pt-surface));
  color:var(--bl-ink,var(--pt-ink));
  box-shadow:0 20px 60px rgba(0,0,0,.22);
  overflow:visible;
  opacity:0;
  transform:translateY(12px) scale(.97);
  transition:opacity 180ms cubic-bezier(.22,1,.36,1), transform 180ms cubic-bezier(.22,1,.36,1);
}
#postDialog.composer-dialog.is-open { opacity:1; transform:translateY(0) scale(1); }
#postDialog.composer-dialog.is-closing { opacity:0; transform:translateY(8px) scale(.98); }
#postDialog.composer-dialog::backdrop { background:rgb(0 0 0 / 42%); opacity:0; transition:opacity 180ms ease; }
#postDialog.composer-dialog.is-open::backdrop { opacity:1; }
#postDialog.composer-dialog.is-closing::backdrop { opacity:0; }
@media (prefers-reduced-motion: reduce) {
  #postDialog.composer-dialog, #postDialog.composer-dialog::backdrop { transition:none; }
}
.composer-dialog-card { display:flex; flex-direction:column; max-height:86dvh; }
.composer-dialog-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 16px 6px;
}
.composer-dialog-close {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  margin-left:-6px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--bl-ink,var(--pt-ink));
  cursor:pointer;
  transition:background-color .15s ease;
}
.composer-dialog-close:hover { background:var(--bl-surface-2,var(--pt-surface-2)); }
.composer-dialog-close svg { width:19px; height:19px; }
.composer-dialog-link {
  color:var(--bl-accent,var(--pt-accent));
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  padding:6px 10px;
  border-radius:9999px;
  transition:background-color .15s ease;
}
.composer-dialog-link:hover { background:var(--bl-surface-2,var(--pt-surface-2)); }
.composer-dialog-body {
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  align-items:start;
  gap:12px;
  padding:6px 16px 12px;
  overflow-y:auto;
}
.composer-dialog-avatar { width:40px; height:40px; }
.composer-dialog-editor { min-width:0; display:flex; flex-direction:column; gap:10px; }
.composer-dialog-textarea {
  display:block;
  width:100%;
  min-height:112px;
  padding:6px 0;
  font-size:19px;
  line-height:1.48;
  resize:none;
}
.composer-dialog-meta {
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 16px 12px 68px;
}
.composer-dialog-foot {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:2px;
  margin:0 16px;
  padding:10px 0 12px;
  border-top:1px solid var(--bl-line-soft,var(--pt-line));
}
@media (max-width: 600px) {
  #postDialog.composer-dialog { margin:12px auto auto; width:calc(100vw - 20px); }
  .composer-dialog-meta { padding:0 16px 12px; }
}

.quick-tools { justify-content:flex-start; }
#quickSubmit, #submitPost { margin-inline-start:auto; }
.emoji-picker { position:relative; }
.emoji-picker summary { display:grid; place-items:center; width:40px; height:40px; list-style:none; color:var(--bl-accent,var(--pt-accent)); cursor:pointer; border-radius:50%; }
.emoji-picker summary::-webkit-details-marker { display:none; }
.emoji-picker summary:hover { background:var(--pt-surface-2); }
.emoji-options { position:absolute; z-index:5; inset:100% auto auto -16px; display:grid; grid-template-columns:repeat(4,36px); padding:6px; border:1px solid var(--pt-line); border-radius:12px; background:var(--pt-surface); }
#postDialog .emoji-options { inset:auto auto 100% 50%; transform:translateX(-50%); }
.emoji-options button { background:transparent; color:inherit; border:0; font-size:20px; padding:4px; cursor:pointer; }

.reply-window { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px 12px; padding:16px 0; border-block:1px solid var(--pt-line); margin-bottom:16px; }
.reply-window .pt-avatar { width:38px; height:38px; }
.reply-window textarea { width:100%; min-width:0; resize:none; font:inherit; color:inherit; border:0; background:transparent; padding:6px 0; }
.reply-window .reply-recipient, .reply-window .reply-tools { display:none; }
.reply-window.expanded .reply-recipient { display:block; grid-column:2/-1; color:var(--pt-muted); }
.reply-window.expanded textarea { grid-column:2/-1; min-height:56px; }
.reply-window.expanded .reply-tools { grid-column:2; display:flex; align-items:center; }
.reply-tools button[data-image] { display:grid; place-items:center; width:40px; height:40px; color:var(--pt-accent); border:0; background:transparent; cursor:pointer; }
.reply-tools svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; }
.reply-send { grid-column:3; padding:8px 18px; background:var(--pt-ink); color:var(--pt-surface); border:0; border-radius:99px; font:inherit; font-weight:650; cursor:pointer; }
.reply-send:disabled { opacity:.35; cursor:default; }
.reply-preview:not([hidden]) { grid-column:2; width:fit-content; background:transparent; color:inherit; border:0; cursor:pointer; }
.reply-preview img { height:64px; max-width:100%; vertical-align:middle; border-radius:8px; }
.reply-image { display:block; max-width:100%; max-height:380px; border-radius:12px; margin-block:8px; }
.pt-comment-replies { border-inline-start:1px solid var(--pt-line); padding-inline-start:12px; }

@media (max-width: 600px) {
  .reply-window { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; padding: 12px 0; }
  .reply-window .pt-avatar { width: 36px; height: 36px; }
  .reply-window textarea { font-size: 16px; }
  .reply-window.expanded .reply-recipient { overflow-wrap: anywhere; }
  .reply-window .reply-send { padding: 8px 12px; }
  .reply-window .emoji-options { inset: auto auto 100% 0; }
}

.profile-page { min-height: 100svh; display: grid; place-items: center; padding: 24px; background: var(--pt-surface); color: var(--pt-ink); }
.profile-form { display: grid; gap: 12px; width: min(100%, 400px); }
.profile-form input { font: inherit; padding: 12px; border: 1px solid var(--pt-line); border-radius: 8px; background: var(--pt-surface); color: inherit; }
.profile-form small { color: var(--pt-muted); }
.profile-form button { margin-top: 12px; }

.pt-author-identity { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px 5px; min-width: 0; }
.pt-author-name { display: inline-flex; align-items: center; line-height: 1.15; overflow-wrap: anywhere; }
.pt-author-handle { display: inline-flex; align-items: center; color: var(--bl-muted, var(--pt-muted)); font-size: var(--pt-author-handle-size, 1em); font-weight: 400; line-height: 1; overflow-wrap: anywhere; }
.pt-profile-intro h1.pt-author-identity { display: flex; gap: 4px 8px; --pt-author-handle-size: .65em; }

/* ============================================================
   Argon 社区媒体画廊（单图自适应 + 多图横向 Carousel + Lightbox）
   ============================================================ */
.pt-media-gallery {
  margin-top: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.pt-media-single {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: min(510px, 68vh);
  padding: 0;
  border: 1px solid var(--bl-line-soft, var(--pt-line-soft));
  border-radius: 16px;
  overflow: hidden;
  background: var(--bl-surface-2, var(--pt-surface-2));
  cursor: zoom-in;
  line-height: 0;
}
.pt-media-gallery.is-feed .pt-media-single.is-cropped {
  width: min(100%, 560px);
  max-height: min(440px, 62vh);
}
.pt-media-gallery.is-detail .pt-media-single {
  max-height: min(640px, 76vh);
}
.pt-media-single img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(510px, 68vh);
  object-fit: contain;
}
.pt-media-gallery.is-feed .pt-media-single.is-cropped img {
  width: 100%;
  height: 100%;
  max-height: min(440px, 62vh);
  object-fit: cover;
}
.pt-media-gallery.is-detail .pt-media-single img {
  max-height: min(640px, 76vh);
}

.pt-media-carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
}
.pt-media-carousel {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.pt-media-carousel::-webkit-scrollbar { display: none; }
.pt-media-slide {
  --carousel-h: clamp(210px, 30vw, 310px);
  flex: 0 0 auto;
  height: var(--carousel-h);
  width: min(82%, calc(var(--carousel-h) * var(--slide-ratio, 1)));
  min-width: 150px;
  padding: 0;
  border: 1px solid var(--bl-line-soft, var(--pt-line-soft));
  border-radius: 16px;
  overflow: hidden;
  background: var(--bl-surface-2, var(--pt-surface-2));
  scroll-snap-align: start;
  cursor: zoom-in;
  line-height: 0;
}
.pt-media-gallery.is-detail .pt-media-slide {
  --carousel-h: clamp(240px, 34vw, 380px);
}
.pt-media-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pt-media-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(15, 20, 25, .72);
  color: #fff;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color .16s ease, transform .16s ease;
}
.pt-media-arrow:hover { background: rgba(15, 20, 25, .88); transform: translateY(-50%) scale(1.05); }
.pt-media-arrow.prev { left: 10px; }
.pt-media-arrow.next { right: 10px; }
.pt-media-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 独立 Lightbox 查看器 */
.pt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 12, .92);
  backdrop-filter: blur(10px);
  color: #fff;
  user-select: none;
}
.pt-lightbox-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  pointer-events: none;
}
.pt-lightbox-counter {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  pointer-events: auto;
}
.pt-lightbox-tools {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
.pt-lightbox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(24, 28, 32, .78);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pt-lightbox-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .2); }
.pt-lightbox-btn:disabled { opacity: .4; cursor: default; }
.pt-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100dvh;
  padding: 64px 56px 32px;
  overflow: hidden;
  cursor: zoom-in;
}
.pt-lightbox-stage.is-zoomed { cursor: grab; }
.pt-lightbox-stage.is-dragging { cursor: grabbing; }
.pt-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: transform .18s ease;
  touch-action: none;
}
.pt-lightbox-stage.is-dragging .pt-lightbox-img { transition: none; }
.pt-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1002;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(24, 28, 32, .78);
  color: #fff;
  cursor: pointer;
}
.pt-lightbox-nav:hover { background: rgba(255, 255, 255, .2); }
.pt-lightbox-nav.prev { left: 16px; }
.pt-lightbox-nav.next { right: 16px; }
.pt-lightbox-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 760px) {
  .pt-lightbox-stage { padding: 60px 12px 24px; }
  .pt-lightbox-nav { width: 38px; height: 38px; }
  .pt-media-arrow { display: none; }
}

#postDialog textarea:not(.composer-dialog-textarea), #quickPost > input, .reply-window textarea {
  padding:10px 12px;
  border:1px solid transparent;
}
.pt-focus-field, .pt-browser-search .pt-focus-field {
  box-sizing:border-box;
  border-radius:12px;
  outline:none;
  transition:border-color 160ms ease, box-shadow 160ms ease;
}
.pt-focus-field:focus-within, #postDialog textarea:not(.composer-dialog-textarea):focus, #quickPost > input:focus {
  border-color:var(--pt-accent);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--pt-accent) 15%, transparent);
}
.quick-post-input:focus, .composer-dialog-textarea:focus {
  border-color:transparent;
  box-shadow:none;
}
@media (prefers-reduced-motion: reduce) {
  .pt-focus-field, .pt-browser-search .pt-focus-field { transition:none; }
}
@media (forced-colors: active) {
  .pt-focus-field:focus-within { outline:2px solid Highlight; }
}

.pt-follow-counts { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-top:12px; color:var(--bl-muted); font-size:14px; line-height:1.2; }
.pt-follow-counts a { color:inherit; }
.pt-follow-counts a:hover { color:var(--bl-accent); }
.pt-follow-button, #more { border:1px solid var(--bl-line); border-radius:999px; background:var(--bl-surface); color:var(--bl-ink); padding:8px 16px; font:inherit; font-weight:600; cursor:pointer; }
.pt-follow-button:hover, #more:hover { border-color:var(--bl-accent); }
.pt-follow-button:disabled, #more:disabled { opacity:.55; cursor:wait; }
.pt-follow-box { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-top:12px; }
.pt-follow-box .pt-follow-counts { margin-top:0; }
.pt-follow-page { width:min(720px,100%); margin:0 auto; padding:28px clamp(16px,4vw,36px); color:var(--bl-ink); }
.pt-follow-page h1 { margin:20px 0; }
.pt-follow-pane { padding: 18px 0 36px; color: var(--bl-ink); }
.pt-follow-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; }
.pt-follow-pane-head h1 { margin: 0 0 2px; font-size: clamp(20px, 2.4vw, 24px); }
.pt-follow-pane-meta { color: var(--pt-muted); font-size: 12px; }
.pt-follow-pane-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-follow-switch {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--bl-line);
  color: var(--bl-muted); font-size: 12.5px; font-weight: 600; text-decoration: none;
}
.pt-follow-switch.is-active { background: var(--bl-ink); border-color: var(--bl-ink); color: var(--bl-surface); }
.pt-follow-rec { margin-top: 28px; }
.pt-follow-rec h2 { font-size: 15px; margin: 0 0 12px; }
#more { margin:18px auto; display:block; }
#more[hidden] { display:none; }
.pt-follow-list { border-top:1px solid var(--bl-line); }
.pt-follow-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; border-bottom:1px solid var(--bl-line); }
.pt-follow-row a { display:flex; align-items:center; gap:12px; min-width:0; color:inherit; }
.pt-follow-row a > span:last-child { display:grid; min-width:0; }
.pt-follow-row small { color:var(--bl-muted); overflow-wrap:anywhere; }
@media (max-width:540px) { .pt-follow-row { gap:8px; } .pt-follow-row .pt-avatar { width:36px; height:36px; } }

@media (max-width: 900px) {
  body[data-platform="blog"] #postRailToggle { display: none; }
  body[data-platform="blog"]:not(.mobile-discover) #postRail { display: none; }
  body[data-platform="blog"].mobile-discover #postRail { display: flex; }
}

/* AdoT：对话工作区（保留统一顶栏，对齐侧栏 + 模式切换 + 居中输入设计） */
.adot-page {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--pt-surface);
  transition: grid-template-columns .22s cubic-bezier(.22, 1, .36, 1);
}
.adot-page > [data-adox-topbar],
.adot-page > .pt-topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  flex: none;
}

/* 左侧对话侧栏 */
.adot-history-rail {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 16px;
  border-right: 1px solid var(--pt-line);
  background: #f5f5f7;
  overflow: hidden;
}
html[data-theme="dark"] .adot-history-rail {
  background: #000000;
}

/* AdoT Logo 入场动效与单标签页首次入场纯白高级灰渐变舞台 */
.adot-logo-motion {
  display: block;
  overflow: visible;
  color: var(--pt-ink);
}
.adot-logo-motion.is-light {
  color: #000000;
}
.adot-logo-motion.is-dark {
  color: #ffffff;
}
.adot-logo-motion #core-dot,
.adot-logo-motion #orbit-dot {
  transform-box: fill-box;
  transform-origin: center;
}
.adot-history-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 2px 4px 2px 8px;
  margin-bottom: 10px;
}
.adot-brand-mark {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--pt-ink);
  font-size: 16px;
  line-height: 1;
  letter-spacing: -.02em;
}
.adot-brand-mark img {
  height: 1.2em;
  width: auto;
  flex: none;
  display: block;
  object-fit: contain;
}
html[data-theme="dark"] .adot-brand-mark img {
  filter: brightness(0) invert(1);
}
.adot-rail-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.adot-rail-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--pt-muted);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.adot-rail-icon:hover:not(:disabled),
.adot-rail-icon.is-active {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
}
.adot-rail-search-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  margin-bottom: 8px;
  padding: 0 6px 0 10px;
  border: 1px solid var(--pt-line);
  border-radius: 10px;
  background: var(--pt-surface);
  transition: border-color .16s ease;
}
.adot-rail-search-bar[hidden] {
  display: none;
}
.adot-rail-search-bar:focus-within {
  border-color: var(--pt-accent);
}
.adot-rail-search-bar > svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--pt-faint);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adot-rail-search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pt-ink);
  font: inherit;
  font-size: 13px;
}
.adot-rail-search-bar input::placeholder {
  color: var(--pt-faint);
}
.adot-rail-search-bar input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.adot-rail-search-clear {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--pt-faint);
  cursor: pointer;
}
.adot-rail-search-clear:hover {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
}
.adot-rail-search-clear svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}
.adot-rail-search-results {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.adot-rail-search-results[hidden] {
  display: none;
}
.adot-search-result-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pt-ink-soft);
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.adot-search-result-item:hover,
.adot-search-result-item.is-active {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
}
.adot-search-result-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 540;
  color: var(--pt-ink);
}
.adot-search-result-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--pt-muted);
}
.adot-rail-icon:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.adot-rail-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adot-rail-new {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pt-ink);
  font-size: 13.5px;
  font-weight: 520;
  text-align: left;
  cursor: pointer;
  transition: background-color .16s ease;
}
.adot-rail-new:hover:not(:disabled) {
  background: var(--pt-surface-2);
}
.adot-rail-new:disabled {
  opacity: .45;
  cursor: default;
}
.adot-rail-new svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adot-rail-scroll {
  flex: 1;
  min-height: 0;
  margin-top: 8px;
  padding-right: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--pt-line-strong) transparent;
}
.adot-rail-scroll::-webkit-scrollbar { width: 5px; }
.adot-rail-scroll::-webkit-scrollbar-thumb { background: var(--pt-line-strong); border-radius: 999px; }
.adot-rail-scroll::-webkit-scrollbar-track { background: transparent; }
.adot-history-note {
  margin: 18px 10px 6px;
  color: var(--pt-faint);
  font-size: 12px;
  font-weight: 500;
}
.adot-rail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 4px 6px 10px;
}
.adot-rail-section-head .adot-history-note {
  margin: 0;
}
.adot-rail-mini-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--pt-muted);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.adot-rail-mini-btn:hover {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
}
.adot-rail-mini-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.adot-project-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 4px 8px;
}
.adot-project-form input {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--pt-line);
  border-radius: 8px;
  background: var(--pt-surface);
  color: var(--pt-ink);
  font-size: 12.5px;
  outline: 0;
}
.adot-project-form input:focus {
  border-color: var(--pt-accent);
}
.adot-project-form button {
  flex: none;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--pt-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
}
html[data-theme="dark"] .adot-project-form button {
  color: #0b0f0c;
}
.adot-project-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adot-project-group {
  display: flex;
  flex-direction: column;
}
.adot-project-row {
  display: flex;
  align-items: center;
  border-radius: 10px;
  transition: background-color .15s ease;
}
.adot-project-row:hover {
  background: var(--pt-surface-2);
}
.adot-project-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pt-ink-soft);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.adot-project-row:hover .adot-project-trigger {
  color: var(--pt-ink);
}
.adot-project-trigger svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adot-project-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adot-project-count {
  margin-left: auto;
  color: var(--pt-faint);
  font-size: 11.5px;
}
.adot-project-row:hover .adot-rail-delete,
.adot-project-row:focus-within .adot-rail-delete {
  opacity: 1;
}
.adot-project-children {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 6px 14px;
  padding-left: 8px;
  border-left: 1px solid var(--pt-line);
}
.adot-project-empty {
  margin: 4px 8px;
  color: var(--pt-faint);
  font-size: 11.5px;
}
.adot-rail-move {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--pt-faint);
  opacity: 0;
  cursor: pointer;
  transition: opacity .15s ease, color .15s ease, background-color .15s ease;
}
.adot-rail-row:hover .adot-rail-move,
.adot-rail-row:focus-within .adot-rail-move {
  opacity: 1;
}
.adot-rail-move:hover {
  background: var(--pt-line-soft);
  color: var(--pt-accent);
}
.adot-rail-move svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: none) {
  .adot-rail-move {
    opacity: .72;
  }
}
.adot-move-menu {
  position: fixed;
  z-index: 220;
  min-width: 186px;
  max-width: 240px;
  padding: 6px;
  border: 1px solid var(--pt-line);
  border-radius: 14px;
  background: var(--pt-elevated);
  box-shadow: 0 20px 50px -20px rgba(16, 21, 18, .38);
  animation: pt-pop .16s cubic-bezier(.2, .75, .25, 1) both;
}
.adot-move-title {
  padding: 6px 10px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--pt-line);
  color: var(--pt-faint);
  font-size: 11px;
  font-weight: 600;
}
.adot-move-empty {
  padding: 10px;
  color: var(--pt-muted);
  font-size: 12px;
  line-height: 1.5;
}
.adot-move-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--pt-ink-soft);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.adot-move-item:hover {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
}
.adot-move-item.is-current {
  color: var(--pt-accent);
  font-weight: 600;
}
.adot-move-item.is-unassign {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid var(--pt-line);
  color: var(--pt-muted);
}
.adot-move-item svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adot-rail-empty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--pt-muted);
  font-size: 13px;
  opacity: .72;
}
.adot-rail-empty-row svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adot-rail-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adot-rail-row {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 10px;
  transition: background-color .16s ease;
}
.adot-rail-row:hover,
.adot-rail-row.is-active {
  background: var(--pt-surface-2);
}
.adot-rail-thread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pt-ink-soft);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: color .16s ease;
}
.adot-rail-row:hover .adot-rail-thread,
.adot-rail-thread.is-active {
  color: var(--pt-ink);
}
.adot-rail-thread.is-active {
  font-weight: 550;
}
.adot-rail-thread-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adot-rail-delete {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--pt-faint);
  opacity: 0;
  cursor: pointer;
  transition: opacity .15s ease, color .15s ease, background-color .15s ease;
}
.adot-rail-row:hover .adot-rail-delete,
.adot-rail-row:focus-within .adot-rail-delete {
  opacity: 1;
}
.adot-rail-delete:hover {
  background: var(--pt-line-soft);
  color: var(--pt-danger);
}
.adot-rail-delete svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: none) {
  .adot-rail-delete {
    opacity: .72;
  }
}
.adot-history-placeholder {
  margin: 8px 10px 0;
  color: var(--pt-faint);
  font-size: 11.5px;
  line-height: 1.55;
}
.adot-rail-scrim {
  display: none;
}
/* 通用确认弹窗（删除对话等） */
.adot-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 14, 11, .42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: pt-pop .15s ease both;
}
.adot-modal-backdrop[hidden] {
  display: none;
}
.adot-modal-card {
  width: min(380px, 100%);
  padding: 22px 22px 18px;
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  background: var(--pt-elevated);
  color: var(--pt-ink);
  box-shadow: 0 28px 64px -22px rgba(10, 14, 11, .42);
}
.adot-modal-card h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 620;
  color: var(--pt-ink);
}
.adot-modal-card p {
  margin: 8px 0 20px;
  color: var(--pt-muted);
  font-size: 13.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.adot-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.adot-modal-cancel,
.adot-modal-danger {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.adot-modal-cancel {
  border: 1px solid var(--pt-line);
  background: transparent;
  color: var(--pt-ink-soft);
}
.adot-modal-cancel:hover {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
}
.adot-modal-danger {
  border: 0;
  background: var(--pt-danger);
  color: #fff;
}
.adot-modal-danger:hover {
  opacity: .9;
}

/* 左侧栏底部 300° 额度环与浮层卡片 */
.adot-rail-footer {
  position: relative;
  flex: none;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--pt-line-soft);
}
.adot-quota-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--pt-ink);
  text-align: left;
  cursor: pointer;
  transition: background-color .16s ease;
}
.adot-quota-trigger:hover,
.adot-quota-trigger[aria-expanded="true"] {
  background: var(--pt-surface-2);
}
.adot-quota-dial {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--pt-surface-2);
}
.adot-quota-dial svg {
  width: 26px;
  height: 26px;
  display: block;
}
.adot-quota-track {
  fill: none;
  stroke: var(--pt-line-strong);
  stroke-width: 2.6;
  stroke-linecap: round;
  opacity: .55;
}
.adot-quota-arc {
  fill: none;
  stroke: var(--pt-ink);
  stroke-width: 2.8;
  stroke-linecap: round;
  transition: stroke-dasharray .35s cubic-bezier(.22, 1, .36, 1), stroke .2s ease;
}
.adot-quota-trigger.is-warn .adot-quota-arc { stroke: #d97706; }
.adot-quota-trigger.is-low .adot-quota-arc { stroke: var(--pt-danger); }
.adot-quota-core {
  fill: var(--pt-muted);
  opacity: .55;
}
.adot-quota-summary {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.adot-quota-summary strong {
  font-size: 13px;
  font-weight: 560;
  color: var(--pt-ink);
}
.adot-quota-summary small {
  font-size: 11.5px;
  color: var(--pt-muted);
}
.adot-quota-popover {
  position: fixed;
  left: 16px;
  bottom: 64px;
  z-index: 230;
  width: min(300px, calc(100vw - 32px));
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  background: var(--pt-elevated);
  color: var(--pt-ink);
  box-shadow: 0 24px 60px -24px rgba(16, 21, 18, .34), 0 2px 8px rgba(16, 21, 18, .06);
  animation: pt-pop .16s cubic-bezier(.2, .75, .25, 1) both;
  overflow: hidden;
}
.adot-quota-pop-head {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--pt-line-soft);
  color: var(--pt-muted);
  font-size: 13px;
}
.adot-quota-pop-body {
  padding: 14px 18px;
  border-bottom: 1px solid var(--pt-line-soft);
}
.adot-quota-pop-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.adot-quota-pop-name {
  font-size: 15px;
  font-weight: 550;
  color: var(--pt-ink);
}
.adot-quota-pop-stat {
  font-size: 15px;
  font-weight: 550;
  color: var(--pt-ink);
}
.adot-quota-pop-meta {
  margin: 6px 0 0;
  color: var(--pt-muted);
  font-size: 12px;
}
.adot-quota-pop-foot {
  padding: 6px 8px;
}
.adot-quota-manage {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--pt-ink);
  font-size: 14.5px;
  font-weight: 520;
  transition: background-color .15s ease;
}
.adot-quota-manage:hover {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
}

/* 桌面端收起侧栏态 */
.adot-page.adot-rail-closed {
  grid-template-columns: 60px minmax(0, 1fr);
}
.adot-page.adot-rail-closed .adot-history-rail {
  padding-inline: 8px;
  align-items: center;
}
.adot-page.adot-rail-closed .adot-history-brand {
  justify-content: center;
  padding: 2px 0;
  width: 100%;
}
.adot-page.adot-rail-closed .adot-brand-mark,
.adot-page.adot-rail-closed #adotRailSearch,
.adot-page.adot-rail-closed .adot-rail-search-bar,
.adot-page.adot-rail-closed .adot-rail-new span,
.adot-page.adot-rail-closed .adot-rail-scroll,
.adot-page.adot-rail-closed .adot-quota-summary {
  display: none;
}
.adot-page.adot-rail-closed .adot-rail-footer {
  margin-top: auto;
  border-top: 0;
}
.adot-page.adot-rail-closed .adot-quota-trigger {
  width: 42px;
  padding: 4px;
  justify-content: center;
}
.adot-page.adot-rail-closed .adot-rail-new {
  width: 38px;
  padding: 0;
  justify-content: center;
}

/* 主对话区 */
.adot-shell {
  position: relative;
  overflow: hidden;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--pt-surface);
}
.adot-heading {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(14px, 3vw, 28px);
}
.adot-heading-left {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
}
.adot-mobile-rail-btn {
  display: none;
}
.adot-heading-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.adot-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  background: var(--pt-surface);
  color: var(--pt-ink-soft);
  font-size: 12.5px;
  font-weight: 520;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.adot-new-btn:hover:not(:disabled) {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
  border-color: var(--pt-line-strong);
}
.adot-new-btn:disabled {
  opacity: .45;
  cursor: default;
}
.adot-new-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 顶部居中模式切换：知识 / 创作 / AKUMA（Super Agent 预留） */
.adot-mode-bar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--pt-line-soft);
  border-radius: 999px;
  background: var(--pt-surface-2);
}
.adot-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 72px;
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pt-muted);
  font-size: 13.5px;
  font-weight: 550;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.adot-mode-btn.is-active {
  background: var(--pt-surface);
  color: var(--pt-ink);
  box-shadow: 0 1px 4px rgba(16, 21, 18, .09), 0 0 0 1px var(--pt-line-soft);
}
html[data-theme="dark"] .adot-mode-btn.is-active {
  background: var(--pt-elevated);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35), 0 0 0 1px var(--pt-line);
}
.adot-mode-btn.is-disabled {
  color: var(--pt-muted);
  opacity: .72;
  cursor: not-allowed;
}
/* AKUMA 模式：深红曜石底 + 红色漂浮粒子动效 */
.adot-mode-btn.adot-mode-akuma {
  position: relative;
  overflow: hidden;
  min-width: 82px;
  padding: 0 15px;
  opacity: 1;
  color: #ffecec;
  background: radial-gradient(circle at 50% 65%, rgba(220, 38, 38, .42), rgba(32, 7, 10, .96) 72%), #160406;
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .38), 0 2px 10px -4px rgba(220, 38, 38, .55);
}
.adot-akuma-label {
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .08em;
  color: #fff1f1;
  text-shadow: 0 0 10px rgba(239, 68, 68, .85);
}
.adot-akuma-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.adot-akuma-particles i {
  position: absolute;
  bottom: -4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ff4d4f;
  box-shadow: 0 0 6px 1px rgba(255, 77, 79, .9);
  opacity: 0;
  animation: adot-akuma-rise 2.6s linear infinite;
}
.adot-akuma-particles i:nth-child(1) { left: 14%; animation-delay: 0s; animation-duration: 2.3s; }
.adot-akuma-particles i:nth-child(2) { left: 28%; width: 2.5px; height: 2.5px; background: #fca5a5; animation-delay: .7s; animation-duration: 2.8s; }
.adot-akuma-particles i:nth-child(3) { left: 46%; width: 3.5px; height: 3.5px; animation-delay: 1.2s; animation-duration: 2.4s; }
.adot-akuma-particles i:nth-child(4) { left: 62%; width: 2px; height: 2px; background: #ff7875; animation-delay: .35s; animation-duration: 2.1s; }
.adot-akuma-particles i:nth-child(5) { left: 76%; width: 3px; height: 3px; animation-delay: 1.6s; animation-duration: 2.7s; }
.adot-akuma-particles i:nth-child(6) { left: 88%; width: 2px; height: 2px; background: #f87171; animation-delay: .95s; animation-duration: 2.5s; }
@keyframes adot-akuma-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(.7);
    opacity: 0;
  }
  22% {
    opacity: .95;
  }
  78% {
    opacity: .65;
  }
  100% {
    transform: translate3d(4px, -32px, 0) scale(.35);
    opacity: 0;
  }
}
.adot-mode-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pt-accent);
  opacity: .75;
}
.adot-mode-tip {
  position: relative;
  display: inline-flex;
}
.adot-mode-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  padding: 5px 10px;
  border: 1px solid var(--pt-line);
  border-radius: 8px;
  background: var(--pt-elevated);
  color: var(--pt-ink-soft);
  font-size: 11.5px;
  white-space: nowrap;
  box-shadow: 0 10px 26px -12px rgba(16, 21, 18, .35);
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition: opacity .15s ease, transform .15s ease;
}
.adot-mode-tip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 对话舞台：空状态居中呈现，进入对话后消息区滚动 + 输入栏吸底 */
.adot-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.adot-shell.is-empty .adot-stage {
  justify-content: center;
  padding-bottom: 10vh;
}
.adot-messages {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 20px clamp(16px, 4vw, 32px) 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.adot-shell.is-empty .adot-messages {
  flex: 0 0 auto;
  overflow: visible;
  padding: 0 clamp(16px, 4vw, 32px) 26px;
}
.adot-messages > * {
  max-width: 780px;
  margin-inline: auto;
}
.adot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.adot-empty h2 {
  margin: 0;
  color: var(--pt-ink);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 560;
  letter-spacing: -.03em;
  line-height: 1.25;
}

/* 对话气泡（无头像极简布局） */
.adot-message {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.adot-message.is-user {
  justify-content: flex-end;
}
.adot-bubble {
  max-width: min(82%, 620px);
  min-width: 0;
  padding: 11px 15px;
  border: 1px solid var(--pt-line);
  border-radius: 18px 18px 18px 6px;
  background: var(--pt-surface);
  color: var(--pt-ink);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.adot-message.is-user .adot-bubble {
  border-color: var(--pt-line-soft);
  border-radius: 18px 18px 6px 18px;
  background: var(--pt-surface-2);
}
/* 思考态（无对话框，adot-black 外环不匀速逆时针旋转，中心点静止）与生成态（完成后弹出对话框） */
.adot-message.is-thinking .adot-bubble {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--pt-muted);
}
.adot-message.is-bubble-enter .adot-bubble {
  animation: adot-bubble-appear .24s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes adot-bubble-appear {
  from {
    opacity: 0;
    transform: translateY(4px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.adot-thinking-ring-wrap {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--pt-ink);
}
.adot-thinking-svg {
  display: block;
  width: 22px;
  height: 22px;
  overflow: visible;
}
.adot-thinking-ring {
  transform-origin: 118px 50px;
  will-change: transform;
  animation: adot-ring-spin-ccw 1.55s cubic-bezier(.62, .06, .28, .94) infinite;
}
@keyframes adot-ring-spin-ccw {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}
.adot-thinking-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--pt-muted);
}
.adot-stream-chunk {
  display: inline;
  animation: adot-chunk-in .26s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes adot-chunk-in {
  from {
    opacity: 0;
    filter: blur(2.5px);
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* 底部 / 居中胶囊输入栏（沿用 .pt-focus-field 焦点态） */
.adot-composer {
  flex: none;
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 6px clamp(14px, 3vw, 24px) 18px;
}
.adot-low-credits-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px 10px 14px;
  border: 1px solid color-mix(in srgb, #d97706 34%, var(--pt-line));
  border-radius: 16px;
  background: color-mix(in srgb, #f59e0b 10%, var(--pt-surface));
  color: var(--pt-ink);
  animation: pt-pop .16s ease both;
}
.adot-low-credits-banner[hidden] {
  display: none;
}
html[data-theme="dark"] .adot-low-credits-banner {
  border-color: color-mix(in srgb, #f59e0b 36%, var(--pt-line));
  background: color-mix(in srgb, #f59e0b 13%, var(--pt-elevated));
}
.adot-low-credits-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--pt-ink-soft);
}
.adot-low-credits-copy svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: #d97706;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[data-theme="dark"] .adot-low-credits-copy svg {
  stroke: #fbbf24;
}
.adot-low-credits-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--pt-accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 580;
  transition: background-color .15s ease;
}
html[data-theme="dark"] .adot-low-credits-cta {
  color: #0b0f0c;
}
.adot-low-credits-cta:hover {
  background: var(--pt-accent-strong);
  color: #fff;
}
html[data-theme="dark"] .adot-low-credits-cta:hover {
  color: #0b0f0c;
}
.adot-input {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 56px;
  padding: 9px 10px 9px 12px;
  border: 1px solid var(--pt-line);
  border-radius: 28px;
  background: var(--pt-surface);
  box-shadow: 0 6px 24px -10px rgba(16, 21, 18, .1), 0 1px 3px rgba(16, 21, 18, .04);
}
html[data-theme="dark"] .adot-input {
  background: var(--pt-elevated);
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, .55);
}
.adot-input-tool {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pt-muted);
  cursor: not-allowed;
  opacity: .6;
}
.adot-input-tool svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
}
/* 联网搜索地球图标、确认小窗口与模型选择菜单 */
.adot-composer-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
}
.adot-search-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--pt-muted);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.adot-search-toggle:hover:not(:disabled) {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
}
.adot-search-toggle.is-active {
  background: var(--pt-accent-soft);
  border-color: color-mix(in srgb, var(--pt-accent) 42%, transparent);
  color: var(--pt-accent);
}
.adot-search-toggle:disabled {
  opacity: .45;
  cursor: default;
}
.adot-search-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adot-search-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 230;
  width: min(290px, calc(100vw - 40px));
  padding: 16px 16px 14px;
  border: 1px solid var(--pt-line);
  border-radius: 18px;
  background: var(--pt-elevated);
  color: var(--pt-ink);
  box-shadow: 0 20px 52px -20px rgba(16, 21, 18, .32), 0 2px 8px rgba(16, 21, 18, .06);
  animation: pt-pop .16s cubic-bezier(.2, .75, .25, 1) both;
}
.adot-search-pop-title {
  display: block;
  font-size: 14px;
  font-weight: 620;
  color: var(--pt-ink);
}
.adot-search-pop-desc {
  margin: 6px 0 14px;
  color: var(--pt-muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.adot-search-pop-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.adot-search-pop-cancel,
.adot-search-pop-confirm {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 560;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.adot-search-pop-cancel {
  border: 1px solid var(--pt-line);
  background: transparent;
  color: var(--pt-muted);
}
.adot-search-pop-cancel:hover {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
}
.adot-search-pop-confirm {
  border: 0;
  background: var(--pt-accent);
  color: #fff;
}
html[data-theme="dark"] .adot-search-pop-confirm {
  color: #0b0f0c;
}
.adot-search-pop-confirm:hover {
  background: var(--pt-accent-strong);
}
.adot-model-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--pt-surface-2);
  color: var(--pt-ink);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: background-color .16s ease;
}
.adot-model-trigger:hover {
  background: var(--pt-line);
}
.adot-model-trigger svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .16s ease;
}
.adot-model-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.adot-model-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 230;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 268px;
  padding: 8px;
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  background: var(--pt-elevated);
  color: var(--pt-ink);
  box-shadow: 0 24px 60px -22px rgba(16, 21, 18, .32), 0 2px 8px rgba(16, 21, 18, .06);
  animation: pt-pop .16s cubic-bezier(.2, .75, .25, 1) both;
}
.adot-model-popover[hidden] {
  display: none;
}
.adot-model-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: default;
  transition: background-color .14s ease;
}
.adot-model-option.is-selectable {
  cursor: pointer;
}
.adot-model-option.is-selectable:hover {
  background: var(--pt-surface-2);
}
.adot-model-option.is-selected {
  background: var(--pt-surface-2);
}
.adot-model-option.is-locked {
  opacity: .58;
  cursor: not-allowed;
}
.adot-model-check.is-hidden {
  visibility: hidden;
}
.adot-model-check,
.adot-model-lock {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  fill: none;
  stroke: var(--pt-ink);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adot-model-lock {
  stroke: var(--pt-muted);
}
.adot-model-copy {
  flex: 1;
  min-width: 0;
}
.adot-model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.adot-model-row strong {
  color: var(--pt-ink);
  font-size: 14px;
  font-weight: 600;
}
.adot-model-rate,
.adot-model-tag {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  color: var(--pt-muted);
  font-size: 11px;
  font-weight: 600;
}
.adot-model-copy small {
  display: block;
  margin-top: 3px;
  color: var(--pt-muted);
  font-size: 12px;
}
/* 联网搜索正文引用角标、Markdown 排版与来源卡片列表 */
.adot-bubble.is-markdown {
  white-space: normal;
}
.adot-bubble-md {
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.adot-bubble-md > :first-child {
  margin-top: 0;
}
.adot-bubble-md > :last-child {
  margin-bottom: 0;
}
.adot-bubble-md p {
  margin: 0 0 10px;
}
.adot-bubble-md h1,
.adot-bubble-md h2,
.adot-bubble-md h3,
.adot-bubble-md h4 {
  margin: 14px 0 8px;
  font-weight: 630;
  line-height: 1.35;
  color: var(--pt-ink);
}
.adot-bubble-md h1 { font-size: 1.18em; }
.adot-bubble-md h2 { font-size: 1.1em; }
.adot-bubble-md h3 { font-size: 1.03em; }
.adot-bubble-md h4 { font-size: .98em; }
.adot-bubble-md ul,
.adot-bubble-md ol {
  margin: 6px 0 10px;
  padding-left: 20px;
}
.adot-bubble-md li + li {
  margin-top: 4px;
}
.adot-bubble-md blockquote {
  margin: 8px 0 10px;
  padding: 6px 12px;
  border-left: 3px solid var(--pt-accent);
  border-radius: 0 8px 8px 0;
  background: var(--pt-surface-2);
  color: var(--pt-muted);
}
.adot-bubble-md hr {
  margin: 12px 0;
  border: 0;
  border-top: 1px solid var(--pt-line);
}
.adot-bubble-md code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--pt-surface-2);
  border: 1px solid var(--pt-line-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
}
.adot-bubble-md pre {
  margin: 8px 0 10px;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--pt-line);
  background: var(--pt-bg);
  overflow-x: auto;
  line-height: 1.55;
}
.adot-bubble-md pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12.5px;
}
.adot-bubble-md a:not(.adot-inline-cite) {
  color: var(--pt-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.adot-md-table-wrap {
  margin: 8px 0 10px;
  overflow-x: auto;
}
.adot-bubble-md table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.adot-bubble-md th,
.adot-bubble-md td {
  padding: 6px 10px;
  border: 1px solid var(--pt-line);
  text-align: left;
}
.adot-bubble-md th {
  background: var(--pt-surface-2);
  font-weight: 600;
}
.adot-bubble-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.adot-inline-cite {
  display: inline-block;
  margin: 0 2px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--pt-accent-soft);
  color: var(--pt-accent);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: 1px;
}
.adot-inline-cite:hover {
  background: var(--pt-accent);
  color: #fff;
}
html[data-theme="dark"] .adot-inline-cite:hover {
  color: #0b0f0c;
}
.adot-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--pt-line-soft);
}
.adot-sources-label {
  color: var(--pt-faint);
  font-size: 11.5px;
  font-weight: 550;
  margin-right: 2px;
}
.adot-source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 220px;
  padding: 3px 9px 3px 5px;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  background: var(--pt-bg);
  color: var(--pt-ink-soft);
  font-size: 11.5px;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.adot-source-link:hover {
  border-color: var(--pt-accent);
  color: var(--pt-accent);
  background: var(--pt-surface-2);
}
.adot-source-link i {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pt-surface-2);
  color: var(--pt-muted);
  font-style: normal;
  font-size: 10px;
  font-weight: 650;
}
.adot-source-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adot-billing-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--pt-line-soft);
  color: var(--pt-faint);
  font-size: 11.5px;
  line-height: 1.4;
}
.adot-billing-chip.is-model {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--pt-surface-2);
  border: 1px solid var(--pt-line);
  color: var(--pt-muted);
  font-weight: 600;
}
.adot-billing-item.is-strong {
  color: var(--pt-ink-soft);
  font-weight: 600;
}
.adot-input textarea {
  flex: 1;
  min-width: 0;
  max-height: 160px;
  resize: none;
  padding: 7px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pt-ink);
  caret-color: var(--pt-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  appearance: none;
  -webkit-appearance: none;
}
.adot-input textarea:focus-visible {
  outline: none;
}
.adot-input textarea::placeholder {
  color: var(--pt-faint);
}
.adot-input-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.adot-input-mode {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--pt-muted);
  font-size: 12.5px;
  font-weight: 500;
  user-select: none;
}
.adot-send-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pt-accent);
  color: #fff;
  cursor: pointer;
  transition: opacity .16s ease, transform .14s ease, background-color .16s ease;
}
html[data-theme="dark"] .adot-send-btn {
  color: #0b0f0c;
}
.adot-send-btn:hover:not(:disabled) {
  background: var(--pt-accent-strong);
}
.adot-send-btn:active:not(:disabled) {
  transform: scale(.94);
}
.adot-send-btn:disabled {
  background: var(--pt-surface-2);
  color: var(--pt-muted);
  border: 1px solid var(--pt-line);
  opacity: .75;
  cursor: default;
}
.adot-send-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adot-composer > p {
  min-height: 18px;
  margin: 10px 6px 0;
  color: var(--pt-muted);
  font-size: 12px;
  text-align: center;
}
.adot-composer > p a {
  margin-left: 8px;
  color: var(--pt-accent);
  font-weight: 550;
}

/* 移动端适配：悬浮圆角顶栏控件 + 底部胶囊输入栏 + 侧滑抽屉 */
@media (max-width: 760px) {
  .adot-page {
    display: flex;
    flex-direction: column;
    background: var(--pt-surface);
  }
  .adot-shell {
    flex: 1;
    min-height: 0;
  }
  .adot-heading {
    padding: 12px 16px 8px;
  }
  .adot-mobile-rail-btn {
    display: grid;
    width: 40px;
    height: 40px;
    border: 1px solid var(--pt-line-soft);
    border-radius: 50%;
    background: var(--pt-surface);
    color: var(--pt-ink);
    box-shadow: 0 4px 16px -6px rgba(16, 21, 18, .14), 0 1px 3px rgba(16, 21, 18, .05);
  }
  html[data-theme="dark"] .adot-mobile-rail-btn,
  html[data-theme="dark"] .adot-new-btn,
  html[data-theme="dark"] .adot-mode-bar {
    background: var(--pt-elevated);
    border-color: var(--pt-line);
    box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .55);
  }
  .adot-mode-bar {
    padding: 4px;
    border: 1px solid var(--pt-line-soft);
    background: var(--pt-surface);
    box-shadow: 0 4px 16px -6px rgba(16, 21, 18, .12), 0 1px 3px rgba(16, 21, 18, .04);
  }
  .adot-mode-btn {
    min-width: 68px;
    height: 32px;
    padding: 0 16px;
    font-size: 13.5px;
  }
  .adot-mode-btn.is-active {
    background: var(--pt-surface-2);
    box-shadow: none;
  }
  html[data-theme="dark"] .adot-mode-btn.is-active {
    background: var(--pt-surface-2);
    box-shadow: inset 0 0 0 1px var(--pt-line);
  }
  .adot-mode-dot {
    display: none;
  }
  .adot-new-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border: 1px solid var(--pt-line-soft);
    border-radius: 50%;
    background: var(--pt-surface);
    color: var(--pt-ink);
    box-shadow: 0 4px 16px -6px rgba(16, 21, 18, .14), 0 1px 3px rgba(16, 21, 18, .05);
  }
  .adot-new-btn span {
    display: none;
  }
  .adot-new-btn svg {
    width: 17px;
    height: 17px;
  }
  .adot-history-rail {
    position: fixed;
    top: 68px;
    bottom: 0;
    left: 0;
    width: min(280px, 82vw);
    z-index: 140;
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    box-shadow: none;
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .22s;
  }
  .adot-page.adot-rail-mobile-open .adot-history-rail {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: 12px 0 36px -16px rgba(16, 21, 18, .28);
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), visibility 0s linear 0s;
  }
  .adot-page.adot-rail-mobile-open .adot-rail-scrim {
    display: block;
    position: fixed;
    inset: 68px 0 0 0;
    z-index: 130;
    border: 0;
    background: rgba(10, 14, 11, .34);
    cursor: default;
  }
  /* 移动端空状态：保持画布留白，输入栏固定贴底便于单手操作 */
  .adot-shell.is-empty .adot-stage {
    justify-content: space-between;
    padding-bottom: 0;
  }
  .adot-shell.is-empty .adot-messages {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
  }
  .adot-empty h2 {
    font-size: 23px;
    font-weight: 540;
  }
  .adot-composer {
    padding: 8px 14px max(14px, env(safe-area-inset-bottom));
  }
  .adot-input {
    min-height: 52px;
    padding: 7px 8px 7px 10px;
    border-radius: 26px;
    border-color: var(--pt-line-soft);
    box-shadow: 0 6px 24px -6px rgba(16, 21, 18, .12), 0 1px 4px rgba(16, 21, 18, .05);
  }
  .adot-input textarea {
    font-size: 16px;
    padding: 6px 0;
  }
  .adot-input-mode {
    display: none;
  }
  .adot-composer > p {
    margin-top: 6px;
    font-size: 11px;
  }
  .adot-bubble {
    max-width: 88%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .adot-page,
  .adot-history-rail,
  .adot-mode-btn,
  .adot-mode-tip::after {
    transition: none;
  }
  .adot-thinking-ring,
  .adot-message.is-bubble-enter .adot-bubble,
  .adot-stream-chunk,
  .adot-akuma-particles i {
    animation: none;
  }
}

/* AdoT 设置中心（Sidebar + 获得额度 / 使用情况和计费） */
.adot-settings-page {
  min-height: 100dvh;
  background: var(--pt-surface);
}
.adot-settings-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100dvh - 72px);
}
.adot-settings-side {
  position: sticky;
  top: 72px;
  height: calc(100dvh - 72px);
  padding: 20px 14px 28px;
  border-right: 1px solid var(--pt-line);
  background: var(--pt-bg);
  overflow-y: auto;
}
.adot-settings-side-head {
  padding: 0 8px 16px;
}
.adot-settings-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  color: var(--pt-muted);
  font-size: 12.5px;
  font-weight: 520;
  transition: background-color .15s ease, color .15s ease;
}
.adot-settings-back:hover {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
}
.adot-settings-back svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adot-settings-side-head h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 620;
  color: var(--pt-ink);
  letter-spacing: -.02em;
}
.adot-settings-group {
  margin-top: 14px;
}
.adot-settings-group-label {
  margin: 0 0 6px;
  padding: 0 10px;
  color: var(--pt-faint);
  font-size: 11.5px;
  font-weight: 560;
}
.adot-settings-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--pt-ink);
  transition: background-color .15s ease;
}
.adot-settings-profile:hover {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
}
.adot-settings-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pt-accent-soft);
  color: var(--pt-accent);
  font-size: 11.5px;
  font-weight: 620;
  overflow: hidden;
}
.adot-settings-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.adot-settings-user-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 520;
}
.adot-settings-ext {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: var(--pt-faint);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adot-settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pt-ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.adot-settings-nav-item + .adot-settings-nav-item {
  margin-top: 2px;
}
.adot-settings-nav-item:hover {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
}
.adot-settings-nav-item.is-active {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
  font-weight: 580;
}
.adot-settings-nav-item svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adot-settings-main {
  min-width: 0;
  background: var(--pt-surface);
}
.adot-settings-inner {
  width: min(100%, 740px);
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 52px) clamp(18px, 4vw, 32px) 84px;
}
.adot-settings-inner .adot-usage-head h2 {
  margin: 0 0 6px;
  color: var(--pt-ink);
  font-size: clamp(24px, 3.6vw, 30px);
  font-weight: 650;
  letter-spacing: -.03em;
}
.adot-settings-inner .adot-usage-section h3 {
  margin: 0 0 6px;
  color: var(--pt-ink);
  font-size: 15.5px;
  font-weight: 620;
}
.adot-credits-big {
  margin-top: 6px;
  font-size: 32px;
  font-weight: 680;
  letter-spacing: -.03em;
  color: var(--pt-ink);
}
.adot-credits-big small {
  font-size: 14px;
  font-weight: 500;
  color: var(--pt-muted);
}
/* 获得额度：兑换码表单与礼物盒拆开动效弹窗 */
.adot-redeem-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.adot-redeem-form[hidden] {
  display: none;
}
.adot-redeem-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  background: var(--pt-bg);
  color: var(--pt-ink);
  font: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color .16s ease;
}
.adot-redeem-form input:focus {
  border-color: var(--pt-accent);
}
.adot-redeem-form button {
  flex: none;
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--pt-accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, opacity .15s ease;
}
html[data-theme="dark"] .adot-redeem-form button {
  color: #0b0f0c;
}
.adot-redeem-form button:hover:not(:disabled) {
  background: var(--pt-accent-strong);
}
.adot-redeem-form button:disabled {
  opacity: .55;
  cursor: wait;
}
.adot-redeem-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--pt-muted);
  font-size: 12.5px;
}
.adot-redeem-status:empty {
  display: none;
}
.adot-redeem-status.is-error {
  color: var(--pt-danger);
}
.adot-redeem-claimed {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--pt-line-soft);
  color: var(--pt-muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.adot-redeem-claimed[hidden] {
  display: none;
}
.adot-redeem-claimed svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--pt-accent);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adot-gift-modal {
  width: min(390px, 100%);
  text-align: center;
  padding: 26px 24px 22px;
}
.adot-gift-stage {
  position: relative;
  width: 132px;
  height: 124px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
}
.adot-gift-glow {
  position: absolute;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, .34) 0%, rgba(16, 185, 129, .14) 50%, transparent 74%);
  filter: blur(12px);
  opacity: 0;
  transform: scale(.5);
}
.adot-gift-svg {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 112px;
  overflow: visible;
}
.adot-gift-body {
  fill: color-mix(in srgb, var(--pt-accent) 18%, var(--pt-surface));
  stroke: var(--pt-accent);
  stroke-width: 2.4;
}
.adot-gift-lid-box {
  fill: color-mix(in srgb, var(--pt-accent) 26%, var(--pt-surface));
  stroke: var(--pt-accent);
  stroke-width: 2.4;
}
.adot-gift-ribbon {
  fill: var(--pt-accent);
}
.adot-gift-bow {
  fill: none;
  stroke: var(--pt-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adot-gift-lid {
  transform-origin: 28px 52px;
}
.adot-gift-base {
  transform-origin: 60px 102px;
}
.adot-gift-spark {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
  z-index: 3;
}
.adot-gift-spark.s1 { background: #22c55e; --tx: -42px; --ty: -54px; --rot: -36deg; }
.adot-gift-spark.s2 { background: #f59e0b; --tx: 44px; --ty: -52px; --rot: 42deg; border-radius: 50%; }
.adot-gift-spark.s3 { background: #10b981; --tx: -16px; --ty: -66px; --rot: -18deg; width: 6px; height: 10px; }
.adot-gift-spark.s4 { background: #34d399; --tx: 18px; --ty: -64px; --rot: 24deg; width: 6px; height: 10px; }
.adot-gift-spark.s5 { background: #fbbf24; --tx: -54px; --ty: -26px; --rot: -50deg; border-radius: 50%; }
.adot-gift-spark.s6 { background: #4ade80; --tx: 52px; --ty: -28px; --rot: 48deg; }

.is-playing .adot-gift-glow {
  animation: adot-gift-glow-in .7s cubic-bezier(.16, 1, .3, 1) .14s forwards;
}
.is-playing .adot-gift-base {
  animation: adot-gift-base-pop .65s cubic-bezier(.22, 1, .36, 1) both;
}
.is-playing .adot-gift-lid {
  animation: adot-gift-lid-open .78s cubic-bezier(.16, 1, .3, 1) .12s forwards;
}
.is-playing .adot-gift-spark {
  animation: adot-gift-spark-burst .85s cubic-bezier(.16, 1, .3, 1) .22s forwards;
}
@keyframes adot-gift-glow-in {
  from { opacity: 0; transform: scale(.45); }
  to { opacity: 1; transform: scale(1.12); }
}
@keyframes adot-gift-base-pop {
  0% { transform: scale(.88, .92); }
  35% { transform: scale(1.06, .93); }
  65% { transform: scale(.98, 1.03); }
  100% { transform: scale(1, 1); }
}
@keyframes adot-gift-lid-open {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  45% { transform: translate3d(-4px, -18px, 0) rotate(-26deg); }
  75% { transform: translate3d(-3px, -13px, 0) rotate(-18deg); }
  100% { transform: translate3d(-4px, -15px, 0) rotate(-21deg); }
}
@keyframes adot-gift-spark-burst {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.4) rotate(0deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--tx), var(--ty), 0) scale(1.1) rotate(var(--rot)); }
}
.adot-gift-amount {
  display: inline-block;
  margin: 10px 0 4px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--pt-accent-soft);
  color: var(--pt-accent);
  font-size: 16px;
  font-weight: 680;
}
.adot-gift-actions {
  justify-content: center;
  margin-top: 4px;
}
.adot-gift-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--pt-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 580;
  transition: background-color .15s ease;
}
html[data-theme="dark"] .adot-gift-primary {
  color: #0b0f0c;
}
.adot-gift-primary:hover {
  background: var(--pt-accent-strong);
  color: #fff;
}
html[data-theme="dark"] .adot-gift-primary:hover {
  color: #0b0f0c;
}
@media (max-width: 520px) {
  .adot-redeem-form {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-playing .adot-gift-glow,
  .is-playing .adot-gift-base,
  .is-playing .adot-gift-lid,
  .is-playing .adot-gift-spark {
    animation: none;
  }
  .is-playing .adot-gift-glow { opacity: 1; transform: none; }
  .is-playing .adot-gift-lid { transform: translate3d(-4px, -14px, 0) rotate(-20deg); }
}
@media (max-width: 820px) {
  .adot-settings-layout {
    grid-template-columns: 1fr;
  }
  .adot-settings-side {
    position: static;
    height: auto;
    padding: 14px 16px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--pt-line);
  }
  .adot-settings-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px 10px;
  }
  .adot-settings-back {
    margin-bottom: 0;
  }
  .adot-settings-group {
    margin-top: 8px;
  }
  .adot-settings-group-label,
  #settingsProfileGroup {
    display: none;
  }
  .adot-settings-side nav {
    display: flex;
    gap: 6px;
  }
  .adot-settings-nav-item {
    width: auto;
    padding: 8px 12px;
  }
  .adot-settings-nav-item + .adot-settings-nav-item {
    margin-top: 0;
  }
}

/* AdoT 使用情况和计费页面（/adot/usage） */
.adot-usage-page {
  min-height: 100dvh;
  background: var(--pt-bg);
}
.adot-usage-shell {
  width: min(100%, 740px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(18px, 4vw, 28px) 84px;
}
.adot-usage-head h1 {
  margin: 0 0 6px;
  color: var(--pt-ink);
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 650;
  letter-spacing: -.03em;
}
.adot-usage-head p {
  margin: 0;
  color: var(--pt-muted);
  font-size: 14px;
}
.adot-usage-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 22px;
}
.adot-usage-tab {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pt-muted);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.adot-usage-tab:hover {
  color: var(--pt-ink);
}
.adot-usage-tab.is-active {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
}
.adot-usage-notice {
  margin-top: 32px;
  padding: 36px 24px;
  border: 1px solid var(--pt-line);
  border-radius: 18px;
  background: var(--pt-surface);
  text-align: center;
}
.adot-usage-notice h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--pt-ink);
}
.adot-usage-notice p {
  margin: 0 0 20px;
  color: var(--pt-muted);
  font-size: 14px;
}
.adot-usage-section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--pt-line-soft);
}
.adot-usage-section:first-child {
  margin-top: 26px;
  padding-top: 0;
  border-top: 0;
}
.adot-usage-section h2 {
  margin: 0 0 6px;
  color: var(--pt-ink);
  font-size: 16px;
  font-weight: 620;
}
.adot-usage-sub {
  margin: 0;
  color: var(--pt-muted);
  font-size: 13px;
  line-height: 1.6;
}
.adot-usage-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--pt-line-soft);
}
.adot-usage-plan-row strong {
  display: block;
  color: var(--pt-ink);
  font-size: 14.5px;
  font-weight: 600;
}
.adot-usage-plan-row small {
  color: var(--pt-muted);
  font-size: 12.5px;
}
.adot-usage-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 8px 16px;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  background: var(--pt-surface-2);
  color: var(--pt-ink);
  font-size: 13px;
  font-weight: 550;
  transition: background-color .16s ease, border-color .16s ease;
}
.adot-usage-pill-btn:hover {
  background: var(--pt-surface);
  border-color: var(--pt-line-strong);
  color: var(--pt-ink);
}
.adot-usage-card {
  margin-top: 16px;
  padding: 20px 22px;
  border: 1px solid var(--pt-line);
  border-radius: 16px;
  background: var(--pt-surface);
}
.adot-usage-meter-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.adot-usage-meter-top strong {
  display: block;
  color: var(--pt-ink);
  font-size: 14.5px;
  font-weight: 600;
}
.adot-usage-meter-top small {
  display: block;
  margin-top: 3px;
  color: var(--pt-muted);
  font-size: 12.5px;
}
.adot-usage-meter-pct {
  flex: none;
  color: var(--pt-ink);
  font-size: 13.5px;
  font-weight: 560;
}
.adot-usage-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--pt-surface-2);
  overflow: hidden;
}
.adot-usage-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--pt-ink);
  transition: width .35s cubic-bezier(.22, 1, .36, 1);
}
.adot-usage-bar-fill.is-warn { background: #d97706; }
.adot-usage-bar-fill.is-low { background: var(--pt-danger); }
.adot-usage-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.adot-usage-count {
  color: var(--pt-faint);
  font-size: 12.5px;
  white-space: nowrap;
}
.adot-usage-list {
  margin-top: 14px;
  border: 1px solid var(--pt-line);
  border-radius: 16px;
  background: var(--pt-surface);
  overflow: hidden;
}
.adot-usage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--pt-line-soft);
}
.adot-usage-row:last-child { border-bottom: 0; }
.adot-usage-row-main {
  min-width: 0;
}
.adot-usage-row-main strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--pt-ink);
  font-size: 13.5px;
  font-weight: 580;
}
.adot-usage-row-main small {
  display: block;
  margin-top: 3px;
  color: var(--pt-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.adot-usage-row-side {
  flex: none;
  text-align: right;
}
.adot-usage-row-side strong {
  display: block;
  color: var(--pt-ink);
  font-size: 13.5px;
  font-weight: 600;
}
.adot-usage-row-side strong.is-plus { color: var(--pt-accent); }
.adot-usage-row-side small {
  display: block;
  margin-top: 2px;
  color: var(--pt-muted);
  font-size: 12px;
}
.adot-usage-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--pt-accent-soft);
  color: var(--pt-accent);
  font-size: 11px;
  font-weight: 600;
}
.adot-usage-badge.is-warn {
  background: color-mix(in srgb, var(--pt-danger) 14%, transparent);
  color: var(--pt-danger);
}
.adot-usage-empty {
  margin: 0;
  padding: 24px 18px;
  color: var(--pt-muted);
  font-size: 13px;
  text-align: center;
}
.adot-usage-more {
  display: block;
  margin: 14px auto 0;
  padding: 8px 18px;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  background: var(--pt-surface);
  color: var(--pt-ink-soft);
  font-size: 13px;
  cursor: pointer;
}
.adot-usage-more:hover {
  background: var(--pt-surface-2);
  color: var(--pt-ink);
}
.adot-usage-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.adot-usage-stat {
  padding: 16px;
  border: 1px solid var(--pt-line);
  border-radius: 14px;
  background: var(--pt-surface);
}
.adot-usage-stat span {
  display: block;
  color: var(--pt-muted);
  font-size: 12px;
}
.adot-usage-stat strong {
  display: block;
  margin: 6px 0 2px;
  color: var(--pt-ink);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.adot-usage-stat small {
  color: var(--pt-faint);
  font-size: 11.5px;
}
@media (max-width: 680px) {
  .adot-usage-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adot-usage-plan-row,
  .adot-usage-row { flex-direction: column; align-items: flex-start; }
  .adot-usage-row-side { text-align: left; }
}

/* ARGON · Slash Stage I（轻量兴趣频道发现与详情） */
.slash-discovery,
.slash-detail {
  padding: 20px 4px 48px;
  max-width: 100%;
  min-width: 0;
}
.slash-discovery-head {
  margin-bottom: 18px;
}
.slash-discovery-title {
  margin: 0;
  color: var(--bl-ink);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.slash-discovery-subtitle {
  margin: 6px 0 0;
  color: var(--bl-muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.slash-search {
  margin-bottom: 16px;
}
.slash-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--bl-line);
  border-radius: 999px;
  background: var(--bl-surface);
  color: var(--bl-muted);
  transition: border-color .16s ease, background-color .16s ease;
}
.slash-search-field:focus-within {
  border-color: var(--bl-accent);
}
.slash-search-icon {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slash-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--bl-ink);
  font: inherit;
  font-size: 14.5px;
}
.slash-search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.slash-search-clear {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bl-faint);
  cursor: pointer;
}
.slash-search-clear:hover {
  background: var(--bl-hover);
  color: var(--bl-ink);
}
.slash-search-clear svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.slash-list {
  display: grid;
  position: relative;
  border-top: 1px solid var(--bl-line-soft);
}
.slash-list-row {
  will-change: transform, opacity;
}
.slash-move-move,
.slash-move-enter-active,
.slash-move-leave-active {
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .24s ease;
}
.slash-move-enter-from {
  opacity: 0;
  transform: translateY(-10px) scale(.98);
}
.slash-move-leave-to {
  opacity: 0;
  transform: translateY(10px) scale(.98);
}
.slash-move-leave-active {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .slash-move-move,
  .slash-move-enter-active,
  .slash-move-leave-active {
    transition: none;
  }
}
.slash-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--bl-line-soft);
  border-radius: 10px;
  color: var(--bl-ink);
  text-decoration: none;
  transition: background-color .15s ease;
}
.slash-item:hover {
  background: var(--bl-hover);
  color: var(--bl-ink);
}
.slash-item:focus-visible {
  outline: 2px solid var(--bl-accent);
  outline-offset: -2px;
}
.slash-item-body {
  min-width: 0;
  flex: 1;
}
.slash-item-title {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
  color: var(--bl-ink);
}
.slash-mark {
  color: var(--bl-accent);
  font-weight: 700;
  margin-right: 0.32em;
}
.slash-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slash-item-desc {
  margin: 5px 0 0;
  color: var(--bl-muted);
  font-size: 13.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.slash-item-chevron {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--bl-faint);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .15s ease, stroke .15s ease;
}
.slash-item:hover .slash-item-chevron {
  transform: translateX(2px);
  stroke: var(--bl-ink);
}
.slash-detail-header {
  padding: 4px 0 20px;
}
.slash-detail-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--bl-ink);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.slash-detail-desc {
  margin: 10px 0 0;
  color: var(--bl-muted);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.slash-divider {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--bl-line-soft);
}
.slash-timeline {
  padding-top: 8px;
}
.slash-empty {
  padding: 44px 16px;
  text-align: center;
}
.slash-empty-title {
  margin: 0 0 6px;
  color: var(--bl-ink);
  font-size: 16px;
  font-weight: 600;
}
.slash-empty-msg {
  margin: 0;
  color: var(--bl-faint);
  font-size: 14px;
  line-height: 1.6;
}
.slash-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 8px 16px;
  border: 1px solid var(--bl-line);
  border-radius: 999px;
  background: var(--bl-surface);
  color: var(--bl-ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.slash-empty-btn:hover {
  background: var(--bl-hover);
  color: var(--bl-ink);
}
.slash-empty-btn:focus-visible {
  outline: 2px solid var(--bl-accent);
  outline-offset: 2px;
}
.slash-skeleton-list {
  display: grid;
  border-top: 1px solid var(--bl-line-soft);
}
.slash-skeleton-item,
.slash-detail-skeleton {
  display: grid;
  gap: 10px;
  padding: 18px 12px;
  border-bottom: 1px solid var(--bl-line-soft);
}
.slash-detail-skeleton {
  border-bottom: 0;
  padding: 8px 0 24px;
}
.slash-skeleton-line {
  display: block;
  border-radius: 6px;
  background: var(--bl-line-soft);
  animation: slash-pulse 1.4s ease-in-out infinite;
}
.slash-skeleton-title { width: 120px; height: 18px; }
.slash-skeleton-hero { width: 150px; height: 28px; }
.slash-skeleton-desc { width: 68%; max-width: 340px; height: 14px; }
@keyframes slash-pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .slash-skeleton-line { animation: none; }
}
@media (max-width: 680px) {
  .slash-discovery,
  .slash-detail { padding: 14px 0 40px; }
  .slash-item { padding: 14px 8px; }
  .slash-detail-title { font-size: 24px; }
}

/* ARGON · Slash Stage II（帖子频道标识、轻量选择器与频道内发帖） */
.slash-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.slash-compose-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--bl-ink);
  color: var(--bl-surface);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s ease;
}
.slash-compose-btn:hover { opacity: .86; }
.slash-compose-btn:focus-visible {
  outline: 2px solid var(--bl-accent);
  outline-offset: 2px;
}
.slash-compose-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[data-theme="dark"] .slash-compose-btn,
html[data-theme="dark"] .slash-compose-btn:hover {
  background: var(--bl-accent-soft);
  color: var(--bl-accent);
}

/* 帖子操作栏上方轻量 Slash 标识（字号更小，不透明度略高于评论按钮） */
.pt-thread-slash {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: -4px;
  position: relative;
  z-index: 2;
}
.pt-reader-slash {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.pt-thread-slash .pt-thread-source,
.pt-reader-slash .pt-thread-source {
  margin-top: 0;
}
.slash-indicator {
  display: inline-flex;
  align-items: baseline;
  color: var(--bl-muted);
  opacity: .84;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .14s ease, opacity .14s ease;
}
.slash-indicator:hover {
  color: var(--bl-ink);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.slash-indicator:focus-visible {
  outline: 2px solid var(--bl-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.slash-indicator-mark {
  color: var(--bl-accent);
  margin-right: 0.32em;
}
body[data-platform="blog"] .pt-thread-slash .slash-indicator {
  font-size: 12px;
  font-weight: 500;
  color: var(--bl-muted);
  opacity: .84;
}
body[data-platform="blog"] .pt-thread-slash .slash-indicator:hover {
  color: var(--bl-ink);
  opacity: 1;
}
.pt-author-meta {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

/* Composer 头部与轻量 Slash Selector */
.composer-user-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
.composer-user-row #composerUser {
  margin: 0;
}
.slash-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.slash-selector-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.slash-selector-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border: 1px solid var(--bl-line, var(--pt-line));
  border-radius: 999px;
  background: transparent;
  color: var(--bl-muted, var(--pt-muted));
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease;
}
.slash-selector-trigger:hover:not(:disabled) {
  background: var(--bl-hover, var(--pt-surface-2));
  color: var(--bl-ink, var(--pt-ink));
}
.slash-selector-trigger.is-selected {
  color: var(--bl-ink, var(--pt-ink));
  font-weight: 650;
  border-color: var(--bl-line, var(--pt-line));
}
.slash-selector-trigger:focus-visible,
.slash-selector-remove:focus-visible,
.slash-selector-option:focus-visible {
  outline: 2px solid var(--bl-accent, var(--pt-accent));
  outline-offset: 1px;
}
.slash-selector-plus {
  color: var(--bl-accent, var(--pt-accent));
  font-weight: 700;
}
.slash-selector-remove {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bl-faint, var(--pt-faint));
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.slash-selector-remove:hover:not(:disabled) {
  background: var(--bl-hover, var(--pt-surface-2));
  color: var(--bl-ink, var(--pt-ink));
}
.slash-selector-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  width: min(260px, 82vw);
  padding: 10px;
  border: 1px solid var(--bl-line, var(--pt-line));
  border-radius: 14px;
  background: var(--bl-surface, var(--pt-surface));
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
  display: grid;
  gap: 8px;
}
.slash-selector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}
.slash-selector-head strong {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bl-faint, var(--pt-faint));
}
.slash-selector-clear-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--bl-muted, var(--pt-muted));
  font-size: 12px;
  cursor: pointer;
}
.slash-selector-clear-link:hover {
  color: var(--bl-ink, var(--pt-ink));
  text-decoration: underline;
}
.slash-selector-search {
  width: 100%;
  padding: 7px 11px;
  border: 1px solid var(--bl-line, var(--pt-line));
  border-radius: 999px;
  background: var(--bl-canvas, var(--pt-surface-2));
  color: var(--bl-ink, var(--pt-ink));
  font: inherit;
  font-size: 13px;
  outline: none;
}
.slash-selector-search:focus {
  border-color: var(--bl-accent, var(--pt-accent));
}
.slash-selector-options {
  display: grid;
  gap: 2px;
  max-height: 220px;
  overflow-y: auto;
}
.slash-selector-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--bl-ink, var(--pt-ink));
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.slash-selector-option:hover,
.slash-selector-option.is-active {
  background: var(--bl-hover, var(--pt-surface-2));
}
.slash-selector-option.is-active {
  font-weight: 700;
}
.slash-selector-check {
  color: var(--bl-accent, var(--pt-accent));
  font-size: 13px;
}
.slash-selector-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  color: var(--bl-faint, var(--pt-faint));
  font-size: 13px;
  text-align: center;
}
.slash-selector-retry {
  border: 1px solid var(--bl-line, var(--pt-line));
  border-radius: 999px;
  padding: 3px 10px;
  background: transparent;
  color: var(--bl-ink, var(--pt-ink));
  font-size: 12px;
  cursor: pointer;
}
.slash-timeline-more-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  color: var(--bl-faint);
  font-size: 13.5px;
}

/* ARGON · Slash Stage III & Part C（关注按钮、Discovery 分区、侧栏快捷入口与历史帖改频道弹窗） */
.slash-section {
  margin-top: 22px;
}
.slash-section:first-of-type {
  margin-top: 12px;
}
.slash-section-title {
  margin: 0 0 10px;
  color: var(--bl-faint);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.slash-section-empty {
  margin: 0;
  padding: 18px 12px;
  border-top: 1px solid var(--bl-line-soft);
  border-bottom: 1px solid var(--bl-line-soft);
  color: var(--bl-faint);
  font-size: 13.5px;
}
.slash-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--bl-line-soft);
  border-radius: 10px;
  transition: background-color .15s ease;
}
.slash-item-row:hover {
  background: var(--bl-hover);
}
.slash-item-row .slash-item {
  flex: 1;
  min-width: 0;
  border-bottom: 0;
  background: transparent;
}
.slash-item-row .slash-item:hover {
  background: transparent;
}
.slash-item-actions {
  flex: none;
  padding-right: 10px;
}
.slash-item-followers,
.slash-detail-followers {
  margin-left: 8px;
  color: var(--bl-faint);
  font-size: 12.5px;
  font-weight: 400;
}
.slash-detail-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.slash-detail-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.slash-follow-btn {
  padding: 6px 14px;
  font-size: 13px;
}
.pt-blog-slash-group {
  display: grid;
  gap: 2px;
}
.pt-blog-slash-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.pt-blog-slash-row > a {
  flex: 1;
  min-width: 0;
}
.pt-blog-slash-toggle {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bl-faint);
  cursor: pointer;
}
.pt-blog-slash-toggle:hover {
  background: var(--bl-hover);
  color: var(--bl-ink);
}
.pt-blog-slash-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-90deg);
  transition: transform .16s ease;
}
.pt-blog-slash-toggle svg.is-open {
  transform: rotate(0deg);
}
.pt-blog-slash-sublist {
  display: grid;
  gap: 2px;
  padding-left: 28px;
  margin-bottom: 4px;
}
.pt-blog-nav .pt-blog-slash-subitem,
.pt-blog-nav .pt-blog-slash-viewall {
  min-height: 34px;
  padding: 6px 12px;
  gap: 2px;
  font-size: 13.5px;
  color: var(--bl-muted);
}
.pt-blog-nav .pt-blog-slash-subitem[aria-current="page"] {
  color: var(--bl-ink);
  font-weight: 650;
}
.pt-blog-nav .pt-blog-slash-viewall {
  font-size: 12.5px;
  color: var(--bl-faint);
}
.slash-post-dialog {
  width: min(340px, 92vw);
  padding: 0;
  border: 1px solid var(--bl-line, var(--pt-line));
  border-radius: 16px;
  background: var(--bl-surface, var(--pt-surface));
  color: var(--bl-ink, var(--pt-ink));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}
.slash-post-dialog::backdrop {
  background: rgba(0, 0, 0, .42);
}
.slash-post-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--bl-line-soft, var(--pt-line));
}
.slash-post-dialog-head strong {
  font-size: 14.5px;
  font-weight: 650;
}
.slash-post-dialog-close {
  border: 0;
  background: transparent;
  color: var(--bl-muted, var(--pt-muted));
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.slash-post-dialog-body {
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}
.slash-post-dialog-error {
  margin: 0;
  color: #dc2626;
  font-size: 12.5px;
}
.slash-post-dialog-foot {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--bl-line-soft, var(--pt-line));
  text-align: right;
}

/* 全局自动翻译控件（X 风格轻量文字行，无卡片边框或实体按钮） */
.pt-translation-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 4px 0 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--bl-faint, var(--pt-faint));
}
.pt-reader-head .pt-translation-bar {
  margin: 10px 0 4px;
}
.pt-translation-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.pt-translation-logo {
  width: 15px;
  height: 15px;
  flex: none;
  display: block;
  opacity: .72;
}
:root[data-theme="dark"] .pt-translation-logo,
body[data-theme="dark"] .pt-translation-logo {
  filter: invert(1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pt-translation-logo {
    filter: invert(1);
  }
}
.pt-translation-action {
  position: relative;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--bl-accent, var(--pt-accent));
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.pt-translation-action:hover {
  text-decoration: underline;
}
.pt-translation-action:focus-visible {
  outline: 2px solid var(--bl-accent, var(--pt-accent));
  outline-offset: 2px;
  border-radius: 3px;
}
.pt-translation-skeleton {
  display: grid;
  gap: 8px;
  padding: 4px 0;
}
.pt-translation-skeleton-line {
  display: block;
  height: 14px;
  width: 92%;
  border-radius: 6px;
  background: var(--bl-surface-2, var(--pt-surface-2));
  animation: pt-translation-pulse 1.2s ease-in-out infinite;
}
.pt-translation-skeleton-line.is-short {
  width: 58%;
}
@keyframes pt-translation-pulse {
  0%, 100% { opacity: .48; }
  50% { opacity: .92; }
}

/* ARGON Media Detail View（桌面端左右分栏 + 移动端全屏媒体与底部抽屉） */
html.pt-media-detail-open,
html.pt-media-detail-open body {
  overflow: hidden;
}
.pt-media-detail.pt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: row;
  padding: 0;
  background: rgba(10, 12, 16, .94);
  backdrop-filter: blur(8px);
}
.pt-media-detail-viewer {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
  user-select: none;
  touch-action: pan-y;
}
.pt-media-detail-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 16px 12px;
  pointer-events: none;
}
.pt-media-detail-topbar > * {
  pointer-events: auto;
}
.pt-media-detail-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 20, 25, .68);
  color: #fff;
  cursor: pointer;
  transition: background-color .15s ease;
}
.pt-media-detail-close:hover {
  background: rgba(39, 44, 48, .9);
}
.pt-media-detail-close svg {
  width: 20px;
  height: 20px;
}
.pt-media-detail-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 58px 64px 16px;
  overflow: hidden;
}
.pt-media-detail-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.pt-media-detail-loading {
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
}
.pt-media-detail-actions {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(10, 12, 16, .68);
}
.pt-media-detail-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .84);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.pt-media-detail-action:hover:not(:disabled) {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.pt-media-detail-action.active {
  color: var(--bl-accent, var(--pt-accent));
}
.pt-media-detail-action.is-placeholder {
  opacity: .38;
  cursor: default;
}
.pt-media-detail-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pt-media-detail-drawer-trigger {
  display: none;
  margin-inline-start: auto;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pt-media-detail-aside {
  flex: none;
  width: clamp(360px, 31vw, 440px);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bl-surface, var(--pt-surface));
  color: var(--bl-ink, var(--pt-ink));
  border-left: 1px solid var(--bl-line, var(--pt-line));
}
.pt-media-detail-drawer-head {
  display: none;
}
.pt-media-detail-drawer-scrim {
  display: none;
}
.pt-media-detail-aside-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px 32px;
}
@media (max-width: 959px) {
  .pt-media-detail.pt-lightbox {
    flex-direction: column;
  }
  .pt-media-detail-stage {
    padding: max(56px, calc(env(safe-area-inset-top) + 48px)) 12px 12px;
  }
  .pt-media-detail-actions {
    justify-content: flex-start;
    gap: 8px;
    padding-inline: 12px;
  }
  .pt-media-detail-drawer-trigger {
    display: inline-flex;
    align-items: center;
  }
  .pt-media-detail-drawer-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 4;
    background: rgba(0, 0, 0, .48);
  }
  .pt-media-detail-aside {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    width: 100%;
    height: min(78dvh, 680px);
    border-left: 0;
    border-top: 1px solid var(--bl-line, var(--pt-line));
    border-radius: 18px 18px 0 0;
    transform: translateY(104%);
    transition: transform 220ms cubic-bezier(.22, 1, .36, 1);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .pt-media-detail-aside.is-open {
    transform: translateY(0);
  }
  .pt-media-detail-drawer-head {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 16px 6px;
    border-bottom: 1px solid var(--bl-line-soft, var(--pt-line));
  }
  .pt-media-detail-drawer-handle {
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: var(--bl-line, var(--pt-line));
  }
  .pt-media-detail-drawer-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--bl-muted, var(--pt-muted));
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }
}

/* ==========================================================================
   ARGON Messaging V1 — Direct Messages & Message Requests
   ========================================================================== */

.pt-profile-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pt-blog-nav .dm-nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--text, #111);
  color: var(--bg, #fff);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

/* 视口外帖子跳过布局与绘制，消除从私信切回推荐信息流时的全量重排卡顿 */
:is(#communityList, #followingList) {
  contain: layout style;
}

:is(#communityList, #followingList) > .pt-thread {
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
  contain: layout style;
}

.pt-blog-shell {
  /* 私信与信息流一次切换到最终列宽，避免动画每帧触发帖子文本和图片重排。 */
  transition: none;
}

.pt-blog-side {
  contain: layout style;
  transition: opacity .18s ease, transform .22s ease;
}

.pt-blog-rail {
  contain: layout style;
  transition: opacity .2s ease, border-color .2s ease;
}

.pt-blog-rail > * {
  min-width: 280px;
}

.pt-blog-nav a,
.pt-blog-more-btn {
  transition: background-color .16s ease, color .16s ease;
}

.pt-blog-nav a > span:not(.pt-blog-count):not(.dm-nav-badge),
.pt-blog-more-btn > span,
.pt-blog-brand-copy,
#writeCtaLabel {
  transition: opacity .18s ease;
  max-width: 200px;
}

body[data-platform="blog"] .pt-write-cta {
  transition: opacity .16s ease;
}

@media (min-width: 901px) {
  /* 使用与 3521 行相同的 body[data-platform="blog"] 前缀确保优先级，彻底消除宽屏两侧灰边；
     左栏宽 106px = 26px(左内边距) + 54px(图标热区: 16+22+16) + 26px(右内边距)，
     使标志左缘到屏幕左侧(42px) === 标志右缘到私信左边界(42px) */
  body[data-platform="blog"] .pt-blog-shell.pt-blog-messages-mode {
    grid-template-columns: 106px minmax(0, 1fr) 0px;
  }

  body[data-platform="blog"] .pt-blog-shell.pt-blog-messages-mode .pt-blog-rail {
    opacity: 0;
    padding-inline: 0;
    border-left-color: transparent;
    overflow: hidden;
    pointer-events: none;
  }

  body[data-platform="blog"] .pt-blog-shell.pt-blog-messages-mode .pt-blog-side {
    padding: 26px 26px 28px 26px;
    overflow: visible;
  }

  .pt-blog-shell.pt-blog-messages-mode .pt-blog-brand {
    overflow: hidden;
    white-space: nowrap;
  }

  .pt-blog-shell.pt-blog-messages-mode .pt-blog-brand-copy {
    opacity: 0;
    pointer-events: none;
  }

  .pt-blog-shell.pt-blog-messages-mode .pt-blog-nav > a,
  .pt-blog-shell.pt-blog-messages-mode .pt-blog-more-btn {
    position: relative;
    width: 54px;
    padding: 10px 16px;
    gap: 0;
  }

  .pt-blog-shell.pt-blog-messages-mode .pt-blog-nav > a > span:not(.pt-blog-count):not(.dm-nav-badge),
  .pt-blog-shell.pt-blog-messages-mode .pt-blog-more-btn > span {
    max-width: 200px;
    transform: translateX(-16px);
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .pt-blog-shell.pt-blog-messages-mode .pt-blog-nav > a .dm-nav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    margin-left: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 16px;
  }

  .pt-blog-shell.pt-blog-messages-mode .pt-blog-more-menu {
    left: 0;
    right: auto;
    min-width: 176px;
  }

  body[data-platform="blog"] .pt-blog-shell.pt-blog-messages-mode .pt-write-cta {
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    margin: 18px 0 0 4px;
    gap: 0;
    justify-content: center;
    border-radius: 999px;
  }

  body[data-platform="blog"] .pt-blog-shell.pt-blog-messages-mode #writeCtaLabel {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }
}

.pt-blog-shell.pt-blog-messages-mode .pt-blog-center {
  max-width: none;
  padding: 0;
  border-right: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body[data-platform="blog"]:not(.landing-page) .pt-blog-shell.pt-blog-messages-mode .pt-thread-feed {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#readerPane.messages-pane,
.dm-pane-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-inline: 0;
}

.dm-list-inner,
.dm-stage-active {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dm-list-fade-enter-active,
.dm-list-fade-leave-active {
  transition: opacity .16s ease, transform .2s cubic-bezier(.22, 1, .36, 1);
}

.dm-list-fade-enter-from {
  opacity: 0;
  transform: translateY(4px);
}

.dm-list-fade-leave-to {
  opacity: 0;
  transform: translateY(-4px);
}

.dm-chat-switch-enter-active,
.dm-chat-switch-leave-active {
  transition: opacity .18s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
}

.dm-chat-switch-enter-from {
  opacity: 0;
  transform: translateX(8px);
}

.dm-chat-switch-leave-to {
  opacity: 0;
  transform: translateX(-6px);
}

@media (prefers-reduced-motion: reduce) {
  .pt-blog-shell,
  .pt-blog-side,
  .pt-blog-rail,
  .pt-blog-nav a,
  .pt-blog-more-btn,
  .pt-blog-nav a > span,
  .pt-blog-more-btn > span,
  .pt-blog-brand-copy,
  #writeCtaLabel,
  body[data-platform="blog"] .pt-write-cta,
  .dm-list-fade-enter-active,
  .dm-list-fade-leave-active,
  .dm-chat-switch-enter-active,
  .dm-chat-switch-leave-active {
    transition: none !important;
  }
}

.dm-workspace {
  --bg: var(--bl-surface, #ffffff);
  --surface: var(--bl-surface-2, #f5f5f5);
  --text: var(--bl-ink, #111111);
  --muted: var(--bl-muted, #666666);
  --border: var(--bl-line, #e5e7eb);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
}

.dm-auth-empty {
  margin: auto;
  text-align: center;
  padding: 48px 24px;
  max-width: 380px;
}

.dm-auth-empty h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.dm-auth-empty p {
  margin: 0 0 18px;
  color: var(--muted, #666);
  font-size: 14px;
}

.dm-shell {
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
  display: flex;
  overflow: hidden;
  border-top: 0;
}

.dm-sidebar {
  flex: 0 0 360px;
  width: 360px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--border, #e5e7eb);
  background: var(--bg, #fff);
}

.dm-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 10px;
}

.dm-head-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dm-sidebar-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.dm-conn-pill {
  font-size: 11px;
  color: var(--muted, #666);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb);
}

.dm-filter-wrap {
  position: relative;
}

.dm-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--bg, #fff);
  color: var(--text, #111);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.dm-filter-btn:hover {
  background: var(--surface, #f5f5f5);
}

.dm-filter-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--bg, #fff);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  display: grid;
  gap: 2px;
}

.dm-filter-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text, #111);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.dm-filter-menu button:hover {
  background: var(--surface, #f5f5f5);
}

.dm-filter-menu button.active {
  background: var(--surface, #efefef);
  font-weight: 700;
}

.dm-menu-pop-enter-active,
.dm-menu-pop-leave-active {
  transition: opacity .14s ease, transform .16s cubic-bezier(.22, 1, .36, 1);
}

.dm-menu-pop-enter-from,
.dm-menu-pop-leave-to {
  opacity: 0;
  transform: translateY(-4px) scale(.97);
}

.dm-search-bar {
  padding: 2px 16px 12px;
}

.dm-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface, #f4f4f5);
  color: var(--muted, #71717a);
  transition: border-color .16s ease, background .16s ease;
}

.dm-search-field:focus-within {
  border-color: var(--border, #d4d4d8);
  background: var(--bg, #fff);
}

.dm-search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text, #111);
  font: inherit;
  font-size: 13.5px;
}

.dm-search-clear {
  border: 0;
  background: transparent;
  color: var(--muted, #71717a);
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.dm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--text, #111);
  color: var(--bg, #fff);
  font-size: 11px;
  font-weight: 600;
}

.dm-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 8px 12px;
}

.dm-list-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted, #666);
  font-size: 13px;
}

.dm-list-empty-card {
  padding: 44px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dm-empty-bubble-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--text, #111);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 4px;
}

.dm-list-empty-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #111);
}

.dm-list-empty-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #71717a);
  line-height: 1.5;
}

.dm-conv-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease;
}

.dm-conv-item:hover {
  background: var(--surface, #f6f6f6);
}

.dm-conv-item.active {
  background: var(--surface, #efefef);
}

.dm-item-avatar,
.dm-head-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dm-item-body {
  flex: 1;
  min-width: 0;
}

.dm-item-top,
.dm-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dm-item-name {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-item-time {
  font-size: 11.5px;
  color: var(--muted, #777);
  flex-shrink: 0;
}

.dm-item-preview {
  font-size: 13px;
  color: var(--muted, #666);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-stage {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: var(--bg, #fff);
}

.dm-stage-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.dm-stage-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 340px;
}

.dm-stage-empty-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--surface, #f4f4f5);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.dm-stage-empty-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--text, #111);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dm-stage-empty-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text, #111);
}

.dm-stage-empty-card p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted, #71717a);
}

.dm-start-cta {
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: var(--text, #111);
  color: var(--bg, #fff);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: opacity .16s ease;
}

.dm-start-cta:hover {
  opacity: .86;
}

.dm-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.dm-mobile-back {
  display: none;
  border: 1px solid var(--border, #e5e7eb);
  background: transparent;
  color: inherit;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.dm-peer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.dm-peer-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dm-peer-meta strong {
  font-size: 14.5px;
  line-height: 1.25;
}

.dm-peer-meta small {
  font-size: 12px;
  color: var(--muted, #777);
}

.dm-head-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dm-action-btn,
.dm-primary-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border, #d4d4d8);
  background: transparent;
  color: var(--text, #111);
}

.dm-action-btn:disabled,
.dm-primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dm-primary-btn {
  background: var(--text, #111);
  border-color: var(--text, #111);
  color: var(--bg, #fff);
}

.dm-danger-btn {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.35);
}

.dm-report-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #f7f7f7);
}

.dm-report-bar input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border, #d4d4d8);
  background: var(--bg, #fff);
  color: inherit;
  font-size: 13px;
}

.dm-request-banner,
.dm-status-banner {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #f7f7f7);
  font-size: 13px;
  color: var(--text, #222);
}

.dm-request-copy {
  margin: 0 0 10px;
  color: var(--muted, #555);
}

.dm-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dm-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dm-load-older {
  text-align: center;
  margin-bottom: 6px;
}

.dm-msg-row {
  display: flex;
  justify-content: flex-start;
}

.dm-msg-row.mine {
  justify-content: flex-end;
}

.dm-bubble {
  max-width: min(74%, 520px);
  padding: 10px 13px;
  border-radius: 14px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #f4f4f5);
  color: var(--text, #111);
}

.dm-msg-row.mine .dm-bubble {
  background: var(--text, #111);
  border-color: var(--text, #111);
  color: var(--bg, #fff);
}

.dm-bubble.sending {
  opacity: 0.72;
}

.dm-bubble.failed {
  border-color: #dc2626;
}

.dm-bubble-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.dm-bubble-meta {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  opacity: 0.7;
}

.dm-tag {
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 10px;
}

.dm-retry-btn {
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.dm-jump-bottom {
  position: absolute;
  right: 20px;
  bottom: 106px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border, #d4d4d8);
  background: var(--bg, #fff);
  color: var(--text, #111);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dm-composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border, #e5e7eb);
  padding: 12px 16px 14px;
  background: var(--bg, #fff);
}

.dm-emoji-wrap {
  position: relative;
  flex-shrink: 0;
}

.dm-emoji-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--surface, #f4f4f5);
  color: var(--text, #111);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}

.dm-emoji-btn:hover:not(:disabled) {
  background: var(--border, #e5e7eb);
}

.dm-emoji-btn:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.dm-emoji-picker {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 45;
  width: 288px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--bg, #fff);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.dm-emoji-cell {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .12s ease, transform .12s ease;
}

.dm-emoji-cell:hover {
  background: var(--surface, #f4f4f5);
  transform: scale(1.12);
}

.dm-input-pill {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 5px 6px 5px 16px;
  border-radius: 22px;
  border: 1px solid transparent;
  background: var(--surface, #f4f4f5);
  transition: border-color .16s ease, background .16s ease;
}

.dm-input-pill:focus-within {
  border-color: var(--border, #d4d4d8);
  background: var(--bg, #fff);
}

.dm-input-pill.disabled {
  opacity: .6;
}

.dm-input-pill textarea {
  flex: 1;
  min-width: 0;
  max-height: 120px;
  resize: none;
  border: 0;
  outline: 0;
  padding: 3px 0;
  background: transparent;
  color: var(--text, #111);
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  box-sizing: border-box;
}

.dm-input-pill textarea:disabled {
  color: var(--muted, #888);
  cursor: not-allowed;
}

.dm-char-count {
  font-size: 11px;
  color: var(--muted, #777);
  padding-bottom: 6px;
  flex-shrink: 0;
}

.dm-char-count.over {
  color: #dc2626;
}

.dm-send-icon-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 0;
  background: var(--text, #111);
  color: var(--bg, #fff);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity .15s ease, transform .12s ease;
}

.dm-send-icon-btn:hover:not(:disabled) {
  opacity: .85;
}

.dm-send-icon-btn:disabled {
  opacity: .25;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .pt-blog-shell.pt-blog-messages-mode {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .dm-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .dm-workspace.has-active .dm-sidebar {
    display: none;
  }
  .dm-workspace:not(.has-active) .dm-stage {
    display: none;
  }
  .dm-mobile-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.dm-snoozed-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--border, #ececec);
  background: var(--surface, #f7f7f7);
  color: var(--muted, #666);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.dm-conv-snoozed {
  opacity: 0.78;
}

/* ==========================================================================
   ARGON Unified Right Panel（Messaging 并排 + Timeline 抽屉复用）
   ========================================================================== */
.dm-head-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dm-discover-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--bg, #fff);
  color: var(--text, #111);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.dm-discover-btn:hover {
  background: var(--surface, #f5f5f5);
}

.dm-discover-btn.active {
  background: var(--text, #111);
  border-color: var(--text, #111);
  color: var(--bg, #fff);
}

/* 右侧工作区：真正的桌面端分栏列，贴合页面右边缘与上下边界，支持拖动分隔线自由调整宽度 */
.rp-edge-handle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 88;
  width: 24px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--border, #e5e7eb);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: var(--bg, #ffffff);
  color: var(--muted, #666666);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: -4px 0 14px rgba(0, 0, 0, .06);
  transition: width .16s ease, color .16s ease, background .16s ease;
}

.rp-edge-handle:hover {
  width: 30px;
  color: var(--text, #111111);
  background: var(--surface, #f5f5f5);
}

.rp-panel {
  --rp-bg: var(--bl-surface, #ffffff);
  --rp-surface: var(--bl-surface-2, #f4f4f5);
  --rp-ink: var(--bl-ink, #111111);
  --rp-muted: var(--bl-muted, #666666);
  --rp-line: var(--bl-line, #e5e7eb);
  position: relative;
  flex: 0 0 var(--rp-width, 400px);
  width: var(--rp-width, 400px);
  min-width: 280px;
  max-width: 65vw;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--rp-bg);
  color: var(--rp-ink);
  border-left: 1px solid var(--rp-line);
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.rp-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -6px;
  width: 12px;
  z-index: 30;
  cursor: col-resize;
  touch-action: none;
}

.rp-resizer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: 2px;
  background: transparent;
  transition: background-color .15s ease;
}

.rp-resizer:hover::after,
.rp-panel.is-resizing .rp-resizer::after {
  background: var(--bl-accent, #0f766e);
}

body.is-rp-resizing {
  cursor: col-resize !important;
  user-select: none !important;
}

body.is-rp-resizing * {
  cursor: col-resize !important;
}

.rp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rp-line);
  flex: none;
}

.rp-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.rp-tabs button {
  flex: 1;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--rp-muted);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
}

.rp-tabs button[aria-selected="true"] {
  background: var(--rp-surface);
  color: var(--rp-ink);
  font-weight: 700;
}

.rp-title {
  flex: 1;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-icon-btn,
.rp-open-link {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--rp-line);
  background: transparent;
  color: var(--rp-ink);
  display: grid;
  place-items: center;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  flex: none;
}

.rp-icon-btn:hover,
.rp-open-link:hover {
  background: var(--rp-surface);
}

.rp-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

/* 需带上 body[data-platform="blog"] 前缀覆盖 2540/3407 行的默认 6px 左内边距，让头像与左分隔线保持清晰间距 */
body[data-platform="blog"] .rp-timeline-scroll .pt-thread,
.rp-timeline-scroll .pt-thread {
  position: relative;
  isolation: isolate;
  padding: 16px 18px 16px 24px;
  gap: 12px;
}

.rp-timeline-scroll .pt-thread-title::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.rp-timeline-scroll .pt-thread-avatar,
.rp-timeline-scroll .pt-thread-meta a,
.rp-timeline-scroll .pt-thread-actions :is(a, button),
.rp-timeline-scroll .pt-share-wrap,
.rp-timeline-scroll .pt-thread-slash a,
.rp-timeline-scroll .pt-media-gallery,
.rp-timeline-scroll .pt-thread-admin,
.rp-timeline-scroll .pt-translation-bar {
  position: relative;
  z-index: 2;
}

body[data-platform="blog"] .rp-detail-scroll,
.rp-detail-scroll {
  padding: 16px 20px 28px 24px;
}

.rp-slash-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 18px 10px 24px;
  border-bottom: 1px solid var(--rp-line);
  scrollbar-width: none;
}

.rp-slash-chip {
  flex: none;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--rp-line);
  background: transparent;
  color: var(--rp-muted);
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
}

.rp-slash-chip.active {
  background: var(--rp-ink);
  border-color: var(--rp-ink);
  color: var(--rp-bg);
}

.rp-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--rp-muted);
  font-size: 13px;
}

.rp-new-bar-wrap,
.rp-more {
  padding: 10px 14px;
  text-align: center;
}

.rp-slide-enter-active,
.rp-slide-leave-active {
  transition: opacity .18s ease, width .22s cubic-bezier(.22, 1, .36, 1), flex-basis .22s cubic-bezier(.22, 1, .36, 1);
}

.rp-panel.is-resizing {
  transition: none !important;
}

.rp-slide-enter-from,
.rp-slide-leave-to {
  opacity: 0;
  width: 0 !important;
  flex-basis: 0 !important;
  min-width: 0 !important;
}

/* 较窄屏幕无法保证聊天区与右侧工作区同时具备最小可用宽度时，自动降级为贴边抽屉 */
@media (max-width: 1100px) {
  .rp-panel.rp-mode-inline,
  .rp-panel.rp-mode-docked {
    position: fixed;
    top: 56px;
    right: 0;
    bottom: 0;
    height: auto;
    width: min(var(--rp-width, 400px), 92vw);
    max-width: 92vw;
    z-index: 90;
    box-shadow: -8px 0 28px rgba(0, 0, 0, .12);
  }
}

@media (max-width: 820px) {
  .dm-sidebar {
    flex: 1 1 100%;
    width: 100%;
  }
  .rp-edge-handle,
  .rp-resizer {
    display: none;
  }
  .rp-panel.rp-mode-inline,
  .rp-panel.rp-mode-docked {
    width: 100vw;
    max-width: 100vw;
    top: 56px;
    bottom: calc(60px + env(safe-area-inset-bottom));
    border-left: 0;
  }
}

/* ---------- Native Post Sharing (Menu, Card, Modal) ---------- */
.pt-share-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pt-share-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 196px;
  max-width: 260px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--bl-line, rgba(0, 0, 0, .1));
  background: var(--bl-surface, #fff);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
  z-index: 60;
  display: grid;
  gap: 2px;
}

.pt-share-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bl-ink, #111);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background-color .14s ease;
}

.pt-share-menu-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-share-menu-item:hover {
  background: var(--bl-hover, rgba(0, 0, 0, .05));
}

.pt-share-menu-item.is-primary {
  color: var(--bl-accent, #0f766e);
  font-weight: 600;
}

.dm-bubble.has-post-share {
  padding: 8px;
  max-width: min(340px, 82%);
}

.dm-bubble.has-post-share .dm-bubble-text {
  margin-top: 8px;
  padding: 0 4px;
}

.dm-post-card {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--bl-line, rgba(0, 0, 0, .1));
  background: var(--bl-surface, #fff);
  color: var(--bl-ink, #111);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color .16s ease, transform .14s ease;
}

.dm-post-card:hover {
  border-color: var(--bl-accent, #0f766e);
}

.dm-post-card.is-unavailable {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  color: var(--bl-muted, #6b7280);
  font-size: 13px;
  cursor: default;
}

.dm-post-card.is-unavailable:hover {
  border-color: var(--bl-line, rgba(0, 0, 0, .1));
}

.dm-post-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dm-post-card-avatar {
  width: 24px;
  height: 24px;
  font-size: 11px;
  flex: none;
}

.dm-post-card-author {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.dm-post-card-name {
  font-size: 12.5px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-post-card-slash {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bl-hover, rgba(0, 0, 0, .06));
  color: var(--bl-muted, #6b7280);
  font-size: 11px;
  font-weight: 600;
}

.dm-post-card-body {
  display: grid;
  gap: 4px;
}

.dm-post-card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dm-post-card-summary {
  margin: 0;
  font-size: 12.5px;
  color: var(--bl-muted, #6b7280);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dm-post-card-media {
  border-radius: 8px;
  overflow: hidden;
  max-height: 156px;
  background: var(--bl-hover, rgba(0, 0, 0, .04));
}

.dm-post-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 156px;
  object-fit: cover;
}

.dm-post-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid var(--bl-line, rgba(0, 0, 0, .08));
  font-size: 12px;
  font-weight: 600;
  color: var(--bl-accent, #0f766e);
}

.dm-share-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dm-share-modal {
  width: min(460px, 100%);
  max-height: min(640px, 90vh);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--bl-line, rgba(0, 0, 0, .1));
  background: var(--bl-surface, #fff);
  color: var(--bl-ink, #111);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
  overflow: hidden;
}

.dm-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bl-line, rgba(0, 0, 0, .08));
}

.dm-share-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.dm-share-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bl-muted, #6b7280);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.dm-share-close:hover {
  background: var(--bl-hover, rgba(0, 0, 0, .06));
  color: var(--bl-ink, #111);
}

.dm-share-body {
  padding: 14px 18px;
  display: grid;
  gap: 12px;
  overflow-y: auto;
}

.dm-share-recipient {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dm-share-recipient-label {
  font-size: 12.5px;
  color: var(--bl-muted, #6b7280);
}

.dm-share-recipient-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--bl-line, rgba(0, 0, 0, .1));
  background: var(--bl-hover, rgba(0, 0, 0, .04));
  font-size: 13px;
}

.dm-share-recipient-chip small {
  color: var(--bl-muted, #6b7280);
}

.dm-share-change {
  border: 0;
  background: transparent;
  color: var(--bl-accent, #0f766e);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 2px;
}

.dm-share-avatar,
.dm-share-preview-avatar {
  width: 26px;
  height: 26px;
  font-size: 11px;
  flex: none;
}

.dm-share-picker {
  display: grid;
  gap: 8px;
}

.dm-share-search input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--bl-line, rgba(0, 0, 0, .12));
  background: var(--bl-surface, #fff);
  color: var(--bl-ink, #111);
  font: inherit;
  font-size: 13.5px;
}

.dm-share-list {
  max-height: 200px;
  overflow-y: auto;
  display: grid;
  gap: 2px;
  border: 1px solid var(--bl-line, rgba(0, 0, 0, .08));
  border-radius: 10px;
  padding: 6px;
}

.dm-share-section-label {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 650;
  color: var(--bl-muted, #6b7280);
  text-transform: uppercase;
}

.dm-share-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bl-ink, #111);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dm-share-user-row:hover {
  background: var(--bl-hover, rgba(0, 0, 0, .05));
}

.dm-share-user-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.dm-share-user-meta strong {
  font-size: 13.5px;
  font-weight: 600;
}

.dm-share-user-meta small {
  font-size: 12px;
  color: var(--bl-muted, #6b7280);
}

.dm-share-empty {
  padding: 18px 10px;
  text-align: center;
  font-size: 13px;
  color: var(--bl-muted, #6b7280);
}

.dm-share-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--bl-line, rgba(0, 0, 0, .1));
  background: var(--bl-hover, rgba(0, 0, 0, .03));
}

.dm-share-preview-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.dm-share-preview-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dm-share-preview-img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.dm-share-note textarea {
  width: 100%;
  resize: none;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--bl-line, rgba(0, 0, 0, .12));
  background: var(--bl-surface, #fff);
  color: var(--bl-ink, #111);
  font: inherit;
  font-size: 13.5px;
}

.dm-share-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--bl-line, rgba(0, 0, 0, .08));
}
