/*
Theme Name: 峤咚 Modern
Theme URI: https://qiaodon.com
Author: qiaodon
Author URI: https://qiaodon.com
Description: 个人站主题：首页 / 朋友圈 / 文档 / 相册 / 文章 / 书影音 / 工具箱，自带设计系统、暗色模式与主题设置面板，零框架依赖。
Version: 0.98.17
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qd-modern
Tags: blog, dark-mode, custom-colors, custom-menu
*/

/* ============================================================
   1. 设计令牌（Design Tokens）—— 全站视觉的单一事实来源
   ============================================================ */
:root {
  /* 颜色：浅色（默认） */
  --qd-bg: #f4f5f7;
  --qd-surface: #ffffff;
  --qd-text: #18181b;
  --qd-text-2: #52525b;
  --qd-muted: #8a8a94;
  --qd-border: #e6e6ea;
  --qd-accent: #2563eb;            /* 可在自定义器中覆盖 */
  --qd-accent-soft: rgba(37, 99, 235, 0.10);
  --qd-accent-text: #ffffff;

  /* 字体 */
  --qd-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    sans-serif;
  --qd-font-mono: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;

  /* 字号阶梯 */
  --qd-fs-xs: 0.8125rem;
  --qd-fs-sm: 0.875rem;
  --qd-fs-md: 1rem;
  --qd-fs-lg: 1.125rem;
  --qd-fs-xl: 1.375rem;
  --qd-fs-2xl: 1.75rem;
  --qd-fs-hero: clamp(1.8rem, 4vw, 2.6rem);

  /* 布局 */
  --qd-container: 1080px;
  --qd-gap: 24px;
  --qd-radius: 10px;
  --qd-radius-sm: 6px;
  --qd-header-h: 60px;

  /* 动效 */
  --qd-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --qd-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);

  /* 顶部安全区：普通浏览器模式恒为 0（vivo/Xiaomi 等安卓浏览器会谎报
     刘海高度导致顶栏双重留白），仅 PWA standalone/全屏时取真实值 */
  --qd-sat: 0px;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  :root { --qd-sat: env(safe-area-inset-top, 0px); }
}
html.qd-standalone { --qd-sat: env(safe-area-inset-top, 0px); }

[data-theme="dark"] {
  --qd-bg: #0d0f13;
  --qd-surface: #171a20;
  --qd-text: #e8eaee;
  --qd-text-2: #c0c5cf;
  --qd-muted: #98a0ad;
  --qd-border: #2a2f39;
  /* 暗色次级色跟随主题色（不再固定蓝调，v0.54.2） */
  --qd-accent-soft: color-mix(in srgb, var(--qd-accent) 16%, transparent);
  --qd-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   2. 基础重置
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--qd-font-sans);
  font-size: var(--qd-fs-md);
  line-height: 1.7;
  color: var(--qd-text);
  background: var(--qd-bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s var(--qd-ease), color 0.25s var(--qd-ease);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--qd-accent); text-decoration: none; transition: opacity 0.15s var(--qd-ease); }
a:hover { opacity: 0.8; }

blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1.2em;
  border-left: 3px solid var(--qd-accent);
  background: var(--qd-accent-soft);
  border-radius: 0 var(--qd-radius-sm) var(--qd-radius-sm) 0;
  color: var(--qd-text-2);
}

code, pre { font-family: var(--qd-font-mono); font-size: 0.9em; }
code { background: var(--qd-accent-soft); padding: 0.15em 0.4em; border-radius: 4px; }
pre {
  background: var(--qd-surface);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-sm);
  padding: 16px;
  overflow-x: auto;
  line-height: 1.6;
}
pre code { background: none; padding: 0; }

hr { border: 0; border-top: 1px solid var(--qd-border); margin: 2.5em 0; }

table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--qd-border); text-align: left; }
th { font-weight: 600; color: var(--qd-text-2); font-size: var(--qd-fs-sm); }
/* 宽表格在窄屏横向滚动，不撑破容器（v0.28.1） */
.entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  width: auto; height: auto; clip: auto;
  background: var(--qd-surface); padding: 8px 16px;
  border-radius: var(--qd-radius-sm); box-shadow: var(--qd-shadow);
}

.container {
  max-width: var(--qd-container);
  margin: 0 auto;
  padding: 0 var(--qd-gap);
}
/* v0.64.2 书影音破格宽容器：封面墙向左右两侧走，打破博客居中窄栏 */
.container-shelf { max-width: 1400px; }

/* ============================================================
   3. 顶栏导航
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--qd-bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--qd-border);
}

.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: var(--qd-header-h);
}

.site-title {
  font-size: var(--qd-fs-lg);
  font-weight: 700;
  color: var(--qd-text);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.site-title:hover { color: var(--qd-accent); opacity: 1; }
.custom-logo { max-height: 34px; width: auto; }

.site-nav { margin-left: auto; }
.nav-list {
  display: flex; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  display: block; padding: 8px 14px;
  color: var(--qd-text-2);
  font-size: 0.9375rem;
  border-radius: var(--qd-radius-sm);
  transition: color 0.15s var(--qd-ease), background-color 0.15s var(--qd-ease);
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: var(--qd-accent);
  background: var(--qd-accent-soft);
  opacity: 1;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--qd-border);
  border-radius: 50%;
  background: var(--qd-surface);
  color: var(--qd-text-2);
  cursor: pointer;
  font-size: 15px;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--qd-accent); border-color: var(--qd-accent); }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; } /* v0.98.10 #248 图标约定翻转：亮=月亮 暗=太阳，与 D2/移动端一致 */

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-sm);
  background: var(--qd-surface);
  cursor: pointer; padding: 0 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block;
  height: 2px; background: var(--qd-text-2);
  border-radius: 2px; transition: transform 0.2s var(--qd-ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; left: 0; width: 100%; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; width: 100%; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   4. 首页 Hero 与板块
   ============================================================ */
.hero { padding: 64px 0 40px; }
.hero h1 {
  margin: 0 0 10px;
  font-size: var(--qd-fs-hero);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.hero p {
  margin: 0; max-width: 640px;
  color: var(--qd-text-2);
  font-size: var(--qd-fs-lg);
}

.section { padding: 28px 0 8px; }
.section + .section { margin-top: 16px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--qd-border);
}
.section-head h2 {
  margin: 0;
  font-size: var(--qd-fs-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head h2::before {
  content: "";
  display: inline-block;
  width: 4px; height: 18px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--qd-accent);
  vertical-align: -2px;
}
.section-more { font-size: var(--qd-fs-sm); color: var(--qd-muted); white-space: nowrap; }
.section-more:hover { color: var(--qd-accent); opacity: 1; }

.empty-tip {
  color: var(--qd-muted); font-size: var(--qd-fs-sm);
  padding: 20px 0;
}

/* ============================================================
   5. 文章列表（列表式，非卡片堆砌）
   ============================================================ */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--qd-border);
}
.post-list li:last-child { border-bottom: 0; }

.post-item-title {
  margin: 0 0 6px;
  font-size: var(--qd-fs-lg);
  font-weight: 650;
  line-height: 1.45;
}
.post-item-title a { color: var(--qd-text); }
.post-item-title a:hover { color: var(--qd-accent); opacity: 1; }

.entry-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: var(--qd-fs-xs);
  color: var(--qd-muted);
}
.entry-meta .badge {
  color: var(--qd-accent);
  background: var(--qd-accent-soft);
  padding: 1px 8px;
  border-radius: 99px;
  font-weight: 500;
}

.post-item-excerpt {
  margin: 8px 0 0;
  color: var(--qd-text-2);
  font-size: var(--qd-fs-sm);
}

/* 列表缩略图（有特色图时） */
.has-thumb { display: flex; gap: 18px; align-items: flex-start; }
.has-thumb .thumb { flex: 0 0 132px; }
.has-thumb .thumb img { border-radius: var(--qd-radius-sm); aspect-ratio: 3/2; object-fit: cover; }

/* ============================================================
   6. 朋友圈时间线
   ============================================================ */
.moment-feed { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--qd-border); }
.moment-feed li { position: relative; padding: 0 0 26px; }
.moment-feed li::before {
  content: "";
  position: absolute; left: -26px; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--qd-accent);
  box-shadow: 0 0 0 4px var(--qd-accent-soft);
}
.moment-content { margin: 0 0 6px; }
.moment-content img { border-radius: var(--qd-radius-sm); margin-top: 8px; }
.moment-feed .entry-meta { margin-left: -26px; }
/* 首页动态模块：预览性质，行宽收敛 + 5 行折叠（长文去详情页看） */
.moment-feed .moment-content {
  max-width: 720px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}
.moment-feed .moment-content img { max-height: 220px; width: auto; border-radius: 8px; }
.moment-feed .moment-content video { max-height: 220px; border-radius: 8px; }

/* ============================================================
   7. 书影音
   ============================================================ */
.review-list { list-style: none; margin: 0; padding: 0; }
.review-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--qd-border);
}
.review-list li:last-child { border-bottom: 0; }
.review-cover { flex: 0 0 72px; }
.review-cover img { border-radius: var(--qd-radius-sm); aspect-ratio: 3/4; object-fit: cover; }
.review-cover-placeholder {
  width: 72px; aspect-ratio: 3/4;
  border-radius: var(--qd-radius-sm);
  background: var(--qd-accent-soft);
  display: grid; place-items: center;
  color: var(--qd-accent); font-size: 22px;
}

/* 生成式封面：无图记录的渐变底卡（颜色按标题散列，inline style 注入） */
.review-cover-gen {
  width: 72px; aspect-ratio: 3/4;
  border-radius: var(--qd-radius-sm);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7px 8px; overflow: hidden;
  color: #fff;
}
.review-cover-gen .rcg-type {
  font-size: 10px; letter-spacing: 2px; opacity: .82;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.review-cover-gen .rcg-char {
  font-size: 26px; font-weight: 700; line-height: 1;
  opacity: .95; font-family: var(--qd-serif, serif);
}
.review-hero-cover .review-cover-gen {
  width: 100%; max-width: 210px; min-height: 280px;
  padding: 14px 16px;
}
.review-hero-cover .review-cover-gen .rcg-char { font-size: 56px; }
.review-hero-cover .review-cover-gen .rcg-type { font-size: 12px; }
.review-body h3 { margin: 0 0 4px; font-size: var(--qd-fs-md); font-weight: 650; }
.review-body h3 a { color: var(--qd-text); }
.review-body h3 a:hover { color: var(--qd-accent); opacity: 1; }

.stars { color: #f5a623; letter-spacing: 2px; font-size: var(--qd-fs-sm); }
.stars .star-off { color: var(--qd-border); }
.review-note { margin: 4px 0 0; color: var(--qd-text-2); font-size: var(--qd-fs-sm); }

/* ============================================================
   8. 相册网格
   ============================================================ */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.album-grid a { display: block; position: relative; border-radius: var(--qd-radius); overflow: hidden; }
.album-grid img {
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
  transition: transform 0.35s var(--qd-ease);
}
.album-grid a:hover img { transform: scale(1.04); }
.album-grid .album-name {
  position: absolute; inset: auto 0 0 0;
  padding: 24px 12px 10px;
  color: #fff; font-size: var(--qd-fs-sm); font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

/* ============================================================
   9. 文档列表 & 工具箱
   ============================================================ */
.doc-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px;
}
.doc-list li {
  break-inside: avoid;
  padding: 10px 0;
  border-bottom: 1px dashed var(--qd-border);
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.doc-list a { color: var(--qd-text); font-size: var(--qd-fs-sm); font-weight: 500; min-width: 0; word-break: break-word; }
.doc-list a:hover { color: var(--qd-accent); opacity: 1; }
.doc-count { color: var(--qd-muted); font-size: var(--qd-fs-xs); white-space: nowrap; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  list-style: none; margin: 0; padding: 0;
}
.tool-item {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius);
  background: var(--qd-surface);
  transition: border-color 0.2s var(--qd-ease), transform 0.2s var(--qd-ease);
}
.tool-item:hover { border-color: var(--qd-accent); transform: translateY(-2px); opacity: 1; }
.tool-item h3 { margin: 0 0 4px; font-size: var(--qd-fs-md); font-weight: 650; color: var(--qd-text); }
.tool-item p { margin: 0; color: var(--qd-muted); font-size: var(--qd-fs-xs); line-height: 1.6; }

/* ============================================================
   10. 正文页（文章 / 单页 / 内容类型详情）
   ============================================================ */
.single-header { padding: 44px 0 24px; border-bottom: 1px solid var(--qd-border); }
.single-header h1 {
  margin: 0 0 12px;
  font-size: var(--qd-fs-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.single-header .entry-meta { margin-top: 4px; }

.single-featured { margin: 28px 0 0; }
.single-featured img { border-radius: var(--qd-radius); }

.entry-content { padding: 28px 0 48px; max-width: 760px; font-size: 1.02rem; overflow-wrap: break-word; }
.entry-content h2, .entry-content h3, .entry-content h4 { letter-spacing: -0.01em; line-height: 1.4; margin: 2em 0 0.6em; }
.entry-content h2 { font-size: 1.4rem; }
.entry-content h3 { font-size: 1.15rem; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content figure { margin: 1.8em 0; }
.entry-content .wp-caption-text { color: var(--qd-muted); font-size: var(--qd-fs-xs); text-align: center; margin-top: 6px; }

.tool-visit-btn {
  display: inline-block; margin-top: 8px;
  padding: 9px 22px;
  background: var(--qd-accent); color: var(--qd-accent-text);
  border-radius: 99px; font-size: var(--qd-fs-sm); font-weight: 600;
}
.tool-visit-btn:hover { opacity: 0.85; color: var(--qd-accent-text); }

/* ============================================================
   11. 评论
   ============================================================ */
.comments-area {
  border-top: 1px solid var(--qd-border);
  padding: 32px 0 48px;
  max-width: 760px;
}
.comments-title { font-size: var(--qd-fs-lg); margin: 0 0 20px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ol.children { list-style: none; padding-left: 32px; }
.comment-body {
  padding: 16px 0;
  border-bottom: 1px solid var(--qd-border);
  font-size: var(--qd-fs-sm);
}
.comment-author img { border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.comment-metadata { font-size: var(--qd-fs-xs); color: var(--qd-muted); margin: 4px 0 8px; }
.comment-metadata a { color: var(--qd-muted); }
.reply a {
  font-size: var(--qd-fs-xs);
  color: var(--qd-accent);
}

.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; font-size: var(--qd-fs-sm); color: var(--qd-text-2); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-sm);
  background: var(--qd-surface);
  color: var(--qd-text);
  font-family: inherit; font-size: var(--qd-fs-sm);
  transition: border-color 0.15s;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none; border-color: var(--qd-accent);
}
.comment-form .submit {
  padding: 10px 28px;
  background: var(--qd-accent); color: var(--qd-accent-text);
  border: 0; border-radius: 99px;
  font-size: var(--qd-fs-sm); font-weight: 600; cursor: pointer;
  transition: opacity 0.15s;
}
.comment-form .submit:hover { opacity: 0.85; }

/* ============================================================
   12. 分页 / 搜索 / 404
   ============================================================ */
.pagination { margin: 36px 0 56px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers {
  display: inline-block; min-width: 38px; text-align: center;
  padding: 7px 12px;
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-sm);
  color: var(--qd-text-2); font-size: var(--qd-fs-sm);
}
.page-numbers.current { background: var(--qd-accent); border-color: var(--qd-accent); color: var(--qd-accent-text); }
.page-numbers:hover:not(.current) { border-color: var(--qd-accent); color: var(--qd-accent); opacity: 1; }

.error-404 { text-align: center; padding: 90px 0; }
.error-404 h1 { font-size: 4rem; margin: 0 0 8px; color: var(--qd-accent); }
.error-404 p { color: var(--qd-text-2); margin: 0 0 24px; }
.search-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto 0; }
.error-404 .search-form { margin-top: 8px; }
.search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-sm);
  background: var(--qd-surface); color: var(--qd-text);
  font-family: inherit;
}
.search-form .search-submit {
  padding: 10px 20px;
  background: var(--qd-accent); color: var(--qd-accent-text);
  border: 0; border-radius: var(--qd-radius-sm);
  cursor: pointer; font-size: var(--qd-fs-sm);
}

/* ============================================================
   13. 页脚
   ============================================================ */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--qd-border);
  padding: 28px 0 40px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; align-items: center;
  font-size: var(--qd-fs-xs);
  color: var(--qd-muted);
}
.footer-inner a { color: var(--qd-muted); }
.footer-inner a:hover { color: var(--qd-accent); opacity: 1; }
.footer-nav ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.footer-meta {
  display: flex; flex-direction: column; gap: 4px;
}
.footer-copyright, .footer-beian { margin: 0; }
.footer-beian {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px 14px;
}
.footer-beian a {
  display: inline-flex; align-items: center; gap: 4px;
}
.footer-police svg { opacity: .75; }

/* 404 页引导 */
.error-suggest { margin-top: 24px; }
.error-suggest-title {
  font-size: var(--qd-fs-sm); color: var(--qd-muted);
  margin: 0 0 6px;
}
.error-suggest ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
.error-suggest li { padding: 6px 0; border-bottom: 1px solid var(--qd-border); }
.error-suggest li:last-child { border-bottom: 0; }

/* 社交图标（字符徽标） */
.social-list {
  display: flex; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.social-item {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--qd-border);
  border-radius: 50%;
  font-size: 13px; font-weight: 600;
  color: var(--qd-muted);
  transition: color 0.15s var(--qd-ease), border-color 0.15s var(--qd-ease);
}
.social-item:hover { color: var(--qd-accent); border-color: var(--qd-accent); opacity: 1; }

/* ============================================================
   13.5 图片灯箱（原生 JS，无依赖）
   ============================================================ */
.qd-lightbox {
  position: fixed; inset: 0; z-index: 999;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.86);
  cursor: zoom-out;
}
.qd-lightbox.show { display: grid; }
.qd-lightbox img {
  max-width: 92vw; max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.qd-lb-close {
  position: absolute; top: 16px; right: 20px;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer;
}
.qd-lb-close:hover { background: rgba(255, 255, 255, 0.25); }

/* v0.56.0 书影音灯箱字幕层：标题 + 年份/评分/状态/类型 */
.qd-lb-cap {
  display: none;
  max-width: min(92vw, 560px);
  padding: 14px 6px 4px;
  text-align: center;
}
.qlb-title {
  display: block;
  color: #fff; font-size: 17px; font-weight: 600; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qlb-meta {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  margin-top: 7px; font-size: 13px; color: rgba(255, 255, 255, 0.72);
}
.qlb-score { color: #f5c064; font-weight: 700; font-variant-numeric: tabular-nums; }
.qlb-status {
  font-style: normal; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 99px;
  color: #fff; background: rgba(255, 255, 255, 0.16);
}
.qlb-type { font-size: 12px; }
.qlb-note {
  display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}
.qd-lightbox.has-cap img { max-height: 76vh; }

/* ============================================================
   15. v0.3.0 新增：筛选 / 统计 / 元信息 / 文档导航 / 文章尾块
   ============================================================ */

/* 筛选 Tabs（书影音类型 / 工具分类） */
.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 22px 0 2px;
}
.filter-tabs a {
  padding: 6px 18px;
  border: 1px solid var(--qd-border);
  border-radius: 99px;
  color: var(--qd-text-2);
  font-size: var(--qd-fs-sm);
  transition: all 0.15s var(--qd-ease);
}
.filter-tabs a.on,
.filter-tabs a.active {
  background: var(--qd-accent);
  border-color: var(--qd-accent);
  color: var(--qd-accent-text);
}
.filter-tabs a:hover:not(.on):not(.active) {
  border-color: var(--qd-accent);
  color: var(--qd-accent);
  opacity: 1;
}

/* 书影音统计条 */
.stat-bar {
  padding: 14px 0 0;
  color: var(--qd-muted);
  font-size: var(--qd-fs-sm);
}
.stat-bar strong { color: var(--qd-accent); font-weight: 700; }

/* 心情徽标（朋友圈） */
.entry-meta .mood { color: var(--qd-text-2); }

/* 书影音详情元信息表 */
.review-meta {
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  margin-top: 10px;
  font-size: var(--qd-fs-sm);
  color: var(--qd-text-2);
}
.review-meta b {
  color: var(--qd-muted);
  font-weight: 500;
  margin-right: 6px;
}

/* 文档面包屑 */
.doc-crumb {
  padding: 18px 0 0;
  font-size: var(--qd-fs-xs);
  color: var(--qd-muted);
}
.doc-crumb a { color: var(--qd-muted); }
.doc-crumb a:hover { color: var(--qd-accent); opacity: 1; }
.doc-crumb span { margin: 0 6px; color: var(--qd-border); }
.doc-crumb b { color: var(--qd-text-2); font-weight: 600; }

/* 子文档列表 */
.doc-children { max-width: 760px; margin-top: 6px; }
.doc-children .section-head { margin-bottom: 10px; }

/* 文章尾块：上/下篇 · 标签 · 版权 */
.entry-footer-block { max-width: 760px; }
.entry-tags {
  padding: 6px 0 18px;
  color: var(--qd-muted);
  font-size: var(--qd-fs-sm);
}
.post-navigation {
  border-top: 1px solid var(--qd-border);
  padding: 22px 0;
}
.post-navigation .nav-links {
  display: flex; justify-content: space-between; gap: 24px;
}
.post-navigation .nav-previous,
.post-navigation .nav-next { flex: 1; min-width: 0; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a {
  display: block;
  color: var(--qd-text);
  font-size: var(--qd-fs-sm);
  font-weight: 600;
  line-height: 1.5;
}
.post-navigation a:hover { color: var(--qd-accent); opacity: 1; }
.post-navigation .nav-label {
  display: block;
  color: var(--qd-muted);
  font-size: var(--qd-fs-xs);
  font-weight: 400;
  margin-bottom: 4px;
}
.entry-copyright {
  margin-bottom: 36px;
  padding: 14px 18px;
  background: var(--qd-accent-soft);
  border-radius: var(--qd-radius-sm);
  color: var(--qd-text-2);
  font-size: var(--qd-fs-xs);
}

/* 朋友圈单条页 */
.moment-single .entry-meta { margin-bottom: 14px; }

/* 友链页 */
.page-intro { margin-bottom: 8px; }
.friend-links {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.friend-card a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius);
  transition: border-color 0.15s ease;
}
.friend-card a:hover { border-color: var(--qd-accent); opacity: 1; }
.friend-avatar {
  flex: none; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--qd-accent-soft);
  color: var(--qd-accent);
  border-radius: 50%;
  font-size: 20px; font-weight: 700;
}
.friend-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.friend-name { color: var(--qd-text); font-weight: 600; font-size: var(--qd-fs-md); }
.friend-desc {
  color: var(--qd-muted); font-size: var(--qd-fs-xs);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.friend-host {
  color: var(--qd-muted); font-size: var(--qd-fs-xs); opacity: 0.7;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.friend-empty { padding: 32px 0; color: var(--qd-muted); }
.friend-empty .description { margin-top: 10px; font-size: var(--qd-fs-xs); }

/* 顶栏账号按钮 */
.account-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--qd-border);
  border-radius: 999px;
  color: var(--qd-text-2);
  font-size: var(--qd-fs-xs);
  white-space: nowrap;
}
.account-btn:hover { border-color: var(--qd-accent); color: var(--qd-accent); opacity: 1; }
.account-avatar { border-radius: 50%; width: 22px; height: 22px; }
.account-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }

/* 登录 / 注册 */
.auth-wrap { max-width: 420px; padding-block: 28px 60px; }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--qd-border); }
.auth-tab {
  padding: 10px 18px; color: var(--qd-muted); font-size: var(--qd-fs-md);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.auth-tab.active { color: var(--qd-accent); border-bottom-color: var(--qd-accent); font-weight: 600; }
.auth-form p { margin: 0 0 14px; }
.auth-form label { display: block; font-size: var(--qd-fs-xs); color: var(--qd-muted); }
.auth-form input:not([type="checkbox"]), .auth-form textarea, .me-composer-row select {
  display: block; width: 100%; margin-top: 5px;
  padding: 10px 12px;
  border: 1px solid var(--qd-border); border-radius: var(--qd-radius-sm);
  background: var(--qd-surface); color: var(--qd-text);
  font-size: var(--qd-fs-md); font-family: inherit;
}
.auth-form input:focus, .auth-form textarea:focus { outline: none; border-color: var(--qd-accent); }
.auth-row { display: flex; justify-content: space-between; align-items: center; }
.auth-links { margin: 2px 0 0; font-size: var(--qd-fs-xs); }
.auth-links a { color: var(--qd-muted); }
.auth-links a:hover { color: var(--qd-accent); opacity: 1; }
.auth-remember { display: inline-flex !important; align-items: center; gap: 6px; }
.auth-submit {
  padding: 9px 26px;
  background: var(--qd-accent); color: #fff;
  border: 0; border-radius: var(--qd-radius-sm);
  font-size: var(--qd-fs-sm); font-weight: 600; cursor: pointer;
}
.auth-submit:hover { opacity: 0.88; }
.auth-msg { padding: 11px 16px; border-radius: var(--qd-radius-sm); font-size: var(--qd-fs-sm); margin-bottom: 16px; }
.auth-msg-error { background: rgba(220, 38, 38, 0.10); color: #b91c1c; }
.auth-msg-ok { background: rgba(22, 163, 74, 0.10); color: #15803d; }
:root[data-theme="dark"] .auth-msg-error { color: #fca5a5; }
:root[data-theme="dark"] .auth-msg-ok { color: #86efac; }

/* 「我的」页 */
.me-wrap { max-width: 760px; padding-block: 20px 60px; }
.me-card {
  display: flex; align-items: center; gap: 18px;
  padding: 22px;
  border: 1px solid var(--qd-border); border-radius: var(--qd-radius);
}
.me-avatar { border-radius: 50%; flex: none; }
.me-card-body { flex: 1; min-width: 0; }
.me-card-body h2 { margin: 0 0 6px; font-size: var(--qd-fs-lg); }
.me-bio { margin: 0; color: var(--qd-muted); font-size: var(--qd-fs-sm); }
.me-site { margin: 6px 0 0; font-size: var(--qd-fs-xs); }
.me-stats { display: flex; gap: 22px; }
.me-stats div { text-align: center; }
.me-stats strong { display: block; font-size: 22px; font-family: var(--qd-num, Inter, sans-serif); }
.me-stats span { font-size: var(--qd-fs-xs); color: var(--qd-muted); }
.me-edit { margin-top: 14px; }
.me-edit summary {
  cursor: pointer; color: var(--qd-accent); font-size: var(--qd-fs-sm);
  padding: 8px 0; user-select: none;
}
.me-sub { font-size: var(--qd-fs-md); margin: 34px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--qd-border); }
.me-composer-row { display: flex; gap: 10px; align-items: center; }
.me-composer-row select { width: 140px; margin-top: 0 !important; }
.me-composer-row input { flex: 1; margin-top: 0 !important; }
.me-like-list { list-style: none; margin: 0; padding: 0; }
.me-like-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 10px 2px; border-bottom: 1px solid var(--qd-border);
}
.me-like-list a { color: var(--qd-text); font-size: var(--qd-fs-sm); }
.me-like-list a:hover { color: var(--qd-accent); }
.me-like-type { color: var(--qd-muted); font-size: var(--qd-fs-xs); flex: none; }
.me-login-tip { padding: 30px 0; color: var(--qd-muted); }
.me-login-tip .auth-submit { display: inline-block; text-decoration: none; margin-top: 8px; }

/* 文档在线编写 */
.me-doc-list a { color: var(--qd-text); font-size: var(--qd-fs-sm); }
.me-doc-actions { display: flex; gap: 14px; flex: none; }
.me-doc-actions a { color: var(--qd-muted); font-size: var(--qd-fs-xs); text-decoration: none; }
.me-doc-actions a:hover { color: var(--qd-accent); }
.me-doc-cancel { display: inline-flex; align-items: center; margin-right: 14px; color: var(--qd-muted); font-size: var(--qd-fs-sm); text-decoration: none; }
.me-doc-cancel:hover { color: var(--qd-text); }
.me-doc-write textarea[rows="10"] { min-height: 240px; line-height: 1.9; }

/* 点赞按钮（v0.73.0 手势图标） */
.moment-actions { padding: 4px 0 2px; }
.qd-like {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 12px;
  background: none; border: 1px solid var(--qd-border); border-radius: 999px;
  color: var(--qd-muted); font-size: var(--qd-fs-xs); cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.qd-like svg { width: 15px; height: 15px; flex: none; }
.qd-like:hover { color: #e0245e; border-color: #e0245e; }
.qd-like.liked { color: #e0245e; border-color: #e0245e; }
.qd-like.liked svg { fill: currentColor; }
.entry-meta .qd-like { margin-left: 8px; }

/* 收藏按钮（v0.22）：与点赞同风格 */
.qd-fav {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 12px; font-size: var(--qd-fs-xs);
  border: 1px solid var(--qd-border); border-radius: 99px;
  background: transparent; color: var(--qd-muted);
  cursor: pointer; font-family: inherit;
}
.qd-fav:hover { color: #d97706; border-color: #d97706; opacity: 1; }
.qd-fav.liked { color: #d97706; border-color: #d97706; }
.qd-fav-guest { text-decoration: none; }
.entry-meta .qd-fav { margin-left: 8px; }
.me-doc-actions .qd-fav { padding: 1px 10px; }

/* 相册（jk.rs 式） */
.album-columns-2 { grid-template-columns: repeat(2, 1fr); }
.album-columns-4 { grid-template-columns: repeat(4, 1fr); }
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; }
.album-card a {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--qd-radius); background: var(--qd-surface);
}
.album-card-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.album-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.album-card a:hover .album-card-media img { transform: scale(1.05); opacity: 0.92; }
.album-card-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: #fff; display: flex; flex-direction: column; gap: 3px;
}
.album-card-title { font-weight: 600; font-size: var(--qd-fs-sm); line-height: 1.4; }
.album-card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: var(--qd-fs-xs); opacity: 0.85; }
.album-card-meta em { font-style: normal; }
.album-group { margin-bottom: 30px; }
.album-group-title { font-size: var(--qd-fs-md); margin: 0 0 12px; }
.album-group-title a { color: var(--qd-text); }
.album-group-title a:hover { color: var(--qd-accent); }
.album-caption { color: var(--qd-muted); padding: 6px 0 16px; }
.album-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 6px 0 26px; list-style: none; margin: 0;
}
.album-photo { margin: 0; }
.album-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--qd-radius-sm); cursor: zoom-in;
  display: block;
}

/* 文档详情：TOC + 进度条 */
.doc-single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; padding-block: 26px 60px; }
.doc-single-main { min-width: 0; }

/* §26 文档形态：左树 + 正文 + 右大纲（v0.42.0） */
.doc-shell { display: grid; grid-template-columns: var(--qd-doc-tree, 240px) minmax(0, 1fr) 220px; gap: 40px; padding-block: 26px 60px; align-items: start; }
.doc-shell:not(.has-tree) { grid-template-columns: minmax(0, 1fr) 220px; }
.doc-shell .doc-single-main { min-width: 0; }
.doc-shell:not(.has-tree) .doc-single-main { grid-column: 1; }
/* 文档形态下面包屑贴顶（去掉通用样式的 18px 顶距，容器自身已有 26px 上边距） */
.doc-shell .doc-crumb { padding: 0 0 2px; }
.doc-content { max-width: 720px; }

/* ===== 文档正文排版（v0.62.1）：导入文档此前只有浏览器默认样式，碎行/表格/标题无层级 ===== */
.doc-content { font-size: 15.5px; line-height: 1.85; color: var(--qd-text); }
.doc-content p { margin: 0 0 .9em; }
.doc-content h2, .doc-content h3, .doc-content h4 { font-weight: 600; line-height: 1.45; }
.doc-content h2 { font-size: 1.32em; margin: 2em 0 .7em; }
.doc-content h3 { font-size: 1.12em; margin: 1.6em 0 .55em; }
.doc-content h4 { font-size: 1.02em; margin: 1.3em 0 .45em; }
.doc-content ul, .doc-content ol { margin: 0 0 1em; padding-left: 1.6em; }
.doc-content li { margin: 0 0 .35em; }
.doc-content table {
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  width: 100%; margin: 1.2em 0; border-collapse: collapse; font-size: 13.5px; line-height: 1.6;
}
.doc-content th, .doc-content td {
  border: 1px solid var(--qd-border); padding: 6px 10px; text-align: left; vertical-align: top;
}
.doc-content th { background: var(--qd-accent-soft, rgba(0,0,0,.035)); font-weight: 600; white-space: nowrap; }
.doc-content tbody tr:nth-child(even) td { background: rgba(0,0,0,.018); }
html[data-theme="dark"] .doc-content th { background: rgba(255,255,255,.07); }
html[data-theme="dark"] .doc-content tbody tr:nth-child(even) td { background: rgba(255,255,255,.03); }
.doc-upd { color: var(--qd-muted); font-size: var(--qd-fs-xs); }
.doc-upd::before { content: "·"; margin-right: 6px; }
.doc-words { color: var(--qd-muted); font-size: var(--qd-fs-xs); }
.doc-words::before { content: "·"; margin-right: 6px; }

.doc-tree {
  position: sticky; top: calc(var(--qd-header-h, 60px) + 20px);
  align-self: start; font-size: var(--qd-fs-sm);
  max-height: calc(100vh - 100px); overflow: auto;
}
.doc-tree .dt-cap { margin: 0 0 10px; color: var(--qd-muted); font-weight: 500; }
.doc-tree ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--qd-border); }
.doc-tree li { position: relative; }
/* v0.50.0 多级可折叠树：分组行（箭头+链接+篇数）/ 叶子行；层间用嵌套引导线 */
.doc-tree .dt-row {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 4px 3px 8px;
  border-left: 2px solid transparent; margin-left: -1px;
  min-width: 0;
}
.doc-tree .dt-row a {
  flex: 1 1 auto; min-width: 0; word-break: break-word;
  color: var(--qd-muted); line-height: 1.5;
}
/* v0.55 树图标：与标题同行、垂直居中、随文字变色 */
.doc-tree .dt-ico {
  flex: none; margin-right: 2px; vertical-align: -2px;
  color: var(--qd-muted); opacity: 0.9;
}
.doc-tree .dt-row:hover .dt-ico, .doc-tree li.current .dt-ico { color: var(--qd-accent); }
.doc-tree .dt-row:hover a { color: var(--qd-accent); }
.doc-tree li.current > .dt-row { border-left-color: var(--qd-accent); }
.doc-tree li.current > .dt-row a { color: var(--qd-accent); font-weight: 600; }
.doc-tree .dt-toggle {
  flex: 0 0 auto; width: 16px; height: 16px; margin: 0; padding: 0;
  border: 0; background: none; cursor: pointer;
  position: relative; opacity: 0.6; align-self: center;
}
.doc-tree .dt-toggle::before {
  content: ""; position: absolute; left: 5px; top: 5px;
  width: 5px; height: 5px;
  border-right: 1.5px solid var(--qd-muted); border-bottom: 1.5px solid var(--qd-muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease, top 0.15s ease;
}
.doc-tree .dt-group.is-open > .dt-row .dt-toggle::before { transform: rotate(45deg); top: 8px; }
.doc-tree .dt-toggle:hover { opacity: 1; }
.doc-tree ul.dt-branch { display: none; margin: 0 0 2px 12px; }
.doc-tree li.dt-group.is-open > ul.dt-branch { display: block; }
.doc-tree .dt-count {
  flex: 0 0 auto; margin-left: auto;
  font-size: 11px; color: var(--qd-muted);
  font-variant-numeric: tabular-nums;
}
.doc-tree li:not(.dt-group) > .dt-row { padding-left: 28px; }
.doc-tree .doc-lock { margin-left: 6px; }
/* v0.50.2：长标题单行省略（悬停看全名，title 属性兜底）+ 树内筛选框 */
.doc-tree.dt-ellipsis .dt-row a {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.doc-tree .dt-filter {
  width: 100%; box-sizing: border-box;
  margin: 0 0 10px; padding: 5px 10px;
  font-size: var(--qd-fs-xs); color: var(--qd-text);
  background: var(--qd-bg, #fff);
  border: 1px solid var(--qd-border); border-radius: 4px;
}
.doc-tree .dt-filter:focus { outline: none; border-color: var(--qd-accent); }
.doc-tree .dt-filter::placeholder { color: var(--qd-muted); }
.doc-tree li.dt-hide { display: none; }
.doc-tree .dt-nohit { display: none; margin: 6px 0 0 14px; color: var(--qd-muted); }
.doc-tree.dt-nohit .dt-nohit { display: block; }

/* ---------- 标题锚点 + 跳转高亮（v0.51.0） ---------- */
.doc-content h2, .doc-content h3 { scroll-margin-top: calc(var(--qd-header-h, 60px) + 16px); }
.doc-content h2, .doc-content h3 { position: relative; }
.h-anchor {
  display: inline-block; margin-left: 8px;
  color: var(--qd-accent); text-decoration: none;
  opacity: 0; transition: opacity .18s ease;
  font-weight: 400; line-height: 1;
  transform: translateY(-1px);
}
.h-anchor:hover { text-decoration: underline; }
.doc-content h2:hover .h-anchor,
.doc-content h3:hover .h-anchor { opacity: .85; }
.doc-content h2 .h-anchor.ok,
.doc-content h3 .h-anchor.ok { opacity: 1; }

/* ---------- 最近更新（v0.53.0）：工作台底部时效入口 ---------- */
.doc-recent li { display: flex; align-items: baseline; gap: 10px; }
.doc-recent li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-recent time { margin-left: auto; flex-shrink: 0; color: var(--qd-muted); font-size: var(--qd-fs-xs); font-variant-numeric: tabular-nums; }
.doc-recent .doc-lock { flex-shrink: 0; }

/* ---------- 打印样式（v0.53.0）：后台可关（关闭时 body.qd-print-off 整体失效） ---------- */
@media print {
  body:not(.qd-print-off) .site-header,
  body:not(.qd-print-off) .site-footer,
  body:not(.qd-print-off) #backtop,
  body:not(.qd-print-off) .doc-tree,
  body:not(.qd-print-off) .doc-tree-mask,
  body:not(.qd-print-off) .doc-toc,
  body:not(.qd-print-off) .doc-tocbtn,
  body:not(.qd-print-off) .reading-progress,
  body:not(.qd-print-off) .doc-search,
  body:not(.qd-print-off) .filter-tabs,
  body:not(.qd-print-off) .doc-related,
  body:not(.qd-print-off) .doc-recent,
  body:not(.qd-print-off) .doc-children,
  body:not(.qd-print-off) .doc-pn,
  body:not(.qd-print-off) .entry-meta,
  body:not(.qd-print-off) .h-anchor,
  body:not(.qd-print-off) .qd-code-copy { display: none !important; }
  body:not(.qd-print-off) .doc-shell,
  body:not(.qd-print-off) .doc-single-layout,
  body:not(.qd-print-off) .doc-single-main { display: block; max-width: 100%; }
  body:not(.qd-print-off) .doc-content { max-width: 100%; font-size: 12pt; line-height: 1.75; color: #000; }
  body:not(.qd-print-off) .doc-content a { color: #000; text-decoration: underline; }
  body:not(.qd-print-off) .doc-content pre,
  body:not(.qd-print-off) .doc-content blockquote,
  body:not(.qd-print-off) .doc-content img,
  body:not(.qd-print-off) .doc-content table { break-inside: avoid; }
  body:not(.qd-print-off) .doc-content pre { white-space: pre-wrap; word-break: break-all; }
  body:not(.qd-print-off) .doc-content h2,
  body:not(.qd-print-off) .doc-content h3 { break-after: avoid; }
}
@media (hover: none) {
  /* 触屏没有 hover：低透明度常驻，可点 */
  .h-anchor { opacity: .35; padding: 4px; margin-left: 2px; }
}
@keyframes qd-h-flash {
  0% { background-color: rgba(59, 130, 246, .18); }
  100% { background-color: transparent; }
}
.doc-content h2.qd-flash, .doc-content h3.qd-flash {
  animation: qd-h-flash 1.8s ease-out 1;
  border-radius: 3px;
}
.doc-tocbtn { display: none; }
.doc-tree-mask { display: none; }

/* 上下篇（系列序） */
.doc-pn { display: flex; gap: 14px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--qd-border); }
.doc-pn .pn-item { flex: 1; min-width: 0; display: block; padding: 12px 14px; border: 1px solid var(--qd-border); border-radius: var(--qd-radius-sm, 8px); color: var(--qd-text); }
.doc-pn .pn-item span { display: block; font-size: var(--qd-fs-xs); color: var(--qd-muted); margin-bottom: 4px; }
.doc-pn .pn-item b { font-size: var(--qd-fs-sm); font-weight: 600; line-height: 1.5; word-break: break-word; }
.doc-pn .pn-item:hover { border-color: var(--qd-accent); color: var(--qd-accent); }
.doc-pn .pn-item:hover span { color: var(--qd-accent); opacity: 0.75; }
.doc-pn .pn-next { text-align: right; }
.doc-pn .pn-empty { border: 0; }

@media (max-width: 1100px) {
  .doc-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .doc-shell .doc-toc { display: none; }
}
@media (max-width: 768px) {
  .doc-shell, .doc-shell:not(.has-tree) { grid-template-columns: 1fr; }
  .doc-tocbtn {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 0 0 10px; padding: 7px 14px;
    border: 1px solid var(--qd-border); border-radius: 999px;
    background: var(--qd-card, #fff); color: var(--qd-text);
    font-size: var(--qd-fs-xs); cursor: pointer;
  }
  .doc-tree {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 200;
    width: min(300px, 82vw); max-height: none;
    height: 100dvh;
    background: var(--qd-bg, #fff); padding: 18px 16px;
    transform: translateX(-102%); transition: transform 0.25s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.18); overflow-y: auto;
  }
  body.qd-docnav-open .doc-tree { transform: none; }
  .doc-tree-mask {
    display: none; position: fixed; inset: 0; z-index: 199;
    background: rgba(0, 0, 0, 0.42);
  }
  body.qd-docnav-open .doc-tree-mask { display: block; }
  .doc-pn { flex-direction: column; }
  .doc-pn .pn-next { text-align: left; }
}

.doc-title { margin: 10px 0 6px; font-size: var(--qd-fs-xl); }
/* v0.49.1：右栏拉伸至整行高 + sticky 移到内层，目录常驻到页尾（不再被容器底边带出视口） */
.doc-toc {
  align-self: stretch; font-size: var(--qd-fs-xs);
}
.doc-toc-sticky {
  position: sticky; top: calc(var(--qd-header-h, 60px) + 20px);
  max-height: calc(100vh - 100px); overflow: auto;
  /* v0.52.0 移除 scroll-behavior:smooth——面板跟随逐帧微调+平滑动画曾致滚动「发重」；
     点击大纲的平滑滚动由 JS 显式指定，不受影响 */
}
.doc-toc h4 { margin: 0 0 10px; color: var(--qd-muted); font-weight: 500; }
.doc-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--qd-border); }
.doc-toc li a {
  display: block; padding: 5px 0 5px 14px;
  color: var(--qd-muted); line-height: 1.5;
  border-left: 2px solid transparent; margin-left: -1px;
}
.doc-toc li.is-h3 a { padding-left: 26px; }
.doc-toc li a:hover { color: var(--qd-accent); }
.doc-toc li a.active { color: var(--qd-accent); border-left-color: var(--qd-accent); font-weight: 600; }
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: transparent; z-index: 60; pointer-events: none;
}
.reading-progress span {
  display: block; height: 100%; width: 0;
  background: var(--qd-accent);
  transition: width 0.1s linear;
}

/* 灯箱：翻页 */
.qd-lb-prev, .qd-lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.08); color: #fff;
  border: 0; border-radius: 50%;
  font-size: 26px; line-height: 1; cursor: pointer;
}
.qd-lb-prev { left: 18px; }
.qd-lb-next { right: 18px; }
.qd-lb-prev:hover, .qd-lb-next:hover { background: rgba(255, 255, 255, 0.22); }
.qd-lb-counter {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8); font-size: 13px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- v0.6.0：动态作者 / 页内发布框 / 删除 / 头像行 ---------- */
.moment-author {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--qd-text); font-weight: 500;
}
.moment-author:hover { color: var(--qd-accent); opacity: 1; }
.moment-author-avatar { border-radius: 50%; display: block; }
.moment-actions { display: flex; align-items: center; gap: 10px; }
.moment-del {
  border: none; background: none; cursor: pointer;
  color: var(--qd-muted); font-size: 18px; line-height: 1;
  padding: 2px 6px; border-radius: 4px;
}
.moment-del:hover { color: #d9534f; background: var(--qd-accent-soft); }
.moment-composer { margin-top: 24px; }
.moment-composer textarea {
  width: 100%; border: 1px solid var(--qd-border); border-radius: var(--qd-radius);
  padding: 10px 12px; font: inherit; resize: vertical; background: var(--qd-surface); color: var(--qd-text);
}
.moment-composer textarea:focus { outline: 2px solid var(--qd-accent-soft); border-color: var(--qd-accent); }
.me-avatar-row { display: flex; align-items: center; gap: 12px; }
.me-avatar-sm { border-radius: 50%; display: block; }
.me-avatar-label { font-size: var(--qd-fs-sm); color: var(--qd-accent); cursor: pointer; }
.me-avatar-label input[type="file"] { display: none; }

/* ============================================================
   13.5 社交深化：通知铃铛 / 关注按钮 / 用户列表 / 评论回复
   ============================================================ */
.notif-bell { position: relative; }
.notif-bell summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center;
  padding: 4px 8px; border-radius: var(--qd-radius-sm);
  font-size: 17px; line-height: 1;
}
.notif-bell summary::-webkit-details-marker { display: none; }
.notif-bell summary:hover { background: var(--qd-accent-soft); }
.bell-badge {
  min-width: 17px; height: 17px; padding: 0 4px;
  margin-left: 2px; border-radius: 9px;
  background: #e5484d; color: #fff;
  font-size: 11px; font-weight: 600; line-height: 17px;
  text-align: center; font-family: Inter, sans-serif;
}
.notif-bell[open] .bell-badge { display: none; }
.notif-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 320px; max-width: 84vw;
  background: var(--qd-surface); border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: 60;
}
.notif-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--qd-border);
  font-size: var(--qd-fs-sm); font-weight: 600;
}
.notif-read-all {
  border: 0; background: none; cursor: pointer;
  font-size: var(--qd-fs-xs); color: var(--qd-accent); padding: 0;
}
.notif-read-all:hover { text-decoration: underline; }
.notif-list { list-style: none; margin: 0; padding: 4px 0; max-height: 320px; overflow: auto; }
.notif-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 9px 14px; font-size: var(--qd-fs-sm);
}
.notif-list li time { flex-shrink: 0; font-size: var(--qd-fs-xs); color: var(--qd-muted); }
.notif-list li a { color: var(--qd-text); }
.notif-list li a:hover { color: var(--qd-accent); opacity: 1; }
.notif-list li.unread { background: var(--qd-accent-soft); }
.notif-list li.unread a { font-weight: 600; }
.notif-list li.empty { color: var(--qd-muted); }
.me-notif-list { border: 1px solid var(--qd-border); border-radius: var(--qd-radius-sm); }

.qd-follow {
  border: 1px solid var(--qd-accent); background: transparent;
  color: var(--qd-accent); font-size: 12px; line-height: 1;
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.qd-follow:hover { background: var(--qd-accent-soft); opacity: 1; }
.qd-follow.on {
  background: transparent; border-color: var(--qd-border);
  color: var(--qd-muted); cursor: default;
}
.qd-follow.on:hover { background: transparent; }
a.qd-follow { display: inline-block; text-decoration: none; }
.qd-mention {
  color: var(--qd-accent); font-weight: 500;
  text-decoration: none; border-bottom: 1px dotted var(--qd-accent);
}
.qd-mention:hover { opacity: .8; }

.me-user-list { list-style: none; margin: 0; padding: 0; }
.me-user-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--qd-border);
  font-size: var(--qd-fs-sm);
}
.me-user-list li:last-child { border-bottom: 0; }
.me-user-list a { color: var(--qd-text); flex: 1; }
.me-user-list a:hover { color: var(--qd-accent); opacity: 1; }
.me-user-avatar, .me-avatar-sm { border-radius: 50%; }

.moment-tabs { margin-top: 16px; }

/* 评论：嵌套回复、回复按钮、作者高亮 */
.comment-list ol.children { margin-top: 14px; }
.comment-list .comment-body { padding: 14px 16px; }
.comment-list .reply { margin-top: 8px; font-size: var(--qd-fs-xs); }
.comment-list .reply a {
  color: var(--qd-accent); text-decoration: none;
  padding: 3px 10px; border: 1px solid var(--qd-border);
  border-radius: 999px; display: inline-block;
}
.comment-list .reply a:hover { border-color: var(--qd-accent); opacity: 1; }
.comment-list .bypostauthor > .comment-body {
  border-left: 3px solid var(--qd-accent);
  background: var(--qd-accent-soft);
}
.comment-awaiting-moderation { color: #b45309; font-size: var(--qd-fs-sm); }

/* 工具卡片：外链角标 + 详情入口 */
.tool-ext { font-size: .8em; opacity: .55; }
.tool-detail-link {
  display: inline-block; margin-top: 8px;
  font-size: var(--qd-fs-xs); color: var(--qd-muted); text-decoration: none;
}
.tool-detail-link:hover { color: var(--qd-accent); }
.tool-grid li { display: flex; flex-direction: column; align-items: flex-start; }

/* ============================================================
   13.5 暗色模式细节（表单/代码/引用/滚动条/灯箱）
   ============================================================ */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #1d1d24;
  border-color: #33333e;
  color: var(--qd-text);
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: #6b6b76; }
[data-theme="dark"] .entry-content code,
[data-theme="dark"] .entry-content pre {
  background: #1d1d24; color: #d8dee9; border-color: #33333e;
}
[data-theme="dark"] .entry-content blockquote { border-left-color: #3b4a6b; }
[data-theme="dark"] img { opacity: .92; }
[data-theme="dark"] .site-header { background: rgba(13, 15, 19, 0.88); }
[data-theme="dark"] .qd-lightbox { background: rgba(6, 6, 9, 0.94); }
[data-theme="dark"] ::selection { background: color-mix(in srgb, var(--qd-accent) 38%, transparent); color: #fff; }
[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #33333e; border-radius: 5px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: transparent; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #43434f; }

::selection { background: var(--qd-accent-soft); }
.qd-lightbox img { transition: transform .25s ease; }
.qd-lightbox.lb-zoom img {
  transform: scale(2);
  max-width: none; max-height: none;
  cursor: zoom-out;
}
.qd-lightbox.lb-zoom { overflow: auto; }

/* 文档即时搜索（v0.23：全站 REST 搜索 + 下拉结果） */
.doc-search {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 20px 0 0; max-width: 560px;
}
.doc-search-input {
  flex: 1; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--qd-border); border-radius: var(--qd-radius);
  background: var(--qd-surface); color: var(--qd-text);
  font-size: var(--qd-fs-sm); outline: none;
}
.doc-search-input:focus { border-color: var(--qd-accent); }
.doc-search-tip { font-size: var(--qd-fs-xs); color: var(--qd-muted); white-space: nowrap; }
.doc-search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  background: var(--qd-surface); border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius); box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  max-height: 320px; overflow: auto; padding: 6px 0;
}
.doc-search-results ul { list-style: none; margin: 0; padding: 0; }
.doc-search-results li a {
  display: block; padding: 9px 16px;
  color: var(--qd-text); font-size: var(--qd-fs-sm); text-decoration: none;
}
.doc-search-results li a:hover { background: var(--qd-accent-soft); color: var(--qd-accent); }
.doc-search-foot {
  margin: 4px 0 0; padding: 8px 16px 6px;
  font-size: var(--qd-fs-xs); color: var(--qd-muted);
  border-top: 1px solid var(--qd-border);
}
[data-theme="dark"] .doc-search-results { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

/* 复制链接按钮 */
.qd-copy-link {
  display: inline-block; margin: 14px 0 0; padding: 8px 18px;
  border: 1px solid var(--qd-border); border-radius: 99px;
  background: var(--qd-surface); color: var(--qd-text-2);
  font-size: var(--qd-fs-sm); cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.qd-copy-link:hover { color: var(--qd-accent); border-color: var(--qd-accent); }

/* 文章自动目录（复用 doc-toc 样式） */
.toc-l3 a { padding-left: 18px; font-size: var(--qd-fs-xs); }
.qd-crumb { padding-top: 16px; }
.footer-rss {
  display: inline-block; padding: 3px 10px; margin-left: 6px;
  border: 1px solid var(--qd-border); border-radius: 4px;
  font-size: var(--qd-fs-xs); color: var(--qd-muted); text-decoration: none;
}
.footer-rss:hover { color: #f26522; border-color: #f26522; opacity: 1; }
.backtop { bottom: calc(18px + env(safe-area-inset-bottom)); }
@media (max-width: 767px) {
  .backtop { bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* 用户公开主页 */
.profile-header { background: var(--qd-accent-soft); border-bottom: 1px solid var(--qd-border); padding: 30px 0; }
.profile-inner { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.profile-avatar { flex: none; }
.profile-avatar .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--qd-surface); box-shadow: var(--qd-shadow); }
.profile-body { flex: 1; min-width: 200px; }
.profile-name { margin: 4px 0 8px; font-size: var(--qd-fs-lg); }
.profile-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 8px; font-size: var(--qd-fs-sm); color: var(--qd-muted); }
.profile-stats b { color: var(--qd-text); font-size: 1.1em; }
.profile-desc { margin: 0; font-size: var(--qd-fs-sm); color: var(--qd-text-2); max-width: 560px; }
.profile-actions { padding-top: 30px; }

/* 动态配图 */
.moment-figure { margin: 12px 0 0; }
.moment-figure img { border-radius: var(--qd-radius); border: 1px solid var(--qd-border); max-height: 480px; object-fit: cover; }
.moment-upload-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; }
.moment-upload-btn {
  display: inline-block; padding: 8px 16px; cursor: pointer;
  border: 1px dashed var(--qd-border); border-radius: var(--qd-radius);
  font-size: var(--qd-fs-sm); color: var(--qd-text-2);
  transition: color .15s ease, border-color .15s ease;
}
.moment-upload-btn:hover { color: var(--qd-accent); border-color: var(--qd-accent); }
.moment-img-name { font-size: var(--qd-fs-xs); color: var(--qd-muted); }

/* 搜索表单 */
.qd-searchform { display: flex; gap: 10px; max-width: 480px; }
.qd-searchform-input {
  flex: 1; min-height: 42px; padding: 8px 14px;
  border: 1px solid var(--qd-border); border-radius: var(--qd-radius);
  background: var(--qd-surface); color: var(--qd-text); outline: none;
}
.qd-searchform-input:focus { border-color: var(--qd-accent); }
.qd-searchform-btn {
  min-height: 42px; padding: 0 20px; cursor: pointer;
  border: 1px solid var(--qd-accent); border-radius: var(--qd-radius);
  background: var(--qd-accent); color: #fff; font-size: var(--qd-fs-sm);
}
.qd-searchform-btn:hover { opacity: .88; }

/* 搜索结果 / 作者页类型徽章 */
.type-badge {
  display: inline-block; padding: 2px 10px; border-radius: 99px;
  background: var(--qd-accent-soft); color: var(--qd-accent);
  font-size: var(--qd-fs-xs);
}

/* 动态多图九宫格（v0.73.0：1图大图 / 2-3图三列 / 4图田字 / 5-9图九宫 / >9图 +N 蒙层） */
.moment-grid { display: grid; gap: 5px; margin: 12px 0 0; }
.moment-grid.g1 { grid-template-columns: 62%; }
.moment-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.moment-grid.g4 { grid-template-columns: repeat(2, 1fr); }
.moment-grid.g9 { grid-template-columns: repeat(3, 1fr); }
.mg-cell { position: relative; display: block; border-radius: var(--qd-radius); overflow: hidden; }
.moment-grid .mg-cell img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1;
  border-radius: 0; border: 1px solid var(--qd-border);
  cursor: zoom-in; display: block;
}
.moment-grid.g1 .mg-cell { aspect-ratio: 4 / 3; }
.moment-grid.g1 .mg-cell img { aspect-ratio: auto; height: 100%; max-height: 480px; object-fit: cover; }
.mg-more {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 800; font-size: 22px; color: #fff;
  background: rgba(17, 20, 30, 0.52);
}

/* 相册前台上传 */
.album-upload-form { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; }

/* ============================================================
   14. 详情页 Hero（书影音 / 工具专属模板）
   ============================================================ */
.review-hero {
  background: var(--qd-accent-soft);
  border-bottom: 1px solid var(--qd-border);
  padding: 34px 0;
}
.review-hero-inner { display: flex; gap: 26px; align-items: flex-start; }
.review-hero-cover { flex: none; width: 190px; }
.review-hero-cover img { border-radius: var(--qd-radius); box-shadow: var(--qd-shadow); }
.review-cover-placeholder-lg {
  width: 190px; aspect-ratio: 3/4;
  border-radius: var(--qd-radius);
  background: var(--qd-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; font-weight: 700; opacity: .92;
}
.review-hero-body { min-width: 0; }
.review-hero-title { font-size: var(--qd-fs-xl); margin: 8px 0 6px; line-height: 1.3; }
.review-type-badge, .tool-cat-badge {
  display: inline-block; padding: 3px 12px; border-radius: 99px;
  background: var(--qd-accent); color: #fff;
  font-size: var(--qd-fs-xs); text-decoration: none;
}
.review-type-badge:hover, .tool-cat-badge:hover { opacity: .85; }
.review-facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 16px 0 0; }
.review-fact dt { font-size: var(--qd-fs-xs); color: var(--qd-muted); margin-bottom: 2px; }
.review-fact dd { margin: 0; font-weight: 600; }
.review-rating-num { margin-left: 6px; font-size: var(--qd-fs-md); color: var(--qd-accent); }
.review-stars { color: var(--qd-accent); letter-spacing: 2px; }

/* 工具 Hero */
.tool-hero {
  border-bottom: 1px solid var(--qd-border);
  padding: 38px 0;
}
.tool-hero-inner { display: flex; gap: 22px; align-items: center; }
.tool-hero-icon {
  flex: none; width: 84px; height: 84px; border-radius: calc(var(--qd-radius) * 1.2);
  background: var(--qd-accent-soft); border: 1px solid var(--qd-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem; font-weight: 700; color: var(--qd-accent); overflow: hidden;
}
.tool-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.tool-hero-title { font-size: var(--qd-fs-xl); margin: 8px 0 2px; }
.tool-hero-host { color: var(--qd-muted); font-size: var(--qd-fs-sm); margin: 0 0 12px; }

/* 相关推荐 */
.related-block { max-width: 760px; margin-top: 34px; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { border-bottom: 1px solid var(--qd-border); }
.related-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 2px; text-decoration: none; color: var(--qd-text);
}
.related-list a:hover { color: var(--qd-accent); }
.related-list a:hover .related-title { opacity: 1; }
.related-title { opacity: .9; }
.related-date { flex: none; color: var(--qd-muted); font-size: var(--qd-fs-sm); }
.back-link { margin-top: 26px; font-size: var(--qd-fs-sm); }
.back-link a { color: var(--qd-muted); }
.back-link a:hover { color: var(--qd-accent); }

/* 回到顶部 */
.backtop {
  position: fixed; right: 22px; bottom: 26px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--qd-border);
  background: var(--qd-surface); color: var(--qd-text);
  font-size: 1.15rem; cursor: pointer;
  box-shadow: var(--qd-shadow);
  transition: opacity .2s ease, transform .2s ease;
}
.backtop:hover { color: var(--qd-accent); border-color: var(--qd-accent); transform: translateY(-2px); }

/* 评论蜜罐（视觉隐藏） */
.qd-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* ============================================================
   15. 响应式（三端适配：桌面 ≥1100 / 平板 768-1099 / 手机 <768）
   ============================================================ */

/* ---------- 平板（768-1099px） ---------- */
@media (max-width: 1099px) and (min-width: 768px) {
  :root { --qd-container: 100%; --qd-gap: 28px; }

  .container { padding: 0 var(--qd-gap); }

  /* 首页板块：卡片栅格收敛列数 */
  .card-grid, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .album-columns-4 { grid-template-columns: repeat(3, 1fr); }

  /* Hero 收紧 */
  .hero { padding: 52px 0 34px; }

  /* 相册详情宫格 */
  .album-grid { grid-template-columns: repeat(3, 1fr); }

  /* 文档单页目录变窄 */
  .doc-single-layout { grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; }
  .doc-toc { font-size: var(--qd-fs-sm); }
}

/* ---------- 手机（<768px） ---------- */
@media (max-width: 767px) {
  :root { --qd-container: 100%; --qd-gap: 16px; --qd-fs-xl: 1.45rem; }

  /* 触控目标：所有可点元素 ≥44px 高 */
  .nav-list a, .filter-tabs a, .btn, .theme-toggle, .nav-toggle {
    min-height: 44px;
  }

  .hero { padding: 40px 0 26px; }
  .hero h2 { font-size: 1.6rem; }
  .section-head { flex-wrap: wrap; }

  /* 移动端抽屉导航 */
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--qd-header-h); left: 0; right: 0;
    background: var(--qd-bg);
    border-bottom: 1px solid var(--qd-border);
    box-shadow: var(--qd-shadow);
    padding: 8px var(--qd-gap) 16px;
    display: none;
    z-index: 49;
    max-height: calc(100vh - var(--qd-header-h));
    overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { padding: 12px 10px; font-size: var(--qd-fs-md); }

  /* 筛选 Tabs 横向滑动，不换行堆叠 */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tabs a { white-space: nowrap; flex: none; }

  /* 卡片单列/双列收敛 */
  .card-grid, .tool-grid { grid-template-columns: 1fr; }
  .has-thumb { flex-direction: column; }
  .has-thumb .thumb { flex: none; width: 100%; }
  .has-thumb .thumb img { aspect-ratio: 16/7; }

  /* 书影音 Hero 竖排，封面缩小 */
  .review-hero { padding: 24px 0; }
  .review-hero-inner { flex-direction: column; gap: 16px; }
  .review-hero-cover, .review-cover-placeholder-lg { width: 132px; }
  .review-facts { gap: 6px 20px; }

  /* 工具 Hero 竖排 */
  .tool-hero { padding: 26px 0; }
  .tool-hero-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .tool-visit-btn-lg { display: block; text-align: center; min-height: 44px; line-height: 44px; }

  /* 相册 */
  .album-grid, .album-columns-2, .album-columns-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .album-gallery { grid-template-columns: repeat(2, 1fr); }

  /* 文档单页：目录下沉 */
  .doc-single-layout { grid-template-columns: 1fr; gap: 0; }
  .doc-toc { margin-top: 26px; }
  .doc-toc .doc-toc-sticky { position: static; max-height: none; }
  .doc-list { grid-template-columns: 1fr; }

  /* 正文与评论 */
  .entry-content { font-size: 1rem; }
  .entry-content img { border-radius: var(--qd-radius); }
  .comment-form textarea { min-height: 120px; }
  .comment-list .children { margin-left: 14px; }
  .review-cover { flex-basis: 60px; }
  .review-cover-placeholder { width: 60px; }

  /* 会员区 */
  .me-composer-row { flex-wrap: wrap; }
  .account-name { display: none; }

  /* 回到顶部：贴边更近 */
  .backtop { right: 14px; bottom: 18px; }

  /* 灯箱 */
  .qd-lightbox img { max-width: 96vw; max-height: 80vh; }

  /* 相册上传与新建相册表单 */
  .album-upload-form { flex-wrap: wrap; }
  .me-album-create .auth-row { margin-top: 10px; }

  /* 灯箱  safe-area */
  .qd-lb-close { top: calc(10px + var(--qd-sat)); }
  .backtop { right: calc(14px + env(safe-area-inset-right)); }
}


/* ---------- 小屏手机（<480px） ---------- */
@media (max-width: 479px) {
  :root { --qd-gap: 13px; }

  .album-grid, .album-columns-2, .album-columns-4 { grid-template-columns: 1fr; }
  .album-gallery { grid-template-columns: repeat(2, 1fr); }
  .entry-meta { flex-wrap: wrap; gap: 4px 10px; }
  .hero h2 { font-size: 1.4rem; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
  .footer-meta { align-items: center; }
  .footer-beian { justify-content: center; }
  .tool-hero-icon { width: 64px; height: 64px; font-size: 1.6rem; }
  .related-list a { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* 评论登录引导 */
.must-log-in { font-size: var(--qd-fs-sm); color: var(--qd-text-2); padding: 10px 14px; background: var(--qd-accent-soft); border-radius: var(--qd-radius); }
.must-log-in a { color: var(--qd-accent); font-weight: 600; }

/* ===== 16. 知识付费：付费墙 / 徽章 / 水印 / 防复制 ===== */
.doc-lock {
  display: inline-block; margin-right: 8px; padding: 1px 8px;
  border: 1px solid var(--qd-accent); border-radius: 999px;
  color: var(--qd-accent); font-size: var(--qd-fs-xs); line-height: 1.6;
  vertical-align: 2px;
}
.doc-lock-soft { border-color: var(--qd-border); color: var(--qd-muted); }

.doc-teaser { position: relative; }
.doc-teaser::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px;
  background: linear-gradient(transparent, var(--qd-bg));
  pointer-events: none;
}

.paywall-box {
  margin: 28px 0; padding: 26px 22px;
  border: 1px solid var(--qd-border); border-radius: var(--qd-radius);
  text-align: center; background: var(--qd-accent-soft);
}
.paywall-lock { color: var(--qd-accent); margin-bottom: 6px; }
.paywall-title { font-size: var(--qd-fs-md); font-weight: 600; margin: 0 0 4px; }
.paywall-price { margin: 4px 0; font-size: var(--qd-fs-sm); color: var(--qd-muted); }
.paywall-price b { color: var(--qd-accent); font-size: 20px; font-family: var(--qd-font-num); }
.paywall-desc { color: var(--qd-muted); font-size: var(--qd-fs-sm); margin: 6px auto 14px; max-width: 40em; }
.paywall-actions { display: flex; gap: 14px; justify-content: center; align-items: baseline; }
.paywall-actions .auth-submit { display: inline-block; text-decoration: none; }
.paywall-alt { font-size: var(--qd-fs-xs); color: var(--qd-muted); margin: 10px 0 0; }
.paywall-alt a { color: var(--qd-accent); }
.paywall-redeem { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 4px 0 0; }
.paywall-redeem input[type="text"] {
  flex: 1 1 200px; max-width: 260px; padding: 8px 12px;
  border: 1px solid var(--qd-border); border-radius: var(--qd-radius-sm);
  background: var(--qd-bg); color: var(--qd-text);
  font-family: var(--qd-font-num); letter-spacing: 1px; text-transform: uppercase;
}
.paywall-hint { color: var(--qd-muted); font-size: var(--qd-fs-xs); margin: 12px 0 0; }

/* 付费文档防复制 */
.doc-nocopy { -webkit-user-select: none; user-select: none; }

/* 付费文档用户名水印（全屏平铺，不可交互） */
.doc-watermark {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background-repeat: repeat;
}

@media (max-width: 768px) {
  .paywall-box { padding: 20px 14px; }
}

/* ===== 17. 付费墙收款码 + 文档筛选 Tab ===== */
.paywall-qr { margin-top: 16px; }
.paywall-qr img {
  width: 150px; height: 150px; object-fit: contain;
  border: 1px solid var(--qd-border); border-radius: var(--qd-radius-sm);
  background: #fff; padding: 6px;
}
.paywall-qr p { margin: 8px 0 0; font-size: var(--qd-fs-xs); color: var(--qd-muted); }

/* 文档订单（v0.62.0）：登记 + 取码，印刷式分割线，不做卡片 */
.paywall-order { margin: 18px auto 0; max-width: 420px; text-align: center; }
.po-line { margin: 10px 0 0; }
.po-line-fetch { display: flex; gap: 8px; justify-content: center; }
.po-line-fetch input[type="text"] {
  flex: 1 1 200px; max-width: 240px; padding: 8px 12px;
  border: 1px solid var(--qd-border); border-radius: var(--qd-radius-sm);
  background: var(--qd-bg); color: var(--qd-text);
  font-family: var(--qd-font-num); letter-spacing: 1px; text-transform: uppercase; font-size: 13px;
}
.po-btn {
  padding: 7px 14px; border: 1px solid var(--qd-border); border-radius: var(--qd-radius-sm);
  background: var(--qd-bg); color: var(--qd-text); font-size: var(--qd-fs-xs); cursor: pointer;
}
.po-btn:hover { border-color: var(--qd-accent); color: var(--qd-accent); }
.po-btn-primary { background: var(--qd-accent); border-color: var(--qd-accent); color: #fff; }
.po-btn-primary:hover { color: #fff; opacity: .9; }
.po-form { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--qd-border); }
.po-label { display: block; font-size: var(--qd-fs-xs); color: var(--qd-muted); margin-bottom: 6px; text-align: left; }
.po-form input[type="text"] {
  width: 100%; padding: 8px 12px; margin-bottom: 8px;
  border: 1px solid var(--qd-border); border-radius: var(--qd-radius-sm);
  background: var(--qd-bg); color: var(--qd-text); font-size: 13px;
}
.po-msg { display: block; font-size: var(--qd-fs-xs); color: var(--qd-muted); margin-top: 6px; }
.po-result { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--qd-border); }
.po-title { font-size: var(--qd-fs-sm); font-weight: 600; margin: 0 0 6px; }
.po-no {
  font-family: var(--qd-font-num); font-size: 22px; letter-spacing: 2px;
  color: var(--qd-accent); margin: 0 0 6px; user-select: all;
}
.po-tip { font-size: var(--qd-fs-xs); color: var(--qd-muted); margin: 4px 0 0; }
.po-fetch-result { font-size: var(--qd-fs-xs); color: var(--qd-muted); margin-top: 8px; min-height: 1em; }
.po-fetch-result.po-ok { color: #1e7e34; font-size: var(--qd-fs-sm); }
.po-fetch-result.po-warn { color: #b32d2e; }
html[data-theme="dark"] .po-fetch-result.po-ok { color: #5bd07a; }

.doc-pay-tabs { margin: 18px 0 0; }

/* 阅读量 + 排序 Tab（v0.20） */
.views-count { color: var(--qd-muted); font-size: var(--qd-fs-xs); white-space: nowrap; }
.doc-sort-tabs { margin: 10px 0 0; }
.tab-divider {
  width: 1px; height: 16px; background: var(--qd-border);
  display: inline-block; align-self: center; margin: 0 4px;
}

/* 父文档章节目录（v0.21） */
.doc-children {
  margin: 28px 0 0; padding: 18px 20px;
  border: 1px solid var(--qd-border); border-radius: var(--qd-radius);
}
.doc-children h3 { margin: 0 0 12px; font-size: var(--qd-fs-base); font-weight: 600; }
.doc-children ol { margin: 0; padding-left: 22px; }
.doc-children li {
  padding: 7px 0; border-bottom: 1px dashed var(--qd-border);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.doc-children li:last-child { border-bottom: none; }
.doc-children li a { color: var(--qd-text); font-weight: 500; }
.doc-children li a:hover { color: var(--qd-accent); }
.me-doc-views { color: var(--qd-muted); font-size: var(--qd-fs-xs); white-space: nowrap; }

/* ===== 18. 全站侧栏「活页夹」（v0.29.0）：1100 = 790 + 40 + 270 ===== */
.qd-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(24px, 3vw, 40px); align-items: start;
  padding-block: 26px 60px;
}
.qd-layout.no-side { grid-template-columns: 1fr; }
.qd-main { min-width: 0; }
.qd-side-inner { display: flex; flex-direction: column; gap: 24px; }
.qd-side-inner.is-sticky { position: sticky; top: calc(var(--qd-header-h) + 20px); }
.qd-widget { border-top: 1px solid var(--qd-border); padding-top: 14px; }
.qd-widget-title {
  margin: 0 0 10px; font-size: var(--qd-fs-xs); font-weight: 600;
  color: var(--qd-muted); letter-spacing: .1em;
}
.qd-side-list { list-style: none; margin: 0; padding: 0; }
.qd-side-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 7px 0; border-bottom: 1px dashed var(--qd-border);
  font-size: var(--qd-fs-sm);
}
.qd-side-list li:last-child { border-bottom: none; }
.qd-side-list li a {
  color: var(--qd-text); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qd-side-list li a:hover { color: var(--qd-accent); }
.qd-side-num { color: var(--qd-muted); font-size: var(--qd-fs-xs); font-family: var(--qd-font-num); white-space: nowrap; }
.qd-side-type { color: var(--qd-muted); margin-right: 6px; font-size: var(--qd-fs-xs); }
.qd-side-hint { margin: 8px 0 0; font-size: var(--qd-fs-xs); color: var(--qd-muted); }

/* 站主名片 */
.qd-w-profile { border-top: none; padding-top: 0; }
.qd-profile-card { display: flex; align-items: center; gap: 14px; }
.qd-profile-avatar-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--qd-border); }
.qd-profile-id { min-width: 0; }
.qd-profile-name { font-weight: 600; }
.qd-profile-stats { display: flex; gap: 16px; margin-top: 3px; font-size: var(--qd-fs-xs); color: var(--qd-muted); }
.qd-profile-stats b { color: var(--qd-text); font-family: var(--qd-font-num); }
.qd-profile-intro { margin: 10px 0 0; font-size: var(--qd-fs-sm); color: var(--qd-text-2); }
.qd-profile-follow { margin-top: 10px; }

/* 付费支持位复用 paywall-qr，收紧尺寸 */
.qd-w-pay .paywall-qr img { width: 130px; height: 130px; }
.qd-w-pay .paywall-qr { text-align: left; }
.qd-w-pay .paywall-qr p { text-align: left; }

/* ===== 19. 侧栏降级（置于 §18 之后保证覆盖基础栅格，v0.29.0） ===== */
/* ---------- 平板（768-1099px）：侧栏沉到主列之后，单列顺流（v0.43.0 由两列改单列，消混排错落） ---------- */
@media (max-width: 1099px) and (min-width: 768px) {
  .qd-layout { grid-template-columns: 1fr; }
  .qd-side-inner { display: flex; flex-direction: column; gap: 18px; }
  .qd-side-inner.is-sticky { position: static; }
  .qd-w-profile { border-top: 1px solid var(--qd-border); padding-top: 14px; }
}

/* ---------- 手机（<768px）：栅格收单列，只保留站主名片 ---------- */
@media (max-width: 767px) {
  .qd-layout { grid-template-columns: 1fr; }
  .qd-side-inner { display: flex; flex-direction: column; }
  .qd-widget { display: none; }
  .qd-w-profile { display: block; border-top: none; padding-top: 0; }
}

/* ============================================================
   20. 书影音「书架版」归档（v0.30.0）
   深蓝头部 → 分类 Tab → 高分精选双卡 → 五列海报墙
   ============================================================ */
:root {
  --shelf-blue-1: #1d3f63;
  --shelf-blue-2: #16324f;
  --shelf-gold: #e2b96f;
  --shelf-gold-deep: #c99b4a;
}

/* ---------- 头部 ---------- */
.shelf-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: linear-gradient(135deg, var(--shelf-blue-1), var(--shelf-blue-2) 58%, #122a44);
  border-radius: 16px; padding: 34px 40px; margin: 22px 0 28px; color: #fff;
}
.shelf-hero-title { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: 0.04em; }
.shelf-hero-sub {
  margin: 10px 0 0; font-size: 13px; line-height: 1.7;
  color: rgba(255, 255, 255, 0.72); max-width: 540px;
}
.shelf-stats { display: flex; gap: 30px; margin: 24px 0 0; flex-wrap: wrap; }
.shelf-stat { display: flex; align-items: baseline; gap: 5px; }
.shelf-stat b {
  font-size: 26px; font-weight: 700; color: var(--shelf-gold);
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.shelf-stat i { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, 0.6); }

/* 头部右侧封面层叠合影 */
.shelf-stack { position: relative; width: 200px; height: 150px; flex-shrink: 0; }
.shelf-stack img {
  position: absolute; top: 12px; width: 98px; aspect-ratio: 2 / 3; object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.92); border-radius: 7px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--tilt, 0deg));
}
.shelf-stack img:nth-child(1) { right: 92px; z-index: 1; }
.shelf-stack img:nth-child(2) { right: 58px; top: 2px; z-index: 2; }
.shelf-stack img:nth-child(3) { right: 24px; top: 14px; z-index: 3; }
.shelf-stack img:nth-child(4) { right: -6px; top: 4px; z-index: 2; }

/* ---------- 分类 Tab ---------- */
.shelf-tabs { display: flex; align-items: center; gap: 8px; margin: 20px 0 18px; flex-wrap: wrap; }
.shelf-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--qd-surface, #fff); border: 1px solid var(--qd-border);
  color: var(--qd-text); font-size: 13px; text-decoration: none;
  transition: border-color 0.15s var(--qd-ease), background 0.15s var(--qd-ease);
}
.shelf-tab em {
  font-style: normal; font-size: 11px; line-height: 1; padding: 3px 7px;
  border-radius: 999px; background: var(--qd-accent-soft, #eef1f5); color: var(--qd-muted);
}
.shelf-tab:hover { border-color: var(--qd-accent); color: var(--qd-accent); }
.shelf-tab.active { background: var(--qd-accent); border-color: var(--qd-accent); color: #fff; }
.shelf-tab.active em { background: rgba(255, 255, 255, 0.22); color: #fff; }
.shelf-tabs-note { margin-left: auto; font-size: 12px; color: var(--qd-muted); }

/* ---------- 高分精选双卡（v0.64.3 紧凑版：矮封面小字号，不做半屏大卡） ---------- */
.shelf-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 20px; }
.shelf-feature {
  display: flex; gap: 14px; padding: 12px 14px; border-radius: 14px;
  background: var(--qd-surface, #fff); box-shadow: var(--qd-shadow);
  text-decoration: none; color: inherit;
  transition: transform 0.18s var(--qd-ease), box-shadow 0.18s var(--qd-ease);
}
.shelf-feature:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(22, 50, 79, 0.14); }
.shelf-feature-cover { width: 92px; flex-shrink: 0; }
.shelf-feature-cover img,
.shelf-feature-cover .review-cover-gen { width: 100%; height: 128px; object-fit: cover; border-radius: 9px; }
.shelf-feature-info { display: flex; flex-direction: column; min-width: 0; padding: 2px 0; }
.shelf-feature-title { font-size: 16px; font-weight: 700; }
.shelf-feature-meta { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 0; }
.shelf-feature-meta em { font-style: normal; font-size: 13px; color: var(--qd-muted); }
.shelf-feature-score { font-size: 20px; font-weight: 700; color: var(--shelf-gold-deep); font-variant-numeric: tabular-nums; }
.shelf-feature-note {
  margin: 9px 0 0; font-size: 13px; line-height: 1.65; color: var(--qd-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 海报墙（v0.64.1：3 列超大封面信息卡，封面 3:4，列数后台可调） ---------- */
.shelf-wall { display: grid; grid-template-columns: repeat(var(--shelf-cols, 3), 1fr); gap: 24px 16px; }
.shelf-card { display: block; text-decoration: none; color: inherit; min-width: 0; }
.shelf-card-cover { display: block; position: relative; border-radius: 10px; overflow: hidden; background: var(--qd-accent-soft, #eef1f5); }
.shelf-card-cover img,
.shelf-card-cover .review-cover-gen {
  display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform 0.25s var(--qd-ease);
}
.shelf-card:hover .shelf-card-cover img { transform: scale(1.045); }
.shelf-card-title {
  display: block; margin: 10px 0 0; font-size: 14.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shelf-card-meta { display: flex; align-items: baseline; gap: 9px; margin: 5px 0 0; font-size: 12px; color: var(--qd-muted); }
.shelf-card-score { font-style: normal; font-weight: 700; color: var(--shelf-gold-deep); font-variant-numeric: tabular-nums; }
.shelf-card-note {
  display: block; margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--qd-text-2, #71717a);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- v0.64.0 轻头部：一行式（标题 + 副题 + 右统计） ---------- */
.shelf-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin: 6px 0 4px; padding: 14px 0 12px;
  border-bottom: 1px solid var(--qd-border, #e4e4e7);
}
.shelf-head-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: 0.02em; }
.shelf-head-sub { font-size: 12.5px; color: var(--qd-muted); }
.shelf-head-r { margin-left: auto; font-size: 12.5px; color: var(--qd-muted); white-space: nowrap; }
.shelf-head-r b { color: var(--qd-text, #18181b); font-size: 14px; }

/* ---------- v0.64.0 筛选行：左 Tab + 右下拉（<details> 零 JS） ---------- */
.shelf-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; flex-wrap: wrap; }
.shelf-bar .shelf-tabs { margin: 0; }
.shelf-filters { display: flex; align-items: center; gap: 8px; width: 100%; margin: -6px 0 0; }
.shelf-filter { position: relative; }
.shelf-filter summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 99px;
  background: var(--qd-accent-soft, #f4f4f5);
  /* v0.66.0：加深加大加粗，治桌面端「字体不清晰」 */
  color: var(--qd-text, #18181b); font-size: 13px; font-weight: 500;
  transition: background 0.15s var(--qd-ease);
}
.shelf-filter summary::-webkit-details-marker { display: none; }
.shelf-filter summary::after {
  content: ""; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: 0.55;
}
.shelf-filter summary:hover { background: var(--qd-border, #e4e4e7); }
.shelf-filter[open] summary { background: var(--qd-accent); color: #fff; }
.shelf-filter-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 128px; padding: 6px;
  background: var(--qd-surface, #fff);
  border: 1px solid var(--qd-border, #e4e4e7); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}
.shelf-filter-menu a {
  display: block; padding: 7px 10px; border-radius: 6px;
  font-size: 13px; color: var(--qd-text, #18181b); text-decoration: none;
}
.shelf-filter-menu a:hover { background: var(--qd-accent-soft, #f4f4f5); color: var(--qd-accent); }
.shelf-filter-menu a.on { color: var(--qd-accent); font-weight: 600; background: var(--qd-accent-soft, #eef4ff); }

/* ---------- v0.66.0：分类内页退役，shelf-term-* / shelf-chips 内页专用样式随之移除 ---------- */

/* ---------- 书架版降级 ---------- */
@media (max-width: 1099px) {
  .shelf-hero { padding: 26px 28px; }
  .shelf-wall { grid-template-columns: repeat(3, 1fr); }
  .shelf-stack { display: none; }
}
@media (max-width: 767px) {
  .shelf-hero { padding: 22px 20px; border-radius: 12px; }
  .shelf-hero-title { font-size: 23px; }
  .shelf-stats { gap: 20px; margin-top: 16px; }
  .shelf-stat b { font-size: 20px; }
  .shelf-tabs-note { display: none; }
  .shelf-featured { grid-template-columns: 1fr; }
  .shelf-wall { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .shelf-card-title { font-size: 13px; }
  .shelf-head { gap: 10px; padding: 10px 0 10px; }
  .shelf-head-title { font-size: 18px; }
  .shelf-head-r { width: 100%; margin-left: 0; }
  .shelf-bar .shelf-tab { padding: 9px 14px; min-height: 36px; font-size: 12.5px; }
  .shelf-bar .shelf-tab em { font-size: 11.5px; }
  /* v0.64.4：筛选胶囊手机端白底描边加大触控区，解决浅色底发虚不清晰 */
  .shelf-filter summary {
    padding: 9px 14px; min-height: 36px; font-size: 13px;
    background: var(--qd-surface, #fff); border: 1px solid var(--qd-border, #e4e4e7);
  }
  .shelf-filter-menu a { padding: 10px 12px; font-size: 13px; }
}

/* ---------- 封面状态角标（v0.56.0：已读/在看/想看；v0.64.0 移至封面左上） ---------- */
.shelf-card-cover,
.shelf-feature-cover { position: relative; }
.shelf-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-style: normal; font-size: 11px; line-height: 1; font-weight: 600;
  padding: 4px 8px; border-radius: 99px; letter-spacing: 0.02em;
  color: #fff; background: rgba(40, 46, 54, 0.78);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.shelf-badge-done { background: rgba(31, 100, 62, 0.82); }
.shelf-badge-doing { background: rgba(24, 82, 128, 0.82); }
.shelf-badge-wish { background: rgba(122, 78, 22, 0.82); }

/* ============================================================
   21. 相册沉浸页（v0.30.0，jk.rs 式：幻灯片 + 瀑布网格）
   独立模板，无导航无页脚
   ============================================================ */
body.alx-immersive {
  background: var(--qd-bg, #fafafa);
  margin: 0;
}
.alx-top {
  max-width: 1280px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.alx-back {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--qd-text); font-size: 14px; font-weight: 600; text-decoration: none;
}
.alx-back svg { transition: transform 0.15s var(--qd-ease); }
.alx-back:hover svg { transform: translateX(-3px); }
.alx-back:hover { color: var(--qd-accent); }
.alx-count { font-size: 12px; color: var(--qd-muted); }
.alx-top .alx-count { margin-left: auto; }
.alx-rand {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 12px; padding: 5px 12px;
  border: 1px solid var(--qd-border); border-radius: 99px;
  color: var(--qd-text-2); font-size: 12px; text-decoration: none;
  transition: all 0.15s var(--qd-ease);
}
.alx-rand:hover { border-color: var(--qd-accent); color: var(--qd-accent); }
.alx-filter { padding: 2px 0 8px; }
.alx-filter .filter-tabs { padding: 0; gap: 6px; }
.alx-filter .filter-tab { padding: 5px 14px; font-size: 13px; }

.alx-main { max-width: 1280px; margin: 0 auto; padding: 4px 24px 64px; }

/* ---------- 幻灯片 ---------- */
.alx-slider {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 3 / 1; background: var(--qd-accent-soft, #e9edf2);
  margin: 0 0 26px;
}
.alx-track { display: flex; height: 100%; transition: transform 0.45s var(--qd-ease); }
.alx-slide { flex: 0 0 100%; display: block; }
.alx-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alx-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(15, 18, 24, 0.38); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); opacity: 0;
  transition: opacity 0.18s var(--qd-ease), background 0.18s var(--qd-ease);
}
.alx-prev { left: 14px; }
.alx-next { right: 14px; }
.alx-slider:hover .alx-arrow { opacity: 1; }
.alx-arrow:hover { background: rgba(15, 18, 24, 0.6); }
@media (hover: none) {
  .alx-arrow { opacity: 0.85; }
}
.alx-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 7px;
}
.alx-dots i {
  width: 7px; height: 7px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.45); transition: all 0.2s var(--qd-ease);
}
.alx-dots i.on { width: 20px; background: #fff; }

/* ---------- 瀑布网格（CSS columns 瀑布流） ---------- */
.alx-grid {
  list-style: none; margin: 0; padding: 0;
  columns: 4; column-gap: 14px;
}
.alx-card { break-inside: avoid; margin: 0 0 14px; }
.alx-card > a {
  position: relative; display: block; border-radius: 12px; overflow: hidden;
  isolation: isolate;
}
.alx-media img, .alx-media .alx-gen { width: 100%; display: block; }
.alx-media img { transition: transform 0.3s var(--qd-ease); }
.alx-card:hover .alx-media img { transform: scale(1.04); }
.alx-media .alx-gen {
  aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center;
}
.alx-media .alx-gen b { color: rgba(255, 255, 255, 0.85); font-size: 34px; font-weight: 700; }
.alx-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(9, 11, 15, 0.74));
}
.alx-cap {
  position: absolute; left: 13px; right: 13px; bottom: 11px;
  color: #fff; z-index: 1;
}
.alx-cap strong {
  display: block; font-size: 15px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.alx-meta { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 11px; opacity: 0.94; }
.alx-meta em {
  font-style: normal; padding: 2px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.22); backdrop-filter: blur(3px);
}
.alx-meta time { margin-left: auto; font-variant-numeric: tabular-nums; }

.alx-pager { margin-top: 28px; text-align: center; }
.alx-empty { text-align: center; color: var(--qd-muted); padding: 60px 0; }

/* ---------- 沉浸页降级 ---------- */
@media (max-width: 1099px) {
  .alx-grid { columns: 3; }
}
@media (max-width: 767px) {
  .alx-top { padding: 14px 16px; }
  .alx-main { padding: 0 16px 48px; }
  .alx-slider { aspect-ratio: 2 / 1; border-radius: 10px; margin-bottom: 18px; }
  .alx-grid { columns: 2; column-gap: 10px; }
  .alx-card { margin-bottom: 10px; }
  .alx-card > a { border-radius: 9px; }
  .alx-cap strong { font-size: 13px; }
  .alx-meta { font-size: 10px; gap: 6px; }
}

/* ===== 20. 文章模块统一列表（v0.31.0）：横幅卡 + 四种封面布局 + 侧栏新活页 ===== */

/* ---------- 模块横幅卡 ---------- */
.qd-banner {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--qd-radius); margin: 28px 0 22px; padding: 30px 28px;
  background: var(--qd-accent); /* 旧浏览器回退 */
  background: linear-gradient(120deg, color-mix(in srgb, var(--qd-accent) 55%, #101a4d), var(--qd-accent)); color: #fff;
}
.qd-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.qd-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.55));
}
.qd-banner-title { margin: 0; font-size: 1.6rem; font-weight: 700; color: #fff; }
.qd-banner-desc { margin: 6px 0 0; font-size: 0.92rem; line-height: 1.7; color: rgba(255, 255, 255, 0.85); max-width: 46em; }
.qd-banner-count {
  display: inline-block; margin-top: 10px; padding: 2px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); font-size: var(--qd-fs-xs); color: #fff;
}

/* ---------- 三列卡片（默认） ---------- */
.qd-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; padding: 0 0 6px; }
.qd-post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--qd-surface, #fff); border: 1px solid var(--qd-border); border-radius: var(--qd-radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.qd-post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10); }
.qd-card-cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--qd-border); }
.qd-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.qd-post-card:hover .qd-card-cover img { transform: scale(1.04); }
.qd-cover-gen {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  background: linear-gradient(135deg, hsl(var(--h, 220) 62% 46%), hsl(calc(var(--h, 220) + 40) 62% 60%));
}
.qd-cover-gen span { color: rgba(255, 255, 255, 0.9); font-size: 2rem; font-weight: 700; }
.qd-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 15px; }
.qd-card-title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.5; }
.qd-card-title a { color: var(--qd-text); }
.qd-card-title a:hover { color: var(--qd-accent); }
.qd-card-excerpt {
  margin: 0; font-size: 0.88rem; line-height: 1.7; color: var(--qd-text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.qd-card-meta {
  margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px;
  font-size: var(--qd-fs-xs); color: var(--qd-muted);
}
.qd-card-cat {
  color: var(--qd-accent); background: rgba(37, 99, 235, 0.10);
  padding: 1px 9px; border-radius: 999px; font-size: var(--qd-fs-xs);
}
.qd-card-cat:hover { background: rgba(37, 99, 235, 0.18); color: var(--qd-accent); }
.qd-card-cm { white-space: nowrap; }

/* ---------- 行式列表（左图右文） ---------- */
.qd-posts-list { display: flex; flex-direction: column; padding: 4px 0 6px; }
.qd-post-row {
  display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--qd-border);
}
.qd-post-row:first-child { padding-top: 8px; }
.qd-post-row .qd-card-cover { border-radius: var(--qd-radius); }
.qd-post-row .qd-card-cover img { transition: none; }
.qd-row-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qd-row-body h2 { margin: 0; font-size: 1.08rem; }
.qd-row-body .qd-card-meta { margin-top: auto; }

/* ---------- 杂志式（首条特写 + 两列网格） ---------- */
.qd-mag-feature { display: grid; grid-template-columns: 1.4fr minmax(0, 1fr); }
.qd-mag-feature .qd-card-cover { aspect-ratio: auto; height: 100%; min-height: 250px; }
.qd-mag-feature .qd-card-body { padding: 22px 26px; justify-content: center; }
.qd-mag-feature .qd-card-title { font-size: 1.22rem; }
.qd-mag-feature .qd-card-excerpt { -webkit-line-clamp: 3; }
.qd-mag-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

/* ---------- 紧凑列表（无图纯文字） ---------- */
.qd-posts-compact { list-style: none; margin: 0; padding: 4px 0 6px; }
.qd-posts-compact li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px dashed var(--qd-border);
}
.qd-compact-title {
  color: var(--qd-text); font-weight: 500; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qd-compact-title:hover { color: var(--qd-accent); }
.qd-compact-meta { display: flex; gap: 12px; color: var(--qd-muted); font-size: var(--qd-fs-xs); white-space: nowrap; }

/* ---------- 文章单页（卡片语言） ---------- */
.post-single {
  background: var(--qd-surface, #fff); border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius); padding: 26px 30px 22px;
}
.post-crumb { margin: 0 0 16px; font-size: var(--qd-fs-sm); color: var(--qd-muted); }
.post-crumb a { color: var(--qd-muted); }
.post-crumb a:hover { color: var(--qd-accent); }
.post-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.post-head h1 { margin: 0 0 12px; font-size: 1.55rem; line-height: 1.4; font-weight: 700; color: var(--qd-text); }
.post-feat { margin: 6px 0 0; }
.post-feat img { width: 100%; display: block; border-radius: calc(var(--qd-radius) - 4px); }
.post-entry { margin-top: 6px; }
.post-foot { border-top: 1px solid var(--qd-border); margin-top: 28px; padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.post-solo-wrap { max-width: 860px; }

/* ---------- 侧栏新活页：问候一言卡 ---------- */
.side-greet-img {
  position: relative; overflow: hidden; border-radius: calc(var(--qd-radius) - 4px);
  aspect-ratio: 16 / 7; margin-bottom: 10px;
  background: var(--qd-accent); /* 旧浏览器回退 */
  background: linear-gradient(120deg, color-mix(in srgb, var(--qd-accent) 55%, #101a4d), var(--qd-accent));
}
.side-greet-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-greet-cr {
  position: absolute; left: 8px; right: 8px; bottom: 6px;
  color: rgba(255, 255, 255, 0.75); font-size: 11px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.side-greet-hi { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.side-greet-hi b { font-size: 1.05rem; color: var(--qd-text); }
.side-greet-hi span { color: var(--qd-muted); font-size: var(--qd-fs-xs); white-space: nowrap; }
.side-greet-say { margin: 8px 0 0; color: var(--qd-text-2); font-size: 0.88rem; line-height: 1.7; }

/* ---------- 侧栏新活页：热门文章榜（数字徽章） ---------- */
.qd-side-rank { list-style: none; margin: 0; padding: 0; }
.qd-side-rank li {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 0; border-bottom: 1px dashed var(--qd-border);
}
.qd-side-rank li:last-child { border-bottom: none; }
.qd-side-rank li a {
  flex: 1; min-width: 0; color: var(--qd-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qd-side-rank li a:hover { color: var(--qd-accent); }
.qd-side-rank .rank {
  flex: none; width: 20px; height: 20px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; font-style: normal; color: #fff; background: #94a3b8;
}
.qd-side-rank .r1 { background: #ef4444; }
.qd-side-rank .r2 { background: #f97316; }
.qd-side-rank .r3 { background: #eab308; }

/* ---------- 侧栏新活页：最新评论 ---------- */
.qd-side-cms { list-style: none; margin: 0; padding: 0; }
.qd-side-cms li { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--qd-border); }
.qd-side-cms li:last-child { border-bottom: none; }
.qd-cm-ava { border-radius: 50%; flex: none; }
.qd-cm-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qd-cm-a { font-size: var(--qd-fs-xs); color: var(--qd-muted); }
.qd-cm-t { font-size: 0.88rem; color: var(--qd-text); line-height: 1.5; }
.qd-cm-t:hover { color: var(--qd-accent); }

/* ---------- 侧栏内的文章目录（复用 doc-toc 列表样式） ---------- */
.qd-side .doc-toc { position: static; margin: 0; }
.qd-side .doc-toc h4 { display: none; }

/* ---------- 平板（768-1099px） ---------- */
@media (max-width: 1099px) and (min-width: 768px) {
  .qd-post-row { grid-template-columns: 190px minmax(0, 1fr); }
  .qd-banner { padding: 26px 22px; }
}

/* ---------- 手机（<768px） ---------- */
@media (max-width: 767px) {
  .qd-banner { margin-top: 20px; padding: 22px 18px; }
  .qd-banner-title { font-size: 1.35rem; }
  .qd-post-row { grid-template-columns: 1fr; gap: 10px; }
  .qd-post-row .qd-card-cover { aspect-ratio: 16 / 9; }
  .qd-mag-feature { grid-template-columns: 1fr; }
  .qd-mag-feature .qd-card-cover { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .qd-mag-feature .qd-card-body { padding: 16px 18px; }
  .post-single { padding: 20px 16px 18px; }
  .post-head h1 { font-size: 1.3rem; }

  /* 手机端侧栏保留：站主名片 + 问候一言卡（补充 §19） */
  .qd-w-greeting { display: block; }
}

/* ============================================================
   21. 动态模块 v2.2（朋友圈）+ 手机顶栏 + 底栏五格 + 发布抽屉
   ============================================================ */

/* ---------- 手机顶栏（≤768 替代站点头部） ---------- */
/* ---------- 手机顶栏 v0.65.0：首页品牌形态 + 内页纯标题 ---------- */
.topbar-m { display: none; }

@media (max-width: 767px) {
  .site-header { display: none; }
  .topbar-m {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 120;
    background: var(--qd-surface);
    border-bottom: 1px solid var(--qd-border);
    padding: 8px 12px;
    padding-top: calc(8px + var(--qd-sat));
  }
  .topbar-m-title {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* 首页形态：logo + 站名 */
  .tb-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--qd-text);
    text-decoration: none;
  }
  .tb-logo { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; }
  .tb-brand b { font-size: 17px; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; }
  /* 右侧三图标：汉堡 / 搜索 / 深浅色（44px 触控、无方块底） */
  .tb-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
  .tb-btn {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; background: transparent;
    color: var(--qd-text);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
  }
  .tb-btn:active { background: var(--qd-accent-soft); }
  .tb-btn svg { width: 22px; height: 22px; display: block; }
  /* 单图标切换：亮色显示月亮（点=切暗），暗色显示太阳（点=切亮） */
  .topbar-m .theme-toggle .icon-sun { display: none; }
  .topbar-m .theme-toggle .icon-moon { display: inline-flex; align-items: center; justify-content: center; }
  [data-theme="dark"] .topbar-m .theme-toggle .icon-sun { display: inline-flex; align-items: center; justify-content: center; }
  [data-theme="dark"] .topbar-m .theme-toggle .icon-moon { display: none; }
}

/* ---------- 导航抽屉 v0.65.0（手机首页顶栏汉堡唤起） ---------- */
.qd-navdrawer { position: fixed; inset: 0; z-index: 200; }
.qd-navdrawer-mask {
  position: absolute; inset: 0;
  background: rgba(15, 18, 22, 0.45);
  opacity: 0;
  transition: opacity 0.25s var(--qd-ease);
}
.qd-navdrawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(78vw, 320px);
  background: var(--qd-surface);
  border-left: 1px solid var(--qd-border);
  transform: translateX(100%);
  transition: transform 0.26s var(--qd-ease);
  display: flex; flex-direction: column;
  padding-top: var(--qd-sat);
  box-shadow: -8px 0 30px rgba(15, 18, 22, 0.12);
}
.qd-navdrawer.open .qd-navdrawer-mask { opacity: 1; }
.qd-navdrawer.open .qd-navdrawer-panel { transform: none; }
.qd-nd-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--qd-border);
}
.qd-nd-logo { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; }
.qd-nd-head b { font-size: 16px; font-weight: 800; }
.qd-nd-x {
  margin-left: auto;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  color: var(--qd-muted);
  border-radius: 10px; cursor: pointer;
}
.qd-nd-x:active { background: var(--qd-accent-soft); }
.qd-nd-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.qd-nd-nav a {
  display: flex; align-items: center; gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px; font-weight: 600;
  color: var(--qd-text);
  text-decoration: none;
}
.qd-nd-nav a:hover { background: var(--qd-accent-soft); }
.qd-nd-nav a.on { color: var(--qd-accent); background: var(--qd-accent-soft); }
.qd-nd-foot { border-top: 1px solid var(--qd-border); padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.qd-nd-foot a {
  display: flex; align-items: center; gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px; font-weight: 600;
  color: var(--qd-accent);
  text-decoration: none;
}
.qd-nd-foot a:hover { background: var(--qd-accent-soft); }

/* ---------- 底部五格（≤1024） ---------- */
.qd-tabbar { display: none; }

@media (max-width: 1024px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .qd-tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 150;
    display: flex;
    background: var(--qd-surface);
    border-top: 1px solid var(--qd-border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .qd-tab {
    flex: 1;
    text-align: center;
    font-size: 10px;
    color: var(--qd-muted);
    text-decoration: none;
    border: none; background: none;
    cursor: pointer;
    font-family: inherit;
  }
  .qd-tab .ti { display: block; font-size: 20px; line-height: 1.3; font-style: normal; position: relative; }
  .qd-tab.on { color: var(--qd-accent); font-weight: 700; }
  .qd-tab-plus .ti {
    width: 44px; height: 44px; line-height: 44px;
    margin: -10px auto 0;
    background: var(--qd-accent); /* 旧浏览器回退 */
    background: linear-gradient(135deg, var(--qd-accent), color-mix(in srgb, var(--qd-accent) 55%, #8b5cf6));
    color: #fff; border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--qd-accent) 40%, transparent);
  }
  .qd-tab-dot {
    position: absolute; top: -1px; right: 6px;
    width: 8px; height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--qd-surface);
  }
  #backtop { display: none; }
}

/* ---------- hidden 兜底：防止 display:flex/grid 覆盖 hidden 属性 ---------- */
[hidden] { display: none !important; }

/* ---------- 搜索浮层 ---------- */
.qd-search-ov {
  position: fixed; inset: 0;
  z-index: 180;
  background: rgba(10, 12, 24, 0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 18vh 20px 0;
}
.qd-search-ov form {
  display: flex; gap: 8px;
  width: 100%; max-width: 460px;
  background: var(--qd-surface);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--qd-shadow);
}
.qd-search-ov input[type="search"] {
  flex: 1; border: 1px solid var(--qd-border); border-radius: 10px;
  padding: 10px 14px; font-size: 15px; background: var(--qd-bg); color: var(--qd-text);
}
.qd-search-ov button[type="submit"] {
  border: none; border-radius: 10px; padding: 0 18px;
  background: var(--qd-accent); color: #fff; font-weight: 700; cursor: pointer;
}
.qd-search-close {
  border: none; background: var(--qd-bg); color: var(--qd-text-2);
  border-radius: 10px; width: 40px; cursor: pointer;
}

/* ---------- 动态页布局：1060 = 680 流 + 300 右栏 ---------- */
.qd-moments { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.qd-moments-in { display: grid; grid-template-columns: minmax(0, 680px) 300px; gap: 26px; justify-content: center; padding: 22px 0 40px; }
.qd-moments-side { width: 300px; }

@media (max-width: 1024px) {
  .qd-moments-in { grid-template-columns: 1fr; padding-top: 16px; }
  .qd-moments-side { display: none; }
}

/* ---------- 回执通知 ---------- */
.qd-notice { border-radius: 12px; padding: 11px 16px; font-size: 14px; margin-bottom: 14px; }
.qd-notice.ok { background: rgba(22, 163, 74, 0.1); color: #15803d; border: 1px solid rgba(22, 163, 74, 0.25); }
.qd-notice.err { background: rgba(220, 38, 38, 0.08); color: #b91c1c; border: 1px solid rgba(220, 38, 38, 0.25); }
[data-theme="dark"] .qd-notice.ok { color: #86efac; }
[data-theme="dark"] .qd-notice.err { color: #fca5a5; }

/* ---------- Tab 行 ---------- */
.qd-mtab { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.qd-mtab a {
  padding: 6px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  color: var(--qd-text-2); background: var(--qd-surface);
  border: 1px solid var(--qd-border);
}
.qd-mtab a.on { background: var(--qd-accent); border-color: var(--qd-accent); color: #fff; }
.qd-mtab-view { margin-left: auto; font-size: 12px; color: var(--qd-muted); }

/* ---------- 发布器（桌面细条 + 抽屉共用） ---------- */
.qd-pub {
  background: var(--qd-surface);
  border: 1px solid var(--qd-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.qd-pub-title {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px dashed var(--qd-border);
  padding-bottom: 8px; margin-bottom: 10px;
}
.qd-pub-title input {
  flex: 1; border: none; outline: none; background: none;
  font-size: 14px; color: var(--qd-text);
}
.qd-pub-txt {
  width: 100%; border: none; outline: none; resize: vertical;
  background: none; color: var(--qd-text);
  font: inherit; font-size: 14.5px; line-height: 1.8;
  white-space: pre-line; min-height: 76px;
}
.qd-pub-hint { font-size: 11.5px; color: var(--qd-muted); margin: 6px 0 0; }
.qd-pub-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.qd-pub-up {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px dashed var(--qd-border); border-radius: 10px;
  padding: 7px 14px; font-size: 13px; color: var(--qd-text-2);
  cursor: pointer;
}
.qd-pub-up:hover { border-color: var(--qd-accent); color: var(--qd-accent); }
.moment-img-name { font-size: 12px; color: var(--qd-muted); word-break: break-all; }
.qd-pub-vis { display: flex; gap: 6px; margin-top: 12px; background: var(--qd-bg); border-radius: 999px; padding: 3px; max-width: 340px; }
.qd-vis-opt input { display: none; }
.qd-vis-opt span {
  display: block; text-align: center;
  padding: 6px 0; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--qd-text-2);
  cursor: pointer; white-space: nowrap;
}
.qd-vis-opt.on span { background: var(--qd-surface); color: var(--qd-accent); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.qd-pub-foot { display: flex; align-items: center; margin-top: 12px; }
.qd-pub-count { font-size: 11.5px; color: var(--qd-muted); }
.qd-pub-send {
  margin-left: auto;
  border: none; border-radius: 999px; cursor: pointer;
  background: var(--qd-accent); /* 旧浏览器回退 */
  background: linear-gradient(135deg, var(--qd-accent), color-mix(in srgb, var(--qd-accent) 55%, #8b5cf6));
  color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 30px;
}
.qd-pub-send:active { transform: scale(0.97); }

/* ---------- 信息流 ---------- */
.qd-mfeed { display: flex; flex-direction: column; gap: 14px; }
.qd-moment {
  background: var(--qd-surface);
  border: 1px solid var(--qd-border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.qd-moment-head { display: flex; align-items: flex-start; gap: 11px; }
.qd-moment-avatar, .qd-moment-dava { border-radius: 50%; display: block; }
.qd-moment-hmeta { flex: 1; min-width: 0; }
.qd-moment-name { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qd-moment-name a { color: var(--qd-text); text-decoration: none; }
.qd-moment-sub { font-size: 11.5px; color: var(--qd-muted); margin-top: 2px; }
.qd-ip { color: var(--qd-muted); }
.qd-vis-lock { font-size: 11px; color: var(--qd-muted); }

/* 徽章 */
.qd-badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700;
  padding: 1px 8px; border-radius: 999px;
  color: #fff; white-space: nowrap;
}
.qd-badge-master { background: linear-gradient(135deg, #f7b733, #e8890c); }
.qd-badge-elder { background: linear-gradient(135deg, #64748b, #3b82f6); }
.qd-badge-verified { background: #06b6d4; }
.qd-badge-title { background: #8b5cf6; font-weight: 600; }
.qd-badge-lv { background: var(--qd-border); color: var(--qd-text-2); font-weight: 600; }

/* 连发折叠线 */
.qd-moment-foldline {
  display: flex; align-items: center; gap: 9px;
  margin: -4px 0 10px;
  padding: 8px 0 0;
}
.qd-moment-dotava { display: inline-flex; }
.qd-moment-foldtxt { font-size: 12px; color: var(--qd-muted); }
.qd-moment-foldline + .qd-moment-title, .qd-moment-foldline ~ .qd-moment-content { margin-top: 6px; }

/* 标题与正文 */
.qd-moment-title { font-size: 16px; margin: 10px 0 0; }
.qd-moment-title a { color: var(--qd-text); text-decoration: none; }
.qd-moment-content { font-size: 14.5px; line-height: 1.85; margin-top: 9px; color: var(--qd-text); white-space: pre-line; word-break: break-word; }
.qd-moment.is-long .qd-moment-content.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: var(--qd-fold-lines, 4);
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}
.qd-moment-more { margin-top: 7px; }
.moment-more-btn {
  display: inline-block;
  background: var(--qd-accent-soft);
  color: var(--qd-accent);
  font-weight: 700; font-size: 13px;
  padding: 6px 14px; border-radius: 999px;
  text-decoration: none;
}
.moment-more-btn:active { transform: scale(0.97); }

/* 九宫格 */
.qd-mgrid { display: grid; gap: 6px; margin: 11px 0 0; }
.qd-mgrid.g2 { grid-template-columns: 1fr 1fr; }
.qd-mgrid.g3 { grid-template-columns: repeat(3, 1fr); }
.qd-mgrid.g1:not(.one) img, .qd-mgrid.g2 img, .qd-mgrid.g3 img {
  width: 100%; height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  cursor: zoom-in;
}
.qd-mgrid.one { display: flex; justify-content: flex-start; }
.qd-mgrid.one img { max-width: 100%; max-height: 420px; border-radius: 12px; display: block; cursor: zoom-in; }

/* 视频格：多格方形裁切填满，单视频大格完整显示 */
.qd-mgrid.g1:not(.one) video, .qd-mgrid.g2 video, .qd-mgrid.g3 video {
  width: 100%; height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #000;
}
.qd-mgrid.one video { width: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; display: block; background: #000; }

/* 互动行 */
.qd-moment-acts { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.qd-moment-info { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 12px; color: var(--qd-muted); }
.qd-likedby { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.qd-mini-avas { display: inline-flex; }
.qd-mini-ava { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--qd-surface); margin-left: -5px; display: block; }
.qd-mini-ava:first-child { margin-left: 0; }
.qd-cmtlink a { color: var(--qd-muted); text-decoration: none; }
.qd-cmtlink a:hover { color: var(--qd-accent); }

/* ··· 菜单 */
.qd-moment-menu { position: relative; }
.qd-moment-menu > summary {
  list-style: none;
  width: 34px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--qd-bg); color: var(--qd-text-2);
  border-radius: 8px;
  font-weight: 800; letter-spacing: 1px;
  cursor: pointer; font-size: 13px;
}
.qd-moment-menu > summary::-webkit-details-marker { display: none; }
.qd-moment-menup {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--qd-surface);
  border: 1px solid var(--qd-border);
  border-radius: 12px;
  box-shadow: var(--qd-shadow);
  min-width: 140px;
  padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  z-index: 30;
}
.qd-moment-menup > * {
  text-align: left; border: none; background: none;
  padding: 8px 12px; border-radius: 8px;
  font-size: 13px; color: var(--qd-text);
  cursor: pointer; text-decoration: none; font-family: inherit;
}
.qd-moment-menup > *:hover { background: var(--qd-accent-soft); }
.qd-moment-menup .moment-del { color: #dc2626; }

/* 空态 */
.qd-mempty { text-align: center; padding: 60px 20px; }
.qd-mempty-big { font-size: 17px; font-weight: 700; color: var(--qd-text-2); }
.qd-mempty-sub { font-size: 13px; color: var(--qd-muted); margin-top: 8px; }
.qd-mempty-sub a { color: var(--qd-accent); }

/* ---------- 详情页 ---------- */
.qd-msingle { max-width: 660px; margin: 0 auto; padding: 26px 20px 60px; }
.qd-moment.is-single { padding: 22px 24px; border-radius: 16px; }
.qd-moment.is-single .qd-moment-avatar { width: 44px; height: 44px; }
.qd-msingle-title { font-size: 21px; line-height: 1.5; margin: 14px 0 0; color: var(--qd-text); }
.qd-msingle-body { font-size: 16px; line-height: 1.9; }
.qd-msingle-cmts { max-width: 660px; margin: 16px auto 0; }
.qd-cmtbar {
  display: none;
}

@media (max-width: 767px) {
  .qd-msingle { padding: 16px 14px 120px; }
  .qd-moment.is-single { padding: 18px 16px; }
  .qd-msingle-body { font-size: 16px; line-height: 1.9; }
  .qd-cmtbar {
    display: flex; align-items: center; gap: 10px;
    position: fixed;
    left: 10px; right: 10px;
    bottom: calc(62px + env(safe-area-inset-bottom) + 8px);
    z-index: 140;
    border: 1px solid var(--qd-border);
    background: var(--qd-surface);
    border-radius: 999px;
    padding: 7px 8px 7px 18px;
    box-shadow: var(--qd-shadow);
    cursor: pointer;
    font-family: inherit;
  }
  .qd-cmtbar span { flex: 1; text-align: left; font-size: 13px; color: var(--qd-muted); }
  .qd-cmtbar b {
    background: var(--qd-accent); /* 旧浏览器回退 */
    background: linear-gradient(135deg, var(--qd-accent), color-mix(in srgb, var(--qd-accent) 55%, #8b5cf6));
    color: #fff; font-size: 12px; font-weight: 700;
    border-radius: 999px; padding: 6px 14px;
  }
}

/* ---------- 发布抽屉 ---------- */
.qd-drawer { position: fixed; inset: 0; z-index: 200; }
.qd-drawer-mask { position: absolute; inset: 0; background: rgba(10, 12, 24, 0.5); opacity: 0; transition: opacity 0.25s; }
.qd-drawer.open .qd-drawer-mask { opacity: 1; }
.qd-drawer-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--qd-surface);
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.28s ease;
  max-height: 88vh; overflow-y: auto;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(10, 12, 24, 0.25);
}
.qd-drawer.open .qd-drawer-panel { transform: translateY(0); }
.qd-drawer-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--qd-border); margin: 0 auto 10px; }
.qd-drawer-cap { text-align: center; font-size: 12px; color: var(--qd-muted); margin-bottom: 10px; }
.qd-drawer .qd-pub { border: none; padding: 0; margin: 0; }
@media (min-width: 769px) {
  .qd-drawer-panel {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: 560px; max-width: calc(100vw - 40px);
    transform: translate(-50%, -46%);
    opacity: 0;
    border-radius: 16px;
    padding: 20px 22px;
  }
  .qd-drawer.open .qd-drawer-panel { transform: translate(-50%, -50%); opacity: 1; }
  .qd-drawer-grab { display: none; }
}

/* ---------- 侧栏：好友卡 + 热门动态 ---------- */
.qd-side-friend { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.qd-sf-main { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; text-decoration: none; color: var(--qd-text); }
.qd-sf-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qd-sf-ava { border-radius: 50%; flex-shrink: 0; }
.qd-side-hot { list-style: none; margin: 0; padding: 0; }
.qd-side-hot li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--qd-border); }
.qd-side-hot li:last-child { border-bottom: none; }
.qd-side-hot .hot-rank {
  flex-shrink: 0;
  width: 18px; height: 18px; line-height: 18px;
  border-radius: 5px; text-align: center;
  font-size: 11px; font-weight: 700;
  background: var(--qd-border); color: var(--qd-text-2);
}
.qd-side-hot .hot-rank.r1 { background: #ef4444; color: #fff; }
.qd-side-hot .hot-rank.r2 { background: #f97316; color: #fff; }
.qd-side-hot .hot-rank.r3 { background: #eab308; color: #fff; }
.qd-side-hot a { flex: 1; min-width: 0; color: var(--qd-text); text-decoration: none; }
.qd-side-hot i { font-style: normal; font-size: 11px; color: var(--qd-muted); flex-shrink: 0; }

/* ---------- 电脑端无底栏时的发布细条占位 ---------- */
@media (min-width: 1025px) {
  .qd-tabbar { display: none; }
}


/* ==========================================================================
   §22 个人主页套装 v2.2（横幅门面 / 按天聚合 / 七行地盘）
   ========================================================================== */

/* ---------- 背景横幅（个人主页 + 用户中心共用） ---------- */
.qd-cover {
  position: relative;
  min-height: 190px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center 35%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.qd-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.08) 45%, rgba(0, 0, 0, 0.46) 100%);
  pointer-events: none;
}
.qd-cover-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 18px;
  width: 100%;
  color: #fff;
}
.qd-cover .profile-avatar .avatar { border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.qd-cover .profile-name,
.qd-cover .me-hero-name {
  color: #fff;
  margin: 0 0 4px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.qd-cover .profile-desc,
.qd-cover .me-bio { color: rgba(255, 255, 255, 0.88); margin: 0; font-size: var(--qd-fs-sm); max-width: 560px; }
.qd-cover .profile-actions { margin-left: auto; }
.qd-cover .qd-follow-btn { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: rgba(255, 255, 255, 0.12); }
.qd-cover .qd-follow-btn.is-on { background: rgba(255, 255, 255, 0.92); color: #1f2937; border-color: transparent; }
.qd-cover .qd-badge-lv { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* 用户中心横幅内层 */
.me-hero-inner { display: flex; align-items: flex-end; gap: 14px; padding: 18px; position: relative; z-index: 1; }
.me-hero-inner .me-avatar { border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.me-hero-name { font-size: 1.2rem; margin: 0 0 4px; color: #fff; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.me-hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--qd-fs-sm);
}
.me-hero-stats b { font-size: 1.05rem; color: #fff; margin-right: 2px; }
.me-hero-spring { flex: 1; }
.me-hero-edit {
  font-size: var(--qd-fs-xs);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 3px 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
}
.me-hero-edit:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }
.me-hero-edit:active { opacity: 0.6; } /* v0.92.0 触屏按压反馈 */

/* 个人主页：横幅 + 统计行 */
.qd-profile-hero .profile-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0 0;
  margin: 0;
  color: var(--qd-text-2);
  font-size: var(--qd-fs-sm);
}
.qd-profile-hero .profile-stats-row b { color: var(--qd-text); font-size: 1.02rem; }
.qd-profile-hero .profile-edit-link { margin-left: auto; }
.qd-profile-hero .profile-edit-link a { color: var(--qd-accent); text-decoration: none; font-size: var(--qd-fs-xs); border: 1px solid var(--qd-border); border-radius: 999px; padding: 3px 12px; background: var(--qd-surface); }
.qd-profile-hero .profile-edit-link a:hover { border-color: var(--qd-accent); }
.qd-profile-hero { margin-bottom: 8px; }

/* ---------- 用户中心：七行地盘 ---------- */
.me-rows {
  background: var(--qd-surface);
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius);
  margin: 16px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.me-rows .u-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--qd-border);
  color: var(--qd-text);
  text-decoration: none;
  font-size: var(--qd-fs-md);
  transition: background 0.15s var(--qd-ease);
}
.me-rows .u-row:last-child { border-bottom: 0; }
.me-rows .u-row:hover { background: var(--qd-accent-soft); }
.me-rows .u-row .ic2 { font-size: 1.1rem; width: 24px; text-align: center; }
.me-rows .u-row b { font-weight: 600; }
.me-rows .u-row .n { margin-left: auto; color: var(--qd-muted); font-size: var(--qd-fs-sm); }
.me-rows .u-row .n.dot em { color: #ef4444; font-style: normal; font-weight: 600; }
.me-rows .u-row.admin { color: #dc2626; background: rgba(220, 38, 38, 0.04); }
.me-rows .u-row.admin b { color: #dc2626; }
.me-rows .u-row.admin .n { color: rgba(220, 38, 38, 0.7); }
:root[data-theme="dark"] .me-rows .u-row.admin { background: rgba(248, 113, 113, 0.08); color: #f87171; }
:root[data-theme="dark"] .me-rows .u-row.admin b { color: #f87171; }

/* 我的评论列表 */
.me-cmt-list li a { display: block; }
.me-cmt-list .me-like-type { margin-left: auto; flex-shrink: 0; }

/* ---------- 个人主页：动态按天聚合 ---------- */
.author-flow { display: flex; flex-direction: column; gap: 16px; padding: 12px 0 32px; }
.qd-daycard {
  background: var(--qd-surface);
  border: 1px solid var(--qd-border);
  border-radius: 14px;
  overflow: hidden;
}
.qd-daycard-head {
  padding: 11px 16px;
  font-size: var(--qd-fs-sm);
  font-weight: 600;
  color: var(--qd-text-2);
  border-bottom: 1px solid var(--qd-border);
  background: color-mix(in srgb, var(--qd-surface) 60%, transparent);
}
.qd-daycard-body { display: flex; flex-direction: column; }
.qd-moment.is-author {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 16px;
}
.qd-moment.is-author + .qd-moment.is-author { border-top: 1px solid var(--qd-border); }
.qd-moment.is-author .qd-moment-content { font-size: 0.95rem; }

/* 窄屏微调 */
@media (max-width: 640px) {
  .qd-cover { min-height: 168px; border-radius: 12px; }
  .qd-cover-inner, .me-hero-inner { padding: 14px; gap: 12px; }
  .me-hero-stats { padding: 0 14px 12px; gap: 14px; }
  .qd-moment.is-author { padding: 11px 13px; }
}

/* 旧 profile-header 底色在新横幅方案下停用（横幅自带渐变/图） */
.qd-profile-hero { background: transparent; border-bottom: 0; padding: 12px 0 2px; }

/* 大屏（≥1600）容器适当放宽，避免两侧大片空白 */
@media (min-width: 1600px) {
  :root { --qd-container: 1240px; }
}

/* 头像兜底：镜像挂时 onerror 隐藏破图，底色占位仍显示圆形 */
.avatar { background: var(--qd-border); border-radius: 50%; }

/* ==========================================================================
   §23 用户中心弹层面板 v0.35（点击入口行 → 手机抽屉 / 桌面弹窗）
   ========================================================================== */

/* 页面大标题：此前无样式（浏览器默认 h1 裸渲染）。统一为紧凑标题 */
.page-head { padding-top: 22px; }
.page-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--qd-text);
}
/* 手机端顶栏已显示页面标题，页内大标题隐藏（修复「我的」出现两次） */
@media (max-width: 767px) {
  .page-head { display: none; }
}

/* JS 模式下区块藏进弹层；no-js（无 JS）退回旧版长页锚点模式 */
.js .me-panel { display: none; }
.js .qd-modal-body .me-panel { display: block; }

/* 区块小标题右侧的「全部 →」 */
.me-sub-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.me-sub-row .me-sub-more a { font-size: var(--qd-fs-xs); color: var(--qd-accent); text-decoration: none; }
.me-sub-row .me-sub-more a:hover { text-decoration: underline; }

/* ---------- 弹层容器 ---------- */
.qd-modal { position: fixed; inset: 0; z-index: 210; }
.qd-modal-mask {
  position: absolute; inset: 0;
  background: rgba(10, 12, 24, 0.5);
  opacity: 0;
  transition: opacity 0.25s;
}
.qd-modal.open .qd-modal-mask { opacity: 1; }
.qd-modal-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--qd-surface);
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.28s ease;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 30px rgba(10, 12, 24, 0.25);
  padding-bottom: env(safe-area-inset-bottom);
}
.qd-modal.open .qd-modal-panel { transform: translateY(0); }
.qd-modal-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--qd-border); margin: 10px auto 0; flex-shrink: 0; }
.qd-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--qd-border);
  flex-shrink: 0;
}
.qd-modal-title { font-weight: 700; font-size: 1.02rem; color: var(--qd-text); }
.qd-modal-close {
  width: 32px; height: 32px;
  border: none; background: var(--qd-accent-soft);
  color: var(--qd-text-2); border-radius: 50%;
  font-size: 14px; cursor: pointer; line-height: 1;
}
.qd-modal-close:hover { background: var(--qd-border); color: var(--qd-text); }
/* v0.92.0：触屏按压反馈（此前只有 :hover，触屏按了没动静） */
.qd-modal-close { transition: transform 0.12s ease, background 0.15s ease; }
.qd-modal-close:active { transform: scale(0.88); }
.qd-modal-body { overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }

/* 弹层打开时锁背景滚动 */
body.qd-panel-open { overflow: hidden; }

/* 桌面端：居中弹窗 */
@media (min-width: 768px) {
  .qd-modal-panel {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: 640px; max-width: calc(100vw - 48px);
    max-height: min(82vh, 780px);
    transform: translate(-50%, -46%);
    opacity: 0;
    border-radius: 16px;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .qd-modal.open .qd-modal-panel { transform: translate(-50%, -50%); opacity: 1; }
  .qd-modal-grab { display: none; }
  .qd-modal-head { padding: 14px 18px; }
  .qd-modal-body { padding: 18px 20px 24px; }
}

/* ==========================================================================
   §24 打磨 v0.35.1：弹层重复标题 / select 统一 / 加载更多 / 改密码
   ========================================================================== */

/* 弹层打开时，区块内与弹窗头重复的小标题隐藏（JS 加标记，归位时移除） */
.qd-modal-body .qd-sub-dup { display: none !important; }
/* 被保留的「全部 →」链接：脱离小标题后单独右对齐 */
.qd-modal-body .me-sub-more.solo { display: block; text-align: right; margin: -4px 0 10px; }

/* select 控件统一：外观与输入框一致，自绘下拉箭头（替换系统原生样式） */
.auth-form select,
.me-composer-row select {
  -webkit-appearance: none;
  appearance: none;
  display: block; width: 100%; margin-top: 5px;
  padding: 10px 34px 10px 12px;
  border: 1px solid var(--qd-border); border-radius: var(--qd-radius-sm);
  background-color: var(--qd-surface);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  color: var(--qd-text);
  font-size: var(--qd-fs-md); font-family: inherit;
  cursor: pointer;
}
.auth-form select:focus,
.me-composer-row select:focus { outline: none; border-color: var(--qd-accent); }

/* 弹层内「加载更多」按钮 */
.me-more-row { margin: 14px 0 2px; text-align: center; }
html.no-js .me-more-row { display: none; }
.me-more {
  padding: 8px 26px;
  border: 1px solid var(--qd-border); border-radius: 999px;
  background: var(--qd-surface); color: var(--qd-text-2);
  font-size: var(--qd-fs-sm); font-family: inherit; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.me-more:hover { border-color: var(--qd-accent); color: var(--qd-accent); }
.me-more[disabled] { opacity: 0.55; cursor: default; }
.me-more-done { color: var(--qd-muted); font-size: var(--qd-fs-xs); }

/* 「账号安全」弹层：资料表单与改密码表单之间的分隔 */
.me-pwd-sep { border: none; border-top: 1px solid var(--qd-border); margin: 20px 0 14px; }
.me-pwd-sep + .me-sub { margin-top: 0; }

/* ============================================================
   §25 消息中心（v0.36.0）—— /notifications/
   列表式排版：1px 分割线 + 头像 + 未读点，无卡片边框
   ============================================================ */
.msg-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.msg-head-row .page-title { margin-bottom: 12px; }
.msg-actions { display: flex; gap: 8px; }
.msg-act {
  border: 1px solid var(--qd-border); background: transparent; color: var(--qd-muted);
  font-size: var(--qd-fs-xs); padding: 4px 12px; border-radius: 999px; cursor: pointer;
}
.msg-act:hover { color: var(--qd-text); border-color: var(--qd-muted); }
.msg-act-danger:hover { color: var(--qd-danger, #b03030); border-color: var(--qd-danger, #b03030); }

.msg-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 6px; padding: 2px 0 10px; border-bottom: 1px solid var(--qd-border); }
.msg-tab {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  border: none; background: transparent; color: var(--qd-muted);
  font-size: var(--qd-fs-sm); padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.msg-tab:hover { color: var(--qd-text); }
.msg-tab.on { background: var(--qd-accent-soft); color: var(--qd-accent); font-weight: 600; }
.msg-tab-n { font-size: var(--qd-fs-xs); color: var(--qd-muted); }
.msg-tab.on .msg-tab-n { color: var(--qd-accent); }
.msg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--qd-accent); flex-shrink: 0; }

.msg-list { list-style: none; margin: 0; padding: 0; }
.msg-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 2px; border-bottom: 1px solid var(--qd-border);
}
.msg-list .msg-item:last-child { border-bottom: none; }
.msg-item.same { padding-top: 6px; border-bottom: 1px dashed var(--qd-border); }
.msg-item.unread { background: var(--qd-accent-soft); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: var(--qd-radius-sm); }
.msg-item.unread + .msg-item { border-top: 1px solid var(--qd-border); }

.msg-ava { position: relative; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--qd-border); }
.msg-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg-ava-sys { display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--qd-muted); }
.msg-item.unread .msg-ava::after {
  content: ''; position: absolute; top: -1px; right: -1px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--qd-accent); border: 2px solid var(--qd-accent-soft);
}
.msg-main { flex: 1; min-width: 0; }
.msg-line { color: var(--qd-text); line-height: 1.55; display: block; }
.msg-line b { font-weight: 600; }
.msg-line:hover { color: var(--qd-accent); }
.msg-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.msg-main time { font-size: var(--qd-fs-xs); color: var(--qd-muted); }
/* v0.41.0 聚合 ×N 角标：跟类型四色走 */
.msg-agg-n { flex: none; font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 99px; background: rgba(127,127,127,.14); color: var(--qd-muted); font-weight: 600; }
.msg-item[data-t='like'] .msg-agg-n    { background: var(--qd-tp-like-soft);    color: var(--qd-tp-like); }
.msg-item[data-t='comment'] .msg-agg-n,
.msg-item[data-t='reply'] .msg-agg-n   { background: var(--qd-tp-comment-soft); color: var(--qd-tp-comment); }
.msg-item[data-t='mention'] .msg-agg-n { background: var(--qd-tp-mention-soft); color: var(--qd-tp-mention); }

.msg-thumb { width: 46px; height: 46px; border-radius: var(--qd-radius-sm); object-fit: cover; flex-shrink: 0; background: var(--qd-border); }
.msg-item .qd-follow, .msg-item .qd-follow-btn { flex-shrink: 0; }

.msg-empty { padding: 26px 0; }
.page-msg .auth-tip { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--qd-radius-sm); font-size: var(--qd-fs-sm); }
.page-msg .auth-tip.err { background: var(--qd-accent-soft); color: var(--qd-text); }

/* 手机端：缩略图略缩、Tab 可横滑 */
@media (max-width: 640px) {
  .msg-tab { padding: 6px 10px; }
  .msg-thumb { width: 42px; height: 42px; }
  .msg-actions { width: 100%; justify-content: flex-end; margin-top: -6px; }
}

/* ============================================================
   §25.1 类型上色（v0.36.1）——B 方案：图标上色、文字中性
   赞·红 / 评论·蓝 / 关注·绿 / 提及·橙；全部=现有强调色
   ============================================================ */
:root {
  --qd-tp-like: #cf4444;
  --qd-tp-comment: #2f7fd1;
  --qd-tp-follow: #2c9b5f;
  --qd-tp-mention: #d08427;
}
[data-theme="dark"] {
  --qd-tp-like: #e57a7a;
  --qd-tp-comment: #6aa8e8;
  --qd-tp-follow: #5cbf8a;
  --qd-tp-mention: #e0a45c;
}

/* Tab 前的类型小图标 */
.tp-ic { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; flex-shrink: 0; }
.tp-ic svg { width: 100%; height: 100%; display: block; }
.tp-ic.tp-all { color: var(--qd-muted); }
.msg-tab.on .tp-ic.tp-all { color: var(--qd-accent); }
.tp-ic.tp-like { color: var(--qd-tp-like); }
.tp-ic.tp-comment { color: var(--qd-tp-comment); }
.tp-ic.tp-follow { color: var(--qd-tp-follow); }
.tp-ic.tp-mention { color: var(--qd-tp-mention); width: auto; font-size: 13px; font-weight: 500; line-height: 1; }
/* Tab 计数同步类型色（选中态由 §25 .on 规则接管背景，计数保持类型色） */
.msg-tab .msg-tab-n.tp-all { color: var(--qd-muted); }
.msg-tab.on .msg-tab-n.tp-all { color: var(--qd-accent); }
.msg-tab .msg-tab-n.tp-like { color: var(--qd-tp-like); }
.msg-tab .msg-tab-n.tp-comment { color: var(--qd-tp-comment); }
.msg-tab .msg-tab-n.tp-follow { color: var(--qd-tp-follow); }
.msg-tab .msg-tab-n.tp-mention { color: var(--qd-tp-mention); }

/* 列表头像右下角类型角标（wrap 防被 .msg-ava 的 overflow:hidden 裁掉） */
.msg-ava-wrap { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.msg-ava-wrap .msg-ava { width: 100%; height: 100%; }
.msg-ava-badge {
  position: absolute; right: -3px; bottom: -3px;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--qd-muted);
  border: 2px solid var(--qd-bg);
}
.msg-ava-badge svg { width: 9px; height: 9px; display: block; }
.msg-ava-badge.tp-like { background: var(--qd-tp-like); }
.msg-ava-badge.tp-comment { background: var(--qd-tp-comment); }
.msg-ava-badge.tp-follow { background: var(--qd-tp-follow); }
.msg-ava-badge.tp-mention { background: var(--qd-tp-mention); font-size: 10px; font-weight: 500; line-height: 1; }

/* 未读底色与未读圆点按类型上色（v0.39.0）——与 Tab 图标四色统一 */
:root {
  --qd-tp-like-soft: #faeceb;
  --qd-tp-comment-soft: #eaf2fb;
  --qd-tp-follow-soft: #e9f6ee;
  --qd-tp-mention-soft: #fbf3e7;
}
[data-theme="dark"] {
  --qd-tp-like-soft: rgba(229,122,122,.13);
  --qd-tp-comment-soft: rgba(106,168,232,.13);
  --qd-tp-follow-soft: rgba(92,191,138,.13);
  --qd-tp-mention-soft: rgba(224,164,92,.13);
}
.msg-item.unread[data-t="like"]    { background: var(--qd-tp-like-soft); }
.msg-item.unread[data-t="comment"] { background: var(--qd-tp-comment-soft); }
.msg-item.unread[data-t="follow"]  { background: var(--qd-tp-follow-soft); }
.msg-item.unread[data-t="mention"] { background: var(--qd-tp-mention-soft); }
.msg-item.unread[data-t="like"]    .msg-ava::after { background: var(--qd-tp-like);    border-color: var(--qd-tp-like-soft); }
.msg-item.unread[data-t="comment"] .msg-ava::after { background: var(--qd-tp-comment); border-color: var(--qd-tp-comment-soft); }
.msg-item.unread[data-t="follow"]  .msg-ava::after { background: var(--qd-tp-follow);  border-color: var(--qd-tp-follow-soft); }
.msg-item.unread[data-t="mention"] .msg-ava::after { background: var(--qd-tp-mention); border-color: var(--qd-tp-mention-soft); }

/* ============================================================
   §25.2 发布器收敛（v0.36.2）——手机/平板（≤1024，即底栏＋号存在的断点）
   隐藏动态页顶部内联发布器，发帖统一走底栏＋号抽屉；
   桌面（>1024，无底栏）保留顶部发布器作为唯一入口。
   html.js 前缀：无 JS 时保留长页回退模式，发帖入口不丢。
   ============================================================ */
@media (max-width: 1024px) {
  html.js .qd-pub-inline-wrap { display: none; }
}

/* ============================================================
   §27 文档工作台（v0.43.0）：左树 + 系列卡/独立行
   树复用 §26 .doc-tree 全套样式；此处只管工作台容器与主区。
   ============================================================ */
.doc-wb {
  display: grid; grid-template-columns: var(--qd-doc-tree, 240px) minmax(0, 1fr);
  gap: 36px; align-items: start;
  padding: 22px 0 0;
}
.doc-wb-main { min-width: 0; }
.doc-wb .dt-sub { list-style: none; margin: 0 0 0 14px; padding: 0; }
.wb-s-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 6px;
  padding-bottom: 10px; border-bottom: 1px solid var(--qd-border);
}
.wb-s-head h3 { margin: 0; font-size: var(--qd-fs-md); font-weight: 650; }
.wb-s-head h3 a { color: var(--qd-text); }
.wb-s-head h3 a:hover { color: var(--qd-accent); opacity: 1; }
.wb-s-meta { color: var(--qd-muted); font-size: var(--qd-fs-xs); white-space: nowrap; }

.doc-wb-series {
  border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius);
  padding: 16px 20px 10px;
}
.doc-wb-series + .doc-wb-series,
.doc-wb-series + .doc-wb-group,
.doc-wb-group + .doc-wb-series { margin-top: 18px; }
.wb-s-list { margin: 0; padding-left: 22px; }
.wb-s-list li {
  padding: 7px 0; border-bottom: 1px dashed var(--qd-border);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.wb-s-list li:last-child { border-bottom: none; }
.wb-s-list a { color: var(--qd-text); font-weight: 500; min-width: 0; word-break: break-word; }
.wb-s-list a:hover { color: var(--qd-accent); opacity: 1; }

.wb-g-cap {
  margin: 0; font-size: var(--qd-fs-xs); font-weight: 600;
  color: var(--qd-muted); letter-spacing: .1em;
}
.doc-wb-group + .doc-wb-group { margin-top: 18px; }
.doc-wb-singles { padding-top: 4px; grid-template-columns: 1fr; }

/* 工作台降级：≤1099 树隐藏（系列卡即目录），单栏 */
@media (max-width: 1099px) {
  .doc-wb { grid-template-columns: 1fr; }
  .doc-wb .doc-tree { display: none; }
}

/* ============================================================
   §28 平板断点补全（v0.43.0）+ 手机死空白清理
   ① 768-1024 顶导航收汉堡抽屉（消折字；底栏管主导航，顶栏只剩品牌+工具）
   ② 平板筛选 Tab 横向滚动（与手机同规则）
   ③ 手机 <768 头部/筛选/容器留白压缩
   ============================================================ */

/* ① 顶导航收汉堡：≤1024（与底栏 tabbar 断点对齐），规则与手机抽屉一致 */
@media (max-width: 1024px) and (min-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--qd-header-h); left: 0; right: 0;
    background: var(--qd-bg);
    border-bottom: 1px solid var(--qd-border);
    box-shadow: var(--qd-shadow);
    padding: 8px 28px 16px;
    display: none;
    z-index: 49;
    max-height: calc(100vh - var(--qd-header-h));
    overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { padding: 12px 10px; font-size: var(--qd-fs-md); }

  /* ② 平板筛选 Tab 横滚 */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tabs a { white-space: nowrap; flex: none; }

  /* 平板页头留白收紧一档 */
  .single-header { padding: 34px 0 20px; }
}

/* ③ 手机死空白清理 */
@media (max-width: 767px) {
  .single-header { padding: 26px 0 16px; }
  .filter-tabs { padding-top: 12px; }
  .filter-tabs a { padding: 5px 14px; }
  .doc-pay-tabs { margin-top: 6px; }
  .doc-search { padding-top: 12px; }
  .qd-layout { padding-block: 18px 32px; }
}

/* ============================================================
   §29 文档区全宽（v0.44.0）：工作台 + 阅读页挣脱博客框架
   开关与参数后台可调：qd_doc_fullwidth（总开关）/ _max（容器上限）
   / tree_mode + tree_threshold（左树模式）/ tree_width / reading_width。
   仅桌面 ≥1100 生效；窄屏沿用既有断点（§19/§26/§27/§28），
   开关关闭时 body 无 qd-doc-zone class，整段自然失效 = 完全回旧布局。
   ============================================================ */
@media (min-width: 1100px) {
  /* 容器放开（页头/面包屑头/页脚随之统一，整区一体） */
  body.qd-doc-zone .container { max-width: var(--qd-doc-max, 1440px); }

  /* 列表页：主列独占一行，隐藏右侧栏活页夹 */
  body.qd-doc-zone .qd-layout { grid-template-columns: 1fr; }
  body.qd-doc-zone .qd-side { display: none; }

  /* 工作台：树宽可调；系列卡独立网格 auto-fit（1 张占满整行、多张自动多列），单篇文档区全宽块 */
  body.qd-doc-zone .doc-wb { grid-template-columns: var(--qd-doc-tree, 240px) minmax(0, 1fr); }
  body.qd-doc-zone .doc-wb.no-tree { grid-template-columns: 1fr; }
  body.qd-doc-zone .doc-wb-main { display: block; }
  body.qd-doc-zone .doc-wb-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--qd-doc-card, 420px), 1fr));
    gap: 18px; align-items: start;
  }
  body.qd-doc-zone .doc-search { max-width: var(--qd-doc-read, 720px); }
  body.qd-doc-zone .doc-wb-series + .doc-wb-series { margin-top: 0; }

  /* 阅读页：树宽可调 + 正文行宽可调（34-38 汉字舒适区，默认 720） */
  body.qd-doc-zone .doc-shell { grid-template-columns: var(--qd-doc-tree, 240px) minmax(0, 1fr) 220px; }
  body.qd-doc-zone .doc-shell:not(.has-tree) { grid-template-columns: minmax(0, 1fr) 220px; }
  body.qd-doc-zone .doc-content { max-width: var(--qd-doc-read, 720px); }
}

/* v0.44.3：系列卡容器化后，卡区与单篇区的间距（全断点） */
.doc-wb-cards + .doc-wb-group { margin-top: 18px; }

/* §30 v0.47.0 排版助手：内容概要块（引擎输出 .doc-abstract，位于正文首）
   印刷风：左侧强调色竖线，不做卡片、不加底色 */
.doc-content .doc-abstract {
  margin: 0 0 22px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--qd-accent);
}
.doc-content .doc-abstract > b,
.doc-content .doc-abstract > p:first-child > b {
  display: block;
  font-size: var(--qd-fs-xs);
  letter-spacing: 0.08em;
  color: var(--qd-accent);
  margin-bottom: 6px;
}
.doc-content .doc-abstract > p { margin: 0; }
.doc-content .doc-abstract ul {
  margin: 0;
  padding-left: 18px;
  color: var(--qd-text-2);
  font-size: var(--qd-fs-sm);
  line-height: 1.9;
}
.doc-content .doc-abstract li { margin: 2px 0; }
.doc-content .doc-abstract li::marker { color: var(--qd-muted); }
@media (max-width: 720px) {
  .doc-content .doc-abstract { padding-left: 12px; margin-bottom: 18px; }
}

/* ============================================================
   §31 v0.48.0 代码块一键复制（印刷风：细线小钮，hover 浮现，触屏常显）
   ============================================================ */
.entry-content pre,
.doc-content pre {
  position: relative;
}
.qd-code-copy {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--qd-font-ui, inherit); font-size: 12px; line-height: 1;
  padding: 5px 10px;
  color: var(--qd-muted);
  background: var(--qd-bg, #fff);
  border: 1px solid var(--qd-border); border-radius: 4px;
  cursor: pointer; opacity: 0;
  transition: opacity 0.15s ease;
}
.entry-content pre:hover .qd-code-copy,
.doc-content pre:hover .qd-code-copy,
.qd-code-copy:focus-visible { opacity: 1; }
.qd-code-copy.ok {
  color: var(--qd-accent);
  border-color: var(--qd-accent);
}
@media (hover: none) {
  .qd-code-copy { opacity: 1; }
}

/* ================= §32 搜索父链 + 图片灯箱（v0.49.0） ================= */
.doc-search-results li a { display: block; }
.doc-search-results .qd-search-crumb {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--qd-muted, #8a8f98);
  margin-bottom: 2px;
}
.doc-search-results .qd-search-title { display: block; }

/* ================= §33 文档工作台 2.0：文库骨架（v0.57.0） ================= */

/* —— 工具行：统计 + 视图切换 —— */
.doc-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin: 4px 0 14px;
}
.doc-stats { display: flex; align-items: baseline; gap: 12px; font-size: 13.5px; color: var(--qd-text-2); }
.doc-stats b { font-weight: 600; color: var(--qd-text); font-variant-numeric: tabular-nums; }
.doc-stats i { width: 3px; height: 3px; border-radius: 50%; background: var(--qd-border); align-self: center; }
.doc-viewbar {
  display: inline-flex; border: 1px solid var(--qd-border); border-radius: 999px;
  padding: 3px; background: var(--qd-surface);
}
.doc-viewbar .seg {
  border: 0; background: transparent; color: var(--qd-muted);
  font-size: 12.5px; padding: 5px 13px; border-radius: 999px; cursor: pointer;
  font-family: inherit; line-height: 1.4; transition: color 0.15s, background 0.15s;
}
.doc-viewbar .seg[aria-pressed="true"] { background: var(--qd-accent); color: var(--qd-accent-text); }

/* —— 两栏骨架（树 + 货架）—— */
.doc-wb2 {
  display: grid; grid-template-columns: var(--qd-doc-tree, 240px) minmax(0, 1fr);
  gap: 24px; align-items: start; margin-top: 12px;
}
.doc-wb2.no-tree { grid-template-columns: 1fr; }
.doc-wb2 .doc-tree { position: sticky; top: calc(var(--qd-header-h, 60px) + 16px); }

/* —— 货架段 —— */
.doc-shelf { margin: 0 0 30px; }
.ds-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 13px; }
.ds-head h3 {
  font-family: Georgia, "Times New Roman", "Songti SC", "STSong", "SimSun", serif;
  font-size: 19px; font-weight: 600; letter-spacing: 0.2px; line-height: 1.4;
  display: flex; align-items: center; gap: 7px; margin: 0;
}
.ds-head h3 a { color: inherit; text-decoration: none; }
.ds-head h3 a:hover { color: var(--qd-accent); }
.ds-head .dt-ico { width: 18px; height: 18px; color: var(--qd-accent); flex: none; }
.ds-meta { font-size: 12.5px; color: var(--qd-muted); white-space: nowrap; }
.ds-rule {
  flex: 1; height: 1px; min-width: 30px; align-self: center;
  background: linear-gradient(90deg, var(--qd-border), transparent);
}

/* —— 文档卡 —— */
.doc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(238px, 100%), 1fr)); gap: 15px; }
.doc-card {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: var(--qd-surface); border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius); color: inherit; text-decoration: none;
  transition: box-shadow 0.18s var(--qd-ease), transform 0.18s var(--qd-ease), border-color 0.18s;
}
.doc-card:hover {
  box-shadow: var(--qd-shadow); transform: translateY(-2px);
  border-color: hsl(var(--dh, 220) 55% 62%);
}
.dc-cover {
  display: block; position: relative; height: 112px; overflow: hidden; flex: none;
  background: linear-gradient(150deg, hsl(var(--dh, 220) 62% 55%), hsl(var(--dh, 220) 68% 34%));
}
.dc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-cover::after {
  content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.13); top: -52px; right: -40px;
}
.doc-card.has-photo .dc-cover::after { display: none; }
.dc-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.dc-glyph {
  font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
  font-size: 42px; font-weight: 700; line-height: 1; user-select: none;
  color: rgba(255, 255, 255, 0.85); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}
.dc-new {
  position: absolute; right: 10px; top: 10px; font-style: normal;
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px;
  background: rgba(255, 255, 255, 0.94); color: hsl(var(--dh, 220) 70% 30%);
  border-radius: 999px; padding: 2px 9px;
}
.dc-pad { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; flex: 1; }
.dc-title {
  font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
  font-size: 15.5px; font-weight: 600; line-height: 1.5; color: var(--qd-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--qd-muted); margin-top: auto;
}
.dc-meta time { margin-left: auto; }
.dc-meta .views-count { font-size: 12px; }

/* —— 列表态（html.doc-view-list 由视图切换 JS 控制，防闪脚本内联在工具行后） —— */
html.doc-view-list .doc-cards { display: flex; flex-direction: column; gap: 8px; }
html.doc-view-list .doc-card { flex-direction: row; align-items: center; border-radius: var(--qd-radius-sm); }
html.doc-view-list .doc-card:hover { transform: none; }
html.doc-view-list .dc-cover { width: 84px; height: 58px; }
html.doc-view-list .dc-cover::after, html.doc-view-list .dc-new { display: none; }
html.doc-view-list .dc-glyph { font-size: 20px; }
html.doc-view-list .dc-pad { flex: 1; flex-direction: row; align-items: center; gap: 12px; padding: 8px 14px; }
html.doc-view-list .dc-title { -webkit-line-clamp: 1; min-height: 0; font-size: 14.5px; flex: 1; min-width: 0; }
html.doc-view-list .dc-meta { margin: 0 0 0 10px; flex: none; }

/* —— 私密文库区（琥珀色系） —— */
.doc-priv-zone {
  border: 1px solid rgba(180, 130, 30, 0.38); border-radius: var(--qd-radius);
  padding: 16px 18px 18px; background: rgba(196, 148, 48, 0.05); margin-bottom: 30px;
}
.doc-priv-zone .ds-head h3 { color: #9a6a10; }
.doc-priv-zone .ds-rule { background: linear-gradient(90deg, rgba(180, 130, 30, 0.35), transparent); }
.priv-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(196, 148, 48, 0.12); border: 1px dashed rgba(180, 130, 30, 0.4);
  border-radius: var(--qd-radius-sm); padding: 9px 14px;
  font-size: 13px; color: #9a6a10; margin-bottom: 6px;
}
.priv-out {
  font-size: 12.5px; color: #9a6a10; border: 1px solid rgba(180, 130, 30, 0.45);
  border-radius: 999px; padding: 3px 12px; text-decoration: none; white-space: nowrap;
}
.priv-out:hover { background: rgba(196, 148, 48, 0.16); }
.doc-priv-zone .doc-shelf-inner { margin: 10px 0 4px; }
.ds-head-sub { margin: 12px 0 11px; }
.ds-head-sub h4 {
  font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
  font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; margin: 0;
}
.ds-head-sub h4 a { color: inherit; text-decoration: none; }
.ds-head-sub h4 a:hover { color: var(--qd-accent); }
.ds-head-sub .dt-ico { width: 15px; height: 15px; color: #b8860b; }
.doc-priv-zone .doc-card { border-left: 3px solid hsl(42 68% 52%); }
.priv-gate {
  border: 1px dashed rgba(180, 130, 30, 0.45); border-radius: var(--qd-radius-sm);
  padding: 14px 16px; font-size: 13.5px; color: var(--qd-text-2); background: var(--qd-surface);
}
.priv-gate p { margin: 0 0 10px; }
.priv-gate .priv-row { display: flex; gap: 10px; margin-bottom: 0; }
.priv-gate input {
  flex: 1; min-width: 0; height: 38px; border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius-sm); background: var(--qd-bg); color: var(--qd-text);
  padding: 0 12px; font-size: 14px; outline: none; font-family: Consolas, monospace;
}
.priv-gate input:focus { border-color: #b8860b; }
.priv-btn {
  height: 38px; padding: 0 24px; border: 0; border-radius: var(--qd-radius-sm);
  background: #b8860b; color: #fff; font-size: 14px; cursor: pointer; font-family: inherit;
}
.priv-btn:hover { background: #9a7009; }
.priv-err { color: #c0392b; font-size: 12.5px; margin: 0 0 8px; }
.doc-priv-zone.is-locked .priv-err { margin: 0; }

/* —— 响应式 —— */
@media (max-width: 1180px) {
  .doc-wb2 { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
  .doc-cards { grid-template-columns: repeat(auto-fill, minmax(min(216px, 100%), 1fr)); gap: 12px; }
  .ds-head h3 { font-size: 17.5px; }
}
@media (max-width: 767px) {
  .doc-wb2 { grid-template-columns: 1fr; gap: 14px; }
  .doc-wb2 .doc-tree { display: none; }
  .doc-cards { grid-template-columns: 1fr; gap: 12px; }
  .dc-cover { height: 96px; }
  .dc-title { font-size: 15px; }
  .ds-head h3 { font-size: 16.5px; }
  .doc-toolbar { margin-top: 0; }
  .doc-viewbar .seg { padding: 5px 11px; }
  .doc-priv-zone { padding: 13px 13px 15px; }
  .priv-gate .priv-row { flex-wrap: wrap; }
  html.doc-view-list .dc-cover { width: 72px; height: 52px; }
}

/* —— v0.58.0 一页式过滤：树/标题点击就地切换 —— */
.is-hidden { display: none !important; }
.doc-shelf.is-narrowed > .ds-direct { display: none; }
.ds-filter {
  background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px; text-align: left;
}
.ds-filter:hover { color: var(--qd-accent); }
.doc-priv-zone .ds-filter:hover { color: #b8860b; }
.ds-group { margin: 16px 0 2px; }
.ds-group-cap {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--qd-text-2);
  margin: 0 0 10px;
}
.ds-group-cap .dt-ico { width: 14px; height: 14px; color: var(--qd-muted); }
.ds-group-cap .ds-meta { font-weight: 400; }
.doc-wb2 .doc-tree li { padding: 3px 4px 3px 10px; }
.doc-wb2 .doc-tree li a,
.doc-wb2 .doc-tree .dt-jump {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  color: var(--qd-text-2); text-decoration: none; word-break: break-word;
  background: none; border: 0; padding: 0; margin: 0; font: inherit;
  cursor: pointer; text-align: left; min-width: 0;
}
.doc-wb2 .doc-tree li a:hover,
.doc-wb2 .doc-tree .dt-jump:hover { color: var(--qd-accent); }
.doc-wb2 .doc-tree .dt-jump.is-active { color: var(--qd-accent); font-weight: 600; }
.doc-wb2 .doc-tree .dt-jump-priv,
.doc-wb2 .doc-tree .dt-jump-priv.is-active { color: #9a6a10; }
.doc-wb2 .doc-tree .dt-ico { width: 15px; height: 15px; flex: none; }
.doc-wb2 .doc-tree .dt-sub { margin-left: 14px; }
.doc-wb2 .doc-tree li a + .doc-lock { margin-left: 6px; }

/* ================= §34 文档工作台 3.0：三栏一页式（v0.59.0） ================= */
/* 左「文档导航」（总览+系列+私密文库） · 中「内容」（卡片墙/正文） · 右「统计格+最近更新 / 本页目录」 */

/* —— 骨架 —— */
.docs-app {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 272px;
  gap: 30px; align-items: start;
  padding: 20px 0 8px;
}
.docs-app.no-nav { grid-template-columns: minmax(0, 1fr) 272px; }
.docs-overview { padding-top: 4px; } /* 外层 qd-layout 已有 26px 顶距，避免叠加 */
.docs-reading .docs-main { min-width: 0; }

/* —— 左：文档导航 —— */
.docs-nav {
  position: sticky; top: calc(var(--qd-header-h, 60px) + 16px);
  max-height: calc(100vh - var(--qd-header-h, 60px) - 30px);
  overflow-y: auto; overscroll-behavior: contain;
  font-size: 13.5px; line-height: 1.5; scrollbar-width: thin;
}
.dn-cap {
  margin: 2px 0 10px; font-size: 12px; letter-spacing: 2px;
  color: var(--qd-muted); font-weight: 500;
}
.dn-list, .dn-kids { list-style: none; margin: 0; padding: 0; }
.dn-row { display: flex; align-items: center; min-height: 31px; }
.dn-spacer { flex: none; width: 20px; }
.dn-toggle {
  flex: none; width: 20px; height: 26px; margin: 0; padding: 0;
  border: 0; background: none; cursor: pointer; color: var(--qd-muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.dn-toggle::before {
  content: ""; width: 0; height: 0;
  border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform 0.16s var(--qd-ease);
}
.dn-group.is-open > .dn-row .dn-toggle::before { transform: rotate(90deg); }
.dn-jump, .dn-link {
  flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; margin: 0; padding: 5px 9px;
  font: inherit; color: var(--qd-text-2); text-decoration: none; cursor: pointer;
  text-align: left; border-radius: 8px; word-break: break-word;
  transition: color 0.14s, background 0.14s;
}
.dn-jump:hover, .dn-link:hover,
.dn-kids a:hover, .dn-kids .dn-jump:hover {
  color: var(--qd-accent); background: color-mix(in srgb, currentColor 7%, transparent);
}
.dn-item.is-active > .dn-row .dn-jump,
.dn-priv.is-active .dn-priv-btn {
  color: var(--qd-accent); font-weight: 600;
  background: color-mix(in srgb, var(--qd-accent) 9%, transparent);
}
.dn-link.is-current { color: var(--qd-accent); font-weight: 600; }
.dn-ico {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(var(--dh, 220) 62% 55% / 0.16);
  color: hsl(var(--dh, 220) 62% 45%);
}
[data-theme="dark"] .dn-ico { color: hsl(var(--dh, 220) 70% 66%); }
.dn-ico .dt-ico { width: 13px; height: 13px; }
.dn-count {
  flex: none; margin-left: auto; padding-left: 6px;
  font-size: 12px; color: var(--qd-muted); font-variant-numeric: tabular-nums;
}
.dn-kids { margin: 1px 0 7px 26px; display: none; }
.dn-group.is-open > .dn-kids { display: block; }
.dn-kids li { min-height: 28px; display: flex; align-items: center; }
.dn-kids a, .dn-kids .dn-jump {
  flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--qd-text-2); text-decoration: none;
  background: none; border: 0; margin: 0; padding: 4px 8px; cursor: pointer;
  text-align: left; border-radius: 7px; word-break: break-word;
  font: inherit; font-size: 13px;
  transition: color 0.14s, background 0.14s;
}
.dn-kids a::before, .dn-kids .dn-jump::before {
  content: "·"; color: var(--qd-muted); font-weight: 700; flex: none;
}
.dn-priv { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--qd-border); }
.dn-priv .dn-jump, .dn-priv .dn-link { color: #9a6a10; }
.dn-priv .dn-jump:hover, .dn-priv .dn-link:hover { color: #b8860b; background: rgba(196, 148, 48, 0.09); }
.dn-priv .dn-ico-lock { display: none; }
.dn-badge {
  flex: none; margin-left: auto; padding-left: 6px;
  font-size: 11px; color: #9a6a10; border: 1px solid rgba(180, 130, 30, 0.45);
  border-radius: 999px; padding: 1px 8px; white-space: nowrap;
}

/* —— 右：统计格 + 最近更新（总览态） —— */
.docs-side {
  position: sticky; top: calc(var(--qd-header-h, 60px) + 16px);
  max-height: calc(100vh - var(--qd-header-h, 60px) - 30px);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  font-size: 13px;
}
.ds-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ds-tile {
  border: 1px solid var(--qd-border); border-radius: 10px;
  background: var(--qd-surface); text-align: center;
  padding: 12px 4px 9px;
}
.ds-tile b {
  display: block; font-size: 20px; font-weight: 700; line-height: 1.2;
  font-variant-numeric: tabular-nums; color: var(--qd-text);
}
.ds-tile span { font-size: 12px; color: var(--qd-muted); }
.ds-tile.t-pub b { color: var(--qd-accent); }
.ds-tile.t-paid b { color: #d97706; }
.ds-recent {
  margin-top: 14px; border: 1px solid var(--qd-border); border-radius: 10px;
  background: var(--qd-surface); padding: 13px 15px 7px;
}
.ds-recent h4 {
  margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--qd-text);
  display: flex; align-items: center; gap: 6px;
}
.ds-recent h4 svg { color: var(--qd-muted); }
.ds-recent ul { list-style: none; margin: 0; padding: 0; }
.ds-recent li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 0; border-top: 1px dashed var(--qd-border);
}
.ds-recent li:first-child { border-top: 0; }
.ds-recent a {
  flex: 1; min-width: 0; color: var(--qd-text-2); text-decoration: none; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.ds-recent a:hover { color: var(--qd-accent); }
.ds-recent time {
  flex: none; font-size: 12px; color: var(--qd-muted); font-variant-numeric: tabular-nums;
}
.ds-hot-n {
  flex: none; font-size: 12px; color: var(--qd-muted); font-variant-numeric: tabular-nums;
}

/* —— 阅读态：正文列微调（骨架类名沿用 doc-single-main） —— */
.docs-reading { padding-top: 24px; }
.docs-reading .doc-toc h4 { color: var(--qd-muted); font-weight: 500; }
.docs-reading .doc-crumb { padding: 0 0 2px; }
.doc-read { color: var(--qd-muted); font-size: var(--qd-fs-xs); }
.doc-read::before { content: "·"; margin-right: 6px; }

/* —— 工具行（总览态）：导航钮 + 视图切换 —— */
.docs-overview .doc-toolbar { justify-content: space-between; }

/* —— 标签筛选行（v0.59.2，v0.62.2 视觉优化）：统计条下方一排小 chip，无标签自动隐藏 —— */
.doc-tags {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin: 10px 0 2px;
}
.doc-tag {
  display: inline-flex; align-items: center; gap: 6px;
  flex: none; white-space: nowrap; /* v0.62.2 防窄屏被压成竖排文字 */
  padding: 4px 11px;
  border: 1px solid rgba(24, 24, 27, 0.14);
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.03);
  font-size: 12.5px; line-height: 1.5;
  color: var(--qd-text-2);
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.doc-tag:hover { border-color: rgba(24, 24, 27, 0.35); color: var(--qd-text); background: rgba(24, 24, 27, 0.055); }
.doc-tag .doc-tag-n {
  color: var(--qd-muted); font-size: 10.5px; font-weight: 600;
  background: rgba(24, 24, 27, 0.06); border-radius: 999px;
  padding: 0 6px; line-height: 16px;
  font-variant-numeric: tabular-nums;
}
.doc-tag.is-active {
  background: var(--qd-text); border-color: var(--qd-text); color: #fff;
}
.doc-tag.is-active .doc-tag-n { background: rgba(255, 255, 255, 0.2); color: #fff; }
.tag-hint {
  margin: 14px 0 0;
  font-size: 13px; color: var(--qd-text-2);
}
.tag-hint b { color: var(--qd-text); font-weight: 500; }
.tag-hint a { margin-left: 10px; color: var(--qd-muted); }
.tag-hint a:hover { color: var(--qd-accent); }
.doc-tagwall { margin-top: 10px; }
.doc-tagline { display: inline-flex; gap: 4px; margin-left: 4px; }
.doc-tagline .doc-tag { padding: 1px 8px; font-size: 11.5px; }
[data-theme="dark"] .doc-tag { border-color: var(--qd-border); background: rgba(255, 255, 255, 0.045); }
[data-theme="dark"] .doc-tag:hover { border-color: var(--qd-text-2); background: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .doc-tag .doc-tag-n { background: rgba(255, 255, 255, 0.09); }
[data-theme="dark"] .doc-tag.is-active { background: var(--qd-text); border-color: var(--qd-text); color: var(--qd-bg); }
[data-theme="dark"] .doc-tag.is-active .doc-tag-n { background: rgba(255, 255, 255, 0.2); color: #fff; }
@media (max-width: 860px) {
  .doc-tags { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .doc-tags::-webkit-scrollbar { display: none; }
}
.docs-overview .doc-tocbtn { margin: 0; }

/* —— 响应式 —— */
@media (max-width: 1360px) {
  .docs-app { grid-template-columns: 212px minmax(0, 1fr) 244px; gap: 22px; }
}
@media (max-width: 1140px) {
  .docs-app, .docs-app.no-nav { grid-template-columns: 208px minmax(0, 1fr); }
  .docs-side { display: none; }
}
@media (max-width: 860px) {
  /* v0.62.2：1fr → minmax(0,1fr)，裸 1fr 的 min=auto 会被私密横幅等内容撑破视口（768 实测溢出 129px） */
  .docs-app, .docs-app.no-nav { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
  .priv-banner span { min-width: 0; }
  /* v0.62.2：宽表（16 列级）窄屏防护——th 有 nowrap，整表 display:block 横滑 */
  .doc-content table { display: block; width: max-content; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .docs-overview .doc-tocbtn { display: inline-flex; }
  .docs-nav {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 200;
    width: min(310px, 84vw); max-height: none; height: 100dvh;
    background: var(--qd-bg); padding: 18px 16px;
    transform: translateX(-102%); transition: transform 0.25s var(--qd-ease);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
  }
  body.qd-docnav-open .docs-nav { transform: none; }
  .doc-tree-mask {
    display: none; position: fixed; inset: 0; z-index: 199;
    background: rgba(0, 0, 0, 0.42);
  }
  body.qd-docnav-open .doc-tree-mask { display: block; }
}

/* ===== v0.63.0 用户目录 + 话题 ===== */
.users-wrap { padding: 22px 0 40px; }
.users-sub { color: var(--qd-muted); font-size: var(--qd-fs-sm); margin: 0 0 18px; }
.qd-users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.qd-user-card {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 14px 16px; border: 1px solid var(--qd-border);
  border-radius: var(--qd-radius); background: var(--qd-surface);
}
.uc-avatar { flex: none; display: inline-block; }
.uc-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.uc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.uc-name {
  font-weight: 600; color: var(--qd-text); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uc-name:hover { color: var(--qd-accent); }
.uc-login {
  color: var(--qd-muted); font-size: var(--qd-fs-xs); font-family: var(--qd-font-mono);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uc-meta { color: var(--qd-muted); font-size: var(--qd-fs-xs); }
.uc-act { flex: none; }
.qd-pager { margin-top: 22px; text-align: center; }

.qd-topic { color: var(--qd-accent); text-decoration: none; }
.qd-topic:hover { text-decoration: underline; }

.qd-topic-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.qd-topic-glyph {
  flex: none; width: 54px; height: 54px; border-radius: var(--qd-radius);
  background: var(--qd-accent-soft); color: var(--qd-accent);
  font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.qd-topic-title h1 { margin: 0; font-size: var(--qd-fs-xl); line-height: 1.25; word-break: break-all; }
.qd-topic-title p { margin: 2px 0 0; color: var(--qd-muted); font-size: var(--qd-fs-sm); }
.qd-topic-title a { color: var(--qd-accent); text-decoration: none; }

@media (max-width: 860px) {
  .qd-users-grid { grid-template-columns: 1fr; }
  .qd-topic-glyph { width: 44px; height: 44px; font-size: 24px; }
}

/* ==================================================================
   v0.67.0 内页底部操作栏 + 楼层评论 + Lv 徽章 + 空状态
   ================================================================== */

/* ---------- 底部固定操作栏（手机端；桌面隐藏） ---------- */
.qd-actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  align-items: center; gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--qd-border);
}
.ab-input {
  flex: 1; min-width: 0; height: 36px;
  border: 0; border-radius: 99px;
  background: var(--qd-accent-soft, #f4f4f5);
  color: var(--qd-muted);
  font-size: 13px; text-align: left; padding: 0 14px;
  cursor: pointer;
}
.ab-input-off { cursor: default; }
.ab-item, .qd-actionbar .qd-like, .qd-actionbar .qd-fav {
  position: relative; flex: none;
  width: 42px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; padding: 0;
  color: var(--qd-text-2);
  cursor: pointer; text-decoration: none;
  transition: color 0.15s var(--qd-ease), transform 0.1s var(--qd-ease);
}
/* v0.68.0 纯图标化：统一 22px 线性图标（1.8 笔粗/圆角端点），计数=右上角小徽章 */
.qd-actionbar .ab-item svg, .qd-actionbar .qd-like svg, .qd-actionbar .qd-fav svg {
  width: 22px; height: 22px; display: block;
}
.qd-actionbar .ab-item .ab-badge, .qd-actionbar .qd-like .qd-like-count {
  position: absolute; top: 0; right: 1px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 9px; background: #ef4444; color: #fff;
  font-style: normal; font-size: 10px; font-weight: 600;
  line-height: 16px; text-align: center; box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}
/* v0.68.1：0 计数不出徽章 */
.qd-actionbar .is-zero { display: none; }
.qd-actionbar .qd-like.liked { color: #e11d48; }
.qd-actionbar .qd-like.liked svg { fill: currentColor; }
.qd-actionbar .qd-fav.liked { color: #d97706; }
.qd-actionbar .qd-fav.liked svg { fill: currentColor; }
.ab-item:active, .qd-actionbar .qd-like:active, .qd-actionbar .qd-fav:active { transform: scale(0.92); }

@media (max-width: 860px) {
  .qd-actionbar { display: flex; }
  body.has-actionbar { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- 评论 版1 · 微博式（v0.73.0：行式 + 相对时间 + 右侧竖排手势赞 + 楼中楼灰块折叠） ---------- */
.wb-head {
  display: flex; align-items: baseline; gap: 6px;
  padding: 2px 0 4px; margin: 0;
}
.wb-head .t { font-size: 15px; font-weight: 800; color: var(--qd-text); }
.wb-head .sort { margin-left: auto; font-size: 11.5px; }
.wb-head .sort a { color: #a0a4b2; text-decoration: none; font-weight: 600; }
.wb-head .sort a.on { color: var(--qd-text); }
.wb-head .sort a:hover { color: var(--qd-accent); opacity: 1; }
.wb-head .sort .sep { color: #d5d7e0; margin: 0 2px; }

.comment-list > li.wb-item-wrap { list-style: none; margin: 0; }
.comment-list > li.wb-item-wrap + li.wb-item-wrap > .wb-item { border-top: 1px solid rgba(20, 24, 40, 0.05); }
.wb-item { display: flex; gap: 10px; padding: 11px 0 9px; }
.wb-av { flex: none; }
.wb-av img { width: 38px; height: 38px; border-radius: 50%; display: block; }
.wb-main { flex: 1; min-width: 0; }
.wb-name {
  font-size: 12.5px; color: #8a8da0;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 2px;
}
.wb-nick { font-weight: 600; color: #55586a; }
.comment-lv {
  font-size: 10px; font-weight: 700; line-height: 1;
  padding: 2.5px 6px; border-radius: 6px;
  white-space: nowrap;
}
.comment-lv.lv9 { background: #fff7e6; color: #b45309; border: 1px solid #ffe4ad; }
.comment-lv.lv7 { background: #fff2e8; color: #c2410c; }
.comment-lv.lv5 { background: #ede9fe; color: #6d28d9; }
.comment-lv.lv3 { background: #dbeafe; color: #1d4ed8; }
.comment-lv.lv1 { background: #eafbf0; color: #16a34a; }
.wb-txt { font-size: 14.5px; color: var(--qd-text); line-height: 1.55; word-break: break-word; }
.wb-txt p { margin: 0 0 4px; }
.wb-txt p:last-child { margin-bottom: 0; }
.wb-txt .at, .wb-txt .tp { color: var(--qd-accent); }
.wb-txt.folded {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5;
  overflow: hidden;
}
.wb-fold {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  color: var(--qd-accent); cursor: pointer; margin-top: 2px;
  user-select: none;
}
.wb-meta { margin-top: 4px; font-size: 11.5px; color: #a0a4b2; display: flex; align-items: center; gap: 5px; }
.wb-meta time { font-variant-numeric: tabular-nums; }
.wb-meta i { font-style: normal; color: #d5d7e0; }
.wb-meta .comment-reply-link {
  font-size: 11.5px; font-weight: 600; color: #6b6e80;
  text-decoration: none;
}
.wb-meta .comment-reply-link:hover { color: var(--qd-accent); }
.comment-await { margin: 4px 0 0; font-size: 12px; color: #d97706; }

/* 右侧竖排手势赞 */
.wb-like { flex: none; padding-top: 2px; min-width: 30px; }
.qd-cmt-like {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: 0; padding: 2px 4px;
  color: #a0a4b2; font-family: inherit; cursor: pointer;
  transition: color 0.15s ease, transform 0.1s ease;
}
.qd-cmt-like svg { width: 17px; height: 17px; }
.qd-cmt-like .cl-count {
  font-style: normal; font-size: 11px; line-height: 1;
  color: #a0a4b2; font-variant-numeric: tabular-nums;
}
.qd-cmt-like .cl-count.is-zero { display: none; }
.qd-cmt-like:active { transform: scale(0.9); }
.qd-cmt-like:hover { color: #e0245e; }
.qd-cmt-like:hover .cl-count { color: #e0245e; }
.qd-cmt-like.liked { color: #e0245e; }
.qd-cmt-like.liked .cl-count { color: #e0245e; }
.qd-cmt-like.liked svg { fill: currentColor; }

/* 楼中楼（顶层 ol.children 由 JS 包进 details.wb-sub） */
details.wb-sub {
  background: #f5f6f9; border-radius: 12px;
  padding: 2px 12px 6px; margin: 2px 0 8px 48px;
}
details.wb-sub summary {
  list-style: none; cursor: pointer; user-select: none;
  font-size: 12.5px; font-weight: 600; color: var(--qd-accent);
  padding: 7px 0 5px;
}
details.wb-sub summary::-webkit-details-marker { display: none; }
details.wb-sub[open] summary { border-bottom: 1px dashed rgba(20, 24, 40, 0.07); margin-bottom: 2px; }
details.wb-sub ol.children { list-style: none; margin: 0; padding: 0; }

/* 楼中楼行（depth ≥ 2，walker 递归同回调） */
.wb-item--sub { display: flex; gap: 7px; align-items: flex-start; padding: 7px 0; }
.wb-item--sub + .wb-item--sub { border-top: 1px solid rgba(20, 24, 40, 0.04); }
.wb-item--sub .wb-av img { width: 22px; height: 22px; }
.wb-item--sub .wb-name { font-size: 11.5px; margin-bottom: 1px; }
.wb-item--sub .wb-name .comment-lv { font-size: 9px; padding: 2px 4px; }
.wb-item--sub .wb-txt { font-size: 13px; line-height: 1.5; }
.wb-item--sub .wb-meta { font-size: 10.5px; margin-top: 2px; }
.wb-item--sub .wb-meta .comment-reply-link { font-size: 10.5px; }
.wb-item--sub .wb-txt.folded { -webkit-line-clamp: 3; }
.wb-sub ol.children ol.children { margin: 0; }

/* ---------- 空状态插画 ---------- */
.comments-empty {
  text-align: center; padding: 26px 0 10px;
  color: var(--qd-muted);
}
.comments-empty svg { color: var(--qd-muted); }
.comments-empty .ce-txt { margin: 8px 0 12px; font-size: var(--qd-fs-sm, 14px); }
.comments-empty .ce-btn {
  height: 34px; padding: 0 20px; border: 0; border-radius: 99px;
  background: var(--qd-accent); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.comments-empty .ce-btn:active { transform: scale(0.96); }

/* ---------- 暗色适配（v0.67.0 起；v0.68.0 徽章描边随主题） ---------- */
[data-theme="dark"] .qd-actionbar .ab-item .ab-badge,
[data-theme="dark"] .qd-actionbar .qd-like .qd-like-count {
  box-shadow: 0 0 0 2px rgba(24, 24, 28, 0.92);
}
[data-theme="dark"] .qd-actionbar {
  background: rgba(24, 24, 28, 0.92);
  border-top-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .comment-lv.lv9 { background: rgba(180, 83, 9, 0.22); color: #fbbf24; border-color: transparent; }
[data-theme="dark"] .comment-lv.lv7 { background: rgba(194, 65, 12, 0.22); color: #fb923c; }
[data-theme="dark"] .comment-lv.lv5 { background: rgba(109, 40, 217, 0.26); color: #c4b5fd; }
[data-theme="dark"] .comment-lv.lv3 { background: rgba(29, 78, 216, 0.26); color: #93c5fd; }
[data-theme="dark"] .comment-lv.lv1 { background: rgba(21, 128, 61, 0.24); color: #86efac; }
[data-theme="dark"] .comment-list > li.wb-item-wrap + li.wb-item-wrap > .wb-item { border-top-color: rgba(255, 255, 255, 0.07); }
[data-theme="dark"] .wb-nick { color: #b3b6c6; }
[data-theme="dark"] .wb-name { color: #8a8da0; }
[data-theme="dark"] .wb-meta i { color: #4a4c58; }
[data-theme="dark"] details.wb-sub { background: #23242c; }
[data-theme="dark"] details.wb-sub[open] summary { border-bottom-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .wb-item--sub + .wb-item--sub { border-top-color: rgba(255, 255, 255, 0.06); }
.ab-toast {
  position: fixed; left: 50%; bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  background: rgba(17, 24, 39, 0.88); color: #fff;
  font-size: 13px; padding: 8px 18px; border-radius: 99px;
  opacity: 0; pointer-events: none; z-index: 90;
  transition: opacity 0.2s var(--qd-ease), transform 0.2s var(--qd-ease);
}
.ab-toast.show { opacity: 1; transform: translateX(-50%); }

/* ==================================================================
   v0.68.0 评论极简化：极简输入条 + 登录引导弹窗
   ================================================================== */

/* ---------- 极简输入条（仅登录用户渲染；#respond 保留给 comment-reply.js） ---------- */
.cmt-composer { margin-top: 14px; }
.cmt-composer textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--qd-border); border-radius: 12px;
  background: var(--qd-surface, #fff); color: var(--qd-text, #18181b);
  font: inherit; font-size: 14px; line-height: 1.6;
  padding: 10px 12px; resize: vertical; min-height: 76px;
}
.cmt-composer textarea:focus { outline: none; border-color: var(--qd-accent); }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cc-me { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--qd-muted); min-width: 0; }
.cc-me img { border-radius: 50%; display: block; }
.cc-me b { font-weight: 600; color: var(--qd-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-right { display: flex; align-items: center; gap: 10px; }
.cc-cancel { font-size: 12px; color: var(--qd-muted); text-decoration: none; }
.cc-cancel:hover { color: var(--qd-accent); }
.cc-send {
  height: 34px; padding: 0 20px; border: 0; border-radius: 99px;
  background: var(--qd-accent); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.cc-send:active { transform: scale(0.96); }

/* ---------- 登录引导弹窗（科米思形态：您还未登录，立即登录？） ---------- */
.la-ov {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(15, 18, 25, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
}
.la-box {
  width: 100%; max-width: 300px;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  animation: laIn 0.18s var(--qd-ease, ease);
}
@keyframes laIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
.la-txt { margin: 0; padding: 26px 20px 22px; text-align: center; font-size: 14.5px; color: var(--qd-text, #18181b); }
.la-btns { display: flex; border-top: 1px solid #ececf0; }
.la-btns button {
  flex: 1; height: 46px; border: 0; background: #fff;
  font-size: 15px; cursor: pointer; color: var(--qd-text-2, #52525b);
}
.la-btns button + button { border-left: 1px solid #ececf0; }
.la-btns .la-yes { color: #e11d48; font-weight: 600; }
.la-btns button:active { background: #f7f7f8; }
[data-theme="dark"] .la-box { background: #1c1c22; }
[data-theme="dark"] .la-txt { color: #f4f4f5; }
[data-theme="dark"] .la-btns { border-top-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .la-btns button { background: transparent; color: #a1a1aa; }
[data-theme="dark"] .la-btns button + button { border-left-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .la-btns .la-yes { color: #fb7185; }

/* ========== v0.69.0 首页幻灯片（科米思 banner 形态） ========== */
.qd-slides { margin: 14px 0 4px; }
.qd-slides-viewport {
  position: relative; overflow: hidden;
  border-radius: 14px;
  background: #f4f4f5;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.10);
}
.qd-slides-track {
  display: flex;
  transition: transform 0.45s var(--qd-ease, ease);
  will-change: transform;
}
.qd-slides-track.dragging { transition: none; }
.qd-slide {
  position: relative; flex: 0 0 100%;
  display: block; text-decoration: none;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.qd-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.qd-slide-title {
  position: absolute; left: 10px; bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff; font-size: 12px; line-height: 1.5;
  border-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.qd-slides-dots {
  position: absolute; left: 0; right: 0; bottom: 7px;
  display: flex; justify-content: center; gap: 5px;
}
.qd-slides-dots i {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: width 0.25s var(--qd-ease, ease), background 0.25s;
}
.qd-slides-dots i.on { width: 16px; background: #fff; }
.qd-slides-nav {
  position: absolute; top: 50%; margin-top: -17px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, 0.35); color: #fff;
  cursor: pointer; opacity: 0; transition: opacity 0.2s;
}
.qd-slides-nav.prev { left: 10px; }
.qd-slides-nav.next { right: 10px; }
.qd-slides-nav::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px;
  border-left: 2px solid #fff; border-top: 2px solid #fff;
}
.qd-slides-nav.prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.qd-slides-nav.next::before { transform: translate(-70%, -50%) rotate(135deg); }
.qd-slides-viewport:hover .qd-slides-nav { opacity: 1; }
@media (max-width: 860px) {
  .qd-slides { padding: 0 10px; margin-top: 10px; }
  .qd-slides-nav { display: none; }
}
@media (min-width: 861px) {
  .qd-slides { max-width: 1080px; margin: 22px auto 8px; padding: 0 20px; box-sizing: border-box; }
  .qd-slide { aspect-ratio: 21 / 9; max-height: 440px; }
  .qd-slide-title { font-size: 13px; left: 14px; bottom: 14px; }
}
[data-theme="dark"] .qd-slides-viewport { background: #26262c; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45); }
/* ==================== v0.71.0 登录注册沉浸式皮肤 + 页面过渡 ==================== */

/* ---------- 页面过渡（body.qd-trans 门控；关闭时零动画） ---------- */
body.qd-trans .site-main {
  /* v0.93.0：fill-mode 由 both 改 backwards——both 会把末帧 translateY(0) 永久留在
     .site-main 上，任何 transform（包括恒等矩阵）都会变成 fixed 后代的包含块，
     弹层/详情页评论栏等 fixed 元素因此跟着文档滚、被底栏盖住（真机「点了显示不开」根因） */
  animation: qd-page-in 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}
@keyframes qd-page-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  body.qd-trans .site-main { animation: none; }
}

/* ---------- 沉浸式登录页：隐藏站点框架，全屏接管 ---------- */
body.auth-immersive .site-header,
body.auth-immersive .topbar-m,
body.auth-immersive .site-footer,
body.auth-immersive .qd-tabbar,
body.auth-immersive .page-head { display: none !important; }
body.auth-immersive .site-main { min-height: 100dvh; padding: 0; animation: none; }

.auth-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px calc(32px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 48%, #ecfeff 100%);
}
/* 背景变体 */
.auth-hero.skin-plain {
  background: linear-gradient(160deg, var(--qd-primary, #6366f1) 0%, var(--qd-primary-deep, #4f46e5) 100%);
}
.auth-hero.skin-photo {
  background-color: #1e1e26;
  background-size: cover;
  background-position: center;
}
.auth-hero.skin-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 18, 30, 0.38), rgba(15, 18, 30, 0.62));
}

/* 极光光斑（仅 aurora） */
.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(58px);
  opacity: 0.55;
  pointer-events: none;
}
.auth-hero.skin-aurora .b1 { width: 46vw; height: 46vw; min-width: 320px; min-height: 320px; background: #c7d2fe; top: -12%; left: -10%; animation: qd-float 11s ease-in-out infinite; }
.auth-hero.skin-aurora .b2 { width: 38vw; height: 38vw; min-width: 260px; min-height: 260px; background: #fbcfe8; bottom: -10%; right: -8%; animation: qd-float 13s ease-in-out 1.2s infinite reverse; }
.auth-hero.skin-aurora .b3 { width: 30vw; height: 30vw; min-width: 220px; min-height: 220px; background: #a5f3fc; top: 42%; left: 58%; animation: qd-float 15s ease-in-out 0.6s infinite; }
@keyframes qd-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(26px, -30px) scale(1.06); }
  66%      { transform: translate(-22px, 18px) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-blob { animation: none !important; }
}

/* 居中玻璃卡 */
.auth-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(30, 32, 60, 0.16);
  padding: 30px 26px 24px;
  box-sizing: border-box;
  animation: qd-card-in 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes qd-card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-card { animation: none; }
}
.auth-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.auth-logo {
  width: 44px; height: 44px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(30, 32, 60, 0.18);
}
.auth-logo-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff; font-size: 20px; font-weight: 700;
}
.auth-site { font-size: 15px; font-weight: 700; color: #2a2c38; letter-spacing: 0.02em; }
.auth-welcome {
  margin: 0 0 4px;
  font-size: 23px; font-weight: 800; color: #23252f;
  letter-spacing: 0.01em;
}
.auth-sub {
  margin: 0 0 18px;
  font-size: 13px; color: #6b6e80; line-height: 1.6;
}

/* 卡内消息/Tab/表单 */
.auth-card .auth-msg {
  border-radius: 12px; padding: 10px 14px;
  font-size: 13px; margin: 0 0 14px;
}
.auth-card .auth-msg-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-card .auth-msg-ok    { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.auth-card .auth-tabs {
  display: flex; gap: 6px;
  background: #eef0f5;
  border-radius: 12px; padding: 4px;
  margin: 0 0 18px;
}
.auth-card .auth-tab {
  flex: 1; text-align: center;
  padding: 9px 0;
  border-radius: 9px;
  font-size: 14px; font-weight: 600;
  color: #6b6e80; text-decoration: none;
  transition: all 0.18s ease;
}
.auth-card .auth-tab.active {
  background: #fff;
  color: #23252f;
  box-shadow: 0 2px 8px rgba(30, 32, 60, 0.12);
}
.auth-card .auth-form p { margin: 0 0 14px; }
.auth-card .auth-form label {
  display: block;
  font-size: 12.5px; font-weight: 600; color: #55586a;
  margin-bottom: 6px;
}
.auth-card .auth-form input[type="text"],
.auth-card .auth-form input[type="password"],
.auth-card .auth-form input[type="email"] {
  width: 100%; box-sizing: border-box;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid #e2e4ec;
  border-radius: 13px;
  background: #f7f8fb;
  font-size: 15px; color: #23252f;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.auth-card .auth-form input:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.auth-card .auth-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
}
.auth-card .auth-remember {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: #6b6e80; margin: 0;
}
.auth-card .auth-remember input { accent-color: #2563eb; width: 16px; height: 16px; }
.auth-card .auth-submit {
  height: 46px; padding: 0 30px;
  border: 0; border-radius: 13px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.auth-card .auth-submit:hover  { filter: brightness(1.06); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.40); }
.auth-card .auth-submit:active { transform: scale(0.97); }
.auth-card .auth-links {
  margin: 14px 0 0;
  font-size: 13px; color: #8a8da0; text-align: center;
}
.auth-card .auth-links a { color: #2563eb; text-decoration: none; font-weight: 600; }
.auth-card .auth-links a:hover { text-decoration: underline; }
.auth-card .empty-tip { font-size: 13.5px; color: #6b6e80; text-align: center; margin: 8px 0 0; }
.auth-back {
  margin: 16px 0 0;
  text-align: center;
}
.auth-back a {
  font-size: 13px; color: #8a8da0; text-decoration: none;
}
.auth-back a:hover { color: #2563eb; }

/* photo 背景时卡片对比度略提 + 文字提亮 */
.auth-hero.skin-photo .auth-card { background: rgba(255, 255, 255, 0.94); }

/* 暗色适配 */
[data-theme="dark"] .auth-hero.skin-aurora {
  background: linear-gradient(135deg, #1c1e2a 0%, #241f2e 50%, #17222b 100%);
}
[data-theme="dark"] .auth-hero.skin-aurora .b1 { background: #3b3f6e; opacity: 0.5; }
[data-theme="dark"] .auth-hero.skin-aurora .b2 { background: #5c3a5e; opacity: 0.5; }
[data-theme="dark"] .auth-hero.skin-aurora .b3 { background: #1f4e5a; opacity: 0.5; }
[data-theme="dark"] .auth-card {
  background: rgba(32, 33, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .auth-site,
[data-theme="dark"] .auth-welcome { color: #eceef4; }
[data-theme="dark"] .auth-sub,
[data-theme="dark"] .auth-back a { color: #9a9db0; }
[data-theme="dark"] .auth-card .auth-tabs { background: #26272f; }
[data-theme="dark"] .auth-card .auth-tab { color: #9a9db0; }
[data-theme="dark"] .auth-card .auth-tab.active { background: #34353f; color: #eceef4; }
[data-theme="dark"] .auth-card .auth-form label { color: #b3b6c6; }
[data-theme="dark"] .auth-card .auth-form input[type="text"],
[data-theme="dark"] .auth-card .auth-form input[type="password"],
[data-theme="dark"] .auth-card .auth-form input[type="email"] {
  background: #26272f; border-color: #3a3b46; color: #eceef4;
}
[data-theme="dark"] .auth-card .auth-form input:focus { border-color: #60a5fa; background: #2a2b34; }
[data-theme="dark"] .auth-card .auth-remember { color: #9a9db0; }
[data-theme="dark"] .auth-card .auth-links { color: #8a8da0; }
[data-theme="dark"] .auth-card .auth-msg-error { background: #3a2226; color: #fca5a5; border-color: #5c2c33; }
[data-theme="dark"] .auth-card .auth-msg-ok { background: #1d3327; color: #86efac; border-color: #2c5240; }

/* 手机端 */
@media (max-width: 640px) {
  .auth-hero { padding: 24px 14px calc(24px + env(safe-area-inset-bottom)); }
  .auth-card { padding: 26px 20px 20px; border-radius: 20px; }
  .auth-welcome { font-size: 21px; }
}
/* ---------- 品牌分屏 split（v0.72.0 登录 D 版） ---------- */
.auth-split {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.ab-zone {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--qd-ab1, #2563eb) 0%, var(--qd-ab2, #1e40af) 100%);
  color: #fff;
  padding: 46px 30px 42px;
}
.ab-zone .ab-ring {
  position: absolute; border-radius: 50%;
  border: 26px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.ab-zone .r1 { width: 200px; height: 200px; right: -66px; top: -52px; }
.ab-zone .r2 { width: 116px; height: 116px; right: 58px; bottom: -50px; border-width: 16px; opacity: 0.8; }
.ab-zone .ab-logo {
  display: flex;
  width: 46px; height: 46px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  align-items: center; justify-content: center;
  font-weight: 800; font-size: 19px; margin-bottom: 18px; overflow: hidden;
}
.ab-zone .ab-logo img { width: 100%; height: 100%; object-fit: cover; }
.ab-zone .ab-name { font-size: 23px; font-weight: 800; letter-spacing: 1px; }
.ab-zone .ab-slogan { font-size: 13px; opacity: 0.8; margin-top: 9px; letter-spacing: 1.2px; }
.auth-pane {
  flex: 1;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 24px 44px;
}
.auth-pane .auth-card {
  width: 100%; max-width: 430px;
  background: transparent; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-radius: 0; padding: 6px 0 0;
}
.auth-pane .auth-card .auth-back { margin-top: 20px; }

/* 桌面左右分屏 */
@media (min-width: 960px) {
  .auth-split { flex-direction: row; }
  .ab-zone {
    width: 44%; min-height: 100dvh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 8%;
  }
  .ab-zone .ab-logo { width: 56px; height: 56px; font-size: 24px; border-radius: 16px; }
  .ab-zone .ab-name { font-size: 30px; }
  .ab-zone .ab-slogan { font-size: 14.5px; }
  .auth-pane { width: 56%; align-items: center; padding: 40px 8%; }
}

/* 暗色 */
[data-theme="dark"] .auth-split { background: #17181d; }

/* ============================================================
   v0.74.0 手机端首页 v11（市集式双列瀑布流）
   作用域 .v11h：仅 front-page 手机分支输出，桌面不受影响
   ============================================================ */
.v11h {
  --bg: var(--qd-bg);
  --card: var(--qd-surface);
  --line: var(--qd-border);
  --blue: var(--qd-accent);
  --ink: var(--qd-text);
  --ink2: var(--qd-text-2);
  --mut: var(--qd-muted);
  background: var(--qd-bg);
  min-height: 60vh;
  color: var(--qd-text);
}

/* ---------- 头区：白底大搜索行 ---------- */
.v11h .fs-top { background: var(--qd-surface); padding: 10px 14px 9px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--qd-border); }
.v11h .fs-search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--qd-bg); border: 1.5px solid var(--qd-accent); border-radius: 22px; padding: 7px 6px 7px 14px; font-size: 13px; min-width: 0; }
.v11h .fs-search svg { width: 15px; height: 15px; flex: none; color: var(--qd-text-2); }
.v11h .fs-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 13px; color: var(--qd-text); padding: 0; }
.v11h .fs-search input::placeholder { color: var(--qd-muted); }
.v11h .fs-search .go { flex: none; color: #fff; background: var(--qd-accent); font-size: 11.5px; font-weight: 700; border-radius: 15px; padding: 5px 12px; border: 0; font-style: normal; }
.v11h .icbtn { width: 34px; height: 34px; border-radius: 50%; background: transparent; display: flex; align-items: center; justify-content: center; position: relative; color: var(--qd-text); flex: none; }
.v11h .icbtn svg { width: 19px; height: 19px; }
.v11h .icbtn .dot { position: absolute; top: 1px; right: 1px; min-width: 15px; height: 15px; border-radius: 8px; background: #ef4444; color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 3px; font-style: normal; }

/* ---------- 大字频道 Tab（吸顶） ---------- */
.v11h .chips { display: flex; gap: 24px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; background: var(--qd-surface); border-bottom: 1px solid var(--qd-border); position: sticky; top: 0; z-index: 9; }
.v11h .chips::-webkit-scrollbar { display: none; }
.v11h .chips .chip { background: transparent; color: var(--qd-text); font-size: 15.5px; font-weight: 600; padding: 11px 2px; border-radius: 0; position: relative; flex: none; text-decoration: none; }
.v11h .chips .chip.on { color: var(--qd-accent); font-weight: 800; }
.v11h .chips .chip.on::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 22px; height: 3px; border-radius: 2px; background: var(--qd-accent); }

/* ---------- 运营区：跨列（签到/晚报/快讯） ---------- */
.v11h .wall-full { padding: 9px 10px 0; background: var(--qd-bg); }
.v11h .wf-sign { display: flex; align-items: center; gap: 9px; background: linear-gradient(90deg, #fff0f3, #ffe4ec); border-radius: 14px; padding: 10px 13px; margin: 0 0 8px; font-size: 12.5px; color: #1f2937; cursor: pointer; border: 0; width: 100%; text-align: left; }
.v11h .wf-sign .em { color: #e11d48; display: flex; }
.v11h .wf-sign .em svg { width: 17px; height: 17px; }
.v11h .wf-sign b { color: #e11d48; font-weight: 800; }
.v11h .wf-sign .r { margin-left: auto; background: #e11d48; color: #fff; font-size: 11px; font-weight: 700; border-radius: 12px; padding: 4px 12px; flex: none; }
.v11h .eve-card { border: 1px solid var(--qd-border); background: var(--qd-surface); border-radius: 14px; margin: 0 0 8px; padding: 12px 14px 10px; box-shadow: 0 2px 8px rgba(20, 40, 90, .05); }
.v11h .eve-card .eve-link { display: block; color: inherit; text-decoration: none; }
.v11h .eve-tag { display: inline-block; font-size: 10px; font-weight: 800; color: var(--qd-accent); background: var(--qd-accent-soft, rgba(37,99,235,.10)); border-radius: 4px; padding: 2px 7px; margin-bottom: 7px; letter-spacing: .5px; }
.v11h .eve-main { display: flex; gap: 10px; align-items: stretch; }
.v11h .eve-l { flex: 1; min-width: 0; }
.v11h .eve-t { font-size: 15px; font-weight: 800; line-height: 1.4; color: var(--qd-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v11h .eve-m { font-size: 11px; color: var(--qd-muted); margin-top: 5px; }
.v11h .eve-r { flex: none; width: 76px; min-height: 60px; border-radius: 10px; background: var(--qd-bg) center/cover no-repeat; }
.v11h .eve-ai { display: flex; align-items: center; gap: 5px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--qd-border); font-size: 10.5px; color: var(--qd-muted); }
.v11h .eve-ai svg { width: 12px; height: 12px; color: var(--qd-accent); }
.v11h .news-li { background: var(--qd-surface); border: 1px solid var(--qd-border); border-radius: 14px; padding: 11px 14px; margin: 0 0 6px; }
.v11h .news-li .nl-link { display: block; color: inherit; text-decoration: none; }
.v11h .news-li .nl-t { font-size: 13px; font-weight: 600; color: var(--qd-text); line-height: 1.45; }
.v11h .news-li .nl-m { font-size: 10.5px; color: var(--qd-muted); margin-top: 3px; }

/* ---------- 双列瀑布流 ---------- */
.v11h .wall { columns: 2; column-gap: 8px; padding: 8px 10px 20px; background: var(--qd-bg); }
/* v0.82.0：JS 分列瀑布（.is-split 由 JS 添加）。CSS columns 在移动端 Chromium 对
   aspect-ratio 卡片存在 break-inside 失效 bug（卡片被拦腰截断），分列后彻底规避；
   JS 未执行时仍回退 columns。 */
.v11h .wall.is-split { display: flex; gap: 8px; align-items: flex-start; }
.v11h .wall.is-split .wcol { flex: 1 1 50%; min-width: 0; }
.v11h .wf { break-inside: avoid; background: var(--qd-surface); border: 1px solid var(--qd-border); border-radius: 14px; overflow: hidden; margin: 0 0 8px; cursor: pointer; box-shadow: 0 1px 6px rgba(20, 40, 90, .04); display: block; color: inherit; text-decoration: none; -webkit-column-break-inside: avoid; }
.v11h .wf-img { width: 100%; background: var(--qd-bg) center/cover no-repeat; }
.v11h .wf-play { position: relative; }
.v11h .wf-play .pl { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.v11h .wf-play .pl svg { width: 20px; height: 20px; margin-left: 2px; }
.v11h .wf-dur { position: absolute; right: 7px; bottom: 7px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 10px; font-weight: 700; border-radius: 5px; padding: 2px 6px; }
.v11h .wf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.v11h .wf-grid2 .gi { aspect-ratio: 1/1; background: var(--qd-bg) center/cover no-repeat; }
.v11h .wf-body { padding: 9px 11px 10px; }
.v11h .wf-t { font-size: 13px; font-weight: 700; line-height: 1.45; color: var(--qd-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v11h .wf-tag { display: inline-block; font-size: 9.5px; font-weight: 700; color: var(--qd-text-2); background: var(--qd-bg); border: 1px solid var(--qd-border); border-radius: 4px; padding: 2px 7px; margin-bottom: 6px; }
.v11h .wf-tag.pink { color: #e11d48; border-color: #fecdd3; background: #fff1f2; }
.v11h .wf-tag.green { color: #059669; border-color: #a7f3d0; background: #ecfdf5; }
.v11h .wf-exc, .v11h .wf-quote { font-size: 11px; color: var(--qd-muted); line-height: 1.55; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v11h .wf-meta { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 10.5px; color: var(--qd-muted); text-decoration: none; }
.v11h .wf-ava { width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.v11h .wf-meta .nm { color: var(--qd-text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 76px; }
.v11h .wf-acts { display: flex; align-items: center; gap: 12px; margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--qd-border); }
.v11h .wf-acts .qd-like { display: inline-flex; align-items: center; gap: 3px; background: transparent; border: 0; color: var(--qd-muted); font-size: 10.5px; padding: 0; cursor: pointer; }
.v11h .wf-acts .qd-like svg { width: 14px; height: 14px; }
.v11h .wf-acts .qd-like.liked { color: #e11d48; }
.v11h .wf-acts .wf-cm { display: inline-flex; align-items: center; gap: 3px; color: var(--qd-muted); font-size: 10.5px; }
.v11h .wf-acts .wf-cm svg { width: 14px; height: 14px; }
.v11h .wf-cov-wrap { position: relative; }
.v11h .wf-cov { aspect-ratio: 3/4; background: linear-gradient(160deg, #3b82f6, #1e3a8a); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 14px; text-align: center; background-size: cover; background-position: center; position: relative; }
.v11h .wf-cov.img { aspect-ratio: 3/4; }
.v11h .wf-cov.img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .45)); }
.v11h .wf-cov .bt { color: #fff; font-size: 14px; font-weight: 800; line-height: 1.4; position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v11h .wf-cov .ba { color: rgba(255, 255, 255, .75); font-size: 10px; position: relative; z-index: 1; }
.v11h .wf-price { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10px; font-weight: 700; border-radius: 6px; padding: 2px 7px; backdrop-filter: blur(2px); }
.v11h .v11-empty { text-align: center; color: var(--qd-muted); font-size: 13px; padding: 60px 20px; }

/* ---------- 手机端按压反馈（v11h 作用域内） ---------- */
.v11h .wf:active, .v11h .wf-sign:active, .v11h .news-li:active, .v11h .eve-link:active, .v11h .chips .chip:active, .v11h .icbtn:active { opacity: .55; }
.v11h .wf, .v11h .wf-sign, .v11h .news-li, .v11h .chip, .v11h .icbtn { transition: opacity .12s ease; }
.v11h { -webkit-tap-highlight-color: transparent; }

/* ---------- 暗色适配 ---------- */
[data-theme="dark"] .v11h .fs-top { background: var(--qd-surface); }
[data-theme="dark"] .v11h .fs-search { background: var(--qd-bg); }
[data-theme="dark"] .v11h .wf-sign { background: linear-gradient(90deg, rgba(225, 29, 72, .16), rgba(225, 29, 72, .08)); color: #fda4af; }
[data-theme="dark"] .v11h .wf-sign b { color: #fb7185; }
[data-theme="dark"] .v11h .wf-tag.pink { color: #fda4af; border-color: rgba(225, 29, 72, .35); background: rgba(225, 29, 72, .10); }
[data-theme="dark"] .v11h .wf-tag.green { color: #6ee7b7; border-color: rgba(5, 150, 105, .35); background: rgba(5, 150, 105, .10); }

/* ---------- v0.74.0 签到周历弹层 ---------- */
.v11sign-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 9999; display: flex; align-items: flex-end; justify-content: center; animation: v11sign-fade .18s ease; }
@keyframes v11sign-fade { from { opacity: 0; } to { opacity: 1; } }
.v11sign { width: 100%; max-width: 420px; background: #fff; border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); animation: v11sign-up .22s ease; }
@keyframes v11sign-up { from { transform: translateY(40%); opacity: .6; } to { transform: none; opacity: 1; } }
.v11sign-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.v11sign-hd b { font-size: 15px; color: #18181b; }
.v11sign-x { border: 0; background: #f4f4f5; color: #52525b; width: 28px; height: 28px; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer; transition: transform 0.12s ease; }
.v11sign-x:active { transform: scale(0.88); } /* v0.92.0 触屏按压反馈 */
/* v0.92.0：签到弹层退出动画（关闭不再瞬删） */
.v11sign-mask.bye { animation: v11sign-fade-out 0.19s ease forwards; }
.v11sign-mask.bye .v11sign { animation: v11sign-down 0.19s ease forwards; }
@keyframes v11sign-fade-out { to { opacity: 0; } }
@keyframes v11sign-down { to { transform: translateY(55%); opacity: 0.4; } }
.v11sign-streak { font-size: 12.5px; color: #52525b; margin-bottom: 12px; }
.v11sign-streak b { color: #e11d48; font-weight: 800; }
.v11sign-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.v11sign-cell { aspect-ratio: 1/1; border-radius: 10px; background: #f4f4f5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.v11sign-cell svg { width: 16px; height: 16px; color: #fff; }
.v11sign-cell i { font-style: normal; font-size: 9px; color: #8a8a94; }
.v11sign-cell.on { background: #e11d48; }
.v11sign-cell.on i { color: rgba(255, 255, 255, .8); }
.v11sign-cell.today { box-shadow: 0 0 0 2px #e11d48 inset; }
.v11sign-tip { text-align: center; font-size: 10.5px; color: #8a8a94; margin-top: 12px; }
[data-theme="dark"] .v11sign { background: #1c1c22; }
[data-theme="dark"] .v11sign-hd b { color: #e8eaee; }
[data-theme="dark"] .v11sign-cell { background: #2a2f39; }
[data-theme="dark"] .v11sign-cell i { color: #98a0ad; }
[data-theme="dark"] .v11sign-x { background: #2a2f39; color: #c0c5cf; }

/* ============================================================
   v0.75.0 手机端 v11 全家桶（.v11p）：设置页/收藏页/四宫格/筛选
   ============================================================ */
.v11p { min-height: 60vh; background: var(--qd-bg); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.v11p .pg-hd { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--qd-surface); border-bottom: 1px solid var(--qd-border); position: sticky; top: 0; z-index: 9; }
.v11p .pg-hd .bk { width: 32px; height: 32px; border-radius: 50%; background: var(--qd-bg); color: var(--qd-text); display: flex; align-items: center; justify-content: center; flex: none; }
.v11p .pg-hd .bk svg { width: 16px; height: 16px; }
.v11p .pg-hd b { font-size: 16px; font-weight: 800; color: var(--qd-text); }
.v11p .v11p-scr { max-width: 560px; margin: 0 auto; padding: 0 12px; }
.v11p-wrap { padding-top: 10px; }
.v11p .grp-t { font-size: 11.5px; font-weight: 700; color: var(--qd-muted); letter-spacing: .4px; padding: 14px 6px 7px; }
.v11p .me-list { background: var(--qd-surface); border: 1px solid var(--qd-border); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 6px rgba(20, 40, 90, .04); }
.v11p .me-li { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--qd-border); color: var(--qd-text); text-decoration: none; font-size: 13.5px; cursor: pointer; transition: opacity .12s ease; }
.v11p .me-li:last-child { border-bottom: 0; }
.v11p .me-li:active { opacity: .55; }
.v11p .me-li .li-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--qd-bg); color: var(--qd-text-2); display: flex; align-items: center; justify-content: center; flex: none; }
.v11p .me-li .li-ic.danger { background: #fef2f2; color: #ef4444; }
.v11p .me-li b { font-weight: 600; }
.v11p .me-li .r { margin-left: auto; font-size: 11.5px; color: var(--qd-muted); white-space: nowrap; }
.v11p .sw { display: inline-flex; align-items: center; width: 40px; height: 22px; border-radius: 12px; background: #d8d8de; position: relative; transition: background .18s ease; vertical-align: middle; }
.v11p .sw i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s ease; }
.v11p .sw.on { background: var(--qd-accent); }
.v11p .sw.on i { transform: translateX(18px); }
.v11p .fav-count-tip { font-size: 11px; color: var(--qd-muted); padding: 10px 6px 4px; }
.v11p .me-more-row { text-align: center; padding: 12px 0; }
.v11p .me-more { background: var(--qd-surface); border: 1px solid var(--qd-border); color: var(--qd-text-2); font-size: 12px; border-radius: 14px; padding: 8px 20px; cursor: pointer; }
.v11p .me-more:active { opacity: .55; }
.v11p .me-more-done { font-size: 11px; color: var(--qd-muted); }
.v11p .v11-empty { text-align: center; color: var(--qd-muted); font-size: 13px; padding: 60px 20px; }
[data-theme="dark"] .v11p .li-ic { background: var(--qd-bg); }
[data-theme="dark"] .v11p .li-ic.danger { background: rgba(239, 68, 68, .14); }
[data-theme="dark"] .v11p .sw { background: #3a3a44; }

/* ---------- 我的页：手机四宫格 ---------- */
.me-g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 12px 2px; max-width: 560px; margin: 0 auto; }
.me-g4 .gi { background: var(--qd-surface); border: 1px solid var(--qd-border); border-radius: 14px; padding: 11px 4px 9px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--qd-text); text-decoration: none; transition: opacity .12s ease; }
.me-g4 .gi:active { opacity: .55; }
.me-g4 .gi-ic { width: 34px; height: 34px; border-radius: 11px; background: var(--qd-bg); color: var(--qd-accent); display: flex; align-items: center; justify-content: center; }
.me-g4 .gi-ic svg { width: 17px; height: 17px; }

/* ---------- 动态列表页：最热/图文筛选 chip ---------- */
.qd-mtab .qd-mtab-x { background: var(--qd-bg); border: 1px solid var(--qd-border); border-radius: 14px; padding: 4px 11px; font-size: 12px; color: var(--qd-text-2); transition: opacity .12s ease; }
.qd-mtab .qd-mtab-x.on { background: var(--qd-accent); border-color: var(--qd-accent); color: #fff; font-weight: 700; }
.qd-mtab .qd-mtab-x:active { opacity: .55; }

/* ---------- 手机端全局按压反馈（列表行/卡片行） ---------- */
@media (max-width: 768px) {
  .u-row, .me-g4 .gi, .qd-mtab a { -webkit-tap-highlight-color: transparent; }
  .u-row:active, .qd-mtab a:active { opacity: .55; }
  .u-row, .qd-mtab a { transition: opacity .12s ease; }
}

/* ---------- v0.75.0 搜索结果手机端卡片化 ---------- */
@media (max-width: 768px) {
  .search .post-item, .search-results .post-item { background: var(--qd-surface); border: 1px solid var(--qd-border); border-radius: 14px; padding: 12px 14px; margin: 0 0 10px; }
  .search .container, .search-results .container { padding-left: 12px; padding-right: 12px; }
  .search .post-item:active, .search-results .post-item:active { opacity: .7; }
}
.v11p .empty-tip { color: var(--qd-muted); font-size: 12.5px; line-height: 1.7; padding: 26px 16px; text-align: center; background: var(--qd-surface); border: 1px dashed var(--qd-border); border-radius: 14px; margin: 8px 0 0; }

/* ---------- v0.75.2 瀑布卡：真实头像 + 书影音状态标签配色 ---------- */
.v11h img.wf-ava { object-fit: cover; background: var(--qd-bg); }
.v11h .wf-tag.blue { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; }
[data-theme="dark"] .v11h .wf-tag.blue { color: #93c5fd; border-color: rgba(37, 99, 235, .35); background: rgba(37, 99, 235, .10); }
[data-theme="dark"] .v11h img.wf-ava { background: #2a2f39; }

/* ---------- v0.75.3 瀑布卡信息行（对齐 mock .wf-d） ---------- */
.v11h .wf-d { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--qd-muted); }
.v11h .wf-d .nm { color: var(--qd-text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }

/* ============================================================
   v0.76.0 v11 手机端骨架：底部Tab / 动态页 / 消息页 / 发布器
   ============================================================ */
/* ---------- 底部五格 Tab ---------- */
.v11t { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: stretch; height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--qd-border, #e5e7eb); }
.v11t-i { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; color: var(--qd-muted, #71717a); text-decoration: none; position: relative; }
.v11t-i.on { color: var(--qd-accent, #2563eb); font-weight: 700; }
.v11t-bdg { position: absolute; top: 5px; right: calc(50% - 20px); min-width: 16px; height: 16px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 9.5px; font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.v11t-fab { flex: none; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #1d4ed8); display: flex; align-items: center; justify-content: center; align-self: center; margin: 0 4px; box-shadow: 0 8px 20px rgba(37, 99, 235, .4); color: #fff; border: 0; cursor: pointer; text-decoration: none; }

/* ---------- 动态页 .v11s（v0.77.0 mock 一比一：pg-hd/chips/cards/card/c-*/g9/acts） ---------- */
.v11s { min-height: 100vh; background: #f4f5f7; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.v11s .pg-hd { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--qd-accent, #2563eb); border: 0; position: sticky; top: 0; z-index: 30; }
.v11s .pg-hd .bk { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; cursor: pointer; border: 0; color: #fff; flex: none; }
.v11s .pg-hd .bk svg { width: 17px; height: 17px; }
.v11s .pg-hd b { font-size: 15px; color: #fff; flex: 1; text-align: center; margin-right: 40px; }
.v11s .chips { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; scrollbar-width: none; background: #fff; border-bottom: 1px solid #e8e9ee; position: sticky; top: 46px; z-index: 29; }
.v11s .chips::-webkit-scrollbar { display: none; }
.v11s .chips .chip { background: transparent; color: #1a1d29; font-size: 15.5px; font-weight: 600; padding: 11px 2px; border-radius: 0; position: relative; flex: none; text-decoration: none; }
.v11s .chips .chip.on { color: var(--qd-accent, #2563eb); font-weight: 800; }
.v11s .chips .chip.on::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 22px; height: 3px; border-radius: 2px; background: var(--qd-accent, #2563eb); }
/* v0.84.0 发布回执条（手机端此前不渲染，发布成功/失败全静默） */
.v11s .v11-notice { margin: 10px 14px 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; overflow: hidden; max-height: 90px; cursor: pointer; transition: opacity .35s ease, transform .35s ease, max-height .4s ease, margin .4s ease, padding .4s ease, border-width .4s ease; }
.v11s .v11-notice.bye { opacity: 0; transform: translateY(-5px); max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; border-top-width: 0; border-bottom-width: 0; }
.v11s .v11-notice.ok { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.v11s .v11-notice.err { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
[data-theme="dark"] .v11s .v11-notice.ok { background: rgba(5, 150, 105, .16); color: #6ee7b7; border-color: rgba(16, 185, 129, .35); }
[data-theme="dark"] .v11s .v11-notice.err { background: rgba(220, 38, 38, .16); color: #fca5a5; border-color: rgba(220, 38, 38, .35); }
.v11s .cards { padding: 2px 12px 20px; max-width: 560px; margin: 0 auto; }
.v11s .card { background: #fff; border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(20, 40, 90, .05); }
.v11s .c-head { display: flex; align-items: center; gap: 9px; }
.v11s .ava { width: 36px; height: 36px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; overflow: hidden; }
.v11s .ava.fill { background-size: cover; background-position: center; }
.v11s .c-who { text-decoration: none; color: inherit; min-width: 0; }
.v11s .c-nick { font-size: 13px; font-weight: 700; color: #1a1d29; }
.v11s .c-meta { font-size: 11px; color: #8a8da0; margin-top: 2px; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.v11s .c-meta a, .v11s .c-meta time { color: inherit; }
.v11s .lv { font-size: 9px; font-weight: 700; padding: 1.5px 5px; border-radius: 8px; background: #dbeafe; color: #1d4ed8; flex: none; vertical-align: 1px; }
.v11s .lv.lv6 { background: #fef3c7; color: #b45309; }
.v11s .lv.lv3 { background: #dcfce7; color: #15803d; }
.v11s .bdg2 { font-size: 9px; font-weight: 800; padding: 1.5px 6px; border-radius: 8px; flex: none; display: inline-flex; align-items: center; gap: 2px; vertical-align: 1px; }
.v11s .bdg2.v { background: #ede9fe; color: #6d28d9; }
.v11s .bdg2.z { background: #dbeafe; color: #1d4ed8; }
.v11s .bdg2.g { background: #fef3c7; color: #b45309; }
.v11s .s-src { font-size: 10px; color: #8a8da0; background: #f4f5f7; border-radius: 6px; padding: 1px 6px; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; flex: none; }
.v11s .s-src svg { width: 10px; height: 10px; flex: none; }
.v11s .qd-moment-menu { position: relative; margin-left: auto; flex: none; }
.v11s button.cm-menu, .v11s .cm-menu { margin-left: 0; color: #8a8da0; font-weight: 800; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; font-size: 15px; letter-spacing: 1px; background: none; border: 0; padding: 0; font-family: inherit; line-height: 1; -webkit-appearance: none; appearance: none; }
.v11s button.cm-menu::-webkit-details-marker { display: none; }
.v11s button.cm-menu:active, .v11s .cm-menu:active { background: #f4f5f7; }
.v11s .qd-moment-menup { position: absolute; right: 0; top: 26px; background: #fff; border: 1px solid #e8e9ee; border-radius: 12px; box-shadow: 0 8px 24px rgba(20, 40, 90, .14); padding: 6px; display: flex; flex-direction: column; gap: 2px; min-width: 132px; z-index: 25; }
.v11s .qd-moment-menup button, .v11s .qd-moment-menup a { background: transparent; border: 0; text-align: left; font-size: 13px; padding: 8px 10px; border-radius: 8px; color: #1a1d29; text-decoration: none; cursor: pointer; }
.v11s .qd-moment-menup button:active, .v11s .qd-moment-menup a:active { background: #f4f5f7; }
.v11s .c-txt { font-size: 13.8px; line-height: 1.62; margin-top: 8px; word-break: break-word; color: #1a1d29; }
.v11s .c-txt.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v11s .c-more { font-size: 12.5px; color: var(--qd-accent, #2563eb); font-weight: 700; margin-top: 3px; text-align: right; cursor: pointer; }
.v11s .g9 { display: grid; gap: 4px; margin-top: 9px; border-radius: 10px; overflow: hidden; }
.v11s .g9.c3 { grid-template-columns: repeat(3, 1fr); }
.v11s .g9.c1 { grid-template-columns: 1fr; }
.v11s .g9 .im { aspect-ratio: 1; background: #dfe4ee; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #8a8da0; }
.v11s .g9.c1 .im { aspect-ratio: 16/10; font-size: 26px; }
.v11s .g9 .im.fill { background-size: cover; background-position: center; }
.v11s .g9 .im[data-full] { cursor: zoom-in; }
body.qd-lb-lock { overflow: hidden; }
.v11s .g9 .im.vplay { background: linear-gradient(120deg, #0f2a5c, #2563eb); color: #fff; font-weight: 700; }
.v11s .g9 video { width: 100%; height: 100%; object-fit: cover; display: block; }
.v11s .g9.c1 video { aspect-ratio: 16/10; }
.v11s .acts { display: flex; gap: 26px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #f4f5f7; }
.v11s .act { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #8a8da0; cursor: pointer; background: transparent; border: 0; padding: 0; text-decoration: none; }
.v11s .act svg { width: 15px; height: 15px; }
.v11s .act.liked { color: var(--qd-accent, #2563eb); font-weight: 700; }
.v11s .act .n { font-style: normal; }
.v11s .v11s-empty { text-align: center; color: #8a8da0; font-size: 13px; padding: 60px 0; }
.v11s .v11s-more { display: block; text-align: center; margin: 4px 0 8px; padding: 12px; background: #fff; border: 1px solid #e8e9ee; border-radius: 12px; color: var(--qd-accent, #2563eb); font-size: 13.5px; font-weight: 700; text-decoration: none; }
/* v0.82.0 无限滚动：追加卡片淡入 + 加载态 */
.v11s .card.qd-fadein { animation: qdFadeUp .38s ease both; }
@keyframes qdFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.v11s .v11s-more.is-busy { color: var(--qd-muted, #71717a); pointer-events: none; }
/* 动态页暗色 */
[data-theme="dark"] .v11s { background: var(--qd-bg, #131316); }
[data-theme="dark"] .v11s .chips, [data-theme="dark"] .v11s .card { background: var(--qd-surface, #1c1c1f); border-color: #2a2a2e; }
[data-theme="dark"] .v11s .c-nick, [data-theme="dark"] .v11s .c-txt { color: var(--qd-text, #ececf0); }
[data-theme="dark"] .v11s .c-meta, [data-theme="dark"] .v11s .cm-menu, [data-theme="dark"] .v11s .act { color: var(--qd-muted, #8a8da0); }
[data-theme="dark"] .v11s .s-src { background: #26262b; }
[data-theme="dark"] .v11s .acts { border-color: #26262b; }
[data-theme="dark"] .v11s .qd-moment-menup { background: #1c1c1f; border-color: #2a2a2e; }
[data-theme="dark"] .v11s .v11s-more { background: var(--qd-surface, #1c1c1f); border-color: #2a2a2e; }

/* ---------- 消息页 .v11m ---------- */
.v11m { min-height: 100vh; background: var(--qd-bg, #f6f7f9); padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.v11m-hd { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--qd-accent, #2563eb); }
/* v0.82.0：补齐返回钮（此前漏样式 → 浏览器默认白底直角），对齐 mock .pg-hd .bk 圆形半透明白 */
.v11m-hd .bk { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; cursor: pointer; border: 0; color: #fff; flex: none; padding: 0; }
.v11m-hd .bk svg { width: 17px; height: 17px; }
.v11m-hd .readall { margin-left: auto; background: transparent; border: 0; color: rgba(255, 255, 255, .8); font-size: 11.5px; cursor: pointer; padding: 4px 0; margin-right: 10px; }
.v11m-hd b { flex: 1; text-align: center; font-size: 15px; color: #fff; margin-right: 40px; }
.v11m-mtab { display: flex; background: var(--qd-surface, #fff); border-bottom: 1px solid var(--qd-border, #e5e7eb); position: sticky; top: 48px; z-index: 29; }
.v11m-mtab .mt { flex: 1; text-align: center; padding: 11px 0; font-size: 13.5px; font-weight: 600; color: var(--qd-muted, #71717a); position: relative; cursor: pointer; }
.v11m-mtab .mt.on { color: var(--qd-accent, #2563eb); }
.v11m-mtab .mt.on::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 22px; height: 3px; border-radius: 2px; background: var(--qd-accent, #2563eb); }
.v11m-mtab .mini-bdg { position: absolute; top: 7px; margin-left: 2px; min-width: 14px; height: 14px; border-radius: 8px; background: #ef4444; color: #fff; font-size: 9px; font-weight: 700; font-style: normal; display: inline-flex; align-items: center; justify-content: center; padding: 0 3px; }
.v11m-pane { max-width: 560px; margin: 0 auto; }
.v11m .grp-t { font-size: 11.5px; color: var(--qd-muted, #71717a); margin: 12px 16px 6px; }
.v11m .msg-li { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px 12px 20px; background: var(--qd-surface, #fff); border-bottom: 1px solid var(--qd-bg, #f4f4f5); text-decoration: none; color: inherit; position: relative; }
.v11m .msg-li.u::before { content: ''; position: absolute; left: 9px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: #ef4444; }
.v11m .msg-li .ava { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; }
.v11m .msg-li .ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v11m-ava-sys { width: 38px; height: 38px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.v11m .msg-li .mt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v11m .msg-li .m1 { font-size: 13px; line-height: 1.5; color: var(--qd-text, #18181b); }
.v11m .msg-li .m1 b { font-weight: 700; }
.v11m .msg-li .m2 { font-size: 11px; color: var(--qd-muted, #71717a); margin-top: 3px; }
.v11m .msg-li .mact, .v11m .msg-li .tp-ic { flex: none; align-self: center; }
.v11m .msg-li .tp-ic svg { width: 15px; height: 15px; }
.v11m .tp-like { color: #e11d48; }
.v11m .tp-comment { color: #2563eb; }
.v11m .tp-follow { color: #db2777; }
.v11m .tp-mention { color: #7c3aed; font-weight: 800; font-size: 13px; }
.v11m-empty { text-align: center; color: var(--qd-muted, #71717a); font-size: 13px; padding: 60px 20px; }
.v11m-dm-empty { margin: 12px 14px; background: var(--qd-surface, #fff); border: 1px dashed var(--qd-border, #e5e7eb); border-radius: 14px; text-align: center; color: var(--qd-muted, #71717a); font-size: 12.5px; padding: 34px 16px; }
.v11m-dm-empty b { display: block; font-size: 14px; color: var(--qd-text, #18181b); margin-bottom: 6px; }
.v11m-dm-empty p { margin: 0; line-height: 1.6; }
.v11m-more { display: block; text-align: center; margin: 12px 14px; padding: 11px; background: var(--qd-surface, #fff); border: 1px solid var(--qd-border, #e5e7eb); border-radius: 12px; color: var(--qd-accent, #2563eb); font-size: 13px; font-weight: 700; text-decoration: none; }

/* ---------- 发布器 v11（抽屉全屏形态，对齐 mock post 页） ---------- */
.qd-drawer-panel.v11-pub { background: var(--qd-bg, #f6f7f9); max-width: 560px; margin: 0 auto; height: 100dvh; max-height: none; border-radius: 0; display: flex; flex-direction: column; }
.qd-drawer-panel.v11-pub .qd-drawer-grab { display: none; }
.qd-drawer-panel.v11-pub .qd-drawer-cap { position: relative; flex: none; background: var(--qd-accent, #2563eb); color: #fff; font-size: 15px; font-weight: 800; text-align: center; padding: 14px 0 13px; }
.qd-drawer-panel.v11-pub .qd-drawer-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; border: 0; font-size: 17px; line-height: 1; cursor: pointer; }
.qd-pub.qd-pub-v11 { flex: 1; overflow-y: auto; background: transparent; padding: 12px 14px calc(20px + env(safe-area-inset-bottom)); }
.qd-pub-v11 .qd-pub-title { background: var(--qd-surface, #fff); border-radius: 12px; padding: 2px 12px; display: flex; gap: 8px; align-items: center; }
.qd-pub-v11 .qd-pub-title input { border: 0; background: transparent; font-size: 14px; padding: 10px 0; width: 100%; outline: none; color: var(--qd-text, #18181b); }
.qd-pub-v11 .qd-pub-txt { background: var(--qd-surface, #fff); border: 0; border-radius: 12px; min-height: 150px; font-size: 13.8px; line-height: 1.6; padding: 12px; margin-top: 10px; width: 100%; resize: none; outline: none; color: var(--qd-text, #18181b); }
.qd-pub-v11 .qd-pub-row { background: var(--qd-surface, #fff); border-radius: 12px; margin-top: 10px; padding: 11px 12px; }
.qd-pub-v11 .qd-pub-up { color: var(--qd-accent, #2563eb); font-size: 13px; font-weight: 700; cursor: pointer; }
.qd-pub-v11 .qd-pub-vis { display: flex; gap: 7px; background: var(--qd-surface, #fff); border-radius: 12px; margin-top: 10px; padding: 10px; }
.qd-pub-v11 .qd-vis-opt { flex: 1; margin: 0; }
.qd-pub-v11 .qd-vis-opt input { position: absolute; opacity: 0; pointer-events: none; }
.qd-pub-v11 .qd-vis-opt span { display: flex; align-items: center; justify-content: center; height: 30px; border-radius: 15px; background: var(--qd-bg, #f4f4f5); color: var(--qd-muted, #71717a); font-size: 11.5px; cursor: pointer; border: 1px solid transparent; }
.qd-pub-v11 .qd-vis-opt.on span { background: #eff6ff; color: var(--qd-accent, #2563eb); border-color: var(--qd-accent, #2563eb); font-weight: 700; }
.qd-pub-v11 .qd-pub-hint { font-size: 11px; color: var(--qd-muted, #71717a); margin-top: 8px; }
.qd-pub-v11 .qd-pub-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 0; background: linear-gradient(rgba(246, 247, 249, 0), var(--qd-bg, #f6f7f9) 40%); }
.qd-pub-v11 .qd-pub-count { font-size: 11px; color: var(--qd-muted, #71717a); }
.qd-pub-v11 .qd-pub-send { flex: none; min-width: 150px; height: 44px; border-radius: 22px; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; font-size: 15px; font-weight: 800; border: 0; box-shadow: 0 8px 18px rgba(37, 99, 235, .35); cursor: pointer; }

/* ---------- 暗色与按压反馈 ---------- */
[data-theme="dark"] .v11t { background: rgba(24, 24, 27, .96); border-color: #2a2a2e; }
[data-theme="dark"] .v11s-feed .qd-moment, [data-theme="dark"] .v11m .msg-li { background: var(--qd-surface, #1c1c1f); border-color: #2a2a2e; }
[data-theme="dark"] .qd-pub-v11 .qd-vis-opt span { background: #26262b; }
[data-theme="dark"] .qd-pub-v11 .qd-vis-opt.on span { background: rgba(37, 99, 235, .2); }
.v11t-i:active, .v11s-chips .chip:active, .v11m-mtab .mt:active, .v11s-more:active, .v11m-more:active { opacity: .55; }
.v11t, .v11s, .v11m, .v11pg, .qd-pub-v11 { -webkit-tap-highlight-color: transparent; }

/* ---------- v0.78.0：v11 底部双面板（发布内容/内容操作）+ 发布动态编辑页，mock 一比一 ---------- */
/* 面板骨架（mock .sheet-wrap/.sheet/.sh-*） */
.v11sh { position: fixed; inset: 0; background: rgba(10, 16, 30, .45); z-index: 9999; display: none; align-items: flex-end; }
.v11sh.show { display: flex; }
.v11sh .sheet { width: 100%; background: #fff; border-radius: 20px 20px 0 0; padding: 10px 14px 20px; transform: translateY(100%); transition: transform .28s ease; }
.v11sh.show .sheet { transform: translateY(0); }
.v11sh .sh-t { font-size: 12px; color: #8a8da0; text-align: center; padding: 6px 0 10px; }
.v11sh .sh-it { display: flex; align-items: center; gap: 12px; padding: 13px 8px; border: 0; border-bottom: 1px solid #f4f5f7; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 10px; width: 100%; background: none; color: #1a1d29; text-align: left; font-family: inherit; }
.v11sh .sh-it:active { background: #f4f5f7; }
.v11sh .sh-it a { color: inherit; text-decoration: none; }
.v11sh .sh-it .ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.v11sh .sh-it .ic svg { width: 16px; height: 16px; }
.v11sh .sh-hint { margin-left: auto; color: #8a8da0; font-size: 11.5px; font-weight: 400; white-space: nowrap; }
.v11sh .sh-bdg { margin-left: auto; font-size: 10px; font-weight: 800; color: #6d28d9; background: #ede9fe; border-radius: 7px; padding: 1.5px 7px; white-space: nowrap; }
.v11sh .sh-note { font-size: 10.5px; color: #8a8da0; padding: 8px 8px 2px; line-height: 1.65; }
.v11sh .sh-note b { color: #55586a; }
.v11sh .cancel { margin-top: 10px; height: 44px; border-radius: 22px; background: #f4f5f7; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #55586a; cursor: pointer; width: 100%; border: 0; font-family: inherit; }
/* 发布动态编辑页（mock .post-area/.p-g9/.post-opts/.pub-go） */
.v11pg { min-height: 100vh; background: #f4f5f7; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
.v11pg .pg-hd { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border-bottom: 1px solid #e8e9ee; position: sticky; top: 0; z-index: 30; }
.v11pg .pg-hd .bk { width: 30px; height: 30px; border-radius: 50%; background: #f4f5f7; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 0; color: #1a1d29; padding: 0; }
.v11pg .pg-hd .bk svg { width: 17px; height: 17px; }
.v11pg .pg-hd b { font-size: 15px; flex: 1; text-align: center; margin-right: 40px; }
.v11pg .post-area { margin: 12px 14px; min-height: 150px; background: #fff; border-radius: 14px; padding: 13px; }
.v11pg .post-area textarea { display: block; width: 100%; min-height: 124px; border: 0; outline: none; resize: none; background: transparent; font-size: 13.8px; line-height: 1.6; color: #1a1d29; font-family: inherit; padding: 0; }
.v11pg .post-area textarea::placeholder { color: #b8bac6; }
.v11pg .p-g9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 14px; }
.v11pg .p-g9 .im { aspect-ratio: 1; border-radius: 10px; background-size: cover; background-position: center; position: relative; }
.v11pg .p-g9 .im .rm { position: absolute; right: 5px; top: 3px; color: #fff; font-size: 15px; line-height: 1; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); cursor: pointer; padding: 3px; }
.v11pg .p-g9 .add { aspect-ratio: 1; border-radius: 10px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #b8bac6; font-size: 22px; gap: 2px; cursor: pointer; }
.v11pg .p-g9 .add span { font-size: 10.5px; }
.v11pg .post-opts { background: #fff; border-radius: 14px; margin: 12px 14px; overflow: hidden; }
.v11pg .post-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f4f5f7; font-size: 13px; color: #1a1d29; cursor: pointer; }
.v11pg .post-opt:last-child { border-bottom: 0; }
.v11pg .post-opt > svg { width: 15px; height: 15px; flex: none; color: #1a1d29; }
.v11pg .post-opt .r { margin-left: auto; color: #8a8da0; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.v11pg .post-opt .r.is-blue { color: #2563eb; font-weight: 700; }
.v11pg .post-opt .r.is-hint { font-size: 10.5px; }
.v11pg .post-opt.is-wrap { flex-wrap: wrap; }
.v11pg .post-opt.is-muted { color: #8a8da0; font-size: 11.5px; cursor: default; }
.v11pg .qvis-row { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; margin-top: 9px; }
.v11pg .qvis { flex: 1; min-width: 64px; height: 30px; border-radius: 15px; background: #f4f5f7; color: #8a8da0; font-size: 11.5px; display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; border: 1px solid transparent; white-space: nowrap; padding: 0 6px; }
.v11pg .qvis svg { width: 13px; height: 13px; flex: none; }
.v11pg .qvis input { display: none; }
/* 选中态拆成两条独立规则：逗号合并写法在旧内核（无 :has）会让整条规则作废 */
.v11pg .qvis.on { background: #eff6ff; color: #2563eb; border-color: #2563eb; font-weight: 700; }
.v11pg .qvis:has(input:checked) { background: #eff6ff; color: #2563eb; border-color: #2563eb; font-weight: 700; }
.v11pg .qtgl { display: inline-block; width: 36px; height: 20px; border-radius: 10px; background: #c9ccd8; position: relative; transition: background .2s; }
.v11pg .qtgl input { display: none; }
.v11pg .qtgl i { position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; font-style: normal; }
.v11pg .qtgl:has(input:checked) { background: #2563eb; }
.v11pg .qtgl:has(input:checked) i { left: auto; right: 2px; }
.v11pg .qtgl.on { background: #2563eb; }
.v11pg .qtgl.on i { left: auto; right: 2px; }
/* 触控防误触：kill 浏览器默认蓝色点击高亮与长按选区（v0.85 用户反馈「点击出现全体蓝色」） */
.v11pg .post-opt, .v11pg .qvis, .v11pg .qtgl, .v11pg .pg-hd .bk { -webkit-user-select: none; user-select: none; }
.v11pg .qvis:active { opacity: .78; }
.v11pg .post-opt:active { background: #fafbfc; }
/* v0.85.0 位置行内输入（发布器「位置」真实填写） */
.v11pg .qloc-row { display: flex; align-items: center; gap: 8px; padding: 0 14px 12px 39px; background: #fff; }
.v11pg .qloc-row[hidden] { display: none; }
.v11pg .qloc-row input { flex: 1; min-width: 0; height: 34px; border: 1px solid #e8e9ee; border-radius: 10px; background: #f8f9fb; padding: 0 10px; font-size: 12.5px; color: #1a1d29; outline: none; font-family: inherit; }
.v11pg .qloc-row input:focus { border-color: #2563eb; background: #fff; }
.v11pg .qloc-clear { border: 0; background: none; color: #8a8da0; font-size: 11.5px; cursor: pointer; padding: 6px 2px; font-family: inherit; flex: none; }
[data-theme="dark"] .v11pg .qloc-row { background: var(--qd-surface, #1c1c1f); }
[data-theme="dark"] .v11pg .qloc-row input { background: #26262b; border-color: #2a2a2e; color: #e8e9ee; }
/* v0.86.0 指定好友勾选面板（纯 class 驱动选中态，不依赖 :has） */
.v11pg .qpick-row { width: 100%; margin-top: 9px; border: 1px solid #e8e9ee; border-radius: 12px; background: #fafbfc; padding: 10px; }
.v11pg .qpick-row[hidden] { display: none; }
.v11pg .qpick-hd { font-size: 11.5px; color: #8a8da0; display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px; }
.v11pg .qpick-n { color: #2563eb; font-weight: 700; }
.v11pg .qpick-list { max-height: 208px; overflow-y: auto; }
.v11pg .qpick-it { display: flex; align-items: center; gap: 9px; padding: 7px 4px; border-bottom: 1px solid #f0f1f5; cursor: pointer; font-size: 13px; color: #1a1d29; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.v11pg .qpick-it:last-child { border-bottom: 0; }
.v11pg .qpick-it img { width: 34px; height: 34px; border-radius: 50%; flex: none; background: #f0f1f5; }
.v11pg .qpick-it .qn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.v11pg .qpick-it .qi { font-size: 10.5px; color: #b8bac6; flex: none; }
.v11pg .qpick-it input { display: none; }
.v11pg .qpick-it .qk { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #d9dbe4; flex: none; display: flex; align-items: center; justify-content: center; font-style: normal; transition: all .15s; }
.v11pg .qpick-it input:checked ~ .qk { background: #2563eb; border-color: #2563eb; }
.v11pg .qpick-it input:checked ~ .qk::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 800; }
.v11pg .qpick-loading { display: block; text-align: center; color: #b8bac6; font-size: 11.5px; padding: 14px 0; }
[data-theme="dark"] .v11pg .qpick-row { background: #26262b; border-color: #2a2a2e; }
[data-theme="dark"] .v11pg .qpick-it { color: #e8e9ee; border-bottom-color: #2a2a2e; }
[data-theme="dark"] .v11pg .qpick-it img { background: #2a2a2e; }
.v11pg .pub-go { display: block; margin: 14px 14px 20px; height: 46px; border-radius: 23px; background: linear-gradient(135deg, #3b82f6, #1e40af); color: #fff; font-size: 15px; font-weight: 800; border: 0; cursor: pointer; width: calc(100% - 28px); box-shadow: 0 8px 18px rgba(37, 99, 235, .35); font-family: inherit; }
.v11pg .pub-go:active { opacity: .85; }
/* 旧 details 菜单退场兜底（防止缓存页残留样式突兀） */
.qd-moment-menu { display: none !important; }
/* 深色主题 */
[data-theme="dark"] .v11sh .sheet { background: var(--qd-surface, #1c1c1f); }
[data-theme="dark"] .v11sh .sh-it { color: #e8e9ee; border-bottom-color: #2a2a2e; }
[data-theme="dark"] .v11sh .sh-it:active, [data-theme="dark"] .v11sh .cancel { background: #26262b; }
[data-theme="dark"] .v11sh .cancel { color: #b8bac6; }
[data-theme="dark"] .v11pg .pg-hd, [data-theme="dark"] .v11pg .post-area, [data-theme="dark"] .v11pg .post-opts, [data-theme="dark"] .v11pg .p-g9 .add { background: var(--qd-surface, #1c1c1f); color: #e8e9ee; }
[data-theme="dark"] .v11pg .pg-hd { border-bottom-color: #2a2a2e; }
[data-theme="dark"] .v11pg .pg-hd .bk { background: #26262b; color: #e8e9ee; }
[data-theme="dark"] .v11pg .post-area textarea { color: #e8e9ee; }
[data-theme="dark"] .v11pg .post-opt { color: #e8e9ee; border-bottom-color: #2a2a2e; }
[data-theme="dark"] .v11pg .post-opt > svg { color: #e8e9ee; }
[data-theme="dark"] .v11pg .qvis { background: #26262b; color: #8a8da0; }
[data-theme="dark"] .v11pg .qvis.on { background: rgba(37, 99, 235, .24); color: #8ab0ff; border-color: #2563eb; }
[data-theme="dark"] .v11pg .qvis:has(input:checked) { background: rgba(37, 99, 235, .24); color: #8ab0ff; border-color: #2563eb; }
[data-theme="dark"] .v11pg .post-opt:active { background: #222226; }
[data-theme="dark"] .v11pg .p-g9 .add { color: #6a6d7c; }
/* 发布页=mock 独立页形态：不带底部 Tab 与站点脚注 */
body:has(.v11pg) .v11t { display: none !important; }
body:has(.v11pg) .site-footer { display: none !important; }
/* 旧内核无 :has 兜底：JS 给 body 加类（main.js v0.85），与上行双轨 */
body.qd-v11pg .v11t { display: none !important; }
body.qd-v11pg .site-footer { display: none !important; }
.v11pg .s-src { font-size: 10px; color: #8a8da0; background: #f4f5f7; border-radius: 6px; padding: 1px 6px; display: inline-flex; flex-direction: row; align-items: center; gap: 3px; white-space: nowrap; flex: none; }
.v11pg .s-src svg { width: 10px; height: 10px; flex: none; }
[data-theme="dark"] .v11pg .s-src { background: #26262b; }

/* ============================================================
   v0.79.0 详情页（v11dt = mock data-pg="mdetail" 一比一）+ 站长皇冠徽章
   详情页外层包 .v11s 白拿全套卡片样式，这里只写增量
   ============================================================ */

/* 站长金色皇冠徽章（用户拍板：橙金渐变 pill + 皇冠 + 站长） */
.v11s .bdg2.owner { background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%); color: #fff; font-weight: 800; box-shadow: 0 1px 3px rgba(249, 115, 22, .35); }
.v11s .bdg2.owner svg { width: 10px; height: 10px; flex: none; }

/* 详情页壳 */
.v11dt { min-height: 100vh; padding-bottom: 86px; }
.v11dt .card { cursor: default; }
.v11dt .c-meta svg { width: 12px; height: 12px; vertical-align: -0.14em; }
.v11dt .c-txt.dt-full { font-size: 14.5px; }
.v11dt .share-chip { margin-left: auto; color: #8a8da0; font-size: 12px; background: #f4f5f7; border-radius: 12px; padding: 4px 10px; cursor: pointer; flex: none; text-decoration: none; }

/* 评论区卡（mock：第二张 card） */
.dt-cmt-hd { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid #f4f5f7; }
.dt-cmt-hd b { font-size: 13.5px; }
.dt-csort { font-size: 12px; color: #8a8da0; }
.dt-csort b { color: #2563eb; font-weight: 600; }
.dt-csort a { color: #8a8da0; text-decoration: none; }
.dt-cmt-empty { padding: 18px 0 6px; text-align: center; font-size: 12.5px; color: #8a8da0; }

/* 评论行（mock .cmt 系列） */
.v11dt .cmt { display: flex; gap: 10px; margin-top: 12px; }
.v11dt .cmt .ava { width: 32px; height: 32px; font-size: 11px; }
.cmt-b { flex: 1; min-width: 0; }
.cmt-r1 { display: flex; align-items: baseline; gap: 7px; }
.cmt-n { font-size: 12px; color: #8a8da0; font-weight: 600; }
.cmt-time { font-size: 10.5px; color: #8a8da0; }
.cmt-t { font-size: 13.2px; line-height: 1.55; margin-top: 3px; word-break: break-word; color: #1a1d29; }
.v11dt .cmt .qd-cmt-like { flex-direction: row; gap: 4px; margin-top: 5px; background: none; border: 0; padding: 0; color: #8a8da0; font-size: 10.5px; align-items: center; }
.v11dt .cmt .qd-cmt-like svg { width: 13px; height: 13px; }
.v11dt .cmt .qd-cmt-like.liked, .v11dt .cmt .qd-cmt-like.liked .cl-count { color: #2563eb; font-weight: 700; }
.sub-blk { background: #f4f5f7; border-radius: 10px; padding: 9px 12px; margin-top: 9px; font-size: 12.5px; color: #1a1d29; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.sub-blk .arr { color: #8a8da0; }
.sub-replies { padding: 2px 0 0 12px; border-left: 2px solid #eef0f4; margin-top: 10px; }
.sub-replies .cmt .ava { width: 26px; height: 26px; font-size: 10px; }

/* 底部操作条 cbar（mock 一比一） */
.v11dt .cbar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .97); border-top: 1px solid #e8e9ee; padding: 9px 14px; padding-bottom: calc(9px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; z-index: 60; }
.v11dt .cbar .inp { flex: 1; height: 36px; border-radius: 18px; background: #f4f5f7; display: flex; align-items: center; padding: 0 14px; font-size: 12.5px; color: #8a8da0; cursor: pointer; text-decoration: none; }
.v11dt .cbar .ico { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: #6a6d7c; cursor: pointer; background: none; border: 0; padding: 0; flex: none; }
.v11dt .cbar .ico svg { width: 19px; height: 19px; }
.v11dt .cbar .ico.liked, .v11dt .cbar .ico.is-liked { color: #2563eb; }
.v11dt .cbar .qd-fav { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: #6a6d7c; background: none; border: 0; padding: 0; cursor: pointer; flex: none; }
.v11dt .cbar .qd-fav svg { width: 19px; height: 19px; }
.v11dt .cbar .qd-fav.liked { color: #f59e0b; }

/* 评论输入浮层 */
.v11dt-formwrap { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid #e8e9ee; padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70; }
.v11dt-formwrap form { display: flex; gap: 8px; align-items: flex-end; }
.v11dt-formwrap textarea { flex: 1; min-height: 64px; border: 1px solid #e8e9ee; border-radius: 10px; padding: 8px 10px; font-size: 13px; resize: none; background: #f4f5f7; color: #1a1d29; outline: none; }
.v11dt-formwrap button { background: #2563eb; color: #fff; border: 0; border-radius: 16px; padding: 8px 16px; font-size: 13px; cursor: pointer; }

/* 详情页=独立页形态：无站点 Header / 旧操作栏 / 底部 Tab / 站点脚注 */
body:has(.v11dt) .site-header { display: none !important; }
body:has(.v11dt) .topbar-m { display: none !important; }
body:has(.v11dt) .qd-actionbar { display: none !important; }
body:has(.v11dt) .v11t { display: none !important; }
body:has(.v11dt) .site-footer { display: none !important; }
body.qd-v11dt .site-header, body.qd-v11dt .topbar-m, body.qd-v11dt .qd-actionbar,
body.qd-v11dt .v11t, body.qd-v11dt .site-footer { display: none !important; }

/* 深色主题（跟随 v11pg 口径） */
[data-theme="dark"] .v11dt .card { background: #1d1d21; }
[data-theme="dark"] .v11dt .c-txt.dt-full, [data-theme="dark"] .cmt-t, [data-theme="dark"] .sub-blk { color: #e8e9ee; }
[data-theme="dark"] .dt-cmt-hd { border-bottom-color: #26262b; }
[data-theme="dark"] .sub-blk, [data-theme="dark"] .v11dt .cmt .ava, [data-theme="dark"] .v11dt .cbar .inp { background: #26262b; }
[data-theme="dark"] .v11dt .share-chip { background: #26262b; }
[data-theme="dark"] .v11dt .cbar { background: rgba(29, 29, 33, .97); border-top-color: #2a2a2e; }
[data-theme="dark"] .v11dt .cbar .ico, [data-theme="dark"] .v11dt .cbar .qd-fav { color: #b9bcc8; }
[data-theme="dark"] .v11dt-formwrap { background: #1d1d21; border-top-color: #2a2a2e; }
[data-theme="dark"] .v11dt-formwrap textarea { background: #26262b; color: #e8e9ee; border-color: #2a2a2e; }
[data-theme="dark"] .sub-replies { border-left-color: #2a2a2e; }

/* ============================================================
   v0.80.0 分享到面板 + 首页瀑布/晚报快讯 mock 对齐
   ============================================================ */

/* 分享到面板（mock 设计稿） */
.sh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 6px; padding: 16px 6px 2px; }
.sh-g { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 10.5px; color: #1a1d29; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.sh-g:active { opacity: .6; }
.sh-gi { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; font-weight: 700; flex: none; }
.sh-gi svg { width: 20px; height: 20px; }
.sh-g i { font-style: normal; }
.sh-g.is-dim .sh-gi { opacity: .35; }
.sh-g.is-dim i { color: #b9bcc8; }
.sh-pw { margin: 14px 2px 0; border: 1px solid #e8e9ee; border-radius: 12px; overflow: hidden; background: #fff; }
#qd-poster-img { width: 100%; display: block; }
.sh-tip { font-size: 10.5px; color: #8a8da0; text-align: center; margin-top: 9px; }
[data-theme="dark"] .sh-g { color: #e8e9ee; }
[data-theme="dark"] .sh-pw { border-color: #2a2a2e; background: #1d1d21; }

/* 长称号徽章防换行（截断显示） */
.v11s .c-nick .bdg2 { max-width: 96px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---- 首页瀑布卡对齐 mock v11（后置覆盖 v0.74 值） ---- */
.v11h .wf-body { padding: 10px 11px 11px; }
.v11h .wf-meta { margin-top: 6px; }
.v11h .wf-ava { width: 15px; height: 15px; font-size: 8.5px; }
.v11h .wf-meta .nm { font-weight: 400; max-width: none; flex: 1; }
.v11h .wf-acts { gap: 13px; margin-top: 8px; padding-top: 0; border-top: 0; }
.v11h .wf-acts .qd-like svg, .v11h .wf-acts .wf-cm svg { width: 13px; height: 13px; }
.v11h .wf-tag { font-size: 10px; border: 0; border-radius: 6px; padding: 2px 7px; color: #2563eb; background: #eff6ff; }
.v11h .wf-tag.pink { color: #e11d48; border: 0; background: #fff0f3; }
.v11h .wf-tag.green { color: #059669; border: 0; background: #ecfdf5; }
.v11h .wall { padding: 8px 10px 16px; }
.v11h .wf-dur { right: 8px; bottom: 8px; font-size: 9.5px; }
.v11h .wf-cov { justify-content: flex-end; padding: 12px; }
.v11h .wf-cov .bt { font-size: 14.5px; text-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.v11h .wf-cov .ba { color: rgba(255, 255, 255, .85); margin-top: 4px; }

/* ---- 晚报 + 快讯对齐 mock v11 ---- */
.v11h .eve-tag { font-size: 11px; padding: 2px 8px; margin-bottom: 8px; letter-spacing: 0; }
.v11h .eve-t { font-size: 16px; line-height: 1.45; -webkit-line-clamp: 3; }
.v11h .eve-m { margin-top: 6px; }
.v11h .eve-main { gap: 12px; }
.v11h .eve-r { width: 112px; height: 84px; min-height: 0; border-radius: 8px; }
.v11h .eve-ai { gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--qd-bg); font-size: 11px; }
.v11h .eve-ai svg { width: 13px; height: 13px; }
.v11h .news-li { margin: 0 0 2px; }
.v11h .news-li .nl-t { font-size: 15px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v11h .news-li .nl-m { font-size: 11px; margin-top: 4px; }

/* ============================================================
   v0.81.0 四类型前端发布器（文章/相册/书影音）+ 底栏滚动跟随
   ============================================================ */

/* 文章标题输入行 */
.v11pg .title-inp { width: 100%; border: 0; outline: none; background: transparent; font-size: 17px; font-weight: 700; color: #1a1d29; padding: 2px 0 10px; border-bottom: 1px solid #e8e9ee; margin-bottom: 8px; font-family: inherit; }
.v11pg .post-area.is-article textarea { min-height: 300px; }

/* 书影音：年份 / 五星 / 封面 */
.v11pg .year-inp { width: 88px; border: 0; background: transparent; text-align: right; font-size: 12.5px; color: #2563eb; outline: none; font-family: inherit; }
.v11pg .v-cover-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; margin-left: 8px; flex: none; display: block; }
.v11pg .star-row { display: flex; gap: 12px; margin-top: 8px; }
.v11pg .star-row .st { background: none; border: 0; padding: 0; font-size: 25px; line-height: 1; color: #d9dbe4; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.v11pg .star-row .st.on { color: #f59e0b; }
.v11pg .r.is-blue.js-cover-pick { cursor: pointer; }

/* 底栏滚动跟随：向下滚收起、向上滚弹出 */
.v11dt .cbar { transition: transform .28s ease; will-change: transform; }
.v11dt .cbar.is-hide { transform: translateY(112%); }

/* 深色主题 */
[data-theme="dark"] .v11pg .title-inp { color: #e8e9ee; border-bottom-color: #2a2a2e; }
[data-theme="dark"] .v11pg .star-row .st { color: #3a3a40; }
[data-theme="dark"] .v11pg .star-row .st.on { color: #f59e0b; }

/* ============================================================
   v0.88.0 私信：消息页会话列表补充 + 聊天页（对齐 mock ch-* / cbar）
   ============================================================ */

/* 消息页私信 pane：门槛行 + 未读徽章 */
.v11m-dm-gate { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 20px; background: var(--qd-surface, #fff); border-bottom: 1px solid var(--qd-border, #e5e7eb); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.v11m-dm-gate b { font-size: 13px; color: var(--qd-text, #18181b); font-weight: 700; }
.v11m-dm-gate .gt-r { font-size: 12px; color: var(--qd-muted, #71717a); }
.v11m .dm-bdg { flex: none; align-self: center; min-width: 16px; height: 16px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* 聊天页骨架 */
.v11c { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.v11c-hd { position: static; }
.v11c-hd .hd-pad { width: 40px; flex: none; }
.v11c-scr { flex: 1; overflow-y: auto; padding: 12px 12px 4px; -webkit-overflow-scrolling: touch; }

/* 时间分隔线 */
.ch-time { text-align: center; font-size: 10px; color: var(--qd-muted, #71717a); margin: 6px 0 12px; }

/* 气泡行（对齐 mock：左白右蓝，74% 上限） */
.ch-row { display: flex; gap: 8px; align-items: flex-end; }
.ch-row.me { justify-content: flex-end; }
.ch-row .ava { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; }
.ch-row .ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-bub { max-width: 74%; padding: 9px 12px; border-radius: 14px; font-size: 13.2px; line-height: 1.55; margin-bottom: 9px; word-break: break-word; }
.ch-bub.l { background: var(--qd-surface, #fff); border-top-left-radius: 5px; box-shadow: 0 1px 3px rgba(20, 40, 90, .06); color: var(--qd-text, #18181b); }
.ch-bub.r { background: var(--qd-accent, #2563eb); color: #fff; border-top-right-radius: 5px; margin-left: auto; }

/* 底部输入条（对齐 mock cbar） */
.v11c-bar { position: sticky; bottom: 0; z-index: 30; flex: none; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--qd-border, #e5e7eb); padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
.v11c-bar .v11c-inp { flex: 1; min-height: 36px; max-height: 96px; border-radius: 18px; background: var(--qd-bg, #f4f4f5); border: 0; outline: none; resize: none; padding: 8px 14px; font-size: 13px; line-height: 1.5; color: var(--qd-text, #18181b); font-family: inherit; }
.v11c-bar .v11c-send { flex: none; width: 52px; height: 34px; border-radius: 17px; border: 0; background: var(--qd-accent, #2563eb); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
.v11c-bar .v11c-send:active { opacity: .75; }
.v11c-bar.off { justify-content: center; padding-top: 11px; }
.v11c-bar.off .off-txt { font-size: 12px; color: var(--qd-muted, #71717a); text-align: center; line-height: 1.5; }

/* 深色主题 */
[data-theme="dark"] .ch-bub.l { background: #26262b; box-shadow: none; }
[data-theme="dark"] .v11c-bar { background: rgba(24, 24, 27, .97); border-color: #2a2a2e; }
[data-theme="dark"] .v11c-bar .v11c-inp { background: #26262b; color: #e8e9ee; }
[data-theme="dark"] .v11m-dm-gate { background: #1c1c20; border-color: #2a2a2e; }

/* ============================================================
   v0.90.0 公告 Tab：CPT qd_notice 列表（复用 msg-li 行式）
   ============================================================ */
.v11m details.msg-li.nt-item { display: block; list-style: none; }
.v11m details.msg-li.nt-item summary.nt-sum { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.v11m details.msg-li.nt-item summary.nt-sum::-webkit-details-marker { display: none; }
.v11m details.msg-li.nt-item[open] { background: var(--qd-bg, #f4f4f5); }
.v11m .nt-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--qd-accent, #2563eb); color: #fff; display: flex; align-items: center; justify-content: center; }
.v11m .nt-ic svg { width: 17px; height: 17px; }
.v11m .nt-item .m1 b { font-weight: 700; }
.v11m .nt-full { padding: 0 14px 13px 62px; font-size: 13px; line-height: 1.65; color: var(--qd-text, #18181b); word-break: break-word; }
.v11m .nt-full p { margin: 0 0 8px; }
.v11m .nt-full p:last-child { margin-bottom: 0; }
.v11m .nt-full img { max-width: 100%; height: auto; border-radius: 8px; }
[data-theme="dark"] details.msg-li.nt-item[open] { background: #1c1c20; }

/* v0.90.0 头像降级占位（gravatar 不可达时） */
.qd-ava-fb { display: inline-flex; align-items: center; justify-content: center; background: var(--qd-bg, #e4e4e7); color: var(--qd-muted, #71717a); border-radius: 50%; font-weight: 700; flex: none; overflow: hidden; line-height: 1; }
.qd-ava-fb svg { width: 58%; height: 58%; }
[data-theme="dark"] .qd-ava-fb { background: #26262b; color: #8e8e96; }

/* ============================================================
   v0.91.0 tid139：IP属地 / 楼主徽章 / 只看楼主 / 标签行 / 猜你喜欢
   ============================================================ */

/* 评论行：IP 属地（灰字）+ 楼主徽章（品牌蓝小标） */
.v11dt .cmt-ip { flex: none; font-size: 9.5px; color: var(--qd-muted, #71717a); background: var(--qd-bg, #f4f4f5); border-radius: 4px; padding: 1px 5px; }
.v11dt .cmt-op { flex: none; font-size: 9px; font-style: normal; color: #fff; background: var(--qd-accent, #2563eb); border-radius: 4px; padding: 1px 5px; font-weight: 600; }

/* 只看楼主开关 */
.v11dt .js-onlyop { border: 0; background: none; padding: 0; font-size: 11px; color: var(--qd-muted, #71717a); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.v11dt .js-onlyop.on { color: var(--qd-accent, #2563eb); font-weight: 700; }

/* 标签行（正文下，#话题） */
.v11dt .dt-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 8px; }
.v11dt .dt-tag { font-size: 12px; color: var(--qd-accent, #2563eb); background: rgba(37, 99, 235, .07); border-radius: 999px; padding: 4px 11px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.v11dt .dt-tag:active { opacity: .7; }

/* 猜你喜欢（详情页底部，迷你行式） */
.v11dt .dt-guess { margin-top: 10px; }
.v11dt .g-row { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-top: 1px solid var(--qd-border, #e5e7eb); text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.v11dt .g-row .ava { width: 34px; height: 34px; flex: none; }
.v11dt .g-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v11dt .g-n { font-size: 11.5px; color: var(--qd-muted, #71717a); font-weight: 600; }
.v11dt .g-t { font-size: 13px; color: var(--qd-text, #18181b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v11dt .g-m { font-size: 10px; color: var(--qd-muted, #71717a); }
.v11dt .g-th { flex: none; width: 52px; height: 52px; border-radius: 9px; object-fit: cover; }

[data-theme="dark"] .v11dt .cmt-ip { background: #26262b; }
[data-theme="dark"] .v11dt .dt-tag { background: rgba(59, 130, 246, .14); }
[data-theme="dark"] .v11dt .g-row { border-color: #2a2a2e; }

/* ==================== v0.93.0 我的页弹层修复 + 动态页滑切换 ==================== */

/* 弹层真 fixed 归位后，内容底部给足安全区（最后几行/提交按钮不再贴边） */
.qd-modal-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }

/* 滑切换入场：sessionStorage 记方向，落地后轻滑入 26px（qd-swipe-dir=l=从右进，r=从左进） */
.v11s .cards.qd-swipe-l { animation: qd-swipe-in-l 0.26s ease; }
.v11s .cards.qd-swipe-r { animation: qd-swipe-in-r 0.26s ease; }
@keyframes qd-swipe-in-l { from { opacity: 0; transform: translateX(26px); } }
@keyframes qd-swipe-in-r { from { opacity: 0; transform: translateX(-26px); } }
@media (prefers-reduced-motion: reduce) {
  .v11s .cards.qd-swipe-l, .v11s .cards.qd-swipe-r { animation: none; }
}

/* ==================== v0.93.2 滑动手势理顺 ==================== */

/* 列表区与Tab条：横向手势归页面 JS（禁浏览器横滑手势导航抢事件/touchcancel）；纵向滚动不受影响。
   注意：将来若频道多到 chips 需要横向滚动，把 .chips 改回 touch-action: auto（JS 溢出守卫会自动让位）。 */
.v11s .cards, .v11s .chips { touch-action: pan-y; }

/* ==================== v0.95.0 滑切换内容跟手化 ==================== */

/* 横向锁定后进入拖拽态：过渡关闭，位移由 touchmove 逐帧驱动（松手后由 JS 恢复过渡回弹/滑出） */
.v11s .cards.qd-drag { transition: none !important; will-change: transform; }

/* ===== v0.98.10 #248 A包 页头向 D2 统一（基准=d2-home.css .top） ===== */
:root { --qd-hd-soft: #f4f4f5; }
[data-theme="dark"] { --qd-hd-soft: #20242c; }

.header-inner { height: 56px; gap: 10px; }
.site-title { display: inline-flex; align-items: center; gap: 7px; font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.logo-ic { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; flex: none; }

.site-nav { margin-left: 6px; }
.nav-list { gap: 2px; }
.nav-list a { padding: 7px 14px; border-radius: 8px; background: none; color: var(--qd-text-2); font-size: 0.9rem; }
.nav-list a:hover { background: none; color: var(--qd-accent); opacity: 1; }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  background: none; color: var(--qd-accent); font-weight: 600;
  position: relative; opacity: 1;
}
.nav-list .current-menu-item > a::after,
.nav-list .current_page_item > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2.5px; background: var(--qd-accent); border-radius: 2px;
}

.hd-srch {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  width: 220px; height: 34px; border-radius: 17px; flex: none;
  background: var(--qd-hd-soft); border: 1px solid var(--qd-border);
  padding: 0 14px; color: var(--qd-muted);
}
.hd-srch:focus-within { border-color: var(--qd-accent); }
.hd-srch svg { color: var(--qd-muted); flex: none; }
.hd-srch input { border: 0; background: transparent; outline: 0; width: 100%; font-size: 13px; color: var(--qd-text); }
.hd-srch input::placeholder { color: var(--qd-muted); }
.hd-srch input::-webkit-search-cancel-button { display: none; }

.theme-toggle { width: 34px; height: 34px; }
.theme-toggle svg { width: 17px; height: 17px; display: block; }

.account-btn {
  background: var(--qd-accent); border-color: var(--qd-accent);
  color: var(--qd-accent-text); font-weight: 600; padding: 6px 14px;
}
.account-btn:hover { background: var(--qd-accent); border-color: var(--qd-accent); color: #ffffff; opacity: 0.9; }
.account-btn.is-login { background: var(--qd-surface); border-color: var(--qd-border); color: var(--qd-text); font-weight: 500; }
.account-btn.is-login:hover { background: var(--qd-hd-soft); border-color: var(--qd-border); color: var(--qd-text); opacity: 1; }

@media (max-width: 767px) {
  .hd-srch { display: none; }
}
