/* ==========================================================
 * 墨迹博客（niuren.inkblog）前台样式
 *
 * 设计令牌来源：用户确认的三套首页最终渲染图（早期静态稿不再作为视觉基准）
 * 布局骨架：固定左侧栏 + 主区（顶栏搜索 / 内容容器 / 页脚），
 *           右栏作为内容容器内的 .cols 第二列，按页决定是否输出。
 * 主题色可被后台「主题色」配置覆盖，覆盖点在 layouts/home.blade.php
 * 的内联 <style> 中重写 --ib-accent 及其派生变量。
 * 禁止在本文件之外散落公共样式块。
 * ========================================================== */

/* ============ 设计令牌 ============ */
:root{
  --ib-accent:#3B82F6;
  --bg:#F5F7FA; --card:#FFFFFF; --card2:#F7F9FC; --border:#E7EBF0; --border2:#DDE3EC;
  --text:#1F2937; --body:#4B5563; --muted:#8A94A6;
  --accent:var(--ib-accent); --accent-soft:#EFF6FF; --accent-border:#DBEAFE; --accent-deep:#2563EB;
  --ok:#2F9E6E; --danger:#E06C5A; --warn:#D9A13B;
  --radius:14px; --radius-sm:10px;
  --shadow:0 6px 24px rgba(31,52,82,.05);
  --shadow-hover:0 12px 34px rgba(28,43,66,.09);
  --font:"Inter","PingFang SC","Source Han Sans SC","Noto Sans SC","Microsoft YaHei",-apple-system,sans-serif;
  --sidebar-w:215px; --col-side:375px;
}
[data-theme="dark"]{
  --ib-accent:#5B8CFA;
  --bg:#0F1520; --card:#171E2C; --card2:#141B28; --border:#253044; --border2:#2E3B53;
  --text:#E7ECF5; --body:#AEB8CC; --muted:#7E8AA3;
  --accent:var(--ib-accent); --accent-soft:#1C2A45; --accent-border:#2C4066; --accent-deep:#7BA3FF;
  --ok:#3FBF8A; --danger:#E87E6D; --warn:#E0B457;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.35);
  --shadow-hover:0 12px 34px rgba(0,0,0,.45);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--bg);color:var(--text);font-size:14px;line-height:1.7;-webkit-font-smoothing:antialiased;letter-spacing:.01em}
a{color:inherit;text-decoration:none}
button{font-family:inherit;border:none;background:none;cursor:pointer;color:inherit}
img{display:block;max-width:100%}
.is-image-broken{display:none!important}
.image-fallback-text{grid-area:1/1;display:grid;place-items:center;line-height:1}
::selection{background:var(--accent-soft);color:var(--accent-deep)}
/* 键盘导航焦点可见性：各输入框另有 border-color 焦点反馈，此处对 :focus-visible 统一补描边，
   鼠标点击不触发该伪类，因此不改变原有视觉 */
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* 移除 iOS 点击时的灰色遮罩，改由 :active 提供按压反馈 */
a,button{-webkit-tap-highlight-color:transparent}
a:active,button:active{opacity:.78}
/* 细滚动条：还原设计稿干净观感（侧栏通栏白底不被粗滚动条破坏） */
*{scrollbar-width:thin;scrollbar-color:var(--border2) transparent}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:var(--border2);border-radius:99px}
::-webkit-scrollbar-thumb:hover{background:var(--muted)}
::-webkit-scrollbar-track{background:transparent}

/* ============ 布局骨架：固定侧栏 + 主区 ============ */
.sidebar{position:fixed;left:0;top:0;bottom:0;width:var(--sidebar-w);background:var(--card);border-right:1px solid var(--border);padding:10px 16px 12px;z-index:20;display:flex;flex-direction:column;overflow-y:auto}
.main{min-width:0;margin-left:var(--sidebar-w);min-height:100vh;padding:18px 30px 40px;display:flex;flex-direction:column;--footer-bleed:40px}
/* 内容容器不再限宽：全前台（首页与各业务页）统一铺满主区可用宽度，仅由 .main 的内边距留白 */
.container{min-width:0;width:100%;max-width:none;margin:0 auto;flex:1;display:flex;flex-direction:column;gap:18px}
/* 内容双列：主列 + 右栏；.cols.wide 为无右栏的整宽页 */
.cols{display:grid;grid-template-columns:minmax(0,1fr) var(--col-side);gap:24px;align-items:start}
.cols.wide{grid-template-columns:minmax(0,1fr)}
.col-main,.col-side{min-width:0;display:flex;flex-direction:column;gap:18px}
.col-side{position:sticky;top:18px}

/* ============ 左侧导航 ============ */
.logo{display:flex;align-items:center;gap:10px;padding:2px 8px 18px}
.logo-mark{width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#60A5FA,#2563EB);display:grid;place-items:center;color:#fff;font-weight:700;font-size:15px;flex:none;box-shadow:0 4px 10px rgba(59,130,246,.28)}
.logo b{display:block;font-size:16.5px;font-weight:700;letter-spacing:.01em}
.logo>span{min-width:0}
.logo small{display:block;color:var(--muted);font-size:10.5px;margin-top:-1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.logo-mark img{grid-area:1/1;z-index:1;width:100%;height:100%;object-fit:cover;border-radius:inherit}
/* 已上传 Logo 图片时去掉渐变底与投影，按设计稿直接展示原始图形 */
.logo-mark.plain{background:none;box-shadow:none}
.logo-mark.plain img{object-fit:contain;border-radius:0}
.logo-mark.is-image-fallback{background:linear-gradient(135deg,#60A5FA,#2563EB);box-shadow:0 4px 10px rgba(59,130,246,.28)}
.avatar img{grid-area:1/1;z-index:1;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.nav{display:flex;flex-direction:column;gap:2px}
.nav-group{margin:8px 0 3px;padding:0 10px;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}
.nav-group:first-child{margin-top:2px}
.nav-group svg{width:12px;height:12px;margin-left:auto;opacity:.7}
.nav-item{display:flex;align-items:center;gap:10px;height:34px;margin:1px 0;padding:0 12px;border-radius:10px;color:var(--body);font-size:14px;transition:background .16s,color .16s;position:relative}
.nav-item svg{width:17px;height:17px;flex:none;opacity:.9}
.nav-item:hover{background:var(--card2);color:var(--text)}
.nav-item.active{background:var(--accent-soft);color:var(--accent);font-weight:600}
.sidebar-footer{margin-top:auto;padding:12px 8px 2px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:8px}
.side-set{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--body)}
.side-set svg{width:15px;height:15px;opacity:.85}
/* 主题切换：单按钮内含日/月双图标（设计稿两枚并排），按当前主题高亮其一 */
.theme-pair{display:inline-flex;align-items:center;gap:3px;padding:3px;border-radius:99px;background:var(--card2);border:1px solid var(--border)}
.theme-pair .i-sun,.theme-pair .i-moon{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:var(--muted);transition:background .15s,color .15s}
.theme-pair .i-sun svg,.theme-pair .i-moon svg{width:13px;height:13px}
.theme-pair .i-sun{color:var(--accent-deep);background:var(--accent-soft)}
[data-theme="dark"] .theme-pair .i-sun{color:var(--muted);background:none}
[data-theme="dark"] .theme-pair .i-moon{color:#fff;background:var(--accent)}

/* ============ 顶栏 ============ */
.topbar{display:flex;align-items:center;gap:12px;padding:0 0 22px}
.topbar .container-row{display:flex;align-items:center;gap:12px;width:100%;max-width:none;margin:0 auto}
.search-form{min-width:0;position:relative;width:430px;max-width:46vw}
.search-form input{width:100%;height:40px;border:1px solid var(--border);border-radius:99px;background:var(--card);padding:0 40px 0 18px;font-family:inherit;font-size:13px;color:var(--text);outline:none;box-shadow:0 2px 10px rgba(30,50,80,.03);transition:border-color .18s,box-shadow .18s}
.search-form input::placeholder{color:var(--muted)}
.search-form input:focus{border-color:var(--accent-border);box-shadow:0 0 0 3px var(--accent-soft)}
.search-form button{position:absolute;right:5px;top:5px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:var(--muted);transition:color .15s,background .15s}
.search-form button:hover{color:var(--accent-deep);background:var(--accent-soft)}
.search-form button svg{width:15px;height:15px}
.top-spacer{flex:1}
.top-icon{position:relative;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:var(--body);transition:background .15s,color .15s}
.top-icon:hover{background:var(--card);color:var(--accent-deep)}
.top-icon svg{width:18px;height:18px}
.top-icon .dot{position:absolute;top:8px;right:9px;width:7px;height:7px;border-radius:50%;background:var(--danger);border:1.5px solid var(--bg)}
.avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#93C5FD,#3B82F6);color:#fff;display:grid;place-items:center;font-weight:600;font-size:13px;flex:none;overflow:hidden}

/* 顶栏通知铃铛（管理员登录态）：真实待办角标 + 下拉面板，访客侧不渲染 */
.notify{position:relative;flex:none}
.notify-toggle{cursor:pointer}
.notify-toggle[aria-expanded="true"]{background:var(--card);color:var(--accent-deep)}
.notify-badge{position:absolute;top:1px;right:-2px;min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:var(--danger);color:#fff;font-size:10.5px;font-weight:700;line-height:15px;text-align:center;border:1.5px solid var(--bg);box-sizing:border-box}
.notify-panel{position:absolute;top:calc(100% + 10px);right:-6px;z-index:70;width:292px;max-width:86vw;padding:8px;border-radius:var(--radius);background:var(--card);border:1px solid var(--border);box-shadow:var(--shadow-hover)}
.notify-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px 10px;font-size:12.5px;font-weight:700;color:var(--text)}
.notify-head-count{font-size:11.5px;font-weight:500;color:var(--muted)}
.notify-item{display:block;width:100%;text-align:left;padding:9px 10px;border-radius:var(--radius-sm);transition:background .15s}
.notify-item:hover{background:var(--card2)}
.notify-item-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:600;color:var(--text)}
.notify-item-count{min-width:20px;padding:0 6px;border-radius:99px;background:var(--accent-soft);color:var(--accent-deep);font-size:11.5px;font-weight:700;line-height:18px;text-align:center}
.notify-item-summary{display:block;margin-top:3px;font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notify-empty{padding:22px 10px;text-align:center;font-size:12.5px;color:var(--muted)}

/* 待办通知 layui 弹层（管理员在前台处理待审核内容）
 * 弹层框架样式来自 inkblog-layer.css（提取的原生 layer 皮肤，不含 layui 全局 reset），
 * 此处只覆盖弹层内容列表与少量皮肤变量，使外观贴合博客主题 */
.ib-layer.layui-layer{border-radius:var(--radius);overflow:hidden}
.ib-layer .layui-layer-title{background:var(--card2);color:var(--text);font-size:13.5px;font-weight:700}
.ib-layer .layui-layer-setwin .layui-layer-close{color:var(--muted)}
.ib-layer .layui-layer-setwin .layui-layer-close:hover{color:var(--text);opacity:1}
.ib-layer .layui-layer-btn a{background:var(--card2);border:1px solid var(--border);color:var(--body);border-radius:8px}
.ib-layer .layui-layer-btn0{background:var(--danger);border-color:var(--danger);color:#fff}
.ib-pending{padding:12px 14px}
.ib-pending-list{max-height:56vh;overflow:auto}
.ib-pending-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 2px;border-bottom:1px solid var(--border2)}
.ib-pending-row:last-child{border-bottom:none}
.ib-pending-main{min-width:0;flex:1}
.ib-pending-name{font-size:13px;font-weight:600;color:var(--text)}
.ib-pending-text{margin-top:2px;font-size:12.5px;color:var(--body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ib-pending-meta{margin-top:2px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.ib-pending-time{font-size:11.5px;color:var(--muted)}
.ib-pending-ip{flex:none;max-width:45%;font-size:11.5px;color:var(--muted);text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ib-pending-ops{display:flex;gap:6px;flex:none;padding-top:2px}
.ib-op-btn{padding:3px 10px;border-radius:8px;border:1px solid var(--border);background:var(--card2);font-size:12px;color:var(--body);transition:border-color .15s,color .15s}
.ib-op-btn:hover{border-color:var(--accent);color:var(--accent)}
.ib-op-btn:disabled{opacity:.5;cursor:not-allowed}
.ib-op-delete:hover{border-color:var(--danger);color:var(--danger)}
.ib-pending-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}
.ib-pending-pager{display:flex;gap:6px}
.ib-paging-btn{padding:3px 10px;border-radius:8px;border:1px solid var(--border);background:var(--card2);font-size:12px;color:var(--body);transition:border-color .15s,color .15s}
.ib-paging-btn:hover{border-color:var(--accent);color:var(--accent)}
.ib-paging-btn:disabled{opacity:.45;cursor:not-allowed}
.ib-pending-tip{padding:26px 6px;text-align:center;font-size:12.5px;color:var(--muted)}
.ib-pending-error{color:var(--danger)}
.ib-pending-detail{padding:16px 18px}
.ib-pending-detail-name{font-size:14px;font-weight:700;color:var(--text)}
.ib-pending-detail-time{margin-top:2px;font-size:12px;color:var(--muted)}
.ib-pending-detail-content{margin-top:10px;padding:12px;border-radius:var(--radius-sm);background:var(--card2);font-size:13px;color:var(--body);line-height:1.8;white-space:pre-wrap;word-break:break-word}
.ib-pending-detail-content a{color:var(--accent);word-break:break-all}
.ib-pending-detail-content a:hover{text-decoration:underline}

/* ============ 通用卡片 ============ */
/* 设计稿卡片为纯白 + 柔和投影，无可见描边；描边仅保留在深色主题用于区分层级 */
.card{background:var(--card);border:none;border-radius:var(--radius);box-shadow:var(--shadow);transition:box-shadow .2s ease}
.card:hover{box-shadow:var(--shadow-hover)}
[data-theme="dark"] .card{border:1px solid var(--border)}
.card.flush{padding:0}
.sec-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 22px 12px}
.sec-head h2{font-size:16px;font-weight:700;display:flex;align-items:center;gap:8px}
.sec-head h2 svg{width:16px;height:16px;color:var(--accent)}
.sec-head .more{font-size:12.5px;color:var(--accent);display:inline-flex;align-items:center;gap:4px}
.sec-head .more:hover{text-decoration:underline}
.sec-head .more svg{width:13px;height:13px}
.card-pad{padding:18px 22px}
.tag-pill{display:inline-flex;align-items:center;flex:none;white-space:nowrap;font-size:11.5px;color:var(--accent);background:var(--accent-soft);border-radius:6px;padding:1px 9px;line-height:1.7}
.tag-pill svg{width:12px;height:12px;flex:none;margin-right:4px}
a.tag-pill:hover{color:var(--accent-deep);background:var(--accent-border)}
.empty-tip{margin:4px 0;padding:34px 18px;text-align:center;color:var(--muted);font-size:13px;border:1px dashed var(--border2);border-radius:12px;background:linear-gradient(145deg,var(--card2),var(--card))}

/* ============ 首页 Hero ============ */
.hero{position:relative;border-radius:14px;overflow:hidden;min-height:226px;padding:26px 48px;color:#fff;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(100deg,#1D4ED8 0%,#3B82F6 55%,#60A5FA 100%)}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(29,78,216,.92) 0%,rgba(59,130,246,.55) 48%,rgba(59,130,246,.05) 80%);pointer-events:none}
.hero-main{position:relative;z-index:1;min-width:0}
.hero-greet{font-size:12.5px;opacity:.9}
.hero h1{font-size:32px;font-weight:800;letter-spacing:-.02em;margin:4px 0 6px}
.hero p{font-size:13px;opacity:.92;max-width:620px}
.hero-stats{display:flex;margin-top:16px}
.hstat{padding:0 24px;border-left:1px solid rgba(255,255,255,.28)}
.hstat:first-child{padding-left:0;border-left:none}
.hstat small{display:block;font-size:11.5px;opacity:.75;margin-bottom:2px}
.hstat b{font-size:18px;font-weight:700}
.hstat b span{font-size:11.5px;font-weight:500;opacity:.85;margin-left:3px}
.hero-slogan{position:absolute;right:46px;bottom:32px;z-index:1;text-align:right;font-size:19px;line-height:1.6;font-family:"STKaiti","KaiTi","BiauKai",serif;transform:rotate(-3deg);opacity:.96;text-shadow:0 1px 6px rgba(0,0,0,.25);white-space:pre-line}
.hero-slogan::after{content:"";display:block;height:2px;margin:6px 0 0 auto;width:82%;border-radius:99px;background:rgba(255,255,255,.75);transform:rotate(-1deg)}
.hero-slogan small{display:block;font-size:12px;opacity:.8;margin-top:4px}

/* ============ 栏目 Hero（相册 / 随记 / 空间 / 关于） ============ */
.page-hero{position:relative;isolation:isolate;border-radius:16px;overflow:hidden;padding:34px 40px;min-height:164px;display:flex;flex-direction:column;justify-content:center;box-shadow:var(--shadow)}
.page-hero h1{font-size:26px;font-weight:800;letter-spacing:-.02em;margin:0 0 4px}
.page-hero p{font-size:13px;margin:0}
.page-hero .hero-act{position:absolute;right:36px;bottom:30px}
.page-hero>h1,.page-hero>p,.page-hero>.hero-act{position:relative;z-index:2}
.page-hero__actions{position:relative;z-index:2;display:flex;align-items:center;gap:10px;margin-top:14px}
.page-hero__actions .btn.primary{border-color:rgba(255,255,255,.28);box-shadow:0 8px 22px rgba(10,38,80,.2)}
.page-hero.blue{background:linear-gradient(100deg,#1D4ED8 0%,#3B82F6 60%,#7DB2F8 100%);color:#fff}
.page-hero.blue p{opacity:.9}
.page-hero.deep{background:linear-gradient(100deg,#122740 0%,#1E3A5F 60%,#274b73 100%);color:#fff}
.page-hero.deep p{opacity:.85}
.page-hero.light{background:var(--card);border:1px solid var(--border);box-shadow:var(--shadow);color:var(--text)}
.page-hero.light p{color:var(--muted)}
.page-hero .ph-img{position:absolute;right:0;top:0;bottom:0;width:72%;height:100%;object-fit:cover;object-position:center;pointer-events:none;z-index:0}
.page-hero .ph-img.mask-l{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 42%);mask-image:linear-gradient(90deg,transparent 0,#000 42%)}
.page-hero .ph-img.mask-fade{opacity:.82;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 38%);mask-image:linear-gradient(90deg,transparent 0,#000 38%)}
.page-hero.light .ph-img{opacity:.9}

/* ============ 文章列表 ============ */
.post-list{padding:0 22px 8px}
.post-item{display:grid;grid-template-columns:205px minmax(0,1fr) 28px;gap:20px;padding:16px 0;border-bottom:1px solid var(--border);position:relative}
.post-item:last-child{border-bottom:none}
/* 无封面时缩略图节点不渲染，主列与 ⋯ 按钮占满整行 */
.post-item.no-thumb{grid-template-columns:minmax(0,1fr) 28px}
.post-thumb{width:205px;height:92px;border-radius:8px;overflow:hidden;flex:none;background:var(--card2)}
.post-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.post-item:hover .post-thumb img{transform:scale(1.03)}
/* 无封面占位块：按日志 id 取确定性渐变，静态稿同款 CSS 占位思路 */
.thumb-ph{position:relative;display:block}
.thumb-ph::after{content:"";position:absolute;inset:0;background:radial-gradient(120% 90% at 85% 10%,rgba(255,255,255,.38),transparent 60%)}
.ph-0{background:linear-gradient(135deg,#93C5FD,#2563EB)}
.ph-1{background:linear-gradient(135deg,#6EE7B7,#0E9F6E)}
.ph-2{background:linear-gradient(135deg,#FCD34D,#D97706)}
.ph-3{background:linear-gradient(135deg,#C4B5FD,#7C3AED)}
.ph-4{background:linear-gradient(135deg,#FCA5A5,#DC2626)}
.ph-5{background:linear-gradient(135deg,#67E8F9,#0891B2)}
.hot-item .thumb-ph{width:40px;height:30px;border-radius:6px;flex:none}
.post-main{min-width:0}
.post-cat{font-size:11.5px;color:var(--accent);background:var(--accent-soft);border-radius:6px;padding:1px 9px;line-height:1.8;display:inline-block;margin-bottom:6px}
/* 仪表盘式首页「最新日志」把分类胶囊下移到元信息行最右，并按分类取色 */
.post-meta__tags{margin-left:auto;display:inline-flex;align-items:center;gap:6px}
.post-meta .post-cat--pin,.post-meta .post-cat--tone0,.post-meta .post-cat--tone1,.post-meta .post-cat--tone2,.post-meta .post-cat--tone3,.post-meta .post-cat--tone4{margin:0;font-size:10.5px;line-height:1.7;padding:0 8px}
.post-meta .post-cat--pin{color:#B4801F;background:rgba(217,161,59,.18)}
.post-meta .post-cat--tone0{color:#2563EB;background:#EFF6FF}
.post-meta .post-cat--tone1{color:#0E9F6E;background:#E8F8F0}
.post-meta .post-cat--tone2{color:#D97706;background:#FEF6E7}
.post-meta .post-cat--tone3{color:#7C3AED;background:#F3EEFE}
.post-meta .post-cat--tone4{color:#0891B2;background:#E6F7FA}
[data-theme="dark"] .post-meta .post-cat--pin{color:#E0B457;background:#33260F}
[data-theme="dark"] .post-meta .post-cat--tone0{color:#7BA3FF;background:#1C2A45}
[data-theme="dark"] .post-meta .post-cat--tone1{color:#3FBF8A;background:#14301F}
[data-theme="dark"] .post-meta .post-cat--tone2{color:#E0B457;background:#33260F}
[data-theme="dark"] .post-meta .post-cat--tone3{color:#A78BFA;background:#25143F}
[data-theme="dark"] .post-meta .post-cat--tone4{color:#22D3EE;background:#0E2E36}
.post-title{font-size:16px;font-weight:700;line-height:1.5;transition:color .18s}
.post-title a:hover,.post-item:hover .post-title a{color:var(--accent)}
/* 日志状态标识：置顶 / 草稿 / 隐藏 / 加密，紧跟标题展示（日志列表页） */
.post-title__badge{display:inline-block;margin-left:6px;padding:0 6px;border-radius:4px;font-size:11px;font-weight:600;line-height:18px;vertical-align:1px;white-space:nowrap}
.post-title__badge--pinned{color:#B4801F;background:rgba(217,161,59,.18)}
.post-title__badge--draft{color:#D97706;background:#FEF6E7}
.post-title__badge--hidden{color:#6B7280;background:#F3F4F6}
.post-title__badge--password{color:#7C3AED;background:#F3EEFE}
[data-theme="dark"] .post-title__badge--pinned{color:#E0B457;background:#33260F}
[data-theme="dark"] .post-title__badge--draft{color:#E0B457;background:#33260F}
[data-theme="dark"] .post-title__badge--hidden{color:#9CA3AF;background:#2B2F36}
[data-theme="dark"] .post-title__badge--password{color:#A78BFA;background:#25143F}
.post-excerpt{font-size:12.5px;color:var(--muted);margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;margin-top:8px;font-size:11.5px;color:var(--muted)}
.post-meta .who{display:inline-flex;align-items:center;gap:6px;color:var(--body);font-weight:500}
.post-meta .who img{width:18px;height:18px;border-radius:50%;object-fit:cover}
.post-meta svg{width:13px;height:13px;vertical-align:-2px;margin-right:4px}
/* meta 行评论入口链接：列表卡片指向详情页评论区（#comments），详情页 --end 修饰推到行尾并定位到发表表单 */
.post-meta a.post-meta__comments,.post-meta-line a.post-meta__comments{display:inline-flex;align-items:center;transition:color .15s}
.post-meta a.post-meta__comments:hover,.post-meta-line a.post-meta__comments:hover{color:var(--accent-deep)}
.post-meta-line .post-meta__comments--end{margin-left:auto}
.post-more{align-self:start;justify-self:end;width:26px;height:26px;border-radius:7px;display:grid;place-items:center;color:var(--muted);transition:background .15s,color .15s}
.post-more:hover{background:var(--card2);color:var(--accent-deep)}
.post-more svg{width:15px;height:15px}

/* ============ 分页 ============ */
.page-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:6px;padding:16px 22px;border-top:1px solid var(--border)}
.page-nav a,.page-nav span{min-width:32px;height:32px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid var(--border);background:var(--card);font-size:12.5px;color:var(--body);transition:background .15s,border-color .15s,color .15s}
.page-nav a:hover{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent-deep)}
.page-nav .current{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:500}
.page-nav .gap{border:none;background:none;color:var(--muted)}
.page-nav svg{width:14px;height:14px}
.page-total{text-align:center;font-size:11.5px;color:var(--muted);margin-top:8px}

/* ============ 右栏 ============ */
.aside-block{padding:18px 20px}
.aside-title{font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.aside-title .more{font-size:11.5px;color:var(--muted);font-weight:400;display:inline-flex;align-items:center;gap:3px}
.aside-title .more:hover{color:var(--accent)}
.aside-title .more svg{width:11px;height:11px}
.profile{display:flex;align-items:center;gap:12px}
.profile .avatar.lg{width:42px;height:42px;font-size:15px}
.profile b{font-size:14.5px;font-weight:700;display:block}
.profile p{font-size:11.5px;color:var(--muted)}
.profile-stats{display:flex;margin:14px 0 0;border-top:1px solid var(--border);padding-top:12px;text-align:center}
.profile-stats div{flex:1;border-right:1px solid var(--border)}
.profile-stats div:last-child{border-right:none}
.profile-stats b{display:block;font-size:15px;font-weight:700}
.profile-stats span{font-size:11px;color:var(--muted)}
.quote{margin-top:14px;background:var(--card2);border-radius:10px;padding:11px 14px;font-size:12px;color:var(--body);line-height:1.75}
.quote span{display:block;margin-top:6px;font-size:11px;color:var(--muted);text-align:right}
.cat-row{display:flex;justify-content:space-between;align-items:center;padding:6px 2px;font-size:13px}
.cat-row a{display:inline-flex;align-items:center;gap:8px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cat-row a:hover{color:var(--accent-deep)}
.cat-row .dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:none}
.cat-row em{font-style:normal;font-size:12px;color:var(--muted)}
.tag-cloud{display:flex;flex-wrap:wrap;gap:8px}
.tag-cloud a{font-size:12px;color:var(--body);background:var(--card2);border-radius:99px;padding:5px 14px;transition:background .15s,color .15s}
.tag-cloud a:hover,.tag-cloud a.on{color:var(--accent-deep);background:var(--accent-soft)}
.hot-item{display:flex;gap:10px;align-items:center;padding:7px 0}
.hot-item:hover .t{color:var(--accent-deep)}
.hot-item .no{width:18px;height:18px;border-radius:5px;background:var(--card2);font-size:11px;color:var(--muted);display:grid;place-items:center;flex:none;font-weight:600}
.hot-item:nth-child(1) .no{background:var(--accent);color:#fff}
.hot-item:nth-child(2) .no{background:#7DB2F8;color:#fff}
.hot-item:nth-child(3) .no{background:#F59E0B;color:#fff}
.hot-item img{width:40px;height:30px;border-radius:6px;object-fit:cover;flex:none}
/* 设计稿热门文章：标题与阅读量在缩略图右侧上下堆叠 */
.hot-item .tm{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hot-item .t{font-size:12.5px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hot-item .n{font-size:11px;color:var(--muted);display:inline-flex;align-items:center;gap:3px}
.hot-item .n svg{width:11px;height:11px}
/* 设计稿最近更新为纯行间距排布，无分隔线 */
.upd-item{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:5px 2px;font-size:12.5px}
.upd-item a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.upd-item:hover{color:var(--accent-deep)}
.upd-item time{font-size:11px;color:var(--muted);flex:none}
.upd-thumb-item{display:flex;gap:10px;align-items:center;padding:7px 0}
.upd-thumb-item img{width:40px;height:30px;border-radius:6px;object-fit:cover;flex:none}
.upd-thumb-item .thumb-ph{width:40px;height:30px;border-radius:6px;flex:none}
.upd-thumb-item .tm{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.upd-thumb-item .t{font-size:12.5px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.upd-thumb-item:hover .t{color:var(--accent-deep)}
.upd-thumb-item time{font-size:11px;color:var(--muted)}

/* ============ 底部引言横幅 ============ */
/* ============ 底部引言横幅（设计稿：约 64px 高的细条） ============ */
.quote-banner{position:relative;border-radius:12px;overflow:hidden;background:linear-gradient(95deg,var(--accent-soft) 0%,#EAF3FC 45%,#E3EEFB 100%);padding:12px 24px;min-height:64px;display:flex;align-items:flex-start;gap:12px}
.quote-banner .q-ico{position:relative;z-index:1;flex:none;margin-top:3px;color:var(--accent);display:grid;place-items:center}
.quote-banner .q-ico svg{width:16px;height:16px}
.quote-banner .qb-text{position:relative;z-index:1;flex:1;min-width:0;font-size:12.5px;color:var(--body);line-height:1.7}
.quote-banner .qb-link{position:relative;z-index:1;align-self:center;flex:none;font-size:12.5px;color:var(--accent);display:inline-flex;align-items:center;gap:4px;font-weight:600}
.quote-banner .qb-link:hover{text-decoration:underline}
.quote-banner .qb-link svg{width:13px;height:13px}
/* 设计稿右侧山景照片约占半幅，左缘渐隐 */
.quote-banner .qb-img{position:absolute;right:0;top:0;bottom:0;width:55%;object-fit:cover;opacity:.55;pointer-events:none;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 45%);mask-image:linear-gradient(90deg,transparent 0%,#000 45%)}

/* ============ 页头 / 筛选 / Tab ============ */
.page-head{padding:6px 2px 2px}
.page-head h1{margin:0 0 5px;font-size:26px;font-weight:800;letter-spacing:-.02em}
.page-head p{margin:0;color:var(--muted);font-size:13px}
/* 页头带右侧操作按钮（如友链页的「申请友链」）：标题块可收缩换行，按钮不被压缩 */
.page-head.has-action{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.page-head.has-action .ph-main{min-width:0}
.page-head.has-action>.btn{flex:none}
.filter-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.filter-bar .fb-spacer{flex:1}
.filter-bar .fb-count{font-size:12px;color:var(--muted)}
.btn{border:1px solid var(--border);background:var(--card);border-radius:8px;padding:7px 16px;color:var(--body);cursor:pointer;font-size:12.5px;transition:background .15s,border-color .15s,color .15s;display:inline-flex;align-items:center;gap:6px}
.btn:hover{border-color:var(--accent-border);color:var(--accent-deep)}
.btn.primary,.btn.on{background:var(--accent);color:#fff;border-color:var(--accent);font-weight:500}
.btn svg{width:14px;height:14px}
/* 音乐标签筛选行（对齐旧版 MusicFilter 标签胶囊）：色点取 tag.color（--tag-color 由视图内联传入），
   无色标签色点回落 muted 灰、激活态回落主题色；与 .filter-bar 的横向滚动不同，标签行允许换行 */
.music-tag-bar{flex-wrap:wrap;row-gap:8px}
.tag-pill-btn{display:inline-flex;align-items:center;gap:6px;padding:3px 12px;border:1px solid var(--border);border-radius:999px;font-size:12px;color:var(--muted);background:var(--card);transition:color .18s,border-color .18s,background .18s}
.tag-pill-btn:hover{color:var(--accent-deep);border-color:var(--accent-border)}
.tag-pill-btn .tag-dot{width:8px;height:8px;border-radius:50%;background:var(--tag-color, var(--muted));flex:none}
.tag-pill-btn.on{background:var(--tag-color, var(--accent));border-color:var(--tag-color, var(--accent));color:#fff;font-weight:500}

/* ============ 日志详情页 ============ */
.crumbs{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--muted);flex-wrap:wrap}
.crumbs a:hover{color:var(--accent-deep)}
.crumbs svg{width:12px;height:12px}
.post-view{padding:34px 44px}
.post-view h1{font-size:28px;font-weight:800;line-height:1.4;letter-spacing:-.02em;margin:6px 0 14px}
.post-meta-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;font-size:12.5px;color:var(--muted);padding-bottom:18px;border-bottom:1px solid var(--border)}
.post-meta-line .who{display:inline-flex;align-items:center;gap:7px;color:var(--body);font-weight:500}
.post-meta-line .who img{width:22px;height:22px;border-radius:50%;object-fit:cover}
.post-meta-line svg{width:13px;height:13px;vertical-align:-2px;margin-right:4px}
.post-meta-line .sep{width:4px;height:4px;border-radius:50%;background:var(--border2)}
.post-body{margin-top:20px;font-size:14.5px;color:var(--body);line-height:2.05;word-break:break-word}
.post-body h1,.post-body h2,.post-body h3{color:var(--text);font-weight:700;margin:30px 0 12px;line-height:1.5;scroll-margin-top:24px}
.post-body h1{font-size:21px}
.post-body h2{font-size:18.5px;padding-left:12px;border-left:3px solid var(--accent)}
.post-body h3{font-size:16px}
.post-body p{margin:12px 0}
.post-body a{color:var(--accent-deep);text-decoration:underline;text-underline-offset:2px}
.post-body img{border-radius:10px;border:1px solid var(--border);margin:12px 0;cursor:zoom-in}
.post-body code.inline,.post-body :not(pre) > code{background:var(--card2);border:1px solid var(--border);border-radius:5px;padding:1px 7px;font-size:12.5px;color:var(--accent-deep);font-family:ui-monospace,"SFMono-Regular",Consolas,monospace}
.post-body pre,.post-body pre.code{position:relative;background:#172033;border-radius:10px;padding:42px 20px 18px;overflow-x:auto;font-size:13px;line-height:1.75;color:#DCE8FF;margin:16px 0;border:1px solid #1D2739}
.post-body pre code{background:none;border:none;padding:0;color:inherit;font-size:inherit}
.copy-code{position:absolute;right:10px;top:9px;min-width:54px;height:26px;padding:0 10px;border:1px solid rgba(255,255,255,.16);border-radius:7px;background:rgba(255,255,255,.08);color:#DCE8FF;font-size:11.5px;line-height:1;transition:background .15s,border-color .15s}
.copy-code:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.26)}
.post-body pre::before{content:"";position:absolute;left:15px;top:15px;width:9px;height:9px;border-radius:50%;background:#FF5F57;box-shadow:16px 0 0 #FEBC2E,32px 0 0 #28C840}
.post-body pre[data-lang]::after{content:attr(data-lang);position:absolute;right:76px;top:13px;font-size:11px;letter-spacing:.06em;color:#7E93B4;text-transform:uppercase;pointer-events:none}
.post-body pre code.hljs{display:block;background:none;padding:0;overflow:visible;color:inherit}
.post-body mark{background:rgba(250,204,21,.32);color:inherit;padding:1px 3px;border-radius:4px}
.post-body .footnotes{margin-top:30px;padding-top:6px;font-size:13px;color:var(--muted)}
.post-body .footnotes hr{border-top:1px solid var(--border);margin:0 0 14px}
.post-body .footnotes ol{padding-left:20px;margin:0}
.post-body .footnotes li{margin:5px 0}
.post-body .footnote-ref{font-size:11px;padding:0 2px;text-decoration:none}
.post-body .footnote-backref{margin-left:4px;text-decoration:none}
.post-body .katex-display{overflow-x:auto;overflow-y:hidden;padding:4px 0;margin:14px 0}
.post-body .katex{font-size:1.05em}

/* 图表渲染容器（Mermaid / Markmap / Flowchart / ABC / ECharts / Graphviz） */
.post-body .diagram{display:flex;justify-content:center;margin:24px 0;overflow-x:auto}
.post-body .diagram svg{max-width:100%;height:auto}
.post-body .echarts-diagram{min-height:320px}
.post-body .abc-diagram{overflow-x:auto}
.post-body .abc-diagram svg{max-width:100%;height:auto}
.post-body .abc-diagram .abcjs-container{padding:10px 0}
.post-body .markmap-diagram{display:block;width:100%;min-height:320px}
.post-body .markmap-diagram .markmap{position:relative;width:100%}
.post-body .markmap-diagram .markmap > svg{display:block;width:100%;height:320px}
.post-body .flowchart-diagram{display:block;overflow-x:auto}
.post-body .ib-media-embed{width:100%;margin:24px 0;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius);background:var(--card2);box-shadow:var(--shadow-sm)}
.post-body .iframe__video{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0;background:#081426}
.post-body .ib-media-video{display:block;width:100%;max-height:min(72vh,680px);background:#081426}
.post-body .ib-media-audio{display:block;width:calc(100% - 32px);height:54px;margin:16px;accent-color:var(--primary)}

/* 图表加载态：图表库就绪前显示骨架屏遮罩，渲染完成或超时后由脚本移除 is-diagram-loading */
.post-body .is-diagram-loading{position:relative}
.post-body .is-diagram-loading::after{content:"图表渲染中…";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--card2);border-radius:var(--radius-sm);color:var(--muted);font-size:13px;z-index:10;animation:diagram-pulse 1.5s ease-in-out infinite}
@keyframes diagram-pulse{0%,100%{opacity:.5}50%{opacity:1}}
.reading-progress{position:fixed;z-index:95;left:var(--sidebar-w);top:0;width:0;height:3px;background:linear-gradient(90deg,var(--accent),#60A5FA);box-shadow:0 1px 8px rgba(59,130,246,.35);transition:width .08s linear;pointer-events:none}
.post-body pre .cm,.post-body .cm{color:#6E8299}
.post-body blockquote{border-left:3px solid var(--accent-border);background:var(--accent-soft);border-radius:0 9px 9px 0;padding:12px 16px;margin:16px 0;color:var(--body);font-size:13.5px}
.post-body blockquote cite{display:block;margin-top:6px;font-size:12px;color:var(--muted);font-style:normal}
.post-body ul,.post-body ol{padding-left:22px;margin:12px 0}
.post-body li{margin:5px 0}
.post-body table{width:100%;border-collapse:collapse;margin:14px 0;font-size:13px}
.post-body th,.post-body td{border:1px solid var(--border);padding:7px 11px;text-align:left}
.post-body th{background:var(--card2);color:var(--text);font-weight:600}
.post-body hr{border:none;border-top:1px solid var(--border);margin:22px 0}
.post-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px;padding-top:16px;border-top:1px solid var(--border)}
.post-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}
.action-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 16px;border-radius:99px;background:var(--card2);border:1px solid var(--border);font-size:12.5px;color:var(--body);transition:background .15s,border-color .15s,color .15s}
.action-btn:hover{border-color:var(--accent-border);color:var(--accent-deep)}
.action-btn.on{background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent-deep)}
.action-btn svg{width:14px;height:14px}
.action-btn[disabled]{opacity:.5;cursor:not-allowed}
.pager{display:flex;justify-content:space-between;gap:12px;margin-top:18px}
.pager a{flex:1;background:var(--card2);border:1px solid var(--border);border-radius:10px;padding:10px 14px;font-size:12.5px;transition:background .15s,border-color .15s;min-width:0}
.pager a:hover{border-color:var(--accent-border);background:var(--accent-soft)}
.pager .pager-side{font-size:11px;color:var(--muted);display:block}
.pager .pager-title{font-weight:500;color:var(--text);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pager .next{text-align:right}

/* 目录 / 作者 / 相关文章（详情右栏） */
.toc-bar{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin:14px 0 0}
.toc-bar a{color:var(--accent-deep)}
.toc-bar a:hover{text-decoration:underline}
.toc{font-size:12.5px;display:flex;flex-direction:column;gap:2px}
.toc a{display:block;padding:6px 10px;border-radius:7px;color:var(--body);transition:background .15s,color .15s}
.toc a:hover{color:var(--accent-deep);background:var(--accent-soft)}
.toc a.lv2{padding-left:22px;color:var(--muted)}
.toc a.on{color:var(--accent);background:var(--accent-soft);font-weight:500}
.toc hr,.side-card hr{border:none;border-top:1px solid var(--border);margin:12px 0}
.side-card b.side-b{display:block;font-size:13px;font-weight:700;margin-bottom:10px}
.rel-item{display:flex;gap:10px;align-items:center;padding:6px 0}
.rel-item img{width:44px;height:34px;border-radius:6px;object-fit:cover;flex:none}
.rel-item span{font-size:12.5px;line-height:1.5;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rel-item:hover span{color:var(--accent-deep)}

/* ============ 评论 ============ */
.comment-item{display:flex;gap:11px;padding:14px 0;border-bottom:1px solid var(--border);flex-wrap:wrap}
.comment-item:last-of-type{border-bottom:none}
.comment-item .avatar{width:34px;height:34px;font-size:12px;flex:none}
.comment-item b{font-size:13px;font-weight:600}
.comment-item time{font-size:11px;color:var(--muted);margin-left:8px}
.comment-item p{font-size:13px;color:var(--body);margin-top:3px;word-break:break-word}
.comment-form{display:flex;gap:11px;margin-top:14px;flex-wrap:wrap}
.comment-form textarea{flex:1;min-width:220px;resize:none;border:1px solid var(--border);border-radius:10px;padding:10px 13px;font-family:inherit;font-size:13px;background:var(--card2);color:var(--text);outline:none;transition:border-color .15s;min-height:64px}
.comment-form textarea:focus{border-color:var(--accent)}
.comment-submit{align-self:flex-end;background:var(--accent);color:#fff;border-radius:9px;padding:8px 18px;font-size:13px;transition:background .15s}
.comment-submit:hover{background:var(--accent-deep)}
.comment-submit[disabled]{opacity:.6;cursor:not-allowed}
.comment-body{min-width:0;flex:1}
.comment-body .badge{font-size:10.5px;color:var(--accent-deep);background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:99px;padding:0 7px;margin-left:7px}
.comment-body .loc{font-size:11px;color:var(--muted);margin-left:8px}
.comment-children{flex:1 1 100%;margin:4px 0 0 18px;padding-left:12px;border-left:1px solid var(--border)}
.comment-act{margin-top:6px}
.comment-act button{font-size:11.5px;color:var(--accent-deep);background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:9px;padding:3px 11px}
.comment-form input{flex:0 0 170px;border:1px solid var(--border);border-radius:10px;padding:9px 13px;font-family:inherit;font-size:13px;background:var(--card2);color:var(--text);outline:none;transition:border-color .15s}
.comment-form input:focus{border-color:var(--accent)}
.comment-form .full{flex:1 1 100%;font-size:12px;color:var(--muted)}

/* 加密日志解锁 */
.lock-box{max-width:420px;margin:40px auto;text-align:center;padding:38px 30px}
.lock-ico{width:56px;height:56px;border-radius:16px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;margin:0 auto 16px}
.lock-ico svg{width:26px;height:26px}
.lock-box h1{font-size:19px;margin-bottom:6px}
.lock-box p{font-size:13px;color:var(--muted);margin-bottom:18px}
.lock-form{display:flex;gap:9px}
.lock-form input{flex:1;min-width:0;border:1px solid var(--border);border-radius:9px;padding:9px 13px;font-family:inherit;font-size:14px;background:var(--card2);color:var(--text);outline:none}
.lock-form input:focus{border-color:var(--accent)}
.lock-summary{font-size:13px;line-height:1.8;color:var(--text);background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:9px;padding:10px 14px;margin:14px 0 18px;text-align:left}

/* ============ 相册页 ============ */
.gallery-stat{display:flex;align-items:center;flex-wrap:wrap;gap:26px;padding:16px 20px;background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:var(--radius);margin-bottom:16px}
.gallery-stat b{font-size:20px;color:var(--accent-deep)}
.gallery-stat span{font-size:12px;color:var(--muted);display:block}
.album-name{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;margin:18px 0 10px}
.album-name::before{content:"";width:4px;height:14px;border-radius:3px;background:var(--accent)}
.album-name small{font-weight:400;font-size:12px;color:var(--muted)}
.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.photo-card{position:relative;border-radius:12px;overflow:hidden;cursor:zoom-in;border:1px solid var(--border);aspect-ratio:4/3;background:var(--card2)}
.photo-card img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.photo-card:hover img{transform:scale(1.05)}
.photo-card .cap{position:absolute;left:0;right:0;bottom:0;padding:24px 12px 10px;background:linear-gradient(transparent,rgba(10,16,28,.72));color:#fff;font-size:12.5px;display:flex;justify-content:space-between;align-items:flex-end;gap:8px}
.photo-card .cap span{font-size:11px;opacity:.85}
.photo-card .views{position:absolute;top:8px;right:8px;background:rgba(10,16,28,.5);color:#fff;font-size:11px;border-radius:99px;padding:1px 9px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.album-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.album-card{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--card);transition:transform .22s ease,box-shadow .22s ease;display:block}
.album-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
.album-cover{position:relative;aspect-ratio:16/10;overflow:hidden;background:linear-gradient(135deg,var(--accent-soft),var(--card2))}
.album-cover img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.album-card:hover .album-cover img{transform:scale(1.05)}
/* 信息条左右分栏：左侧标题与拍摄日期（ai-main 限宽保证标题省略），右侧图片评论入口 */
.album-info{padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.album-info .ai-main{min-width:0;flex:1}
.album-info b{font-size:14px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.album-info .discussion-entry{flex:none}
.album-info p{font-size:11.5px;color:var(--muted);margin-top:4px;display:flex;align-items:center;gap:10px}
.album-info p .sp{flex:1}
.album-info p i{font-style:normal;display:inline-flex;align-items:center;gap:4px}
.album-info p svg{width:12px;height:12px}

/* 各类媒体封面的统一降级层：真实图片正常时覆盖其上，失效时由脚本隐藏图片，
   下层仍保留可识别的标题/图标与柔和纹理，不出现浏览器破图或纯色大块。 */
.media-cover-img{position:absolute;z-index:2;inset:0;width:100%;height:100%;object-fit:cover}
.media-fallback{position:absolute;z-index:1;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:14px;text-align:center;color:var(--accent-deep);background:
  radial-gradient(circle at 22% 20%,rgba(255,255,255,.78),transparent 30%),
  linear-gradient(145deg,var(--accent-soft),var(--card2) 62%,var(--accent-border))}
.media-fallback svg{width:28px;height:28px;opacity:.78}
.media-fallback small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;color:var(--muted)}

/* lightbox */
.lightbox{position:fixed;inset:0;background:rgba(8,12,20,.85);z-index:90;display:none;align-items:center;justify-content:center;flex-direction:column;gap:14px}
.lightbox.show{display:flex;animation:fade .18s ease}
body.lightbox-open{overflow:hidden}
@keyframes fade{from{opacity:0}to{opacity:1}}
.lightbox img{max-width:94vw;max-height:85vh;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.lightbox .lb-cap{color:#DFE6F5;font-size:13.5px}
.lightbox .lb-index{color:rgba(223,230,245,.62);font-size:12px;letter-spacing:.5px}
.lb-btn{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;transition:background .15s;border:1px solid rgba(255,255,255,.18)}
.lb-btn:hover{background:rgba(255,255,255,.24)}
.lb-btn.prev{left:22px}
.lb-btn.next{right:22px}
.lb-close{position:absolute;top:18px;right:22px;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center}
.lb-close:hover{background:rgba(255,255,255,.24)}
.lb-btn svg,.lb-close svg{width:18px;height:18px}

/* ============ 通用弹窗 ============ */
/* 层级取 95：压在灯箱（90）之上，仍在 Toast（100）之下，保证提交结果提示不被遮挡。
   遮罩单独用 .dialog-mask 承接点击，内容盒里全是可点控件，靠 target 比对会误判。 */
.dialog{position:fixed;inset:0;z-index:95;display:none;align-items:center;justify-content:center;padding:20px}
.dialog.show{display:flex;animation:fade .18s ease}
body.dialog-open{overflow:hidden}
.dialog-mask{position:absolute;inset:0;background:rgba(8,12,20,.62)}
.dialog-box{position:relative;width:min(520px,100%);max-height:calc(100vh - 40px);overflow-y:auto;padding:20px 22px 22px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 24px 60px rgba(0,0,0,.32)}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.dialog-head h2{margin:0;font-size:17px;font-weight:700;display:flex;align-items:center;gap:8px}
.dialog-head h2 svg{width:17px;height:17px;color:var(--accent);flex:none}
.dialog-x{flex:none;width:30px;height:30px;display:grid;place-items:center;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer;transition:background .15s,color .15s}
.dialog-x:hover{background:var(--card2);color:var(--text)}
.dialog-x svg{width:15px;height:15px}
.dialog-form{display:flex;flex-direction:column;gap:13px}
.dialog-field{display:flex;flex-direction:column;gap:6px}
.dialog-field label{font-size:12.5px;font-weight:500;color:var(--body)}
.dialog-field .req{color:var(--danger)}
.dialog-field :is(input,textarea){padding:9px 12px;font-family:inherit;font-size:14px;color:var(--text);background:var(--card2);border:1px solid var(--border);border-radius:var(--radius-sm);outline:none;transition:border-color .15s;resize:vertical}
.dialog-field :is(input,textarea):focus{border-color:var(--accent)}
.dialog-field :is(input,textarea)::placeholder{color:var(--muted);opacity:.72}
/* 友链申请表单：标签与输入框同行，标签定宽右对齐，输入框撑满剩余宽度 */
.dialog-field--inline{flex-direction:row;align-items:center;gap:10px}
.dialog-field--inline > label{flex:0 0 5.5em;text-align:right;white-space:nowrap}
.dialog-field--inline > :is(input,textarea){flex:1;min-width:0}
.dialog-tip{margin:0;font-size:12px;line-height:1.8;color:var(--muted)}
.dialog-foot{display:flex;justify-content:flex-end;gap:10px}

/* ============ 随记页（时间线） ============ */
.timeline{display:flex;flex-direction:column;gap:0}
.tl-row{display:grid;grid-template-columns:88px 26px minmax(0,1fr);gap:0 12px}
.tl-date{font-size:12px;color:var(--muted);text-align:right;padding-top:16px;font-variant-numeric:tabular-nums}
.tl-rail{display:flex;flex-direction:column;align-items:center}
.tl-dot{width:10px;height:10px;border-radius:50%;background:var(--accent);border:3px solid var(--accent-soft);margin-top:18px;flex:none}
.tl-line{flex:1;width:2px;background:var(--border);margin:4px 0}
.tl-row:last-child .tl-line{display:none}
.tl-card{padding:16px 20px;margin-bottom:16px}
.tl-card b{font-size:14.5px;font-weight:700;display:block}
.tl-card p{font-size:13px;color:var(--body);margin:6px 0 8px;line-height:1.8;word-break:break-word}
.tl-foot{display:flex;gap:12px;align-items:center;font-size:11.5px;color:var(--muted);flex-wrap:wrap}
.tl-foot .tag-pill{margin-right:2px}
.tl-foot button{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:var(--muted);padding:3px 10px;border-radius:99px;background:var(--card2);border:1px solid var(--border);transition:color .15s,border-color .15s,background .15s}
.tl-foot button:hover{color:var(--accent-deep);border-color:var(--accent-border)}
.tl-foot button.on{color:var(--accent-deep);background:var(--accent-soft);border-color:var(--accent-border)}
.tl-foot button svg{width:12px;height:12px}
.tl-foot>span{display:inline-flex;align-items:center;gap:5px}
.tl-foot>span svg{width:12px;height:12px}
.tl-card .m-img{width:190px;border-radius:10px;overflow:hidden;border:1px solid var(--border);cursor:zoom-in;margin:2px 0 8px}
.tl-card .m-img img{width:100%;height:112px;object-fit:cover}
.tl-card a.m-src{color:var(--accent-deep);font-size:12px}
.tl-card a.m-src:hover{text-decoration:underline}
/* 兼容旧结构：月份分组标签 */
.month-group{margin-top:20px}
.month-group:first-child{margin-top:0}
.month-label{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:var(--text);margin-bottom:10px}
.month-label::after{content:"";flex:1;height:1px;background:var(--border)}

/* ============ 我的空间 ============ */
.space-tabs{display:flex;gap:26px;border-bottom:1px solid var(--border);overflow-x:auto}
.space-tab{white-space:nowrap;text-align:center;padding:11px 2px;font-size:13.5px;color:var(--muted);transition:color .15s;display:inline-flex;align-items:center;justify-content:center;gap:5px;border-bottom:2px solid transparent}
.space-tab:hover{color:var(--text)}
.space-tab.on{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}
.space-tab svg{width:14px;height:14px}
.space-tab small{opacity:.75;font-size:11.5px}

/* 读书 / 观影 / 小说 通用网格 */
.book-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.book-card{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--card);transition:transform .22s ease,box-shadow .22s ease}
.book-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
.book-cover{height:190px;color:#fff;position:relative;overflow:hidden;background:linear-gradient(145deg,#315ECA,#1E40AF)}
.book-cover .media-fallback{align-items:flex-start;justify-content:flex-end;text-align:left;color:#fff;background:
  radial-gradient(circle at 78% 15%,rgba(255,255,255,.22),transparent 32%),
  linear-gradient(145deg,#3B82F6,#1E40AF)}
.book-cover .bc-title{font-size:13.5px;font-weight:700;line-height:1.45;text-shadow:0 1px 3px rgba(0,0,0,.35)}
.book-cover .bc-author{font-size:10.5px;opacity:.85;margin-top:3px}
.book-meta{padding:10px 12px 4px;display:flex;justify-content:space-between;align-items:center;font-size:11.5px;color:var(--muted);gap:8px}
.book-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.book-meta .rate{color:#F59E0B;font-weight:600;display:inline-flex;align-items:center;gap:3px;flex:none}
.book-meta .rate svg{width:11px;height:11px}
.progress{width:100%;height:4px;background:var(--border);border-radius:99px;overflow:hidden}
.progress i{display:block;height:100%;background:var(--accent);border-radius:99px}
/* 卡片本身无内边距，进度条需自行内缩才能与 .book-meta 的文字对齐 */
.book-card .progress{width:calc(100% - 24px);margin:6px 12px 10px}
/* 卡片内短评，内容来自 watch_items / book_items 的 short_review 字段 */
.space-review{padding:0 12px 10px;font-size:11.5px;color:var(--muted);line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* 设计稿书籍卡片正文区：书名 + 作者·评分 + 日期三行 */
.book-body{padding:10px 12px 12px}
.book-body b{font-size:13.5px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.book-body small{display:block;font-size:11.5px;color:var(--muted);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.book-body .rate{color:#F59E0B;font-weight:600}
/* 卡片内标签行，与 .space-review 共用左右内边距，自身不留上边距 */
.space-tags{display:flex;flex-wrap:wrap;gap:5px;padding:0 12px 10px}
.space-tags .tag-pill{font-size:10.5px;padding:0 8px}
/* 右栏「最近在读/在看」进度列表 */
.read-item{display:flex;gap:10px;align-items:center;padding:8px 0}
.read-item img,.read-item .ri-cover{width:34px;height:44px;border-radius:5px;object-fit:cover;flex:none;background-color:var(--accent-deep);background-size:cover;background-position:center}
.read-item .ri-main{flex:1;min-width:0}
.read-item b{font-size:12px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.read-item .progress{margin-top:5px}
.read-item .ri-pct{font-size:11px;color:var(--muted);flex:none}

/* 音乐 */
.music-item{display:flex;align-items:center;gap:12px;padding:11px 6px;border-bottom:1px solid var(--border);transition:background .12s;border-radius:9px}
.music-item:last-child{border-bottom:none}
.music-item:hover{background:var(--card2)}
.music-item.playing{color:var(--accent-deep)}
.music-item__cover{position:relative;width:52px;height:52px;border-radius:11px;overflow:hidden;display:grid;place-items:center;flex:none;color:var(--accent-deep);background:linear-gradient(145deg,var(--accent-soft),var(--card2) 62%,var(--accent-border));box-shadow:inset 0 0 0 1px var(--accent-border)}
.music-item__cover-fallback{position:absolute;z-index:1;inset:0;display:grid;place-items:center;opacity:.32}
.music-item__cover-fallback svg{width:22px;height:22px}
.music-item__cover .media-cover-img{border-radius:inherit}
.music-item__cover.is-image-fallback .media-cover-img{display:none}
.music-item__cover .play{position:absolute;z-index:3;inset:0;width:100%;height:100%;border:0;border-radius:inherit;color:#fff;display:grid;place-items:center;background:linear-gradient(180deg,rgba(7,21,40,.04),rgba(7,21,40,.58));opacity:.72;transition:opacity .16s,background .16s,color .16s}
.music-item__cover .play:hover,.music-item__cover .play:focus-visible{opacity:1;background:rgba(20,78,163,.7)}
.music-item__cover.is-image-fallback .play{color:var(--accent-deep);background:transparent;opacity:1}
.music-item .play svg{width:14px;height:14px;margin-left:1px}
.music-item .idx{width:22px;text-align:center;font-size:12px;color:var(--muted);flex:none}
.music-item b{font-size:13.5px;font-weight:500;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.music-item .artist{font-size:12px;color:var(--muted);flex:none;max-width:34%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.music-item .dur{font-size:12px;color:var(--muted);flex:none}
.music-item .tag-pill{flex:none}
.music-item.playing .music-item__cover{box-shadow:0 0 0 3px var(--accent-soft),inset 0 0 0 1px var(--accent)}
.music-item.playing .play{background:rgba(37,99,235,.74);color:#fff;opacity:1}
.music-play-all{display:inline-flex;align-items:center;gap:6px;color:var(--accent-deep);background:var(--accent-soft);border-color:var(--accent-border)}
.music-play-all svg{width:13px;height:13px}
.music-player{position:fixed;z-index:90;left:calc(var(--sidebar-w) + 24px);right:24px;bottom:16px;display:grid;grid-template-columns:44px minmax(120px,1fr) auto minmax(220px,1.4fr) minmax(110px,.55fr) auto;align-items:center;gap:14px;max-width:1280px;margin:auto;padding:10px 14px;border:1px solid var(--border);border-radius:14px;background:var(--card);box-shadow:0 14px 45px rgba(20,34,58,.2)}
.music-player[hidden]{display:none}
.music-player__cover{position:relative;width:44px;height:44px;border-radius:10px;overflow:hidden;background:linear-gradient(145deg,var(--accent-soft),var(--card2));color:var(--accent-deep);display:grid;place-items:center;font-size:20px}
.music-player__cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.music-player__cover-fallback{display:block}.music-player__cover.has-cover .music-player__cover-fallback{display:none}
.music-player__now{min-width:0}.music-player__now strong,.music-player__now span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.music-player__now strong{font-size:13.5px}.music-player__now span{margin-top:3px;color:var(--muted);font-size:11.5px}
.music-player__controls,.music-player__extra,.music-player__timeline,.music-player__volume{display:flex;align-items:center}
.music-player__controls{gap:5px}.music-player__extra{gap:3px;justify-content:flex-end}.music-player__timeline{gap:8px;min-width:0}.music-player__volume{gap:7px}.music-player__timeline span{width:38px;color:var(--muted);font-size:10.5px;font-variant-numeric:tabular-nums}.music-player__timeline span:first-child{text-align:right}.music-player__timeline input,.music-player__volume input{min-width:0;width:100%;height:4px;accent-color:var(--accent);cursor:pointer}.music-player__volume svg{width:15px;height:15px;color:var(--muted);flex:none}
.player-icon{position:relative;width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:var(--muted);transition:color .15s,background .15s}.player-icon:hover{color:var(--accent-deep);background:var(--accent-soft)}.player-icon svg{width:15px;height:15px}.player-icon--primary{width:38px;height:38px;border-radius:50%;color:#fff;background:var(--accent);box-shadow:0 5px 14px var(--accent-border)}.player-icon--primary:hover{color:#fff;background:var(--accent-deep)}.player-icon--danger:hover{color:#E2574C;background:rgba(226,87,76,.1)}.player-icon small{position:absolute;left:50%;bottom:-4px;transform:translateX(-50%);font-size:8px;line-height:1;color:var(--muted)}
.music-player.is-collapsed{display:flex;align-items:center;gap:10px;right:auto;padding:8px 10px}
.music-player.is-collapsed .music-player__cover{width:40px;height:40px;flex:0 0 auto}
.music-player.is-collapsed .music-player__now{flex:1 1 auto;min-width:0}
.music-player.is-collapsed .music-player__controls{display:flex;align-items:center;gap:5px;flex:0 0 auto}
.music-player.is-collapsed .music-player__extra{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.music-player.is-collapsed .music-player__timeline,.music-player.is-collapsed .music-player__volume,.music-player.is-collapsed [data-ib-player-prev],.music-player.is-collapsed [data-ib-player-next],.music-player.is-collapsed [data-ib-player-mode]{display:none}
.music-player.is-collapsed [data-ib-player-close]{display:grid}
body.music-player-open .toast{bottom:calc(92px + env(safe-area-inset-bottom))}
/* 播放列表抽屉与播放器同级，避免固定定位层级相互裁切 */
.music-playlist{position:fixed;z-index:91;right:24px;bottom:calc(88px + env(safe-area-inset-bottom));width:min(340px,calc(100vw - 28px));max-height:min(420px,58vh);display:flex;flex-direction:column;border:1px solid var(--border);border-radius:14px;background:var(--card);box-shadow:0 18px 50px rgba(20,34,58,.24);overflow:hidden}
.music-playlist[hidden]{display:none}
.music-playlist__head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;border-bottom:1px solid var(--border)}
.music-playlist__head strong{font-size:13px}
.music-playlist__head span{color:var(--muted);font-weight:400}
.music-playlist__clear{font-size:12px;color:var(--muted);transition:color .15s}
.music-playlist__clear:hover{color:#E2574C}
.music-playlist__body{overflow-y:auto;min-height:0;padding:6px}
.music-playlist__item{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:9px;cursor:pointer;transition:background .12s}
.music-playlist__item:hover{background:var(--card2)}
.music-playlist__item.on{background:var(--accent-soft)}
.music-playlist__item.on .music-playlist__meta b{color:var(--accent-deep)}
.music-playlist__cover{width:34px;height:34px;border-radius:8px;flex:none;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,var(--accent-soft),var(--card2));color:var(--accent-deep);font-size:15px}
.music-playlist__cover img{width:100%;height:100%;object-fit:cover;display:block}
.music-playlist__meta{min-width:0;flex:1}
.music-playlist__meta b{display:block;font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.music-playlist__meta small{display:block;margin-top:2px;color:var(--muted);font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.music-playlist__remove{width:26px;height:26px;flex:none;border-radius:8px;display:grid;place-items:center;color:var(--muted);font-size:16px;line-height:1;transition:color .15s,background .15s}
.music-playlist__remove:hover{color:#E2574C;background:rgba(226,87,76,.1)}
.music-playlist__empty{padding:18px 10px;text-align:center;color:var(--muted);font-size:12.5px}
.music-playlist__head-actions{display:flex;align-items:center;gap:8px}
.music-playlist__close{width:24px;height:24px;flex:none;display:grid;place-items:center;border-radius:6px;color:var(--muted);transition:color .15s,background .15s}
.music-playlist__close:hover{color:var(--text);background:var(--card2)}
.music-playlist__close svg{width:13px;height:13px}
/* 音乐详情弹窗：复用通用 .dialog 结构，宽度适配信息卡片+评论区 */
.music-detail-dialog .dialog-box{width:min(480px,100%);padding:0;overflow:hidden}
.music-detail-dialog .dialog-head{margin:0;padding:16px 20px;border-bottom:1px solid var(--border);background:linear-gradient(135deg,color-mix(in srgb,var(--accent-soft) 55%,var(--card)),var(--card))}
.music-detail-dialog__body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:16px}
.music-detail-card{display:flex;gap:16px;align-items:flex-start}
.music-detail-card[hidden]{display:none}
.music-detail-card__cover{width:96px;height:96px;flex:none;border-radius:12px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,var(--accent-soft),var(--card2));color:var(--accent-deep);font-size:32px}
.music-detail-card__cover img{width:100%;height:100%;object-fit:cover;display:block}
.music-detail-card__cover img[hidden]{display:none}
.music-detail-card__info{min-width:0;flex:1}
.music-detail-card__info h3{margin:0 0 10px;font-size:16px;font-weight:700;line-height:1.4;word-break:break-word}
.music-detail-card__info dl{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;margin:0;font-size:12.5px}
.music-detail-card__info dt{color:var(--muted);white-space:nowrap}
.music-detail-card__info dd{margin:0;color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.music-detail-dialog__comments{border-top:1px solid var(--border);padding-top:14px;min-height:80px}
.music-detail-dialog__comments[hidden]{display:none}

/* ============ 观影 ============ */
.movie-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.movie-card{border:1px solid var(--border);border-radius:12px;overflow:hidden;transition:transform .22s ease,box-shadow .22s ease;background:var(--card)}
.movie-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
.movie-poster{height:150px;display:flex;flex-direction:column;justify-content:space-between;padding:12px;color:#fff;position:relative;overflow:hidden;background:linear-gradient(145deg,#2563EB,#17365E);isolation:isolate}
.movie-poster::after{content:"";position:absolute;z-index:2;inset:0;background:linear-gradient(180deg,rgba(8,20,40,.04),rgba(8,20,40,.7));pointer-events:none}
.movie-poster .media-fallback{z-index:0;color:#DBEAFE;background:
  radial-gradient(circle at 75% 20%,rgba(255,255,255,.16),transparent 30%),
  linear-gradient(145deg,#315ECA,#17365E)}
.movie-poster .rate,.movie-poster .mt,.movie-poster .mc{position:relative;z-index:3}
.movie-poster .rate{font-size:12px;font-weight:600;background:rgba(0,0,0,.35);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);border-radius:99px;padding:1px 9px;align-self:flex-start}
.movie-poster .mt{font-size:14px;font-weight:700;text-shadow:0 1px 3px rgba(0,0,0,.4)}
.movie-poster .mc{font-size:10.5px;opacity:.85}
.movie-meta{padding:9px 12px;font-size:11.5px;color:var(--muted);display:flex;justify-content:space-between;gap:8px}
.movie-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 追番日历：桌面七列周视图 + 窄屏按天分组列表，两套 DOM 由媒体查询二选一 */
.wcal{padding:16px 18px;margin-bottom:16px}
.wcal-head{display:flex;align-items:center;gap:9px;margin-bottom:14px}
.wcal-head b{font-size:15px;font-weight:700}
.wcal-toggle{display:flex;align-items:center;gap:9px;border:0;background:none;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;text-align:left}
.wcal-ico{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;flex:none;color:var(--accent);background:var(--accent-soft)}
.wcal-ico svg{width:15px;height:15px}
.wcal-count{font-size:11.5px;color:var(--accent-deep);background:var(--accent-soft);border-radius:99px;padding:2px 10px}
.wcal-chevron{display:inline-flex;align-items:center;flex:none;color:var(--muted);transition:transform .18s,color .15s}
.wcal-chevron svg{width:14px;height:14px}
.wcal-toggle:hover .wcal-chevron{color:var(--accent-deep)}
.wcal.is-collapsed .wcal-chevron{transform:rotate(-90deg)}
.wcal.is-collapsed .wcal-body,.wcal.is-collapsed .wcal-nav{display:none}
.wcal-nav{margin-left:auto;display:flex;align-items:center;gap:6px}
.wcal-arrow,.wcal-today{border:1px solid var(--border);background:var(--card);border-radius:8px;padding:5px 9px;color:var(--body);cursor:pointer;font-size:12px;display:inline-flex;align-items:center;transition:background .15s,border-color .15s,color .15s}
.wcal-arrow svg{width:14px;height:14px}
.wcal-arrow:hover,.wcal-today:hover{border-color:var(--accent-border);color:var(--accent-deep);background:var(--accent-soft)}
.wcal-today[hidden]{display:none}
.wcal-date::after{content:"日";margin-left:1px;font-size:10px;font-weight:400;color:var(--muted)}
.wcal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.wcal-day{min-height:104px;padding:8px;border:1px solid transparent;border-radius:var(--radius-sm);background:var(--card2);transition:background .18s,border-color .18s}
.wcal-day:hover{background:var(--bg)}
.wcal-day.is-today{background:var(--accent-soft);border-color:var(--accent-border)}
.wcal-dow{font-size:11.5px;color:var(--muted)}
.wcal-date{margin:2px 0 7px;font-size:13px;font-weight:600;color:var(--text)}
.wcal-day.is-today .wcal-dow{color:var(--accent-deep);font-weight:600}
.wcal-day.is-today .wcal-date::after{color:var(--accent-deep)}
.wcal-list{display:flex;flex-direction:column;gap:5px}
.wcal-cell{padding:5px 7px;border-radius:7px;background:var(--card);box-shadow:0 1px 3px rgba(20,34,58,.08)}
.wcal-cell b,.wcal-cell span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wcal-cell b{font-size:11.5px;font-weight:600;color:var(--text)}
.wcal-cell span{margin-top:1px;font-size:10px;color:var(--muted)}
.wcal-mobile{display:none}
.wcal-mday+.wcal-mday{margin-top:14px}
.wcal-mhead{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.wcal-mhead b{min-width:34px;font-size:13px;font-weight:600}
.wcal-mhead .wcal-date{margin:0;font-size:12.5px;font-weight:500;color:var(--body)}
.wcal-mday.is-today .wcal-mhead b{color:var(--accent-deep)}
/* 「今天」徽章随 is-today 类显隐，周切换时由 JS 迁移该类即可，无需单独操作徽章 */
.wcal-badge{display:none;font-style:normal;font-size:10.5px;color:#fff;background:var(--accent);border-radius:99px;padding:1px 8px}
.wcal-mday.is-today .wcal-badge{display:inline-block}
.wcal-mcount{margin-left:auto;font-size:11.5px;color:var(--muted)}
.wcal-mlist{display:flex;flex-direction:column;gap:8px}
.wcal-mitem{display:flex;align-items:center;gap:11px;padding:9px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card)}
.wcal-cover{position:relative;width:44px;height:58px;border-radius:8px;overflow:hidden;flex:none;background:var(--card2)}
.wcal-cover .media-fallback svg{width:18px;height:18px}
.wcal-mtext{flex:1;min-width:0}
.wcal-mtext b,.wcal-mtext span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wcal-mtext b{font-size:13px;font-weight:600}
.wcal-mtext span{margin-top:3px;font-size:11px;color:var(--muted)}

/* 小说 */
.novel-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.novel-card{min-width:0;border:1px solid var(--border);border-radius:13px;overflow:hidden;background:var(--card);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.novel-card:hover{transform:translateY(-3px);border-color:var(--accent-border);box-shadow:var(--shadow-hover)}
.novel-cover{position:relative;aspect-ratio:3/4;overflow:hidden;background:linear-gradient(145deg,#3B82F6,#17365E);color:#fff}
.novel-cover .media-fallback{gap:9px;padding:16px;text-align:center;color:#DBEAFE;background:radial-gradient(circle at 72% 18%,rgba(255,255,255,.18),transparent 32%),linear-gradient(145deg,#315ECA,#17365E)}
.novel-cover .media-fallback svg{width:28px;height:28px}
.novel-cover .media-fallback small{max-width:100%;font-size:12px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.novel-status{position:absolute;z-index:3;top:9px;left:9px;padding:3px 9px;border-radius:99px;color:#fff;font-size:10.5px;font-weight:600;background:rgba(32,64,112,.86);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);box-shadow:0 2px 8px rgba(8,25,52,.18)}
.novel-status.status-want{background:rgba(37,99,235,.88)}
.novel-status.status-doing{background:rgba(22,163,74,.88)}
.novel-status.status-done{background:rgba(71,85,105,.88)}
.novel-card__body{padding:11px 12px 13px}
.novel-title{margin:0;font-size:13.5px;line-height:1.45;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.novel-title a{display:inline-flex;align-items:center;max-width:100%;gap:3px;transition:color .15s}
.novel-title a:hover{color:var(--accent-deep)}
.novel-title a svg{width:11px;height:11px;flex:none;opacity:.55}
.novel-author{margin:3px 0 0;color:var(--muted);font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.novel-rating{display:flex;align-items:center;gap:1px;margin-top:7px;color:var(--border2);font-size:12px;line-height:1}
.novel-rating .is-on{color:#F59E0B}
.novel-rating small{margin-left:4px;color:#F59E0B;font-size:10.5px}
.novel-platform{display:inline-flex;margin-top:7px;padding:2px 7px;border-radius:6px;color:var(--accent-deep);background:var(--accent-soft);font-size:10.5px}
.novel-progress{display:grid;grid-template-columns:1fr auto;gap:5px 8px;margin-top:9px;color:var(--muted);font-size:10.5px}
.novel-progress .progress{grid-column:1/-1}
.novel-words{margin-top:7px;color:var(--muted);font-size:10.5px}

/* 愿望看板：按状态分列（对齐旧版 React WishBoard），列色带 pending 琥珀 / doing 主题蓝 / done 青绿 */
.wish-board{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;align-items:start}
.wish-col{border-top:3px solid var(--border2);border-radius:var(--radius-sm);background:var(--bg);padding:10px 10px 12px}
.wish-col.is-pending{border-top-color:#eab308}
.wish-col.is-doing{border-top-color:var(--accent)}
.wish-col.is-done{border-top-color:#10b981}
.wish-col-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.wish-col-head h3{font-size:13px;font-weight:600;color:var(--text)}
.wish-col-count{min-width:22px;text-align:center;font-size:11px;color:var(--muted);background:var(--card);border:1px solid var(--border);border-radius:99px;padding:1px 8px}
.wish-col-list{display:flex;flex-direction:column;gap:8px}
.wish-col-empty{font-size:11.5px;color:var(--muted);text-align:center;padding:16px 0}
.wish-card{background:var(--card);border:1px solid var(--border);border-radius:9px;padding:10px 11px;box-shadow:0 1px 3px rgba(20,34,58,.06);transition:box-shadow .15s,border-color .15s}
.wish-card:hover{box-shadow:0 3px 10px rgba(20,34,58,.1);border-color:var(--border2)}
.wish-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}
.wish-card-title{flex:1;min-width:0;font-size:13px;font-weight:600;line-height:1.5;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.wish-card.is-done .wish-card-title{color:var(--muted);text-decoration:line-through}
.wish-card-priority{flex:none;font-size:10.5px;font-weight:600;color:#d97706;white-space:nowrap;padding-top:1px}
.wish-card-desc{margin-top:3px;font-size:11.5px;color:var(--muted);line-height:1.6;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.wish-card-meta{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:11px;color:var(--muted)}
.wish-card-cat{max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:1px 8px;border-radius:99px;background:var(--card2)}
.wish-card-price{flex:none}
.wish-card-acts{margin-left:auto;display:flex;align-items:center;gap:5px;flex:none}
.wish-cheer{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:var(--muted);padding:2px 9px;border-radius:99px;background:var(--card2);border:1px solid var(--border);flex:none}
.wish-cheer:hover{color:var(--accent-deep);border-color:var(--accent-border)}
.wish-cheer.on{color:var(--accent-deep);background:var(--accent-soft);border-color:var(--accent-border)}
.wish-cheer svg{width:12px;height:12px}
@media (max-width:1100px){
  .wish-board{grid-template-columns:repeat(2,1fr)}
}
/* 助力昵称框：inkblog.js 的 cheerNickname() 需要页面内存在 [data-ib-nickname]，
   否则首次访客（localStorage 无记录）会收到「请先填写你的昵称」却无处可填 */
.wish-nick{display:flex;align-items:center;gap:8px;margin:12px 0 4px;font-size:13px;color:var(--muted);flex-wrap:wrap}
.wish-nick input{border:1px solid var(--border);border-radius:9px;padding:6px 12px;font-family:inherit;font-size:13px;background:var(--card2);color:var(--text);outline:none;width:170px;transition:border-color .15s}
.wish-nick input:focus{border-color:var(--accent)}

/* ============ 关于 ============ */
.about-head{display:flex;gap:18px;align-items:center;padding:26px}
.about-head .avatar{width:74px;height:74px;border-radius:20px;font-size:26px}
.about-head b{font-size:21px;display:block}
.about-head p{font-size:13.5px;color:var(--muted);margin-top:3px}
/* 关于页内容区内边距：.card 自身无 padding，正文与联系方式需与 .sec-head 的 22px 水平对齐 */
.about-body{padding:0 22px 22px}
.skill-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.set-row{display:flex;align-items:center;gap:12px;padding:10px 2px;border-bottom:1px solid var(--border);font-size:13px;flex-wrap:wrap}
.set-row:last-child{border-bottom:none}
/* g1 兼作联系方式图标容器：图标 slug 来自 about_info.contacts[].icon，
   不声明尺寸的话 svg 会按浏览器默认值撑破行高 */
.set-row .g1{width:110px;font-weight:500;flex:none;display:inline-flex;align-items:center;gap:6px}
.set-row .g1 svg{width:14px;height:14px;flex:none}
.set-row .g2{flex:1;color:var(--body);min-width:0;word-break:break-all}
.set-note{font-size:12px;color:var(--muted);margin-top:12px;padding:10px 13px;background:var(--card2);border:1px dashed var(--border2);border-radius:9px;line-height:1.7}
/* 关于页经历时间线（复用随记时间线栅格） */
.about-tl .tl-card{margin-bottom:0;border:none;box-shadow:none;padding:10px 0 18px;background:none}
.about-tl .tl-card:hover{box-shadow:none}

/* ============ 分类页 ============ */
.cat-bar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:4px}
.cat-btn{padding:6px 16px;border-radius:99px;background:var(--card);border:1px solid var(--border);font-size:12.5px;color:var(--body);transition:background .15s,border-color .15s,color .15s;cursor:pointer;display:inline-flex;align-items:center;gap:4px}
.cat-btn:hover{border-color:var(--accent-border);color:var(--accent-deep)}
.cat-btn.on{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:500}
.cat-btn small{opacity:.75;margin-left:4px;font-size:11px}
.cat-intro{font-size:13px;color:var(--muted);margin:12px 0 4px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cat-intro b{color:var(--accent-deep);font-weight:600}

/* ============ 标签页 ============ */
.tag-cloud-lg{display:flex;flex-wrap:wrap;gap:10px;align-items:baseline}
.tag-cloud-lg a{padding:4px 14px;border-radius:99px;background:var(--card2);border:1px solid var(--border);color:var(--body);transition:background .15s,border-color .15s,color .15s;cursor:pointer;font-size:13px}
.tag-cloud-lg a:hover{border-color:var(--accent-border);color:var(--accent-deep);background:var(--accent-soft)}
.tag-cloud-lg a.on{background:var(--accent);border-color:var(--accent);color:#fff}
.tag-cloud-lg a small{font-size:10.5px;opacity:.7;margin-left:3px}

/* ============ 归档页 ============ */
/* 年份行可点击折叠：当年默认展开、过去年份默认收起（inkblog.js:initArchive 接管）；
 * 折叠态用 .is-collapsed 而非 hidden，JS 不可用时全部年份照常展开（渐进增强） */
.arch-year{font-size:16px;font-weight:700;margin:22px 0 6px;display:flex;align-items:center;gap:10px;color:var(--text);width:100%;text-align:left;cursor:pointer;border-radius:var(--radius-sm);transition:color .15s}
.arch-year:first-child{margin-top:0}
.arch-year::before{content:"▾";flex:none;font-size:12px;font-weight:400;color:var(--muted);transition:color .15s}
.arch-year[aria-expanded="false"]::before{content:"▸"}
.arch-year::after{content:"";flex:1;height:1px;background:var(--border)}
.arch-year:hover{color:var(--accent)}
.arch-year:hover::before{color:var(--accent)}
.arch-year small{font-weight:400;font-size:12px;color:var(--muted)}
.arch-months.is-collapsed{display:none}
.arch-month{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--body);margin:14px 0 2px 6px}
.arch-month i{font-style:normal;font-size:11px;color:var(--muted);font-weight:400}
.arch-item{display:flex;gap:14px;align-items:center;padding:8px 2px 8px 30px;font-size:13px;border-left:2px solid var(--accent-border);margin-left:8px;position:relative}
.arch-item::before{content:"";position:absolute;left:-6px;top:50%;width:9px;height:9px;border-radius:50%;background:var(--accent);transform:translateY(-50%)}
.arch-item time{font-size:12px;color:var(--muted);flex:none;font-variant-numeric:tabular-nums}
.arch-item a{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.arch-item a:hover{color:var(--accent-deep)}
.arch-item .views{font-size:11.5px;color:var(--muted);flex:none}

/* ============ 收藏页 ============ */
/* 分类筛选页签：全量数据前端过滤（initFilterTabs），脚本不可用时列表完整展示 */
.filter-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.filter-tab{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border:1px solid var(--border);border-radius:999px;background:var(--card);color:var(--muted);font-size:12.5px;transition:color .15s,border-color .15s,background .15s}
.filter-tab i{font-style:normal;font-size:11px;font-weight:400}
.filter-tab:hover{color:var(--accent-deep);border-color:var(--accent-border)}
.filter-tab.is-active{background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent-deep);font-weight:600}

.fav-item{display:flex;gap:12px;padding:15px 2px;border-bottom:1px solid var(--border)}
.fav-item:last-child{border-bottom:none}
.fav-ico{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;flex:none;color:#fff;background:var(--accent);overflow:hidden}
.fav-ico svg{width:17px;height:17px}
.fav-ico img{width:100%;height:100%;object-fit:cover}
.fav-main{flex:1;min-width:0}
.fav-main b{font-size:14px;font-weight:600;display:block}
.fav-main b a:hover{color:var(--accent-deep)}
.fav-main p{font-size:12.5px;color:var(--muted);margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fav-foot{display:flex;gap:12px;font-size:11.5px;color:var(--muted);margin-top:5px;flex-wrap:wrap}
.fav-quote{border-left:3px solid var(--accent);background:var(--accent-soft);border-radius:0 10px 10px 0;padding:13px 15px;margin:12px 0}
.fav-quote p{font-size:13px;color:var(--body);font-style:italic;line-height:1.8}
.fav-quote span{display:block;margin-top:6px;font-size:11.5px;color:var(--muted)}
.fav-empty{padding:36px 16px;text-align:center;color:var(--muted);font-size:13px}

/* ============ 友链页 ============ */
.link-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.link-card{border:1px solid var(--border);border-radius:12px;padding:16px;transition:transform .22s ease,box-shadow .22s ease;background:var(--card);display:block}
.link-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
.link-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.link-ico{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;color:#fff;font-weight:700;font-size:15px;flex:none;background:var(--accent);overflow:hidden}
.link-ico img{width:100%;height:100%;object-fit:cover}
.link-card b{font-size:13.5px}
.link-card .stat{font-size:10.5px;color:var(--ok);background:rgba(47,158,110,.12);border-radius:99px;padding:0 8px;margin-left:6px;line-height:1.7;flex:none}
.link-card .stat.wait{color:var(--warn);background:rgba(217,161,59,.14)}
.link-card p{font-size:12px;color:var(--muted);line-height:1.6}
.link-note{margin-top:16px;padding:12px 15px;background:var(--card2);border:1px dashed var(--border2);border-radius:9px;font-size:12.5px;color:var(--body);line-height:1.8}

/* ============ 留言页 ============ */
.gb-item{display:flex;gap:12px;padding:15px 2px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.gb-body{min-width:0;flex:1}
.gb-children{flex:1 1 100%;margin:4px 0 0 20px;padding-left:12px;border-left:1px solid var(--border)}
.gb-item:last-of-type{border-bottom:none}
.gb-item .avatar{width:38px;height:38px;font-size:13px;flex:none}
.gb-item b{font-size:13.5px;font-weight:600}
.gb-item .badge{font-size:10.5px;color:var(--accent-deep);background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:99px;padding:0 7px;margin-left:7px}
.gb-item .loc{font-size:11px;color:var(--muted);margin-left:8px}
.gb-item time{font-size:11px;color:var(--muted);margin-left:8px;font-weight:400}
.gb-item p{font-size:13px;color:var(--body);margin-top:4px;line-height:1.8;word-break:break-word}
.gb-item .reply{font-size:12px;color:var(--accent-deep);margin-top:6px;display:inline-flex;align-items:center;gap:4px;background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:9px;padding:4px 11px}
.gb-item .reply svg{width:12px;height:12px;flex:none}
.gb-form{display:flex;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid var(--border);flex-wrap:wrap}
.gb-form input{flex:0 0 190px;border:1px solid var(--border);border-radius:9px;padding:9px 13px;font-family:inherit;font-size:14px;background:var(--card2);color:var(--text);outline:none;transition:border-color .15s}
.gb-form textarea{flex:1;min-width:240px;resize:none;border:1px solid var(--border);border-radius:9px;padding:9px 13px;font-family:inherit;font-size:14px;background:var(--card2);color:var(--text);outline:none;min-height:60px;transition:border-color .15s}
.gb-form :is(input,textarea):focus{border-color:var(--accent)}
/* 回复提示条：与 .comment-form .full 同理，需独占整行才能与输入区分离 */
.gb-form .full{flex:1 1 100%;font-size:12px;color:var(--muted)}

/* ============ 表情面板（评论 / 留言表单共用） ============ */
.emoji-trigger{align-self:flex-end;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;background:var(--card2);border:1px solid var(--border);font-size:17px;line-height:1;transition:background .15s,border-color .15s}
.emoji-trigger:hover,.emoji-trigger[aria-expanded="true"]{border-color:var(--accent-border);background:var(--accent-soft)}
.emoji-panel{display:grid;gap:9px;background:var(--card2);border:1px solid var(--border);border-radius:10px;padding:12px 14px}
.emoji-panel[hidden]{display:none}
.emoji-group-title{display:block;font-size:11px;font-weight:600;color:var(--muted);margin-bottom:5px}
.emoji-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:2px}
.emoji-btn{display:grid;place-items:center;width:100%;aspect-ratio:1;border:none;border-radius:7px;background:transparent;font-size:17px;line-height:1;transition:background .15s,transform .15s}
.emoji-btn:hover{background:var(--accent-soft);transform:scale(1.12)}

/* ============ 博主身份工具条（评论 / 留言表单共用） ============ */
.owner-bar{display:flex;align-items:center;gap:8px;flex:1 1 100%;padding:7px 12px;border:1px dashed var(--border);border-radius:10px;background:var(--card2)}
.owner-bar.is-unlocked{border-style:solid;border-color:var(--accent-border);background:var(--accent-soft)}
.owner-bar .owner-tip{flex:1;min-width:0;font-size:12px;color:var(--muted)}
.owner-bar.is-unlocked .owner-tip{color:var(--accent-deep)}
.owner-bar .owner-input{flex:0 0 auto;width:210px;border:1px solid var(--border);border-radius:9px;padding:7px 11px;font-family:inherit;font-size:12.5px;background:var(--card);color:var(--text);outline:none;transition:border-color .15s}
.owner-bar .owner-input:focus{border-color:var(--accent)}
.owner-bar .owner-btn{flex:none;font-size:12px;color:var(--accent-deep);background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:9px;padding:6px 13px;transition:background .15s}
.owner-bar .owner-btn:hover{background:var(--accent-border)}
.owner-bar .owner-btn[disabled]{opacity:.6;cursor:not-allowed}

/* ============ 讨论组件（留言 / 评论 / 内容条目共用） ============ */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.discussion-compose-card{padding:24px}
.discussion-form{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:0;padding:0;border:0}
.discussion-compose-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.discussion-compose-head h2,.discussion-compose-head h3{display:flex;align-items:center;gap:9px;margin:0;font-size:18px;line-height:1.35;color:var(--text)}
.discussion-compose-head h3{font-size:16px}
.discussion-compose-head h2 svg,.discussion-compose-head h3 svg{width:20px;height:20px;color:var(--accent)}
.discussion-compose-head p{margin-top:4px;font-size:12px;color:var(--muted)}
.discussion-form>.owner-bar{grid-column:1/-1}
.discussion-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.discussion-field{display:flex;min-width:0;flex-direction:column;gap:7px;font-size:12.5px;font-weight:600;color:var(--body)}
.discussion-field>span:first-child i{font-style:normal;color:var(--danger)}
.discussion-field :is(input,textarea){width:100%;min-width:0;border:1px solid var(--border);border-radius:11px;background:var(--card2);color:var(--text);font:400 14px/1.6 var(--font);outline:none;transition:border-color .18s,box-shadow .18s,background .18s}
.discussion-field input{flex:none;height:43px;padding:0 13px}
.discussion-field textarea{min-height:132px;padding:13px 14px 32px;resize:vertical}
.discussion-field :is(input,textarea)::placeholder{color:color-mix(in srgb,var(--muted) 82%,transparent)}
.discussion-field :is(input,textarea):focus{border-color:var(--accent);background:var(--card);box-shadow:0 0 0 3px var(--accent-soft)}
.discussion-editor{position:relative}
.discussion-counter{position:absolute;right:13px;bottom:9px;color:var(--muted);font-size:11px;font-weight:500;font-variant-numeric:tabular-nums;pointer-events:none}
.discussion-counter.is-near-limit{color:var(--warn)}
.discussion-reply-bar{display:flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid var(--accent-border);border-radius:10px;background:var(--accent-soft);color:var(--accent-deep);font-size:12px}
.discussion-reply-bar[hidden]{display:none}
.discussion-reply-bar>svg{width:14px;height:14px;flex:none}
.discussion-reply-bar>[data-ib-reply-copy]{flex:1;min-width:0}
.discussion-reply-bar button{display:inline-flex;align-items:center;gap:4px;min-height:30px;padding:3px 8px;border-radius:7px;color:var(--accent-deep);font-size:12px}
.discussion-reply-bar button:hover{background:color-mix(in srgb,var(--accent) 10%,transparent)}
.discussion-reply-bar button svg{width:13px;height:13px}
.discussion-toolbar{display:flex;align-items:center;gap:12px}
.discussion-emoji{position:relative;flex:none}
.discussion-toolbar .emoji-trigger{width:auto;height:38px;padding:0 12px;gap:6px;align-self:auto;font-size:12.5px}
.discussion-toolbar .emoji-trigger svg{width:15px;height:15px}
.discussion-emoji .emoji-panel{position:absolute;left:0;bottom:calc(100% + 10px);z-index:30;width:min(430px,calc(100vw - 64px));max-height:min(330px,55vh);overflow-y:auto;padding:14px;border-color:var(--border2);background:var(--card);box-shadow:var(--shadow-hover);animation:fade .15s ease}
.discussion-privacy{display:inline-flex;align-items:center;gap:5px;min-width:0;color:var(--muted);font-size:11.5px}
.discussion-privacy svg{width:13px;height:13px;flex:none}
.discussion-toolbar .comment-submit{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 18px;border-radius:10px;background:var(--accent);color:#fff;font-size:13px;font-weight:600;box-shadow:0 7px 16px color-mix(in srgb,var(--accent) 24%,transparent);transition:transform .18s,background .18s,box-shadow .18s}
.discussion-toolbar .comment-submit:hover{transform:translateY(-1px);background:var(--accent-deep);box-shadow:0 9px 20px color-mix(in srgb,var(--accent) 30%,transparent)}
.discussion-toolbar .comment-submit svg{width:15px;height:15px}

.discussion-card__composer{padding:20px 24px 24px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,color-mix(in srgb,var(--accent-soft) 42%,var(--card)),var(--card))}
.discussion-list-card .discussion-list,.discussion-card>.discussion-list{padding:4px 24px 10px}
.discussion-head-note{font-size:11.5px;color:var(--muted)}
.discussion-item{display:flex;gap:12px;padding:18px 0;border-bottom:1px solid var(--border);flex-wrap:wrap}
.discussion-item:last-child{border-bottom:0}
.discussion-item>.avatar{width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,var(--accent-soft),var(--accent-border));color:var(--accent-deep);font-size:13px;font-weight:700;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 8%,transparent)}
.discussion-item__body{flex:1;min-width:0}
.discussion-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.discussion-author{display:flex;align-items:center;gap:7px;min-width:0}
.discussion-author b{font-size:13.5px;font-weight:700;color:var(--text)}
.discussion-author b a:hover{color:var(--accent-deep)}
.discussion-author .badge{margin:0;padding:1px 7px;border:1px solid var(--accent-border);border-radius:99px;background:var(--accent-soft);color:var(--accent-deep);font-size:10px;line-height:1.6}
.discussion-meta__details{display:flex;align-items:center;gap:9px;flex:none;color:var(--muted);font-size:10.5px}
.discussion-meta__details .loc,.discussion-meta__details time{margin:0}
.discussion-reply-context{display:inline-flex;margin-top:8px;padding:2px 8px;border-radius:6px;background:var(--card2);color:var(--muted);font-size:11px}
.discussion-reply-context b{margin-left:3px;color:var(--accent-deep)}
.discussion-item .discussion-text{margin:7px 0 0;color:var(--body);font-size:13px;line-height:1.8;word-break:break-word}
.discussion-item .comment-act{margin-top:8px}
.discussion-reply-action,.gb-item .discussion-reply-action{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:3px 9px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:11.5px}
.discussion-reply-action:hover,.gb-item .discussion-reply-action:hover{background:var(--accent-soft);color:var(--accent-deep)}
.discussion-reply-action svg{width:13px;height:13px}
.discussion-delete-action,.gb-item .discussion-delete-action{display:inline-flex;align-items:center;min-height:30px;padding:3px 9px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:11.5px}
.discussion-delete-action:hover,.gb-item .discussion-delete-action:hover{background:var(--danger);color:#fff}
.discussion-delete-action:disabled{opacity:.55;cursor:not-allowed}
.discussion-delete-action:disabled:hover{background:transparent;color:var(--muted)}
.discussion-children{flex:1 1 100%;margin:4px 0 0 52px;padding:0 0 0 15px;border-left:2px solid var(--accent-border)}
.discussion-children .discussion-item{padding:14px 0}
.discussion-children .discussion-item>.avatar{width:34px;height:34px;border-radius:10px;font-size:11px}
.discussion-empty{display:flex;min-height:150px;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:26px;text-align:center;color:var(--muted)}
.discussion-empty>svg{width:28px;height:28px;margin-bottom:4px;color:var(--accent)}
.discussion-empty b{font-size:13px;color:var(--body)}
.discussion-empty p{font-size:11.5px}
.discussion-empty--compact{min-height:96px;padding:18px}
.discussion-fragment{display:grid;gap:18px}
.discussion-fragment__list{border-top:1px solid var(--border)}
.discussion-fragment__head{display:flex;align-items:center;justify-content:space-between;padding:15px 0 0;color:var(--body);font-size:12px}
.discussion-fragment__head span{color:var(--muted)}

.discussion-entry{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:3px 9px;border:1px solid var(--border);border-radius:99px;background:var(--card2);color:var(--muted);font-size:11px;line-height:1.4;white-space:nowrap;transition:color .16s,border-color .16s,background .16s}
.discussion-entry:hover{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent-deep)}
.discussion-entry svg{width:13px;height:13px;flex:none}
.discussion-entry.is-disabled{cursor:not-allowed;opacity:.66}
.book-body .discussion-entry,.novel-card__body .discussion-entry{margin-top:8px}
.movie-card>.discussion-entry{margin:0 10px 11px}
.fav-foot .discussion-entry{margin-left:auto}

.discussion-dialog .dialog-box{width:min(860px,100%);padding:0;overflow:hidden}
.discussion-dialog .dialog-head{margin:0;padding:18px 22px;border-bottom:1px solid var(--border);background:linear-gradient(135deg,color-mix(in srgb,var(--accent-soft) 55%,var(--card)),var(--card))}
.discussion-dialog .dialog-head>div{min-width:0}
.discussion-dialog .dialog-head h2 span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.discussion-dialog .dialog-head p{margin-top:3px;color:var(--muted);font-size:11.5px}
.discussion-dialog__body{max-height:calc(100vh - 150px);overflow-y:auto;padding:22px}
.discussion-dialog__loading{display:grid;min-height:260px;place-items:center;color:var(--muted);font-size:13px}
.discussion-dialog__loading.is-error{color:var(--danger)}
[data-theme="dark"] .discussion-item>.avatar{background:linear-gradient(145deg,var(--accent-soft),color-mix(in srgb,var(--accent) 18%,var(--card)))}

/* ============ 时空门 ============ */
.portal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.portal-card{border:1px solid var(--border);border-radius:12px;padding:20px 16px;background:var(--card);transition:transform .22s ease,box-shadow .22s ease;display:block;text-align:center}
.portal-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
.portal-ico{width:44px;height:44px;border-radius:12px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;margin:0 auto 10px}
.portal-ico svg{width:21px;height:21px}
.portal-card b{font-size:14px;display:block}
.portal-card p{font-size:12px;color:var(--muted);margin-top:4px}

/* ============ 时空门 ============ */
.portal-gate{margin-bottom:16px;overflow:hidden}
.gate-stage{display:flex;flex-direction:column;align-items:center;gap:13px;text-align:center;padding:28px 22px 30px}
.gate-rings{position:relative;display:grid;place-items:center;width:150px;height:150px}
.gate-ring{position:absolute;border:3px solid transparent;border-radius:50%;pointer-events:none}
.gate-ring.is-outer{inset:0;border-top-color:#F59E0B;border-right-color:rgba(245,158,11,.22);animation:gate-spin 8s linear infinite}
.gate-ring.is-middle{inset:16px;border-bottom-color:#F43F5E;border-left-color:rgba(244,63,94,.22);animation:gate-spin 6s linear infinite reverse}
.gate-ring.is-inner{inset:32px;border-top-color:#10B981;border-bottom-color:rgba(16,185,129,.22);animation:gate-spin 4s linear infinite}
.gate-core{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--accent-soft);color:var(--accent);box-shadow:0 0 0 8px rgba(59,130,246,.08);animation:gate-pulse 2.6s ease-in-out infinite}
.gate-core svg{width:30px;height:30px}
.gate-stage.is-transporting .gate-ring.is-outer{animation-duration:1s}
.gate-stage.is-transporting .gate-ring.is-middle{animation-duration:.8s}
.gate-stage.is-transporting .gate-ring.is-inner{animation-duration:.6s}
.gate-stage.is-transporting .gate-core{animation-duration:.9s}
.gate-title{font-size:17px;font-weight:800;letter-spacing:.01em}
.gate-hint{margin:0;font-size:12.5px;color:var(--muted)}
.gate-btn{display:inline-flex;align-items:center;gap:7px;margin-top:4px;padding:10px 26px;border:none;border-radius:99px;background:var(--accent);color:#fff;font-size:13.5px;box-shadow:0 8px 20px rgba(59,130,246,.28);transition:transform .18s ease,background .15s ease}
.gate-btn:hover{background:var(--accent-deep);transform:translateY(-1px)}
.gate-btn svg{width:16px;height:16px}
.gate-btn[disabled]{opacity:.75;cursor:progress}
.gate-stage.is-transporting .gate-btn,.gate-stage.is-done .gate-btn{display:none}
.gate-result{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%}
.gate-result[hidden]{display:none}
.gate-result-title{margin:0;font-size:14px;font-weight:700;color:var(--accent-deep)}
.gate-result-text{margin:0;font-size:13.5px;color:var(--body);word-break:break-word}
.gate-result-source{margin:0;font-size:12px;color:var(--muted)}
.gate-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-top:10px}
.gate-actions svg{width:14px;height:14px}
@keyframes gate-spin{to{transform:rotate(360deg)}}
@keyframes gate-pulse{0%,100%{transform:scale(1);opacity:.9}50%{transform:scale(1.08);opacity:1}}

/* ============ 搜索页 ============ */
.search-hero{padding:10px 2px 4px}
.search-hero h1{font-size:26px;font-weight:800;letter-spacing:-.02em;margin-bottom:16px}
.search-big{display:flex;gap:10px}
.search-big input{flex:1;height:46px;border:1px solid var(--border);border-radius:12px;background:var(--card);padding:0 18px;font-family:inherit;font-size:14px;color:var(--text);outline:none;box-shadow:var(--shadow);transition:border-color .18s,box-shadow .18s}
.search-big input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.search-big button{height:46px;padding:0 22px;border-radius:12px;background:var(--accent);color:#fff;display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:500;transition:background .15s}
.search-big button:hover{background:var(--accent-deep)}
.search-big button svg{width:16px;height:16px}
.search-count{font-size:12.5px;color:var(--muted);padding:2px 2px 0}
.result-item{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;padding:16px 0;border-bottom:1px solid var(--border)}
.result-item:last-child{border-bottom:none}
.result-item .post-thumb{width:150px;height:92px}
.result-item .r-kind{font-size:11px;color:var(--accent);background:var(--accent-soft);border-radius:6px;padding:1px 8px;display:inline-block;margin-bottom:5px}
.result-item .r-main{min-width:0}
.result-item .r-main b{font-size:15px;font-weight:600;display:block;line-height:1.5}
.result-item .r-main b a{color:var(--text)}
.result-item .r-main b a:hover{color:var(--accent)}
.result-item .r-main p{font-size:12.5px;color:var(--body);margin-top:5px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.result-item .r-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:11.5px;color:var(--muted);margin-top:7px;align-items:center}
.result-item.no-thumb{grid-template-columns:minmax(0,1fr)}
.result-item mark{color:var(--accent-deep);background:var(--accent-soft);border-radius:3px;padding:0 2px}

/* ============ 空状态 ============ */
.empty{padding:90px 20px;text-align:center;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:6px}
.empty .empty-icon{width:64px;height:64px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;margin-bottom:10px}
.empty .empty-icon svg{width:28px;height:28px}
.empty b{font-size:15px;color:var(--text);font-weight:600}
.empty p{font-size:12.5px;max-width:320px}
.empty .btn{margin-top:14px}
.empty .btn.primary{background:var(--accent);color:#fff}

/* ============ 页脚 ============ */
.site-footer{position:relative;isolation:isolate;overflow:hidden;width:100%;min-height:clamp(176px,14vw,228px);margin-top:28px;padding:88px 22px 22px;display:flex;align-items:flex-end;justify-content:center;text-align:center;font-size:12px;color:#49617f}
.site-footer::before{content:"";position:absolute;left:50%;bottom:0;z-index:-2;width:max(100%,1000px);height:clamp(210px,20vw,320px);transform:translateX(-50%);background:url('../images/footer-mountains.png') center bottom/100% auto no-repeat;opacity:.94;pointer-events:none}
.site-footer::after{content:"";position:absolute;left:0;right:0;bottom:0;z-index:-1;height:78px;background:linear-gradient(180deg,rgba(230,240,252,0),rgba(220,233,249,.72));pointer-events:none}
.site-footer__content{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:1px;max-width:min(92%,720px);padding:8px 18px;border:1px solid rgba(255,255,255,.58);border-radius:16px;background:rgba(255,255,255,.72);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);box-shadow:0 8px 24px rgba(54,87,128,.12);text-shadow:0 1px 0 rgba(255,255,255,.72)}
.site-footer em{font-style:normal;color:#385475;display:block;line-height:1.7}
.site-footer__meta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px 12px;line-height:1.7}
.site-footer__meta em{display:inline}
.site-footer__rss{display:inline-flex;align-items:center;gap:4px;color:#385475;text-decoration:none;border-bottom:1px dotted currentColor;transition:color .2s,border-color .2s}
.site-footer__rss svg{width:13px;height:13px}
.site-footer__rss:hover{color:#3E7BFA;border-color:currentColor}
.site-footer.inline{margin:28px 0 calc(-1 * var(--footer-bleed))}
[data-theme="dark"] .site-footer{color:#c7d6ea}
[data-theme="dark"] .site-footer::before{opacity:.48;filter:saturate(.72) brightness(.68)}
[data-theme="dark"] .site-footer::after{background:linear-gradient(180deg,rgba(15,21,32,0),rgba(15,21,32,.78))}
[data-theme="dark"] .site-footer__content{border-color:rgba(148,163,184,.18);background:rgba(15,21,32,.68);box-shadow:0 10px 28px rgba(0,0,0,.24);text-shadow:none}
[data-theme="dark"] .site-footer em{color:#aebed3}
[data-theme="dark"] .site-footer__rss{color:#aebed3}
[data-theme="dark"] .site-footer__rss:hover{color:#7BA3FF}

/* ============ Toast ============ */
.toast{position:fixed;left:50%;bottom:calc(34px + env(safe-area-inset-bottom));transform:translate(-50%,80px);background:#1B2230;color:#E7ECF5;padding:9px 18px;border-radius:10px;font-size:13.5px;z-index:100;opacity:0;transition:opacity .28s cubic-bezier(.2,.9,.3,1.2),transform .28s cubic-bezier(.2,.9,.3,1.2);box-shadow:0 8px 26px rgba(0,0,0,.3);max-width:80vw}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast svg{width:15px;height:15px;vertical-align:-3px;margin-right:7px;color:#7BA3FF}
.toast.toast-error svg{color:#FF9A8F}

/* ============ 响应式 ============ */
.mobile-menu{display:none}
.mobile-mask{position:fixed;inset:0;background:rgba(10,16,28,.4);z-index:70;display:none}
body.drawer-open .mobile-mask{display:block}
body.drawer-open{overflow:hidden}
@media (max-width:1180px){
  .cols{grid-template-columns:minmax(0,1fr)}
  .col-side{display:none}
  .portal-grid{grid-template-columns:repeat(2,1fr)}
  .novel-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:900px){
  :root{--sidebar-w:0px}
  .sidebar{transform:translateX(-105%);transition:transform .24s ease;width:260px;z-index:80;box-shadow:none}
  .sidebar.open{transform:none;box-shadow:0 0 60px rgba(15,25,45,.3)}
  .main{margin-left:0;padding:12px 14px 30px;--footer-bleed:30px}
  .reading-progress{left:0}
  .music-player{left:14px;right:14px;bottom:10px;grid-template-columns:38px minmax(90px,1fr) auto auto;gap:9px;padding:9px 10px}.music-player__cover{width:38px;height:38px}.music-player__timeline{grid-column:1 / -1;grid-row:2}.music-player__volume{display:none}.music-player__extra [data-ib-player-mode]{display:none}.music-player__extra{gap:0}.music-player.is-collapsed{left:14px;right:auto}.music-player.is-collapsed .music-player__timeline{display:none}
  .music-playlist{left:14px;right:14px;width:auto;bottom:calc(124px + env(safe-area-inset-bottom));max-height:46vh}
  .mobile-menu{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--card);border:1px solid var(--border);flex:none}
  .mobile-menu svg{width:17px;height:17px;color:var(--body)}
  .topbar{position:sticky;top:0;z-index:60;background:var(--bg);padding:10px 0}
  .search-form{width:auto;flex:1;max-width:none}
  .book-grid,.movie-grid{grid-template-columns:repeat(2,1fr)}
  .novel-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  /* 七列周视图在窄屏挤不下，切换为按天分组的竖排列表 */
  .wcal-grid{display:none}
  .wcal-mobile{display:block}
  .wcal{padding:14px}
  .photo-grid,.album-grid{grid-template-columns:repeat(2,1fr)}
  .link-grid,.portal-grid{grid-template-columns:repeat(2,1fr)}
  .hero{padding:26px 22px;min-height:220px}
  .hero h1{font-size:27px}
  .hero-slogan{display:none}
  .page-hero{padding:24px 22px}
  .page-hero .ph-img{width:80%}
  .page-hero .hero-act{position:static;margin-top:14px}
  .post-item{grid-template-columns:minmax(0,1fr) 28px}
  .post-thumb{width:100%;height:170px;grid-column:1 / -1}
  .post-view{padding:24px 20px}
  .post-view h1{font-size:22px}
  .tl-row{grid-template-columns:20px minmax(0,1fr)}
  .tl-date{grid-column:2;text-align:left;padding:0 0 6px}
  .tl-rail{grid-row:2}
  .tl-card{grid-column:2}
  .about-head{flex-direction:column;text-align:center;padding:22px}
  .skill-tags{justify-content:center}
  .quote-banner{flex-direction:column;align-items:flex-start;gap:8px}
  .quote-banner .qb-img{display:none}
  /* 窄屏下 Markdown 表格改块级横向滚动，避免撑破单列布局（.post-body pre 已有 overflow-x） */
  .post-body table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  /* 移动端输入框字号 ≥16px，防止 iOS Safari 聚焦时自动放大页面 */
  .comment-form textarea,.comment-form input,.lock-form input,.search-form input,
  .wish-nick input,.gb-form input,.gb-form textarea,.search-big input,
  .dialog-field input,.dialog-field textarea{font-size:16px}
  /* 移动端触控目标 ≥44×44px、相邻可点元素间距 ≥8px；桌面端保持设计稿尺寸不变 */
  .page-nav{gap:8px}
  .nav-item{margin:3px 0;min-height:44px}
  .top-icon,.mobile-menu,.lb-close,.lb-btn,.music-item .play,.theme-pair,
  .page-nav a,.page-nav span,.post-more,.search-form button,.dialog-x,
  .wcal-arrow,.wcal-today{min-width:44px;min-height:44px}
  .search-form button{width:44px;height:44px;top:0;right:2px}
  .search-form input{height:44px}
  .action-btn,.cat-btn,.space-tab,.pager a,.tag-cloud a,.tag-cloud-lg a,
  .tl-foot button,.wish-cheer,.comment-act button,.gb-item .reply,
  .comment-submit,.btn{min-height:44px}
}
@media (max-width:600px){
  .main{--footer-bleed:24px;padding:10px 10px 24px}
  .novel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .music-item{gap:9px;padding:9px 2px}
  .music-item .idx,.music-item .tag-pill{display:none}
  .music-item__cover{width:48px;height:48px}
  .music-item .artist{max-width:28%}
  .site-footer{min-height:164px;margin-top:18px;padding:64px 12px 14px}
  .site-footer::before{width:980px;height:210px;opacity:.86}
  .site-footer::after{height:64px}
  .site-footer__content{max-width:calc(100% - 20px);padding:7px 14px}
}
@media (max-width:520px){
  .hero-stats{gap:0;flex-wrap:wrap}
  .hstat{padding:0 14px}
  .photo-grid{grid-template-columns:1fr 1fr;gap:10px}
  .album-grid{grid-template-columns:1fr}
  .book-grid,.movie-grid,.link-grid,.portal-grid{grid-template-columns:1fr}
  .tl-card .m-img{width:100%}
  .gb-form input{flex:1 1 100%}
  .dialog{padding:12px}
  .dialog-box{padding:16px 15px 18px;max-height:calc(100vh - 24px)}
  .post-view h1{font-size:20px}
  .set-row .g1{width:100%}
  .result-item{grid-template-columns:minmax(0,1fr)}
  .result-item .post-thumb{width:100%;height:150px}
}

/* 极窄屏：进一步压缩外边距与卡片内边距，保证单列内容不拥挤。
   触控目标与输入框字号沿用上方 ≤900px 规则，此处不重复下调 */
@media (max-width:360px){
  .main{padding:10px 10px 24px}
  .card-pad,.post-list{padding-left:15px;padding-right:15px}
  .sec-head{padding-left:15px;padding-right:15px}
  .hero{padding:20px 16px}
  .post-view{padding:20px 15px}
  .post-view h1{font-size:19px}
}

/* ============ 滚动条美化 ============ */
*{scrollbar-width:thin;scrollbar-color:var(--border2) transparent}
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--border2);border-radius:99px}
::-webkit-scrollbar-thumb:hover{background:var(--accent-border)}
.sidebar::-webkit-scrollbar{width:5px}
.sidebar::-webkit-scrollbar-thumb{background:transparent}
.sidebar:hover::-webkit-scrollbar-thumb{background:var(--border2)}
.sidebar:hover::-webkit-scrollbar-thumb:hover{background:var(--accent-border)}

/* ============ 打印 ============ */
@media print{
  .sidebar,.col-side,.topbar,.site-footer,.comment-form,.post-actions,.lightbox,.toast,.quote-banner,.dialog{display:none !important}
  .main{margin:0;padding:0}
  body{background:#fff;color:#000}
  .card{border:none;box-shadow:none;padding:0}
}

/* ============ 减弱动态效果偏好 ============ */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important
  }
}

/* ============ 随记页（模板式时间线：单卡片内左竖线 + 圆点） ============ */
/* 与上文 .timeline/.tl-* 的三列栅格是两套版式，后者仍由博友圈页使用，故另起类名 */
.note-tl{padding:25px}
.note-item{position:relative;padding:0 0 30px 25px;border-left:2px solid var(--border)}
.note-item:last-child{padding-bottom:0}
.note-item::before{content:"";position:absolute;left:-6px;top:3px;width:10px;height:10px;border-radius:50%;background:var(--accent)}
.note-item>time{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.note-item .tag-pill{margin-left:8px}
.note-item .note-body>p{margin:5px 0 0;font-size:13px;color:var(--body);line-height:1.8;word-break:break-word}
/* 内容折叠：限高值与 inkblog.js 的 NOTE_CLAMP_HEIGHT 保持一致，超出由 is-clamped 收起 */
.note-body{position:relative}
.note-body.is-clamped{max-height:400px;overflow:hidden}
/* 收起态底部渐隐提示截断；底色取卡片背景变量以适配深浅主题 */
.note-body.is-clamped::after{content:"";position:absolute;left:0;right:0;bottom:0;height:64px;background:linear-gradient(180deg,transparent,var(--card));pointer-events:none}
/* 展开/收起按钮：视觉沿用 .tl-foot button 的胶囊样式 */
.note-clamp-btn{display:inline-flex;align-items:center;gap:5px;margin-top:8px;font-size:11.5px;color:var(--muted);padding:3px 10px;border-radius:99px;background:var(--card2);border:1px solid var(--border);transition:color .15s,border-color .15s,background .15s}
/* 作者样式的 display 会覆盖 UA 的 [hidden]，未超高的条目必须靠这条规则真正隐藏按钮 */
.note-clamp-btn[hidden]{display:none}
.note-clamp-btn:hover{color:var(--accent-deep);border-color:var(--accent-border)}
.note-clamp-btn svg{width:12px;height:12px;transition:transform .2s ease}
.note-clamp-btn.is-open svg{transform:rotate(180deg)}
/* 配图网格：列数按张数收敛，避免单图被拉成整行宽 */
.note-imgs{display:grid;gap:8px;margin-top:10px;grid-template-columns:repeat(3,minmax(0,1fr))}
.note-imgs[data-count="1"]{grid-template-columns:minmax(0,240px)}
.note-imgs[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:420px}
.note-imgs img{width:100%;height:132px;object-fit:cover;border-radius:10px;border:1px solid var(--border);cursor:zoom-in;background:var(--card2)}
.note-imgs[data-count="1"] img{height:180px}
.note-item .tl-foot{margin-top:10px}
/* 评论展开面板：分隔线用虚线，与条目内的实线边框区分层级 */
.note-comments{margin-top:12px;padding-top:4px;border-top:1px dashed var(--border)}
/* 下拉加载哨兵：默认 hidden，脚本接管后由 inkblog.js 摘除 */
.note-more,.load-more{padding:14px 0 4px;text-align:center;font-size:12px;color:var(--muted)}
.note-more.is-error,.load-more.is-error{color:var(--danger);cursor:pointer}

@media (max-width:900px){
  .note-tl{padding:20px}
  .note-imgs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .note-imgs[data-count="2"]{max-width:none}
}
@media (max-width:520px){
  .note-tl{padding:16px}
  .note-item{padding-left:18px}
  .note-imgs{gap:6px}
  .note-imgs img{height:104px}
  .note-imgs[data-count="1"] img{height:150px}
}

/* ============ 首页：个人宇宙 ============ */
.home-universe-hero{position:relative;isolation:isolate;min-height:250px;padding:24px 28px;border-radius:var(--radius);overflow:hidden;color:#fff;display:grid;grid-template-columns:minmax(0,1fr) 360px;align-items:center;gap:28px;box-shadow:var(--shadow)}
.home-universe-hero__bg,.home-universe-hero__shade{position:absolute;inset:0;width:100%;height:100%}
.home-universe-hero__bg{z-index:-2;object-fit:cover}
.home-universe-hero__shade{z-index:-1;background:linear-gradient(90deg,rgba(8,39,82,.9),rgba(18,75,137,.58) 58%,rgba(8,30,59,.32))}
.home-universe-hero__intro{min-width:0}
.home-welcome-row{display:flex;align-items:center;gap:16px}
.home-welcome-avatar,.home-universe-avatar{display:grid;place-items:center;overflow:hidden;flex:none;color:#fff;font-weight:800;background:rgba(255,255,255,.2);border:2px solid rgba(255,255,255,.86);box-shadow:0 8px 22px rgba(7,30,61,.22)}
.home-welcome-avatar{width:66px;height:66px;border-radius:50%;font-size:22px}
.home-welcome-avatar img,.home-universe-avatar img{grid-area:1/1;width:100%;height:100%;object-fit:cover}
.home-eyebrow{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;opacity:.82}
.home-universe-hero h1{margin:2px 0 2px;font-size:25px;line-height:1.3;letter-spacing:-.02em}
.home-universe-hero p{font-size:12.5px;opacity:.86}
.home-hero-actions{display:flex;align-items:center;gap:18px;margin-top:20px}
.home-hero-stats{display:flex;align-items:center}
.home-hero-stats span{min-width:64px;padding:0 15px;border-right:1px solid rgba(255,255,255,.28);text-align:center}
.home-hero-stats span:first-child{padding-left:0}.home-hero-stats span:last-child{border:0}
.home-hero-stats b,.home-hero-stats small{display:block}.home-hero-stats b{font-size:18px;line-height:1.2}.home-hero-stats small{font-size:10px;opacity:.78}
.home-roam{height:38px;padding:0 16px;border-radius:99px;background:var(--accent);display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;box-shadow:0 7px 18px rgba(24,91,225,.32);transition:transform .2s,box-shadow .2s}
.home-roam:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(24,91,225,.4)}.home-roam svg{width:15px;height:15px}

.home-player{min-width:0;padding:14px;border:1px solid rgba(255,255,255,.18);border-radius:15px;background:rgba(10,29,57,.78);box-shadow:0 16px 36px rgba(4,20,43,.24);display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px}
.home-player__cover{position:relative;width:72px;height:72px;border-radius:12px;overflow:hidden;background:rgba(255,255,255,.12);display:grid;place-items:center}
.home-player__cover img{grid-area:1/1;width:100%;height:100%;object-fit:cover;z-index:1}.home-player__fallback{grid-area:1/1}.home-player__fallback svg{width:26px;height:26px;opacity:.7}
.home-player__body{min-width:0}.home-player__meta{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.home-player__meta strong,.home-player__meta span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-player__meta strong{font-size:14px}.home-player__meta span{font-size:10.5px;opacity:.7}.home-player__meta a{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.1)}
.home-player__meta svg{width:14px;height:14px}.home-player__timeline{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:6px;margin-top:7px;font-size:9px;opacity:.8}
.home-player__timeline input,.home-player__volume input{width:100%;min-width:0;height:3px;accent-color:#60A5FA;cursor:pointer}
.home-player__controls{display:flex;align-items:center;gap:5px;margin-top:8px}
.home-player__controls button{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;color:#fff;transition:background .18s,transform .18s}
.home-player__controls button:hover:not(:disabled){background:rgba(255,255,255,.12);transform:translateY(-1px)}
.home-player__controls button:disabled{opacity:.35;cursor:not-allowed}.home-player__controls svg{width:14px;height:14px}
.home-player__controls .home-player__toggle{width:34px;height:34px;background:var(--accent);box-shadow:0 5px 14px rgba(37,99,235,.4)}
.home-player__volume{margin-left:auto;display:flex;align-items:center;gap:5px;width:82px}.home-player__volume svg{flex:none}.home-player__mode{gap:3px}.home-player__mode small{font-size:8px}

.home-dashboard{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(390px,.9fr);gap:18px;align-items:start}
.home-activity-stream,.home-universe-map{min-width:0}.home-sec-head{padding-bottom:10px}.home-stream-tabs{display:flex;gap:8px;padding:0 22px 8px}
.home-stream-tabs a{padding:4px 10px;border-radius:99px;color:var(--muted);font-size:11px}.home-stream-tabs a.active{color:var(--accent-deep);background:var(--accent-soft);font-weight:700}
.home-post-list{padding-top:0}.home-post-list .post-item{padding-top:10px;padding-bottom:10px}.home-post-list .post-thumb{width:118px;height:72px}.home-post-list .post-desc{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-activity-timeline{position:relative;padding:0 18px 8px}
/* 竖线按 entry 分两段拼接：entry::before 画「本点中心→条目底」，date::before 画「条目顶→本点中心」，
   首条不画上段、末条不画下段，实现设计稿的"起于首点、止于末点"。
   分两段而非用负 bottom 溢出，是为规避宽屏 .home-activity-entry{overflow:hidden} 的裁切 */
.home-activity-entry::before{content:"";position:absolute;left:4px;top:22px;bottom:0;width:1px;background:var(--accent-border)}
.home-activity-entry:last-child::before{display:none}
.home-activity-entry{position:relative;display:grid;grid-template-columns:80px minmax(0,1fr);gap:16px;min-width:0}
.home-activity-date{position:relative;padding-top:15px;padding-left:16px;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.home-activity-date::before{content:"";position:absolute;left:4px;top:0;width:1px;height:22px;background:var(--accent-border)}
.home-activity-entry:first-child .home-activity-date::before{display:none}
.home-activity-date::after{content:"";position:absolute;left:0;top:18px;width:8px;height:8px;border:2px solid var(--card);border-radius:50%;background:var(--accent);box-shadow:0 0 0 1px var(--accent-border)}
.home-activity-entry .home-post-list{min-width:0}
.home-activity-entry .post-item{grid-template-columns:170px minmax(0,1fr);gap:12px;min-height:104px;padding:8px 0}
.home-activity-entry .post-thumb{width:170px;height:82px}
.home-activity-entry .post-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-activity-entry .post-title a{display:block;overflow:hidden;text-overflow:ellipsis}
.home-activity-entry .post-excerpt{margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-activity-entry .post-meta{margin-top:6px;justify-content:flex-end;gap:6px 10px}.home-activity-entry .post-meta span:nth-child(-n+2){display:none}
.home-activity-entry .post-meta .post-meta__tags{order:-1;margin-left:0;margin-right:auto}
.home-activity-entry .post-more{display:none}

.home-universe-map{position:relative;padding-bottom:14px;overflow:hidden;align-self:start}
.home-universe-orbit{position:relative;width:calc(100% - 24px);max-width:560px;height:286px;margin:0 auto}
.home-universe-orbit__ring{position:absolute;left:50%;top:46%;border:1px solid color-mix(in srgb,var(--accent) 26%,var(--border));border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;opacity:.6}
.home-universe-orbit__ring::before,.home-universe-orbit__ring::after{content:"";position:absolute;top:50%;width:7px;height:7px;transform:translateY(-50%);border-radius:50%;background:#F59E0B;opacity:.75}
.home-universe-orbit__ring::before{left:-4px}.home-universe-orbit__ring::after{right:-4px}
.home-universe-orbit__ring--outer{width:48%;height:54%}
/* 星散布装饰彩点 */
.home-universe-dot{position:absolute;z-index:1;border-radius:50%;pointer-events:none}
.home-universe-dot--1{width:6px;height:6px;left:33%;top:27%;background:#3B82F6;opacity:.55}
.home-universe-dot--2{width:5px;height:5px;left:67%;top:27%;background:#22C3DD;opacity:.55}
.home-universe-dot--3{width:6px;height:6px;left:33%;top:65%;background:#8B5CF6;opacity:.5}
.home-universe-dot--4{width:5px;height:5px;left:67%;top:65%;background:#3B82F6;opacity:.5}
.home-universe-dot--5{width:4px;height:4px;left:52%;top:30%;background:#3B82F6;opacity:.45}
.home-universe-core{position:absolute;left:50%;top:46%;z-index:2;text-align:center;display:flex;flex-direction:column;align-items:center;transform:translate(-50%,-50%);--uv-avatar:66px}
/* 头像底部椭圆光斑底座 */
.home-universe-core::before{content:"";position:absolute;left:50%;top:calc(var(--uv-avatar) - 2px);width:120px;height:20px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(50% 50% at 50% 50%,rgba(59,130,246,.18),transparent 72%);z-index:-1}
.home-universe-avatar{width:var(--uv-avatar);height:var(--uv-avatar);border-radius:50%;font-size:20px;color:var(--accent-deep);background:var(--accent-soft);border:3px solid #fff;box-shadow:0 0 0 5px rgba(59,130,246,.08),0 10px 22px rgba(37,99,235,.2)}
.home-universe-core strong{margin-top:10px;font-size:14px;color:var(--text)}.home-universe-core small{font-size:10px;color:var(--muted);white-space:nowrap}
.home-universe-links{position:absolute;inset:0}
/* 功能节点：横向排列，图标始终朝向中心头像、文字向外展开（is-left 镜像） */
.home-universe-link{position:absolute;z-index:3;display:flex;align-items:center;gap:9px;max-width:170px;color:var(--body);transition:transform .2s,color .2s}
.home-universe-link.is-left{flex-direction:row-reverse;text-align:right}
.home-universe-link:hover{z-index:4;color:var(--accent-deep);transform:scale(1.05)}
.home-universe-link>span{flex:none;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;color:var(--tone,#2563EB);background:color-mix(in srgb,var(--tone,#2563EB) 11%,var(--card));border:1px solid color-mix(in srgb,var(--tone,#2563EB) 18%,var(--border));box-shadow:0 5px 13px color-mix(in srgb,var(--tone,#2563EB) 16%,transparent)}
.home-universe-link__text{min-width:0}
.home-universe-link svg{width:18px;height:18px}
.home-universe-link b,.home-universe-link small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-universe-link b{font-size:12.5px;font-weight:700;color:var(--text)}
.home-universe-link small{margin-top:2px;font-size:10px;color:var(--muted)}
[data-theme="dark"] .home-universe-link>span{background:color-mix(in srgb,var(--tone,#2563EB) 24%,var(--card));color:color-mix(in srgb,var(--tone,#2563EB) 72%,#fff);border-color:color-mix(in srgb,var(--tone,#2563EB) 34%,var(--border))}
[data-theme="dark"] .home-universe-link b{color:var(--text)}
/* 节点定位：以 36px 图标中心锚定设计稿椭圆坐标（右侧节点 left=fx%-18px，is-left 节点 right=(1-fx)%-18px，top=fy%-18px） */
.home-universe-link--albums{--tone:#3B82F6;right:calc(69.4% - 18px);top:calc(18.9% - 18px)}
.home-universe-link--favorites{--tone:#F59E0B;left:calc(45.3% - 18px);top:calc(11.3% - 18px)}
.home-universe-link--links{--tone:#10B981;left:calc(69.4% - 18px);top:calc(18.9% - 18px)}
.home-universe-link--messages{--tone:#7C5CFF;left:calc(84.7% - 18px);top:calc(38.2% - 18px)}
.home-universe-link--books{--tone:#2563EB;left:calc(84.7% - 18px);top:calc(64.7% - 18px)}
.home-universe-link--music{--tone:#8B5CF6;left:calc(73.5% - 18px);top:calc(81.9% - 18px)}
.home-universe-link--watch{--tone:#F43F5E;left:calc(49% - 18px);top:calc(88.2% - 18px)}
.home-universe-link--novels{--tone:#0EA5E9;right:calc(71.4% - 18px);top:calc(81.9% - 18px)}
.home-universe-link--wishes{--tone:#EC4899;right:calc(80.6% - 18px);top:calc(64.7% - 18px)}
.home-universe-link--moments{--tone:#3B82F6;right:calc(82.7% - 18px);top:calc(38.2% - 18px)}
.home-universe-utilities{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:5px 12px 0;padding-top:10px;border-top:1px solid var(--border)}
/* 入口卡：竖排、图标在上、标题计数左对齐，与设计稿一致 */
.home-universe-utilities a{min-width:0;min-height:112px;border:1px solid transparent;border-radius:12px;background:var(--card2);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;padding:12px 14px;color:var(--body);transition:background .18s,color .18s,border-color .18s}
.home-universe-utilities a:hover{color:var(--accent-deep);background:var(--accent-soft);border-color:var(--accent-border)}
.home-universe-utilities a>span{flex:none;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;color:var(--tone,#2563EB);background:color-mix(in srgb,var(--tone,#2563EB) 11%,var(--card))}
.home-universe-utilities a>div{min-width:0}
.home-universe-utilities svg{width:18px;height:18px}.home-universe-utilities b,.home-universe-utilities small{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-universe-utilities b{font-size:12.5px;font-weight:700;color:var(--text)}.home-universe-utilities small{margin-top:2px;font-size:10px;color:var(--muted)}
[data-theme="dark"] .home-universe-utilities a>span{background:color-mix(in srgb,var(--tone,#2563EB) 24%,var(--card));color:color-mix(in srgb,var(--tone,#2563EB) 72%,#fff)}
[data-theme="dark"] .home-universe-utilities b{color:var(--text)}
.home-universe-utilities a:nth-child(1){--tone:#3B82F6}.home-universe-utilities a:nth-child(2){--tone:#8B5CF6}
.home-universe-utilities a:nth-child(3){--tone:#F43F5E}.home-universe-utilities a:nth-child(4){--tone:#06B6D4}
/* 宇宙卡右上角说明小字 */
.home-universe-note{max-width:210px;text-align:right;font-size:10px;line-height:1.6;color:var(--muted)}

.home-life-board{padding:18px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow)}
.home-life-board__head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:14px}
.home-life-board__head .home-eyebrow{color:var(--accent);opacity:1}.home-life-board__head h2{font-size:17px;line-height:1.35}.home-life-board__head time{font-size:10.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.home-life-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px}
.home-life-card{min-width:0;padding:13px;border:1px solid var(--border);border-radius:12px;background:var(--card2)}
.home-life-card__head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.home-life-card__head h3{min-width:0;display:flex;align-items:center;gap:6px;font-size:11.5px}.home-life-card__head h3 svg{width:14px;height:14px;color:var(--accent);flex:none}
.home-life-card__head>a{font-size:9.5px;color:var(--muted)}.home-life-card__head>a:hover{color:var(--accent)}
.home-life-gallery{grid-column:span 4;grid-row:span 2}.home-media-preview{grid-column:span 2}.home-wish-preview{grid-column:span 2;grid-row:span 2}
.home-collection-preview{grid-column:span 3}.home-social-preview{grid-column:span 4}.home-message-preview{grid-column:span 3}.home-link-preview{grid-column:span 2}
.home-life-gallery__photos{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.home-life-gallery__photos>a{min-width:0;height:78px;border-radius:8px;overflow:hidden;background:var(--accent-soft);display:grid;place-items:center;color:var(--accent)}
.home-life-gallery__photos img{grid-area:1/1;width:100%;height:100%;object-fit:cover}.home-life-gallery__photos svg{width:20px;height:20px}
.home-note-preview{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:6px;margin-top:9px;padding-top:9px;border-top:1px solid var(--border);font-size:9.5px;color:var(--body)}
.home-note-preview svg{width:13px;height:13px;color:var(--accent)}.home-note-preview span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-note-preview time{color:var(--muted)}
.home-media-preview__body{display:grid;grid-template-columns:44px minmax(0,1fr);gap:9px;align-items:center}
.home-media-cover{width:44px;height:58px;border-radius:7px;overflow:hidden;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}
.home-media-cover img{grid-area:1/1;width:100%;height:100%;object-fit:cover}.home-media-cover svg{width:18px;height:18px}
.home-media-preview__body b,.home-media-preview__body small,.home-media-preview__body em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-media-preview__body b{font-size:10.5px}.home-media-preview__body small{font-size:9px;color:var(--muted)}.home-media-preview__body em{font-size:8.5px;color:var(--accent);font-style:normal}
.home-media-preview progress{display:block;width:100%;height:4px;margin:7px 0 2px;accent-color:var(--accent)}
.home-wish-preview ul{display:flex;flex-direction:column;gap:7px;list-style:none}.home-wish-preview li{display:flex;align-items:center;gap:6px;font-size:9.5px;color:var(--body)}
.home-wish-preview li svg{width:13px;height:13px;color:var(--accent);flex:none}.home-wish-preview li.is-done{color:var(--muted);text-decoration:line-through}
.home-wish-preview li time{margin-left:auto;font-size:9px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.home-chip-list{display:flex;flex-wrap:wrap;gap:6px}.home-chip-list a{max-width:100%;padding:5px 8px;border-radius:99px;background:var(--card);border:1px solid var(--border);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-social-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.home-social-list a{min-width:0;display:grid;grid-template-columns:26px minmax(0,1fr);column-gap:6px;align-items:center}
.home-social-list a>span{grid-row:1/3;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:9px;font-weight:700}
.home-social-list b,.home-social-list small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-social-list b{font-size:9.5px}.home-social-list small{font-size:8.5px;color:var(--muted)}
.home-message-preview blockquote{padding:6px 8px;border-left:2px solid var(--accent-border);font-size:9px}.home-message-preview blockquote+blockquote{margin-top:5px}.home-message-preview blockquote b{font-size:9.5px}.home-message-preview blockquote p{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 友情链接：头像 + 名称横向列表 */
.home-link-friends{display:flex;flex-wrap:wrap;gap:8px}
.home-link-friends a{min-width:0;max-width:100%;display:inline-flex;align-items:center;gap:6px;font-size:10px;color:var(--body);transition:color .15s}
.home-link-friends a:hover{color:var(--accent-deep)}
.home-link-friends a>span{flex:none;width:24px;height:24px;border-radius:50%;overflow:hidden;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:9.5px;font-weight:700}
.home-link-friends img{grid-area:1/1;width:100%;height:100%;object-fit:cover}
.home-link-friends b{max-width:72px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.home-life-empty{min-height:60px;display:grid;place-items:center;text-align:center;color:var(--muted);font-size:9.5px;border:1px dashed var(--border2);border-radius:8px}
.home-quote{min-height:44px;padding:8px 18px;border:1px solid var(--accent-border);border-radius:12px;background:var(--accent-soft);display:flex;align-items:center;gap:10px;color:var(--body)}
.home-quote svg{width:16px;height:16px;color:var(--accent);flex:none}.home-quote p{min-width:0;flex:1;font-size:11px}.home-quote span{font-size:9px;color:var(--muted);white-space:nowrap}

@media (max-width:1320px){
  .home-universe-hero{grid-template-columns:minmax(0,1fr) 320px}
  .home-dashboard{grid-template-columns:minmax(0,1fr)}
  .home-universe-links{grid-template-columns:repeat(5,1fr)}
  .home-life-gallery{grid-column:span 6}.home-media-preview{grid-column:span 3}.home-wish-preview{grid-column:span 3}
  .home-collection-preview,.home-message-preview{grid-column:span 4}.home-social-preview{grid-column:span 5}.home-link-preview{grid-column:span 3}
}
@media (max-width:900px){
  .home-universe-hero{grid-template-columns:minmax(0,1fr);padding:22px;gap:18px}
  .home-player{max-width:520px}.home-life-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-life-gallery,.home-media-preview,.home-wish-preview,.home-collection-preview,.home-social-preview,.home-message-preview,.home-link-preview{grid-column:span 1;grid-row:auto}
  .home-life-gallery,.home-social-preview{grid-column:1/-1}
}
@media (max-width:600px){
  .home-universe-hero{padding:18px 15px}.home-welcome-avatar{width:52px;height:52px}.home-universe-hero h1{font-size:20px}
  .home-hero-actions{align-items:flex-start;flex-direction:column}.home-hero-stats{width:100%}.home-hero-stats span{flex:1;min-width:0;padding:0 8px}
  .home-roam{min-height:44px}.home-player{grid-template-columns:56px minmax(0,1fr);padding:11px}.home-player__cover{width:56px;height:56px}
  .home-player__volume,.home-player__mode{display:none}.home-universe-links{grid-template-columns:repeat(2,1fr)}
  .home-universe-utilities{grid-template-columns:repeat(2,1fr)}.home-life-grid{grid-template-columns:1fr}
  .home-life-gallery,.home-media-preview,.home-wish-preview,.home-collection-preview,.home-social-preview,.home-message-preview,.home-link-preview{grid-column:1}
  .home-social-list{grid-template-columns:1fr}.home-life-board{padding:14px}.home-life-board__head time{display:none}
}

/* ============ 首页模板 C：页脚山林剪影（真实透明图片资产） ============ */
.home-universe-ridge{position:relative;height:110px;margin-top:16px;pointer-events:none;overflow:hidden}
.home-universe-ridge__image{width:100%;height:100%;object-fit:fill;object-position:center bottom}
[data-theme="dark"] .home-universe-ridge__image{opacity:.42}

/* ============ 首页模板 A：仪表盘式（dashboard） ============ */
.home-dash-hero{position:relative;isolation:isolate;min-height:230px;padding:30px 34px;border-radius:var(--radius);overflow:hidden;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:24px;box-shadow:var(--shadow)}
.home-dash-hero__bg,.home-dash-hero__shade{position:absolute;inset:0;width:100%;height:100%}
.home-dash-hero__bg{z-index:-2;object-fit:cover}
.home-dash-hero__shade{z-index:-1;background:linear-gradient(100deg,rgba(15,52,110,.92),rgba(37,99,235,.6) 55%,rgba(15,40,80,.26))}
.home-dash-hero__main{position:relative;z-index:1;min-width:0;max-width:640px}
.home-dash-hero h1{margin:4px 0 8px;font-size:30px;font-weight:800;letter-spacing:-.02em}
.home-dash-hero__intro{font-size:13px;opacity:.92;max-width:560px}
.home-dash-hero__stats{display:flex;align-items:center;margin:18px 0 20px}
.home-dash-hero__stats span{min-width:72px;padding:0 18px;border-right:1px solid rgba(255,255,255,.28);text-align:center}
.home-dash-hero__stats span:first-child{padding-left:0}.home-dash-hero__stats span:last-child{border:0}
.home-dash-hero__stats b,.home-dash-hero__stats small{display:block}
.home-dash-hero__stats b{font-size:20px;line-height:1.2}.home-dash-hero__stats small{font-size:10.5px;opacity:.8}
.home-dash-hero__cta{height:42px;padding:0 22px;border-radius:99px;background:#fff;color:var(--accent-deep);display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;box-shadow:0 8px 20px rgba(8,30,60,.24);transition:transform .2s,box-shadow .2s}
.home-dash-hero__cta:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(8,30,60,.3)}.home-dash-hero__cta svg{width:16px;height:16px}
.home-dash-hero__slogan{position:relative;z-index:1;flex:none;max-width:230px;text-align:right;font-size:22px;line-height:1.7;font-family:"STKaiti","KaiTi","BiauKai",serif;transform:rotate(-3deg);opacity:.96;text-shadow:0 1px 6px rgba(0,0,0,.25);white-space:pre-line}

.home-dash-split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:18px;align-items:start}
.home-dash-latest,.home-dash-explore{min-width:0}
.home-dash-latest .sec-head,.home-dash-explore .sec-head{padding:16px 18px 10px}
.home-dash-latest .sec-head h2,.home-dash-explore .sec-head h2{font-size:15px}
.home-dash-explore .sec-head h2 .home-dash-explore__badge{width:26px;height:26px;border-radius:8px;background:var(--accent);color:#fff;display:grid;place-items:center;flex:none}
.home-dash-explore .sec-head h2 .home-dash-explore__badge svg{width:15px;height:15px;color:#fff}
.home-dash-explore__hint{font-size:11.5px;color:var(--muted);white-space:nowrap}
.home-dash-explore__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:4px 18px 0}
/* 宫格卡片：白/极浅色调底 + 细边框，圆形图标底与图标同色系着色（--tone 由 --0~--15 逐项指定） */
.home-dash-tile{--tone:#3B82F6;min-width:0;padding:12px 8px;border:1px solid var(--border);border-radius:12px;background:color-mix(in srgb,var(--tone) 5%,var(--card));text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;transition:transform .2s,box-shadow .2s,border-color .2s}
.home-dash-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover);border-color:color-mix(in srgb,var(--tone) 40%,var(--border))}
.home-dash-tile__icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--tone) 13%,var(--card));color:var(--tone)}
.home-dash-tile__icon svg{width:18px;height:18px}
.home-dash-tile b{font-size:13px;font-weight:700;color:var(--text);line-height:1.35}
.home-dash-tile small{font-size:10.5px;color:var(--muted);line-height:1.4}
[data-theme="dark"] .home-dash-tile__icon{background:color-mix(in srgb,var(--tone) 22%,var(--card));color:color-mix(in srgb,var(--tone) 72%,#fff)}
.home-dash-tile--0{--tone:#3B82F6}.home-dash-tile--1{--tone:#8B5CF6}.home-dash-tile--2{--tone:#06B6D4}.home-dash-tile--3{--tone:#F59E0B}
.home-dash-tile--4{--tone:#0EA5E9}.home-dash-tile--5{--tone:#8B5CF6}.home-dash-tile--6{--tone:#10B981}.home-dash-tile--7{--tone:#A855F7}
.home-dash-tile--8{--tone:#F43F5E}.home-dash-tile--9{--tone:#6366F1}.home-dash-tile--10{--tone:#F43F5E}.home-dash-tile--11{--tone:#3B82F6}
.home-dash-tile--12{--tone:#3B82F6}.home-dash-tile--13{--tone:#6366F1}.home-dash-tile--14{--tone:#F43F5E}.home-dash-tile--15{--tone:#3B82F6}

.home-dash-life{padding:18px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow)}
.home-dash-life__head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:14px}
.home-dash-life__head .home-eyebrow{color:var(--accent);opacity:1}.home-dash-life__head h2{font-size:17px;line-height:1.35}
.home-dash-life__head time{font-size:10.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.home-dash-life__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-dash-life__grid>.home-dash-card{grid-column:auto;grid-row:auto}
.home-dash-card{min-width:0;padding-bottom:16px;display:flex;flex-direction:column}
.home-dash-card>.sec-head{padding:16px 18px 10px}
.home-dash-card>.sec-head h3{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:700}
/* 卡头蓝底方块图标：除音乐卡外 7 张生活卡的统一范式 */
.home-dash-card__badge{width:22px;height:22px;border-radius:7px;background:var(--accent);color:#fff;display:grid;place-items:center;flex:none}
.home-dash-card__badge svg{width:13px;height:13px;color:#fff}
/* 音乐卡卡头：设计稿为纯蓝色线条音符（无底色方块、无圆角底），与其余 7 卡区分 */
.home-dash-card__badge--line{width:auto;height:auto;border-radius:0;background:none}
.home-dash-card__badge--line svg{width:20px;height:20px;color:var(--accent)}
.home-dash-card>.sec-head .more{font-size:10px;color:var(--accent)}
.home-dash-card>:not(.sec-head){margin:0 16px}
.home-dash-card>:not(.sec-head)~:not(.sec-head){margin-top:10px}
.home-dash-card .home-social-list{grid-template-columns:1fr;gap:9px}
.home-dash-card .home-social-list b{display:flex;align-items:baseline;gap:4px}
.home-dash-card .home-social-list b>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.home-dash-card .home-social-list b>time{flex:none;margin-left:auto;font-size:8px;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}
/* 音乐卡栅格：封面占内容宽 25.3%，右侧信息区起点 1.69C（列间距 17.4%），与设计稿 1:1 */
.home-dash-music .home-player{grid-template-columns:25.3% minmax(0,1fr);column-gap:17.4%;align-items:center}
.home-dash-music .home-player__cover{width:100%;height:auto;aspect-ratio:1}
.home-dash-gallery__photos{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.home-dash-gallery__photos>a{position:relative;min-width:0;aspect-ratio:3/2;border-radius:9px;overflow:hidden;background:var(--accent-soft);display:grid;place-items:center;color:var(--accent)}
.home-dash-gallery__photos img{grid-area:1/1;width:100%;height:100%;object-fit:cover}.home-dash-gallery__photos svg{width:22px;height:22px}
/* 读书：4 本竖向书封并排（封面 + 书名） */
.home-shelf{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;list-style:none;margin:0;padding:0}
.home-shelf__item{min-width:0;display:flex;flex-direction:column;gap:4px}
.home-shelf__cover{position:relative;display:grid;place-items:center;aspect-ratio:5/7;border-radius:7px;overflow:hidden;background:var(--accent-soft);color:var(--accent);box-shadow:0 4px 10px rgba(15,23,42,.12)}
.home-shelf__cover img{grid-area:1/1;width:100%;height:100%;object-fit:cover}
.home-shelf__cover svg{width:18px;height:18px}
.home-shelf__item b{font-size:10px;font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-shelf__empty{grid-column:1/-1;list-style:none}
/* 随记：蓝点时间轴（日期 + 两行摘要） */
.home-note-list{display:flex;flex-direction:column;gap:9px;list-style:none;margin:0;padding:0}
.home-note-list>li{min-width:0;position:relative;padding-left:13px}
.home-note-list>li::before{content:"";position:absolute;left:0;top:5px;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.home-note-list__head{display:flex;align-items:center;gap:6px;font-size:9.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.home-note-list__head i{display:inline-flex;align-items:center;gap:2px;font-style:normal}
.home-note-list__head svg{width:10px;height:10px}
.home-note-list p{font-size:10px;line-height:1.45;color:var(--body);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-note-list a{display:block}
.home-note-list__pin{display:inline-block;vertical-align:-1px;margin-right:3px;color:var(--accent)}
.home-note-list__pin svg{width:11px;height:11px}
.home-note-list__empty{padding-left:0}
.home-note-list__empty::before{display:none}
/* 愿望清单：复选框列表（已实现显示蓝底白勾） */
.home-wish-check{display:flex;flex-direction:column;gap:9px;list-style:none;margin:0;padding:0}
.home-wish-check>li{min-width:0;display:grid;grid-template-columns:16px minmax(0,1fr);gap:8px;align-items:center}
.home-wish-check__box{width:16px;height:16px;border-radius:5px;border:1.5px solid var(--border2);display:grid;place-items:center;color:#fff}
.home-wish-check__box svg{width:11px;height:11px}
.home-wish-check>li.is-done .home-wish-check__box{background:var(--accent);border-color:var(--accent)}
.home-wish-check b{min-width:0;font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-wish-check>li.is-done b{color:var(--muted);text-decoration:line-through}
.home-wish-check__empty{grid-column:1/-1;list-style:none;display:block}
/* 博友圈：圆形头像 + 昵称/日期 + 摘要 */
.home-social-list__avatar{position:relative;overflow:hidden}
.home-social-list__avatar img{grid-area:1/1;width:100%;height:100%;object-fit:cover;border-radius:50%}
.home-dash-empty{min-height:70px;display:grid;place-items:center;text-align:center;color:var(--muted);font-size:10.5px;border:1px dashed var(--border2);border-radius:9px}
@media (max-width:1100px){
  .home-dash-split{grid-template-columns:minmax(0,1fr)}
  .home-dash-life__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  .home-dash-hero{flex-direction:column;align-items:flex-start;padding:22px}.home-dash-hero__slogan{display:none}.home-dash-hero h1{font-size:23px}
  .home-dash-hero__stats span{min-width:0;flex:1;padding:0 8px}
  .home-dash-explore__grid{grid-template-columns:repeat(3,1fr)}
  .home-dash-life__grid{grid-template-columns:1fr}.home-dash-life{padding:14px}
}

/* ============ 首页模板 B：轮播焦点式（focus） ============ */
.home-focus-hero{position:relative;isolation:isolate;min-height:340px;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.home-focus-hero__track{position:relative;width:100%;height:100%;min-height:340px}
.home-focus-slide{position:absolute;inset:0;display:flex;align-items:flex-end;color:#fff;opacity:0;visibility:hidden;transition:opacity .6s ease}
.home-focus-slide.is-active{opacity:1;visibility:visible}
.home-focus-slide__bg,.home-focus-slide__shade{position:absolute;inset:0;width:100%;height:100%}
.home-focus-slide__bg{object-fit:cover}
.home-focus-slide__shade{background:linear-gradient(90deg,rgba(7,31,63,.78) 0%,rgba(8,42,79,.5) 42%,rgba(9,45,78,.12) 78%),linear-gradient(0deg,rgba(3,24,48,.3),transparent 55%)}
.home-focus-slide__body{position:relative;z-index:1;max-width:680px;padding:34px 40px}
.home-focus-badge{display:inline-block;margin-bottom:12px;padding:4px 12px;border-radius:99px;background:rgba(255,255,255,.18);font-size:11px;font-weight:700;letter-spacing:.04em}
.home-focus-slide h1{margin:0 0 10px;font-size:34px;font-weight:800;line-height:1.25;letter-spacing:-.02em}
.home-focus-slide__lead{margin:0 0 4px;font-size:15px;font-weight:600;line-height:1.45;opacity:.96}
.home-focus-slide__excerpt{margin:0 0 14px;font-size:13.5px;opacity:.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-focus-slide__cta{height:42px;padding:0 22px;border-radius:99px;background:var(--accent);display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;box-shadow:0 8px 20px rgba(24,91,225,.34);transition:transform .2s}
.home-focus-slide__cta:hover{transform:translateY(-2px)}.home-focus-slide__cta svg{width:16px;height:16px}
.home-focus-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;display:grid;place-items:center;transition:background .2s}
.home-focus-nav:hover{background:rgba(255,255,255,.3)}.home-focus-nav svg{width:20px;height:20px}
.home-focus-nav--prev{left:16px}.home-focus-nav--next{right:16px}
.home-focus-dots{position:absolute;right:40px;bottom:24px;z-index:2;display:flex;gap:8px}
.home-focus-dots button{width:9px;height:9px;border-radius:99px;background:rgba(255,255,255,.45);transition:width .2s,background .2s}
.home-focus-dots button.is-active{width:24px;background:#fff}

.home-focus-index{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;margin-top:18px;padding:14px 16px}
.home-focus-index__intro{grid-column:1/-1;min-width:0;padding-left:14px;border-left:5px solid var(--accent);display:flex;align-items:center}
.home-focus-index__intro strong,.home-focus-index__intro small{display:block}.home-focus-index__intro strong{font-size:15px}.home-focus-index__intro small{margin-top:2px;font-size:10px;color:var(--muted);white-space:nowrap}
.home-focus-index a{min-width:0;padding:8px 4px;border-radius:10px;display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--body);transition:background .18s,color .18s}
.home-focus-index a:hover{background:var(--accent-soft);color:var(--accent-deep)}
.home-focus-index span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--card2);color:var(--accent)}
.home-focus-index a:nth-of-type(4n+2) span{color:#7c3aed;background:#f4edff}.home-focus-index a:nth-of-type(4n+3) span{color:#0891b2;background:#e8f9fc}
.home-focus-index a:nth-of-type(4n) span{color:#e11d74;background:#fff0f6}.home-focus-index a:nth-of-type(4n+1) span{color:#d97706;background:#fff4dc}
.home-focus-index a:hover span{background:#fff}.home-focus-index svg{width:15px;height:15px}
.home-focus-index b{font-size:10.5px}.home-focus-index small{font-size:9px;color:var(--muted)}

.home-focus-main{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.2fr) minmax(240px,.9fr);gap:18px;margin-top:18px;align-items:stretch}
.home-focus-feature{position:relative;min-width:0;min-height:300px;border-radius:var(--radius);overflow:hidden;display:flex;align-items:flex-end;color:#fff;box-shadow:var(--shadow)}
.home-focus-feature__media{position:absolute;inset:0;background:var(--card2);display:grid;place-items:center;color:var(--accent)}
.home-focus-feature__media img{grid-area:1/1;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.home-focus-feature:hover .home-focus-feature__media img{transform:scale(1.04)}.home-focus-feature__media svg{width:34px;height:34px}
.home-focus-feature .home-focus-badge{position:absolute;top:16px;left:16px;z-index:2;margin:0}
.home-focus-feature__cap{position:relative;z-index:1;width:100%;padding:44px 20px 18px;background:linear-gradient(0deg,rgba(8,25,50,.86),transparent)}
.home-focus-feature__cap em{display:inline-block;margin-bottom:7px;padding:2px 9px;border-radius:99px;background:rgba(255,255,255,.2);font-style:normal;font-size:10.5px}
.home-focus-feature__cap b{display:block;font-size:17px;line-height:1.4}
.home-focus-detail{position:relative;min-width:0;padding:22px;display:flex;flex-direction:column}
.home-focus-detail h2{margin:8px 0 10px;font-size:20px;line-height:1.4}.home-focus-detail h2 a:hover{color:var(--accent)}
.home-focus-detail p{font-size:12.5px;color:var(--muted);line-height:1.7;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.home-focus-detail .post-meta{margin-top:auto;padding-top:14px;padding-right:54px}
.home-focus-detail__author{display:inline-flex;align-items:center;gap:5px}
.home-focus-detail__author>span{width:18px;height:18px;border-radius:50%;overflow:hidden;background:var(--accent-soft);display:grid;place-items:center;font-size:8px;color:var(--accent)}
.home-focus-detail__author>span>*{grid-area:1/1}.home-focus-detail__author img{width:100%;height:100%;object-fit:cover}
.home-focus-detail__tags{display:flex;align-items:center;gap:6px;margin-top:8px;padding-right:50px}
.home-focus-detail__tags .post-cat{min-height:0;padding:3px 10px;font-size:10px}
.home-focus-detail__go{position:absolute;right:20px;bottom:18px;width:40px;height:40px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;box-shadow:0 7px 16px rgba(37,99,235,.32);transition:transform .2s}
.home-focus-detail__go:hover{transform:translateY(-2px)}.home-focus-detail__go svg{width:18px;height:18px}
.home-focus-side{min-width:0;display:flex;flex-direction:column;gap:12px}
.home-focus-side__item{flex:1;display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;align-items:center;padding:12px;border-radius:12px;background:var(--card);box-shadow:var(--shadow);transition:transform .2s}
.home-focus-side__item:hover{transform:translateY(-2px)}
.home-focus-side__thumb{width:76px;height:60px;border-radius:9px;overflow:hidden;background:var(--card2)}
.home-focus-side__thumb img{width:100%;height:100%;object-fit:cover}
.home-focus-side__item b{font-size:12.5px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-focus-side__item small{display:block;margin-top:5px;font-size:10px;color:var(--muted)}
.home-focus-side__copy{min-width:0}.home-focus-side__meta{display:flex;align-items:center;gap:8px;min-width:0}
.home-focus-side__meta small{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-focus-side__cat{flex:none;margin-left:auto;padding:3px 8px;border-radius:99px;font-size:9px;font-style:normal;font-weight:600}
.home-focus-side__cat.post-cat--tone0{color:#2563EB;background:#EFF6FF}.home-focus-side__cat.post-cat--tone1{color:#0E9F6E;background:#E8F8F0}
.home-focus-side__cat.post-cat--tone2{color:#D97706;background:#FEF6E7}.home-focus-side__cat.post-cat--tone3{color:#7C3AED;background:#F3EEFE}.home-focus-side__cat.post-cat--tone4{color:#0891B2;background:#E6F7FA}
[data-theme="dark"] .home-focus-side__cat.post-cat--tone0{color:#7BA3FF;background:#1C2A45}[data-theme="dark"] .home-focus-side__cat.post-cat--tone1{color:#3FBF8A;background:#14301F}
[data-theme="dark"] .home-focus-side__cat.post-cat--tone2{color:#E0B457;background:#33260F}[data-theme="dark"] .home-focus-side__cat.post-cat--tone3{color:#A78BFA;background:#25143F}[data-theme="dark"] .home-focus-side__cat.post-cat--tone4{color:#22D3EE;background:#0E2E36}
.home-focus-side__empty{padding:30px 12px;text-align:center;color:var(--muted);font-size:12px;border:1px dashed var(--border2);border-radius:12px}

.home-focus-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px;margin-top:18px;align-items:start}
.home-focus-row>*{grid-column:auto;min-width:0}
.home-focus-social{grid-template-columns:repeat(4,minmax(0,1fr))}
.home-focus-row .card{padding-bottom:16px}
.home-focus-row .card>.sec-head{padding:16px 18px 10px}
.home-focus-row .card>.sec-head h3{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700}
.home-focus-row .card>.sec-head h3 svg{width:15px;height:15px;color:var(--accent);flex:none}
.home-focus-row .card>.sec-head .more{font-size:10px;color:var(--muted)}
.home-focus-row .card>:not(.sec-head){margin:0 16px}
.home-focus-row .card>:not(.sec-head)~:not(.sec-head){margin-top:10px}
.home-focus-row .home-social-list{grid-template-columns:1fr}
.home-focus-social__avatar{position:relative;overflow:hidden}
.home-focus-social__avatar>*{grid-area:1/1}.home-focus-social__avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.home-focus-social .home-social-list a{position:relative;grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto;column-gap:7px;padding-right:8px}
.home-focus-social .home-social-list a:not(:last-child){border-right:1px solid var(--border)}
.home-focus-social .home-social-list a>span{grid-row:1/3;width:32px;height:32px}
.home-focus-social .home-social-list a>b{padding-right:54px;font-size:9.5px}
.home-focus-social .home-social-list a>time{position:absolute;top:1px;right:8px;font-size:8px;color:var(--muted);font-variant-numeric:tabular-nums}
.home-focus-social .home-social-list a>small{grid-column:2;display:block;font-size:8.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-focus-links__list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.home-focus-links__list a{min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center}
.home-focus-links__list a>span{position:relative;width:31px;height:31px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:9px;font-weight:700}
.home-focus-links__list a>span>*{grid-area:1/1}.home-focus-links__list img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.home-focus-links__list b{max-width:100%;font-size:8px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-focus-message__body{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;align-items:center}
.home-focus-message__body>span:first-child{grid-row:1/3;width:38px;height:32px;border-radius:10px;display:grid;place-items:center;background:#e7efff;color:var(--accent);transform:rotate(-6deg)}
.home-focus-message__body>span:first-child svg{width:19px;height:19px}.home-focus-message__body>span:nth-child(2){min-width:0}
.home-focus-message__body small,.home-focus-message__body b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-focus-message__body small{font-size:8.5px;color:var(--muted)}.home-focus-message__body b{margin-top:2px;font-size:8px;font-weight:500;color:var(--body)}
.home-focus-message__body em{grid-column:2;margin-top:5px;justify-self:start;min-height:24px;padding:0 9px;border-radius:99px;background:var(--accent);color:#fff;display:inline-flex;align-items:center;gap:4px;font-size:8.5px;font-style:normal}.home-focus-message__body em svg{width:11px;height:11px}
.home-focus-favorites__summary{margin-top:-3px!important;text-align:center;font-size:8px;color:var(--muted)}
.home-focus-favorites__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.home-focus-favorites__grid a{position:relative;min-width:0;height:27px;border-radius:5px;overflow:hidden;display:grid;place-items:center;background:var(--card2);color:var(--accent)}
.home-focus-favorites__grid a>*{grid-area:1/1}.home-focus-favorites__grid img{width:100%;height:100%;object-fit:cover}.home-focus-favorites__grid svg{width:12px;height:12px}
.home-focus-player{grid-column:span 3}.home-focus-shelf{grid-column:span 4}
.home-focus-slices{grid-column:span 3}.home-focus-wish{grid-column:span 2}
.home-focus-player .home-player{grid-template-columns:64px minmax(0,1fr)}
.home-template--dashboard .home-dash-music .home-player,.home-template--focus .home-focus-player .home-player{border:0;background:transparent;box-shadow:none;color:var(--text);border-radius:0}
.home-template--dashboard .home-dash-music .home-player__cover,.home-template--focus .home-focus-player .home-player__cover{overflow:visible}
.home-template--focus .home-focus-player .home-player__cover::after{content:"";position:absolute;top:8%;right:-48%;z-index:0;width:84%;aspect-ratio:1;border-radius:50%;background:repeating-radial-gradient(circle at center,#101318 0 3px,#242a32 4px 6px,#11151b 7px 10px);box-shadow:0 5px 14px rgba(15,23,42,.2)}
.home-template--focus .home-focus-player .home-player__cover::before{content:"";position:absolute;top:42%;right:-10%;z-index:1;width:13%;aspect-ratio:1;border-radius:50%;background:var(--card);box-shadow:0 0 0 4px #d7a64f}
.home-template--dashboard .home-dash-music .home-player__cover img,.home-template--focus .home-focus-player .home-player__cover img{border-radius:inherit}
.home-template--dashboard .home-dash-music .home-player__controls button,.home-template--focus .home-focus-player .home-player__controls button{color:var(--body)}
.home-template--dashboard .home-dash-music .home-player__controls button:hover:not(:disabled),.home-template--focus .home-focus-player .home-player__controls button:hover:not(:disabled){background:var(--accent-soft)}
.home-template--dashboard .home-dash-music .home-player__volume,.home-template--dashboard .home-dash-music .home-player__mode,.home-template--focus .home-focus-player .home-player__volume,.home-template--focus .home-focus-player .home-player__mode{display:none}
/* focus 播放器对齐 dashboard：进度条下 controls 居中 + toggle 白色图标 + svg 实心 block（根因见 dashboard 段 L1785-1787 注释） */
.home-template--focus .home-focus-player .home-player__controls{gap:18px;margin-top:10px;justify-content:center}
.home-template--focus .home-focus-player .home-player__controls .home-player__toggle{width:32px;height:32px;color:#fff;background:var(--accent);box-shadow:0 6px 16px rgba(37,99,235,.4)}
.home-template--focus .home-focus-player .home-player__controls .home-player__toggle:hover:not(:disabled){background:var(--accent-deep)}
.home-template--focus .home-focus-player .home-player__controls .home-player__toggle svg{width:15px;height:15px;fill:currentColor;display:block}
.home-focus-tabs{display:flex;gap:6px}
.home-focus-tabs button{padding:5px 12px;border-radius:99px;background:var(--card2);color:var(--muted);font-size:11px;transition:background .18s,color .18s}
.home-focus-tabs button.is-active{background:var(--accent-soft);color:var(--accent-deep);font-weight:700}
.home-focus-shelf__head{justify-content:flex-start}.home-focus-shelf__head .home-focus-tabs{margin-left:auto}.home-focus-shelf__head>.more{margin-left:4px}
.home-focus-shelf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.home-focus-shelf-item{min-width:0;display:flex;flex-direction:column;gap:2px}
.home-focus-shelf-item>span{height:82px;border-radius:8px;overflow:hidden;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}
.home-focus-shelf-item>span>*{grid-area:1/1}.home-focus-shelf-item img{width:100%;height:100%;object-fit:cover}
.home-focus-shelf-item b,.home-focus-shelf-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-focus-shelf-item b{font-size:9.5px}.home-focus-shelf-item small{font-size:8.5px;color:var(--muted)}
.home-focus-shelf-item progress{width:100%;height:3px;accent-color:var(--accent)}
.home-focus-slices__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
.home-focus-slices__grid>a{position:relative;height:80px;border-radius:9px;overflow:hidden;background:var(--accent-soft);display:grid;place-items:center;color:var(--accent)}
.home-focus-slices__grid img{grid-area:1/1;width:100%;height:100%;object-fit:cover}.home-focus-slices__grid svg{width:22px;height:22px}
.home-focus-note{display:flex;align-items:center;gap:7px;font-size:10.5px;color:var(--body)}
.home-focus-note svg{width:14px;height:14px;color:var(--accent);flex:none}.home-focus-note span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-focus-wish ul{display:flex;flex-direction:column;gap:7px;list-style:none}
.home-focus-wish li{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--body)}
.home-focus-wish li svg{width:13px;height:13px;flex:none;color:var(--accent)}
.home-focus-wish li.is-done{color:var(--muted);text-decoration:line-through}
.home-focus-empty{min-height:70px;display:grid;place-items:center;text-align:center;color:var(--muted);font-size:10.5px;border:1px dashed var(--border2);border-radius:9px}
@media (max-width:1100px){
  .home-focus-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .home-focus-side{grid-column:1/-1;flex-direction:row}.home-focus-side__item{flex:1}
  .home-focus-row{grid-template-columns:repeat(2,minmax(0,1fr))}.home-focus-player,.home-focus-shelf{grid-column:auto}
  .home-focus-index{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:600px){
  .home-focus-slide h1{font-size:24px}.home-focus-slide__body{padding:24px 20px}.home-focus-dots{right:20px}
  .home-focus-main{grid-template-columns:minmax(0,1fr)}.home-focus-side{flex-direction:column}
  .home-focus-row{grid-template-columns:1fr}.home-focus-player,.home-focus-shelf{grid-column:span 1}
  .home-focus-index{grid-template-columns:repeat(4,1fr)}
}

/* ============ 首页三套模板：设计稿比例与独立栅格 ============ */
.page-home{--sidebar-w:220px;--col-side:350px}
.page-home .main{--footer-bleed:24px;padding:10px 18px 24px}
.page-home .container{max-width:none;gap:12px}
.page-home .topbar{padding-bottom:10px}
.page-home .topbar .container-row{max-width:none}
.page-home .search-form{width:480px}
.home-template{display:flex;min-width:0;flex-direction:column;gap:12px}
.home-template .cols{gap:12px}
.home-template .home-post-list .post-item{grid-template-columns:118px minmax(0,1fr) 28px;gap:12px}
.home-template .home-post-list .post-item.no-thumb{grid-template-columns:minmax(0,1fr) 28px}

/* 模板 A：左侧内容与右栏同排，生活面板占满下一行 */
.home-template--dashboard .home-dash-hero{min-height:196px;padding:16px 40px}
.home-template--dashboard .home-dash-hero h1{margin:2px 0 4px;font-size:30px;line-height:1.2}
.home-template--dashboard .home-dash-hero__intro{line-height:1.5}
.home-template--dashboard .home-dash-hero__stats{margin:8px 0 10px}
.home-template--dashboard .home-dash-hero__stats b{font-size:18px}.home-template--dashboard .home-dash-hero__stats small{font-size:9.5px}
.home-template--dashboard .home-dash-hero__cta{height:34px;padding:0 17px;font-size:12px}
.home-template--dashboard .cols{display:grid;grid-template-columns:minmax(0,1fr) var(--col-side);align-items:start}
.home-template--dashboard .col-main{display:flex;gap:12px}
.home-template--dashboard .home-dash-split{gap:12px}
.home-template--dashboard .col-side{position:static;gap:10px}
.home-template--dashboard .home-dash-explore__grid{gap:8px;padding:2px 14px 14px}
.home-template--dashboard .home-dash-tile{padding:11px 6px;gap:5px}
.home-template--dashboard .home-dash-life{padding:14px}
.home-template--dashboard .home-dash-life__head{margin-bottom:10px}
.home-template--dashboard .home-dash-life__grid{gap:10px}
.home-template--dashboard .home-dash-card{padding-bottom:12px}
/* 生活面板两行等宽栅格：行1 音乐|读书|相册|随记，行2 观影|小说|愿望|博友圈 */
/* 正在听的音乐：按设计稿 1:1 还原 —— 黑胶盘从封面右侧伸出并垂直居中，右侧信息四行 */
.home-template--dashboard .home-dash-music .home-player__cover::after{content:"";position:absolute;top:50%;left:100%;z-index:0;width:100%;aspect-ratio:1;transform:translate(-43%,-50%);border-radius:50%;background:repeating-radial-gradient(circle at center,#101318 0 3px,#242a32 4px 6px,#11151b 7px 10px);box-shadow:0 5px 14px rgba(15,23,42,.2)}
/* 黑胶中心橙色标签，圆心与黑胶圆心重合（同为 1.07C） */
.home-template--dashboard .home-dash-music .home-player__cover::before{content:"";position:absolute;top:50%;left:99.5%;z-index:1;width:15%;aspect-ratio:1;transform:translateY(-50%);border-radius:50%;background:#e8a33d}
.home-template--dashboard .home-dash-music .home-player__controls{gap:18px;margin-top:10px;justify-content:center}
.home-template--dashboard .home-dash-music .home-player__controls .home-player__toggle{width:32px;height:32px;color:#fff;background:var(--accent);box-shadow:0 6px 16px rgba(37,99,235,.4)}
/* 悬停加深蓝底：上方通用 `button:hover` 规则把底色刷成 --accent-soft（仅 12% 强调色，极浅），白图标压上去几乎看不见；
   本规则特异性 0,6,1 高于它的 0,5,1，显式压回。 */
.home-template--dashboard .home-dash-music .home-player__controls .home-player__toggle:hover:not(:disabled){background:var(--accent-deep)}
/* 播放三角多为闭合路径，fill 后呈实心白三角；暂停为线段，仍靠描边显示。
   svg 必须 display:block——内联元素按基线对齐会让 span 行框在图标下方留出 descender 空白，
   15px 图标在高 32px 圆内会整体上移约 3px，不在圆心。 */
.home-template--dashboard .home-dash-music .home-player__controls .home-player__toggle svg{width:15px;height:15px;fill:currentColor;display:block}
.home-template--dashboard .home-dash-music .home-player__volume,
.home-template--dashboard .home-dash-music .home-player__mode{display:none}
.home-template--dashboard .home-dash-music .home-player__timeline{grid-template-columns:minmax(0,1fr);margin-top:9px}
.home-template--dashboard .home-dash-music .home-player__timeline input{height:4px;border-radius:99px;accent-color:var(--accent)}
/* 设计稿进度条无拖拽圆点，隐藏 thumb（opacity 才是真正生效的隐藏手段）仅保留轨道填充 */
.home-template--dashboard .home-dash-music .home-player__timeline input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:0;height:0;margin:0;border:0;opacity:0;background:transparent;box-shadow:none}
.home-template--dashboard .home-dash-music .home-player__timeline input::-moz-range-thumb{width:0;height:0;border:0;opacity:0;background:transparent}
/* 标题独占一行，歌手与播放时间在下一行两端对齐（时间行右对齐） */
.home-template--dashboard .home-dash-music .home-player__meta{align-items:flex-end;gap:8px}
.home-template--dashboard .home-dash-music .home-player__meta strong{font-size:15px;line-height:1.3;color:var(--text)}
.home-template--dashboard .home-dash-music .home-player__meta span{font-size:11px;opacity:1;color:var(--muted)}
.home-template--dashboard .home-player__meta .home-player__time{flex:none;display:inline-flex;align-items:baseline;gap:3px;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.home-template--dashboard .home-player__meta .home-player__time i{font-style:normal}
/* 内容不足一行的卡片（音乐、相册）垂直居中，避免顶部对齐留下大片空白 */
.home-template--dashboard .home-dash-music>.home-player,
.home-template--dashboard .home-dash-gallery__photos{margin-top:auto;margin-bottom:auto}

/* 模板 B：封面故事与作者卡并排，后续模块保持紧凑杂志栅格 */
.home-focus-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) var(--col-side);gap:12px;align-items:stretch}
.home-template--focus .home-focus-hero,.home-template--focus .home-focus-hero__track{min-height:228px}
.home-template--focus .home-focus-slide__body{padding:22px 32px;max-width:620px}
.home-template--focus .home-focus-badge{margin-bottom:7px}
.home-template--focus .home-focus-slide h1{margin-bottom:6px;font-size:28px}
.home-template--focus .home-focus-slide__excerpt{margin-bottom:8px;font-size:12px}
.home-template--focus .home-focus-slide__cta{height:36px;padding:0 17px;font-size:12px}
.home-focus-author{padding:18px;display:flex;flex-direction:column;justify-content:center}
.home-focus-author__head{display:flex;align-items:center;gap:12px}
.home-focus-author__avatar{width:48px;height:48px;border-radius:50%;overflow:hidden;background:var(--accent-soft);color:var(--accent-deep);display:grid;place-items:center;font-weight:800}
.home-focus-author__avatar>*{grid-area:1/1}.home-focus-author__avatar img{width:100%;height:100%;object-fit:cover}
.home-focus-author__head strong,.home-focus-author__head small{display:block}.home-focus-author__head strong{font-size:14px}.home-focus-author__head small{margin-top:3px;font-size:10px;color:var(--muted)}
.home-focus-author__stats{display:grid;grid-template-columns:repeat(4,1fr);margin:14px 0;padding:11px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.home-focus-author__stats span{text-align:center;border-right:1px solid var(--border)}.home-focus-author__stats span:last-child{border:0}
.home-focus-author__stats b,.home-focus-author__stats small{display:block}.home-focus-author__stats b{font-size:14px}.home-focus-author__stats small{font-size:9px;color:var(--muted)}
.home-focus-author>p{padding:9px 11px;border-radius:9px;background:var(--card2);font-size:10px;line-height:1.55;color:var(--muted)}
.home-template--focus .home-focus-index{margin-top:0;padding:9px 12px}
.home-template--focus .home-focus-index a{padding:5px 3px}
.home-template--focus .home-focus-index span{width:27px;height:27px}
.home-template--focus .home-focus-main,.home-template--focus .home-focus-row{margin-top:0;gap:12px}
.home-template--focus .home-focus-feature{min-height:250px}
.home-template--focus .home-focus-detail{padding:18px}
.home-template--focus .home-focus-side{gap:8px}

/* 模板 C：压缩首屏高度，保留设计稿中的宽缩略图和底部山景呼吸区 */
.home-template--universe .home-universe-hero{min-height:174px;padding:14px 28px;grid-template-columns:minmax(0,1fr) 375px;gap:22px}
.home-template--universe .home-welcome-avatar{width:56px;height:56px}
.home-template--universe .home-hero-actions{margin-top:12px}
.home-template--universe .home-player{padding:11px;grid-template-columns:62px minmax(0,1fr);gap:11px}
.home-template--universe .home-player__cover{width:62px;height:62px}
/* universe 右上角 toggle 图标居中修正：svg 必须 display:block 脱离 baseline，fill:currentColor 让 play 三角实心填充（根因同 dashboard L1785-1787） */
.home-template--universe .home-player__toggle svg{fill:currentColor;display:block}
.home-template--universe .home-dashboard{grid-template-columns:minmax(0,1.45fr) minmax(350px,.95fr);gap:12px}
.home-template--universe .home-universe-map{display:flex;flex-direction:column;align-self:stretch}
.home-template--universe .home-universe-orbit{flex:1;min-height:286px}
.home-template--universe .home-post-list .post-item{grid-template-columns:185px minmax(0,1fr) 28px;gap:12px}
.home-template--universe .home-post-list .post-thumb{width:185px;height:80px}
.home-template--universe .home-activity-entry .post-item{grid-template-columns:170px minmax(0,1fr);gap:12px}
.home-template--universe .home-activity-entry .post-thumb{width:170px;height:82px}
.home-template--universe .home-universe-core{margin:0}
.home-template--universe .home-universe-links{padding:0}
.home-template--universe .home-universe-link{padding:0}
.home-template--universe .home-universe-utilities{margin:5px 12px 0;padding-top:10px}
.home-template--universe .home-life-board{padding:14px}
.home-template--universe .home-life-board__head{margin-bottom:10px}
.home-template--universe .home-life-grid{gap:9px}
.home-universe-ridge{width:100vw;max-width:none;height:70px;margin:-14px 0 -24px;transform:translateX(calc(-1 * (var(--sidebar-w) + 15px)));background:none;pointer-events:none;overflow:hidden}

/* 三套首页在桌面端使用各自的设计稿栅格，不共享会互相挤压的列宽。 */
@media (min-width:1321px){
  .page-home .sidebar{padding:10px 16px 12px}
  .page-home .logo{padding:2px 8px 18px}
  .page-home .logo small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .page-home .nav-group{margin:8px 0 3px}
  .page-home .nav-group-toggle{min-height:28px}
  .page-home .nav-item{height:34px;margin:1px 0}
  .page-home:has(.home-template--dashboard){--sidebar-w:258px;--col-side:350px}
  .page-home:has(.home-template--dashboard) .main{padding:10px 32px 24px 23px}
  .page-home:has(.home-template--focus),.page-home:has(.home-template--universe){--sidebar-w:215px}
  .page-home:has(.home-template--focus) .main,.page-home:has(.home-template--universe) .main{--footer-bleed:20px;padding:10px 25px 20px 20px}
  .page-home:has(.home-template--focus) .main{padding-right:8px}
  .page-home:has(.home-template--universe) .main{padding-left:15px;padding-right:27px}
  .page-home .search-form input{height:32px}
  .page-home .search-form button{top:3px;width:26px;height:26px}
  .page-home:has(.home-template--dashboard) .topbar{padding-bottom:11px}
  .page-home:has(.home-template--focus) .topbar{padding-bottom:8px}
  .page-home:has(.home-template--universe) .topbar{padding-bottom:4px}
  .page-home:has(.home-template--focus) .search-form{width:590px}
  .page-home:has(.home-template--universe) .search-form{width:515px}

  /* 模板一：1001px 主列 + 350px 信息栏，主列内部按 55:45 分栏。 */
  .home-template--dashboard .home-dash-split{grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);align-items:stretch;gap:8px}
  .home-template--dashboard .col-main{display:contents}
  .home-template--dashboard .home-dash-upper{column-gap:16px;row-gap:8px}
  .home-template--dashboard .home-dash-hero__main{display:grid;grid-template-columns:auto auto;align-items:center;justify-content:start;column-gap:18px;max-width:680px}
  .home-template--dashboard .home-dash-hero__main>.home-eyebrow,.home-template--dashboard .home-dash-hero__main>h1,.home-template--dashboard .home-dash-hero__intro{grid-column:1/-1}
  .home-template--dashboard .home-dash-hero__stats{grid-column:1;grid-row:4;margin:12px 0 0}
  .home-template--dashboard .home-dash-hero__cta{grid-column:2;grid-row:4;align-self:center;margin-top:12px;background:var(--accent);color:#fff;box-shadow:0 8px 20px rgba(8,30,60,.28)}
  .home-template--dashboard .home-dash-hero{grid-column:1;grid-row:1}
  .home-template--dashboard .home-dash-split{grid-column:1;grid-row:2}
  .home-template--dashboard .col-side{grid-column:2;grid-row:1/span 2}
  .home-template--dashboard .home-dash-full-life{grid-column:1/-1;grid-row:3}
  .home-template--dashboard .home-dash-hero{min-height:192px}
  .home-template--dashboard .home-dash-explore{display:flex;flex-direction:column}
  .home-template--dashboard .home-dash-explore__grid{flex:1;grid-template-rows:repeat(4,minmax(0,1fr))}
  .home-template--dashboard .home-dash-tile{min-height:0;justify-content:center}
  /* 宽屏左右两卡等高：最新日志列表撑满卡片，多余空间均分到条目间隔，避免卡底留白 */
  .home-template--dashboard .home-dash-latest{display:flex;flex-direction:column}
  .home-template--dashboard .home-dash-latest .home-post-list{flex:1;display:flex;flex-direction:column;justify-content:space-between}
  .home-template--dashboard .home-post-list .post-item{grid-template-columns:112px minmax(0,1fr) 24px;min-height:0;padding:8px 0;gap:12px}
  .home-template--dashboard .home-post-list .post-thumb{width:112px;height:72px}
  .home-template--dashboard .home-post-list .post-title{line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .home-template--dashboard .home-post-list .post-title a{display:block;overflow:hidden;text-overflow:ellipsis}
  .home-template--dashboard .home-post-list .post-excerpt{margin-top:2px;line-height:1.5;-webkit-line-clamp:2}
  .home-template--dashboard .home-post-list .post-meta{margin-top:4px;gap:4px 12px;line-height:1.5}
  .home-template--dashboard .home-dash-life{padding:0;border:0;background:transparent;box-shadow:none}
  .home-template--dashboard .home-dash-life__head{display:none}
  .home-template--dashboard .home-dash-life__grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto}
  .home-template--dashboard .home-dash-card{overflow:hidden}
 .home-template--dashboard .home-dash-card>.sec-head{padding:9px 16px 5px}
 .home-template--dashboard .home-dash-music .home-player{grid-template-columns:25.3% minmax(0,1fr);column-gap:17.4%;align-items:center;padding:0}
  .home-template--dashboard .home-dash-music .home-player__cover{width:100%;height:auto;aspect-ratio:1}
  .home-template--dashboard .home-dash-full-life{margin-top:2px}
  .home-template--dashboard .col-side>.aside-block{padding:12px 18px}
  .home-template--dashboard .col-side>.aside-block:first-child .profile-stats{margin-top:6px;padding-top:6px;line-height:1.3}
  .home-template--dashboard .col-side>.aside-block:first-child .quote{margin-top:6px;padding:6px 10px;line-height:1.35}
  .home-template--dashboard .col-side>.aside-block:first-child .quote span{margin-top:2px}
  .home-template--dashboard .col-side>.aside-block:first-child{padding-top:10px;padding-bottom:10px}
  .home-template--dashboard .col-side .aside-title{margin-bottom:6px}
  .home-template--dashboard .col-side .cat-row{padding:2px}
  .home-template--dashboard .col-side .tag-cloud{gap:6px}
  .home-template--dashboard .col-side .tag-cloud a{padding:4px 11px}
  .home-template--dashboard .col-side .upd-thumb-item{padding:2px 0}
  .home-template--dashboard .col-side .upd-thumb-item img{width:38px;height:30px}
  .home-template--dashboard .col-side>.aside-block:last-child{padding-top:9px;padding-bottom:9px}
  .home-template--dashboard .col-side>.aside-block:last-child .upd-thumb-item{padding:1px 0}
  .home-template--dashboard .col-side>.aside-block:last-child .upd-thumb-item .tm{gap:0}
  .home-template--dashboard .col-side>.aside-block:last-child .upd-thumb-item .t{font-size:11.5px;line-height:1.2}
  .home-template--dashboard .col-side>.aside-block:last-child .upd-thumb-item time{font-size:9.5px;line-height:1.2}

  /* 模板二：十七项单行索引；主推图和正文合并成一张 62% 宽的组合卡。 */
  .home-template--focus .home-focus-hero-grid{grid-template-columns:minmax(0,1fr) 370px;gap:16px}
  .home-template--focus{gap:12px}
  .home-template--focus .home-focus-author{padding:10px 18px;justify-content:flex-start}
  .home-template--focus .home-focus-author__head{gap:16px}
  .home-template--focus .home-focus-author__avatar{width:54px;height:54px}
  .home-template--focus .home-focus-author__stats{margin:10px 0 8px;padding:7px 0;line-height:1.35}
  .home-template--focus .home-focus-author>p{min-height:64px;display:flex;align-items:center}
  .home-template--focus .home-focus-slide{align-items:flex-start}
  .home-template--focus .home-focus-slide__body{width:min(650px,calc(100% - 116px));padding:18px 40px;box-sizing:border-box}
  .home-template--focus .home-focus-badge{margin-bottom:3px}
  .home-template--focus .home-focus-slide h1{font-size:32px}
  .home-template--focus .home-focus-slide--cover h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .home-template--focus .home-focus-slide--journal h1{font-size:27px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .home-template--focus .home-focus-slide__excerpt{min-height:44px}
  .home-template--focus .home-focus-index{grid-template-columns:220px repeat(17,minmax(0,1fr));height:87px;min-height:0;padding:6px 10px;gap:0}
  .home-template--focus .home-focus-index__intro{grid-column:auto;margin-left:8px}
  .home-template--focus .home-focus-index a{padding:4px 2px}
  .home-template--focus .home-focus-main{grid-template-columns:minmax(0,1.62fr) minmax(0,1fr);min-height:230px;margin-top:0}
  .home-template--focus .home-focus-feature-group{display:grid;grid-template-columns:minmax(0,47.5%) minmax(0,1fr);min-width:0;overflow:hidden;padding:12px 14px 14px;gap:20px}
  .home-template--focus .home-focus-feature{min-height:202px;height:202px;border-radius:10px;box-shadow:none}
  .home-template--focus .home-focus-feature>.home-focus-badge{background:var(--accent);color:#fff;box-shadow:0 5px 14px rgba(37,99,235,.28)}
  .home-template--focus .home-focus-detail{padding:8px 4px 8px 0;align-self:stretch}
  .home-template--focus .home-focus-detail h2{margin-top:2px;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .home-template--focus .home-focus-detail p{-webkit-line-clamp:3}
  .home-template--focus .home-focus-detail .post-meta{padding-top:8px}
  .home-template--focus .home-focus-detail__go{background:var(--accent-soft);color:var(--accent);box-shadow:none}
  .home-template--focus .home-focus-side{gap:0;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow);overflow:hidden}
  .home-template--focus .home-focus-side__item{padding:7px 10px;border-radius:0;background:transparent;box-shadow:none;border-bottom:1px solid var(--border)}
  .home-template--focus .home-focus-side__item:last-child{border-bottom:0}
  .home-template--focus .home-focus-side__item:hover{transform:none;background:var(--card2)}
  .home-template--focus .home-focus-side__thumb{width:150px;height:60px}
  .home-template--focus .home-focus-side__item{grid-template-columns:150px minmax(0,1fr)}
  .home-template--focus .home-focus-row:not(.home-focus-social)>.card{height:190px;overflow:hidden}
 .home-template--focus .home-focus-row .card>.sec-head{padding:9px 16px 6px}
 .home-template--focus .home-focus-player .home-player{grid-template-columns:154px minmax(0,1fr);gap:14px;align-items:center;padding:0}
  .home-template--focus .home-focus-player .home-player__cover{width:104px;height:104px}
  .home-template--focus .home-focus-social>.card{height:95px;overflow:hidden}
 .home-template--focus .home-focus-row:not(.home-focus-social){grid-template-columns:3.425fr 4.075fr 3.075fr 1.425fr;margin-top:1px}
  .home-template--focus .home-focus-row:not(.home-focus-social)>*{grid-column:auto}
  .home-template--focus .home-focus-social{grid-template-columns:6fr 3.095fr 1.402fr 1.359fr}
  .home-template--focus .home-focus-social .home-social-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .home-template--focus .home-focus-links__list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
  .home-template--focus .home-focus-nav{top:auto;bottom:10px;transform:none;width:32px;height:32px}
  .home-template--focus .home-focus-nav--prev{left:auto;right:54px;background:rgba(13,44,75,.3);color:#fff}
  .home-template--focus .home-focus-nav--next{right:16px;background:rgba(255,255,255,.86);color:#27496d}
  .home-template--focus .home-focus-dots{right:98px;bottom:20px;gap:7px}
  .home-template--focus .home-focus-shelf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
  .home-template--focus .home-focus-slices__grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .home-template--focus .home-focus-slices__grid>a{height:80px}

  /* 模板三：动态与轨道图按 61:39 分栏，生活面板固定为 5 + 4 卡的两行结构。 */
  .home-template--universe .home-dashboard{grid-template-columns:minmax(0,1.53fr) minmax(0,1fr)}
  .home-template--universe .home-universe-hero{grid-template-columns:minmax(0,1fr) 380px;gap:18px}
  .home-template--universe .home-universe-hero__intro{padding-left:16px}
  .home-template--universe .home-welcome-row{gap:22px}
  .home-template--universe .home-welcome-row .home-eyebrow{display:none}
  .home-template--universe .home-welcome-avatar{width:68px;height:68px}
  .home-template--universe .home-universe-hero__motto{position:absolute;left:45%;bottom:27px;z-index:1;margin:0;color:rgba(255,255,255,.9);font-family:KaiTi,"STKaiti",serif;font-size:14px;line-height:1.55;letter-spacing:2px;transform:rotate(-4deg);text-shadow:0 2px 8px rgba(5,25,52,.35)}
  .home-template--universe .home-universe-hero__motto span{display:block}
  .home-template--universe .home-player{align-self:stretch;padding:12px;grid-template-columns:80px minmax(0,1fr);gap:13px}
  .home-template--universe .home-player__cover{width:80px;height:80px}
  .home-template--universe{gap:10px}
  .home-template--universe .home-dashboard>.card{height:550px}
  .home-template--universe .home-activity-stream{position:relative;overflow:hidden}
  .home-template--universe .home-activity-stream>.sec-head{padding:11px 18px 6px}
  .home-template--universe .home-stream-tabs{position:absolute;left:116px;top:9px;z-index:2;padding:0}
  .home-template--universe .home-activity-entry{height:100px;overflow:hidden}
  .home-template--universe .home-activity-entry .post-item{height:100px;min-height:0;padding:5px 0;overflow:hidden}
  .home-template--universe .home-activity-entry .home-post-list{padding-left:4px;padding-right:0}
  .home-template--universe .home-activity-entry .post-item{grid-template-columns:185px minmax(0,1fr)}
  .home-template--universe .home-activity-entry .post-thumb{width:185px;height:88px}
  .home-template--universe .home-universe-orbit{min-height:348px;height:348px}
  .home-template--universe .home-universe-core{--uv-avatar:88px}
  .home-template--universe .home-universe-core strong{font-size:15px}
 .home-template--universe .home-life-board{padding:10px 14px 0}
 .home-template--universe .home-life-board__head{height:20px;margin-bottom:2px;align-items:center}
  .home-template--universe .home-life-board__head>div{display:flex;align-items:center;gap:10px}
  .home-template--universe .home-life-board__head h2{order:1}
  .home-template--universe .home-life-board__head .home-eyebrow{order:2}
 .home-template--universe .home-life-board__head time b{margin-left:6px;color:var(--body);font-weight:500}
 .home-template--universe .home-life-grid{grid-template-rows:148px 112px;gap:8px}
  .home-template--universe .home-life-card{display:flex;flex-direction:column;height:100%;overflow:hidden;padding:10px}
  .home-template--universe .home-life-card__head{flex:none}
  .home-template--universe .home-life-gallery{grid-column:span 3;grid-row:auto}
  .home-template--universe .home-media-preview{grid-column:span 3}
  .home-template--universe .home-wish-preview{grid-column:span 3;grid-row:auto}
  .home-template--universe .home-collection-preview{grid-column:span 2}
  .home-template--universe .home-social-preview{grid-column:span 3}
  .home-template--universe .home-message-preview{grid-column:span 2}
  .home-template--universe .home-link-preview{grid-column:span 2}
  /* 照片墙改单行胶片式铺满：4 张并排撑满卡高，消除第二行被裁与底部死区 */
  .home-template--universe .home-life-gallery__photos{display:flex;gap:5px;flex:1;min-height:0}
  .home-template--universe .home-life-gallery__photos>a{flex:1;min-width:0;height:100%}
  .home-template--universe .home-life-gallery .home-note-preview{display:none}
  /* 媒体预览上图下文：封面铺满剩余卡高，标题单行置于图下，呼应照片墙「图+注」结构 */
  .home-template--universe .home-media-preview__body{flex:1;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:6px}
  .home-template--universe .home-media-cover{width:100%;height:100%}
  .home-template--universe .home-media-preview__body>div small,.home-template--universe .home-media-preview__body>div progress,.home-template--universe .home-media-preview__body>div em{display:none}
  /* 第二行卡片：内容垂直居中或铺满；愿望仅显 3 行、留言仅显 1 条，溢出整行隐藏避免拦腰裁切 */
  .home-template--universe .home-wish-preview ul{flex:1;min-height:0;justify-content:center}
  .home-template--universe .home-wish-preview li:nth-child(n+4){display:none}
  .home-template--universe .home-chip-list{flex:1;min-height:0;align-content:center}
  .home-template--universe .home-social-list{flex:1;min-height:0;gap:4px;align-content:center}
  .home-template--universe .home-social-list a>span{width:24px;height:24px}
  .home-template--universe .home-message-preview blockquote{margin:auto 0}
  .home-template--universe .home-message-preview blockquote+blockquote{display:none}
  .home-template--universe .home-link-friends{flex:1;min-height:0}
  .home-template--universe .home-life-empty{flex:1;min-height:0}
 /* 山脊需横穿左侧导航：.sidebar 为 fixed + z-index:20 + 不透明底色，故山脊取 21 才能压在导航之上；
    quote 同步抬到 22，保持原有「语录浮于山脊之上」的前后关系 */
 .home-template--universe .home-universe-ridge{position:fixed;left:0;right:0;bottom:0;z-index:21;width:100vw;height:42px;margin:0;transform:none}
 .home-template--universe .home-quote{position:relative;z-index:22;min-height:22px;padding:0;border:0;background:transparent;display:grid;grid-template-columns:auto auto;justify-content:center;gap:46px}
 .home-template--universe .home-quote>svg{display:none}
}

@media (max-width:1320px){
  .page-home{--col-side:310px}
  .home-template--dashboard .cols{grid-template-columns:minmax(0,1fr)}
  .home-template--dashboard .col-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}
@media (max-width:1100px){
  .home-focus-hero-grid{grid-template-columns:minmax(0,1fr)}
  .home-focus-author{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(300px,1fr);column-gap:18px}
  .home-focus-author__stats{margin:0}.home-focus-author>p{grid-column:1/-1;margin-top:10px}
  .home-template--universe .home-dashboard{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:900px){
  .page-home .main{--footer-bleed:12px;padding:12px}
  .home-template--dashboard .home-dash-split{grid-template-columns:minmax(0,1fr)}
  .home-template--dashboard .col-side{grid-template-columns:minmax(0,1fr)}
  .home-template--universe .home-universe-hero{grid-template-columns:minmax(0,1fr);padding:20px;gap:16px}
  .home-template--universe .home-post-list .post-item{grid-template-columns:118px minmax(0,1fr) 28px}
  .home-template--universe .home-post-list .post-thumb{width:118px;height:72px}
  .home-template--universe .home-activity-entry .post-item{grid-template-columns:118px minmax(0,1fr)}
  .home-template--universe .home-activity-entry .post-thumb{width:118px;height:72px}
}
@media (max-width:600px){
  .home-focus-author{display:flex}.home-focus-author__stats{margin:12px 0}
  .home-template .home-post-list .post-item,.home-template--universe .home-post-list .post-item{grid-template-columns:minmax(0,1fr) 28px}
  .home-template .home-post-list .post-thumb,.home-template--universe .home-post-list .post-thumb{width:100%;height:160px;grid-column:1/-1}
  .home-template--dashboard .home-dash-hero{min-height:220px;padding:22px 18px}.home-template--dashboard .home-dash-hero__slogan{display:none}
  .home-template--dashboard .home-dash-life__grid{grid-template-columns:1fr}
  .home-universe-orbit{width:100%;height:320px}.home-universe-link{width:64px}.home-universe-link>span{width:36px;height:36px}
  .home-universe-utilities{grid-template-columns:repeat(2,1fr)}
}

/* ============ 移动端精修（全前台） ============
 * 本节只覆盖窄屏，桌面端三套首页及各业务页的设计稿栅格保持不变。
 * 900px 负责平板与抽屉外壳，600px 负责手机内容重排，390px 处理极窄设备。
 */
@media (max-width:900px){
  html,body{max-width:100%;overflow-x:clip}
  .main{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  .container{gap:16px}
  .topbar{padding:calc(8px + env(safe-area-inset-top)) 0 12px;background:color-mix(in srgb,var(--bg) 92%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
  .topbar .container-row{gap:8px}
  .topbar .top-spacer{display:none}
  .search-form{flex:1 1 auto;width:auto;max-width:none}
  .topbar .avatar{width:44px;height:44px}
  .top-icon,.mobile-menu{width:44px;height:44px;flex:none}
  .notify-panel{position:fixed;top:calc(62px + env(safe-area-inset-top));right:12px;width:min(320px,calc(100vw - 24px));max-width:none}

  .page-hero{min-height:148px;padding:24px 22px}
  .page-hero h1{font-size:24px}
  .page-hero .ph-img{width:100%;object-position:center}
  .page-hero .ph-img.mask-fade,.page-hero .ph-img.mask-l{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 58%);mask-image:linear-gradient(90deg,transparent 0,#000 58%)}
  .page-hero__actions{flex-wrap:wrap}

  .space-tabs{gap:8px;scrollbar-width:none;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  .space-tabs::-webkit-scrollbar{display:none}
  .space-tab{min-width:max-content;min-height:44px;padding:10px 12px;scroll-snap-align:start}
  .filter-bar,.cat-bar{overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .filter-bar::-webkit-scrollbar,.cat-bar::-webkit-scrollbar{display:none}
  .filter-bar .btn,.cat-bar .cat-btn{flex:none}

  .sec-head .more,.post-cat,.arch-item a,.fav-main b a,.tl-card h3 a,.result-item .r-main b a{display:inline-flex;align-items:center;min-height:36px}
  .post-body img,.post-body video,.post-body iframe{max-width:100%;height:auto}
  .post-body pre,.post-body table,.diagram{max-width:100%;overflow-x:auto}
  .post-body iframe{width:100%}
  .owner-bar .owner-input{width:100%}
  .discussion-dialog{padding:14px}
  .discussion-dialog .dialog-box{max-height:calc(100vh - 28px)}
  .discussion-dialog__body{max-height:calc(100vh - 116px);padding:18px}
  .emoji-grid{grid-template-columns:repeat(8,minmax(40px,1fr))}
  .emoji-btn,.emoji-trigger{min-width:44px;min-height:44px}
  .lightbox{padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}
  /* 小屏容器已有 12px 内边距，图片按内容区全宽展示，避免 94vw 在窄屏溢出 */
  .lightbox img{max-width:100%}

  .home-template{gap:12px}
  .home-template .more{min-height:36px;padding:0 4px}
  .home-template--dashboard .home-dash-explore__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-template--dashboard .home-dash-tile{min-height:96px}
  /* 移动端隐藏「记录平凡日子里的闪光 / 我的生活面板」头部（含右侧日期），
     口径与宽屏 @media (min-width:1321px) 一致，让「正在听的音乐」直接顶到面板顶部 */
  .home-template--dashboard .home-dash-life__head{display:none}
  .home-template--focus .home-focus-index{display:flex;overflow-x:auto;gap:4px;height:auto;min-height:88px;padding:8px 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .home-template--focus .home-focus-index::-webkit-scrollbar{display:none}
  .home-template--focus .home-focus-index__intro{min-width:154px;flex:none}
  .home-template--focus .home-focus-index>a{min-width:72px;flex:none}
  .home-template--focus .home-focus-main{grid-template-columns:minmax(0,1fr)}
  .home-template--focus .home-focus-feature-group{grid-template-columns:minmax(0,1fr);gap:0;padding:12px}
  .home-template--focus .home-focus-detail{padding:16px 4px 6px}
  .home-template--focus .home-focus-side__item{grid-template-columns:116px minmax(0,1fr)}
  .home-template--focus .home-focus-side__thumb{width:116px;height:64px}
  .home-template--focus .home-focus-row,.home-template--focus .home-focus-social{grid-template-columns:minmax(0,1fr)}
  .home-template--focus .home-focus-row>*{grid-column:auto}
  .home-template--focus .home-focus-row>.card{height:auto;min-height:0;overflow:visible}
  .home-template--focus .home-focus-shelf-grid,.home-template--focus .home-focus-slices__grid{grid-template-columns:repeat(2,minmax(0,1fr))}

  .home-template--universe .home-dashboard{grid-template-columns:minmax(0,1fr)}
  .home-template--universe .home-dashboard>.card{height:auto;min-height:0}
  .home-template--universe .home-activity-timeline{padding:0 14px 10px}
  .home-template--universe .home-activity-entry{height:auto;grid-template-columns:minmax(0,1fr);gap:2px;overflow:visible}
  .home-template--universe .home-activity-date{padding-top:8px;padding-left:0;font-size:11px}
  .home-template--universe .home-activity-date::after,.home-template--universe .home-activity-date::before,.home-template--universe .home-activity-entry::before{display:none}
  .home-template--universe .home-activity-entry .post-item{height:auto;min-height:0;overflow:visible}
  .home-template--universe .home-universe-map{overflow:visible}
}

@media (max-width:600px){
  .main{padding:8px 10px 0;--footer-bleed:24px}
  .main{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  .container{gap:14px}
  .topbar{margin:0 -2px;padding-bottom:10px}
  .search-form input{padding-left:14px;padding-right:42px}
  .search-form input::placeholder{font-size:13px}
  .notify-panel{top:calc(60px + env(safe-area-inset-top))}

  .card{border-radius:13px}
  .sec-head{padding:15px 16px 10px}
  .sec-head h2{font-size:15px}
  .card-pad{padding:16px}
  .post-list{padding:0 16px 6px}
  .post-item{gap:12px;padding:14px 0}
  .post-title{font-size:15px}
  .post-meta{gap:5px 12px}
  .post-view{padding:20px 16px}
  .post-actions{gap:8px}
  .post-actions>*{flex:1;justify-content:center}
  .page-hero{min-height:142px;padding:22px 20px;border-radius:14px}
  .page-hero h1{font-size:23px}
  .page-hero p{max-width:76%;font-size:12.5px;line-height:1.65}
  .page-hero .hero-act{width:100%}
  .page-hero .hero-act .btn{width:100%;justify-content:center}
  .page-hero__actions{align-items:stretch;flex-direction:column}
  .page-hero__actions .btn{width:100%;justify-content:center}

  .discussion-compose-card{padding:18px 16px}
  .discussion-card__composer{padding:18px 16px 20px}
  .discussion-list-card .discussion-list,.discussion-card>.discussion-list{padding:2px 16px 8px}
  .discussion-fields{grid-template-columns:minmax(0,1fr);gap:11px}
  .discussion-field :is(input,textarea){font-size:16px}
  .discussion-field textarea{min-height:150px}
  .discussion-toolbar{align-items:flex-start;flex-wrap:wrap}
  .discussion-privacy{order:3;width:100%}
  .discussion-toolbar .comment-submit{min-height:44px}
  .discussion-meta{align-items:flex-start;flex-direction:column;gap:3px}
  .discussion-meta__details{flex-wrap:wrap}
  .discussion-children{margin-left:12px;padding-left:10px}
  .discussion-dialog .dialog-head{padding:15px 16px}
  .discussion-dialog__body{padding:16px}
  .owner-bar{align-items:stretch;flex-direction:column}
  .owner-bar .owner-btn{min-height:44px}
  .comment-children,.gb-children{margin-left:8px;padding-left:10px}
  .emoji-panel{padding:10px}
  .emoji-grid{grid-template-columns:repeat(6,minmax(40px,1fr));gap:4px}
  .arch-item{gap:9px;padding:9px 2px 9px 18px;margin-left:4px}
  .arch-item time{font-size:11px}
  .arch-item .views{display:none}
  .fav-item{padding:13px 0}
  .fav-ico{width:44px;height:44px}
  .link-card,.portal-card{padding:15px}
  .search-big{gap:8px}
  .search-big input{min-width:0;padding:0 13px}
  .search-big button{width:48px;padding:0;justify-content:center;font-size:0}
  .search-big button svg{width:18px;height:18px}
  .result-item{gap:12px;padding:14px 0}
  .set-row{align-items:flex-start;flex-direction:column;gap:3px}
  .set-row .g1{width:100%}
  .about-body{padding:0 16px 18px}
  .wish-board{grid-template-columns:1fr;gap:10px}
  .wish-card .discussion-entry{min-width:44px;min-height:44px;padding:0 8px}
  .wish-cheer{min-width:44px;justify-content:center}
  .wish-nick{align-items:stretch;flex-direction:column}
  .wish-nick input{width:100%}
  .music-item .artist{max-width:34%;font-size:12px}
  .music-item>.discussion-entry{min-width:40px;min-height:40px;padding:0}
  .music-item>.discussion-entry span{display:none}
  .music-item b{font-size:13px}
  .music-player{bottom:max(8px,env(safe-area-inset-bottom))}
  .music-playlist{bottom:calc(122px + env(safe-area-inset-bottom))}
  .wcal{padding:12px}
  .book-grid,.movie-grid{gap:12px}
  .novel-grid{gap:10px}
  .novel-card__body{padding:10px}
  .site-footer.inline{margin-bottom:calc(-24px - env(safe-area-inset-bottom))}

  .home-template--dashboard .home-dash-hero{min-height:216px;padding:20px 18px}
  .home-template--dashboard .home-dash-hero__main h1{font-size:25px;line-height:1.3}
  .home-template--dashboard .home-dash-hero__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
  .home-template--dashboard .home-dash-hero__stats span{min-width:0;padding:0 7px}
  .home-template--dashboard .home-dash-hero__cta{min-height:44px}
  .home-template--dashboard .home-dash-split,.home-template--dashboard .home-dash-upper{gap:12px}
  .home-template--dashboard .home-dash-explore__grid{gap:8px;padding:0 12px 12px}
  .home-template--dashboard .home-dash-life{padding:0}
  .home-template--dashboard .home-dash-life__grid{gap:12px}

  .home-template--focus .home-focus-hero{min-height:244px}
  .home-template--focus .home-focus-slide__body{padding:24px 20px 34px}
  .home-template--focus .home-focus-slide h1{font-size:25px;line-height:1.3}
  .home-template--focus .home-focus-slide__lead{font-size:14px}
  .home-template--focus .home-focus-slide__excerpt{min-height:0;-webkit-line-clamp:2}
  .home-template--focus .home-focus-author{display:flex;align-items:stretch;flex-direction:column;padding:16px}
  .home-template--focus .home-focus-author__stats{width:100%}
  .home-template--focus .home-focus-feature{min-height:190px}
  .home-template--focus .home-focus-player .home-player{grid-template-columns:72px minmax(0,1fr)}
  .home-template--focus .home-focus-player .home-player__cover{width:72px;height:72px}
  .home-template--focus .home-focus-tabs{max-width:100%;overflow-x:auto;scrollbar-width:none}

  .home-template--universe .home-universe-hero{min-height:0;padding:18px 16px;gap:14px}
  .home-template--universe .home-welcome-row{align-items:flex-start;gap:12px}
  .home-template--universe .home-welcome-avatar{width:52px;height:52px}
  .home-template--universe .home-universe-hero h1{font-size:21px}
  .home-template--universe .home-universe-hero__motto{display:none}
  .home-template--universe .home-hero-actions{gap:12px}
  .home-template--universe .home-player{width:100%;grid-template-columns:56px minmax(0,1fr);padding:10px}
  .home-template--universe .home-player__cover{width:56px;height:56px}
  .home-template--universe .home-universe-orbit{width:100%;height:auto;min-height:0;padding:14px}
  .home-template--universe .home-universe-orbit__ring{display:none}
  .home-template--universe .home-universe-core{position:relative;left:auto;top:auto;transform:none;margin:0 auto 16px}
  .home-template--universe .home-universe-core{--uv-avatar:64px}
  .home-template--universe .home-universe-links{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .home-template--universe .home-universe-link{position:static;width:auto;transform:none!important;display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:8px;align-items:center;padding:8px;border:1px solid var(--border);border-radius:10px;background:var(--card2);text-align:left}
  .home-template--universe .home-universe-link>span{grid-row:1/3;width:38px;height:38px;margin:0}
  .home-template--universe .home-universe-link b,.home-template--universe .home-universe-link small{text-align:left}
  .home-template--universe .home-universe-utilities{grid-template-columns:repeat(2,minmax(0,1fr));margin:10px 12px 0}
  .home-template--universe .home-universe-utilities a{height:auto;min-height:72px}
  .home-template--universe .home-life-board{padding:12px}
  .home-template--universe .home-life-board__head{height:auto;align-items:flex-start;flex-direction:column;gap:4px}
  .home-template--universe .home-life-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:none;gap:10px}
  .home-template--universe .home-life-card,.home-template--universe .home-life-gallery,.home-template--universe .home-media-preview,.home-template--universe .home-wish-preview,.home-template--universe .home-collection-preview,.home-template--universe .home-social-preview,.home-template--universe .home-message-preview,.home-template--universe .home-link-preview{grid-column:1;grid-row:auto;height:auto;min-height:0;overflow:visible}
  .home-template--universe .home-universe-ridge{position:relative;left:auto;right:auto;bottom:auto;width:calc(100% + 20px);height:48px;margin:-4px -10px -24px;transform:none}
  .home-template--universe .home-quote{min-height:44px;padding:8px 12px;grid-template-columns:minmax(0,1fr);gap:2px;text-align:center}
}

@media (max-width:520px){
  .discussion-emoji{width:100%}
  .discussion-toolbar .emoji-trigger,.discussion-toolbar .comment-submit{width:100%;margin-left:0;justify-content:center}
  .discussion-privacy{justify-content:center;text-align:center}
  .discussion-dialog{padding:8px}
  .discussion-dialog .dialog-box{max-height:calc(100vh - 16px);border-radius:12px}
  .discussion-dialog__body{max-height:calc(100vh - 102px);padding:14px}
  .discussion-dialog .discussion-form{gap:13px}
  .discussion-item>.avatar{width:36px;height:36px;border-radius:10px}
  .discussion-item{gap:9px}
}

@media (max-width:390px){
  .topbar .container-row{gap:6px}
  .search-form input{padding-left:12px;font-size:16px}
  .page-hero p{max-width:82%}
  .hero-stats,.home-template--dashboard .home-dash-hero__stats{font-size:12px}
  .hstat{padding:0 8px}
  .home-template--dashboard .home-dash-explore__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-template--focus .home-focus-shelf-grid,.home-template--focus .home-focus-slices__grid{gap:8px}
  .home-template--universe .home-universe-links{gap:6px}
  .home-template--universe .home-universe-link{padding:7px;column-gap:6px}
  .wish-card .discussion-entry span{display:none}
}

/* 右下角悬浮导航：返回顶部 / 进入底部（全站前台页面） */
.scroll-nav{position:fixed;right:24px;bottom:28px;z-index:60;display:flex;flex-direction:column;gap:8px}
.scroll-nav__btn{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--muted);box-shadow:var(--shadow-sm);cursor:pointer;transition:color .18s,border-color .18s,background .18s,opacity .18s}
.scroll-nav__btn:hover{color:var(--accent-deep);border-color:var(--accent-border);background:var(--accent-soft)}
.scroll-nav__btn:disabled{opacity:.4;cursor:default}
.scroll-nav__btn svg{width:17px;height:17px}
/* 底部音乐播放器展开时上移，避免遮挡 */
body.music-player-open .scroll-nav{bottom:96px}

@media (max-width:1200px){
  .scroll-nav{right:14px;bottom:calc(18px + env(safe-area-inset-bottom))}
  body.music-player-open .scroll-nav{bottom:124px}
}
