@charset "utf-8";
/* ==========================================================================
   QQ空间归档 · 经典皮肤样式表
   --------------------------------------------------------------------------
   设计目标：复刻 2010s 经典 QQ 空间观感（蓝色系 + 卡片流 + 模块化标题栏）
   约束    ：纯静态，不依赖任何字体/CDN/网络资源，file:// 直接打开可用
   断点    ：>=1024 双栏定宽 | 900~1023 双栏自适应 | <900 单列 + 底部标签栏
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --qz-blue:      #0d7fd6;   /* 主蓝 */
  --qz-blue-deep: #0a5ea8;   /* 深蓝（标题栏渐变终点） */
  --qz-blue-lite: #e8f3fe;   /* 浅蓝底 */
  --qz-blue-line: #cfe4f8;   /* 浅蓝描边 */
  --qz-cyan:      #17b3ea;   /* 青蓝点缀 */
  --qz-gold:      #ffb400;   /* 黄钻 / 等级 */
  --qz-pink:      #ff7ba8;   /* 花匠 / 点缀 */
  --qz-green:     #35c26a;

  --bg:      #eef3f9;        /* 页面底 */
  --card:    #ffffff;
  --line:    #e2e9f3;
  --line-2:  #eef2f8;
  --text:    #2b3a4e;
  --text-2:  #5b6b80;
  --muted:   #8b9ab0;

  --radius:  8px;
  --shadow:  0 1px 2px rgba(20, 50, 90, .05), 0 6px 18px rgba(20, 50, 90, .05);
  --shadow-pop: 0 12px 40px rgba(12, 44, 82, .28);

  --side-w:  218px;          /* 左栏宽度 */
  --main-w:  760px;          /* 内容区最佳宽度 */
  --gap:     14px;
}

/* ---------- 2. 基础重置 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.75 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB",
        system-ui, -apple-system, "Segoe UI", sans-serif;
  /* 经典 QQ 空间的浅蓝底纹：极淡的斜纹，纯 CSS，无图片 */
  background-image: repeating-linear-gradient(
      135deg, rgba(255,255,255,.55) 0 2px, transparent 2px 7px);
}
img { border: 0; }
a { color: var(--qz-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--qz-blue); outline-offset: 2px; }

/* ---------- 3. 顶部蓝色工具条 ---------- */
.qz-topbar {
  height: 36px;
  background: linear-gradient(180deg, #0a6fc4, #075da8);
  color: #d9ecff;
  font-size: 12.5px;
  position: relative;
  z-index: 40;
}
.qz-topbar-inner {
  max-width: calc(var(--side-w) + var(--main-w) + var(--gap) + 24px);
  margin: 0 auto;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 12px;
}
.qz-logo { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.qz-logo .mark {
  width: 20px; height: 20px; border-radius: 5px;
  background: linear-gradient(160deg, #ffd76a, var(--qz-gold));
  color: #7a4d00; font-size: 12px; font-weight: 900;
  display: grid; place-items: center; box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.qz-topbar .sp { flex: 1; }
.qz-topbar a { color: #cfe6ff; }
.qz-topbar .clock { color: #a9d3f7; font-variant-numeric: tabular-nums; }

/* ---------- 4. 头图 / 个人信息区 ---------- */
.qz-banner {
  position: relative;
  height: 208px;
  overflow: hidden;
  background:
    radial-gradient(900px 260px at 12% 10%, #6fd0ff 0%, transparent 60%),
    radial-gradient(700px 240px at 88% 0%, #b98bff 0%, transparent 62%),
    linear-gradient(160deg, #0e86df 0%, #0a63ad 55%, #084b86 100%);
}
/* 经典装扮：波点 + 光带，纯 CSS */
.qz-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.30) 1.6px, transparent 1.7px),
    radial-gradient(circle, rgba(255,255,255,.16) 1.1px, transparent 1.2px);
  background-size: 26px 26px, 40px 40px;
  background-position: 0 0, 13px 17px;
}
.qz-banner::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -120px; height: 190px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(255,255,255,.28), transparent 70%);
  transform: rotate(-3deg);
}
.qz-banner-inner {
  position: relative; z-index: 2;
  max-width: calc(var(--side-w) + var(--main-w) + var(--gap) + 24px);
  margin: 0 auto; height: 100%; padding: 0 12px;
}
/* 主人信息浮层 */
.qz-owner {
  position: absolute; left: 12px; bottom: 16px;
  display: flex; align-items: flex-end; gap: 14px;
}
.qz-avatar-frame {
  position: relative; width: 96px; height: 96px; flex: 0 0 auto;
  border-radius: 50%; padding: 4px;
  background: linear-gradient(180deg, #fff, #d9ecff);
  box-shadow: 0 6px 18px rgba(4, 32, 62, .35);
}
.qz-avatar-frame img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; display: block; background: #fff;
}
/* 黄钻角标 */
.qz-avatar-frame .vip {
  position: absolute; right: -2px; bottom: -2px;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(160deg, #ffdc7a, var(--qz-gold));
  border: 2px solid #fff; color: #7a4d00;
  font-size: 12px; font-weight: 900;
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.22);
}
.qz-owner-txt { padding-bottom: 6px; color: #fff; text-shadow: 0 1px 4px rgba(0,32,66,.5); min-width: 0; }
.qz-nick { font-size: 21px; font-weight: 700; letter-spacing: .5px; line-height: 1.3; }
.qz-sig {
  font-size: 12.5px; color: #d7ecff; margin-top: 3px;
  max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: text;
}
.qz-badges { display: flex; align-items: center; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 7px; border-radius: 10px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35);
  color: #fff; backdrop-filter: blur(3px);
}
.badge.vip  { background: linear-gradient(90deg, #ffd76a, var(--qz-gold)); color: #6b3f00; border-color: #ffe9ae; }
.badge.lv   { background: linear-gradient(90deg, #7fd0ff, #17b3ea); color: #053a55; border-color: #b6e8ff; }
.badge.farm { background: linear-gradient(90deg, #ffb3cd, var(--qz-pink)); color: #7a1f42; border-color: #ffd0e0; }
.badge.sun  { background: linear-gradient(90deg, #b7f0c8, var(--qz-green)); color: #13602f; border-color: #d3f7de; }
/* 等级进度条 */
.qz-level-bar { margin-top: 7px; width: 190px; max-width: 46vw; }
.qz-level-bar .track {
  height: 5px; border-radius: 3px; background: rgba(255,255,255,.30); overflow: hidden;
}
.qz-level-bar .fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #ffe08a, var(--qz-gold));
  box-shadow: 0 0 8px rgba(255,220,120,.7);
}
.qz-level-bar .cap { font-size: 11px; color: #cfe8ff; margin-top: 3px; }

/* ---------- 5. 主体双栏骨架 ---------- */
.qz-body {
  max-width: calc(var(--side-w) + var(--main-w) + var(--gap) + 24px);
  margin: 0 auto;
  padding: var(--gap) 12px 40px;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}
.qz-side { display: flex; flex-direction: column; gap: var(--gap); }
.qz-main { min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }

/* ---------- 6. 通用卡片 ---------- */
.qz-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* 模块化标题栏（经典蓝色渐变条） */
.qz-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px;
  background: linear-gradient(180deg, #f7fbff, #eaf3fd);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 14px; font-weight: 700; color: #14466f;
}
.qz-hd::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--qz-cyan), var(--qz-blue));
}
.qz-hd .sp { flex: 1; }
.qz-hd .hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.qz-hd button, .qz-hd .mini {
  font-size: 12px; font-weight: 400; color: var(--qz-blue);
  border: 1px solid var(--qz-blue-line); background: #fff;
  border-radius: 20px; padding: 3px 10px; cursor: pointer; line-height: 1.5;
}
.qz-hd button:hover, .qz-hd .mini:hover { background: var(--qz-blue-lite); text-decoration: none; }
.qz-bd { padding: 12px 13px; }

/* ---------- 7. 左侧导航 ---------- */
.qz-nav { list-style: none; margin: 0; padding: 6px; }
.qz-nav li { margin: 2px 0; }
.qz-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 6px;
  color: #3b4d64; font-size: 14px; position: relative;
  min-height: 40px;                     /* 触控友好 */
}
.qz-nav a:hover { background: #f3f8fe; text-decoration: none; }
.qz-nav a.on {
  background: linear-gradient(90deg, var(--qz-blue-lite), #f5faff);
  color: var(--qz-blue-deep); font-weight: 700;
}
.qz-nav a.on::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 2px 2px 0; background: var(--qz-blue);
}
.qz-nav .ico {
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 6px;
  display: grid; place-items: center; font-size: 13px;
  background: #eef4fb; color: var(--qz-blue);
}
.qz-nav a.on .ico { background: var(--qz-blue); color: #fff; }
.qz-nav .n {
  margin-left: auto; font-size: 11.5px; color: var(--muted);
  background: #f1f5fb; border-radius: 10px; padding: 0 7px; font-variant-numeric: tabular-nums;
}
.qz-nav a.on .n { background: #fff; color: var(--qz-blue); }

/* 左栏小组件 */
.qz-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qz-stat {
  text-align: center; padding: 9px 4px; border-radius: 6px;
  background: linear-gradient(180deg, #f7fbff, #eef5fd);
  border: 1px solid var(--line-2);
}
.qz-stat b { display: block; font-size: 19px; color: var(--qz-blue-deep); line-height: 1.3; font-variant-numeric: tabular-nums; }
.qz-stat span { font-size: 11.5px; color: var(--muted); }

.qz-visitors { display: flex; flex-wrap: wrap; gap: 6px; }
.qz-visitors img {
  width: 38px; height: 38px; border-radius: 6px; object-fit: cover;
  border: 1px solid var(--line); background: #f4f7fb;
}
.qz-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qz-tag {
  font-size: 12px; color: var(--text-2); background: #f2f6fc;
  border: 1px solid var(--line-2); border-radius: 20px; padding: 2px 9px;
}

/* ---------- 8. 内容流卡片（说说 / 日志 / 留言 / 好友动态） ---------- */
.qz-feed { display: flex; flex-direction: column; gap: 12px; }

/* 时间分组标题 */
.qz-group {
  display: flex; align-items: center; gap: 10px;
  margin: 6px 2px -2px; font-size: 13px; color: var(--qz-blue-deep); font-weight: 700;
}
.qz-group .cap {
  background: linear-gradient(90deg, var(--qz-blue), var(--qz-cyan));
  color: #fff; border-radius: 20px; padding: 2px 12px; font-size: 12.5px;
  box-shadow: 0 2px 8px rgba(13,127,214,.28);
}
.qz-group .cnt { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.qz-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--qz-blue-line), transparent); }

.qz-post { position: relative; }
.qz-post .seq {
  position: absolute; top: 12px; right: 13px;
  font-size: 11px; color: #c3cddd; font-variant-numeric: tabular-nums;
}
.qz-post-hd { display: flex; align-items: center; gap: 10px; }
.qz-post-hd img.av {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: #f4f7fb; flex: 0 0 auto;
}
.qz-post-hd .who { min-width: 0; flex: 1; }
.qz-post-hd .who b { display: block; font-size: 14px; color: var(--qz-blue-deep); }
.qz-post-hd .who b:hover { text-decoration: underline; cursor: pointer; }
.qz-post-hd .who small { font-size: 11.5px; color: var(--muted); }
.qz-post-hd .who small .qq { margin-right: 6px; }
.qz-post-body {
  margin: 9px 0 0; padding: 0 2px;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
  font-size: 14px; line-height: 1.85;
}
.qz-post-body .mention { color: var(--qz-blue); }
.qz-post-body a { color: var(--qz-blue); }

/* QQ 表情占位：原始导出未包含表情图，统一用小黄脸占位并保留代码 */
.qz-em {
  display: inline-block; width: 20px; height: 20px; vertical-align: -4px;
  margin: 0 1px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23ffce3d'/%3E%3Ccircle cx='7' cy='8' r='1.25' fill='%235b4310'/%3E%3Ccircle cx='13' cy='8' r='1.25' fill='%235b4310'/%3E%3Cpath d='M5.6 12c.9 1.6 2.3 2.4 4.4 2.4s3.5-.8 4.4-2.4' stroke='%235b4310' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  cursor: help;
}

/* 配图九宫格 */
.qz-pics { display: grid; gap: 5px; margin-top: 10px; }
.qz-pics.n1 { grid-template-columns: minmax(0, 1fr); max-width: 340px; }
.qz-pics.n2, .qz-pics.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 400px; }
.qz-pics.n3, .qz-pics.n5, .qz-pics.n6, .qz-pics.n7, .qz-pics.n8, .qz-pics.n9, .qz-pics.nx {
  grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 480px;
}
.qz-pics a {
  display: block; overflow: hidden; border-radius: 5px;
  border: 1px solid var(--line); background: #f4f7fb; line-height: 0;
}
.qz-pics img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  transition: transform .25s ease;
}
.qz-pics.n1 img { aspect-ratio: 4 / 3; }
.qz-pics a:hover img { transform: scale(1.03); }
.qz-pics a:hover { border-color: var(--qz-blue-line); }

/* 视频 / 文件附件 */
.qz-attach { margin-top: 10px; }
.qz-attach a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 6px; font-size: 13px;
  background: var(--qz-blue-lite); border: 1px solid var(--qz-blue-line); color: var(--qz-blue-deep);
}
.qz-attach a:hover { background: #dcecfe; text-decoration: none; }

/* 底部互动条 */
.qz-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 11px; padding-top: 9px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted);
}
.qz-foot .likes { color: #d9534f; }
.qz-fold {
  border: 1px solid var(--qz-blue-line); background: #fff; color: var(--qz-blue);
  border-radius: 20px; padding: 3px 11px; font-size: 12.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; line-height: 1.6;
}
.qz-fold:hover { background: var(--qz-blue-lite); }
.qz-fold.on { background: var(--qz-blue); border-color: var(--qz-blue); color: #fff; }
.qz-fold.warn { color: #a97016; border-color: #f0d9a8; background: #fffaf0; }
.qz-fold .ar { font-size: 9px; opacity: .8; }
.qz-none { color: #a4b0c2; }

/* 评论区 */
.qz-cmts { margin-top: 9px; display: none; }
.qz-cmts.on { display: block; }
.qz-note {
  font-size: 12px; line-height: 1.7; padding: 6px 10px; border-radius: 6px;
  background: #fff; border: 1px dashed var(--line); color: var(--muted); margin-bottom: 8px;
}
.qz-note.warn { color: #a97016; background: #fffaf0; border-color: #f2ddb4; }
.qz-cmt {
  padding: 6px 10px; border-radius: 6px; background: #f6f9fd;
  border: 1px solid var(--line-2); margin-bottom: 5px;
  font-size: 13px; line-height: 1.7; overflow-wrap: anywhere;
}
.qz-cmt b { color: var(--qz-blue); margin-right: 6px; font-weight: 600; }
.qz-cmt:last-child { margin-bottom: 0; }

/* ---------- 9. 日志样式 ---------- */
.qz-log-hd {
  padding: 12px 14px 0;
}
.qz-log-title {
  font-size: 17px; font-weight: 700; color: #14466f; line-height: 1.5;
  margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: pointer;
}
.qz-log-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.qz-log-cate {
  display: inline-block; padding: 0 7px; border-radius: 3px; font-size: 11.5px;
  background: var(--qz-blue-lite); color: var(--qz-blue-deep); border: 1px solid var(--qz-blue-line);
}
.qz-log-body {
  padding: 8px 14px 4px; max-height: 172px; overflow: hidden; position: relative;
  color: var(--text-2); line-height: 1.9;
}
.qz-log-body.open { max-height: none; }
.qz-log-body:not(.open)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 85%);
}
.qz-log-more {
  border: 0; background: none; color: var(--qz-blue); cursor: pointer;
  font-size: 12.5px; padding: 3px 0;
}

/* ---------- 10. 相册网格 ---------- */
.qz-album {
  display: grid; gap: 8px; padding: 12px 13px;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
}
.qz-album a {
  display: block; position: relative; overflow: hidden; border-radius: 6px;
  border: 1px solid var(--line); background: #f4f7fb; line-height: 0;
  aspect-ratio: 1 / 1;
}
.qz-album img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.qz-album a:hover img { transform: scale(1.06); }
.qz-album a:hover { border-color: var(--qz-blue); }
.qz-album .from {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 11px; line-height: 1.5; padding: 8px 6px 4px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,20,45,.62));
  opacity: 0; transition: opacity .2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qz-album a:hover .from { opacity: 1; }

/* ---------- 11. 留言板 ---------- */
.qz-board { padding: 4px 13px 13px; }
.qz-msg { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.qz-msg:last-child { border-bottom: 0; }
.qz-msg img.av {
  width: 44px; height: 44px; border-radius: 6px; object-fit: cover;
  border: 1px solid var(--line); background: #f4f7fb; flex: 0 0 auto;
}
.qz-msg .bub { min-width: 0; flex: 1; }
.qz-msg .bub .top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.qz-msg .bub .top b { color: var(--qz-blue); font-size: 13.5px; }
.qz-msg .bub .top small { color: var(--muted); font-size: 11.5px; }
.qz-msg .bub .txt { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }

/* ---------- 12. 音乐盒 ---------- */
.qz-player { display: flex; align-items: center; gap: 13px; padding: 14px 13px; }
.qz-disc {
  width: 66px; height: 66px; border-radius: 50%; flex: 0 0 auto;
  background:
    radial-gradient(circle, #fff 0 12%, #14a4de 12.5% 26%, #0d7fd6 26.5% 62%, #0a5ea8 62.5% 100%);
  box-shadow: 0 4px 14px rgba(10,94,168,.35), inset 0 0 0 1px rgba(255,255,255,.25);
  display: grid; place-items: center; color: #fff; font-size: 20px;
  animation: qzspin 7s linear infinite; animation-play-state: paused;
}
.qz-player.playing .qz-disc { animation-play-state: running; }
@keyframes qzspin { to { transform: rotate(360deg); } }
.qz-player .info { min-width: 0; flex: 1; }
.qz-player .tt { font-size: 15px; font-weight: 700; color: #14466f; }
.qz-player .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.qz-player .bar {
  margin-top: 8px; height: 4px; border-radius: 2px; background: #e6eef8; overflow: hidden;
}
.qz-player .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--qz-cyan), var(--qz-blue)); }
.qz-playbtn {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; cursor: pointer;
  border: 0; color: #fff; font-size: 15px;
  background: linear-gradient(180deg, #28a5e8, var(--qz-blue));
  box-shadow: 0 4px 12px rgba(13,127,214,.35);
}
.qz-playbtn:hover { filter: brightness(1.07); }
.qz-track { display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.qz-track:last-child { border-bottom: 0; }
.qz-track .no { width: 22px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.qz-track .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-track .dt { color: var(--muted); font-size: 11.5px; }
.qz-track:hover { background: #f7fbff; }
.qz-track.cur { background: var(--qz-blue-lite); }
.qz-track.cur .nm { color: var(--qz-blue-deep); font-weight: 700; }

/* ---------- 13. 首页小组件 ---------- */
.qz-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 13px; }
.qz-quick a {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 11px 4px; border-radius: 6px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #f9fcff, #f1f7fe); color: #3b4d64; font-size: 12.5px;
}
.qz-quick a:hover { border-color: var(--qz-blue-line); background: #eef6ff; text-decoration: none; }
.qz-quick .ico {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(160deg, #5cc0f5, var(--qz-blue)); color: #fff; font-size: 15px;
}
.qz-mini-post { display: block; padding: 10px 13px; border-bottom: 1px dashed var(--line); font-size: 13px; color: inherit; }
.qz-mini-post:last-child { border-bottom: 0; }
.qz-mini-post:hover { background: #f7fbff; text-decoration: none; }
.qz-mini-post .t { color: var(--muted); font-size: 11.5px; }
.qz-mini-post .c {
  margin-top: 2px; color: var(--text-2); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.qz-mini-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px 13px; }
.qz-mini-photos a { display: block; aspect-ratio: 1/1; overflow: hidden; border-radius: 5px; border: 1px solid var(--line); line-height: 0; }
.qz-mini-photos img { width: 100%; height: 100%; object-fit: cover; }
.qz-mini-photos a:hover { border-color: var(--qz-blue); }

/* ---------- 14. 工具条（搜索 / 排序 / 加载更多） ---------- */
.qz-tools { display: flex; gap: 8px; flex-wrap: wrap; padding: 11px 13px; }
.qz-tools.gap-top { border-top: 1px solid var(--line-2); }
.qz-search { flex: 1 1 240px; position: relative; min-width: 170px; }
.qz-search input {
  width: 100%; padding: 8px 30px 8px 30px; font: inherit; font-size: 13.5px;
  border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--text); outline: none;
}
.qz-search input:focus { border-color: var(--qz-blue); box-shadow: 0 0 0 3px var(--qz-blue-lite); }
.qz-search .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #a6b3c6; font-size: 12px; pointer-events: none; }
.qz-search .clr {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; border-radius: 50%; border: 0; padding: 0;
  background: #e8edf6; color: #6b7a90; cursor: pointer; font-size: 11px; line-height: 1; display: none;
}
.qz-search .clr.on { display: block; }
.qz-btn {
  border: 1px solid var(--line); background: #fff; color: #3b4d64;
  border-radius: 20px; padding: 8px 14px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.qz-btn:hover { border-color: var(--qz-blue); color: var(--qz-blue); }
.qz-btn.primary { background: linear-gradient(180deg, #28a5e8, var(--qz-blue)); border-color: var(--qz-blue); color: #fff; }
.qz-btn.primary:hover { filter: brightness(1.07); color: #fff; }
.qz-more { text-align: center; padding: 6px 0 2px; }
.qz-empty { text-align: center; color: var(--muted); padding: 46px 14px; font-size: 13.5px; }
.qz-empty .big { display: block; font-size: 30px; opacity: .45; margin-bottom: 8px; }

/* 搜索高亮 */
mark { background: #fff3b8; color: inherit; border-radius: 2px; padding: 0 1px; }
.qz-post.flash { animation: qzflash 1.8s ease; }
@keyframes qzflash {
  0%, 60% { box-shadow: 0 0 0 3px rgba(255,180,0,.55), var(--shadow); }
  100%    { box-shadow: var(--shadow); }
}

/* ---------- 15. 灯箱 ---------- */
.qz-lb {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(8, 22, 40, .9); backdrop-filter: blur(3px);
}
.qz-lb.on { display: grid; grid-template-rows: 1fr auto; }
.qz-lb-stage { position: relative; display: grid; place-items: center; padding: 20px; min-height: 0; }
.qz-lb-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 4px; box-shadow: var(--shadow-pop);
}
.qz-lb-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); color: #cfe3f8; font-size: 13px;
}
.qz-lb-bar button {
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.10);
  color: #eaf4ff; border-radius: 20px; padding: 7px 16px; cursor: pointer; font-size: 13px;
}
.qz-lb-bar button:hover { background: rgba(255,255,255,.2); }
.qz-lb-bar .idx { font-variant-numeric: tabular-nums; min-width: 56px; text-align: center; }
.qz-lb-bar a { color: #9fd2ff; font-size: 12.5px; }
.qz-lb-bar a:hover { color: #fff; }
.qz-lb .x, .qz-lb .nav {
  position: absolute; z-index: 2; cursor: pointer;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12);
  color: #eaf4ff; border-radius: 50%;
}
.qz-lb .x {
  top: 12px; right: 14px; width: 38px; height: 38px; font-size: 15px; line-height: 1;
}
.qz-lb .nav {
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; font-size: 19px; line-height: 1;
}
.qz-lb .x:hover, .qz-lb .nav:hover { background: rgba(255,255,255,.24); }
.qz-lb .nav.prev { left: 12px; }
.qz-lb .nav.next { right: 12px; }

/* ---------- 16. 底部标签栏（移动端） ---------- */
.qz-tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
  padding-bottom: env(safe-area-inset-bottom);
}
.qz-tabbar nav { display: flex; }
/* 前 4 项是 <a href="#/key">（原生跳转），「更多」是 <button>（打开抽屉） */
.qz-tabbar a, .qz-tabbar button {
  flex: 1; border: 0; background: none; cursor: pointer;
  padding: 6px 2px 5px; color: var(--muted); font-size: 11px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.qz-tabbar a:hover, .qz-tabbar button:hover { text-decoration: none; color: var(--qz-blue); }
.qz-tabbar a .ico, .qz-tabbar button .ico { font-size: 18px; line-height: 1.2; }
.qz-tabbar a.on, .qz-tabbar button.on { color: var(--qz-blue); font-weight: 700; }
/* 更多抽屉 */
.qz-sheet {
  position: fixed; inset: 0; z-index: 80; display: none;
  background: rgba(10, 30, 55, .38);
}
.qz-sheet.on { display: block; }
.qz-sheet .panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 14px 14px 0 0; padding: 8px 0 calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(10,40,80,.25);
  animation: qzup .22s ease;
}
@keyframes qzup { from { transform: translateY(100%); } to { transform: none; } }
.qz-sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: #dbe4f0; margin: 2px auto 8px; }
.qz-sheet a {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px;
  color: #2b3a4e; font-size: 15px; border-bottom: 1px solid var(--line-2);
}
.qz-sheet a:last-child { border-bottom: 0; }
.qz-sheet a.on { color: var(--qz-blue); font-weight: 700; background: #f5faff; }
.qz-sheet a .ico { width: 26px; text-align: center; font-size: 16px; }

/* 回到顶部 */
.qz-top {
  position: fixed; right: 16px; bottom: 74px; z-index: 55;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: #4a5a75;
  box-shadow: 0 6px 18px rgba(20,50,90,.16); font-size: 17px; display: none;
}
.qz-top.on { display: block; }

/* ---------- 17. 页脚 ---------- */
.qz-footer {
  max-width: calc(var(--side-w) + var(--main-w) + var(--gap) + 24px);
  margin: 0 auto; padding: 14px 12px 30px;
  color: var(--muted); font-size: 12px; line-height: 2; text-align: center;
  border-top: 1px dashed var(--line);
}
.qz-footer a { margin: 0 8px; }

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1023px) {
  .qz-body { grid-template-columns: 190px minmax(0, 1fr); }
  :root { --side-w: 190px; }
}

/* 移动端：单列 + 底部标签栏 */
@media (max-width: 899px) {
  body { font-size: 14.5px; }
  .qz-body {
    display: block; padding: 12px 10px 92px;   /* 底部留出标签栏空间 */
    max-width: 720px;
  }
  .qz-side { display: none; }                  /* 左栏收起，改由底部标签栏导航 */
  .qz-main { gap: 12px; }
  .qz-topbar { display: none; }
  .qz-banner { height: 172px; }
  .qz-owner { left: 10px; bottom: 12px; gap: 11px; align-items: flex-end; }
  .qz-avatar-frame { width: 74px; height: 74px; padding: 3px; }
  .qz-avatar-frame .vip { width: 22px; height: 22px; font-size: 11px; }
  .qz-nick { font-size: 18px; }
  .qz-sig { font-size: 12px; max-width: 58vw; }
  .qz-level-bar { width: 46vw; }
  .qz-badges .badge { height: 19px; font-size: 11px; }

  .qz-tabbar { display: block; }
  .qz-top { bottom: 66px; }

  .qz-hd { padding: 9px 12px; }
  .qz-bd { padding: 11px 12px; }
  .qz-post-body { font-size: 14.5px; }
  .qz-pics.n1 { max-width: 72%; }
  .qz-pics.n2, .qz-pics.n4 { max-width: 78%; }
  .qz-pics { gap: 4px; }
  .qz-album { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 11px 12px; }
  .qz-quick { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .qz-quick a { padding: 9px 2px; font-size: 12px; }
  .qz-mini-photos { grid-template-columns: repeat(4, 1fr); }
  .qz-tools { padding: 10px 12px; }
  .qz-tools .qz-btn { flex: 1 1 auto; text-align: center; }
  .qz-search { flex: 1 1 100%; }
  .qz-lb .nav { width: 38px; height: 38px; }
  .qz-log-title { font-size: 16px; white-space: normal; }
}

@media (max-width: 420px) {
  .qz-album { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qz-quick { grid-template-columns: repeat(4, 1fr); }
}

/* 打印 / 减少动效 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
