@charset "UTF-8";
/* =====================================================================
 * Discuz! 7.2 前台主题 —— 现代表现层组件（app.css）
 *
 * 加载顺序（header.htm）：旧主题 CSS -> tailwind.css -> fontawesome.css -> app.css
 *                        -> remaster.css（新版首页表现层）
 * 作用域策略：
 *   - 组件层（body .dz-*）全局生效：header.htm / footer.htm 被所有前台页面共用，
 *     所以页头、页脚、按钮、下拉、Toast 在任何页面都有统一的现代外观。
 *   - 元素级 reset（.dz-modern a / h1..h6 / input ...）仅在已重构页面生效
 *     （首页 / 板块页 / 帖子页 / 登录 / 注册 / 个人资料），用于压过旧主题的全局规则。
 *   - 颜色全部走 CSS 变量，全站固定浅色；深色主题与明暗切换按钮已移除。
 * 布局：Flex / CSS Grid，无 <table> 页面布局，桌面优先（最低 1024px）。
 * 资源：全部本地，无 CDN、无外部字体请求。
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * 0. 设计令牌
 * --------------------------------------------------------------------- */
:root {
  /* 画布 / 表面 */
  --dz-bg: #f4f6fb;
  --dz-surface: #ffffff;
  --dz-surface-soft: #f8faff;
  --dz-surface-mute: #f0f3f9;

  /* 描边 */
  --dz-border: #e5eaf3;
  --dz-border-soft: #f0f3f9;
  --dz-border-strong: #d6deec;

  /* 文本 */
  --dz-text: #1f2937;
  --dz-text-1: #22304d;
  --dz-text-2: #33415e;
  --dz-text-3: #45516b;
  --dz-muted: #78839a;
  --dz-muted-2: #9aa5bb;

  /* 品牌 / 强调 */
  --dz-link: #2b4dc7;
  --dz-link-hover: #1e3a9e;
  --dz-brand: #2b4dc7;
  --dz-brand-strong: #2b4dc7;
  --dz-brand-soft: #eaf0ff;
  --dz-brand-ring: rgba(43, 77, 199, .12);
  --dz-on-brand: #ffffff;

  --dz-accent: #e8543f;
  --dz-accent-soft: #ffeceb;
  --dz-success: #17936b;
  --dz-success-soft: #e7f7ef;
  --dz-warn: #a16207;
  --dz-warn-soft: #fff8ec;
  --dz-warn-border: #f7e2bd;

  /* 深色横条（顶栏 / 页脚 / Toast） */
  --dz-deep: #182a52;
  --dz-deep-text: #cfd9f2;
  --dz-deep-link: #dfe8ff;
  --dz-deep-muted: #8ea1cb;
  --dz-deep-accent: #7fa0ff;

  /* 认证页侧栏渐变 */
  --dz-aside-from: #1d3468;
  --dz-aside-to: #101c38;

  --dz-radius: 12px;
  --dz-radius-sm: 8px;
  --dz-shadow: 0 1px 2px rgba(23, 43, 88, .04), 0 8px 24px rgba(23, 43, 88, .06);
  --dz-shadow-pop: 0 12px 36px rgba(23, 43, 88, .16);
  --dz-font: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* 全站固定浅色：不再提供深色令牌覆盖，也不再响应系统暗色偏好。 */

/* ---------------------------------------------------------------------
 * 1. 作用域内重置（压过 Discuz! 旧主题的全局规则）
 * --------------------------------------------------------------------- */
body.dz-modern {
  margin: 0;
  padding: 0;
  min-width: 1024px;                 /* 明确不做手机端适配 */
  background: var(--dz-bg);
  color: var(--dz-text);
  font: 14px/1.65 var(--dz-font);
  text-align: left;                  /* 覆盖旧 body{text-align:center} */
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}
.dz-modern *, .dz-modern *::before, .dz-modern *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.dz-modern h1, .dz-modern h2, .dz-modern h3,
.dz-modern h4, .dz-modern h5, .dz-modern h6 { margin: 0; font-weight: 650; line-height: 1.35; color: var(--dz-text); }
.dz-modern h1 { font-size: 24px; }
.dz-modern h2 { font-size: 18px; }
.dz-modern h3 { font-size: 15px; }
.dz-modern p { margin: 0; }
.dz-modern ul, .dz-modern ol, .dz-modern dl, .dz-modern dd { margin: 0; padding: 0; }
.dz-modern ul li { list-style: none; }
.dz-modern a { color: var(--dz-link); text-decoration: none; }
.dz-modern a:hover { color: var(--dz-link-hover); text-decoration: none; }
.dz-modern img { border: 0; max-width: 100%; }
.dz-modern input, .dz-modern select, .dz-modern textarea, .dz-modern button {
  font: inherit; color: var(--dz-text); margin: 0;
}
.dz-modern cite, .dz-modern em, .dz-modern strong, .dz-modern th { font-style: normal; text-align: left; }
.dz-modern cite { color: var(--dz-muted); }
.dz-modern hr { border: 0; border-top: 1px solid var(--dz-border); margin: 12px 0; }
.dz-modern table { border-collapse: collapse; }
body .dz-muted { color: var(--dz-muted); }

/* 旧表单元素（.txt / .txtarea / select）在现代页面内统一外观 */
body.dz-modern .txt,
body.dz-modern .txtarea,
body.dz-modern select,
body.dz-modern input[type="text"],
body.dz-modern input[type="password"],
body.dz-modern input[type="email"],
body.dz-modern textarea {
  padding: 7px 11px; height: auto; min-height: 36px;
  border: 1px solid var(--dz-border-strong);
  border-radius: var(--dz-radius-sm);
  background: var(--dz-surface);
  color: var(--dz-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
body.dz-modern .txt:focus,
body.dz-modern select:focus,
body.dz-modern input[type="text"]:focus,
body.dz-modern input[type="password"]:focus,
body.dz-modern textarea:focus {
  border-color: var(--dz-brand); box-shadow: 0 0 0 3px var(--dz-brand-ring);
}
body.dz-modern .txtarea { min-height: 90px; padding: 9px 11px; line-height: 1.7; }
body.dz-modern select { padding-right: 28px; cursor: pointer; }

/* ---------------------------------------------------------------------
 * 2. 布局骨架
 * --------------------------------------------------------------------- */
body .dz-shell { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
body .dz-page { padding-top: 20px; padding-bottom: 48px; }
/* 内容较少时让页脚贴近视口底部（仅现代主题页面，不影响旧页面） */
body.dz-modern .dz-page { min-height: calc(100vh - 300px); }
body .dz-main { display: flex; flex-direction: column; gap: 18px; }
body .dz-slot > * { margin-bottom: 0; }
body .dz-legacy-slot { display: contents; }

body .dz-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 0 0 16px; padding: 0; color: var(--dz-muted); font-size: 13px;
}
body .dz-breadcrumb a { display: inline-flex; align-items: center; gap: 6px; }
body .dz-breadcrumb__sep { font-size: 10px; opacity: .55; }
body .dz-breadcrumb__drop { cursor: pointer; }
body .dz-breadcrumb__drop .fa-caret-down { font-size: 10px; margin-left: 2px; }

body .dz-adtext,
body .dz-adslot { margin: 0 0 4px; }
body .dz-adtext:empty,
body .dz-adslot:empty { display: none; }
body .dz-adtext table { width: 100%; }

/* ---------------------------------------------------------------------
 * 3. 页头 / 导航
 * --------------------------------------------------------------------- */
body .dz-header { background: var(--dz-surface); border-bottom: 1px solid var(--dz-border); box-shadow: 0 1px 3px rgba(23, 43, 88, .04); }
body .dz-topbar { background: var(--dz-deep); color: var(--dz-deep-text); }
body .dz-topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 20px; }
body .dz-topbar__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .02em; opacity: .85; }
body .dz-topbar__brand i { color: var(--dz-deep-accent); }
body .dz-usermenu { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 12px; }
body .dz-usermenu a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 6px; color: var(--dz-deep-text);
}
body .dz-usermenu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
body .dz-usermenu a i { font-size: 12px; opacity: .8; }
body .dz-usermenu__user { color: #fff !important; font-weight: 600; }
body .dz-usermenu__status { color: var(--dz-deep-muted); }
body .dz-usermenu__status a { padding: 3px 6px; }
body .dz-usermenu__divider { width: 1px; height: 14px; background: rgba(255, 255, 255, .18); margin: 0 6px; }
body .dz-usermenu .dz-has-badge { color: #ffd7a1 !important; }
body .dz-usermenu .dz-has-badge::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dz-accent); }

body .dz-brandbar { background: var(--dz-surface); }
body .dz-brandbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
body .dz-brand { font-size: 0; }
body .dz-brand a { display: inline-block; }
body .dz-brand img { max-height: 56px; width: auto; display: block; }
body .dz-headerbanner:empty { display: none; }
body .dz-headerbanner { display: flex; align-items: center; gap: 12px; }

body .dz-nav { border-top: 1px solid var(--dz-border); background: var(--dz-surface-soft); }
body .dz-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; }
body .dz-nav__list { display: flex; align-items: stretch; flex-wrap: wrap; gap: 2px; min-height: 46px; }
body .dz-nav__list > li { display: flex; align-items: stretch; }
body .dz-nav__list > li > a,
body .dz-nav__link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 16px; color: var(--dz-text-3); font-size: 14px; font-weight: 550;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
body .dz-nav__list > li > a:hover,
body .dz-nav__link:hover { color: var(--dz-brand); background: var(--dz-brand-soft); }
body .dz-nav__list > li.is-active > a,
body .dz-nav__list > li.is-active .dz-nav__link {
  color: var(--dz-brand); border-bottom-color: var(--dz-brand); background: var(--dz-surface);
}
body .dz-nav__link i { font-size: 13px; opacity: .75; }
/* 导航右侧全站搜索 */
body .dz-navsearch { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: 0 0 auto; }
body .dz-navsearch__input {
  width: 210px; height: 32px; padding: 0 14px;
  border: 1px solid var(--dz-border-strong); border-radius: 999px;
  background: var(--dz-surface); color: var(--dz-text); font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}
body .dz-navsearch__input::placeholder { color: var(--dz-muted-2); }
body .dz-navsearch__input:focus { outline: none; border-color: var(--dz-brand); box-shadow: 0 0 0 3px var(--dz-brand-ring); }
body .dz-navsearch__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 0; border-radius: 999px;
  background: var(--dz-brand-strong); color: var(--dz-on-brand);
  font-size: 12px; cursor: pointer; transition: background-color .15s;
}
body .dz-navsearch__btn:hover { background: var(--dz-link-hover); }

body .dz-style-switch { display: flex; align-items: center; gap: 4px; }
body .dz-style-switch li a { display: block; width: 16px; height: 16px; border-radius: 50%; overflow: hidden; text-indent: -9999px; border: 1px solid var(--dz-border-strong); }
body .dz-style-switch li.is-active a { outline: 2px solid var(--dz-brand); outline-offset: 2px; }

/* ---------------------------------------------------------------------
 * 4. 下拉面板（原生 JS 引擎）
 * --------------------------------------------------------------------- */
body .dz-dropdown__panel {
  position: fixed; z-index: 3000; min-width: 200px; max-width: 420px;
  padding: 8px; background: var(--dz-surface); border: 1px solid var(--dz-border);
  border-radius: var(--dz-radius-sm); box-shadow: var(--dz-shadow-pop);
  font-size: 13px; color: var(--dz-text); text-align: left;
}
body .dz-dropdown__panel--wide { min-width: 280px; max-width: 560px; max-height: 420px; overflow: auto; }
body .dz-dropdown__list { display: flex; flex-direction: column; gap: 2px; }
body .dz-dropdown__list > li > a,
body .dz-dropdown__list > li > strong,
body .dz-dropdown__list a {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border-radius: 6px; color: var(--dz-text); font-weight: 500;
}
body .dz-dropdown__list a:hover,
body .dz-dropdown__list > li.is-active > a { background: var(--dz-brand-soft); color: var(--dz-brand); }
body .dz-dropdown__list i { width: 16px; text-align: center; color: var(--dz-muted); }
body .dz-dropdown__loading { padding: 18px; text-align: center; color: var(--dz-muted); }
body .dz-dropdown__empty { padding: 14px; color: var(--dz-muted); text-align: center; }
body .dz-dropdown__empty--error { color: #d9453a; }
body .dz-promptmenu__list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body .dz-badge { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--dz-brand-soft); color: var(--dz-brand); font-size: 11px; text-align: center; }
.dz-modern .is-menu-open { color: var(--dz-brand) !important; }

/* ---------------------------------------------------------------------
 * 5. 通用组件
 * --------------------------------------------------------------------- */
body .dz-card {
  background: var(--dz-surface); border: 1px solid var(--dz-border);
  border-radius: var(--dz-radius); box-shadow: var(--dz-shadow); overflow: hidden;
}
body .dz-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 50px; padding: 10px 18px;
  background: linear-gradient(180deg, var(--dz-surface), var(--dz-surface-soft));
  border-bottom: 1px solid var(--dz-border);
}
body .dz-card__title { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; }
body .dz-card__title > i { color: var(--dz-brand); font-size: 15px; }
body .dz-card__title a { color: var(--dz-text); }
body .dz-card__title a:hover { color: var(--dz-brand); }
body .dz-card__count { padding: 1px 8px; border-radius: 999px; background: var(--dz-brand-soft); color: var(--dz-brand); font-size: 11px; font-weight: 600; }
body .dz-card__actions { display: flex; align-items: center; gap: 10px; }
body .dz-card__mods { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--dz-muted); }
body .dz-card__body { padding: 4px 0; }
body .dz-card__body:empty { display: none; }

body .dz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 34px; padding: 0 14px; border: 1px solid transparent;
  border-radius: var(--dz-radius-sm); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
body .dz-btn--primary { background: var(--dz-brand-strong); color: var(--dz-on-brand); }
body .dz-btn--primary:hover { background: var(--dz-link-hover); color: var(--dz-on-brand); }
body .dz-btn--ghost { background: var(--dz-surface); color: var(--dz-text-3); border-color: var(--dz-border-strong); }
body .dz-btn--ghost:hover { background: var(--dz-brand-soft); color: var(--dz-brand); border-color: var(--dz-brand); }
body .dz-btn .fa-caret-down { font-size: 10px; opacity: .8; }
body .dz-btn--block { width: 100%; min-height: 40px; font-size: 14px; }
body .dz-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--dz-muted); cursor: pointer;
}
body .dz-iconbtn:hover { background: var(--dz-brand-soft); color: var(--dz-brand); }
body .dz-iconbtn i { transition: transform .18s; }
body .dz-iconbtn.is-collapsed i { transform: rotate(180deg); }
body .dz-linkbtn {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px;
  border: 0; background: transparent; color: var(--dz-link); font-size: 13px; cursor: pointer;
}
body .dz-linkbtn:hover { color: var(--dz-link-hover); }
body .dz-linkbtn .fa-caret-down { font-size: 10px; }

body .dz-input, body .dz-textarea {
  width: 100%; padding: 7px 11px; border: 1px solid var(--dz-border-strong);
  border-radius: var(--dz-radius-sm); background: var(--dz-surface); color: var(--dz-text);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
body .dz-input:focus, body .dz-textarea:focus { border-color: var(--dz-brand); box-shadow: 0 0 0 3px var(--dz-brand-ring); }
body .dz-input--mini { width: 52px; padding: 2px 6px; }
body .dz-textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
body .dz-checkbox { width: 15px; height: 15px; accent-color: var(--dz-brand); cursor: pointer; }
body .dz-search { display: flex; align-items: stretch; gap: 6px; }
body .dz-search .dz-input { flex: 1 1 auto; min-width: 150px; }
body .dz-search .dz-btn { flex: 0 0 auto; }

body .dz-tag {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px;
  border-radius: 5px; background: var(--dz-surface-mute); color: var(--dz-muted); font-size: 11px; white-space: nowrap;
}
body .dz-tag--ann { background: var(--dz-warn-soft); color: #c05621; }
body .dz-tag--price { background: var(--dz-warn-soft); color: var(--dz-warn); }
body .dz-tag--solved { background: var(--dz-success-soft); color: var(--dz-success); }
body .dz-tag--unsolved { background: var(--dz-warn-soft); color: #c05621; }
body .dz-badge--hot { background: var(--dz-accent-soft); color: var(--dz-accent); font-weight: 600; }
body .dz-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 20px; color: var(--dz-muted); }
body .dz-empty i { font-size: 32px; opacity: .45; }

body .dz-tabs { display: flex; align-items: center; gap: 14px; }
body .dz-tab { padding: 5px 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--dz-muted); font-size: 14px; cursor: pointer; }
body .dz-tab.is-active { color: var(--dz-brand); border-bottom-color: var(--dz-brand); font-weight: 600; }
body .dz-tabpanel { padding: 14px 18px; }
body .dz-ruletext { line-height: 1.8; }
body .dz-tabpanel .inlinelist ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 20px; }
body .dz-tabpanel .inlinelist li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

body .dz-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body .dz-toolbar__left, body .dz-toolbar__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body .dz-pages { display: flex; align-items: center; gap: 8px; }
body .dz-pages .pages { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
body .dz-pages .pages a, body .dz-pages .pages strong,
body .dz-pages .pages span, body .dz-pages .pages em {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--dz-border);
  border-radius: 6px; background: var(--dz-surface); color: var(--dz-text-3); font-style: normal; font-size: 12px;
}
body .dz-pages .pages strong, body .dz-pages .pages .current { background: var(--dz-brand-strong); border-color: var(--dz-brand-strong); color: var(--dz-on-brand); font-weight: 600; }
body .dz-pages .pages a:hover { border-color: var(--dz-brand); color: var(--dz-brand); }
/* 压掉 7.2 的 GIF 雪碧图分页按钮：css_common 里 .pages a.prev 用了
   text-indent:-9999px + 22px 宽 + 箭头底图，文字被推出可视区后只剩一个空方块。
   这里对现代页面的所有 .pages 生效（帖子页 .dz-pages、版块页 .dzr-fd-pager）。 */
.dz-modern .pages a.prev,
.dz-modern .pages a.next { width: auto; padding: 0 8px; text-indent: 0; background-image: none; }

body .dz-toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 4000;
  display: flex; align-items: center; gap: 9px; max-width: 360px;
  padding: 12px 16px; border-radius: var(--dz-radius-sm);
  background: var(--dz-deep); color: #fff; box-shadow: var(--dz-shadow-pop);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s;
}
body .dz-toast.is-visible { opacity: 1; transform: translateY(0); }
body .dz-toast--error i { color: #ff9b8f; }

/* ---------------------------------------------------------------------
 * 6. 首页：版块分组 + 版块卡片
 * --------------------------------------------------------------------- */
body .dz-forum-grid { display: flex; flex-direction: column; }
body .dz-forum-grid--compact {
  display: grid; grid-template-columns: repeat(var(--dz-cols, 3), minmax(0, 1fr));
  gap: 10px; padding: 14px 18px;
}
body .dz-forum,
body .dz-subforum {
  display: grid; align-items: center; gap: 16px;
  grid-template-columns: 52px minmax(0, 1fr) 150px 240px;
  padding: 14px 18px; border-bottom: 1px solid var(--dz-border-soft);
  transition: background .15s;
}
body .dz-forum:last-child, body .dz-subforum:last-child { border-bottom: 0; }
body .dz-forum:hover, body .dz-subforum:hover { background: var(--dz-surface-soft); }
body .dz-forum__icon, body .dz-subforum__icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--dz-surface-mute); color: var(--dz-muted); font-size: 20px;
}
body .dz-forum.is-new .dz-forum__icon,
body .dz-subforum.is-new .dz-subforum__icon { background: var(--dz-brand-soft); color: var(--dz-brand); }
body .dz-forum__icon img, body .dz-subforum__icon img { float: none !important; width: 40px; height: 40px; object-fit: contain; margin: 0 !important; }
body .dz-forum__info, body .dz-subforum__info { min-width: 0; }
body .dz-forum__info h3, body .dz-subforum__info h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; font-size: 15px; }
body .dz-forum__info h3 a, body .dz-subforum__info h3 a { color: var(--dz-text-1); font-weight: 650; }
body .dz-forum__info h3 a:hover, body .dz-subforum__info h3 a:hover { color: var(--dz-brand); }
body .dz-forum__desc { color: var(--dz-muted); font-size: 12.5px; margin-top: 3px !important; }
body .dz-forum__sub, body .dz-forum__mods { color: var(--dz-muted); font-size: 12px; margin-top: 3px !important; }
body .dz-forum__sub i, body .dz-forum__mods i { margin-right: 4px; opacity: .7; }
body .dz-forum__stats, body .dz-subforum__stats { display: flex; align-items: center; gap: 16px; color: var(--dz-muted); font-size: 12px; }
body .dz-forum__stats > div { display: flex; flex-direction: column; line-height: 1.35; }
body .dz-forum__stats strong, body .dz-subforum__stats strong { color: var(--dz-text-2); font-size: 15px; font-weight: 650; }
body .dz-forum__last, body .dz-subforum__last { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12px; color: var(--dz-muted); }
body .dz-forum__last a, body .dz-subforum__last a { display: inline-flex; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .dz-forum__lastsubject { color: var(--dz-text-3); font-weight: 500; }
body .dz-forum__last cite, body .dz-subforum__last cite { font-size: 11.5px; }

body .dz-forum--compact, body .dz-subforum--compact {
  grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 12px;
  border: 1px solid var(--dz-border); border-radius: var(--dz-radius-sm); background: var(--dz-surface);
}
body .dz-forum--compact .dz-forum__icon,
body .dz-subforum--compact .dz-subforum__icon { width: 38px; height: 38px; font-size: 17px; border-radius: 10px; }
body .dz-forum--compact:hover, body .dz-subforum--compact:hover { border-color: var(--dz-brand); }

body .dz-links__row { padding: 12px 18px; border-bottom: 1px solid var(--dz-border-soft); }
body .dz-links__row:last-child { border-bottom: 0; }
body .dz-links__row ul { display: flex; flex-wrap: wrap; gap: 8px 16px; }
body .dz-links__row.forumimglink { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------------
 * 7. 板块页：版块信息 / 子版块 / 主题列表
 * --------------------------------------------------------------------- */
body .dz-forumheader__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 24px; padding: 20px; }
body .dz-forumheader__info h1 { margin-bottom: 8px; }
body .dz-forumheader__stats { display: flex; align-items: center; gap: 6px; color: var(--dz-muted); font-size: 13px; }
body .dz-forumheader__stats i { color: var(--dz-brand); }
body .dz-forumheader__stats strong { color: var(--dz-brand); font-size: 16px; }
body .dz-forumheader__desc, body .dz-forumheader__mods { margin-top: 8px !important; font-size: 12.5px; color: var(--dz-muted); }
body .dz-forumheader__mods i { margin-right: 5px; }
body .dz-forumheader__side { display: flex; flex-direction: column; gap: 12px; }
body .dz-forumheader__actions { display: flex; flex-wrap: wrap; gap: 6px 14px; }
body .dz-forumheader__actions a { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
body .dz-forumheader__modlinks { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-top: 10px; border-top: 1px dashed var(--dz-border); font-size: 12px; }

body .dz-subforum-grid { display: flex; flex-direction: column; }
body .dz-subforum-grid--compact { display: grid; grid-template-columns: repeat(var(--dz-cols, 3), minmax(0, 1fr)); gap: 10px; padding: 14px 18px; }
body .dz-subforum { grid-template-columns: 44px minmax(0, 1fr) 110px 220px; padding: 11px 18px; }
body .dz-subforum__icon { width: 40px; height: 40px; font-size: 17px; border-radius: 10px; }
body .dz-subforum__stats { font-size: 12px; }

body .dz-threadtypes { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 10px 14px; background: var(--dz-surface); border: 1px solid var(--dz-border); border-radius: var(--dz-radius); font-size: 13px; }
body .dz-threadtypes strong { color: var(--dz-brand); }

body .dz-threadlist { padding-bottom: 2px; }
body .dz-threadlist__head {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 16px; background: var(--dz-surface-soft); border-bottom: 1px solid var(--dz-border);
}
body .dz-threadlist__filter, body .dz-threadlist__sort { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; }
body .dz-threadlist__filter { padding-bottom: 8px; border-bottom: 1px dashed var(--dz-border); }
body .dz-threadlist__filter a, body .dz-threadlist__sort a { color: var(--dz-muted); white-space: nowrap; }
body .dz-threadlist__filter a:hover, body .dz-threadlist__sort a:hover { color: var(--dz-brand); }
body .dz-threadlist__filter a.is-active, body .dz-threadlist__sort a.is-active { color: var(--dz-brand); font-weight: 650; }
body .dz-threadlist__all, body .dz-threadlist__checklabel, body .dz-threadlist__sep { color: var(--dz-muted-2); }
body .dz-threadlist__separator { display: flex; align-items: center; gap: 7px; padding: 8px 16px; background: var(--dz-surface-mute); color: var(--dz-muted); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--dz-border); }

body .dz-thread {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr) 150px 96px 190px;
  padding: 12px 16px; border-bottom: 1px solid var(--dz-border-soft); transition: background .15s;
}
body .dz-threadlist.has-check .dz-thread { grid-template-columns: 26px 44px minmax(0, 1fr) 150px 96px 190px; }
body .dz-thread:last-child { border-bottom: 0; }
body .dz-thread:hover { background: var(--dz-surface-soft); }
body .dz-thread__check { display: flex; justify-content: center; }
body .dz-thread__icon { display: flex; align-items: center; justify-content: center; gap: 2px; color: var(--dz-muted); font-size: 18px; }
body .dz-thread__icon > a { display: inline-flex; color: inherit; }
body .dz-thread__icon .is-new { color: var(--dz-brand); }
body .dz-thread__icon .is-pin { color: var(--dz-accent); }
body .dz-thread__icon.is-ann { color: #c05621; }
body .dz-thread__badgeicon { font-size: 12px; color: #c2882a; }
body .dz-thread__badgeicon.is-solved { color: var(--dz-success); }
body .dz-thread__customicon img { width: 16px; height: 16px; vertical-align: middle; }
body .dz-thread__subject { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; min-width: 0; font-size: 13.5px; }
body .dz-thread__title { font-weight: 550; color: var(--dz-text-1); }
body .dz-thread__title:hover { color: var(--dz-brand); }
body .dz-thread__flag { font-size: 12px; color: var(--dz-muted-2); }
body .dz-thread__flag.is-star { color: #e0a52b; }
body .dz-thread__flag.is-hot { color: var(--dz-accent); }
body .dz-thread__flag.is-digest { color: #7c5cd6; }
body .dz-thread__pages { font-size: 11px; color: var(--dz-muted); }
body .dz-thread__author, body .dz-thread__last { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; color: var(--dz-muted); }
body .dz-thread__author time, body .dz-thread__last a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .dz-thread__nums { display: flex; align-items: baseline; gap: 4px; color: var(--dz-muted); font-size: 12px; }
body .dz-thread__nums strong { color: var(--dz-text-2); font-size: 14px; }
body .dz-thread__lasttime i { margin-right: 4px; opacity: .7; }

/* ---------------------------------------------------------------------
 * 8. 帖子详情：作者侧栏 + 正文主区（Grid）
 * --------------------------------------------------------------------- */
body .dz-postlist { gap: 16px; }
body .dz-postlistreply:empty { display: none; }
body .dz-post {
  display: grid; grid-template-columns: 210px minmax(0, 1fr);
  background: var(--dz-surface); border: 1px solid var(--dz-border);
  border-radius: var(--dz-radius); box-shadow: var(--dz-shadow); overflow: visible;
}
body .dz-post__notice {
  grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 10px 18px; background: var(--dz-warn-soft); border-bottom: 1px solid var(--dz-warn-border); font-size: 12.5px; color: var(--dz-warn);
}
body .dz-post__notice h2 { font-size: 14px; }
body .dz-post__author {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 14px; background: var(--dz-surface-soft); border-right: 1px solid var(--dz-border);
  border-radius: var(--dz-radius) 0 0 var(--dz-radius); text-align: center;
}
body .dz-post__authorname { font-weight: 650; }
body .dz-post__avatar { display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 50%; background: var(--dz-surface-mute); overflow: hidden; }
body .dz-post__avatar img { width: 92px; height: 92px; object-fit: cover; border-radius: 50%; }
body .dz-post__avatar--guest { color: var(--dz-muted-2); font-size: 30px; flex-direction: column; gap: 4px; }
body .dz-post__avatar--guest span, body .dz-post__avatar--guest em, body .dz-post__avatar--guest a { font-size: 12px; }
body .dz-post__avatarblocked { padding: 8px; font-size: 12px; color: var(--dz-muted); }
body .dz-post__authortitle { font-size: 12px; color: var(--dz-brand); font-weight: 600; }
body .dz-post__stars { min-height: 16px; }
body .dz-post__stars img, body .dz-post__medals img { vertical-align: middle; }
body .dz-post__medals { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
body .dz-post__profile { font-size: 12px; color: var(--dz-muted); }
body .dz-post__admin { width: 100%; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--dz-border-strong); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 11.5px; }
body .dz-post__admin strong { width: 100%; color: var(--dz-muted); font-weight: 600; }

/* ---------------------------------------------------------------------
 * 頭像浮動資訊：沿用下拉面板的白底 / 圓角 / 陰影，頭部與欄位比照站點卡片
 * --------------------------------------------------------------------- */
body .dz-userinfo {
  min-width: 272px; max-width: 340px; padding: 0; overflow: hidden;
  border-radius: var(--dz-radius-sm, 8px);
  box-shadow: var(--dz-shadow-pop, 0 8px 26px rgba(24, 54, 110, .14));
  text-align: left;
}
body .dz-userinfo__detail { padding: 12px 14px 14px; font-size: 12px; }
body .dz-userinfo__detail > p:first-child {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px solid var(--dz-border-soft);
}
body .dz-userinfo__detail > p:first-child > a {
  margin-right: auto; font-size: 14px; font-weight: 700; color: var(--dz-text-1);
}
body .dz-userinfo__detail > p:first-child > a:hover { color: var(--dz-brand); }
body .dz-userinfo__detail em { color: var(--dz-muted); margin-left: 4px; }
body .dz-userinfo__detail .is-online,
body .dz-userinfo__detail .is-offline {
  margin-left: 0; padding: 2px 8px; border-radius: 999px;
  background: var(--dz-surface-mute); color: var(--dz-muted);
  font-size: 11px; font-weight: 600; font-style: normal; white-space: nowrap;
}
body .dz-userinfo__detail .is-online { background: var(--dz-success-soft); color: var(--dz-success); }
body .dz-userinfo__status { margin: 0 0 10px; color: var(--dz-muted); }
/* 標籤與值同一行：grid 兩欄、值靠右，每列以淡虛線分隔 */
body .dz-userinfo__detail dl {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline; gap: 0; margin: 0;
}
body .dz-userinfo__detail dt,
body .dz-userinfo__detail dd {
  margin: 0; padding: 6px 0; border-top: 1px dashed var(--dz-border-soft);
}
body .dz-userinfo__detail dt { color: var(--dz-muted); white-space: nowrap; }
body .dz-userinfo__detail dd {
  color: var(--dz-text-2); font-weight: 600; text-align: right; overflow-wrap: anywhere;
}
body .dz-userinfo__detail dl > :nth-child(-n+2) { border-top: 0; }

body .dz-post__main { display: flex; flex-direction: column; min-width: 0; }
body .dz-post__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 11px 18px; border-bottom: 1px solid var(--dz-border); }
body .dz-post__floor { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dz-muted); }
body .dz-post__floor > a { color: var(--dz-brand); font-weight: 650; }
body .dz-post__jump { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; }
body .dz-post__headactions { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 12px; }
body .dz-post__headactions a { display: inline-flex; align-items: center; gap: 4px; }
body .dz-post__byline { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; width: 100%; font-size: 12px; color: var(--dz-muted); }
body .dz-post__bylinename { font-weight: 600; }
body .dz-post__authicon { width: 16px; height: 16px; vertical-align: middle; cursor: pointer; }

body .dz-post__body { flex: 1 1 auto; padding: 18px; min-height: 160px; }
body .dz-post__message { position: relative; }
body .dz-post__warned { float: right; color: var(--dz-accent); font-size: 16px; }
.dz-modern #threadtitle { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--dz-border); }
.dz-modern #threadtitle h1 { font-size: 22px; }
body .dz-threadtags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--dz-muted); }
body .dz-post__content { font-size: 14.5px; line-height: 1.85; word-wrap: break-word; overflow-wrap: anywhere; }
body .dz-post__content img { max-width: 100%; height: auto; }
body .dz-post__content .t_msgfont { font-size: inherit; }
body .dz-post__attachments { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--dz-border); }
body .dz-locked { padding: 10px 12px; margin: 10px 0; border-radius: var(--dz-radius-sm); background: var(--dz-warn-soft); border: 1px solid var(--dz-warn-border); color: var(--dz-warn); font-size: 13px; }
.dz-modern #threadstamp { float: right; }
.dz-modern #threadstamp img { max-width: 100px; }

body .dz-rates { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding: 12px; border-radius: var(--dz-radius-sm); background: var(--dz-surface-soft); border: 1px solid var(--dz-border); font-size: 12px; }
body .dz-rates__count { display: flex; flex-direction: column; align-items: center; min-width: 44px; color: var(--dz-muted); }
body .dz-rates__count strong { font-size: 20px; color: var(--dz-brand); }
body .dz-rates__list { display: flex; flex-wrap: wrap; gap: 8px 16px; flex: 1 1 auto; }
body .dz-rates__list li { display: flex; align-items: center; gap: 5px; }
body .dz-rates__list em { color: var(--dz-success); }
body .dz-rates__list span { color: var(--dz-accent); }
body .dz-rateavatar { cursor: pointer; }
body .dz-rateavatar img { width: 24px; height: 24px; border-radius: 50%; }
body .dz-ratepop { min-width: 180px; }
body .dz-modact { margin-top: 10px; font-size: 12px; color: var(--dz-muted); }
body .dz-useraction { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--dz-border); }
body .dz-recommend { display: flex; align-items: center; gap: 8px; font-size: 12px; }
body .dz-recommend__act { display: flex; gap: 6px; }
.dz-modern #recommendv, .dz-modern #recommendav { cursor: pointer; color: var(--dz-brand); font-weight: 600; }

body .dz-post__foot { padding: 12px 18px 16px; border-top: 1px solid var(--dz-border); background: var(--dz-surface-soft); border-radius: 0 0 var(--dz-radius) 0; }
body .dz-signature { max-height: 120px; overflow: hidden; padding: 8px 0 12px; margin-bottom: 10px !important; border-bottom: 1px dashed var(--dz-border); color: var(--dz-muted); font-size: 12.5px; }
body .dz-signature img { max-height: 100px; }
body .dz-postactions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body .dz-postactions__manage { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--dz-muted); }
body .dz-postactions__links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-left: auto; }

/* 快速回复 */
body .dz-fastpost__grid { display: grid; grid-template-columns: 130px minmax(0, 1fr); }
body .dz-fastpost__side { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; background: var(--dz-surface-soft); border-right: 1px solid var(--dz-border); }
body .dz-fastpost__avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
body .dz-fastpost__editor { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
body .dz-fastpost__toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px;
  padding-bottom: 8px; margin-bottom: 10px;
  border-bottom: 1px solid var(--dz-border);
}
body .dz-fastpost__advanced a { font-size: 12.5px; }
body .dz-fastpost__advanced { display: flex; align-items: center; gap: 8px; font-size: 12px; }
body .dz-fastpost__submit { display: flex; align-items: center; gap: 14px; }
body .dz-fastpost__refresh { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--dz-muted); }
body .dz-fastpost__seccheck { padding: 10px 0; }
/* 编辑器工具条：fastpost / 短消息 / 个人签名共用，矢量按钮 */
body .dz-editorbar, body .dz-editorbar > div {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
}
body .dz-editorbar__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 28px; border-radius: 6px;
  background: transparent; color: var(--dz-text-3);
  font-size: 13px; line-height: 1; text-decoration: none;
  transition: background-color .15s, color .15s;
}
body .dz-editorbar__btn:hover { background-color: var(--dz-brand-soft); color: var(--dz-brand); }
body .dz-editorbar__btn i { pointer-events: none; }
body .dz-editorbar__btn:active { transform: translateY(1px); }
body.dz-modern .dz-editorbar + .txtarea,
body.dz-modern .dz-editorbar + textarea { border-top-left-radius: 0; border-top-right-radius: 0; }

body .dz-modlayer { position: fixed; right: 24px; bottom: 24px; z-index: 2500; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--dz-radius-sm); background: var(--dz-deep); color: #fff; box-shadow: var(--dz-shadow-pop); font-size: 12px; }
body .dz-modlayer a { color: var(--dz-deep-accent); }
body .dz-focus { position: fixed; right: 24px; bottom: 24px; z-index: 2000; width: 300px; padding: 14px; background: var(--dz-surface); border: 1px solid var(--dz-border); border-radius: var(--dz-radius); box-shadow: var(--dz-shadow-pop); }
body .dz-focus header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 600; }
body .dz-focus__body h4 { margin-bottom: 8px; font-size: 14px; }
body .dz-focus__body p { display: flex; gap: 10px; font-size: 12px; color: var(--dz-muted); }
body .dz-focus__body img { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
body .dz-focus__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; }

/* 上传状态矢量图标 */
body .dz-upload-ok { color: var(--dz-success); }
body .dz-upload-fail { color: #d33; }
body .dz-upload-spin { color: var(--dz-brand); }

/* 兼容 common.js 的旧式浮层，让弹窗视觉与新主题一致（仅现代页面） */
.dz-modern .popupmenu_popup {
  background: var(--dz-surface); border: 1px solid var(--dz-border); border-radius: var(--dz-radius-sm);
  box-shadow: var(--dz-shadow-pop); color: var(--dz-text); font-size: 13px; padding: 8px;
}
.dz-modern .popupmenu_popup li a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--dz-text); }
.dz-modern .popupmenu_popup li a:hover { background: var(--dz-brand-soft); color: var(--dz-brand); }

/* ---------------------------------------------------------------------
 * 8.4 登录 / 注册（认证页）—— 独立页与浮层弹窗共用组件
 *
 * 同一份 login.htm / register.htm 会渲染成两种外壳：
 *   独立页  body > .dz-auth > .dz-auth__grid > .dz-auth__card
 *   浮层    .fwin > .fwin_content > .dz-auth.dz-auth__card--float
 * 两种外壳的卡片都显式带 .dz-auth 类，表单内部规则统一用 body .dz-auth … 命中。
 *
 * ⚠ 不要用 :is() / :has() 把两种外壳合并成一个选择器。低版本 Chromium 内核
 *   （部分国产双核浏览器）不支持这些伪类，会**整条规则丢弃**，表现为「样式写了
 *   却完全不生效」，且不报错、极难排查。
 *   .dz-auth 加在浮层卡片上后，需由 .dz-auth__card--float 重置 display 与 padding，
 *   否则会被 .dz-auth 的整页居中布局带歪。
 * --------------------------------------------------------------------- */
body .dz-auth { display: flex; justify-content: center; align-items: flex-start; padding-top: 40px; padding-bottom: 64px; }
body .dz-auth__grid {
  display: grid; grid-template-columns: 360px 470px; flex: 0 0 auto;
  width: 830px; max-width: 100%;
  background: var(--dz-surface); border: 1px solid var(--dz-border);
  border-radius: 18px; box-shadow: var(--dz-shadow); overflow: hidden;
}
body .dz-auth__aside {
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding: 44px 36px; color: var(--dz-deep-text);
  background: linear-gradient(155deg, var(--dz-aside-from), var(--dz-aside-to));
}
body .dz-auth__logo { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 20px; }
body .dz-auth__aside h2 { color: #fff; font-size: 22px; letter-spacing: .01em; }
body .dz-auth__aside p { font-size: 13px; line-height: 1.8; color: var(--dz-deep-text); opacity: .9; }
body .dz-auth__points { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
body .dz-auth__points li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dz-deep-text); }
body .dz-auth__points i { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255, 255, 255, .1); color: var(--dz-deep-accent); font-size: 12px; flex: 0 0 auto; }

body .dz-auth__card { padding: 34px 34px 28px; }
/* 浮層卡片同時帶 .dz-auth（作用域）與 .dz-auth__card--float（自身盒模型），
   這裡把 .dz-auth 的整頁居中布局重置掉，只保留卡片自己的 padding。 */
body .dz-auth__card--float { display: block; padding: 22px 24px 20px; border: 0; box-shadow: none; background: transparent; min-width: 380px; }
body .dz-auth__head { margin-bottom: 20px; }
body .dz-auth__head h1 { font-size: 21px; margin-bottom: 6px; }
body .dz-auth__head p { font-size: 12.5px; color: var(--dz-muted); }

body .dz-field { position: relative; display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
body .dz-field:last-child { margin-bottom: 0; }
body .dz-field__label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--dz-text-3); }
body .dz-field__label i { width: 14px; text-align: center; color: var(--dz-brand); font-size: 12px; }
/* 欄位圖標：把「字段」本身變成輸入框外殼，圖標作為 flex 子項真實佔位，
   輸入框去掉自己的邊框、從圖標右側起排（與帳號組合框同一套視覺）。
   舊寫法是「絕對定位浮在框上 + 靠 padding-left 避讓」，只要那條 padding
   被第 1 節的 input reset（padding 簡寫，0,2,2）壓回 11px，圖標就直接蓋住
   第一個字——密碼框只露出「碼」即為此症狀。改成外殼後，圖標佔走 34px 的
   真實寬度，與 padding 優先級徹底解耦，不可能再重疊。 */
body .dz-field:has(> .dz-field__icon) {
  flex-direction: row; align-items: center; gap: 0;
  border: 1px solid var(--dz-border-strong); border-radius: var(--dz-radius-sm);
  background: var(--dz-surface);
  transition: border-color .15s, box-shadow .15s;
}
body .dz-field:has(> .dz-field__icon):focus-within {
  border-color: var(--dz-brand); box-shadow: 0 0 0 3px var(--dz-brand-ring);
}
body .dz-field > .dz-field__icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 12.5px; line-height: 1; color: var(--dz-muted-2);
  pointer-events: none; transition: color .15s;
}
body .dz-field:has(> .dz-field__icon) > .dz-field__icon {
  position: static; left: auto; top: auto; transform: none;
  flex: 0 0 34px; align-self: stretch; width: 34px;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
body.dz-modern .dz-field:has(> .dz-field__icon) > input,
body.dz-modern .dz-field:has(> .dz-field__icon) > .dz-input {
  flex: 1 1 auto; width: auto; min-width: 0;
  min-height: 38px; padding: 7px 11px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
body.dz-modern .dz-field:has(> .dz-field__icon) > input:focus {
  border: 0; box-shadow: none;
}
body .dz-field:focus-within .dz-field__icon { color: var(--dz-brand); }
/* 不支援 :has() 的內核退回舊方案：圖標仍是絕對定位，用內距把它讓出來。
   選擇器故意不要求 .dz-input 這個類——模板若沒帶類名，一樣要能生效。 */
@supports not (selector(:has(*))) {
  body .dz-field > .dz-field__icon + input { padding-left: 42px !important; }
}
body .dz-field__req { color: var(--dz-accent); font-weight: 700; }
body .dz-field__hint { font-size: 11.5px; color: var(--dz-muted); }
body .dz-field__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body .dz-field__row > .dz-input { flex: 1 1 0; width: auto; min-width: 0; }
body .dz-field__row--inline { gap: 6px; }
/* 認證表單：欄位名內嵌在輸入框裡（placeholder），不再每項上方佔一行標籤，
   高度統一 40px，聚焦時品牌色描邊 + 淡光暈，整體更緊湊乾淨。
   必須帶 body.dz-modern 前綴：第 1 節 body.dz-modern input[type="text|password"]
   的 min-height:36px 特異性是 (0,2,2)，比 (0,2,1) 高，會把高度壓回 36px。 */
body .dz-auth .dz-input,
body .dz-auth select,
body.dz-modern .dz-auth .dz-input,
body.dz-modern .dz-auth select { min-height: 40px; }
body .dz-auth .dz-input::placeholder { color: var(--dz-muted); opacity: 1; }

/* 帳號欄：登錄方式下拉當作輸入框前綴，兩者合併成「一個控件」的外觀，
   避免 104px 的下拉 + 輸入框並排出現兩個邊框顯得零碎。 */
body .dz-inputgroup {
  display: flex; align-items: stretch; min-height: 40px;
  border: 1px solid var(--dz-border-strong); border-radius: var(--dz-radius-sm);
  background: var(--dz-surface);
  transition: border-color .15s, box-shadow .15s;
}
body .dz-inputgroup:focus-within { border-color: var(--dz-brand); box-shadow: 0 0 0 3px var(--dz-brand-ring); }
/* 子選擇器多帶一個 class，蓋過 body .dz-auth select 的 min-height，
   否則原生下拉的 40px 會把 38px 的內容區撐出邊框。 */
body .dz-inputgroup > .dz-inputgroup__select {
  flex: 0 0 auto; width: 92px; min-height: 0; padding: 0 22px 0 6px;
  border: 0; border-right: 1px solid var(--dz-border);
  border-radius: var(--dz-radius-sm) 0 0 var(--dz-radius-sm);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2378839a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;
  color: var(--dz-text-3); font-size: 12.5px;
  -webkit-appearance: none; appearance: none; outline: none; cursor: pointer;
}
body .dz-inputgroup__input {
  flex: 1 1 auto; min-width: 0; width: auto; min-height: 0;
  padding: 0 12px; border: 0; border-radius: 0 var(--dz-radius-sm) var(--dz-radius-sm) 0;
  background: transparent; color: var(--dz-text); font: inherit; font-size: 13px; outline: none;
}
body .dz-inputgroup__input::placeholder { color: var(--dz-muted); opacity: 1; }
body .dz-inputgroup__input:focus { border: 0; box-shadow: none; }
/* 賬號欄圖標：放在下拉框內部左側（下拉本身沒有左邊框，圖標緊貼它），
   視覺上「圖標 + 帳號 ▾」是一個整體，而不是夾在下拉與輸入框中間。 */
body .dz-inputgroup__icon {
  display: flex; align-items: center; padding: 0 0 0 12px;
  font-size: 12px; line-height: 1; color: var(--dz-muted);
  pointer-events: none; transition: color .15s;
}
body .dz-inputgroup:focus-within .dz-inputgroup__icon { color: var(--dz-brand); }

/* 獨立成行的下拉欄（安全提問）：沿用輸入框的邊框語言 */
body .dz-select {
  width: 100%; min-height: 40px; padding: 0 34px 0 12px;
  border: 1px solid var(--dz-border-strong); border-radius: var(--dz-radius-sm);
  background: var(--dz-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2378839a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--dz-text); font-size: 13px;
  -webkit-appearance: none; appearance: none; outline: none; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
body .dz-select:focus { border-color: var(--dz-brand); box-shadow: 0 0 0 3px var(--dz-brand-ring); }

/* seccheck 子模板用的是舊 .txt（帶內聯 width:50px），這裡一併統一成新外觀 */
body .dz-auth .dz-secbox .txt {
  width: auto !important; min-width: 140px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--dz-border-strong); border-radius: var(--dz-radius-sm);
  background: var(--dz-surface); color: var(--dz-text); font-size: 13px;
}
body .dz-auth .dz-secbox .txt:focus { border-color: var(--dz-brand); box-shadow: 0 0 0 3px var(--dz-brand-ring); }
body .dz-auth__inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 2px 0 14px; font-size: 12.5px; color: var(--dz-muted); }
body .dz-auth__links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; }
body .dz-auth__links a { display: inline-flex; align-items: center; gap: 5px; }
body .dz-auth__submit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
body .dz-auth__submit .dz-btn { flex: 1 1 auto; }
body .dz-auth__alt { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--dz-border); font-size: 12.5px; color: var(--dz-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body .dz-auth__msg { padding: 6px 0 0; }
body .dz-auth__msg .alert_right { font-size: 13px; line-height: 1.8; }
body .dz-auth__msg .alert_right p { margin-bottom: 8px; }
body .dz-auth #returnmessage,
body .dz-auth #returnmessage3,
body .dz-auth #returnmessage4 { display: block; font-size: 13px; }
body .dz-auth .onerror { background: none; padding: 0; color: var(--dz-accent); font-weight: 600; }
body .dz-auth__rule {
  max-height: 220px; overflow: auto; padding: 14px 16px; margin-bottom: 14px;
  border: 1px solid var(--dz-border); border-radius: var(--dz-radius-sm);
  background: var(--dz-surface-soft); font-size: 12.5px; line-height: 1.85; color: var(--dz-text-3);
}
body .dz-auth__step { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 12px; color: var(--dz-muted); }
body .dz-auth__floathead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
body .dz-auth__floathead h2 { font-size: 17px; }
body .dz-auth__floathead .dz-close { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--dz-border); border-radius: 7px; background: var(--dz-surface); color: var(--dz-muted); font-size: 12px; }
body .dz-auth__floathead .dz-close:hover { color: var(--dz-accent); border-color: var(--dz-accent); }
body .dz-auth .emailcodebtn { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 6px; background: var(--dz-brand-soft); color: var(--dz-brand); font-size: 12px; white-space: nowrap; }
body .dz-auth .emailcodebtn.disabled { opacity: .55; pointer-events: none; }
body .dz-auth .emailcodemsg { font-size: 11.5px; color: var(--dz-muted); }
body .dz-auth .emailcodemsg.error { color: var(--dz-accent); }
body .dz-auth .dz-secbox { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
/* 登錄頁的驗證碼/安全提問容器：沒有內容時不留空檔 */
body .dz-auth #seccodelayer:not(:empty) { margin-bottom: 10px; }
body .dz-auth .dz-secbox img { border-radius: 4px; vertical-align: middle; }
body .dz-auth__return { display: block; margin-bottom: 12px; font-size: 13px; font-style: normal; }
body .dz-auth__return:empty { display: none; }
body .dz-auth__return.onerror { background: none; padding: 0; color: var(--dz-accent); font-weight: 600; }
body .dz-auth__stepbtns { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; }
body .dz-auth__stepbtns .dz-btn { flex: 1 1 auto; }
body .dz-auth__rule h3 { margin-bottom: 10px; font-size: 15px; }
body .dz-auth__rule .clause { color: var(--dz-text-3); }
body .dz-auth__rule .clause a { text-decoration: none; }

/* 浮层弹窗外壳
   旧外壳是 common.js showWindow 生成的 .fwin 九宫格表格（8px 半透明蓝边模拟阴影）。
   现已改为单层卡片 .dzr-win（样式见 remaster.css 第 22 节），下列 .fwin 规则仅作
   兜底保留；:not(.dzr-win) 避免把外层容器的白底又刷成透明。 */
body.dz-modern .fwinmask:not(.dzr-win) { background: transparent; }
body.dz-modern .fwin { border-collapse: separate; }
body.dz-modern .fwin .t_l, body.dz-modern .fwin .t_c, body.dz-modern .fwin .t_r,
body.dz-modern .fwin .m_l, body.dz-modern .fwin .m_r,
body.dz-modern .fwin .b_l, body.dz-modern .fwin .b_c, body.dz-modern .fwin .b_r {
  background: none; opacity: 1; filter: none;
}
body.dz-modern .fwin .m_c {
  padding: 0; background: var(--dz-surface);
  border: 1px solid var(--dz-border); border-radius: 14px;
  box-shadow: var(--dz-shadow-pop); overflow: hidden;
}
body.dz-modern .fwin .fcontent { margin: 18px 20px; }
body.dz-modern .fwin .fcontent a { text-decoration: none; }
body.dz-modern #fwin_content_login, body.dz-modern #fwin_content_register { width: 440px; min-width: 440px; }

/* ---------------------------------------------------------------------
 * 8.5 个人中心 / 个人资料
 * --------------------------------------------------------------------- */
body .dz-uc__layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 20px; align-items: start; }
body .dz-uc__main { min-width: 0; }
body .dz-uc__side {
  position: sticky; top: 16px;
  padding: 16px 14px; background: var(--dz-surface);
  border: 1px solid var(--dz-border); border-radius: var(--dz-radius); box-shadow: var(--dz-shadow);
}
body .dz-uc__side > h2 {
  display: flex; align-items: center; gap: 8px;
  padding: 0 6px 12px; margin-bottom: 10px;
  font-size: 14px; border-bottom: 1px solid var(--dz-border);
}
body .dz-uc__side > h2::before { content: "\f2bd"; font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands"; font-weight: 900; font-size: 13px; color: var(--dz-brand); }
body .dz-uc__side .navgroup { margin-bottom: 10px; }
body .dz-uc__side .navgroup:last-of-type { margin-bottom: 0; }
body .dz-uc__side ul.tabs { display: flex; flex-direction: column; gap: 2px; }
body .dz-uc__side ul.tabs li { float: none; width: auto; }
body .dz-uc__side ul.tabs li a,
body .dz-uc__side ul.tabs li > span {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 7px;
  font-size: 13px; color: var(--dz-text-3);
}
body .dz-uc__side ul.tabs li a:hover { background: var(--dz-surface-soft); color: var(--dz-brand); }
body .dz-uc__side ul.tabs li.current a { background: var(--dz-brand-soft); color: var(--dz-brand); font-weight: 600; }
body .dz-uc__side ul.tabs li.current a::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--dz-brand); margin-left: -4px; }
body .dz-uc__side hr.shadowline { margin: 10px 0; border: 0; border-top: 1px solid var(--dz-border-soft); }
body .dz-uc__side .navgroup ul.tabs li { color: var(--dz-muted); font-size: 12px; padding: 3px 10px; }

body .dz-form {
  padding: 6px 26px 24px;
  background: var(--dz-surface); border: 1px solid var(--dz-border);
  border-radius: var(--dz-radius); box-shadow: var(--dz-shadow);
}
body .dz-form h1 {
  margin: 22px 0 10px; padding-bottom: 10px;
  font-size: 15px; border-bottom: 1px solid var(--dz-border-soft);
}
body .dz-form h1:first-of-type { margin-top: 14px; }
body .dz-form .channelinfo {
  margin: 0 0 6px; padding: 9px 12px; border-radius: var(--dz-radius-sm);
  background: var(--dz-brand-soft); color: var(--dz-brand); font-size: 12.5px;
}
body .dz-form .formtable { width: 100%; }
body .dz-form .formtable tr:not(:last-child) > th,
body .dz-form .formtable tr:not(:last-child) > td { border-bottom: 1px solid var(--dz-border-soft); }
body .dz-form .formtable th {
  width: 168px; padding: 11px 16px 11px 0;
  vertical-align: top; text-align: right;
  font-size: 13px; font-weight: 600; color: var(--dz-text-3);
}
body .dz-form .formtable th label { font-weight: 600; cursor: pointer; }
body .dz-form .formtable td {
  padding: 10px 0 10px 6px; vertical-align: top;
  font-size: 12.5px; color: var(--dz-muted); line-height: 1.7;
}
body .dz-form .formtable td:first-of-type { min-width: 280px; }
body .dz-modern .dz-form .txt,
body .dz-modern .dz-form select { width: auto; min-width: 280px; max-width: 100%; }
body .dz-modern .dz-form .txtarea { width: 100% !important; max-width: 560px; }
body .dz-form .formtable .sep_space th { height: 26px; }
body .dz-form .formtable img { vertical-align: middle; }
/* 单选 / 复选框条目之间拉开间距，避免挤成一串 */
body .dz-form .formtable td > label {
  display: inline-flex; align-items: center; gap: 5px;
  margin: 2px 14px 2px 0; line-height: 1.6; cursor: pointer;
}
body .dz-form .formtable td > label input[type="radio"],
body .dz-form .formtable td > label input[type="checkbox"] { margin: 0; }
body.dz-modern .dz-form input[type="radio"],
body.dz-modern .dz-form input[type="checkbox"] { accent-color: var(--dz-brand); }
/* 单选 / 复选框条目之间拉开间距，避免挤成一串 */
body .dz-form .formtable td > label {
  display: inline-flex; align-items: center; gap: 5px;
  margin: 2px 14px 2px 0; line-height: 1.6; cursor: pointer;
}
body .dz-form .formtable td > label input[type="radio"],
body .dz-form .formtable td > label input[type="checkbox"] { margin: 0; }
body.dz-modern .dz-form input[type="radio"],
body.dz-modern .dz-form input[type="checkbox"] { accent-color: var(--dz-brand); }
body .dz-form .avatararea { display: flex; align-items: center; gap: 14px; }
body .dz-form .avatararea p { line-height: 0; }
body .dz-form .avatararea img { border-radius: 50%; }
body .dz-form .dz-formactions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--dz-border);
}
body .dz-form .dz-formactions .dz-btn { min-width: 120px; }
body .dz-form .dz-formnote { font-size: 12px; color: var(--dz-muted); }

/* ---------------------------------------------------------------------
 * 8.52 发帖 / 回复页（post.php）—— 仅重构外壳，编辑器沿用 X3.5 移植版
 * --------------------------------------------------------------------- */
body .dz-postform { padding: 0; }
body .dz-postform__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 15px 20px;
  background: linear-gradient(180deg, var(--dz-surface), var(--dz-surface-soft));
  border-bottom: 1px solid var(--dz-border);
}
body .dz-postform__title { display: flex; align-items: center; gap: 9px; font-size: 17px; }
body .dz-postform__title::before {
  content: "\f304"; font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
  font-weight: 900; font-size: 15px; color: var(--dz-brand);
}
body .dz-postform__credits { font-size: 12px; color: var(--dz-muted); }
body .dz-postform .needverify { margin-left: 8px; padding: 1px 8px; border-radius: 4px; background: var(--dz-warn-soft); color: var(--dz-warn); font-size: 11px; font-style: normal; }
body .dz-postform__body { padding: 16px 20px 20px; }

body .dz-postform .float_postinfo {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 14px;
}
body .dz-postform .float_postinfo > span:first-child { flex: 1 1 320px; min-width: 0; }
body .dz-postform .float_postinfo .txt { width: 100%; }
body .dz-postform .float_postinfo #icon { line-height: 0; cursor: pointer; }
body .dz-postform .float_postinfo #icon img { width: 22px; height: 22px; }
body .dz-postform .float_typeid select { min-height: 34px; }

body .dz-postform .edt {
  border: 1px solid var(--dz-border); border-radius: var(--dz-radius-sm);
  overflow: hidden; background: var(--dz-surface);
}
body .dz-postform .columntype { margin-top: 14px; }
body .dz-postform .columntype h4 { margin: 12px 0 6px; font-size: 13px; color: var(--dz-text-3); }
body .dz-postform .columntype table { width: 100%; }
body .dz-postform .columntype td { padding: 3px 16px 3px 0; vertical-align: top; font-size: 12.5px; color: var(--dz-text-3); }
body .dz-postform .columntype .posttags { width: 55%; }
body .dz-postform .columntype p { margin: 3px 0; }
body .dz-postform .btnbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--dz-border);
}
body .dz-postform #postsubmit,
body .dz-postform .btnbar button {
  min-height: 38px; padding: 0 24px;
  border: 0; border-radius: var(--dz-radius-sm);
  background: var(--dz-brand-strong); color: var(--dz-on-brand);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
body .dz-postform #postsubmit:hover { background: var(--dz-link-hover); }
body .dz-postform .btnbar .dz-secbox { display: flex; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------------
 * 8.55 个人中心通用组件：工具栏 / 胶囊页签 / 信息流 / 数据表
 *      供 pm / notice / my / memcp_credits / memcp_usergroups 复用
 * --------------------------------------------------------------------- */
body .dz-pmtoolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 16px; flex-wrap: wrap;
  padding: 10px 18px;
  background: var(--dz-surface-soft);
  border-bottom: 1px solid var(--dz-border);
}
body .dz-tabs--pill { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
body .dz-tabs--pill .dz-tab { padding: 0; border: 0; }
body .dz-tabs--pill .dz-tab > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  color: var(--dz-text-3); font-size: 13px; white-space: nowrap;
}
body .dz-tabs--pill .dz-tab > a:hover { background: var(--dz-brand-soft); color: var(--dz-brand); }
body .dz-tabs--pill .dz-tab.is-active > a { background: var(--dz-brand-strong); color: var(--dz-on-brand); font-weight: 600; }
body .dz-tabs--pill .dz-tab.is-active .dz-badge { background: rgba(255, 255, 255, .24); color: inherit; }
body .dz-tabs--pill .dz-tab i { font-size: 12px; opacity: .85; }

body .dz-card__note {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 9px 18px; font-size: 12.5px; color: var(--dz-muted);
  background: var(--dz-brand-soft); border-bottom: 1px solid var(--dz-border);
}
body .dz-card__note i { color: var(--dz-brand); }
body .dz-card__note strong { color: var(--dz-text-2); }

/* 私信 / 提醒 信息流 */
body.dz-modern .pm_list { margin: 0; }
body.dz-modern .pm_list > li {
  position: relative; padding: 14px 18px 14px 74px;
  border-bottom: 1px solid var(--dz-border-soft);
}
body.dz-modern .pm_list > li:last-child { border-bottom: 0; }
body.dz-modern .pm_list > li:hover { background: var(--dz-surface-soft); }
body.dz-modern .pm_list .avatar { position: absolute; left: 18px; top: 15px; line-height: 0; }
body.dz-modern .pm_list .avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
body.dz-modern .pm_list .cite { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--dz-muted); }
body.dz-modern .pm_list .cite cite a { color: var(--dz-text-1); font-weight: 600; }
body.dz-modern .pm_list .cite img { vertical-align: middle; }
body.dz-modern .pm_list .summary { margin-top: 6px; font-size: 13px; line-height: 1.75; color: var(--dz-text-3); }
body.dz-modern .pm_list .summary a { color: var(--dz-text-3); }
body.dz-modern .pm_list .summary a:hover { color: var(--dz-brand); }
body.dz-modern .pm_list .more { margin-top: 6px; font-size: 12px; }
body.dz-modern .pm_list .action {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px;
}
body.dz-modern .pm_list .action .delete { color: var(--dz-accent); font-size: 12px; }
body.dz-modern .pm_list > li > ul { padding-left: 0; }

body .dz-feed { margin: 0; }
body .dz-feed__item {
  padding: 12px 18px; font-size: 13px; line-height: 1.8; color: var(--dz-text-3);
  border-bottom: 1px solid var(--dz-border-soft);
}
body .dz-feed__item:last-child { border-bottom: 0; }
body .dz-feed__item:hover { background: var(--dz-surface-soft); }
body .dz-feed__item a { font-weight: 500; }

/* 私信回复框 */
body .dz-pmreply { margin: 14px 18px; }
body .dz-pmreply__bar {
  display: flex; align-items: center; padding: 6px 8px;
  background: var(--dz-surface-soft);
  border: 1px solid var(--dz-border); border-bottom: 0;
  border-radius: var(--dz-radius-sm) var(--dz-radius-sm) 0 0;
}
body .dz-pmreply .dz-textarea {
  border-radius: 0 0 var(--dz-radius-sm) var(--dz-radius-sm);
  width: 100%; min-height: 110px; padding: 10px 12px;
  border: 1px solid var(--dz-border-strong); background: var(--dz-surface); color: var(--dz-text);
}
body .dz-pmreply__submit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* 数据表（我的主题 / 积分 / 群组 / 道具 / 任务） */
body .dz-tablewrap { overflow-x: auto; }
body.dz-modern .datalist .c_header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px 8px;
}
body.dz-modern .datalist .c_header h3 { font-size: 14px; }
body.dz-modern .datalist .c_header_action { font-size: 12px; color: var(--dz-muted); }
body.dz-modern .datalist table {
  width: 100%; border: 0; border-collapse: collapse; margin: 0;
}
body.dz-modern .datalist th,
body.dz-modern .datalist td {
  padding: 10px 12px; text-align: left; font-size: 12.5px; font-weight: 400;
  color: var(--dz-text-3); border-bottom: 1px solid var(--dz-border-soft);
}
body.dz-modern .datalist thead th,
body.dz-modern .datalist thead td,
body.dz-modern .datalist .colplural th,
body.dz-modern .datalist .colplural td,
body.dz-modern .datalist tr.colplural {
  background: var(--dz-surface-soft); color: var(--dz-muted);
  font-weight: 600; font-size: 12px;
}
body.dz-modern .datalist tbody tr:hover { background: var(--dz-surface-soft); }
body.dz-modern .datalist td.folder, body.dz-modern .datalist td.icon { width: 28px; text-align: center; }
body.dz-modern .datalist td.folder img, body.dz-modern .datalist td.icon img { vertical-align: middle; }
body.dz-modern .datalist .datatable { margin-bottom: 0; }
body.dz-modern .datalist .c_header + table { margin-top: 0; }
body.dz-modern .datalist > .c_header:first-child { padding-top: 16px; }
body .dz-input--auto { width: auto; min-width: 170px; height: 34px; }
/* 表格内的提交按钮统一成主题按钮 */
body.dz-modern .datalist button,
body.dz-modern .datalist input[type="submit"],
body.dz-modern .datalist input[type="button"] {
  min-height: 30px; padding: 0 14px; margin: 2px 0;
  border: 1px solid transparent; border-radius: var(--dz-radius-sm);
  background: var(--dz-brand-strong); color: var(--dz-on-brand);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
}
body.dz-modern .datalist button:hover,
body.dz-modern .datalist input[type="submit"]:hover { background: var(--dz-link-hover); }
body.dz-modern .datalist select { min-height: 30px; height: 30px; padding: 0 26px 0 8px; font-size: 12px; }
body.dz-modern .datalist .txt { min-width: 0; height: 30px; padding: 0 8px; }

/* 头像页：只展示当前大图 + 组件上传 / 简易上传切换 */
body .dz-avatar__current { display: flex; align-items: center; }
body .dz-avatar__current img {
  width: 200px; height: 200px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--dz-border); background: var(--dz-surface-soft);
}
body .dz-avatar__hint { margin-top: 6px !important; font-size: 12px; color: var(--dz-muted); }
body .dz-avatar__file { max-width: 420px; padding: 6px 10px; }
body #avatar_simple {
  padding: 16px 18px;
  border: 1px dashed var(--dz-border-strong); border-radius: var(--dz-radius-sm);
  background: var(--dz-surface-soft);
}
body .dz-avatar__switch { margin-top: 12px; font-size: 12.5px; }
body .dz-avatar__switch a { display: inline-flex; align-items: center; gap: 6px; }



/* ---------------------------------------------------------------------
 * 8.6 提示 / 錯誤 / 攔截頁（showmessage）
 *     showmessage 仍輸出 #nav + #wrap + .main + .content 舊骨架，
 *     在已重構頁面內接管為與主題一致的卡片。
 * --------------------------------------------------------------------- */
body.dz-modern #nav {
  width: auto; max-width: 1280px; margin: 0 auto; padding: 14px 24px 0;
  background: none; border: 0; color: var(--dz-muted); font-size: 13px; line-height: 1.7; text-indent: 0;
}
body.dz-modern #nav a { color: var(--dz-link); }
body.dz-modern #wrap {
  width: auto; max-width: 1280px; min-height: 0; margin: 0 auto; padding: 14px 24px 44px;
  background: transparent; border: 0;
}
body.dz-modern #wrap > .main,
body.dz-modern #wrap > .main > .content { padding: 0; background: transparent; }
body.dz-modern #wrap .mainbox,
body.dz-modern #wrap .content { background: transparent; }
body.dz-modern #wrap button.submit,
body.dz-modern #wrap input[type="submit"] {
  min-height: 34px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--dz-radius-sm);
  background: var(--dz-brand-strong); color: var(--dz-on-brand);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
body.dz-modern #wrap button.submit:hover,
body.dz-modern #wrap input[type="submit"]:hover { background: var(--dz-link-hover); }

body.dz-modern .alert_win {
  width: auto; max-width: 640px; margin: 0 auto; padding: 24px 26px;
  background: var(--dz-surface); border: 1px solid var(--dz-border);
  border-radius: var(--dz-radius); box-shadow: var(--dz-shadow);
}
body.dz-modern .alert_win .float_ctrl { padding: 0 0 14px; border-bottom: 1px solid var(--dz-border-soft); }
body.dz-modern .alert_win .shadowline { display: none; }
body.dz-modern .alert_win .postbox { padding: 0; }
body.dz-modern .alert_right,
body.dz-modern .alert_error,
body.dz-modern .alert_info {
  padding: 0 0 0 14px; background: none;
  border-left: 3px solid var(--dz-success);
  font-size: 13.5px; line-height: 1.85; color: var(--dz-text-3);
}
body.dz-modern .alert_error { border-left-color: var(--dz-accent); }
body.dz-modern .alert_right p, body.dz-modern .alert_error p, body.dz-modern .alert_info p { margin-bottom: 6px; }
body.dz-modern .alert_act { margin-top: 18px; padding: 14px 0 0; border-top: 1px dashed var(--dz-border); }
body.dz-modern .gateform .formtable { width: 100%; }
body.dz-modern .gateform .formtable th { width: 150px; padding: 6px 12px 6px 0; text-align: right; font-size: 13px; }
body.dz-modern .gateform .formtable td { padding: 6px 0; }
body.dz-modern .alert_btnleft a { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------------
 * 8.7 兼容未重写的旧子模板输出（index_header / index_heats / seccheck ...）
 * --------------------------------------------------------------------- */
body .dz-slot > .mainbox,
body .dz-slot > .pages_btns,
body .dz-slot > #ann,
body .dz-slot > #hot {
  padding: 12px 16px; background: var(--dz-surface); border: 1px solid var(--dz-border);
  border-radius: var(--dz-radius); box-shadow: var(--dz-shadow); font-size: 13px;
}
body .dz-slot table { width: 100%; border-collapse: collapse; }
body .dz-slot td, body .dz-slot th { padding: 5px 8px; }
body .dz-slot a { color: var(--dz-link); }
body .dz-slot .pages_btns { color: var(--dz-text-3); }
.dz-modern #ann { display: flex; align-items: flex-start; gap: 12px; background: var(--dz-warn-soft); border-color: var(--dz-warn-border); }
.dz-modern #ann dt { color: var(--dz-warn); font-weight: 600; white-space: nowrap; }
.dz-modern #ann dd { flex: 1 1 auto; min-width: 0; }
.dz-modern #annbody ul { display: flex; flex-direction: column; gap: 4px; }
.dz-modern #annbodylis em { margin-left: 6px; color: var(--dz-muted); font-size: 11px; }
.dz-modern #hot h3 { margin-bottom: 10px; }
.dz-modern #hot_main dl { display: flex; flex-direction: column; gap: 8px; }
.dz-modern #hot_main dt { display: flex; gap: 8px; }
.dz-modern #hot_main ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
body .dz-links__row .forumcontent { padding: 10px 12px; border: 1px solid var(--dz-border); border-radius: var(--dz-radius-sm); background: var(--dz-surface-soft); }
body .dz-links__row .forumcontent h5 { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
body .dz-links__row .forumcontent p { color: var(--dz-muted); font-size: 12px; }
body .dz-fastpost__seccheck table td { padding: 4px 6px; }

/* 旧主题的浮动 / 表格残留（个人中心、登录页里的零散 table） */
body.dz-modern .mainbox,
body.dz-modern .postbox { background: transparent; }
body.dz-modern .float_ctrl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 0 0 12px; border: 0; }
body.dz-modern .float_ctrl em { font-style: normal; font-weight: 650; font-size: 15px; }
body.dz-modern .float_ctrl .float_close { font-size: 12px; color: var(--dz-muted); }

/* ---------------------------------------------------------------------
 * 9. 页脚 —— 单列居中
 * --------------------------------------------------------------------- */
body .dz-footerads { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 20px; }
body .dz-footer { margin-top: 12px; background: var(--dz-deep); color: var(--dz-deep-text); border-top: 1px solid transparent; }
body .dz-footer__inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding-top: 26px; padding-bottom: 26px;
  text-align: center; font-size: 12.5px;
}
body .dz-footer__brand { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; }
body .dz-footer__brand i { color: var(--dz-deep-accent); }
body .dz-footer a { color: var(--dz-deep-link); }
body .dz-footer a:hover { color: #fff; }
body .dz-footer__stat { color: var(--dz-deep-muted); }
body .dz-footer__links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
body .dz-footer__links a { display: inline-flex; align-items: center; gap: 5px; }
body .dz-footer__separator { width: 1px; height: 12px; background: rgba(255, 255, 255, .16); }
body .dz-footer__meta {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--dz-deep-muted); font-size: 12px;
}
body .dz-footer__debug { font-size: 11px; opacity: .75; }

/* ---------------------------------------------------------------------
 * 9.5 旧主题 id 规则覆盖
 *     #myprompt / #myprompt_menu 仍被 common.js 与新私信检查模板依赖，
 *     不能移除 id；用更高特异性压掉旧主题的 GIF 背景与浮动布局。
 * --------------------------------------------------------------------- */
body .dz-usermenu #myprompt.new,
body .dz-usermenu #myprompt.dz-has-badge {
  padding-left: 9px; background: none; color: #ffd7a1;
}
body #myprompt_menu .dz-promptmenu__list > li { float: none; width: auto; }
body #myprompt_menu .dz-promptmenu__list a { float: none; }

/* ---------------------------------------------------------------------
 * 9.6 全局 AJAX 等待提示（#ajaxwaitid）
 *
 * 三个来源，改样式时三者要一起看：
 *   容器  templates/default/header.htm    <div id="ajaxwaitid"></div>
 *   文案  include/js/common.js:showloading()  默认「頁面加載中...」
 *   样式  templates/default/css_common.htm    旧红底规则（已改为仅 display:none）
 *
 * 为什么会出现在登录后：common.js 底部在 discuz_uid 存在且未设置 checkpm
 * cookie 时，会于 window.onload 执行 pmchecknew() → ajaxget('pm.php?checknewpm')
 * 并把 ajaxwaitid 作为 waitid 传入，ajaxget 内部再调 showloading() 显示本元素。
 * 所以每页右上角都会闪一下旧的红底方块。
 *
 * 显隐由 JS 直接写 style.display（block / none），无法用 flex 布局，
 * 指示器改用 ::before 内联块 + vertical-align 对齐。
 * 用 body 前缀提高特异性（0,1,1 > 0,1,0），稳稳压掉 css_common.htm 的旧规则。
 * --------------------------------------------------------------------- */
body #ajaxwaitid {
  display: none;                          /* 默认隐藏，显隐交给 showloading() */
  position: fixed;                        /* 固定视口，页面滚动时不跟随 */
  top: 16px;
  right: 16px;
  z-index: 4000;                          /* 与 .dz-toast 同层，压过页头与下拉面板 */
  width: auto;                            /* 旧规则锁死 100px 会截断文案 */
  height: auto;
  padding: 8px 15px 8px 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;                   /* 胶囊形，替换旧的红底直角方块 */
  background: rgba(24, 42, 82, .95);      /* 与 .dz-toast 同一深色系 */
  color: #eef3ff;
  font: 500 12.5px/1.5 var(--dz-font);
  letter-spacing: .01em;
  white-space: nowrap;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(23, 43, 88, .22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;                   /* 纯提示，不拦截右上角头像/通知的点击 */
  animation: dz-ajaxwait-in .18s ease-out both;
}
/* 旋转指示器：浅色轨道 + 品牌亮弧，替代旧版纯文字 */
body #ajaxwaitid::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .24);
  border-top-color: var(--dz-deep-accent);
  border-radius: 50%;
  animation: dz-ajaxwait-spin .7s linear infinite;
}
@keyframes dz-ajaxwait-spin { to { transform: rotate(360deg); } }
/* display:none → block 会重启动画，因此每次调用都有淡入上浮效果 */
@keyframes dz-ajaxwait-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  body #ajaxwaitid { animation: none; }
  body #ajaxwaitid::before { animation-duration: 2.4s; }
}

/* ---------------------------------------------------------------------
 * 10. 桌面范围内的响应式（不做 <1024px 移动端适配）
 * --------------------------------------------------------------------- */
@media (min-width: 1600px) {
  body .dz-shell { max-width: 1440px; }
}
@media (max-width: 1279px) {
  body .dz-shell { padding: 0 16px; }
  body .dz-thread,
  body .dz-threadlist.has-check .dz-thread { grid-template-columns: 40px minmax(0, 1fr) 120px 80px 150px; }
  body .dz-threadlist.has-check .dz-thread { grid-template-columns: 24px 40px minmax(0, 1fr) 120px 80px 150px; }
  body .dz-forum, body .dz-subforum { grid-template-columns: 46px minmax(0, 1fr) 120px 190px; gap: 12px; }
  body .dz-forum__stats { gap: 10px; }
  body .dz-post { grid-template-columns: 180px minmax(0, 1fr); }
  body .dz-forumheader__top { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); }
  body .dz-auth__grid { grid-template-columns: 330px 420px; width: 750px; max-width: 100%; }
  body .dz-uc__layout { grid-template-columns: 200px minmax(0, 1fr); }
  body .dz-form { padding-left: 18px; padding-right: 18px; }
  body .dz-form .formtable th { width: 140px; }
}
@media print {
  body .dz-header, body .dz-footer, body .dz-toolbar,
  body .dz-postactions, body .dz-breadcrumb { display: none !important; }
  body .dz-post { box-shadow: none; break-inside: avoid; }
}

