/* ==========================================================================
   江苏省海门中学学生论坛 · 视觉系统
   参考 B 站：白底卡片 + 粉蓝主色 + 圆角 + 轻投影；全部使用 CSS 变量，可切暗色
   ========================================================================== */
* { box-sizing: border-box; }
/* hidden 属性要能压过组件自身的 display（如 .icon-btn 的 grid） */
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-blue); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--brand-blue-dark); }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 0.8em; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; vertical-align: middle; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--pink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
/* ---------------- 顶部导航 ---------------- */
.topbar-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark) 60%, var(--brand-orange));
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 3px 10px rgba(42, 147, 206, 0.3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 15px; letter-spacing: 0.2px; }
.brand-text small { color: var(--text-3); font-size: 11px; }
.topnav { display: flex; align-items: center; gap: 2px; }
.topnav-link:hover { background: var(--line-2); color: var(--text); }
.topnav-link.is-active { color: var(--brand-blue-deep); font-weight: 600; background: var(--brand-blue-soft); }
[data-theme="dark"] .topnav-link.is-active { color: var(--brand-blue); }
.topsearch { position: relative; flex: 1; max-width: 280px; margin-left: auto; }
.topsearch input::placeholder { color: var(--text-3); }
.topsearch button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.topsearch button:hover { color: var(--pink); }
.topactions { display: flex; align-items: center; gap: 8px; flex: none; }
.dot-badge {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
  font-weight: 600;
}
.usermenu { position: relative; }
.usermenu-trigger:hover { background: var(--line-2); }
.usermenu-name { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu-head {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.usermenu-head strong { font-size: 14px; }
.usermenu-panel a, .usermenu-panel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.usermenu-panel a:hover, .usermenu-panel button:hover { background: var(--line-2); color: var(--text); }
.usermenu-logout { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line-2); }
.usermenu-logout button { color: var(--red); }
.mini-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
}
/* ---------------- 公告条 ---------------- */
.notice-strip { background: linear-gradient(90deg, var(--brand-blue-soft), var(--bg-soft)); border-bottom: 1px solid var(--line); }
.notice-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.notice-tag {
  flex: none;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.notice-text {
  color: var(--text-2);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-more { flex: none; font-size: 12px; color: var(--pink); }
/* ---------------- 主体与栅格 ---------------- */
.layout-3 { display: grid; grid-template-columns: 200px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.layout-2 { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.layout-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spacer { flex: 1; }
.sticky { position: sticky; top: calc(var(--header-h) + 16px); }
/* ---------------- 卡片 ---------------- */
.card + .card { margin-top: 16px; }
.card-title::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-orange));
}
.card-more { font-size: 12px; color: var(--text-3); }
.card-more:hover { color: var(--pink); }
.card-body-tight { padding: 8px; }
.card-body-flush { padding: 0; }
.card-foot { padding: 12px 16px; border-top: 1px solid var(--line-2); background: var(--card-2); }
/* ---------------- 按钮 ---------------- */
/* 橙色 CTA：只给「发帖」这类唯一主角按钮 */
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }
/* ---------------- 标签 / 徽章 / 头像 ---------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 18px;
  background: var(--line-2);
  color: var(--text-2);
  white-space: nowrap;
}
.pill-pink { background: var(--pink-soft); color: var(--pink); }
.pill-blue { background: var(--blue-soft); color: var(--blue); }
.pill-green { background: rgba(41, 181, 107, 0.12); color: var(--green); }
.pill-orange { background: rgba(255, 149, 0, 0.14); color: var(--orange); }
.pill-red { background: rgba(244, 82, 77, 0.12); color: var(--red); }
.pill-purple { background: rgba(139, 92, 246, 0.14); color: var(--purple); }
.pill-level { background: var(--pink-soft); color: var(--pink); font-weight: 600; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  height: 19px;
  border-radius: 4px;
  background: var(--line-2);
  color: var(--text-3);
  font-size: 11px;
}
.tag-pin { background: var(--pink-soft); color: var(--pink); }
.tag-pending { background: rgba(255, 149, 0, 0.14); color: var(--orange); }
.tag-anon { background: var(--blue-soft); color: var(--blue); }
.avatar-xs { width: 26px; height: 26px; font-size: 12px; }
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-xl { width: 88px; height: 88px; font-size: 30px; }
.avatar-wrap { position: relative; display: inline-flex; flex: none; }
/* ---------------- 侧边分区导航 ---------------- */
.sidenav { display: flex; flex-direction: column; gap: 14px; }
.sidenav-group-title {
  font-size: 12px;
  color: var(--text-3);
  padding: 0 12px 5px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.sidenav-list { display: flex; flex-direction: column; gap: 1px; }
.sidenav-link.is-active { background: var(--brand-blue-soft); color: var(--brand-blue-deep); font-weight: 600; }
[data-theme="dark"] .sidenav-link.is-active { color: var(--brand-blue); }
.sidenav-link span.ico { font-size: 14px; width: 16px; text-align: center; }
/* ---------------- 页面头 ---------------- */
.page-head .sub { color: var(--text-3); font-size: 13px; margin-top: 4px; }
/* ---------------- 帖子列表 ---------------- */
.post-list { display: flex; flex-direction: column; }
.post-item:last-child { border-bottom: 0; }
.post-avatar { flex: none; padding-top: 2px; }
.post-main { min-width: 0; flex: 1; }
.post-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-title a:hover { color: var(--brand-blue-dark); }
.post-excerpt {
  color: var(--text-2);
  font-size: 13px;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 7px;
  color: var(--text-3);
  font-size: 12px;
}
.post-meta .author { color: var(--text-2); font-weight: 500; }
.post-meta .dot::before { content: "·"; }
.post-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 12px;
}
.post-stats span { display: inline-flex; align-items: center; gap: 3px; }
/* ---------------- 表单 ---------------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row-inline { display: flex; align-items: center; gap: 10px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-label .req { color: var(--pink); margin-left: 2px; }
.input, .textarea, .select {
  width: 100%;
  padding: 8px 11px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(42, 147, 206, 0.16);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.input-sm { height: 30px; padding: 0 9px; font-size: 13px; }
.hint { font-size: 12px; color: var(--text-3); }
.hint-warn { color: var(--orange); }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.checkbox-row input { margin-top: 3px; accent-color: var(--pink); }
.fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card-2);
}
.fieldset legend { font-size: 13px; font-weight: 600; padding: 0 6px; color: var(--text-2); }
.error-text { color: var(--red); font-size: 12px; }
.form-actions { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.char-count { font-size: 11px; color: var(--text-3); text-align: right; }
/* ---------------- 空状态 / 分页 ---------------- */
.empty { padding: 48px 20px; text-align: center; color: var(--text-3); }
.empty-title { font-size: 14px; color: var(--text-2); margin-bottom: 4px; }
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  flex-wrap: wrap;
}
.pager a, .pager span {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-2);
  font-size: 13px;
}
.pager a:hover { border-color: var(--pink); color: var(--pink); }
.pager .is-current { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; font-weight: 600; }
.pager .is-disabled { opacity: 0.45; pointer-events: none; }
.pager-info { color: var(--text-3); font-size: 12px; }
/* ---------------- 统计 / 榜单 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.stat { background: var(--card-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.stat-num { font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.rank-list { display: flex; flex-direction: column; }
.rank-row:last-child { border-bottom: 0; }
.rank-row .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-row .value { color: var(--pink); font-weight: 600; font-variant-numeric: tabular-nums; }
/* ---------------- 等级条 ---------------- */
.level-bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
/* ---------------- 标签页 ---------------- */
[data-theme="dark"] .tab.is-active { color: var(--brand-blue); }
/* ---------------- 表格（管理后台） ---------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:hover { background: var(--card-2); }
.table td.nowrap, .table th.nowrap { white-space: nowrap; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
/* ---------------- flash / toast ---------------- */
.flash-stack {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 420px);
}
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: flash-in 0.2s ease-out;
}
.flash-success { border-left: 3px solid var(--green); }
.flash-error { border-left: 3px solid var(--red); }
.flash-info { border-left: 3px solid var(--blue); }
.flash-warn { border-left: 3px solid var(--orange); }
.flash-close {
  border: 0;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
@keyframes flash-in{ from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* ---------------- 回顶 ---------------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-2);
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 90;
  font-size: 16px;
}
.back-top:hover { color: var(--pink); border-color: var(--pink); }
/* ---------------- 页脚 ---------------- */
.app-footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 28px; }
.app-footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 22px 20px 30px; text-align: center; }
.footer-brand { font-size: 13px; color: var(--text-2); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0;
  font-size: 13px;
}
.footer-note { font-size: 12px; color: var(--text-3); margin: 4px 0; }
/* ---------------- 通用工具类 ---------------- */
.muted { color: var(--text-3); }
.muted-2 { color: var(--text-2); }
.small { font-size: 12px; }
.strong { font-weight: 600; }
.text-pink { color: var(--pink); }
.text-blue { color: var(--blue); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--line-2); margin: 14px 0; border: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }
.break { word-break: break-word; overflow-wrap: anywhere; }
/* 富文本正文 */
.rich { color: var(--text); font-size: 14.5px; line-height: 1.85; word-break: break-word; }
.rich p { margin: 0 0 0.75em; }
.rich blockquote {
  margin: 0.6em 0;
  padding: 8px 12px;
  border-left: 3px solid var(--pink);
  background: var(--card-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-2);
}
.rich ul { margin: 0.5em 0; padding-left: 1.4em; }
.rich code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--line-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.rich a { text-decoration: underline; }
/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px){
  .layout-3 { grid-template-columns: 1fr 280px; }
  .layout-3 > .col-left { display: none; }
  .topsearch { max-width: 200px; }
}
@media (max-width: 900px){
  .layout-2, .layout-3, .layout-main { grid-template-columns: minmax(0, 1fr); }
  .layout-2 > .col-left, .layout-main > .col-right, .layout-3 > .col-right { display: block; }
  .topnav { display: none; }
  .sticky { position: static; }
}
@media (max-width: 640px){
  :root { --header-h: 56px; }
  .app-main { padding: 12px; }
  .topbar-inner { padding: 0 12px; gap: 10px; }
  .brand-text small { display: none; }
  .topsearch { display: none; }
  .post-item { padding: 12px 12px; }
  .post-excerpt { -webkit-line-clamp: 1; }
  .notice-strip-inner { padding: 7px 12px; }
  .card-body { padding: 13px; }
  .page-head { padding: 14px; flex-direction: column; align-items: stretch; }
  .usermenu-name { display: none; }
  .flash-stack { top: auto; bottom: 16px; }
}
@media print{
  .topbar, .app-footer, .back-top, .notice-strip { display: none; }
}
/* ==========================================================================
   v2 · 校徽体系 + 清爽化 + 动效层
   ========================================================================== */
/* ---------------- 校徽 ---------------- */
.brand-emblem {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
}
.brand-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* 校徽保持静止：不加进入动画、不加悬停变换 */
  filter: drop-shadow(0 2px 6px rgba(42, 147, 206, 0.16));
}
/* 落地页 / 登录页的大校徽 */
.emblem-hero {
  width: 84px;
  height: 84px;
  flex: none;
  display: block;
  filter: drop-shadow(0 8px 22px rgba(27, 39, 51, 0.18));
}
.emblem-md {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(42, 147, 206, 0.18));
}
.emblem-mini { width: 20px; height: 20px; vertical-align: -4px; opacity: 0.85; }
/* ---------------- 清爽化 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-2);
}
.card-body { padding: 18px; }
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.page-head h1 { font-size: 21px; letter-spacing: -0.2px; }
h1, h2, h3, .card-title { letter-spacing: -0.01em; }
.card-title {
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}
.table th {
  color: var(--text-3);
  font-weight: 500;
  font-size: 12px;
  background: transparent;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.topsearch input {
  width: 100%;
  height: 34px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.topsearch input:focus { border-color: var(--pink); background: var(--card); }
.pill, .tag { border-radius: var(--radius-sm); }
/* 顶栏：滚动后浮起 */
/* ---------------- 关键帧 ---------------- */
@keyframes fadeUp{
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn{
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popIn{
  0%   { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes barGrow{
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes floatY{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
/* ---------------- 进入动画与交错 ----------------
   只作用于卡片与列表项，避开 sticky 容器
   ------------------------------------------------ */
.card, .page-head, .sidenav, .post-item, .rank-row, .stat, .flash { animation: fadeUp 0.44s var(--ease) both; }
.post-list > .post-item:nth-child(2), .rank-list > .rank-row:nth-child(2),
.stack > *:nth-child(2), .stat-grid > .stat:nth-child(2) { animation-delay: 0.04s; }
.post-list > .post-item:nth-child(3), .rank-list > .rank-row:nth-child(3),
.stack > *:nth-child(3), .stat-grid > .stat:nth-child(3) { animation-delay: 0.08s; }
.post-list > .post-item:nth-child(4), .rank-list > .rank-row:nth-child(4),
.stack > *:nth-child(4), .stat-grid > .stat:nth-child(4) { animation-delay: 0.12s; }
.post-list > .post-item:nth-child(5), .rank-list > .rank-row:nth-child(5),
.stack > *:nth-child(5) { animation-delay: 0.16s; }
.post-list > .post-item:nth-child(6), .rank-list > .rank-row:nth-child(6),
.stack > *:nth-child(6) { animation-delay: 0.2s; }
.post-list > .post-item:nth-child(n + 7), .rank-list > .rank-row:nth-child(n + 7),
.stack > *:nth-child(n + 7) { animation-delay: 0.24s; }
/* 进度条载入时从左侧长出 */
.level-bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
  transition: width var(--t-slow) var(--ease);
  transform-origin: left center;
  animation: barGrow 1s var(--ease) both;
}
/* 空状态插图轻微浮动 */
.empty-icon {
  font-size: 34px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.8;
  animation: floatY 3.2s ease-in-out infinite;
}
/* 懒加载图片淡入 */
img[loading="lazy"] { animation: fadeIn 0.45s var(--ease) both; }
/* ---------------- 交互反馈 ---------------- */
.post-item {
  display: flex;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-2);
  transition: background var(--t) var(--ease);
  position: relative;
}
.post-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-orange));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform var(--t) var(--ease);
}
.post-item:hover::before { transform: scaleY(1); }
.post-item:hover { background: linear-gradient(90deg, var(--brand-blue-soft), transparent 55%); }
.post-title a { color: inherit; transition: color var(--t-fast) var(--ease); }
.topnav-link {
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.sidenav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}
.sidenav-link:hover { background: var(--line-2); color: var(--text); padding-left: 16px; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line-2);
  flex: none;
  transition: transform var(--t) var(--ease-spring), box-shadow var(--t) var(--ease);
}
a:hover > .avatar, a:hover > .avatar-fallback, .avatar-wrap:hover .avatar {
  transform: scale(1.07);
  box-shadow: 0 0 0 2px var(--brand-blue-soft);
}
.tab {
  padding: 11px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.tab:hover { color: var(--brand-blue); }
.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.rank-row:hover { background: var(--card-2); transform: translateX(3px); }
.usermenu-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  transition: background var(--t-fast) var(--ease);
}
.rank-row:hover .rank-badge { transform: scale(1.12); }
/* 主题切换的平滑过渡 */
body, .card, .topbar, .app-footer, .input, .textarea, .select { transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease); }
/* 尊重系统「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* 落地页英雄区：校徽蓝为底，橙色做点缀，去掉原先的粉蓝厚渐变 */
.hero-panel {
  position: relative;
  padding: 46px 38px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(225, 122, 48, 0.45), transparent 46%),
    linear-gradient(135deg, var(--brand-blue-deep), var(--brand-blue) 58%, var(--brand-blue-dark));
  overflow: hidden;
}
.hero-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  animation: floatY 7s ease-in-out infinite;
}
.hero-panel > * { position: relative; z-index: 1; }
/* 暗色下英雄区单独取深蓝，不能复用 --brand-blue-deep（那个在暗色里是给文字用的浅蓝） */
[data-theme="dark"] .hero-panel {
  background:
    radial-gradient(circle at 88% 12%, rgba(225, 122, 48, 0.3), transparent 46%),
    linear-gradient(135deg, #10303f, #17455c 58%, #0e2634);
}
[data-theme="dark"] .hero-panel::after { background: rgba(255, 255, 255, 0.04); }
/* ==========================================================================
   v3 · 简笔图标 + 主页首屏（动画驱动）
   ========================================================================== */
/* ---------------- 简笔图标 ---------------- */
.ic {
  /* 尺寸由 svg 的 width/height 属性控制，不要让 CSS 覆盖，否则各处无法分别设定大小 */
  display: inline-block;
  vertical-align: -0.14em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
/* ---------------- 滚动进场（无障碍安全） ----------------
   默认内容可见；只有 JS 成功执行并加上 html.js 之后才启用隐藏动画
   ---------------------------------------------------------- */
/* ---------------- 主页首屏 ---------------- */
@keyframes blobA{
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(40px, 26px, 0) scale(1.08); }
}
@keyframes blobB{
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-34px, 34px, 0) scale(1.12); }
}
@keyframes blobC{
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-52px, -30px, 0) scale(1.06); }
}
/* ---------------- 公告条 ---------------- */
/* ---------------- 小屏 ---------------- */
@media (max-width: 640px){
  .hp-feats { grid-template-columns: 1fr; }
}
/* ==========================================================================
   v4 · 按键毛玻璃化
   不用 color-mix（老 WebView 不支持会让整条声明失效），一律用 rgba 明确取值
   ========================================================================== */
/* ---------------- 按键基础形态 ---------------- */
/* 顶部高光：毛玻璃的"上一层玻璃"感 */
[data-theme="dark"] .btn::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 52%); }
.btn:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}
/* ---------------- 主色（蓝）玻璃 ---------------- */
.btn-primary::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 55%); }
/* ---------------- 强调（橙）玻璃 ---------------- */
.btn-accent::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 55%); }
/* ---------------- 幽灵 / 危险 / 尺寸 ---------------- */
.btn-ghost::before { display: none; }
.btn-danger { color: var(--red); border-color: var(--line); }
.btn-danger:hover {
  background: linear-gradient(180deg, rgba(229, 72, 77, 0.94), rgba(200, 55, 60, 0.94));
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 14px -3px rgba(229, 72, 77, 0.6);
}
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn-lg { height: 44px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
/* 选中态（点赞、筛选等）保持玻璃质感 */
.btn:disabled, .btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn:disabled:hover, .btn.is-disabled:hover { transform: none; }
/* ---------------- 顶栏图标按钮：玻璃圆 ---------------- */
.icon-btn:active { transform: translateY(0) scale(0.96); }
.icon-btn:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
/* ---------------- 顶栏本身做成常驻毛玻璃 ---------------- */
/* ---------------- 用户菜单：玻璃面板 ---------------- */
/* ---------------- 落地页首屏的两个按钮 ---------------- */
/* 减少透明效果偏好时，退回实体按钮，保证可读性 */
@media (prefers-reduced-transparency: reduce){
  .btn, .icon-btn, .topbar, .usermenu-panel {
    background: var(--card);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
/* ==========================================================================
   v5 · 主页极简版（只留首屏 + 两行文字入口）
   ========================================================================== */
.hm { display: flex; flex-direction: column; }
.hm-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hm-blob { position: absolute; border-radius: 50%; filter: blur(52px); opacity: 0.5; }
.hm-blob-a {
  width: 440px;
  height: 440px;
  left: -110px;
  top: -150px;
  background: rgba(42, 147, 206, 0.8);
  animation: blobA 24s ease-in-out infinite;
}
.hm-blob-b {
  width: 380px;
  height: 380px;
  right: -90px;
  top: -70px;
  background: rgba(225, 122, 48, 0.5);
  animation: blobB 29s ease-in-out infinite;
}
.hm-blob-c {
  width: 560px;
  height: 560px;
  left: 34%;
  bottom: -320px;
  background: rgba(23, 96, 127, 0.85);
  animation: blobC 33s ease-in-out infinite;
}
.hm-emblem {
  width: 104px;
  height: 104px;
  display: block;
  margin: 0 auto 26px;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.38));
}
.hm-title {
  font-size: clamp(23px, 3.1vw, 38px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.4px;
  margin: 0 0 16px;
}
.hm-motto {
  font-size: 12.5px;
  letter-spacing: 0.44em;
  padding-left: 0.44em;
  opacity: 0.76;
  margin: 0 0 22px;
}
.hm-sub {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.84;
  max-width: 460px;
  margin: 0 auto 34px;
}
.hm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hm-meta {
  margin: 46px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  opacity: 0.62;
}
.hm-meta b {
  font-weight: 600;
  opacity: 1;
  font-variant-numeric: tabular-nums;
  margin: 0 1px;
}
/* 首屏元素依次淡入（校徽除外） */
.hm-inner > .hm-title { animation: fadeUp 0.72s var(--ease) both; animation-delay: 0.04s; }
.hm-inner > .hm-motto { animation: fadeUp 0.72s var(--ease) both; animation-delay: 0.12s; }
.hm-inner > .hm-sub { animation: fadeUp 0.72s var(--ease) both; animation-delay: 0.18s; }
.hm-inner > .hm-actions { animation: fadeUp 0.72s var(--ease) both; animation-delay: 0.26s; }
.hm-inner > .hm-meta { animation: fadeUp 0.72s var(--ease) both; animation-delay: 0.34s; }
/* 纯文字入口：一行分区、一行栏目，不用卡片 */
.hm-links-label {
  font-size: 11.5px;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  color: var(--text-3);
  margin: 0 0 12px;
}
.hm-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  max-width: 780px;
  margin: 0 auto;
}
.hm-links-row a:hover { color: var(--brand-blue); background: var(--brand-blue-soft); }
@media (max-width: 640px){
  .hm-hero { border-radius: 20px; min-height: 68vh; }
  .hm-inner { padding: 52px 20px 44px; }
  .hm-emblem { width: 82px; height: 82px; margin-bottom: 20px; }
  .hm-motto { letter-spacing: 0.28em; padding-left: 0.28em; font-size: 11.5px; }
  .hm-sub { font-size: 13.5px; margin-bottom: 26px; }
  .hm-meta { margin-top: 34px; font-size: 11.5px; }
  .hm-links { padding: 28px 0 4px; }
  .hm-links-row a { padding: 7px 11px; font-size: 13px; }
}
/* 访客页主按钮：白底 + 品牌橙字，在深色首屏上最醒目 */
.hm-btn-solid::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)); }
/* ==========================================================================
   v6 · 首页向下滚动的内容层 + 丝滑揭示动画
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* 顶部滚动进度条（很细，不抢视线） */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  z-index: 200;
  pointer-events: none;
  background: transparent;
}
.scroll-progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
  transition: width 0.08s linear;
}
/* ---------------- 第一屏：下拉提示 ---------------- */
.hm-scrollhint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  color: rgba(255, 255, 255, 0.72);
  z-index: 2;
  animation: fadeIn 1s var(--ease) 0.8s both;
  transition: opacity var(--t) var(--ease);
}
.hm-scrollhint:hover { color: #fff; }
.hm-scrollhint .ic { animation: hintBob 2.2s ease-in-out infinite; }
@keyframes hintBob{
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50%      { transform: translateY(5px); opacity: 1; }
}
.hm-scrollhint.is-hidden { opacity: 0; pointer-events: none; }
/* 首屏随滚动轻微上浮淡出（视差） */
.hm-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  padding: 76px 32px 64px;
  text-align: center;
  will-change: transform, opacity;
}
/* ---------------- 内容层容器 ---------------- */
/* ---------------- 数据带 ---------------- */
.hm-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hm-band-item:hover { background: var(--card-2); }
/* ---------------- 区块标题 ---------------- */
.hm-block-more:hover { color: var(--brand-blue); }
/* ---------------- 卡片栅格 ---------------- */
.hm-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow);
  color: var(--text);
}
.hm-card:hover .hm-card-ic {
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
  transform: scale(1.07) rotate(-4deg);
}
.hm-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-card-go {
  position: absolute;
  right: 16px;
  top: 18px;
  color: var(--text-3);
  transition: transform var(--t) var(--ease), color var(--t) var(--ease);
}
.hm-card-tall:hover .hm-card-go { transform: translateX(3px); color: var(--brand-orange); }
/* ---------------- 热帖列表 ---------------- */
.hm-hotlist { display: flex; flex-direction: column; }
.hm-hot:last-child { border-bottom: 0; }
.hm-hot:hover { background: var(--card-2); padding-left: 12px; color: var(--text); border-radius: 10px; }
.hm-hot:nth-child(1) .hm-hot-no { color: var(--brand-orange); }
.hm-hot-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* ---------------- 公告条 ---------------- */
.hm-noticebar:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-sm); color: var(--text); }
.hm-noticebar-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
}
.hm-noticebar-time { flex: none; font-size: 12px; color: var(--text-3); }
.hm-noticebar-go { flex: none; color: var(--text-3); display: inline-flex; }
/* ---------------- 更丝滑的揭示动画 ----------------
   位移更远、时长更长、只动 transform/opacity
   ---------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.82s var(--ease), transform 0.82s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.js [data-reveal].is-in { opacity: 1; transform: translate3d(0, 0, 0); }
/* 首屏以下内容块的入场稍微放大一点，制造层次 */
html.js .hm-grid [data-reveal] { transform: translate3d(0, 22px, 0) scale(0.985); }
html.js .hm-grid [data-reveal].is-in { transform: translate3d(0, 0, 0) scale(1); }
@media (max-width: 900px){
  .hm-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .hm-below { padding-top: 40px; gap: 40px; }
  .hm-band-item { padding: 16px 10px; }
  .hm-band-item b { font-size: 22px; }
  .hm-grid-sec { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
  .hm-grid-feat { grid-template-columns: 1fr; }
  .hm-card { padding: 13px; }
  .hm-hot { padding: 13px 4px; }
  .hm-scrollhint { display: none; }
}
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hm-scrollhint .ic { animation: none; }
}
/* ==========================================================================
   v7 · 首页再延长一段（最新发布 / 在线同学 / 活跃榜 / 公告列表）
   ========================================================================== */
.hm-hot-plain { padding-left: 6px; }
.hm-hot-plain:hover { padding-left: 14px; }
/* 两列并排 */
/* 在线同学 */
.hm-online-item:hover {
  transform: translateY(-1px);
  border-color: var(--brand-blue);
  color: var(--brand-blue-dark);
}
/* 公告列表 */
@media (max-width: 900px){
  .hm-two { grid-template-columns: 1fr; gap: 40px; }
}
/* ==========================================================================
   v8 · 毛玻璃做实 + 首页下方板块放大 + 论坛介绍
   ========================================================================== */
/* ---------------- 1. 毛玻璃：让磨砂感真的看得见 ----------------
   纯白半透明叠在白卡片上等于白底，看不出磨砂。
   这里加三层：蓝调薄雾底 + 更强模糊 + 顶边高光与细亮边。
   ---------------------------------------------------------------- */
/* 深色变量：必须用 :root[data-theme="dark"] 提权——
   浅色 :root 在文件更后面，同特异性（0,1,0）会把深色变量覆盖掉，
   表现为「只有导航变黑、内容仍是白的」。 */
:root[data-theme="dark"] {
  --brand-blue:        #4aa8da;
  --brand-blue-dark:   #3b93c2;
  --brand-blue-deep:   #7cc4e8;
  --brand-blue-soft:   #122c3a;
  --brand-orange:      #ef9251;
  --brand-orange-dark: #d97b3a;
  --brand-orange-soft: #33241a;
  --bg: #0f1419;
  --bg-soft: #131a20;
  --card: #19212a;
  --card-2: #1e2731;
  --text: #e6edf3;
  --text-2: #a2b2c0;
  --text-3: #6f8090;
  --line: #253039;
  --line-2: #1d262e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 10px 26px -16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 14px 44px -12px rgba(0, 0, 0, 0.8);
  --glass-bg:        rgba(30, 38, 47, 0.62);
  --glass-bg-hover:  rgba(38, 48, 59, 0.8);
  --glass-border:    rgba(255, 255, 255, 0.08);
  --glass-line:      rgba(255, 255, 255, 0.1);
  --glass-inner:     inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --glass-shadow:    0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 26px -14px rgba(0, 0, 0, 0.75);
  --frost-top:    rgba(58, 72, 86, 0.72);
  --frost-bottom: rgba(30, 41, 52, 0.68);
  --frost-line:   rgba(255, 255, 255, 0.14);
  --frost-edge:   rgba(255, 255, 255, 0.06);
  --frost-blur:   blur(18px) saturate(180%);
}
[data-theme="dark"] .btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 var(--frost-edge),
    0 2px 6px -2px rgba(0, 0, 0, 0.45),
    0 10px 26px -18px rgba(0, 0, 0, 0.8);
}
[data-theme="dark"] .btn:hover { background: linear-gradient(180deg, rgba(72, 88, 104, 0.85), rgba(38, 52, 64, 0.8)); }
/* 图标按钮同样是磨砂圆 */
/* 主色 / 强调按钮：彩色磨砂，保留色相但加磨砂层次 */
/* 首屏的两个按钮：在深色底上做磨砂 */
/* ---------------- 2. 首页下方板块整体放大 ---------------- */
.hm-below {
  padding-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 84px;
}
.hm-band-item {
  background: var(--card);
  padding: 30px 18px;
  text-align: center;
  transition: background var(--t) var(--ease);
}
.hm-band-item b {
  display: block;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.2;
}
.hm-band-item span { font-size: 13px; color: var(--text-3); }
.hm-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}
.hm-block-head h2 { font-size: 23px; font-weight: 650; letter-spacing: -0.3px; margin: 0; }
.hm-block-head p { margin: 0; font-size: 13.5px; color: var(--text-3); }
.hm-block-more {
  font-size: 13.5px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hm-grid { display: grid; gap: 18px; }
.hm-grid-sec { grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); }
.hm-grid-feat { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.hm-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
}
.hm-card-ic {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              transform var(--t) var(--ease-spring);
}
.hm-card-name { font-size: 15.5px; font-weight: 600; }
.hm-card-meta { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.hm-card-tall {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 26px;
  background:
    radial-gradient(120% 100% at 100% 0%, var(--brand-blue-soft), transparent 62%),
    var(--card);
}
.hm-card-tall .hm-card-ic { width: 48px; height: 48px; background: transparent; padding: 0; }
.hm-card-desc { font-size: 13.5px; color: var(--text-3); line-height: 1.6; }
.hm-hot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
  transition: background var(--t) var(--ease), padding-left var(--t) var(--ease);
}
.hm-hot-title {
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-hot-meta { font-size: 12.5px; color: var(--text-3); }
.hm-hot-no {
  flex: none;
  width: 26px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.hm-hot-like {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.hm-hot-plain .hm-hot-title { font-size: 15.5px; }
.hm-two {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}
.hm-online { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.hm-online-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  color: var(--text-2);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.hm-noticebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.hm-noticebar-title {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-noticelist { display: flex; flex-direction: column; gap: 12px; }
.hm-links { padding: 52px 0 10px; text-align: center; }
.hm-links-row a {
  padding: 9px 17px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: 999px;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
/* ---------------- 3. 论坛介绍 ---------------- */
.hm-about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 40px 44px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 0% 0%, var(--brand-blue-soft), transparent 58%),
    var(--card);
}
.hm-about-lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  margin: 0 0 18px;
}
.hm-about-lead strong { color: var(--brand-blue-deep); font-weight: 650; }
[data-theme="dark"] .hm-about-lead strong { color: var(--brand-blue); }
.hm-about-sub {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-2);
  margin: 0 0 22px;
}
.hm-about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hm-about-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}
.hm-about-points .ic { flex: none; margin-top: 3px; color: var(--brand-blue); }
.hm-about-points b { color: var(--text); font-weight: 600; }
.hm-about-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 900px){
  .hm-about { grid-template-columns: 1fr; gap: 32px; padding: 28px 24px; }
  .hm-below { padding-top: 52px; gap: 60px; }
  .hm-band-item b { font-size: 27px; }
  .hm-block-head h2 { font-size: 20px; }
}
/* 顶栏毛玻璃要保证导航可读：提高不透明度，模糊仍在但不把首屏深蓝透上来 */
/* ==========================================================================
   v9 · 按钮改回实心：只有顶部导航保留毛玻璃
   ========================================================================== */
/* ---------------- 基础按钮：实心卡片 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 17px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-2);
  font-size: 13px;
  font-family: inherit;
  font-weight: 550;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  letter-spacing: 0.2px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: var(--shadow-sm);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 48%);
  opacity: 1;
  pointer-events: none;
  z-index: -1;
  display: none;
}
/* 去掉那层玻璃高光 */
.btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue-dark);
  transform: translateY(-1px);
  background: var(--card);
  box-shadow: var(--shadow);
}
.btn:active {
  transform: translateY(0) scale(0.985);
  box-shadow: var(--shadow-sm);
}
/* ---------------- 主色按钮：实心蓝 ---------------- */
/* ---------------- 强调按钮：实心橙 ---------------- */
/* 幽灵按钮：透明描边，悬停才上底色 */
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--card); box-shadow: var(--shadow-sm); border-color: var(--brand-blue); }
/* 选中态 */
.btn.is-active {
  border-color: rgba(225, 122, 48, 0.5);
  color: var(--brand-orange-dark);
  background: var(--brand-orange-soft);
}
/* ---------------- 顶栏图标按钮：实心圆（导航本身仍是毛玻璃） ---------------- */
.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.icon-btn:hover {
  background: var(--card);
  color: var(--brand-blue-dark);
  border-color: var(--brand-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .icon-btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.4); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
/* ---------------- 用户菜单：实心面板 ---------------- */
.usermenu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 196px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 120;
  animation: popIn 0.18s var(--ease) both;
  transform-origin: top right;
  border-color: var(--line);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
[data-theme="dark"] .usermenu-panel { background: var(--card); }
/* ---------------- 首屏两个按钮：实心，保证对比度 ---------------- */
/* 主：白底橙字（落地页「已有账号，登录」） */
.hm-btn-solid {
  background: #fff;
  border-color: #fff;
  color: var(--brand-orange-dark);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.55);
}
.hm-btn-solid:hover {
  background: #fff;
  border-color: #fff;
  color: var(--brand-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}
/* 次：透明描边白字（「申请加入」「进入动态」），不用毛玻璃 */
.hm-btn-line {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.46);
  color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  border: 1.5px solid rgba(255, 255, 255, 0.62);
}
.hm-btn-line:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px -12px rgba(0, 0, 0, 0.5);
}
/* ---------------- 唯一保留毛玻璃的地方：顶部导航 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  backdrop-filter: blur(20px) saturate(180%);
  transition: box-shadow var(--t) var(--ease), background var(--t) var(--ease);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.topbar.is-scrolled {
  box-shadow: 0 8px 30px -20px rgba(27, 39, 51, 0.55);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(12px);
}
[data-theme="dark"] .topbar { background: rgba(18, 24, 31, 0.82); }
[data-theme="dark"] .topbar.is-scrolled { background: rgba(16, 21, 27, 0.74); }
/* ==========================================================================
   v10 · 配色统一回校徽色
   基准（校徽逐像素实测）：蓝 #2a93ce · 橙 #e17a30 · 白
   原则：全站只用这一蓝一橙两族的深浅，不再引入红/黄/金/紫等第三色系
   ========================================================================== */
/* ---------------- 首屏：改成校徽蓝一族的深浅 ---------------- */
.hm-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  color: #fff;
  min-height: min(74vh, 640px);
  display: flex;
  place-items: center;
  background: linear-gradient(150deg, #17688c 0%, #2a93ce 54%, #1f7aae 100%);
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .hm-hero { background: linear-gradient(150deg, #10303f 0%, #17455c 52%, #0e2634 100%); }
/* 视差光斑交给 rgba(42,147,206) 与 rgba(225,122,48)，本来就是校徽色 */
/* ---------------- 按钮：蓝橙两色，色值取自校徽 ---------------- */
.btn-primary {
  background: linear-gradient(180deg, #3aa6e0, #2a93ce);
  border-color: #2a93ce;
  color: #fff;
  box-shadow: 0 2px 8px -3px rgba(42, 147, 206, 0.55);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #46ade4, #1f7aae);
  border-color: #1f7aae;
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(42, 147, 206, 0.6);
}
.btn-accent {
  background: linear-gradient(180deg, #ec8a41, #d96d24);
  border-color: #d96d24;
  color: #fff;
  box-shadow: 0 2px 10px -3px rgba(225, 122, 48, 0.55);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.btn-accent:hover {
  background: linear-gradient(180deg, #f0994f, #c4631f);
  border-color: #c4631f;
  color: #fff;
  box-shadow: 0 4px 16px -4px rgba(225, 122, 48, 0.62);
}
/* ---------------- 头像兜底：换回校徽蓝（原来是一套天蓝） ---------------- */
.avatar-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #3aa6e0, #2a93ce);
}
/* ---------------- 名次徽章：原来的红/黄/蓝三色 → 橙蓝两族 ---------------- */
.rank-badge {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--text-3);
  transition: transform var(--t) var(--ease-spring);
}
.rank-badge.r1 { background: linear-gradient(135deg, #e17a30, #c4631f); }
.rank-badge.r2 { background: linear-gradient(135deg, #ec8a41, #e17a30); }
.rank-badge.r3 { background: linear-gradient(135deg, #3aa6e0, #2a93ce); }
/* ---------------- 官方称号：原来的一套金色 → 品牌橙 ---------------- */
.pill-title {
  background: linear-gradient(135deg, #fdf2e8, #fbe3cd);
  color: #a8531a;
  font-weight: 600;
}
[data-theme="dark"] .pill-title {
  background: linear-gradient(135deg, #3a2515, #4a2e1a);
  color: #f0a86a;
}
/* 俗世奇人的「封神」等级：紫红 → 品牌橙 */
.lg-degree.r0 { background: linear-gradient(135deg, #e17a30, #c4631f); color: #fff; }
/* 语义色保留（成功/警告/危险），但压一档饱和度，避免抢主体色 */
:root {
  /* ========== 品牌色：取自江苏省海门中学校徽 ==========
     外环蓝 #2A93CE · 中心帆形橙 #E17A30
     换校徽时只需改这一段，其余全部引用变量
     ================================================== */
  --brand-blue:        #2a93ce;
  --brand-blue-dark:   #1f7aae;
  --brand-blue-deep:   #17607f;
  --brand-blue-soft:   #e8f5fc;
  --brand-orange:      #e17a30;
  --brand-orange-dark: #c4631f;
  --brand-orange-soft: #fdf2e8;
  /* 兼容别名：子模块模板里引用了 --pink / --blue 共 200+ 次，不要改这里的名字 */
  --pink: var(--brand-orange);
  --pink-dark: var(--brand-orange-dark);
  --pink-soft: var(--brand-orange-soft);
  --blue: var(--brand-blue);
  --blue-dark: var(--brand-blue-dark);
  --blue-soft: var(--brand-blue-soft);
  /* 中性色：偏蓝的灰，比纯灰更通透 */
  --bg: #f6f9fb;
  --bg-soft: #fbfdfe;
  --card: #ffffff;
  --card-2: #fafcfd;
  --text: #1b2733;
  --text-2: #5b6b7a;
  --text-3: #93a2b0;
  --line: #e6edf3;
  --line-2: #f1f5f9;
  --green: #1f9d63;
  --orange: var(--brand-orange);
  --red: #dc4c50;
  --purple: #7c5cf0;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(27, 39, 51, 0.04);
  --shadow: 0 1px 3px rgba(27, 39, 51, 0.05), 0 10px 26px -16px rgba(27, 39, 51, 0.18);
  --shadow-lg: 0 12px 40px -12px rgba(27, 39, 51, 0.22);
  /* 动效节奏：统一曲线，避免各处快慢不一 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --t-fast: 0.16s;
  --t: 0.24s;
  --t-slow: 0.42s;
  --header-h: 64px;
  --max-w: 1260px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --glass-bg:        rgba(255, 255, 255, 0.66);
  --glass-bg-hover:  rgba(255, 255, 255, 0.84);
  --glass-border:    rgba(255, 255, 255, 0.72);
  --glass-line:      rgba(226, 233, 240, 0.9);
  --glass-inner:     inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --glass-shadow:    0 1px 2px rgba(27, 39, 51, 0.06), 0 8px 22px -14px rgba(27, 39, 51, 0.34);
  --glass-blur:      blur(12px) saturate(180%);
  --frost-top:    rgba(255, 255, 255, 0.82);
  --frost-bottom: rgba(228, 242, 249, 0.62);
  --frost-line:   rgba(255, 255, 255, 0.92);
  --frost-edge:   rgba(190, 215, 228, 0.55);
  --frost-blur:   blur(18px) saturate(210%);
  --brand-blue:        #2a93ce;
  --brand-blue-light:  #3aa6e0;
  --brand-orange-light:#ec8a41;
}
/* ==========================================================================
   v11 · 关于本站 + 名人堂
   ========================================================================== */
/* 关于页首屏矮一点，内容才是主角 */
.hm-hero-slim { min-height: min(58vh, 480px); }
/* ---------------- 性质卡片 ---------------- */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.prop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
}
.prop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.prop-ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease-spring);
}
.prop-card:hover .prop-ic { background: var(--brand-orange-soft); color: var(--brand-orange); transform: scale(1.06) rotate(-4deg); }
.prop-card h3 { margin: 2px 0 0; font-size: 16px; font-weight: 650; letter-spacing: -0.2px; }
.prop-card p { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--text-2); }
.prop-card-link { color: var(--text); }
.prop-card-link:hover { color: var(--text); }
.prop-go {
  position: absolute;
  right: 20px;
  top: 24px;
  color: var(--text-3);
  transition: transform var(--t) var(--ease), color var(--t) var(--ease);
}
.prop-card-link:hover .prop-go { transform: translateX(3px); color: var(--brand-orange); }
/* ---------------- 名人堂 ---------------- */
.hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.hall-card {
  position: relative;
  overflow: hidden;
  padding: 34px 26px 26px;
  border-radius: 20px;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(165deg, #1c5a78 0%, #14425a 56%, #10313f 100%);
  box-shadow: 0 18px 40px -26px rgba(16, 49, 63, 0.9);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.hall-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px -26px rgba(16, 49, 63, 0.95); }
/* 顶部一层暖光，制造"牌位"的质感 */
.hall-glow {
  position: absolute;
  left: 50%;
  top: -70px;
  width: 240px;
  height: 200px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(225, 122, 48, 0.5), transparent 68%);
  pointer-events: none;
}
/* 创始人：多一道金色描边 */
.hall-card.is-founder {
  border-color: rgba(225, 122, 48, 0.55);
  box-shadow: 0 18px 44px -24px rgba(225, 122, 48, 0.55), 0 18px 40px -26px rgba(16, 49, 63, 0.9);
}
.hall-index {
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.42);
  font-variant-numeric: tabular-nums;
}
.hall-avatar {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.85), rgba(225, 122, 48, 0.7));
}
.hall-avatar img,
.hall-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 600;
  background: linear-gradient(135deg, #3aa6e0, #2a93ce);
  color: #fff;
}
.hall-name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.6px;
}
.hall-title {
  display: inline-block;
  margin: 0 0 14px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #ffd8b0;
  background: rgba(225, 122, 48, 0.24);
  border: 1px solid rgba(225, 122, 48, 0.4);
}
.hall-bio {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
}
.hall-meta {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
}
.hall-interests {
  margin: 6px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.38);
}
@media (max-width: 640px){
  .hm-hero-slim { min-height: 46vh; }
  .prop-card { padding: 20px; }
  .hall-card { padding: 26px 20px 22px; }
  .hall-avatar { width: 76px; height: 76px; }
  .hall-name { font-size: 18px; }
}
/* ==========================================================================
   v12 · 标签切换丝滑
   ========================================================================== */
/* 标签栏：去掉每个标签自己的下划线，改由一条滑动指示条承担 */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line-2);
  padding: 0 16px;
  overflow-x: auto;
  position: relative;
}
.tab.is-active { color: var(--brand-blue-deep); font-weight: 600; border-bottom-color: transparent; }
.tabs-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-blue);
  pointer-events: none;
  transition: left 0.26s var(--ease), width 0.26s var(--ease);
  will-change: left, width;
}
/* 页面内容轻微淡入，减少整页重载的"硬切"感 */
.app-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px 20px 34px;
  animation: pageIn 0.26s var(--ease) both;
}
@keyframes pageIn{
  from { opacity: 0; transform: translate3d(0, 5px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce){
  .tabs-indicator { transition: none; }
  .app-main { animation: none; }
}

/* ==========================================================================
   v13 · 动效可见度调优
   探针实验证明：动画本身是运行的，但幅度太小 + 被全页淡入盖住，
   观感上等于"没有动画"。这里把幅度和节奏调回能被看见的程度。
   ========================================================================== */

/* 1) 去掉整页淡入：它会和首屏入场动画叠加，互相抵消观感，
      而且 animation-fill-mode:both 会长期保留 transform，顺带破坏 sticky */
.app-main { animation: none; }

/* 2) 入场关键帧：位移从 10px 提到 22px，并带一点点缩放 */
@keyframes fadeUp{
  from { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.992); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* 3) 首屏入场：更长的错峰，形成明显的"依次浮现" */
.hm-inner > .hm-title   { animation: fadeUp 0.82s var(--ease) both; animation-delay: 0.05s; }
.hm-inner > .hm-motto   { animation: fadeUp 0.82s var(--ease) both; animation-delay: 0.16s; }
.hm-inner > .hm-sub     { animation: fadeUp 0.82s var(--ease) both; animation-delay: 0.25s; }
.hm-inner > .hm-actions { animation: fadeUp 0.82s var(--ease) both; animation-delay: 0.36s; }
.hm-inner > .hm-meta    { animation: fadeUp 0.82s var(--ease) both; animation-delay: 0.46s; }
/* 校徽保持静止，不参与入场（用户明确要求） */

/* 4) 光斑漂移：周期缩短、幅度加大，肉眼能看出在动 */
.hm-blob-a { animation: blobA 15s ease-in-out infinite; }
.hm-blob-b { animation: blobB 19s ease-in-out infinite; }
.hm-blob-c { animation: blobC 23s ease-in-out infinite; }
@keyframes blobA{
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(56px, 38px, 0) scale(1.14); }
}
@keyframes blobB{
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-48px, 46px, 0) scale(1.18); }
}
@keyframes blobC{
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-70px, -42px, 0) scale(1.1); }
}

/* 5) 滚动揭示：位移保持 30px，补一点缩放，并让子项错峰更明显 */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.994);
  transition: opacity 0.82s var(--ease), transform 0.82s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }

/* 6) 首屏视差幅度加大 */
.hm-scrollhint { animation: fadeIn 1s var(--ease) 1s both; }

@media (prefers-reduced-motion: reduce) {
  .app-main { animation: none; }
  .hm-blob-a, .hm-blob-b, .hm-blob-c { animation: none; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* 卡片内部的栏目条目：去掉边框与底色，避免"卡中卡"的厚重感 */
.hm-card-plain {
  border-color: transparent;
  background: var(--card-2);
  padding: 20px;
}
.hm-card-plain:hover {
  border-color: transparent;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   v15 · 手机端适配
   真机（390×844）排查发现两个致命问题：
     1. ≤900px 时 .topnav 整条隐藏 → 手机无法到达动态/招募/榜单/歌单
     2. ≤1080px 隐藏左侧分区栏后，≤900px 只恢复了右栏 → 手机进不了任何分区
   对策：底部固定标签栏承接一级导航；分区栏在手机端改成横向滑动条。
   ========================================================================== */

/* 底部导航默认不显示（桌面端） */
.mobile-tabbar { display: none; }

@media (max-width: 900px) {
  /* ---------- 1. 底部固定导航 ---------- */
  .mobile-tabbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border-top: 1px solid var(--line);
  }
  [data-theme="dark"] .mobile-tabbar { background: rgba(18, 24, 31, 0.94); }

  .mtb-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    min-height: 48px;
    font-size: 11px;
    color: var(--text-3);
    border-radius: 10px;
    transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  }
  .mtb-item.is-active { color: var(--brand-blue); }
  .mtb-item:active { background: var(--brand-blue-soft); }
  .mtb-item .ic { stroke-width: 1.9; }
  /* 中间的发帖键做得更实 */
  .mtb-post { color: var(--brand-orange); }
  .mtb-post .ic {
    padding: 7px;  box-sizing: content-box;
    border-radius: 50%;
    background: var(--brand-orange);
    color: #fff;
    stroke: #fff;
    margin-top: -14px;
    box-shadow: 0 6px 16px -6px rgba(225, 122, 48, 0.8);
  }

  /* 给底部栏留出空间，别把内容压在下面 */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .back-top { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .flash-stack { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); top: auto; }

  /* ---------- 2. 分区栏：竖向卡片 → 横向滑动条 ---------- */
  .layout-3 > .col-left,
  .layout-2 > .col-left { display: block !important; }

  .sidenav { padding: 0; border-radius: var(--radius); overflow: hidden; }
  .sidenav > .card-body { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sidenav > .card-body::-webkit-scrollbar { display: none; }
  .sidenav .mb-2 { margin-bottom: 0 !important; display: flex; gap: 8px; }
  .sidenav-group-title { display: none; }
  .sidenav .divider { display: none; }
  .sidenav-list { flex-direction: row; gap: 6px; }
  .sidenav-link {
    flex: none; white-space: nowrap;
    min-height: 36px; padding: 7px 13px;
    border: 1px solid var(--line); background: var(--card); font-size: 13px;
  }
  .sidenav-link.is-active { border-color: transparent; }

  /* ---------- 3. 触控尺寸：可点的东西至少 40px ---------- */
  .btn { min-height: 40px; }
  .btn-sm { min-height: 34px; padding: 0 14px; }
  .icon-btn { width: 40px; height: 40px; }
  .hm-links-row a, .tab, .pager a, .pager span { min-height: 40px; display: inline-flex; align-items: center; }
  .post-title { font-size: 15.5px; line-height: 1.5; }
  .post-meta { gap: 8px; }

  /* ---------- 4. 列表与卡片压缩留白 ---------- */
  .app-main { padding: 14px 12px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .hm-below { padding-top: 36px; gap: 44px; }
  .card-head { padding: 13px 14px; }
  .card-body { padding: 14px; }
  .table th, .table td { padding: 9px 10px; }
}

@media (max-width: 640px) {
  /* iOS 上输入框字号小于 16px 会在聚焦时自动放大页面，这里统一顶到 16px */
  .input, .textarea, .select, .topsearch input { font-size: 16px; }

  /* 顶栏压缩 */
  .topbar-inner { padding: 0 12px; gap: 8px; }
  .brand-text b { font-size: 14.5px; }
  .brand-text small { display: none; }
  .brand-emblem { width: 32px; height: 32px; }

  /* 首屏 */
  .hm-hero { min-height: 62vh; border-radius: 16px; }
  .hm-title { font-size: 22px; }
  .hm-sub { font-size: 13px; }
  .hm-actions { flex-direction: column; align-items: stretch; }
  .hm-actions .btn { width: 100%; }
  .hm-meta { font-size: 11.5px; line-height: 1.9; }

  /* 两列并排的板块在手机上必然换行 */
  .hm-two { grid-template-columns: 1fr; gap: 32px; }
  .hm-band { grid-template-columns: repeat(2, 1fr); }
  .hm-band-item { padding: 16px 10px; }

  /* 名人堂：单列 + 收紧 */
  .hall-grid { grid-template-columns: 1fr; }
  .hall-card { padding: 26px 20px 22px; border-radius: 16px; }

  /* 帖子详情：正文与评论更紧凑 */
  .rich { font-size: 15px; line-height: 1.9; }

  /* 管理后台表格横向滚动，避免撑破屏幕 */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 560px; }
}

/* 横屏且高度很矮时，底部栏让位 */
@media (max-width: 900px) and (max-height: 480px) {
  .mobile-tabbar { display: none; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mtb-item { transition: none; }
}

/* ---------- v15 补充：手机端帖子行与卡片的排布 ---------- */
@media (max-width: 640px) {
  /* 帖子行：数据（浏览/点赞/评论）从右侧挪到标题下一行，
     否则标题只能拿到一半宽度，全被截断 */
  .post-item { flex-wrap: wrap; row-gap: 8px; padding: 14px 12px; }
  .post-main { flex: 1 1 auto; }
  .post-stats {
    flex: 1 0 100%;
    order: 3;
    justify-content: flex-end;
    padding-left: 46px;
    gap: 14px;
  }
  .post-title { -webkit-line-clamp: 2; line-clamp: 2; font-size: 15px; }
  .post-excerpt { -webkit-line-clamp: 2; line-clamp: 2; }

  /* 特色栏目卡片在单列时太占高度，压缩一档 */
  .hm-card-tall { padding: 18px; gap: 6px; border-radius: 12px; }
  .hm-card-tall .hm-card-ic { width: 34px; height: 34px; }
  .hm-card-desc { font-size: 12.5px; line-height: 1.55; }

  /* 排行榜/榜单的行：数值不被挤掉 */
  .rank-row { padding: 10px 12px; }
  .rank-row .name { font-size: 13.5px; }

  /* 通知与评论条目 */
  .me-notif, .cm-item { padding-left: 12px; padding-right: 12px; }
}

/* 手机端帖子行：正文用 flex-basis:0 才能和头像同处一行（auto 会因内容宽而换行） */
@media (max-width: 640px) {
  .post-main { flex: 1 1 0; min-width: 0; }
}

/* 手机端卡片标题：flex 布局会把标题里的内联图标切成独立项，导致文字在词中间换行。
   改成块级 + 行内图标，让文字按正常排版折行。 */
@media (max-width: 640px) {
  .card-title { display: block; }
  .card-title::before {
    display: inline-block;
    vertical-align: -1px;
    margin-right: 7px;
  }
  .card-title .ic { vertical-align: -3px; }
  .card-head { align-items: flex-start; }
}

/* ==========================================================================
   列表里的三个数字做成可点：浏览→详情、点赞→直接点赞、评论→详情评论区
   （之前只是 <span>，手机端看起来像操作条却点不动）
   ========================================================================== */
.post-stats { align-items: center; }
.post-stat-form { display: contents; }
.post-stat {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text-3);
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-size: 12.5px; line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.post-stat:hover { color: var(--brand-blue); }
.post-stat .ic { transition: transform var(--t-fast) var(--ease); }
.post-stat:active .ic { transform: scale(1.24); }
.post-stat.is-liked { color: var(--brand-orange); font-weight: 600; }
.post-stat.is-liked .ic { fill: currentColor; }

@media (max-width: 640px) {
  /* 手机上把触控区撑到 34px，避免点不准 */
  /* 手机端三个按钮整体放大到 1.1 倍：高度 34→37、内边距 8→9、字号 13→14.3、图标 15→16.5 */
  .post-stats { gap: 2.2px; justify-content: flex-end; }
  .post-stat { min-height: 37px; padding: 0 9px; font-size: 14.3px; gap: 4.4px; }
  .post-stat .ic { width: 16.5px; height: 16.5px; }
}

/* ==========================================================================
   手机端 UI 适配（v19）
   1) 顶部搜索框在 ≤640px 被隐藏，导致手机上完全无法搜索 → 补一个图标入口
   2) 顶部「发帖」按钮与底部导航的橙色发帖键重复，手机上隐藏，腾出空间
   3) 后台/个人中心的标签条在手机上会被截断（"举报处…"）→ 改为换行，全部可见
   ========================================================================== */
.mobile-only-search { display: none; }

@media (max-width: 900px) {
  /* 标签条换行，不再横向截断 */
  .tabs { flex-wrap: wrap; row-gap: 6px; }
  .tab { flex: none; }
  .tabs-indicator { display: none; }
}

@media (max-width: 640px) {
  /* 必须用 inline-grid + place-items，才能继承 .icon-btn 的居中；
     写成 inline-flex 会覆盖掉 display:grid，图标就贴到圆钮左边了。 */
  .mobile-only-search { display: inline-grid; place-items: center; }
  .top-post-btn { display: none; }
  .topactions { gap: 6px; }
  .brand-text b { max-width: 6em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* 表格横向滚动时给个提示 */
  .table-wrap { position: relative; }
  .table-wrap::after {
    content: '← 左右滑动查看 →';
    display: block;
    padding: 6px 10px;
    font-size: 11px;
    color: var(--text-3);
    text-align: center;
  }
}

/* 手机端：页头里的筛选表单整体换行，避免控件被裁掉（后台用户管理曾丢掉「全部状态」下拉） */
@media (max-width: 640px) {
  .page-head { flex-wrap: wrap; }
  .page-head > form { width: 100%; }
  .page-head h1 { font-size: 19px; }
  .page-head .sub { font-size: 12.5px; line-height: 1.65; }
}

/* ==========================================================================
   v21 · 视觉精修：把"能用"推到"有质感"
   依据：首页整页审查发现的四类问题
     1. 卡片扁平、全靠一条极淡描边，没有层次
     2. 垂直留白过大（.hm-below 上下 72/84px），页面显得空
     3. 特色栏目 4 个卡片塞进 3 列网格，右下留一块空缺
     4. 列表行高偏大、右侧数字孤零零贴边
   ========================================================================== */

/* ---------- 1. 阴影：从"一层灰"变成"三层叠" ---------- */
:root {
  --shadow-sm: 0 1px 2px rgba(27, 39, 51, 0.05), 0 1px 1px rgba(27, 39, 51, 0.03);
  --shadow:
    0 1px 2px rgba(27, 39, 51, 0.04),
    0 8px 24px -12px rgba(27, 39, 51, 0.16),
    0 2px 8px -4px rgba(27, 39, 51, 0.06);
  --shadow-lg:
    0 2px 4px rgba(27, 39, 51, 0.05),
    0 18px 48px -16px rgba(27, 39, 51, 0.22);
}
:root[data-theme="dark"] {
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow:
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 12px 30px -16px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 16px 52px -14px rgba(0, 0, 0, 0.85);
}

/* 卡片加一道顶部的极细高光，模拟受光面，是"高级感"最省成本的一招 */
.card,
.hm-card,
.hm-band {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    var(--shadow-sm);
}
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .hm-card,
:root[data-theme="dark"] .hm-band {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    var(--shadow-sm);
}

/* ---------- 2. 垂直节奏：收紧一档，页面立刻"贵"起来 ---------- */
.hm-below { padding-top: 52px; gap: 56px; }
.hm-block-head { margin-bottom: 20px; }
.hm-block-head h2 { font-size: 20px; letter-spacing: -0.4px; }
.hm-block-head p { font-size: 12.5px; }
.hm-block-more { font-size: 12.5px; }

/* ---------- 3. 特色栏目：4 个正好一排，不留空缺 ---------- */
@media (min-width: 1200px) {
  .hm-grid-feat { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .hm-grid-sec { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .hm-grid-feat { grid-template-columns: repeat(2, 1fr); }
}

/* 卡片悬停：抬得更轻、阴影更深，而不是硬邦邦跳 3px */
.hm-card { transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease); }
.hm-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--shadow);
}

/* ---------- 4. 列表密度：行更紧凑，右侧数字收成一组 ---------- */
.hm-hot { padding: 12px 4px; gap: 12px; align-items: flex-start; }
.hm-hot:hover { padding-left: 10px; }
.hm-hot-title { font-size: 14.5px; line-height: 1.45; font-weight: 560; }
.hm-hot-meta { font-size: 12px; gap: 8px; }
.hm-hot-like {
  flex: none;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-3);
  padding: 3px 9px; border-radius: 999px;
  background: var(--card-2);
}
.hm-hot-no { font-variant-numeric: tabular-nums; font-weight: 700; width: 18px; }

/* 最新发布列表：右侧评论数同样收成胶囊 */
.hm-news, .hm-latest { padding: 11px 4px; }

/* ---------- 5. 按钮：加一层内高光 + 更收敛的投影 ---------- */
.btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(27, 39, 51, 0.06);
}
.btn-accent, .btn-primary {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 6px -2px rgba(225, 122, 48, 0.5);
}
.btn:active { transform: translateY(1px); }
:root[data-theme="dark"] .btn {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ---------- 6. 章节标题：左侧短竖线，建立层级 ---------- */
.hm-block-head h2 { position: relative; padding-left: 0; }
.hm-block-head h2::after {
  content: '';
  display: block;
  width: 26px; height: 2px;
  margin-top: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-blue), transparent);
}

@media (max-width: 640px) {
  .hm-below { padding-top: 32px; gap: 36px; }
  .hm-block-head { margin-bottom: 14px; }
  .hm-block-head h2 { font-size: 18px; }
  .hm-block-head h2::after { margin-top: 5px; width: 20px; }
}

/* ---------- 7. 首屏光斑：亮色下更柔和，暗色下收敛橙色（否则在深蓝上发灰发脏） ---------- */
.hm-blob { filter: blur(64px); opacity: 0.42; }
.hm-blob-b {
  /* 橙色光斑在两个主题下都只做点缀，不抢主色 */
  background: rgba(225, 122, 48, 0.32);
}
:root[data-theme="dark"] .hm-blob { opacity: 0.34; }
:root[data-theme="dark"] .hm-blob-b {
  /* 暗色下压到极低并偏冷，避免出现一块浑浊的土黄 */
  background: rgba(74, 168, 218, 0.26);
}
:root[data-theme="dark"] .hm-blob-c {
  background: rgba(42, 147, 206, 0.34);
}

/* 首屏画布底色跟随主题：避免 iOS 回弹/内容未铺满时露出白底 */
html { background: var(--bg); }

/* ==========================================================================
   头像裁剪弹层
   ========================================================================== */
.crop-mask {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(12, 18, 24, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.crop-panel {
  width: min(100%, 400px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.crop-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.crop-head b { font-size: 15px; }
.crop-tip { font-size: 12px; color: var(--text-3); }
.crop-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    repeating-conic-gradient(var(--line-2) 0% 25%, transparent 0% 50%) 50% / 18px 18px,
    var(--card-2);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.crop-viewport.is-dragging { cursor: grabbing; }
.crop-viewport img {
  position: absolute;
  top: 0; left: 0;
  max-width: none;
  transform-origin: 0 0;
  will-change: transform;
}
/* 裁剪框：中间的方形遮罩 + 九宫格辅助线 */
.crop-viewport::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  background:
    linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) 33.33% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) 66.66% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) 0 33.33% / 100% 1px no-repeat,
    linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) 0 66.66% / 100% 1px no-repeat;
}
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; }
.crop-zoom span { font-size: 12.5px; color: var(--text-3); flex: none; }
.crop-zoom input[type="range"] { flex: 1; accent-color: var(--brand-blue); }
.crop-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }

@media (max-width: 640px) {
  .crop-panel { padding: 14px; border-radius: var(--radius); }
  .crop-actions .btn { flex: 1; justify-content: center; min-height: 44px; }
}

/* 裁剪框未完成却点了保存：闪一下提示，把注意力拉回弹层 */
.crop-mask.is-warn .crop-panel { animation: cropShake 0.42s var(--ease); border-color: var(--brand-orange); }
@keyframes cropShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ==========================================================================
   v24 · 顶部栏两个修正
   1) 手机上操作区（搜索/夜间/消息/头像）必须贴右：
      桌面靠搜索框的 margin-left:auto 推开，而手机上搜索框被隐藏，
      自动边距随之消失，操作区就贴到了品牌右边 → 这里直接给操作区加 auto 边距。
   2) 搜索图标：让放大镜的「头部圆心」正好落在圆形按钮中心（此前只把墨迹外框居中，
      头部仍在偏左上，视觉上还是歪的）。
   ========================================================================== */
.topactions { margin-left: auto; }

@media (max-width: 640px) {
  .topbar-inner { padding-right: 10px; }
  .topactions { gap: 8px; }
}

/* 申请审批：批量工具条与结果面板 */
.apply-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  background: var(--brand-blue-soft);
}
.apply-result { margin: 0 0 14px; border-color: var(--brand-blue); }
.apply-result code { font-size: 12.5px; user-select: all; }
.apply-result[hidden] { display: none; }

/* ==========================================================================
   分区列表（首页）
   原来 6 张卡挤成一排，图标底块占了卡片一半面积，读起来很吵。
   改成 3×2 的轻量行：线性图标 + 名称 + 右侧帖数，无边框中线打扰。
   ========================================================================== */
.hm-sec-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.hm-sec {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.hm-sec .ic { color: var(--brand-blue); opacity: 0.85; flex: none; }

.hm-sec-name {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-sec-count {
  flex: none;
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.hm-sec-count::after { content: ' 帖'; font-size: 11.5px; }

.hm-sec:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
  transform: translateY(-1px);
}

/* 窄屏：两列；手机：单列，点击区域更大 */
@media (max-width: 900px) {
  .hm-sec-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hm-sec-grid { grid-template-columns: 1fr; gap: 10px; }
  .hm-sec { min-height: 52px; }
}

/* 站长标签：与管理员（粉色）、风纪委（紫色）区分开，用金棕色压住 */
.pill-owner { background: rgba(196, 146, 62, 0.14); color: #a9741f; border-color: rgba(196, 146, 62, 0.35); }
:root[data-theme="dark"] .pill-owner { background: rgba(214, 164, 82, 0.18); color: #e0b063; border-color: rgba(214, 164, 82, 0.4); }

/* 后台「更多」面板里的个人功能授权表单 */
.ad-perms { display: grid; gap: 6px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.ad-perms .checkbox-row { margin: 0; }
.ad-perms button { justify-self: start; margin-top: 2px; }

/* ==========================================================================
   表单校验提示（替代浏览器原生气泡）
   原生气泡无法改样式，且与站点视觉完全不搭；这里关掉原生校验，
   换成跟随字段的毛玻璃小提示，位置、动画、深浅色都统一。
   ========================================================================== */
.field-tip {
  position: absolute;
  z-index: 90;
  max-width: 260px;
  padding: 8px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 32px -14px rgba(16, 40, 70, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: fieldTipIn 0.18s var(--ease) both;
  pointer-events: none;
}

/* 小三角：默认提示在字段下方，箭头朝上指向字段 */
.field-tip::after {
  content: '';
  position: absolute;
  top: -5px;
  left: var(--tip-arrow, 18px);
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: inherit;
  border-left: 1px solid rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 2px 0 0 0;
}

/* 浮在字段右侧时，箭头朝左指向字段 */
.field-tip.is-side::after {
  top: 50%;
  left: -5px;
  margin-top: -5px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 0 0 0 2px;
}

/* 下方放不下时翻到字段上方，箭头朝下 */
.field-tip.is-above::after {
  top: auto;
  bottom: -5px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 0 0 2px 0;
}

@keyframes fieldTipIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

:root[data-theme="dark"] .field-tip {
  background: rgba(26, 35, 45, 0.82);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
:root[data-theme="dark"] .field-tip::after {
  border-left-color: rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.14);
}
:root[data-theme="dark"] .field-tip.is-above::after {
  border-right-color: rgba(255, 255, 255, 0.14);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

/* 出错字段描边，与提示呼应；不改变布局 */
.field-tip-source {
  border-color: var(--brand-orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.14) !important;
}

@media (prefers-reduced-motion: reduce) {
  .field-tip { animation: none; }
}

/* ---------------- 风纪委员招募窗口 ---------------- */
/* 设计约束：毛玻璃只给顶部导航，这里用实色卡片 + 细描边，避免全站都是模糊层 */
.ji-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft, rgba(0, 0, 0, 0.03));
}
.ji-inner {
  max-width: var(--page-max, 1200px);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ji-tag {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--orange, #ff9500);
}
.ji-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ji-text b { font-size: 13px; color: var(--text-1); }
.ji-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.ji-desc b { color: var(--orange, #ff9500); font-size: inherit; }
.ji-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.ji-close-form { margin: 0; }
.ji-close {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-3, #8a8f98);
  font-size: 16px; line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ji-close:hover { background: var(--hover, rgba(0, 0, 0, .06)); color: var(--text-1); }
@media (max-width: 720px) {
  .ji-inner { flex-wrap: wrap; padding: 10px 14px; }
  .ji-text { flex: 1 1 100%; order: 3; }
  .ji-actions { order: 2; }
}
:root[data-theme="dark"] .ji-bar { background: rgba(255, 255, 255, .04); }
@media (prefers-reduced-motion: reduce) {
  .ji-close { transition: none; }
}

/* ---------------- 赞助弹窗 ---------------- */
/* 设计约束：毛玻璃只给顶部导航，这里用实色卡片 + 半透明遮罩 */
.sa-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 32, 0.42);
  opacity: 0;
  transition: opacity .18s ease;
}
.sa-mask.is-open { opacity: 1; }
.sa-mask[hidden] { display: none; }

.sa-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 18px 48px rgba(15, 23, 32, .22);
  padding: 24px 24px 20px;
  transform: translateY(8px) scale(.985);
  transition: transform .18s ease;
}
.sa-mask.is-open .sa-box { transform: none; }

.sa-x {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0; border-radius: 8px;
  background: transparent;
  color: var(--text-3, #8a8f98);
  font-size: 18px; line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sa-x:hover { background: var(--hover, rgba(0, 0, 0, .06)); color: var(--text-1); }

.sa-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.sa-badge {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange, #ff9500);
  background: rgba(255, 149, 0, .12);
}
.sa-head h2 { margin: 0; font-size: 19px; line-height: 1.4; color: var(--text-1); }

.sa-body p { margin: 0 0 10px; font-size: 14px; line-height: 1.75; color: var(--text-2); }
.sa-body p:last-child { margin-bottom: 0; }
.sa-quiet { font-size: 13px !important; color: var(--text-3, #8a8f98) !important; }

.sa-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

:root[data-theme="dark"] .sa-box { background: #1b232c; border-color: rgba(255, 255, 255, .1); }
:root[data-theme="dark"] .sa-mask { background: rgba(0, 0, 0, .58); }

@media (prefers-reduced-motion: reduce) {
  .sa-mask, .sa-box, .sa-x { transition: none; }
  .sa-box { transform: none; }
}
