/* 净化阿北 · 中国绿（竹青 / 松绿 / 艾绿）自然健康色系 */
:root {
  --bg: #f2f7f3;
  --card: #ffffff;
  --ink: #1b2a20;
  --ink-2: #4a5f50;
  --line: #dde8de;
  --brand: #3c7a52;        /* 竹青 */
  --brand-deep: #2c5c3d;   /* 松绿 */
  --brand-2: #5c9c6b;      /* 艾绿 */
  --brand-soft: #e7f2e9;
  --warn: #c0831a;         /* 倒计时：秋香 */
  --warn-soft: #fbf1dc;
  --danger: #ab3b30;       /* 朱砂 */
  --danger-soft: #fbeae7;
  --done: #85998c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(24, 60, 38, .06), 0 6px 18px rgba(24, 60, 38, .06);
  --sidebar-w: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

button, input, textarea, select { font-family: inherit; font-size: 14px; }
a { color: var(--brand); }

/* ============ 左侧导航 ============ */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(180deg, #2c5c3d 0%, #3c7a52 100%);
  color: #eaf5ec;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 6px; gap: 6px;
}
.sidebar .brand { font-size: 15px; font-weight: 700; letter-spacing: 1px; text-align: center; line-height: 1.3; margin-bottom: 8px; }
.sidebar .brand span { display: block; font-size: 10px; font-weight: 400; opacity: .7; letter-spacing: 0; }

.navbtn {
  width: 100%; border: none; background: transparent; color: #dceee0;
  padding: 9px 4px; border-radius: 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11.5px; transition: background .15s;
}
.navbtn .ic { font-size: 19px; line-height: 1.1; }
.navbtn:hover { background: rgba(255, 255, 255, .12); }
.navbtn.active { background: rgba(255, 255, 255, .22); color: #fff; font-weight: 600; }
.sidebar .foot { margin-top: auto; width: 100%; }
.sidebar .me {
  font-size: 11px; text-align: center; opacity: .85; margin-bottom: 6px;
  word-break: break-all; line-height: 1.3;
}

/* ============ 内容区 ============ */
.content { flex: 1; min-width: 0; padding: 12px 14px 100px; }
.content > section { scroll-margin-top: 12px; }
.inner { max-width: 880px; margin: 0 auto; }

.sec-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--brand-deep);
  margin: 12px 0 8px;
}
.sec-title:first-child { margin-top: 2px; }
.sec-title .ic { font-size: 18px; }
.sec-title small { font-weight: 400; font-size: 12px; color: var(--ink-2); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 7px; font-size: 14px; color: var(--brand-deep); }
.hint { font-size: 12px; color: var(--ink-2); margin: 3px 0; }
.muted { color: var(--ink-2); font-size: 12px; }

/* ============ 表单 ============ */
input[type=text], input[type=password], textarea, select {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #fbfdfb; color: var(--ink); outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 2px rgba(92, 156, 107, .14); }
textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
label { font-size: 12px; color: var(--ink-2); display: block; margin: 8px 0 4px; }

.btn {
  border: 1px solid var(--brand); background: var(--brand); color: #fff;
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.ghost { background: #fff; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.warn { background: var(--warn); border-color: var(--warn); }
.btn.danger { background: #fff; color: var(--danger); border-color: #eecfcb; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > input { flex: 1; min-width: 120px; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; line-height: 18px; margin-left: 6px; }
.badge.admin { background: #26432f; color: #fff; }
.badge.deputy { background: #6b8e23; color: #fff; }
.badge.mod { background: var(--brand); color: #fff; }
.badge.member { background: var(--brand-soft); color: var(--brand); }

/* ============ 公告卡 ============ */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 12px; font-size: 12px; cursor: pointer; color: var(--ink-2);
}
.chip.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.chip .n { opacity: .75; margin-left: 4px; }

.post .head { display: flex; align-items: flex-start; gap: 8px; }
.post .title { font-weight: 600; flex: 1; }
.post.done .title { text-decoration: line-through; color: var(--done); }
.state { font-size: 11px; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.state.fresh { background: var(--brand-soft); color: var(--brand); }
.state.urgent { background: var(--warn-soft); color: var(--warn); }
.state.expired { background: #f2e2e0; color: #96332a; }
.state.done { background: #eef2ee; color: var(--done); }

.meta { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.progress { height: 4px; background: #e8efe9; border-radius: 3px; margin: 8px 0; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand-2); transition: width .3s; }

.links { list-style: none; margin: 8px 0 0; padding: 0; }
.links li {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: #fbfdfb;
}
.links li.ok { background: #f2f6f2; }
.links li.ok .url { text-decoration: line-through; color: var(--done); }
.links .url { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.links input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

/* ============ 发现黑水 ============ */
.finding {
  display: flex; gap: 8px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; background: #fbfdfb;
}
.finding .u { flex: 1; word-break: break-all; font-size: 13px; min-width: 0; }
.finding.pending { border-left: 3px solid var(--warn); }
.finding.accepted { border-left: 3px solid var(--brand); opacity: .8; }
.finding.ignored { border-left: 3px solid #cfdcd2; opacity: .6; }

/* ============ 留言 ============ */
.msg { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.msg:last-child { border-bottom: none; }
.msg .who { font-weight: 600; font-size: 13px; }
.msg .txt { margin: 4px 0 6px; word-break: break-word; white-space: pre-wrap; }
.replies { margin-left: 20px; padding-left: 12px; border-left: 2px solid var(--line); }
.reply-form { margin: 6px 0 10px 20px; }

/* ============ 提醒 / 弹窗 ============ */
#toast-box { position: fixed; right: 14px; bottom: 14px; z-index: 999; display: flex; flex-direction: column; gap: 8px; max-width: 330px; }
.toast {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 10px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(24, 60, 38, .16);
}
.toast.warn { border-left-color: var(--warn); }
.toast .t { font-weight: 600; font-size: 13px; }
.toast .d { font-size: 12px; color: var(--ink-2); word-break: break-all; margin: 4px 0 8px; }
#toast-center { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.tip { background: #26432f; color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 13px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); max-width: 86vw; }
.tip.ok { background: var(--brand); }
.tip.err { background: var(--danger); }

.mask { position: fixed; inset: 0; background: rgba(20, 44, 30, .38); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mask[hidden] { display: none; }
.modal { background: #fff; border-radius: 14px; padding: 16px; width: 100%; max-width: 460px; max-height: 86vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.modal label { display: block; font-size: 12px; color: var(--ink-2); margin: 10px 0 4px; }
.modal input[type="password"], .modal input[type="text"] { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.modal h3 { margin: 0 0 4px; }
.modal .reason-item { display: flex; align-items: center; gap: 6px; margin: 0; padding: 3px 0; font-size: 13px; }
#reason-box { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin: 4px 0 0; }
@media (max-width: 420px) { #reason-box { grid-template-columns: 1fr; } }
.reason-item input { width: 16px; height: 16px; accent-color: var(--brand); }
.preset { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.modal .hint { margin: 4px 0 8px; }
.modal .row { margin-top: 10px; }

.empty { text-align: center; color: var(--ink-2); padding: 14px 0; font-size: 13px; }

/* ============ 登录 / 注册 ============ */
.auth-wrap { max-width: 560px; margin: 20px auto 32px; padding: 0 14px; }
.auth-wrap.reg { max-width: 940px; }
.auth-wrap .card { padding: 18px; }
.auth-title { text-align: center; margin-bottom: 6px; }
.auth-title .logo { font-size: 24px; font-weight: 700; color: var(--brand-deep); letter-spacing: 2px; }
.auth-title .sub { font-size: 12px; color: var(--ink-2); }
.switch { display: flex; gap: 6px; justify-content: center; margin: 12px 0; }
.switch button { border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 5px 16px; cursor: pointer; font-size: 13px; }
.switch button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.q-row { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; }
.q-row .q { flex: 1; font-size: 13px; }
.q-row .q a { font-size: 12px; }
.opt { display: flex; gap: 6px; }
.opt label {
  margin: 0; border: 1px solid var(--line); border-radius: 6px; padding: 3px 12px;
  cursor: pointer; font-size: 13px; background: #fff; color: var(--ink-2);
}
.opt input { display: none; }
.opt label.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.upload-box { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; margin-top: 8px; background: #fbfdfb; }
.upload-box .cap { font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.upload-box img { max-width: 100%; border-radius: 8px; display: block; margin-top: 6px; }

.reject {
  background: var(--danger-soft); border: 1px solid #eecfcb; color: #8f2f26;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 10px;
}
.reject a { color: #8f2f26; font-weight: 600; }
.ok-note { background: var(--brand-soft); border: 1px solid #cfe5d4; color: var(--brand-deep); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 10px; }

.pending-pics { display: flex; gap: 8px; flex-wrap: wrap; }
.pending-pics img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; transition: transform .12s; }
.pending-pics img:hover { transform: scale(1.05); border-color: var(--brand); }

/* 截图放大灯箱 */
.img-lightbox { position: fixed; inset: 0; z-index: 999; background: rgba(15, 23, 18, .78); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; cursor: zoom-out; }
.img-lightbox img { max-width: 94vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 16px 48px rgba(0,0,0,.5); background: #fff; }
.img-lightbox .cap { color: #fff; font-size: 13px; opacity: .85; }

/* ============ 数字模块（战绩） ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stat {
  background: linear-gradient(180deg, #fff 0%, var(--brand-soft) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 8px; text-align: center; cursor: pointer; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.stat span { display: block; font-size: 26px; font-weight: 700; color: var(--brand-deep); line-height: 1.2; margin-top: 2px; }
.stat.warn { background: linear-gradient(180deg, #fff 0%, var(--warn-soft) 100%); }
.stat.warn span { color: var(--warn); }
.stat:active { transform: scale(.98); }

/* ============ 脚本安装引导（默认折叠） ============ */
details.script-help summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--brand-deep); list-style: none; user-select: none; }
details.script-help summary::-webkit-details-marker { display: none; }
details.script-help summary::before { content: '▸ '; }
details.script-help[open] summary::before { content: '▾ '; }
details.script-help .hint { margin-top: 10px; }
.script-help { border: 1px solid #cfe5d4; background: linear-gradient(180deg, #fff 0%, var(--brand-soft) 100%); }
.script-help .steps { margin: 6px 0 10px; padding-left: 22px; font-size: 13px; color: var(--ink-2); }
.script-help .steps li { margin: 4px 0; }
.script-help .steps b { color: var(--brand-deep); }
.navbtn.sm { font-size: 11px; padding: 6px 8px; opacity: .85; }

/* ============ 注册：截图强校验 ============ */
.up-tip { background: var(--warn-soft); border: 1px solid #f0dcb5; color: #8a5a12; border-radius: 8px; padding: 8px 10px; }
.attest { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink); cursor: pointer; }
.attest input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brand); flex: 0 0 auto; }

@media (max-width: 640px) {
  :root { --sidebar-w: 68px; }
  .sidebar .brand { font-size: 12px; }
  .sidebar .brand span { display: none; }
  .navbtn { font-size: 10.5px; padding: 8px 2px; }
  .navbtn .ic { font-size: 18px; }
  .content { padding: 12px 10px 100px; }
}

/* 重复链接明细行 */
.dupe-row { margin: 8px 0; padding: 8px 10px; background: #f4f7f4; border-radius: 8px; font-size: 13px; word-break: break-all; }
.dupe-row code { font-size: 12px; color: #2f5e42; }
.dupe-row .dupe-where { display: block; color: #9a6b2f; margin-top: 4px; }

/* 黑帖标题与元信息 */
.ltitle { font-weight: 600; font-size: 13px; color: #2f5e42; margin-bottom: 2px; }
.lmeta { font-size: 11.5px; color: #8a8f8a; margin-top: 2px; }
.src-note { font-size: 11px; color: #8a8f8a; margin-top: 2px; line-height: 1.4; }
.links li { align-items: flex-start; }

/* 报表表格 */
.rep-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.rep-table th, .rep-table td { border-bottom: 1px solid #e3e8e3; padding: 6px 8px; text-align: left; vertical-align: top; }
.rep-table th { color: #57705f; font-weight: 600; white-space: nowrap; }
.rep-table a { color: #2f5e42; word-break: break-all; }

/* 浑水摸鱼板块标签 */
.fish-tag { display: inline-block; font-size: 11px; font-weight: 600; color: #2b6e7a; background: #e3f2f5; border-radius: 6px; padding: 1px 7px; margin-right: 4px; vertical-align: 1px; }

/* 新成员大红引导卡 */
.script-help.first { border: 2.5px solid #d84a3f; background: #fff6f5; box-shadow: 0 4px 18px rgba(216, 74, 63, 0.18); animation: bpPulse 2.2s ease-in-out infinite; }
.script-help.first summary { color: #c0362c; font-weight: 700; font-size: 15px; }
@keyframes bpPulse { 0%, 100% { box-shadow: 0 4px 18px rgba(216, 74, 63, 0.15); } 50% { box-shadow: 0 6px 26px rgba(216, 74, 63, 0.38); } }
.script-help .steps li { margin: 8px 0; }
.btn.big { font-size: 15px; padding: 10px 18px; font-weight: 700; }

/* 长表格固定高度滚动容器（月汇报等） */
.scroll-box { max-height: 320px; overflow: auto; border: 1px solid #e3e8e3; border-radius: 8px; margin-top: 10px; }
.scroll-box .rep-table { margin-top: 0; }
.scroll-box th { position: sticky; top: 0; background: #f4f8f5; z-index: 1; }

/* 月报表「已清理」列：避免「☐ 勾选」被挤成两行 */
.rep-table td.col-clean, .rep-table th.col-clean { min-width: 72px; white-space: nowrap; text-align: center; }

/* 月报表：固定列宽，避免 IP / 管理员 等被挤成两/三行 */
.rep-table.fixed9 { table-layout: fixed; }
.rep-table.fixed9 th:nth-child(1), .rep-table.fixed9 td:nth-child(1) { width: 40px; }
.rep-table.fixed9 th:nth-child(2), .rep-table.fixed9 td:nth-child(2) { width: 84px; }
.rep-table.fixed9 th:nth-child(3), .rep-table.fixed9 td:nth-child(3) { width: auto; min-width: 180px; }
.rep-table.fixed9 th:nth-child(4), .rep-table.fixed9 td:nth-child(4) { width: 80px; }
.rep-table.fixed9 th:nth-child(5), .rep-table.fixed9 td:nth-child(5) { width: 60px; }
.rep-table.fixed9 th:nth-child(6), .rep-table.fixed9 td:nth-child(6) { width: 120px; }
.rep-table.fixed9 th:nth-child(7), .rep-table.fixed9 td:nth-child(7) { width: 110px; }
.rep-table.fixed9 th:nth-child(8), .rep-table.fixed9 td:nth-child(8) { width: 84px; }
.rep-table.fixed9 th:nth-child(9), .rep-table.fixed9 td:nth-child(9) { width: 72px; }
.rep-table.fixed9 td:nth-child(4),
.rep-table.fixed9 td:nth-child(5),
.rep-table.fixed9 td:nth-child(7),
.rep-table.fixed9 td:nth-child(8) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-table.fixed9 th.sortable { cursor: pointer; user-select: none; }
.rep-table.fixed9 th.sortable:hover { background: #eaf2eb; }
.rep-table.fixed9 th .sort-arrow { color: #57705f; font-size: 10px; margin-left: 2px; }
.rep-table.fixed9 th.sorted .sort-arrow { color: var(--brand-deep); font-weight: bold; }

/* 投诉类型管理（次管理员及以上）——紧凑版：理由 4 列网格 */
.tag-row { display: flex; flex-wrap: wrap; gap: 5px 6px; align-items: center; border: 1px solid #e3e8e3; border-radius: 8px; padding: 6px 8px; margin-top: 6px; background: #fbfdfb; }
.tag-row .t-emoji { width: 40px; padding: 5px 4px; text-align: center; }
.tag-row .t-name { padding: 5px 8px; }
.tag-row .t-reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 8px; flex: 1 1 100%; border-top: 1px dashed #e3e8e3; padding-top: 3px; }
.tag-row .t-reasons .reason-item { font-size: 11.5px; color: #57705f; padding: 1px 0; margin: 0; }
@media (max-width: 640px) { .tag-row .t-reasons { grid-template-columns: repeat(2, 1fr); } }

/* 成员管理紧凑列表 */
.u-chips { margin-bottom: 6px; }
.member-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 5px 4px; border-bottom: 1px solid #edf3ee; font-size: 13px; }
.member-row:last-of-type { border-bottom: none; }
.member-row .mu { flex: 1; min-width: 160px; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; word-break: break-all; }
.member-row .mu .muted { margin-left: 6px; font-size: 11.5px; }

/* 链接列表顶部工具条（全选完成） */
.links-tools { margin-top: 8px; }

/* 月报历史快照正文 */
.snap-text { max-height: 50vh; overflow: auto; white-space: pre-wrap; word-break: break-all; background: #f4f8f5; border: 1px solid #e3e8e3; border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.7; color: #3a4a3f; }

/* ⚡ 重要且紧急：红色置顶浮窗 */
.urgent-float {
  position: fixed; top: 12px; right: 12px; z-index: 850;
  width: 320px; max-width: calc(100vw - 24px); max-height: 70vh; overflow: auto;
  background: #fff; border: 2px solid var(--danger); border-radius: 12px;
  box-shadow: 0 10px 34px rgba(171, 59, 48, .35); padding: 10px 12px;
  animation: ufPulse 1.8s ease-in-out infinite;
}
@keyframes ufPulse { 0%, 100% { box-shadow: 0 10px 34px rgba(171, 59, 48, .35); } 50% { box-shadow: 0 10px 44px rgba(171, 59, 48, .6); } }
.urgent-float .uf-head { font-weight: 700; color: #fff; background: var(--danger); border-radius: 8px; padding: 5px 10px; font-size: 13px; margin-bottom: 8px; animation: ufPulse 1.8s ease-in-out infinite; }
.urgent-float .uf-post { border-top: 1px dashed #eecfcb; padding: 6px 0; }
.urgent-float .uf-post:first-of-type { border-top: none; }
.urgent-float .uf-t { font-weight: 600; font-size: 13px; word-break: break-all; }
.urgent-float .uf-t a { font-weight: 400; font-size: 12px; margin-left: 4px; white-space: nowrap; }
.urgent-float .uf-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 12.5px; }
.urgent-float .uf-row > a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--danger); word-break: break-all; }
.urgent-float .uf-row input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--danger); cursor: pointer; }
.urgent-float .uf-foot { font-size: 11px; color: var(--ink-2); margin-top: 6px; text-align: center; }

/* ⚡ 紧急公告卡标红 + 紧急徽章 + 定位闪烁 */
.post.urgent { border: 1.5px solid var(--danger); box-shadow: 0 4px 18px rgba(171, 59, 48, .18); }
.uf-tag { background: var(--danger) !important; color: #fff !important; }
.post.flash { animation: postFlash 1.2s ease-in-out 2; }
@keyframes postFlash { 0%, 100% { background: #fff; } 50% { background: var(--danger-soft); } }

/* 脚本回报的失效链接标记 */
.dead-tag { background: #fff3f2 !important; color: var(--danger) !important; border: 1px solid var(--danger); }
.dead-note { font-size: 11.5px; color: var(--danger); background: #fff3f2; border-radius: 6px; padding: 3px 8px; margin-top: 3px; }

/* 📣 改版公告：页面顶部长条通知栏（sticky 常驻顶部），点「已知晓」各自消失 */
.notice-bar {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: flex-start; gap: 8px;
  background: linear-gradient(180deg, #fff8e6, #fdf1d2);
  border: 1px solid #ecd9a8; border-left: 4px solid var(--warn);
  border-radius: 10px; padding: 8px 10px; margin: 2px 0 10px;
  box-shadow: 0 4px 14px rgba(192, 131, 26, .18);
}
.notice-bar .nb-ic { font-size: 16px; line-height: 1.5; }
.notice-bar .nb-text { flex: 1; min-width: 0; font-size: 13px; color: #6b4a0e; word-break: break-word; line-height: 1.55; }
.notice-bar .nb-meta { display: block; font-size: 11px; color: #ab8a3a; margin-top: 1px; }
.notice-bar .nb-ack { flex: 0 0 auto; background: var(--warn); border-color: var(--warn); color: #fff; white-space: nowrap; }
.notice-bar .nb-ack:hover { background: #a86e12; border-color: #a86e12; }

/* 管理后台：当前公告回显 */
.nb-cur { background: #fdf6e3; border: 1px dashed #ecd9a8; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; margin-bottom: 6px; word-break: break-word; }
.nb-cur .muted { margin-left: 4px; }

/* ============ 板块配色区分（防放错板块） ============ */
/* 黑水塘：竹青绿（默认品牌色）；浑水摸鱼：赭石橙 —— 一眼分清自己在哪个板块 */
.content.board-fish .sec-title { color: #9a4a0e; }
.content.board-fish .card > h3 { color: #9a4a0e; }
.content.board-fish input:focus, .content.board-fish textarea:focus, .content.board-fish select:focus {
  border-color: #dfa352; box-shadow: 0 0 0 2px rgba(194, 102, 27, .12);
}
.content.board-fish .row .btn:not(.ghost):not(.danger):not(.sm) { background: #c2661b; border-color: #c2661b; }
.content.board-fish .row .btn:not(.ghost):not(.danger):not(.sm):hover { background: #9a4a0e; border-color: #9a4a0e; }
.content.board-fish .chip.active { border-color: #c2661b; background: #c2661b; }
.content.board-fish .progress > i { background: #dfa352; }
.content.board-fish .state.fresh { background: #fdf3e3; color: #9a4a0e; }
.content.board-fish .links input[type=checkbox] { accent-color: #c2661b; }

/* ============ 站内确认弹窗（替代原生 confirm：小巧、居中） ============ */
.modal.kp-confirm { max-width: 340px; }
.kp-confirm .kp-msg { font-size: 13.5px; line-height: 1.7; word-break: break-word; }

/* ============ 紧凑化：单板块视图下再压一档留白 ============ */
.sec-title { margin: 4px 0 8px; }
.stats .stat { padding: 8px 6px; }
.stats .stat b { font-size: 11px; }
.stats .stat span { font-size: 20px; }
.card { margin-bottom: 8px; }
.links li { padding: 5px 8px; margin-bottom: 5px; }
.post .row { margin-top: 8px; }

/* ============ 侧边栏未处理红点（导航上的待办数字） ============ */
.navbtn .ic { position: relative; }
.nav-badge {
  position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px;
  background: var(--danger); color: #fff; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center;
  padding: 0 5px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
  z-index: 5;
  animation: nb-pulse 1.6s ease-in-out infinite;
}
@keyframes nb-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

/* 角色与权限面板（管理后台） */
#perm-panel .row.wrap { flex-wrap: wrap; }
.perm-roles .perm-role { display: flex; flex-direction: column; gap: 3px; flex: 1 1 150px; min-width: 130px; }
.perm-roles .perm-role span { font-size: 12px; color: #6a726b; }
.perm-roles .perm-role input { padding: 5px 8px; border: 1px solid #d8ddd8; border-radius: 6px; font-size: 13px; }
.perm-table-wrap { margin-top: 10px; }
.perm-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.perm-table th, .perm-table td { border: 1px solid #e3e8e3; padding: 5px 8px; text-align: center; }
.perm-table th { background: #f2f6f2; color: #3a5a44; font-size: 12px; white-space: nowrap; }
.perm-table .perm-label { text-align: left; font-weight: 600; }
.perm-table .perm-label small { display: block; font-weight: 400; color: #8a8f8a; font-size: 11px; }
.perm-table input.pk { width: 15px; height: 15px; cursor: pointer; }
.perm-table tr.perm-adminlock td { background: #fafcfa; }

/* ============ 2026-09-09 注册改版（豆瓣主页 uid 为唯一账号）+ 成员档案 ============ */
#auth-card input[type="text"], #auth-card input[type="password"], #auth-card input[type="url"] {
  width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; margin-top: 2px;
}
#auth-card label { display: block; font-size: 12px; color: var(--ink-2); margin: 10px 0 4px; }
#auth-card .reg-sec label { margin-top: 8px; }
.reg-sec { border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 6px; margin-top: 12px; background: #fbfdfb; }
.reg-sec .sec-t { font-weight: 700; color: var(--brand-deep); margin-bottom: 4px; font-size: 13px; }
.upload-box { border: 1px dashed var(--line); border-radius: 10px; padding: 8px; margin: 8px 0 2px; background: #fff; }
.upload-box .cap { font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.upload-box input[type="file"] { font-size: 12px; }
/* 注册表单 2×2 两列：宽屏并排压缩高度，窄屏自动单列 */
.reg-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
@media (min-width: 760px) {
  .reg-grid { grid-template-columns: 1fr 1fr; }
  .reg-grid .reg-sec { margin-top: 0; }
}
#auth-card .row { gap: 8px; }
#auth-card .row #b-main { flex: 1; padding: 11px 12px; font-size: 15px; }
.upload-box img { max-height: 160px; max-width: 100%; border-radius: 8px; margin-top: 6px; border: 1px solid var(--line); }
.uid-detect { font-size: 12px; color: var(--ink-2); min-height: 18px; margin-top: 3px; }
.uid-detect.ok { color: #3a8a4f; font-weight: 600; }
.plinks { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.plink { display: inline-block; background: var(--brand-soft); color: var(--brand-deep); border-radius: 6px; padding: 1px 8px; font-size: 12px; text-decoration: none; }
.plink:hover { background: #dcecdf; }
.no-ev { font-size: 12px; color: #9aa8a0; padding: 2px 0; }
.uid-tag { display: inline-block; background: #eef3ee; color: #5c6f63; border-radius: 5px; padding: 0 6px; font-size: 11px; margin: 0 6px; font-family: ui-monospace, Menlo, monospace; vertical-align: middle; }

/* 管理后台长区块收纳：角色权限折叠卡 + 投诉类型内部滚动 */
details.fold-card > summary { cursor: pointer; font-weight: 700; font-size: 16px; color: var(--brand-deep); user-select: none; list-style: none; display: flex; align-items: baseline; gap: 6px; }
details.fold-card > summary::-webkit-details-marker { display: none; }
details.fold-card > summary::before { content: '▸'; font-size: 13px; color: #7a8f7f; transition: transform .15s; }
details.fold-card[open] > summary::before { transform: rotate(90deg); }
details.fold-card > summary small { font-weight: 400; font-size: 12px; color: var(--ink-2); }
details.fold-card[open] > summary { margin-bottom: 10px; }
.scroll-y { max-height: 480px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-top: 8px; background: #fff; }
.scroll-box.tall { max-height: 520px; }
.st-badge { display: inline-block; border-radius: 5px; padding: 0 6px; font-size: 11px; background: var(--danger-soft); color: var(--danger); margin-left: 6px; }
.member-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 2px; border-bottom: 1px dashed var(--line); }
.member-row .mu { display: flex; align-items: center; flex-wrap: wrap; }
.member-row .mu .muted { margin-left: 8px; font-size: 12px; }
.rej-arch { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.rej-arch summary { cursor: pointer; color: var(--ink-2); font-size: 13px; padding: 4px 2px; }
.rej-arch .finding { margin-top: 8px; }
.rej-arch .pending-pics img { width: 60px; height: 60px; }
/* 入队申请卡片：纵向块布局（.finding 默认横向 flex，子块多时会被压成竖排文字） */
.finding.reg-card { display: block; }
.finding.reg-card .u { margin-bottom: 2px; }
.finding.reg-card .plinks { margin: 6px 0; }
.finding.reg-card .pending-pics { margin: 4px 0; }
.finding.reg-card .reg-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pf-hero { display: flex; align-items: center; gap: 4px; margin: 8px 0 2px; flex-wrap: wrap; }
.pf-hero b { font-size: 16px; }
.pf-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 8px 0; font-size: 13px; align-items: center; }
.pf-grid .pf-k { color: var(--ink-2); white-space: nowrap; font-size: 12px; }
.pf-grid input { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; box-sizing: border-box; }
.pf-grid code { background: #eef3ee; border-radius: 5px; padding: 1px 6px; font-size: 12px; }
.pf-pics { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.pf-img { flex: 1; min-width: 170px; }
.pf-img > b { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.pf-img .pending-pics img { width: 120px; height: 120px; }
.pf-img input[type="file"] { font-size: 12px; }
