/* ============================================================
   zibll.css —— Zibll 子比风格 UI 层（绿色主色版）
   ------------------------------------------------------------
   参考：Zibll 主题首页（例如.html 快照）的视觉体系：
     固定毛玻璃顶栏 / 大图首屏 + 居中搜索 / 卡片式文章列表 /
     排序栏 + 加载更多 / 侧栏小工具 / 悬浮快捷导航 / 圆角卡片
   变量沿用 Zibll 的命名（--theme-color / --main-radius / --muted-* 等），
   但取值映射到本站原有绿色，做到「形似 Zibll、色仍是本站绿」。
   加载顺序：style.css → responsive.css → forum.css → zibll.css（本文件最后，负责覆盖）
   ============================================================ */

/* ---------- 1. 设计 token（对齐 Zibll 变量） ---------- */
body {
  --zj-width: 1320px;                    /* Zibll: --mian-max-width（第 18 期由 1240 加宽：右侧栏下沉后主内容吃满整行） */
  --theme-color: #2d6a4f;                /* 主色：本站绿（Zibll 为 --theme-color） */
  --focus-color: var(--theme-color);
  --focus-shadow: rgba(45, 106, 79, .22);
  --key-color: #17281d;                  /* 标题色 */
  --main-color: #46584c;                 /* 正文色 */
  --main-shadow: rgba(23, 40, 29, .06);
  --muted-color: #7b8f83;
  --muted-2-color: #9db0a4;
  --body-bg: #f2f7f3;                    /* Zibll: --body-bg-color */
  --main-bg: #ffffff;                    /* Zibll: --main-bg-color */
  --muted-bg: #eef4f0;
  --line: rgba(45, 106, 79, .1);
  --radius: 12px;                        /* Zibll: --main-radius */
  --radius-sm: 8px;
  --shadow: 0 2px 10px var(--main-shadow);
  --shadow-lg: 0 12px 30px rgba(23, 40, 29, .1);
  --blur-bg: rgba(255, 255, 255, .82);
  --header-h: 62px;
}

/* ---------- 2. 基础 ---------- */
body {
  background: var(--body-bg);
  color: var(--main-color);
  padding: 0;
  display: block;
}

/* 固定顶栏留出占位高度；旧版 .blog-wrapper 的宽度限制在这里取消 */
.blog-wrapper {
  max-width: none;
  width: auto;
  padding-top: var(--header-h);
}

.zj-container {
  max-width: var(--zj-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* 主内容 + 侧栏（Zibll 的两栏布局） */
.zj-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  margin: 20px auto 36px;
}

.zj-main { min-width: 0; }
.zj-side { display: flex; flex-direction: column; gap: 18px; }

/* ---------- 3. 顶部固定导航（Zibll navbar） ---------- */
.zj-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: var(--blur-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}

.zj-header.is-scrolled { box-shadow: 0 6px 22px var(--main-shadow); }

.zj-navbar {
  max-width: var(--zj-width);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.zj-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.zj-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

.zj-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.zj-brand-name { font-size: 17px; font-weight: 700; color: var(--key-color); }
.zj-brand-tag { font-size: 11.5px; color: var(--muted-2-color); }

.zj-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 15px;
}

.zj-nav > a {
  color: var(--main-color);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  transition: color .25s, background .25s;
  white-space: nowrap;
}

.zj-nav > a:hover,
.zj-nav > a.is-active { color: var(--theme-color); background: rgba(45, 106, 79, .07); }

.zj-nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* 移动端才出现的汉堡按钮 */
.zj-nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--main-color);
  font-size: 16px;
  cursor: pointer;
}

/* ---------- 4. 按钮（Zibll .but） ---------- */
.zj-but {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--muted-bg);
  color: var(--main-color);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s, background .25s, box-shadow .25s;
}

.zj-but:hover { color: var(--theme-color); background: rgba(45, 106, 79, .1); }

.zj-but.is-accent {
  background: var(--theme-color);
  color: #fff;
  box-shadow: 0 6px 16px var(--focus-shadow);
}

.zj-but.is-accent:hover { background: #40916c; color: #fff; }

.zj-but.is-line { background: #fff; border-color: var(--line); }
.zj-but.is-round { border-radius: 999px; }
.zj-but.is-circle { width: 34px; padding: 0; border-radius: 50%; }
.zj-but.is-sm { height: 28px; padding: 0 10px; font-size: 13px; }

/* ---------- 5. 下拉菜单（Zibll hover-show） ---------- */
.zj-dropdown { position: relative; }

.zj-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  padding: 6px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 60;
}

.zj-dropdown:hover > .zj-dropdown-menu,
.zj-dropdown.is-open > .zj-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.zj-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--main-color);
  text-decoration: none;
}

.zj-dropdown-menu a:hover { background: rgba(45, 106, 79, .08); color: var(--theme-color); }
.zj-dropdown-menu i { width: 16px; text-align: center; color: var(--muted-2-color); }
.zj-dropdown-menu a:hover i { color: var(--theme-color); }

/* ---------- 6. 页头用户区（沿用 forum.css 的 auth-* 结构，换成 Zibll 观感） ---------- */
.auth-area { display: flex; align-items: center; }

.auth-login-btn {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--theme-color);
  color: #fff;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 6px 16px var(--focus-shadow);
  transition: background .25s;
}

.auth-login-btn:hover { background: #40916c; }

.auth-user { position: relative; }

.auth-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px 0 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--main-bg);
  color: var(--main-color);
  font-size: 14px;
  cursor: pointer;
}

.auth-user-trigger .avatar { width: 30px; height: 30px; font-size: 13px; }
.auth-name { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.auth-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  padding: 6px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 60;
}

.auth-user.is-open .auth-menu { display: block; }

.auth-menu a,
.auth-menu .auth-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font-size: 14px;
  color: var(--main-color);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.auth-menu a:hover,
.auth-menu .auth-logout:hover { background: rgba(45, 106, 79, .08); color: var(--theme-color); }
.auth-menu i { width: 16px; text-align: center; color: var(--muted-2-color); }

/* ---------- 7. 首屏广告位轮播 + 居中搜索（Zibll header-slider） ---------- */
.zj-slider {
  position: relative;
  margin: 20px auto 0;
  max-width: var(--zj-width);
  padding: 0 16px;
}

.zj-ads {
  position: relative;
  /* 第 18 期容器加宽到 1320px，轮播按原比例（≈3.8:1）补高 20px */
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--muted-bg);
  box-shadow: var(--shadow-lg);
}

.zj-ads-track {
  display: flex;
  height: 100%;
  transition: transform .45s ease;
}

.zj-ads-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  text-decoration: none;
  background: var(--muted-bg);
}

.zj-ads-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .6s ease;
}

.zj-ads-slide:hover img { transform: scale(1.03); }

.zj-ads-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 30px 20px 14px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(180deg, rgba(9, 26, 17, 0), rgba(9, 26, 17, .72));
}

.zj-ads-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(9, 26, 17, .38);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background .25s;
}

.zj-ads-arrow:hover { background: rgba(9, 26, 17, .62); }
.zj-ads-arrow.is-prev { left: 14px; }
.zj-ads-arrow.is-next { right: 14px; }

/* 只有一张时 JS 会给箭头 / 圆点加 hidden —— 必须显式声明，否则被上面的 display 盖掉 */
.zj-ads-arrow[hidden],
.zj-ads-dots[hidden] { display: none; }

.zj-ads-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.zj-ads-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: width .25s, background .25s;
}

.zj-ads-dot.is-active { width: 20px; border-radius: 999px; background: #fff; }


/* 首屏搜索框已在第 7 期按站主要求移除（对应的两组首屏搜索样式一并删除，
   这里只留说明）；站内搜索保留在文章列表页的内联搜索（.zj-search-inline，
   见 archive.html / 22 节） */


/* ---------- 8. 快捷键卡片（Zibll icon-cover-card） ---------- */
.zj-icon-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.zj-icon-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}

.zj-icon-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.zj-icon-card .zj-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 106, 79, .1);
  color: var(--theme-color);
  font-size: 17px;
}

.zj-icon-card .zj-icon-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--key-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zj-icon-card .zj-icon-desc {
  font-size: 12.5px;
  color: var(--muted-2-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 9. 文章列表卡片（Zibll posts-row） ---------- */
.zj-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.zj-section-title h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--key-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.zj-section-title h2::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--theme-color);
}

.zj-section-title a { font-size: 13px; color: var(--muted-color); text-decoration: none; }
.zj-section-title a:hover { color: var(--theme-color); }

.zj-posts { display: flex; flex-direction: column; gap: 14px; }

.zj-item {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .28s, box-shadow .28s;
}

.zj-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.zj-item-thumb {
  position: relative;
  flex: 0 0 208px;
  height: 132px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 2.2rem;
}

.zj-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.zj-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted-2-color);
}

.zj-item-cat {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(45, 106, 79, .09);
  color: var(--theme-color);
}

.zj-item-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--key-color);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .25s;
}

.zj-item:hover .zj-item-title { color: var(--theme-color); }

.zj-item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

.zj-tag {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--muted-bg);
  color: var(--muted-color);
  text-decoration: none;
}

.zj-tag:hover { background: rgba(45, 106, 79, .12); color: var(--theme-color); }

.zj-item-excerpt {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted-color);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zj-item-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted-2-color);
}

.zj-item-meta .zj-meta-left { display: flex; align-items: center; gap: 14px; }
.zj-item-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* 「置顶」角标（Zibll badge） */
.zj-badge-top {
  position: absolute;
  top: -1px;
  right: 14px;
  padding: 3px 10px 4px;
  border-radius: 0 0 8px 8px;
  background: var(--theme-color);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: .04em;
  box-shadow: 0 6px 14px var(--focus-shadow);
}

/* ---------- 10. 排序 / 筛选栏（Zibll ajax-option） ---------- */
.zj-sortbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.zj-sort { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.zj-sort button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted-color);
  font-size: 13.5px;
  cursor: pointer;
  transition: color .25s, background .25s;
}

.zj-sort button:hover { color: var(--theme-color); background: rgba(45, 106, 79, .07); }

.zj-sort button.is-active {
  color: #fff;
  background: var(--theme-color);
  box-shadow: 0 6px 14px var(--focus-shadow);
}

.zj-sort-label { font-size: 13px; color: var(--muted-2-color); }

.zj-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.zj-chip {
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--main-bg);
  color: var(--muted-color);
  font-size: 12.5px;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}

.zj-chip:hover { color: var(--theme-color); border-color: rgba(45, 106, 79, .35); }

.zj-chip.is-active { color: #fff; background: var(--theme-color); border-color: var(--theme-color); }

.zj-search-inline {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--muted-bg);
  color: var(--muted-2-color);
}

.zj-search-inline input {
  width: 170px;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  color: var(--key-color);
}

.zj-result-count { font-size: 13px; color: var(--muted-2-color); }

/* ---------- 11. 加载更多 / 空状态 ---------- */
.zj-loadmore { display: flex; justify-content: center; margin-top: 18px; }

.zj-loadmore button {
  height: 38px;
  padding: 0 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--main-bg);
  color: var(--main-color);
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: color .25s, background .25s, border-color .25s;
}

.zj-loadmore button:hover { color: #fff; background: var(--theme-color); border-color: var(--theme-color); }
.zj-loadmore button[disabled] { opacity: .6; cursor: default; }

.zj-empty {
  padding: 46px 20px;
  text-align: center;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.zj-empty i { font-size: 32px; color: var(--muted-2-color); }
.zj-empty p { margin: 14px 0 18px; font-size: 14px; color: var(--muted-color); }
.zj-empty[hidden] { display: none; }

/* ---------- 12. 侧栏小工具（Zibll zib-widget） ---------- */
.zj-widget {
  padding: 16px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.zj-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.zj-widget-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--key-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.zj-widget-title::before {
  content: '';
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background: var(--theme-color);
}

.zj-widget-head a { font-size: 12.5px; color: var(--muted-2-color); text-decoration: none; }
.zj-widget-head a:hover { color: var(--theme-color); }

/* 关于作者 */
.zj-author { display: flex; align-items: center; gap: 12px; }

.zj-author .zj-author-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--muted-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-color);
  font-size: 20px;
}

.zj-author .zj-author-bio { font-size: 13px; line-height: 1.75; color: var(--muted-color); }

.zj-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.zj-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--muted-bg);
  color: var(--muted-color);
  font-size: 12.5px;
  text-decoration: none;
  transition: color .25s, background .25s;
}

.zj-social a:hover { color: #fff; background: var(--theme-color); }

/* 最新注册用户（Zibll 侧栏「最新注册用户」） */
.zj-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.zj-user-row:last-child { border-bottom: 0; padding-bottom: 0; }
.zj-user-row .avatar { width: 34px; height: 34px; font-size: 14px; flex: 0 0 auto; }

.zj-user-info { min-width: 0; flex: 1; }

.zj-user-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--key-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zj-user-bio {
  display: block;
  font-size: 12px;
  color: var(--muted-2-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zj-user-row .zj-follow {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted-color);
  font-size: 12px;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}

.zj-user-row .zj-follow:hover,
.zj-user-row .zj-follow.is-on {
  color: #fff;
  background: var(--theme-color);
  border-color: var(--theme-color);
}

/* 热门文章（带序号） */
.zj-hot-list { list-style: none; margin: 0; padding: 0; counter-reset: zjhot; }

.zj-hot-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--main-color);
}

.zj-hot-list li::before {
  counter-increment: zjhot;
  content: counter(zjhot);
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  background: var(--muted-bg);
  color: var(--muted-color);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zj-hot-list li:nth-child(-n+3)::before { background: var(--theme-color); color: #fff; }

/* 站点统计 */
.zj-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.zj-stat {
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: var(--muted-bg);
  text-align: center;
}

.zj-stat b { display: block; font-size: 19px; color: var(--theme-color); line-height: 1.3; }
.zj-stat span { font-size: 12px; color: var(--muted-2-color); }

/* ---------- 13. 页脚（Zibll footer） ---------- */
.zj-footer {
  margin-top: 10px;
  padding: 26px 0 30px;
  background: var(--main-bg);
  border-top: 1px solid var(--line);
  color: var(--muted-color);
  font-size: 13px;
}

.zj-footer-inner {
  max-width: var(--zj-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.zj-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.zj-footer-links a { color: var(--muted-color); text-decoration: none; }
.zj-footer-links a:hover { color: var(--theme-color); }
.zj-footer-copy { color: var(--muted-2-color); }

/* ---------- 14. 悬浮快捷导航（Zibll 浮球 + 九宫格面板，可拖拽） ---------- */
.zj-fab {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 980;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.zj-fab-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--main-bg);
  color: var(--theme-color);
  font-size: 16px;
  cursor: grab;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
  transition: background .25s, color .25s;
}

.zj-fab-btn:active { cursor: grabbing; }
.zj-fab-btn:hover { background: var(--theme-color); color: #fff; }

.zj-fab-panel {
  width: 236px;
  padding: 14px 12px 12px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: none;
}

.zj-fab-panel.is-open { display: block; }

.zj-fab-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--main-color);
}

.zj-fab-close {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--muted-bg);
  color: var(--muted-color);
  font-size: 12px;
  cursor: pointer;
}

.zj-fab-close:hover { background: rgba(45, 106, 79, .15); color: var(--theme-color); }

.zj-fab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.zj-fab-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 54px;
  border-radius: 10px;
  background: var(--muted-bg);
  color: var(--key-color);
  font-size: 12px;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.zj-fab-grid a:hover { background: rgba(45, 106, 79, .12); color: var(--theme-color); }
.zj-fab-grid a i { font-size: 15px; color: var(--theme-color); }

/* ---------- 15. 文章详情页（Zibll single） ---------- */
.zj-single {
  padding: 28px 32px 32px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.zj-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--muted-color);
  text-decoration: none;
}

.zj-back:hover { color: var(--theme-color); }

.zj-single-cat {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(45, 106, 79, .09);
  color: var(--theme-color);
  font-size: 12.5px;
}

.zj-single-title {
  margin: 12px 0 10px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--key-color);
}

.zj-single-role { font-size: 13px; color: var(--muted-color); margin-bottom: 10px; }
.zj-single-role[hidden] { display: none; }

/* 详情页信息条（第 8 期增强）：作者卡 + 日期·浏览·评论·点赞·分享，单独包成一张带边框的卡片
   （正文卡本身是白底，所以这里用浅绿底 + 实线边框，让「单独一块」看得出来） */
.zj-single-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--muted-bg);
  font-size: 13px;
  color: var(--muted-color);
}

.zj-single-metabar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.zj-single-meta span { display: inline-flex; align-items: center; gap: 6px; }

.zj-single-cover {
  Max-height: 7000px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  overflow: hidden;
}

.zj-single-cover:empty { display: none; }

.zj-single-lead {
  padding: 14px 16px;
  margin-bottom: 20px;
  border-left: 3px solid var(--theme-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--muted-bg);
  font-size: 14px;
  line-height: 1.85;
  color: var(--main-color);
}

.zj-article p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 2;
  color: #33473c;
}

.zj-article p:last-child { margin-bottom: 0; }

.zj-article blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--theme-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--muted-bg);
  color: var(--main-color);
}

.zj-article img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

.zj-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

/* 上一篇 / 下一篇（Zibll 卡片式） */
.zj-postnav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.zj-postnav a {
  padding: 14px 16px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--main-color);
  font-size: 13.5px;
  transition: transform .25s, box-shadow .25s;
}

.zj-postnav a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.zj-postnav a.is-disabled { opacity: .55; pointer-events: none; }

.zj-postnav .zj-nav-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--muted-2-color);
}

.zj-postnav .zj-nav-title {
  display: block;
  color: var(--key-color);
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}






/* ---------- 16. 评论区（Zibll comment） ---------- */
.comments-section {
  margin-top: 18px;
  padding: 22px 24px 26px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.comments-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--key-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.comments-count {
  padding: 1px 10px;
  border-radius: 999px;
  background: rgba(45, 106, 79, .1);
  color: var(--theme-color);
  font-size: 12px;
  font-weight: 600;
}

.comments-sort { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.comments-sort button {
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--main-bg);
  color: var(--muted-color);
  font-size: 12.5px;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}

.comments-sort button:hover { color: var(--theme-color); }
.comments-sort button.is-active { color: #fff; background: var(--theme-color); border-color: var(--theme-color); }

.comments-author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  font-size: 12.5px;
  color: var(--muted-color);
  cursor: pointer;
}

.comments-author input { accent-color: var(--theme-color); }

.comment-form {
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--muted-bg);
}

.comment-form textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--main-bg);
  font: inherit;
  font-size: 14px;
  line-height: 1.75;
  color: var(--key-color);
  resize: vertical;
  outline: 0;
  transition: border-color .25s, box-shadow .25s;
}

.comment-form textarea:focus { border-color: var(--theme-color); box-shadow: 0 0 0 3px var(--focus-shadow); }

.comment-guest { margin-bottom: 10px; }

.comment-guest input {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--main-bg);
  font-size: 14px;
  color: var(--key-color);
  outline: 0;
}

.comment-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; }
.comment-reply-tip { margin-right: auto; font-size: 12.5px; color: var(--theme-color); }

.comment-reply-cancel {
  margin-left: 6px;
  border: 0;
  background: transparent;
  color: var(--muted-2-color);
  font-size: 12.5px;
  cursor: pointer;
}

.comment-reply-cancel:hover { color: var(--theme-color); }

.comment-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.comment-item:last-child { border-bottom: 0; padding-bottom: 0; }

.comment-item.is-child { margin-left: 46px; padding-left: 16px; border-left: 3px solid var(--line); }

.comment-avatar { width: 38px; height: 38px; border-radius: 50%; font-size: 15px; flex: 0 0 auto; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; }
.comment-name { font-weight: 600; color: var(--key-color); }

.comment-badge {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--muted-bg);
  color: var(--muted-2-color);
  font-size: 11.5px;
}

.comment-badge.is-author { background: rgba(45, 106, 79, .1); color: var(--theme-color); }
.comment-time { margin-left: auto; font-size: 12px; color: var(--muted-2-color); }
.comment-content { font-size: 14.5px; line-height: 1.85; color: var(--main-color); word-break: break-word; }
.comment-bar { display: flex; align-items: center; gap: 14px; margin-top: 8px; }

.comment-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--muted-2-color);
  font-size: 12.5px;
  cursor: pointer;
  transition: color .2s;
}

.comment-act:hover { color: var(--theme-color); }
.comment-act.is-liked { color: var(--theme-color); }
.comment-act.is-danger:hover { color: #c0392b; }
.comment-empty { padding: 26px 0; text-align: center; font-size: 13.5px; color: var(--muted-2-color); }
.comments-more { display: flex; justify-content: center; margin-top: 16px; }

.btn-more {
  height: 34px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--main-bg);
  color: var(--main-color);
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn-more:hover { color: #fff; background: var(--theme-color); border-color: var(--theme-color); }
.btn-more[hidden] { display: none; }

/* ---------- 17. 表单 / 按钮（沿用本站 lq-* 类名，套 Zibll 圆角观感） ---------- */
.lq-form { display: flex; flex-direction: column; gap: 14px; }
.lq-form label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--main-color); }

.lq-form input,
.lq-form select,
.lq-form textarea {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--main-bg);
  font: inherit;
  font-size: 14px;
  color: var(--key-color);
  outline: 0;
  transition: border-color .25s, box-shadow .25s;
}

.lq-form textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.8; resize: vertical; }

.lq-form input:focus,
.lq-form select:focus,
.lq-form textarea:focus { border-color: var(--theme-color); box-shadow: 0 0 0 3px var(--focus-shadow); }

.lq-btn-primary {
  height: 38px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--theme-color);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 18px var(--focus-shadow);
  transition: filter .25s, transform .25s;
}

.lq-btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.lq-btn-primary[disabled] { opacity: .6; cursor: default; transform: none; }

.lq-form-msg { margin: 0; min-height: 0; font-size: 13px; color: var(--muted-2-color); }
.lq-form-msg:empty { display: none; }
.lq-form-msg.is-ok { color: var(--theme-color); }
.lq-form-msg.is-error { color: #c0392b; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--muted-color);
  text-decoration: none;
}

.back-link:hover { color: var(--theme-color); }

/* ---------- 18. 兼容层：旧类名 → Zibll 观感（保证未重构区域观感统一） ---------- */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--key-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title h2::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--theme-color);
}

.result-count { font-size: 13px; color: var(--muted-2-color); }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--muted-bg);
  color: var(--muted-2-color);
}

.search-field input {
  width: 200px;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  color: var(--key-color);
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.filter-chips button,
.filter-chips a {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--main-bg);
  color: var(--muted-color);
  font-size: 12.5px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}

.filter-chips button:hover,
.filter-chips a:hover { color: var(--theme-color); border-color: rgba(45, 106, 79, .35); }

.filter-chips button.is-active,
.filter-chips a.is-active { color: #fff; background: var(--theme-color); border-color: var(--theme-color); }

.posts-grid { display: flex; flex-direction: column; gap: 14px; }

.empty-state {
  padding: 46px 20px;
  text-align: center;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  color: var(--muted-2-color);
}

.empty-state[hidden] { display: none; }

.side-card {
  padding: 16px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.side-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--key-color);
}

.side-card h3::before {
  content: '';
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background: var(--theme-color);
}

.social-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* 弹窗（lq-modal）加一点 Zibll 圆角/阴影 */
.lq-modal-card { border-radius: 16px; box-shadow: var(--shadow-lg); }
.lq-modal-close { border-radius: 50%; }
.lq-tab { border-radius: 999px; }

/* ---------- 19. 用户中心 / 发布页 ---------- */
.user-page,
.publish-page,
.about-section { display: flex; flex-direction: column; gap: 18px; }

.user-hero,
.publish-head,
.about-card,
.publish-form {
  padding: 22px 24px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.user-hero { display: flex; align-items: center; gap: 18px; }

.user-avatar,
.avatar-large {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--theme-color);
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-head h1 { margin-bottom: 6px; font-size: 20px; font-weight: 700; color: var(--key-color); }
.user-meta { margin-bottom: 4px; font-size: 13px; color: var(--muted-2-color); }
.user-bio { font-size: 13.5px; line-height: 1.75; color: var(--muted-color); }

.user-grid {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.user-side {
  padding: 12px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.user-nav { display: flex; flex-direction: column; gap: 4px; }

.user-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--main-color);
  font-size: 14px;
  text-decoration: none;
  transition: color .25s, background .25s;
}

.user-nav a:hover { color: var(--theme-color); background: rgba(45, 106, 79, .07); }
.user-nav a.is-active { color: #fff; background: var(--theme-color); box-shadow: 0 8px 18px var(--focus-shadow); }

.user-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.user-panel { padding: 22px 24px; background: var(--main-bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.user-panel[hidden] { display: none; }

.user-panel-title {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  color: var(--key-color);
}

.user-list { display: flex; flex-direction: column; gap: 10px; }
.user-empty { padding: 24px 0; text-align: center; font-size: 13.5px; color: var(--muted-2-color); }

.publish-head h1 { margin-bottom: 8px; font-size: 20px; font-weight: 700; color: var(--key-color); }
.publish-tip { font-size: 13px; line-height: 1.8; color: var(--muted-color); }
.publish-form[hidden] { display: none; }
.publish-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.publish-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.publish-chips[hidden] { display: none; }
.publish-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }

.publish-guest {
  padding: 30px 24px;
  text-align: center;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 14px;
  color: var(--muted-color);
}

.publish-guest[hidden] { display: none; }

/* ---------- 20. 关于页 / 订阅区块 ---------- */
.about-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--key-color);
}

.about-card h2::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--theme-color);
}

.about-desc { font-size: 15px; line-height: 2; color: var(--main-color); }
.about-bio { margin-top: 14px; font-size: 13.5px; line-height: 1.9; color: var(--muted-color); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.about-stats > * {
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  background: var(--muted-bg);
  text-align: center;
}

.avatar-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.newsletter-section {
  margin: 22px 0;
  padding: 26px 24px;
  text-align: center;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.newsletter-section h3 { margin-bottom: 8px; font-size: 18px; font-weight: 700; color: var(--key-color); }
.newsletter-section p { font-size: 13.5px; line-height: 1.8; color: var(--muted-color); }

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.subscribe-form input {
  min-width: 240px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--muted-bg);
  font-size: 14px;
  color: var(--key-color);
  outline: 0;
  transition: border-color .25s, box-shadow .25s, background .25s;
}

.subscribe-form input:focus {
  border-color: var(--theme-color);
  background: var(--main-bg);
  box-shadow: 0 0 0 3px var(--focus-shadow);
}

.subscribe-form button {
  height: 40px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--theme-color);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 18px var(--focus-shadow);
}

.subscribe-form button:hover { filter: brightness(1.07); }
.subscribe-status { margin-top: 12px; font-size: 13px; color: var(--muted-2-color); }
.subscribe-status:empty { display: none; }

/* ---------- 21. 响应式 ---------- */
@media (max-width: 992px) {
  /* 第 18 期起 .zj-layout 默认就是单栏、.zj-side 默认就是底部横排网格（见文件末尾），
     这里不再重复声明，只留首屏与小工具之外的专属调整 */
  .zj-icon-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zj-ads { height: 280px; }
  body { --zj-width: 100%; }
}

@media (max-width: 768px) {
  body { --header-h: 56px; }

  .zj-navbar { gap: 10px; }

  /* 汉堡菜单：导航收纳为下拉面板 */
  .zj-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 18px;
    background: var(--main-bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }

  .zj-nav.is-open { display: flex; }
  .zj-nav > a { padding: 12px 14px; }
  .zj-nav-toggle { display: inline-flex; }

  .zj-brand-tag { display: none; }
  .zj-icon-cards { grid-template-columns: minmax(0, 1fr); }

  .zj-slider { margin-top: 14px; }
  .zj-ads { height: 246px; }

  .zj-item { flex-direction: column; gap: 12px; }
  .zj-item-thumb { flex: 0 0 auto; width: 100%; }
  .zj-search-inline { margin-left: 0; width: 100%; }
  .zj-search-inline input { flex: 1; width: auto; }

  .zj-single { padding: 20px 18px 24px; }
  .zj-single-title { font-size: 21px; }
  .zj-single-cover { height: 180px; }
  .zj-postnav { grid-template-columns: minmax(0, 1fr); }

  .comments-section { padding: 18px 16px 20px; }
  .comment-item.is-child { margin-left: 14px; padding-left: 12px; }

  .user-grid { grid-template-columns: minmax(0, 1fr); }
  .user-nav { flex-direction: row; overflow-x: auto; padding-bottom: 2px; }
  .user-nav a { white-space: nowrap; }
  .user-hero { flex-direction: column; align-items: flex-start; text-align: left; }

  .zj-fab { right: 14px; bottom: 18px; }
  .zj-fab-panel { width: min(236px, calc(100vw - 28px)); }
  .zj-footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  /* 缩略图高度已改由 .zj-item-thumb 的 aspect-ratio 决定（第 18 期），此处不再写死 */
  .zj-single-title { font-size: 19px; }
  .subscribe-form input { min-width: 0; width: 100%; }
  .zj-section-title { flex-wrap: wrap; }
  .zj-result-count { display: none; }
}

/* ---------- 22. 组件补充（顶栏图标按钮 / 标签云 / 辅助类） ---------- */
.zj-icon-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--main-bg);
  color: var(--main-color);
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}

.zj-icon-btn:hover { color: #fff; background: var(--theme-color); border-color: var(--theme-color); }

/* 侧栏标签云 */
.zj-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.zj-tag-cloud a {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--main-bg);
  color: var(--muted-color);
  font-size: 12.5px;
  text-decoration: none;
  transition: color .25s, background .25s, border-color .25s;
}

.zj-tag-cloud a:hover { color: #fff; background: var(--theme-color); border-color: var(--theme-color); }

.zj-search-inline button {
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--muted-2-color);
  font-size: 14px;
  cursor: pointer;
}

.zj-search-inline button:hover { color: var(--theme-color); }

.zj-widget-note { font-size: 12.5px; color: var(--muted-2-color); }
.zj-loading { padding: 20px; text-align: center; font-size: 13px; color: var(--muted-2-color); }

.zj-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }

@media (max-width: 768px) {
  .zj-hide-sm { display: none !important; }
  .zj-grid-2 { grid-template-columns: minmax(0, 1fr); }
}






/* ---------- 22b. 快捷卡片 / 九宫格动作项补充（首屏搜索框已移除） ---------- */
.zj-icon-card > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zj-chips { margin-bottom: 12px; }
.zj-chips[hidden] { display: none; }
.zj-loadmore button[hidden] { display: none; }

.zj-hot-list a { color: inherit; text-decoration: none; }
.zj-hot-list a:hover { color: var(--theme-color); }

/* 九宫格里的动作项（回顶 / 回底）是 button，观感需与链接项一致 */
.zj-fab-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  background: var(--muted-bg);
  color: var(--key-color);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.zj-fab-grid button:hover { background: rgba(45, 106, 79, .12); color: var(--theme-color); }
.zj-fab-grid button i { font-size: 15px; color: var(--theme-color); }


/* ============================================================
   21. 用户体系（徽标 / 表单补充 / 登录注册弹窗）
   徽标字段来源：api/data/user.lib.php → lq_user_public()
   （level 1 站主 / 2 管理员 / 3 头衔成员 / 4 普通成员；lvColor 与 lq_lv_color() 一致）
   ============================================================ */

/* ---------- 徽标 ---------- */
.lq-badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; vertical-align: middle; }

.lq-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--muted-bg);
  color: var(--muted-2-color);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.lq-badge i { font-size: 10px; }

.lq-badge-owner { background: linear-gradient(135deg, #f7c948, #e0861a); color: #4a2f00; }
.lq-badge-admin { background: rgba(45, 106, 79, .14); color: var(--theme-color); }
.lq-badge-member { background: var(--muted-bg); color: var(--muted-2-color); }
.lq-badge-title { background: rgba(64, 145, 108, .14); color: #2d6a4f; }
.lq-badge-black { background: #2b2b2b; color: #ffd9d9; }
/* 封禁（status=disabled + ban_until）：与黑用户身份区分开的红色警示徽标 */
.lq-badge-banned { background: rgba(179, 38, 30, .12); color: #b3261e; border: 1px solid rgba(179, 38, 30, .28); }
.lq-badge-normal { background: var(--muted-bg); color: var(--muted-2-color); }

/* 经验等级：与 api/data/user.lib.php → lq_lv_color() 的分档一一对应 */
.lq-badge-lv.lv-gray   { background: #eef1ef; color: #6b7a72; }
.lq-badge-lv.lv-blue   { background: #e7f0fb; color: #2762a8; }
.lq-badge-lv.lv-purple { background: #f0e9fb; color: #6b3fb5; }
.lq-badge-lv.lv-gold   { background: #fdf3dc; color: #a4700b; }
.lq-badge-lv.lv-red    { background: #fdeaea; color: #b3261e; }

.lq-badge-vip.is-vip  { background: linear-gradient(135deg, #ffe9a8, #f3b53a); color: #573b00; }
.lq-badge-vip.is-svip { background: linear-gradient(135deg, #ffd6e7, #b0569f); color: #fff; }
.lq-badge-studio { background: rgba(45, 106, 79, .1); color: var(--theme-color); }
.lq-badge-uid { background: transparent; padding: 0; color: var(--muted-2-color); }

/* ---------- 表单 / 按钮补充 ---------- */
.lq-form .lq-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0; }

.lq-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted-color);
}

.lq-check input { width: auto; height: auto; }

.lq-btn-primary,
.lq-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  text-decoration: none;
}

.lq-btn-ghost {
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--main-bg);
  color: var(--main-color);
  font-size: 14px;
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}

.lq-btn-ghost:hover { color: #fff; background: var(--theme-color); border-color: var(--theme-color); }
.lq-btn-ghost[disabled] { opacity: .6; cursor: default; }

.lq-link {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--theme-color);
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
}

.lq-link:hover { text-decoration: underline; }

/* 提交中：按钮显示转圈 */
.lq-btn-primary.is-loading,
.lq-btn-ghost.is-loading { pointer-events: none; opacity: .8; }

.lq-btn-primary.is-loading::before,
.lq-btn-ghost.is-loading::before {
  content: '';
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, .6);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lq-spin .7s linear infinite;
}

.lq-btn-ghost.is-loading::before { border-color: var(--line); border-top-color: var(--theme-color); }

@keyframes lq-spin { to { transform: rotate(360deg); } }

/* ---------- 页头用户区补充（未登录按钮组 / 下拉头部） ---------- */
.auth-guest { display: flex; align-items: center; gap: 8px; }

.auth-reg-btn {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(45, 106, 79, .1);
  color: var(--theme-color);
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: color .25s, background .25s;
}

.auth-reg-btn:hover { color: #fff; background: var(--theme-color); }
.auth-user-trigger .auth-badges { margin-left: 2px; }
.auth-caret { font-size: 11px; color: var(--muted-2-color); }

.auth-menu { min-width: 216px; }

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

.auth-menu-head .avatar { width: 38px; height: 38px; font-size: 15px; }
.auth-menu-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.auth-menu-info b { font-size: 14px; color: var(--key-color); }

/* ---------- 登录 / 注册弹窗（顶部 Tab + 单列表单） ---------- */
.lq-auth-modal .lq-modal-card { width: min(430px, calc(100% - 32px)); padding: 26px 26px 22px; }

.lq-auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }

.lq-auth-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--theme-color), #74c69d);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 18px var(--focus-shadow);
}

.lq-auth-brand-text { display: flex; flex-direction: column; gap: 3px; }
.lq-auth-brand-text b { font-size: 17px; color: var(--key-color); }
.lq-auth-brand-text span { font-size: 12.5px; color: var(--muted-2-color); }

.lq-auth-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--muted-bg);
}

.lq-auth-tabs .lq-tab {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-color);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: color .25s, background .25s, box-shadow .25s;
}

.lq-auth-tabs .lq-tab.is-active {
  background: var(--main-bg);
  color: var(--theme-color);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.lq-auth-modal .lq-form-msg { margin: 0 0 12px; }
.lq-auth-form { gap: 12px; }
.lq-auth-form[hidden] { display: none; }
.lq-auth-submit { width: 100%; height: 42px; margin-top: 4px; font-size: 15px; }
.lq-auth-foot { margin: 2px 0 0; font-size: 13px; color: var(--muted-2-color); text-align: center; }
.lq-auth-foot a { color: var(--theme-color); }

/* ---------- 第三方登录入口（第 22 期 GitHub） ---------- */
.lq-auth-oauth { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 4px; }
.lq-auth-or { display: flex; align-items: center; gap: 10px; width: 100%; color: var(--muted-2-color); font-size: 12px; }
.lq-auth-or::before, .lq-auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.lq-auth-or em { font-style: normal; }
.lq-auth-gh {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 40px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--main-bg); color: var(--main-color);
  font-size: 14px; text-decoration: none; cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}
.lq-auth-gh i { font-size: 17px; }
.lq-auth-gh:hover { color: #fff; background: #24292f; border-color: #24292f; }
.lq-auth-oauth-tip { font-size: 12px; color: var(--muted-2-color); text-align: center; line-height: 1.5; }

/* ============ 第 22 期：用户中心「第三方账号」面板 ============ */
.uc-third { display: flex; flex-direction: column; gap: 14px; }
.uc-third-head { display: flex; align-items: center; gap: 12px; }
.uc-third-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px;
  background: #24292f; color: #fff; font-size: 22px;
}
.uc-third-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.uc-third-info b { font-size: 15px; }
.uc-third-info span { font-size: 13px; color: var(--muted-2-color); word-break: break-all; }
.uc-third-info span.is-ok { color: #1a7f43; }
.uc-third-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 注册时可选头像 */
.lq-avatar-pick { display: flex; align-items: center; gap: 12px; }

.lq-avatar-preview {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 50%;
  background: var(--muted-bg);
  color: var(--muted-2-color);
  font-size: 18px;
  cursor: pointer;
}

.lq-avatar-preview.is-picked { border-style: solid; border-color: var(--theme-color); }
.lq-avatar-tip { display: flex; flex-direction: column; gap: 3px; }
.lq-avatar-tip b { font-size: 13.5px; color: var(--main-color); }
.lq-avatar-tip span { font-size: 12px; color: var(--muted-2-color); }

/* ============================================================
   22. 用户中心（Zibll 会员中心：资料卡 / 经验条 / 各面板）
   结构见 assets/html/user.html，交互见 assets/js/user.js
   ============================================================ */
.lq-uc[hidden],
.user-guest[hidden] { display: none; }

/* 用户中心整体限宽居中（片段内包一层 .zj-container，见 assets/html/user.html） */
.lq-uc-wrap { margin: 20px auto 36px; }

.uc-hero { position: relative; display: block; overflow: hidden; padding: 0; }

.uc-cover { height: 96px; background: linear-gradient(120deg, var(--theme-color), #74c69d 55%, #b7e4c7); }

.uc-hero-main {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: -36px;
  padding: 0 24px 18px;
}

.uc-avatar { position: relative; border: 3px solid var(--main-bg); box-shadow: var(--shadow); }

.uc-avatar-slot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
}

.uc-head { flex: 1; min-width: 220px; padding-top: 34px; }
.uc-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.uc-stats { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px; }
.uc-stat { display: flex; flex-direction: column; gap: 2px; }
.uc-stat b { font-size: 16px; color: var(--key-color); }
.uc-stat span { font-size: 12px; color: var(--muted-2-color); }

.uc-hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-top: 34px; }
.uc-hero-actions .lq-btn-primary,
.uc-hero-actions .lq-btn-ghost { height: 34px; padding: 0 16px; font-size: 13.5px; }

.uc-exp { padding: 16px 24px 20px; border-top: 1px dashed var(--line); }
.uc-exp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted-color);
}

.uc-lv { display: inline-flex; align-items: center; gap: 6px; color: var(--theme-color); }
.uc-lv-tip { font-size: 12px; color: var(--muted-2-color); }
.uc-exp-text { color: var(--muted-2-color); }
.uc-exp-bar { height: 8px; border-radius: 999px; background: var(--muted-bg); overflow: hidden; }

.uc-exp-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--theme-color), #74c69d);
  transition: width .45s;
}

.uc-currency { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--main-color); }
.uc-coin { display: inline-flex; align-items: center; gap: 6px; }
.uc-coin i { color: var(--theme-color); }

.uc-nav-split { padding: 10px 12px 4px; font-size: 12px; color: var(--muted-2-color); letter-spacing: .5px; }

.user-msg {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(45, 106, 79, .08);
  color: var(--theme-color);
  font-size: 13px;
}

.user-msg.is-error { background: #fdeaea; color: #b3261e; }
.user-msg[hidden] { display: none; }

.user-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.uc-title-btn { height: 30px; padding: 0 14px; font-size: 12.5px; }
.uc-form { gap: 14px; max-width: 540px; }
.uc-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.uc-hint { margin: 0; font-size: 12.5px; color: var(--muted-2-color); }

.uc-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.uc-facts > div { display: flex; flex-direction: column; gap: 3px; }
.uc-facts dt { font-size: 12px; color: var(--muted-2-color); }
.uc-facts dd { margin: 0; font-size: 13.5px; color: var(--key-color); word-break: break-all; }

/* ---------- 头像设置 ---------- */
.uc-avatar-set { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px; }
.uc-avatar-preview { width: 96px; height: 96px; font-size: 32px; }
.uc-avatar-desc { flex: 1; min-width: 240px; }
.uc-avatar-desc p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.85; color: var(--muted-color); }
.uc-avatar-desc code { padding: 1px 6px; border-radius: 4px; background: var(--muted-bg); color: var(--theme-color); font-size: 12px; }

/* ---------- 成员搜索 ---------- */
.uc-search { display: flex; gap: 10px; margin-bottom: 12px; }

.uc-search input {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--main-bg);
  font: inherit;
  font-size: 14px;
  color: var(--key-color);
  outline: 0;
}

.uc-search input:focus { border-color: var(--theme-color); box-shadow: 0 0 0 3px var(--focus-shadow); }

/* ---------- 列表项（通知 / 评论 / 文章 / 待审评论） ---------- */
.uc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--main-bg);
  transition: border-color .25s, box-shadow .25s;
}

.uc-item:hover { border-color: var(--theme-color); box-shadow: var(--shadow); }
.uc-item.is-unread { border-color: var(--theme-color); background: rgba(45, 106, 79, .045); }
.uc-item-main { flex: 1; min-width: 0; }
.uc-item-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--key-color); }
.uc-item-title a { color: var(--key-color); }
.uc-item-title a:hover { color: var(--theme-color); }
.uc-item-sub { margin-top: 5px; font-size: 12.5px; color: var(--muted-2-color); }
.uc-item-text { margin-top: 6px; font-size: 13.5px; line-height: 1.8; color: var(--main-color); word-break: break-word; }
.uc-item-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.uc-staff-only { font-size: 12px; color: var(--muted-2-color); }

/* ---------- 成员管理行 ---------- */
.uc-member {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--main-bg);
}

.uc-member .avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--theme-color);
  color: #fff;
  font-weight: 600;
}

.uc-member-info { flex: 1; min-width: 180px; }
.uc-member-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--key-color); }
.uc-member-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.uc-member-acts select,
.uc-member-acts input {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--main-bg);
  font: inherit;
  font-size: 12.5px;
  color: var(--key-color);
  outline: 0;
}

.uc-member-acts input { width: 120px; }
.uc-member-acts select:focus,
.uc-member-acts input:focus { border-color: var(--theme-color); }

.uc-mini {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--main-bg);
  color: var(--main-color);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}

.uc-mini:hover { color: #fff; background: var(--theme-color); border-color: var(--theme-color); }
.uc-mini.is-danger:hover { background: #b3261e; border-color: #b3261e; }
.uc-mini[disabled] { opacity: .5; cursor: not-allowed; }

/* 未读角标 */
.uc-dot {
  display: inline-block;
  min-width: 17px;
  height: 17px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 999px;
  background: #e5533d;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 17px;
  text-align: center;
}

.uc-dot[hidden] { display: none; }

/* 未登录占位 */
.uc-guest-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .user-grid { grid-template-columns: minmax(0, 1fr); }
  .uc-hero-main { padding: 0 18px 16px; }
  .uc-exp { padding: 14px 18px 18px; }
  .uc-head,
  .uc-hero-actions { padding-top: 30px; }
  .uc-hero-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .uc-hero-main { gap: 14px; }
  .uc-avatar-set { gap: 14px; }
  .uc-stats { gap: 14px; }
  .uc-exp-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}


/* ============================================================
   23. 第 6 期补充
   · 排序方向按钮（维度 × 方向）
   · 详情页点赞按钮
   · 用户中心面板小标题
   ============================================================ */

/* ---------- 排序方向按钮（更新 / 浏览 / 点赞 / 评论 × 倒序 / 正序） ---------- */
.zj-sort-order {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--muted-bg);
  color: var(--muted-color);
  font-size: 13px;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}

.zj-sort-order:hover {
  color: var(--theme-color);
  border-color: rgba(45, 106, 79, .35);
  background: rgba(45, 106, 79, .07);
}

.zj-sort-order i { font-size: 12px; }
.zj-sort-order[data-order="desc"] i { color: var(--theme-color); }
.zj-sort-order span { white-space: nowrap; }

/* ---------- 详情页点赞按钮（放在文章信息行里） ---------- */
.zj-single-meta .zj-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--muted-bg);
  color: var(--muted-color);
  font: inherit;
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}

.zj-single-meta .zj-like:hover {
  color: #e0455a;
  border-color: rgba(224, 69, 90, .35);
  background: rgba(224, 69, 90, .08);
}

.zj-single-meta .zj-like.is-on {
  color: #fff;
  border-color: #e0455a;
  background: #e0455a;
}

.zj-single-meta .zj-like.is-on i { animation: zj-like-pop .32s ease; }

.zj-single-meta .zj-like[disabled] { opacity: .6; cursor: progress; }

@keyframes zj-like-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ---------- 用户中心面板小标题（如「头像」） ---------- */
.uc-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--theme-color);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--key-color);
}

/* ---------- 第 7 期：身份级别 / 工作室 / 头衔 / 黑用户·封禁（成员管理面板） ---------- */
.uc-nick { width: 130px; }
.uc-nick-static { font-size: 14px; font-weight: 600; color: var(--key-color); }
.uc-title { width: 130px; }
.uc-role-static { font-size: 12.5px; color: var(--muted-2-color); }
.uc-ban-when { width: 210px !important; }
.uc-member-acts .uc-mini.is-danger { color: #b3261e; border-color: rgba(179, 38, 30, .35); }
.uc-member-acts .lq-badge-black,
.uc-member-acts .lq-badge-banned { white-space: nowrap; }

/* ---------- 小屏：成员管理控件铺满一行，避免挤成一团 ---------- */
@media (max-width: 720px) {
  .uc-member-acts { width: 100%; }
  .uc-member-acts select,
  .uc-member-acts input,
  .uc-nick,
  .uc-title,
  .uc-ban-when { width: 100% !important; }
}

/* ---------- 小屏：广告位箭头收小一点 ---------- */
@media (max-width: 520px) {
  .zj-ads-arrow { width: 30px; height: 30px; font-size: 12px; }
  .zj-ads-arrow.is-prev { left: 8px; }
  .zj-ads-arrow.is-next { right: 8px; }
  .zj-sort-order { padding: 0 9px; }
}


/* ============================================================
   24. 第 8 期：投稿编辑器（对照 Zibll 投稿页）与文章详情页增强
   · 发布页：封面图标区 / 大标题 / 工具条编辑器 / 文章参数侧栏 / 预览弹窗
   · 详情页：面包屑 / 作者·评论信息行 / 分享 / 正文富文本 / 目录 / 相关文章
   ============================================================ */

/* ---------- 24.1 发布页：两栏（编辑器 + 文章参数） ---------- */
.zj-publish-wrap { margin: 20px auto 36px; }

.zj-publish-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 18px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.zj-publish-head h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--key-color);
}

.zj-publish-head h1 i { color: var(--theme-color); font-size: 17px; }
.zj-publish-head .publish-tip { font-size: 12.5px; line-height: 1.95; color: var(--muted-color); }

.zj-publish-head .publish-tip code {
  padding: 1px 6px;
  margin: 0 1px;
  border-radius: 5px;
  background: var(--muted-bg);
  color: var(--key-color);
  font-size: 12px;
}

.zj-publish-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.zj-publish-form[hidden] { display: none; }

.zj-publish-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px 20px;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.zj-publish-side {
  position: sticky;
  top: calc(var(--header-h) + 14px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zj-publish-btns { display: flex; gap: 10px; }
.zj-publish-btns .zj-but { flex: 1; }
.zj-publish-doit .lq-form-msg { margin-top: 10px; }
.zj-publish-doit .publish-link { margin-left: 6px; color: var(--theme-color); font-weight: 600; text-decoration: none; }
.zj-publish-doit .publish-link:hover { text-decoration: underline; }

/* ---------- 24.2 封面（图标）区：Zibll featured-edit 的观感 ---------- */
.zj-featured {
  position: relative;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(45, 106, 79, .06), rgba(45, 106, 79, .02));
}

.zj-featured-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: var(--main-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--theme-color);
  font-size: 28px;
  transition: box-shadow .25s, transform .25s;
}

.zj-featured-box.is-open { box-shadow: var(--shadow-lg); transform: translateY(-1px); }

.zj-featured-btns { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.zj-featured-note { font-size: 12.5px; color: var(--muted-2-color); }

.zj-icon-choice {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--main-bg);
  border: 1px solid var(--line);
}

.zj-icon-choice[hidden] { display: none; }

.zj-icon-choice button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--main-color);
  font-size: 15px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}

.zj-icon-choice button:hover { color: var(--theme-color); border-color: rgba(45, 106, 79, .35); }
.zj-icon-choice button.is-on { color: #fff; background: var(--theme-color); border-color: var(--theme-color); }

/* ---------- 24.3 大标题（Zibll newposts-title：下划线 + 自动增高） ---------- */
.zj-newposts-title { position: relative; padding-top: 2px; }

.zj-title-input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 4px 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--key-color);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  resize: none;
  overflow: hidden;
  font-family: inherit;
}

.zj-title-input::placeholder { color: var(--muted-2-color); font-weight: 500; }
.zj-line { display: block; height: 1px; background: var(--line); }

/* ---------- 24.4 编辑器：工具条 + 正文（所见即所得，编辑区直接套 .zj-article 排版） ---------- */
.zj-editor {
  position: relative;              /* 链接/图片浮层以它为定位参照 */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--main-bg);
  overflow: hidden;
}

.zj-editor-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--muted-bg);
}

.zj-editor-bar button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  min-width: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted-color);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}

.zj-editor-bar button:hover { color: var(--theme-color); background: rgba(45, 106, 79, .1); }
.zj-editor-bar button.is-on { color: #fff; background: var(--theme-color); border-color: var(--theme-color); }
.zj-editor-bar button:disabled { opacity: .38; cursor: default; }
.zj-editor-bar button:disabled:hover { color: var(--muted-color); background: transparent; }
.zj-editor-split { width: 1px; height: 18px; margin: 0 4px; background: var(--line); }
.zj-editor-gap { flex: 1; }

/* 段落格式下拉（正文 / 小标题 / 次级标题 / 三级标题 / 引文 / 代码块） */
.zj-editor-select {
  height: 30px;
  max-width: 108px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--main-color);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.zj-editor-select:focus { outline: 0; border-color: rgba(45, 106, 79, .45); }

.zj-editor-area {
  display: block;
  width: 100%;
  min-height: 600px;
  max-height: 120vh;
  overflow-y: auto;
  padding: 16px 18px 20px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--key-color);
  font-family: inherit;
  font-size: 15.5px;
  line-height: 1.95;
  cursor: text;
  word-break: break-word;
}

/* 空编辑区显示占位文案（编辑器是 div，没有 placeholder 属性，用 ::before 顶） */
.zj-editor-area.is-empty::before {
  content: attr(data-placeholder);
  color: var(--muted-2-color);
  pointer-events: none;
}

/* 编辑区里的段落首行不要被外边距顶开，看起来才像「一张纸」 */
.zj-editor-area > :first-child { margin-top: 0; }
.zj-editor-area > :last-child { margin-bottom: 0; }

/* ---------- 24.5 链接 / 图片浮层（浮在工具条下方，点「插入」才落到正文里） ---------- */
.zj-editor-pop {
  position: absolute;
  top: 46px;
  left: 10px;
  z-index: 3;
  width: min(320px, calc(100% - 24px));
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.zj-editor-pop[hidden] { display: none; }

.zj-editor-pop-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--key-color);
}

.zj-editor-pop-field { display: block; margin-bottom: 10px; }
.zj-editor-pop-field > span { display: block; margin-bottom: 5px; font-size: 12.5px; color: var(--muted-color); }

.zj-editor-pop-field input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--muted-bg);
  color: var(--key-color);
  font-family: inherit;
  font-size: 13px;
}

.zj-editor-pop-field input:focus { outline: 0; border-color: rgba(45, 106, 79, .5); background: #fff; }

.zj-editor-pop-msg { min-height: 16px; margin: 0 0 8px; font-size: 12.5px; color: #c0392b; }
.zj-editor-pop-msg:empty { margin-bottom: 2px; }
.zj-editor-pop-btns { display: flex; justify-content: flex-end; gap: 8px; }

/* 全屏编辑（工具条最右侧的按钮） */
.zj-editor.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 995;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.zj-editor.is-fullscreen .zj-editor-area { flex: 1; min-height: 0; font-size: 16px; }
body.is-preview-open { overflow: hidden; }

.zj-editor-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted-2-color);
}

.zj-editor-foot-tip { margin-left: auto; }

/* 工具条下方的一句话反馈（字数 / 阅读时长旁边）：空着时不占位 */
.zj-editor-note { color: var(--theme-color); }
.zj-editor-note:empty { display: none; }

/* ---------- 24.5 侧栏「文章参数」字段 ---------- */
.zj-field { display: block; margin-bottom: 14px; }

.zj-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--key-color);
}

.zj-field-label i { color: var(--theme-color); font-size: 12.5px; }

.zj-field input[type="text"],
.zj-field select,
.zj-select,
.zj-textarea-sm {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--main-bg);
  color: var(--key-color);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}

.zj-textarea-sm { resize: vertical; min-height: 72px; }

.zj-field input[type="text"]:focus,
.zj-field select:focus,
.zj-select:focus,
.zj-textarea-sm:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px var(--focus-shadow);
}

.zj-field-note { margin-top: 4px; font-size: 12px; line-height: 1.7; color: var(--muted-2-color); }
.zj-publish-side .publish-chips { margin-bottom: 12px; }
.zj-publish-side .publish-chips .chip.is-on { color: #fff; background: var(--theme-color); border-color: var(--theme-color); }

/* ---------- 24.6 预览弹窗（与详情页同一套正文样式） ---------- */
.zj-preview-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 40, 29, .48);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.zj-preview-mask[hidden] { display: none; }

.zj-preview-box {
  width: 100%;
  max-width: 860px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: var(--main-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.zj-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.zj-preview-title { font-size: 14.5px; font-weight: 700; color: var(--key-color); }
.zj-preview-body { padding: 20px 22px 26px; overflow-y: auto; }

/* ---------- 24.7 详情页：面包屑 / 信息行 / 分享 / 侧栏 ---------- */
.zj-single-wrap { padding-top: 18px; }

.zj-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--muted-2-color);
  overflow: hidden;
}

.zj-crumb a { color: var(--muted-color); text-decoration: none; }
.zj-crumb a:hover { color: var(--theme-color); }
.zj-crumb .is-current {
  max-width: 46ch;
  color: var(--key-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zj-crumb-sep { font-size: 11px; color: var(--muted-2-color); }

.zj-single-layout > .zj-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.zj-single-side { position: sticky; top: calc(var(--header-h) + 14px); }

/* 详情页作者卡（第 8 期增强）：头像 + 昵称 + 徽标（身份级别 / 头衔 / 等级 / VIP·SVIP / 工作室） */
.zj-author-card { display: flex; align-items: center; gap: 10px; min-width: 0; }
.zj-author-card[hidden] { display: none; }

.zj-author-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  font-size: 18px;
  box-shadow: 0 0 0 2px rgba(45, 106, 79, .12);
}

.zj-author-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.zj-author-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zj-author-name { font-size: 15px; font-weight: 600; color: var(--key-color); }

@media (max-width: 640px) {
  .zj-author-card { align-items: flex-start; }
  .zj-author-avatar { width: 38px; height: 38px; font-size: 15px; }
  .zj-author-name { font-size: 14px; }
}

.zj-single-meta .zj-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--muted-bg);
  color: var(--muted-color);
  font: inherit;
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}

.zj-single-meta .zj-share:hover { color: var(--theme-color); border-color: rgba(45, 106, 79, .35); }
.zj-single-meta .zj-share.is-done { color: #fff; background: var(--theme-color); border-color: var(--theme-color); }

/* 文章目录 */
.zj-toc { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }

.zj-toc li { margin-bottom: 2px; }

.zj-toc a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--main-color);
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s;
}

.zj-toc a:hover { color: var(--theme-color); background: rgba(45, 106, 79, .06); }
.zj-toc a.is-active { color: var(--theme-color); border-left-color: var(--theme-color); background: rgba(45, 106, 79, .08); font-weight: 600; }
.zj-toc a.is-sub { padding-left: 20px; font-size: 12.5px; }
.zj-toc a.is-sub2 { padding-left: 30px; font-size: 12.5px; color: var(--muted-color); }

/* 相关文章 */
.zj-related { display: flex; flex-direction: column; gap: 10px; }

.zj-related-item {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--main-bg);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.zj-related-item:hover { border-color: rgba(45, 106, 79, .35); box-shadow: var(--shadow); transform: translateY(-1px); }

.zj-related-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  color: var(--key-color);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
}

.zj-related-meta { display: block; font-size: 12px; color: var(--muted-2-color); }

/* ---------- 24.8 正文富文本排版（详情页与发布页预览共用） ---------- */
.zj-article h3,
.zj-article h4,
.zj-article h5 {
  position: relative;
  margin: 26px 0 14px;
  padding-left: 12px;
  color: var(--key-color);
  font-weight: 700;
  line-height: 1.6;
}

.zj-article h3 { font-size: 19px; }
.zj-article h4 { font-size: 17px; }
.zj-article h5 { font-size: 15.5px; }

.zj-article h3::before,
.zj-article h4::before,
.zj-article h5::before {
  content: '';
  position: absolute;
  left: 0;
  top: .28em;
  bottom: .28em;
  width: 4px;
  border-radius: 2px;
  background: var(--theme-color);
}

.zj-article > h3:first-child,
.zj-article > h4:first-child,
.zj-article > h5:first-child { margin-top: 4px; }

.zj-article ul,
.zj-article ol { margin: 0 0 18px; padding-left: 24px; }

.zj-article li { margin-bottom: 8px; font-size: 15.5px; line-height: 1.95; color: #33473c; }
.zj-article ul li::marker { color: var(--theme-color); }
.zj-article ol li::marker { color: var(--theme-color); font-weight: 600; }

.zj-article pre {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f7faf8;
  overflow-x: auto;
}

.zj-article pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: #26382e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 13.5px;
  line-height: 1.8;
  white-space: pre;
}

.zj-article code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--muted-bg);
  color: #1f4d38;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: .92em;
}

.zj-article a { color: var(--theme-color); text-decoration: none; border-bottom: 1px solid rgba(45, 106, 79, .3); }
.zj-article a:hover { border-bottom-color: var(--theme-color); }
.zj-article strong { color: var(--key-color); font-weight: 700; }
.zj-article em { font-style: italic; }
.zj-article hr { margin: 26px 0; border: 0; border-top: 1px dashed var(--line); }
.zj-article .zj-quote { font-style: normal; }

/* ---------- 24.9 用户中心「我的文章」上架按钮 ---------- */
.uc-mini.is-ok { color: var(--theme-color); border-color: rgba(45, 106, 79, .35); }
.uc-mini.is-ok:hover { color: #fff; background: var(--theme-color); border-color: var(--theme-color); }

/* ---------- 24.11 文章图片：封面图 · 正文图 · 上传（postsAssets/） ---------- */
/* 列表卡片 / 详情页封面：有上传封面就铺满缩略格（object-fit 裁切，不变形） */
.zj-thumb-cover { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 发布页封面框：默认显示图标，上传封面后显示图片（框仍是点击可换图的入口） */
.zj-featured-box { position: relative; overflow: hidden; cursor: pointer; }
.zj-featured-box.has-cover > i { visibility: hidden; }
.zj-featured-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.zj-featured-msg { min-height: 16px; margin: 10px 0 0; font-size: 12.5px; color: var(--muted-2-color); }
.zj-featured-msg.is-ok { color: var(--theme-color); }
.zj-featured-msg.is-error { color: #c0392b; }
.zj-featured-msg.is-pending { color: var(--muted-color); }

/* 图片浮层里的「从本机上传」一行 */
.zj-editor-pop-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zj-editor-pop-pick em { font-style: normal; font-size: 12px; color: var(--muted-2-color); }

/* 正文里的图片：居中、限宽（详情页与发布页编辑区共用 .zj-article） */
.zj-article img { display: block; margin: 0 auto 18px; }
.zj-article figure { margin: 0 0 18px; }
.zj-article figure img { margin-bottom: 6px; }

/* 编辑器没起来（editor.js 没加载 / 缓存里是坏版本）时的编辑区：明显不可用，
   配合 publish.js 的「请按 Ctrl+F5 强制刷新」提示，别让人对着没反应的编辑区发呆 */
.zj-editor-area[contenteditable="false"] { opacity: .55; cursor: not-allowed; }

/* ---------- 24.10 响应式：发布页与详情页 ---------- */
@media (max-width: 1024px) {
  .zj-publish-form { grid-template-columns: minmax(0, 1fr); }
  .zj-publish-side { position: static; top: auto; }
  .zj-single-side { position: static; top: auto; }
}

@media (max-width: 720px) {
  .zj-publish-head { flex-direction: column; }
  .zj-publish-main { padding: 14px 14px 16px; }
  .zj-title-input { font-size: 18px; }
  .zj-editor-area { min-height: 260px; padding: 14px; }
  .zj-editor-select { max-width: 92px; }
  .zj-editor-pop { left: 8px; right: 8px; width: auto; }
  .zj-editor-foot { flex-wrap: wrap; gap: 8px 14px; }
  .zj-preview-mask { padding: 12px; }
  .zj-preview-body { padding: 16px 14px 20px; }
  .zj-article p,
  .zj-article li { font-size: 15px; }
  .zj-crumb .is-current { max-width: 100%; }
}

/* ============================================================
   25. 正文图片灯箱（点一下文章里的图片放大看）
   —— DOM 由 assets/js/ui.js 的 buildLightbox() 建出来（页面里没有这段 HTML）
   —— 结构：.zj-lightbox > [.zj-lightbox-stage > img] + 关闭 / 上一张 / 下一张 + 底部信息条
   ============================================================ */

/* 能点开的图给个放大镜光标（编辑区里的图是在排版，不弹灯箱 → 光标照旧） */
.zj-article img { cursor: zoom-in; }
.zj-editor-area img { cursor: default; }
#detail-thumb img.zj-thumb-cover { cursor: zoom-in; }

.zj-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;                                  /* 盖住顶栏(990) / 浮球(995) / 预览弹窗(1000) */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 20, 15, .88);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* 这里的 display 是 flex，hidden 属性会被顶掉 → 必须自己写一条 */
.zj-lightbox[hidden] { display: none; }

.zj-lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 72px 92px;                        /* 给关闭键 / 箭头 / 信息条让位置 */
  overflow: hidden;                               /* 放大后超出部分裁掉，平移靠 transform */
}

.zj-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
  transform-origin: center center;
  transition: transform .18s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}

.zj-lightbox-stage.is-zoomed .zj-lightbox-img { cursor: zoom-out; transition: none; }   /* 拖动时别拖泥带水 */

.zj-lightbox-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}

.zj-lightbox-btn:hover,
.zj-lightbox-btn:focus-visible { background: rgba(255, 255, 255, .26); color: #fff; }
.zj-lightbox-btn[hidden] { display: none; }       /* 同上：flex 会顶掉 hidden */

.zj-lightbox-close { top: 18px; right: 20px; }
.zj-lightbox-prev { left: 18px; top: 50%; margin-top: -21px; }
.zj-lightbox-next { right: 18px; top: 50%; margin-top: -21px; }

.zj-lightbox-bar {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  max-width: calc(100% - 32px);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 12.5px;
}

.zj-lightbox-count { font-variant-numeric: tabular-nums; opacity: .85; }
.zj-lightbox-count[hidden] { display: none; }

.zj-lightbox-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
}

.zj-lightbox-act:hover,
.zj-lightbox-act:focus-visible { background: rgba(255, 255, 255, .28); color: #fff; }
.zj-lightbox-hint { opacity: .72; }

body.is-lightbox-open { overflow: hidden; }       /* 灯箱开着时背景不跟着滚 */

@media (max-width: 720px) {
  .zj-lightbox-stage { padding: 54px 12px 100px; }
  .zj-lightbox-close { top: 12px; right: 12px; }
  .zj-lightbox-prev { left: 8px; }
  .zj-lightbox-next { right: 8px; }
  .zj-lightbox-bar { bottom: 12px; gap: 6px 10px; padding: 7px 12px; }
  .zj-lightbox-hint { display: none; }            /* 小屏放不下这行提示，隐藏 */
}

/* ============================================================
   26. 注册邮箱验证码 + 人机验证（Cloudflare Turnstile）
   —— 结构由 assets/js/auth.js 的 ensureModal() 拼出来（页面里没有这段 HTML）
   —— 一行两列：左边验证码输入框（占满），右边「获取验证码」按钮（高度对齐输入框 40px）
   ============================================================ */

.lq-code-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.lq-code-row .lq-field { flex: 1 1 auto; min-width: 0; }   /* 输入框吃掉剩余宽度 */

.lq-code-btn {
  flex: 0 0 auto;
  height: 40px;                              /* 与 .lq-form input 同高，底部对齐才齐平 */
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  white-space: nowrap;
}

.lq-code-btn[disabled] { opacity: .6; cursor: default; }      /* 冷却中：按钮变灰不可点 */
.lq-code-btn[disabled]:hover { color: var(--main-color); background: var(--main-bg); border-color: var(--line); }

/* 人机验证控件（Turnstile 自己往这里塞 iframe）+ 一行状态提示 */
.lq-turnstile { display: flex; flex-direction: column; gap: 6px; }
.lq-turnstile > div:empty { display: none; }               /* 控件还没渲染出来时不占位 */
.lq-turnstile-tip { margin: 0; font-size: 12px; color: var(--muted-2-color); }

@media (max-width: 420px) {
  .lq-code-row { flex-direction: column; align-items: stretch; }   /* 小屏：按钮落到下一行 */
  .lq-code-btn { width: 100%; }
}

/* ============================================================
   27. 正文登录闸门（第 16 期：未登录只能看列表，点进文章看到「登录后阅读全文」）
   —— 节点由 assets/js/render.js 的 renderDetailLocked() 拼出来（页面里没有这段 HTML）
   —— 正文只在登录态下发（api/data/content.lib.php 的 lq_content_unlocked），
      未登录时正文位置就放这块虚线卡；按钮沿用 .lq-btn-primary / .lq-btn-ghost
   ============================================================ */

.zj-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 6px 0 4px;
  padding: 40px 22px 36px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--muted-bg);
  text-align: center;
}

.zj-locked-icon {
  font-size: 30px;
  color: var(--theme-color);
  opacity: .85;
}

.zj-locked-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--key-color);
}

.zj-locked-tip {
  max-width: 32em;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted-color);
}

.zj-locked-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 2px;
}

@media (max-width: 720px) {
  .zj-locked { padding: 30px 16px 26px; }
  .zj-locked-title { font-size: 17px; }
  .zj-locked-tip { font-size: 13.5px; }
}

/* ============================================================
   第 17 期：列表 4 列卡片网格 / 卡内独立链接 / 多选标签条
   ------------------------------------------------------------
   放在文件最后，靠「同权重后写的胜出」覆盖上面第 7、21 节的旧规则
   （旧版卡片是横向 flex + 整卡 <a>；现在卡片是纵向观感，卡内三处独立链接）。
   ============================================================ */

/* 首页与列表页共用的文章网格：宽屏 4 列，逐级退到 3 / 2 / 1 列 */
.zj-posts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* 卡片：纵向排布（封面在上、文字在下），圆角裁掉封面的方角 */
.zj-item {
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.zj-item-thumb {
  flex: 0 0 auto;
  width: 100%;
  /* 封面高度跟着卡片宽度走（第 18 期：主内容吃满整行后卡片变宽，不再逐档写死 px）；
     2 列 / 1 列的大卡片上用 max-height 收一下，免得封面比正文区还高 */
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 210px;
  border-radius: 0;
  font-size: 2.1rem;
}

.zj-item-body { padding: 14px 16px 16px; }

/* 标题现在是 <a>（封面 + 标题两处链接都指向文章详情页） */
.zj-item-title {
  display: -webkit-box;
  text-decoration: none;
  color: var(--key-color);
  margin-bottom: 8px;
}

.zj-item-title:hover { color: var(--theme-color); }

/* 整卡可点：标题链接的伪元素铺满卡片（纯观感，不会产生 <a> 套 <a> 的非法嵌套；
   卡内的标签 / 作者链接用 z-index 提到它上面，各自跳自己的目标） */
.zj-item-title::after {
  content: "";
  position: absolute;
  inset: 0;
}

.zj-item-tags .zj-tag,
.zj-item-author {
  position: relative;
  z-index: 1;
}

.zj-item-tags { margin-bottom: 8px; }
.zj-tag { display: inline-block; cursor: pointer; }

/* 作者行：小头像 + 昵称，整行是个人主页链接 */
.zj-item-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2-color);
  text-decoration: none;
}

.zj-item-author:hover { color: var(--theme-color); }

.zj-item-author .zj-item-avatar {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  font-size: 11px;
}

.zj-item-nick {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 信息条：窄卡片里改成「作者一行 + 数据一行」，不再硬挤成一行 */
.zj-item-meta {
  justify-content: flex-start;
  gap: 6px 12px;
  font-size: 12px;
}

.zj-item-meta .zj-meta-left {
  width: 100%;
  justify-content: space-between;
  gap: 10px;
}

/* 标签筛选条：选中多个标签时多一个「清空标签」按钮与一句口径说明 */
.zj-chip.is-clear {
  color: var(--theme-color);
  border-color: rgba(45, 106, 79, .35);
  background: rgba(45, 106, 79, .07);
}

.zj-chip-hint {
  display: inline-flex;
  align-items: center;
  height: 28px;
  font-size: 12px;
  color: var(--muted-2-color);
}

/* 侧栏「最新注册用户」：整行是个人主页链接 */
a.zj-user-row { color: inherit; text-decoration: none; }
a.zj-user-row:hover .zj-user-name { color: var(--theme-color); }

/* 详情页作者卡的头像 / 昵称链接（无 href 时就是普通文本） */
.zj-author-link { display: inline-flex; text-decoration: none; }
a.zj-author-name { text-decoration: none; }
a.zj-author-name:hover { color: var(--theme-color); }
.zj-author-link:hover .zj-author-avatar { box-shadow: 0 0 0 2px rgba(45, 106, 79, .35); }
.zj-author-card .zj-author-avatar { transition: box-shadow .25s; }

/* 只给「真的带 href」的链接加手型，摘掉 href 的退化形态不带 */
.zj-author-link[href],
.zj-author-name[href],
a.zj-user-row[href] { cursor: pointer; }

@media (max-width: 1200px) {
  .zj-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .zj-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .zj-posts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ============================================================
   第 17 期：个人主页（profile.html）
   ------------------------------------------------------------
   页头/页脚沿用同款片段，正文区只有两块：资料卡 + 「TA 的文章」。
   风格对齐用户中心（.user-panel 卡片 + .lq-btn-primary / .lq-btn-ghost）。
   ============================================================ */

.lq-pf-wrap { margin: 20px auto 36px; }
.lq-pf { display: flex; flex-direction: column; gap: 18px; }

.pf-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.pf-avatar {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  font-size: 30px;
  border: 3px solid var(--main-bg);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

.pf-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.pf-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--key-color);
}

.pf-meta { font-size: 12.5px; color: var(--muted-2-color); }
.pf-meta[hidden] { display: none; }

.pf-bio { font-size: 13.5px; line-height: 1.8; color: var(--muted-color); }
.pf-bio.is-empty { color: var(--muted-2-color); }

.pf-stats { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 2px; }
.pf-stat { display: flex; flex-direction: column; gap: 2px; }
.pf-stat b { font-size: 16px; color: var(--key-color); }
.pf-stat span { font-size: 12px; color: var(--muted-2-color); }

.pf-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pf-acts[hidden] { display: none; }

.pf-acts .lq-btn-primary,
.pf-acts .lq-btn-ghost { height: 34px; padding: 0 16px; font-size: 13.5px; }

.zj-pf-title { margin-bottom: 16px; }

/* 「查无此人」/ 接口异常占位（与详情页的 .zj-detail-empty 同款观感） */
.lq-pf-miss {
  padding: 56px 20px 60px;
  text-align: center;
  background: var(--main-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lq-pf-miss[hidden] { display: none; }
.lq-pf-miss-icon { font-size: 44px; color: var(--muted-2-color); opacity: .85; }
.lq-pf-miss-title { margin: 14px 0 6px; font-size: 19px; color: var(--key-color); }
.lq-pf-miss-tip { font-size: 13.5px; line-height: 1.8; color: var(--muted-color); }
.lq-pf-miss-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.lq-pf-miss-acts .lq-btn-primary,
.lq-pf-miss-acts .lq-btn-ghost { height: 34px; padding: 0 16px; font-size: 13.5px; }

@media (max-width: 720px) {
  .pf-hero { gap: 14px; }
  .pf-avatar { width: 64px; height: 64px; font-size: 22px; }
  .pf-name { font-size: 18px; }
  .lq-pf-miss { padding: 40px 16px 44px; }
}

/* ============================================================
   第 18 期：单栏布局（右侧小工具下沉到页面最下面）+ 卡片比例放大
   ------------------------------------------------------------
   站主要求：右侧那几块（最新注册用户 / 热门文章 / 站点统计 / 标签云…）
   不再占右边的 300px，统一挪到主内容下面；文章卡片跟着变宽。
   做法只有两点，其余靠原有样式自动生效：
     1) .zj-layout 从「主列 + 侧栏」两栏网格改成单栏。侧栏 <aside> 在
        DOM 里本来就排在主列之后，于是自然落到页面最下面；小工具由
        「竖着堆」改成「横排网格」，宽屏一行摆 3~4 个。
     2) 侧栏让出的 300px + 容器由 1240px 加宽到 1320px：4 列卡片单张
        宽度约 222px → 310px（封面高度由上面第 17 节的 aspect-ratio
        跟随卡片宽度，不再逐档写死 px）。
   详情页（.zj-single-layout）一并单栏：它的侧栏原本 position:sticky 吸在
   右侧，下沉后取消吸顶，免得小工具停在页面中间。
   ============================================================ */

/* 1) 主内容占满整行 */
.zj-layout {
  grid-template-columns: minmax(0, 1fr);
}

/* 底部小工具带：横排网格；min(300px, 100%) 保证极窄屏也不会横向溢出 */
.zj-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

/* 详情页侧栏跟着下沉：取消右侧吸顶 */
.zj-single-side {
  position: static;
  top: auto;
}

/* 2) 首屏轮播：容器加宽后高度按原比例补上（小屏沿用第 21 节的 280 / 246px，
      所以这里限定宽屏才生效，避免把媒体查询里的高度盖掉） */
@media (min-width: 993px) {
  .zj-ads {
    height: 340px;
  }
}

/* 底部小工具带在小屏收一收留白（列数由上面的 auto-fit 自动决定） */
@media (max-width: 768px) {
  .zj-side {
    margin-top: 8px;
    padding-top: 20px;
  }
}

/* ============================================================================
   第 19 期：用户中心「关注 / 粉丝 / 收藏 / 点赞 / 隐私」+ 个人主页「关注 / 标签页」
   ----------------------------------------------------------------------------
   新增样式全部只挂第 19 期新增的类名，不改动任何既有选择器 —— 避免同权重后写
   规则盖掉上面的媒体查询（第 18 期的坑）
   ============================================================================ */

/* ---------- 用户中心 · 资料表单：性别 / 生日 两列并排 ---------- */
.uc-field-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.uc-field-row .uc-field-half { flex: 1 1 200px; min-width: 0; }

/* ---------- 用户中心 · 关注 / 粉丝列表 ---------- */
.uc-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

.uc-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--muted-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.uc-person .avatar { width: 46px; height: 46px; flex: 0 0 46px; }
.uc-person-main { flex: 1 1 auto; min-width: 0; }
.uc-person-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; color: var(--key-color); }
.uc-person-name a { color: inherit; }
.uc-person-name a:hover { color: var(--theme-color); }

.uc-person-sub {
  overflow: hidden;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted-2-color);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-person-acts { flex: 0 0 auto; }

/* ---------- 用户中心 · 隐私设置 ---------- */
.uc-privacy { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 16px; margin-bottom: 4px; }

.uc-privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--muted-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.uc-privacy-item:hover { border-color: rgba(45, 106, 79, .28); }
.uc-privacy-item input { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--theme-color); }
.uc-privacy-text { min-width: 0; }
.uc-privacy-text b { display: block; font-size: 13.5px; color: var(--key-color); }
.uc-privacy-text span { font-size: 12px; line-height: 1.6; color: var(--muted-2-color); }

/* ---------- 个人主页 · 资料字段（性别 / 生日 / 所在地） ---------- */
.pf-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 2px 0 0; }
.pf-facts[hidden] { display: none; }
.pf-facts > div { display: flex; align-items: baseline; gap: 6px; }
.pf-facts dt { font-size: 12.5px; color: var(--muted-2-color); }
.pf-facts dd { margin: 0; font-size: 13px; color: var(--key-color); word-break: break-all; }

/* ---------- 个人主页 · 文章 / 收藏 / 点赞 标签页 ---------- */
.pf-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.pf-tabs button {
  height: 32px;
  padding: 0 16px;
  background: var(--muted-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-color);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}

.pf-tabs button:hover { color: var(--theme-color); border-color: rgba(45, 106, 79, .3); }
.pf-tabs button.is-active { color: #fff; background: var(--theme-color); border-color: var(--theme-color); }
.pf-tabs button[hidden] { display: none; }

/* ---------- 个人主页 · 关注按钮 ---------- */
.pf-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 18px;
  background: var(--theme-color);
  border: 1px solid var(--theme-color);
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}

.pf-follow:hover { background: #245840; border-color: #245840; }
.pf-follow.is-on { color: var(--theme-color); background: #fff; }
.pf-follow[disabled] { opacity: .6; cursor: progress; }

/* ---------- 个人主页 · 动作反馈条 ---------- */
.pf-tip {
  margin: 0;
  padding: 10px 14px;
  background: rgba(45, 106, 79, .07);
  border: 1px solid rgba(45, 106, 79, .25);
  border-radius: var(--radius-sm);
  color: var(--theme-color);
  font-size: 13px;
}

.pf-tip[hidden] { display: none; }
.pf-tip.is-error { color: #b3261e; border-color: rgba(179, 38, 30, .28); background: rgba(179, 38, 30, .07); }

/* ---------- 详情页 · 收藏按钮（与点赞同款，配色用暖金，一眼区分） ---------- */
.zj-single-meta .zj-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  background: var(--muted-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-color);
  font: inherit;
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}

.zj-single-meta .zj-fav:hover { color: #d98b00; border-color: rgba(217, 139, 0, .35); background: rgba(217, 139, 0, .08); }
.zj-single-meta .zj-fav.is-on { color: #fff; border-color: #d98b00; background: #d98b00; }
.zj-single-meta .zj-fav.is-on i { animation: zj-like-pop .32s ease; }
.zj-single-meta .zj-fav[disabled] { opacity: .6; cursor: progress; }

/* ---------- 第 19 期 · 窄屏适配 ---------- */
@media (max-width: 640px) {
  .uc-people,
  .uc-privacy { grid-template-columns: 1fr; }
  .uc-person { padding: 10px 12px; }
}

/* ============================================================================
   第 20 期：右侧栏归位（首页 / 列表页 / 详情页）+ 关于页去掉小工具 + 热榜补浏览量
   ----------------------------------------------------------------------------
   第 18 期把 .zj-layout 改成单栏、小工具下沉成底部横排网格；这次按站主要求把
   小工具搬回右侧，并且**主列尺寸保持第 18 期那套不变** —— 侧栏是往右边「横向加」
   出去的（容器 max-width +340px = 320px 侧栏 + 20px 间距），卡片与正文都不缩水：
       主列宽度 = (1320 + 340) - 32padding - 320侧栏 - 20间距 = 1288px（与单栏时相同）
   做法上只新增类名（.zj-layout-side / .zj-container-side），既有选择器一律不动 ——
   仍然是第 18 期的教训：同权重后写规则会盖掉前面的媒体查询。
   窄屏（≤1200px）不够摊两栏，侧栏自动回到主内容下面（沿用第 18 期的横排网格）。
   ============================================================================ */

/* ---------- 1. 两栏回归：主列尺寸不变，侧栏加在右边 ---------- */
.zj-layout.zj-layout-side {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}

/* 容器横向加宽，把侧栏的位置「让」出来 */
.zj-container.zj-container-side {
  max-width: calc(var(--zj-width) + 340px);
}

/* 侧栏由「底部横排网格」还原成「右侧竖排小工具」 */
.zj-layout.zj-layout-side > .zj-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* 详情页侧栏重新吸顶（第 18 期为了下沉把它改成了 static） */
.zj-layout.zj-layout-side > .zj-single-side {
  position: sticky;
  top: calc(var(--header-h) + 14px);
}

/* 首屏轮播与加宽后的容器对齐（hero.html 只在首页用到，首页恒定是两栏） */
@media (min-width: 1201px) {
  .zj-slider { max-width: calc(var(--zj-width) + 340px); }
}

/* ---------- 2. 窄屏：侧栏回到主内容下面（沿用第 18 期的横排网格） ---------- */
@media (max-width: 1200px) {
  .zj-layout.zj-layout-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .zj-layout.zj-layout-side > .zj-side {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 18px;
    margin-top: 12px;
    padding-top: 24px;
    border-top: 1px dashed var(--line);
  }

  .zj-layout.zj-layout-side > .zj-single-side {
    position: static;
    top: auto;
  }

  /* 容器收回原宽度：此时不再需要给侧栏留位置 */
  .zj-container.zj-container-side {
    max-width: var(--zj-width);
  }
}

/* ---------- 3. 热榜条目补上浏览量（第 20 期渲染的 .zj-hot-views） ---------- */
/* 标题独占剩余宽度，浏览量靠右不换行；站长手写的纯文案没有这条 */
.zj-hot-list a { flex: 1 1 auto; min-width: 0; }

.zj-hot-list .zj-hot-views {
  flex: 0 0 auto;
  margin-left: 8px;
  color: var(--muted-2-color);
  font-size: 12px;
  white-space: nowrap;
}

.zj-hot-list .zj-hot-views i { margin-right: 3px; font-size: 11.5px; }

/* 一篇都没有时的说明行：不占名次（去掉序号方块），也没什么可点的 */
.zj-hot-list li.zj-hot-empty { color: var(--muted-2-color); font-size: 12.5px; }
.zj-hot-list li.zj-hot-empty::before { display: none; }

/* ---------- 4. 详情页侧栏收放：两块小工具都空着时整列收起 ----------
   「文章目录」要正文里真有 h3~h5 才出、「相关文章」要站内还有别的文章才出；
   两者都空（短文章 / 游客未解锁正文）时右侧不该白留 320px。此时 render.js 会给
   布局与容器挂上 .zj-no-side：侧栏整列 display:none，容器宽度收回原样 ——
   主列依然是 1288px（1320 - 32padding），只是跟着重新居中。 */
.zj-layout.zj-layout-side.zj-no-side { grid-template-columns: minmax(0, 1fr); }
.zj-layout.zj-layout-side.zj-no-side > .zj-side { display: none; }
.zj-container.zj-container-side.zj-no-side { max-width: var(--zj-width); }

/* ---------- 5. 用户中心：站务入口对普通成员彻底收起 ----------
   `.user-nav a { display: flex }` 的权重高于 UA 的 `[hidden]{display:none}`，
   所以带 data-staff 的「评论审核 / 成员管理 / 站务管理」以前对普通成员是露出来的
   （点进去会被 activate() 挡回资料面板，但白摆一个用不了的入口很别扭）。
   这里用更高权重的选择器把它们按 hidden 真正藏掉，页面加载瞬间（JS 还没跑）就不闪出来。 */
.user-nav [data-staff][hidden] { display: none; }

/* ============================================================================
   第 21 期：用户中心「每日签到」+「更换绑定邮箱」
   ----------------------------------------------------------------------------
   签到三处：资料卡按钮 .uc-checkin-btn（未签主题色高亮 / 签完落成灰底 is-done）、
             左侧导航角标 .uc-dot-streak（连续天数，用主题色区别于未读红点）、
             面板卡片 .uc-checkin（连续天数 / 最近 7 天格子 / 今日奖励说明）。
   换绑：验证码行直接复用注册那套 .lq-code-row / .lq-code-btn / .lq-turnstile，
         只补「当前绑定」与提示行的错误态（.uc-hint.is-error）。
   老规矩：只新增选择器，既有规则一律不动（避免同权重后写盖掉前面的媒体查询）。
   ============================================================================ */

/* ---------- 1. 资料卡上的「每日签到」按钮 ---------- */
/* 今天签过了（或后端说签到不可用）：按钮落成灰底，别再把「已签」渲染成最亮的行动点 */
.uc-checkin-btn.is-done,
.uc-checkin-btn[disabled] {
  background: var(--muted-bg);
  color: var(--muted-color);
  box-shadow: none;
  filter: none;
  transform: none;
}

.uc-checkin-btn.is-done:hover,
.uc-checkin-btn[disabled]:hover { filter: none; transform: none; }

/* ---------- 2. 导航「每日签到」后面的连续天数角标 ---------- */
.uc-dot.uc-dot-streak { background: var(--theme-color); }
.uc-dot.uc-dot-streak::after { content: ' 天'; font-size: 10px; }

/* ---------- 3. 签到面板卡片 ---------- */
.uc-checkin {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--main-bg);
}

.uc-checkin-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
}

/* 大号连续天数：数字 + 「天」 + 说明文字 */
.uc-checkin-streak { display: flex; align-items: baseline; gap: 5px; color: var(--theme-color); }
.uc-checkin-streak b { font-size: 34px; line-height: 1; }
.uc-checkin-streak span { font-size: 14px; }
.uc-checkin-streak em {
  margin-left: 8px;
  font-size: 12.5px;
  font-style: normal;
  color: var(--muted-2-color);
}

.uc-checkin-sub { margin: 0; font-size: 13px; color: var(--muted-color); }
.uc-checkin-sub b { color: var(--key-color); }

/* 最近 7 天格子（user.js 按后端 days 渲染） */
.uc-checkin-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.uc-checkin-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--muted-bg);
  font-size: 12px;
  color: var(--muted-2-color);
}

.uc-checkin-day b { font-size: 12px; font-weight: 500; }     /* 日期（1~31） */
.uc-checkin-day em { font-size: 11px; font-style: normal; }  /* 星期几（日 / 一 / …） */

/* 已签：实底主题色 */
.uc-checkin-day.is-signed {
  border-style: solid;
  border-color: transparent;
  background: var(--theme-color);
  color: #fff;
}
.uc-checkin-day.is-signed b,
.uc-checkin-day.is-signed em { color: #fff; }

/* 今天：描个圈（签没签都看得出是哪一格） */
.uc-checkin-day.is-today { box-shadow: 0 0 0 2px var(--focus-shadow); }

/* 今日奖励说明 */
.uc-checkin-reward { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--muted-color); }
.uc-checkin-reward b { color: var(--theme-color); }

/* ---------- 4. 换绑邮箱面板 ---------- */
#panel-email .lq-code-row { max-width: 540px; }
#uc-email-now { color: var(--key-color); word-break: break-all; }

/* 提示行的失败态（成功态沿用 .uc-hint 的灰；与 user-msg 的报错同色） */
.uc-hint.is-error { color: #b3261e; }

/* 人机验证容器先不留高：控件加载出来再自然撑开 */
#uc-email-turnstile { min-height: 0; }

/* ---------- 5. 窄屏：7 天格子切两行 ---------- */
@media (max-width: 640px) {
  .uc-checkin { padding: 16px 14px 18px; }
  .uc-checkin-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .uc-checkin-streak b { font-size: 28px; }
}

