/* ============================================================
   浦城百晓书 · v37「山水简明版」业务样式
   基准：定版首页 / 隐私政策 / 用户协议 / 登录注册
   原则：现代、通俗、好用；地方风味只做点缀，不做主题
   约定：所有色值引用 theme.css 变量，不硬编码
   ============================================================ */

:root {
  --v37-side: 232px;
  --v37-top: 64px;
  --v37-max: 1120px;
  --v37-brand-grad: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  --v37-hair: var(--line);
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60; height: var(--v37-top);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: var(--s-5);
  padding: 0 var(--s-6);
}
[data-theme="dark"] .topbar { background: rgba(23, 30, 28, .92); }

.tb-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.tb-logo img { width: 38px; height: 38px; object-fit: contain; }
.tb-logo b {
  font-size: 18px; font-weight: 700; color: var(--brand-700);
  letter-spacing: .04em; white-space: nowrap;
}
[data-theme="dark"] .tb-logo b { color: var(--brand-400); }

/* 字标（2026-11-16 老板令）：顶栏「浦城百晓书」与首页同款——宋体风两色字标 */
@font-face {
  font-family: "BaiXiaoWordmark";
  src: url(data:font/woff2;base64,d09GMk9UVE8AAAiEAA8AAAAADMwAAAgyAAIAxAAAAAAAAAAAAAAAAAAAAAAAAAAAGYFeDY1iGyAcSAZgDggAVAE2AiQDDgQGBYQeByAXJBgOG8ELUZRQUjXFjwTTbT5SavTUJrPJ5qEue3AydPZzQ++mfwFySY1pukA7YKrWTpS6UyeFIF5zOjX7enbpO7oerLnbvK0vXZuIISKRF/PayDQircJD/Knv7ge7FMIB7Nxg9YJWqKUybIpBl6Z7qZVipQoHMKAR2z4pX1rRXrFa7IEfpGGrXoEeKOD69v5mtlXPF8+0C5yJvBMgAEDbiVFE1TPv3qA7Cy0F9iuLlWG/Jj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fO+auP/pcXi7wDw8ZqSzy3y+OGfPmpKWoGIeVXawY4/Hxt8noijZZpqtKJvKt/NTXU0Wd0IYDGAAKCsVUBUXgAAC8CkCD1ZUiK0symx+X5TEoOjfYq0OqY+B+obNrVUhhpsiFEGuMcONZzKFAwdhYV628mJY4a1QeaY/r4tYGdfsIIKTPbRn4ogVoKgsVTBTnVaPAWGx0wcGjKJFiIr0tZ09rLMBxc16OqGgewkmo2sCFS0cd0ijuk8daImFYxxNQyOaxtmnCnOnHi0aZBwyjFX35O8Kh5pP85bX49U+vDDpqKOb+4g7PR0O2g/PCJDRGr5OPuQZCwGLodA8UYURzZmr3qhuSAq2HrEUFOJASBefzqTXqSttUzND4DoBlQjsKuLPgA=) format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
.tb-logo .tb-wordmark {
  font-family: "BaiXiaoWordmark", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 20px; font-weight: 400; letter-spacing: .1em; line-height: 1.15;
  display: flex; align-items: baseline; white-space: nowrap;
}
.tb-logo .tb-wordmark .ln-place { color: var(--ink-900); margin-right: .04em; }
.tb-logo .tb-wordmark .ln-brand {
  color: var(--brand-600); padding-bottom: 2px;
  border-bottom: 2px solid var(--accent-500);
}
[data-theme="dark"] .tb-logo .tb-wordmark .ln-place { color: var(--ink-100); }
[data-theme="dark"] .tb-logo .tb-wordmark .ln-brand { color: var(--brand-400); }
.tb-logo .tb-lockup { display: flex; flex-direction: column; gap: 2px; }
.tb-logo .tb-sub {
  font-size: 8px; color: var(--brand-600); letter-spacing: .3em;
  font-family: ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  white-space: nowrap; line-height: 1;
}
.tb-logo .tb-seal {
  width: 20px; height: 20px; flex: none; align-self: center;
  display: grid; place-items: center;
  background: var(--accent-500); color: #FFFDF8; border-radius: 3px;
  font-family: "BaiXiaoWordmark", "Songti SC", "STSong", serif;
  font-size: 12px; line-height: 1; letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(192, 138, 74, .35);
}

.tb-nav { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-5); flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; margin-right: 100px; }
.tb-nav::-webkit-scrollbar { display: none; }
.tb-nav a {
  color: var(--ink-700); text-decoration: none; font-size: 14px;
  white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease);
}
.tb-nav a:hover, .tb-nav a.on { color: var(--brand-600); border-bottom-color: var(--accent-500); }

.tb-search {
  display: flex; align-items: center; gap: 8px; flex: none;
  height: 36px; padding: 0 12px; width: 208px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--ink-500); font-size: 13px;
}
.tb-search span { flex: 1; }

.tb-me { position: relative; flex: none; }
.tb-me-btn {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 5px 10px 5px 5px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--ink-900);
  font-size: 13px; font-family: inherit;
}
.tb-av {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  background: var(--brand-100); display: grid; place-items: center;
  color: var(--brand-700); font-size: 12px; font-weight: 700;
}
.tb-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 196px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-3); padding: 6px;
}
.tb-menu[hidden] { display: none; }
.tb-menu a, .tb-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px;
  border: 0; background: none; border-radius: var(--r-xs);
  color: var(--ink-700); font-size: 13px; text-decoration: none;
  font-family: inherit; cursor: pointer;
}
.tb-menu a:hover, .tb-menu button:hover { background: var(--brand-050); color: var(--brand-700); }
.tb-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ---------- 骨架：常规侧栏 + 主区 ---------- */
.shell { display: flex; min-height: calc(100vh - var(--v37-top)); align-items: stretch; }
.side {
  width: var(--v37-side); flex: none; border-right: 1px solid var(--line);
  background: var(--surface); padding: var(--s-5) var(--s-3);
  position: sticky; top: var(--v37-top); align-self: flex-start;
  height: calc(100vh - var(--v37-top)); overflow-y: auto;
  scrollbar-width: thin;
}
.side::-webkit-scrollbar { width: 5px; }
.side::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 9px; }
.side-group { margin-bottom: var(--s-5); }
.side-title {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--ink-300); padding: 0 12px; margin-bottom: 8px;
}
.side a {
  display: flex; align-items: center; justify-content: flex-start; gap: 6px;
  padding: 9px 12px; margin-bottom: 2px; border-radius: var(--r-sm);
  color: var(--ink-700); text-decoration: none; font-size: 14px;
  transition: background var(--dur-fast) var(--ease);
}
.side a:hover { background: var(--surface-2); }
.side a.on { background: var(--brand-050); color: var(--brand-700); font-weight: 600; }
.side a .n {
  font-size: 11px; min-width: 20px; text-align: center; padding: 1px 6px;
  border-radius: 999px; background: var(--surface-2); color: var(--ink-500);
}
.side a.on .n { background: var(--brand-100); color: var(--brand-700); }

.main { flex: 1; min-width: 0; position: relative; }
.main-inner { max-width: var(--v37-max); margin: 0 auto; padding: var(--s-6) var(--s-7) 80px; }
/* 山水底纹：极淡，只在宽屏右侧露一点，不干扰阅读 */
.main::before {
  content: ""; position: absolute; right: 0; top: 0; width: 460px; height: 340px;
  background: url("/assets/img/cover_mountain.png") center / cover no-repeat;
  opacity: .045; pointer-events: none; z-index: 0;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
          mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
}
.main-inner { position: relative; z-index: 1; }

/* ---------- 页头 ---------- */
.crumb { font-size: 12px; color: var(--ink-300); margin-bottom: var(--s-4); }
.crumb a { color: var(--ink-500); text-decoration: none; }
.crumb a:hover { color: var(--brand-600); }
.crumb i { font-style: normal; margin: 0 8px; }

.page-head { display: flex; align-items: flex-start; gap: var(--s-4); margin-bottom: var(--s-6); }
.page-head .ph-text { flex: 1; min-width: 0; }
.page-head h1 {
  font-size: 26px; font-weight: 700; letter-spacing: .01em;
  margin: 0 0 6px; color: var(--ink-900); line-height: 1.35;
}
.page-head p { margin: 0; color: var(--ink-500); font-size: 14px; line-height: 1.7; }
.head-actions { display: flex; gap: var(--s-2); flex: none; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: var(--r-sm);
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--v37-brand-grad); color: #fff; box-shadow: var(--sh-1); }
.btn-primary:hover { box-shadow: var(--sh-2); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink-700); }
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-700); }
.btn-quiet { background: transparent; color: var(--brand-700); padding: 0 8px; }
.btn-quiet:hover { background: var(--brand-050); }
.btn-danger { background: var(--seal-100); color: var(--seal); border-color: var(--seal-100); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }

/* ---------- 卡片 / 区块 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-1); padding: var(--s-5);
  margin-bottom: var(--s-4);
}
.card.tight { padding: var(--s-4); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--s-4); }
.card-h h2 { font-size: 16px; font-weight: 700; margin: 0; color: var(--ink-900); }
.card-h .sub { font-size: 12px; color: var(--ink-300); }
.grid { display: grid; gap: var(--s-4); }
/* 独立成行的统计格：与后续卡片保持与 .card 同等的呼吸间距 */
.grid.stat-row { margin-bottom: var(--s-4); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 数字卡：现代直给，不叫纪事 */
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px 20px;
}
.stat .k { font-size: 12.5px; color: var(--ink-500); margin-bottom: 6px; }
.stat .v { font-size: 28px; font-weight: 700; color: var(--ink-900); line-height: 1.2; }
.stat .v small { font-size: 13px; font-weight: 500; color: var(--ink-300); margin-left: 4px; }
.stat .d { font-size: 12px; color: var(--ink-300); margin-top: 6px; }
.stat.accent .v { color: var(--brand-600); }

/* 图文卡：用上午的风物图 */
.tile {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; text-decoration: none;
  box-shadow: var(--sh-1);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
/* 资料分类 12 块：默认只露 4 大主类，其余 8 块收着，点「更多分类」才展开 */
.tile.hidden { display: none; }
.tile:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.tile img.cover { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--brand-050); }
.tile .body { padding: 14px 16px 16px; }
.tile h3 { font-size: 15px; font-weight: 700; color: var(--ink-900); margin: 0 0 5px; }
.tile p { font-size: 12.5px; color: var(--ink-500); margin: 0; line-height: 1.6; }
.tile .meta { font-size: 11.5px; color: var(--ink-300); margin-top: 10px; }

/* ---------- 标签 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: var(--surface-2); color: var(--ink-500); white-space: nowrap;
}
.chip.ok { background: var(--brand-050); color: var(--brand-700); }
.chip.wait { background: var(--accent-100); color: var(--accent-700); }
.chip.no { background: var(--seal-100); color: var(--seal); }
.chip.gold { background: var(--accent-100); color: var(--accent-700); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
/* 2026-11-18 老板令：用户中心记录列表——表头与单元格统一居中对齐（列名与内容对正）；2026-11-18 再令：列间距收紧均匀，时间列定宽不换行、数字等宽 */
.tbl th {
  text-align: center; padding: 10px 10px; background: var(--surface-2);
  color: var(--ink-500); font-weight: 600; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.tbl td { padding: 10px 10px; border-bottom: 1px solid var(--line); color: var(--ink-700); text-align: center; vertical-align: middle; }
.tbl .t-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .t-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--brand-050); }
.tbl .ta { color: var(--brand-700); text-decoration: none; font-weight: 600; }
.tbl .ta:hover { text-decoration: underline; }
.tbl .num { color: var(--ink-300); width: 42px; }

/* ---------- 列表行 ---------- */
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surface-2); }
.row .ic {
  width: 36px; height: 36px; flex: none; border-radius: var(--r-sm);
  background: var(--brand-050); color: var(--brand-700);
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
/* 老板 2026-11-20：库横条缩略图（元宝 10 类封面小图，56x35 同 16:10 比例） */
.libthumb {
  width: 56px; height: 35px; flex: none; border-radius: 6px;
  object-fit: cover; border: 1px solid var(--line); background: var(--surface-2);
}
.row:hover .libthumb { border-color: var(--line-strong); }
.row .tx { flex: 1; min-width: 0; }
.row .tx b { display: block; font-size: 14px; font-weight: 600; color: var(--ink-900); }
.row .tx span { font-size: 12.5px; color: var(--ink-500); }
.row .end { flex: none; display: flex; align-items: center; gap: 10px; }

/* ---------- 表单 ---------- */
.form { max-width: 620px; }
.fld { margin-bottom: var(--s-5); }
.fld label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: 7px; }
.fld .hint { font-size: 12px; color: var(--ink-300); margin-top: 6px; line-height: 1.6; }
.inp, .sel, .ta {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink-900);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 9px 12px; outline: none;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.inp:focus, .sel:focus, .ta:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-050); }
.ta { min-height: 108px; resize: vertical; line-height: 1.7; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: 13px; color: var(--ink-700); cursor: pointer; background: var(--surface);
}
.radio.on { border-color: var(--brand-600); background: var(--brand-050); color: var(--brand-700); font-weight: 600; }
.upload {
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-md);
  padding: 28px; text-align: center; background: var(--surface-2); cursor: pointer;
}
.upload b { display: block; font-size: 14px; color: var(--ink-700); margin-bottom: 4px; }
.upload span { font-size: 12px; color: var(--ink-300); }
/* 原生文件选择框太土：藏掉，点虚线框由 JS 拉起选择器，选中的文件名回填到虚线框标题 */
.fld input[type="file"] { display: none; }
/* 拖拽悬停高亮 */
.upload.drag { border-color: var(--brand-500); background: var(--brand-050); }

/* ---------- 提示条 ---------- */
.notice {
  display: flex; gap: 10px; padding: 12px 16px; margin-bottom: var(--s-4);
  background: var(--brand-050); border: 1px solid var(--brand-100);
  border-radius: var(--r-sm); font-size: 13px; color: var(--ink-700); line-height: 1.65;
}
.notice.gold { background: var(--accent-100); border-color: var(--accent-100); }
/* 两行式提示条：内容长时分行，避免挤成一坨 */
.notice.stack { display: block; }
.notice.stack > div + div { margin-top: 4px; }
.notice.red { background: var(--seal-100); border-color: var(--seal-100); }
.notice b { color: var(--brand-700); }

/* ---------- 空态 ---------- */
.empty { text-align: center; padding: 40px 20px; }
.empty img.pic {
  display: block; width: 132px; height: 88px; margin: 0 auto 18px;
  border-radius: var(--r-md); object-fit: cover; background: var(--brand-050); opacity: .9;
}
.empty h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--ink-900); }
.empty p { font-size: 13px; color: var(--ink-500); margin: 0 0 18px; }

/* ---------- 时间线（现代竖排，不叫长卷） ---------- */
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--brand-100); }
.tl-item { position: relative; margin-bottom: 20px; }
.tl-item::before {
  content: ""; position: absolute; left: -21px; top: 6px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-050);
}
.tl-item .when { font-size: 12px; color: var(--ink-300); margin-bottom: 3px; }
.tl-item .what { font-size: 14px; color: var(--ink-700); line-height: 1.65; }
.tl-item .what b { color: var(--ink-900); font-weight: 600; }

/* ---------- 进度 / 步骤 ---------- */
.prog { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 999px; background: var(--v37-brand-grad); }
.steps { display: flex; gap: 0; margin-bottom: var(--s-5); }
.step { flex: 1; text-align: center; position: relative; font-size: 12.5px; color: var(--ink-300); }
.step::before {
  content: attr(data-n); display: grid; place-items: center; margin: 0 auto 8px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2);
  color: var(--ink-500); font-weight: 700; font-size: 12px;
}
.step.on { color: var(--brand-700); font-weight: 600; }
.step.on::before { background: var(--v37-brand-grad); color: #fff; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px);
  height: 1px; background: var(--line);
}

/* ---------- 动态卡 / 评论 ---------- */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); margin-bottom: var(--s-4); }
.post-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-h .av { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-100); display: grid; place-items: center; color: var(--brand-700); font-weight: 700; font-size: 14px; }
.post-h .who b { display: block; font-size: 14px; color: var(--ink-900); }
.post-h .who span { font-size: 12px; color: var(--ink-300); }
.post p { font-size: 14px; color: var(--ink-700); line-height: 1.8; margin: 0 0 12px; }
.post img.attach { display: block; width: 100%; height: 168px; object-fit: cover; border-radius: var(--r-sm); background: var(--brand-050); margin-bottom: 12px; }
.post-f { display: flex; gap: 18px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12.5px; color: var(--ink-500); }
.post-f button { border: 0; background: none; color: inherit; font-family: inherit; cursor: pointer; padding: 0; }
.post-f button:hover { color: var(--brand-600); }

/* 对话气泡 */
.bubble { max-width: 76%; padding: 11px 15px; border-radius: var(--r-bubble); font-size: 14px; line-height: 1.75; margin-bottom: 14px; }
.bubble.u { margin-left: auto; background: var(--brand-600); color: #fff; border-bottom-right-radius: var(--r-tail); }
.bubble.a { background: var(--surface-2); color: var(--ink-700); border-bottom-left-radius: var(--r-tail); }
.bubble .src { font-size: 11.5px; opacity: .75; margin-top: 8px; }

/* 照片墙 */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery img.ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--brand-050); }
.banner img { display: block; width: 100%; height: 196px; object-fit: cover; border-radius: var(--r-md); }
.banner { margin-bottom: var(--s-4); position: relative; }
.banner .cap {
  position: absolute; left: 18px; bottom: 16px; color: #fff; font-size: 13px;
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
}

/* 分段控件 */
.segbar { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--r-sm); margin-bottom: var(--s-5); width: fit-content; max-width: 100%; overflow-x: auto; }
.segbar button {
  border: 0; background: none; font-family: inherit; font-size: 13px; color: var(--ink-500);
  padding: 7px 15px; border-radius: var(--r-xs); cursor: pointer; white-space: nowrap;
}
.segbar button.on { background: var(--surface); color: var(--brand-700); font-weight: 600; box-shadow: var(--sh-1); }

/* 卡头文字 tab：轻量切换（老板 2026-11-20 令，替换智库页胶囊 segbar，放「查看进度」位置） */
.ltab { display: inline-flex; gap: 14px; align-items: center; }
.ltab button {
  border: 0; background: none; font-family: inherit; font-size: 13px; color: var(--ink-400);
  cursor: pointer; padding: 2px 0 4px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.ltab button.on { color: var(--brand-700); font-weight: 600; border-bottom-color: var(--brand-600); }

/* ---------- 浮层：现代卡片，不用卷轴朱印 ---------- */
.scrim {
  position: fixed; inset: 0; background: rgba(31, 35, 33, .42); z-index: 90;
  display: grid; place-items: center; padding: 20px;
}
.scrim[hidden] { display: none; }
.modal {
  position: relative;
  width: min(440px, 100%); background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: var(--s-5); border: 1px solid var(--line);
}
.modal h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--ink-900); }
/* 弹窗右上角关闭叉（2026-11-19 老板令） */
.modal-x {
  position: absolute; top: 14px; right: 16px; width: 30px; height: 30px;
  border: 0; background: none; font-size: 20px; line-height: 1;
  color: var(--ink-300); cursor: pointer; border-radius: var(--r-sm);
}
.modal-x:hover { color: var(--ink-900); background: var(--surface-2); }
.modal p { font-size: 13.5px; color: var(--ink-500); line-height: 1.7; margin: 0 0 18px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; }
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 9px; padding: 11px 18px;
  background: var(--ink-900); color: #fff; border-radius: 999px;
  font-size: 13.5px; box-shadow: var(--sh-2);
  opacity: 1; transition: opacity .5s ease, transform .5s ease;
}
.toast.out { opacity: 0; transform: translateX(-50%) translateY(6px); pointer-events: none; }
.toast[hidden] { display: none; }
.toast .d { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-400); }
.toast.err .d { background: var(--seal); }

/* 头像修改框 */
.av-edit { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.av-edit .big { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--brand-100); display: grid; place-items: center; color: var(--brand-700); font-size: 26px; font-weight: 700; }
.av-edit .ops { flex: 1; }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line); padding: var(--s-5) var(--s-7);
  font-size: 12px; color: var(--ink-300); text-align: center;
  background: var(--surface);
}
.foot a { color: var(--ink-500); text-decoration: none; margin: 0 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-search { display: none; }
}
@media (max-width: 820px) {
  .topbar { padding: 0 var(--s-4); gap: var(--s-3); }
  .tb-nav { gap: var(--s-4); }
  .side { display: none; }
  .main-inner { padding: var(--s-5) var(--s-4) 64px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
  .head-actions { justify-content: flex-start; }
  .fld-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .foot { padding: var(--s-4); }
  .scrim { place-items: end center; padding: 0; }
  .modal {
    width: 100%; max-width: none; border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: var(--s-5) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
    border-left: 0; border-right: 0; border-bottom: 0;
  }
  .toast { bottom: 22px; max-width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 布局工具类（避免散落内联样式） ---------- */
.u-mb18 { margin-bottom: 18px; }
.u-mb12 { margin-bottom: 12px; }
.u-mt8 { margin-top: 8px; }
.u-mt10 { margin-top: 10px; }
.u-hint { margin-top: 8px; font-size: 12px; color: var(--ink-300); }
.u-sub { font-size: 12px; color: var(--ink-500); margin-top: 6px; }
.u-panel { background: var(--surface-2); border-radius: var(--r-sm); padding: 18px; text-align: center; margin-bottom: 18px; }
.u-panel-lg { background: var(--surface-2); border-radius: var(--r-sm); padding: 24px; text-align: center; }
.u-big { font-size: 26px; font-weight: 700; color: var(--brand-700); }
.u-q { font-size: 22px; font-weight: 700; color: var(--ink-900); margin-bottom: 8px; }
.u-desc { font-size: 13px; color: var(--ink-500); margin-bottom: 18px; }
.u-body { font-size: 14.5px; line-height: 1.9; margin: 0; }
.u-muted { font-size: 13.5px; color: var(--ink-500); margin: 0 0 14px; }
.u-flex { display: flex; align-items: center; gap: 12px; }
.u-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.u-flex1 { flex: 1; }
.u-col { flex: 1; min-width: 260px; }
.u-minput { flex: 1; min-width: 240px; }
.u-brand { color: var(--brand-700); }
.u-center-v { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.u-avbox { flex: none; text-align: center; }
.u-av80 { width: 80px; height: 80px; font-size: 26px; border-radius: 50%; }
.u-avmt { margin-top: 10px; }
.u-mb18b { margin-bottom: 18px; }
.u-radios-mb { margin-bottom: 18px; }

/* ============================================================
   v48 最小增量：追加到线上 app.css 末尾，不新建 CSS 文件、不另起组件体系。
   只补现网确实没有的四组：门厅修饰 / 宽浮层 / 分页条 / 键值行。
   色值全部取 theme.css 变量，深浅色自动兼容。
   ============================================================ */
.hall-banner img { height: 220px; }
.hall-banner .cap { font-size: 15px; letter-spacing: .08em; }
.hall-intro { padding: 28px 30px; }
.hall-intro .u-q { margin-bottom: 12px; }
.tile.hall .cover { height: 176px; }
.tile.hall .body { padding: 20px 22px 24px; }
.tile.hall h3 { font-size: 19px; margin-bottom: 10px; }
.hall-mark {
  display:inline-block; font-size:11.5px; font-weight:700; letter-spacing:.14em;
  color:var(--brand-600); background:var(--brand-050); border-radius:999px;
  padding:3px 10px; margin-bottom:10px;
}
[data-theme="dark"] .hall-mark { color:var(--brand-400); }
.tile.hall .hall-say { font-size:13.5px; line-height:1.85; color:var(--ink-700); margin:0 0 14px; }
.hall-points { list-style:none; margin:0 0 18px; padding:0; }
.hall-points li { position:relative; padding-left:16px; font-size:12.5px; color:var(--ink-500); line-height:1.8; margin-bottom:4px; }
.hall-points li::before { content:""; position:absolute; left:2px; top:9px; width:5px; height:5px; border-radius:50%; background:var(--accent-500); }
.hall-cta { display:flex; align-items:center; gap:6px; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:16px; }
.modal.wide { width:min(760px, 94vw); max-height:88vh; overflow:auto; }
.modal.wide .modal-f { position:sticky; bottom:0; background:var(--surface); padding:12px 0 2px; border-top:1px solid var(--line); }
.pager { display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end; margin-top:12px; font-size:12.5px; color:var(--ink-500); }
.pager .pgb { border:1px solid var(--line); background:var(--surface); color:var(--ink-700); border-radius:8px; padding:4px 9px; font-size:12px; }
.pager .pgb.on { background:var(--brand-600); color:#fff; border-color:var(--brand-600); }
.pager select { border:1px solid var(--line); background:var(--surface); color:var(--ink-700); border-radius:8px; padding:4px 6px; font-size:12px; }
.kv { display:flex; flex-wrap:wrap; gap:6px 16px; font-size:12.5px; color:var(--ink-500); }
.kv b { color:var(--ink-700); font-weight:600; }
.fld select[multiple] { min-height:132px; }
.fld select[multiple] optgroup { font-weight:600; }
.ucount { font-size:12px; color:var(--ink-500); margin-top:4px; }
.umodes { margin-bottom:14px; }
@media (max-width:820px){
  .hall-banner img{height:160px} .hall-intro{padding:20px 18px}
  .tile.hall .cover{height:140px} .tile.hall .body{padding:16px 16px 20px}
  .modal.wide{width:96vw}
}

/* ============================================================
   我的文档库 · 「我的库」横条列表：56×35 缩略图融合增量
   ------------------------------------------------------------
   用法：追加到线上 app.css 末尾即可，不改 .rows / .row 原有规则。
   依据：app.css 261-277 行 .rows/.row、theme.css Design Token。
   约定：色值全部引用变量，深色由 [data-theme="dark"] 自动翻，零硬编码。
   形态：仍是横条，只调融合细节；行高、边框、圆角容器一律不动。
   ============================================================ */

/* 只在「我的库」列表挂修饰类，站内其它 .rows 不受影响 */
.rows--lib .row {
  gap: var(--s-4);                 /* 16px：图从 36 方变 56 横，原 12px 略挤 */
  padding: 14px 18px;              /* 与原 .row 完全一致，行高不变 */
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.rows--lib .row:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: -2px;
}

/* 56×35 缩略图：与封面 640×400 同为 16:10，object-fit 零裁切、无需另切 @2x */
.rows--lib .thumb {
  width: 56px; height: 35px;
  aspect-ratio: 16 / 10;
  flex: none; display: block;
  object-fit: cover;
  border-radius: var(--r-xs);      /* 6px；外框 .rows 是 --r-md 12px，两级层次 */
  background: var(--brand-050);    /* 图未加载时不留白洞 */
  box-shadow: 0 0 0 1px var(--line);   /* 外描边，不吃尺寸，深色跟变量翻 */
  transition: box-shadow var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}
.rows--lib .row:hover .thumb {
  box-shadow: 0 0 0 1px var(--line-strong), var(--sh-1);
  filter: saturate(1.06);          /* 不做 scale：56×35 一放大就糊且压文字 */
}

/* 文字块：两行节奏固定，与 35px 图垂直居中对齐 */
.rows--lib .tx { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.rows--lib .tx b {
  font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--ink-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rows--lib .tx .meta {
  font-size: 12.5px; line-height: 1.45; color: var(--ink-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rows--lib .tx .meta .cat { color: var(--ink-700); }
.rows--lib .tx .meta .sep { color: var(--ink-300); margin: 0 6px; }

/* 时间从副标题里拿出来靠右；与 .tbl .t-time 同口径等宽数字 */
.rows--lib .when {
  flex: none; font-size: 12px; color: var(--ink-300);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* 窄屏回落用：同一份时间文案，宽屏隐藏，不重复取值、不引 JS */
.rows--lib .tx .when-inline { display: none; }

/* 「进库」徽章：chip 的轻 + 可点的暗示 */
.rows--lib .go {
  flex: none;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; text-decoration: none;
  background: var(--brand-050); color: var(--brand-700);
  box-shadow: inset 0 0 0 1px var(--brand-100);
  transition: background var(--dur-fast) var(--ease);
}
.rows--lib .row:hover .go { background: var(--brand-100); }

/* 库状态 chip（可选增量）：共享中 / 待审；沿用 .chip 四色，不新增色 */
.rows--lib .row .chip { margin-left: var(--s-2); }
.rows--lib .row .chip.wait { background: var(--accent-100); color: var(--accent-700); }

/* 820 以下侧栏收起、主区变窄；560 以下时间折回副标题，避免四段挤成一团 */
@media (max-width: 560px) {
  .rows--lib .row { padding: 12px 14px; gap: var(--s-3); }
  .rows--lib .when { display: none; }          /* 右侧时间收起 */
  .rows--lib .tx .meta { display: flex; align-items: center; min-width: 0; }
  .rows--lib .tx .meta .cat,
  .rows--lib .tx .meta .sep { display: none; } /* 分类让位，进库后仍可见 */
  .rows--lib .tx .when-inline { display: inline; order: -1; }
  .rows--lib .tx .when-inline::after { content: "·"; color: var(--ink-300); margin: 0 6px; }
  .rows--lib .row .chip { display: none; }     /* 窄屏优先保库名与时间 */
}

@media (prefers-reduced-motion: reduce) {
  .rows--lib .row, .rows--lib .thumb, .rows--lib .go { transition: none; }
}


/* 老板 2026-11-20 追加：我的库横条 meta 里带建库「说明」（选填，有则显示，悬停看全文；比分类淡一档） */
.rows--lib .tx .meta .desc { color: var(--ink-500); }

/* 老板 2026-11-20 08:1x 令：卡头文字 tab 与下方列表之间留呼吸空隙，不粘连 */
.ltab { margin-bottom: 6px; }

/* 我的库横条：缩略图留在行首左侧（56×35 圆角），与文字间距再松一档；悬停微提亮 */
.rows--lib .row { padding: 16px 18px; }
.rows--lib .row:hover { background: var(--surface-hover, rgba(0,0,0,.02)); }

/* 老板 2026-11-20 08:2x 令：库列表横条「上传到本库」二级胶囊——与进库并排、弱一档不抢眼 */
.rows--lib .go.up { background: transparent; color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand-100); }
.rows--lib .row:hover .go.up { background: var(--brand-050); }

/* 修复：.btn 等组件的 display 会顶掉 HTML hidden 属性的默认 display:none，导致带 hidden 的按钮照样显示
   （老板 2026-11-20 08:2x 报：主页不该显示的「返回上一层」一直挂着）。全局兜底，一了百了。 */
[hidden] { display: none !important; }
