/* 落水河中学校园网 · 样式表（交互界面仅使用简体中文与中文符号） */
:root {
  --brand: #2563eb;
  --brand-2: #0ea5e9;
  --brand-deep: #1746a8;
  --brand-soft: #e8f1ff;
  --ink: #1b2437;
  --ink-2: #5b6780;
  --ink-3: #94a1b8;
  --bg: #f3f7fc;
  --card: #ffffff;
  --line: #e5edf7;
  --accent: #e8662a;
  --ok: #16a34a;
  --danger: #ef4444;
  --shadow: 0 6px 24px rgba(24, 62, 122, .08);
  --shadow-lg: 0 18px 48px rgba(24, 62, 122, .16);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding-top: 64px; background: var(--bg); color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
::selection { background: #cfe0ff; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 64px;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1300px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #3b82f6, #06b6d4); color: #fff; font-size: 19px; font-weight: 800;
  box-shadow: 0 5px 14px rgba(37,99,235,.32);
}
.brand-logo.small { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; letter-spacing: .5px; }
.brand-text small { font-size: 10px; color: var(--ink-3); letter-spacing: 1px; margin-top: 2px; }
.mainnav { display: flex; gap: 4px; flex-shrink: 0; }
.mainnav a { padding: 7px 13px; border-radius: 9px; font-weight: 600; color: var(--ink-2); transition: .18s; }
.mainnav a:hover { background: var(--brand-soft); color: var(--brand); }
.mainnav a.active { background: var(--brand-soft); color: var(--brand); }
.top-search {
  flex: 1; max-width: 320px; min-width: 150px; display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 8px 0 12px; background: #f2f6fc;
  border: 1px solid transparent; border-radius: 10px; transition: .2s;
}
.top-search:focus-within { background: #fff; border-color: #b9d2ff; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
.top-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.top-search input::placeholder { color: var(--ink-3); }
.top-search .s-word { font-size: 11px; color: var(--ink-3); border-right: 1px solid #d9e3f2; padding-right: 9px; white-space: nowrap; }
.top-search .s-key { font-size: 10px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; background: #fff; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 8px 14px; border-radius: 10px; font-weight: 600; transition: .18s; white-space: nowrap;
}
.btn:hover { border-color: #c7d9f7; color: var(--brand); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #3b82f6, #2583ea); border-color: transparent; color: #fff; box-shadow: 0 5px 14px rgba(37,99,235,.25); }
.btn-primary:hover { color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.34); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: #fff; border-radius: 999px; padding: 4px 12px 4px 5px; transition: .18s; max-width: 230px;
}
.user-chip:hover { border-color: #c7d9f7; }
.u-name { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.u-sig { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0;
  overflow: hidden; background: linear-gradient(135deg, #dbeafe, #cffafe);
  color: var(--brand-deep); font-weight: 800; font-size: 13px; vertical-align: middle;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.avatar.lg { width: 40px; height: 40px; font-size: 17px; }
.avatar.xl { width: 88px; height: 88px; font-size: 34px; border-radius: 18px; }

/* ---------- 公告 ---------- */
.notice-bar {
  max-width: 1240px; margin: 16px auto 0; padding: 9px 16px; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, #eef5ff, #f4fbff); border: 1px solid #dbe9ff;
  border-radius: 12px; color: var(--ink-2); font-size: 13px;
}
.notice-tag { background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 6px; white-space: nowrap; }

/* ---------- 访客只读门禁 ---------- */
.gate-banner {
  display: flex; align-items: center; gap: 14px;
  margin: 16px 0 18px; padding: 14px 18px;
  background: linear-gradient(100deg, #fff7ed, #fffdf8 58%, #f4f9ff);
  border: 1px solid #f3d3ae; border-left: 5px solid #e8842c;
  border-radius: 12px; box-shadow: 0 3px 12px rgba(232,132,44,.08);
}
.gate-mark {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px;
  display: grid; place-items: center; background: #e8842c; color: #fff;
  font-size: 17px; font-weight: 800;
}
.gate-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.gate-text b { font-size: 14.5px; color: #9a4b0c; }
.gate-text span { font-size: 12.5px; color: #8a6544; line-height: 1.6; }
.gate-btns { display: flex; gap: 8px; flex-shrink: 0; }
.gate-btns .btn { padding: 7px 14px; font-size: 12.5px; }
.guest-tag {
  font-size: 11.5px; font-weight: 700; color: #9a4b0c; background: #fff1df;
  border: 1px solid #f3d3ae; border-radius: 99px; padding: 5px 11px; white-space: nowrap;
}
.tag-none { font-size: 12px; color: var(--ink-3); }
.act-btn.locked { color: var(--ink-3); background: #f8fafc; border-style: dashed; }
.act-btn.locked:hover { color: #9a4b0c; border-color: #f3d3ae; background: #fff7ed; }
.login-tip.locked { background: #fff7ed; border-color: #f3d3ae; }
.login-tip.locked p b { color: #9a4b0c; }

/* ---------- 进站登录墙 ---------- */
.wall-mode .mainnav, .wall-mode .top-search, .wall-mode .notice-bar,
.wall-mode #topActions, .wall-mode .footer-stat, .wall-mode .footer-right,
.wall-mode .footer { display: none !important; }
.login-wall {
  min-height: calc(100vh - 210px);
  display: grid; place-items: center; padding: 30px 16px 16px;
}
.wall-panel {
  width: 100%; max-width: 450px; box-sizing: border-box;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 20px 55px rgba(30,80,160,.16);
  padding: 32px;
}
.wall-brand { display: flex; align-items: center; gap: 12px; }
.wall-brand .brand-logo { width: 46px; height: 46px; font-size: 22px; border-radius: 13px; }
.wall-brand h1 { margin: 0; font-size: 20px; color: var(--ink); }
.wall-brand p { margin: 3px 0 0; font-size: 12px; color: var(--ink-3); }
.wall-lock {
  display: inline-block; margin: 20px 0 12px; padding: 5px 12px;
  font-size: 12px; font-weight: 700; color: #9a4b0c;
  background: #fff1df; border: 1px solid #f3d3ae; border-radius: 99px;
}
.wall-panel h2 { margin: 0 0 8px; font-size: 20px; color: var(--ink); }
.wall-desc { margin: 0 0 20px; font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.wall-panel .auth-tabs { margin: 0 0 18px; }
.wall-auth-form .field { margin-bottom: 14px; }
.wall-auth-form .input { width: 100%; box-sizing: border-box; }
.wall-auth-form[hidden] { display: none !important; }
.wall-submit { width: 100%; padding: 11px; font-size: 14px; box-sizing: border-box; }
.wall-note { margin: 16px 0 0; font-size: 11.5px; color: var(--ink-3); text-align: center; line-height: 1.75; }
.wall-admin {
  display: block; margin: 18px auto 0; padding: 4px;
  border: 0; background: none; color: var(--ink-3);
  font-size: 11px; text-decoration: underline; text-underline-offset: 3px;
  opacity: .4; cursor: pointer;
}
.wall-admin:hover { color: var(--brand); opacity: .9; }

/* ---------- 布局 ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 20px 20px 48px; }
.home-grid { display: grid; grid-template-columns: 200px minmax(0,1fr) 270px; gap: 18px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-title { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.card-title .more { font-size: 12px; font-weight: 500; color: var(--ink-3); cursor: pointer; }
.card-title .more:hover { color: var(--brand); }

/* ---------- 首屏横幅 ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 18px; padding: 26px 30px; color: #fff;
  background: linear-gradient(115deg, #1e5bd8 0%, #2f86f6 48%, #22b8d8 100%);
  box-shadow: 0 14px 34px rgba(30,91,216,.22); margin-bottom: 18px;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.11); pointer-events: none; }
.hero::before { width: 260px; height: 260px; right: -50px; top: -130px; }
.hero::after { width: 180px; height: 180px; right: 120px; bottom: -120px; background: rgba(255,255,255,.08); }
.hero h1 { margin: 0 0 6px; font-size: 25px; letter-spacing: 1px; }
.hero p { margin: 0 0 16px; font-size: 13px; opacity: .92; }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-pill { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); padding: 6px 13px; border-radius: 999px; font-size: 12px; }
.hero-actions { position: relative; z-index: 1; margin-top: 16px; display: flex; gap: 10px; }
.hero-btn { background: #fff; color: var(--brand-deep); border: 0; padding: 8px 18px; border-radius: 10px; font-weight: 700; }
.hero-btn.ghost { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.4); }

/* ---------- 板块 / 侧栏 ---------- */
.board-list { display: flex; flex-direction: column; gap: 3px; }
.board-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 600; cursor: pointer; transition: .16s; }
.board-item:hover { background: #f4f8ff; color: var(--brand); }
.board-item.active { background: var(--brand-soft); color: var(--brand); }
.board-item .b-mark { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: #eef4fd; color: var(--brand); font-size: 12px; font-weight: 800; flex-shrink: 0; }
.board-item .b-count { margin-left: auto; font-size: 11px; color: var(--ink-3); font-weight: 500; }
.quick-note { font-size: 12px; color: var(--ink-2); line-height: 1.95; }
.quick-note b { color: var(--brand); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-box { background: linear-gradient(135deg, #f5f9ff, #eff6ff); border: 1px solid #e3edff; border-radius: 12px; padding: 12px; }
.stat-box b { display: block; font-size: 20px; color: var(--brand); line-height: 1.3; }
.stat-box span { font-size: 11px; color: var(--ink-3); }
.hot-list { display: flex; flex-direction: column; gap: 11px; }
.hot-item { display: flex; gap: 9px; cursor: pointer; }
.hot-rank { width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px; display: grid; place-items: center; background: #eef3fa; color: var(--ink-3); font-size: 11px; font-weight: 800; margin-top: 2px; }
.hot-item:nth-child(1) .hot-rank { background: #ffe9e0; color: #f2562a; }
.hot-item:nth-child(2) .hot-rank { background: #fff2dc; color: #e39a12; }
.hot-item:nth-child(3) .hot-rank { background: #e6f0ff; color: #3b82f6; }
.hot-item p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.hot-item:hover p { color: var(--brand); }
.hot-item small { color: var(--ink-3); font-size: 11px; }
.cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.cloud .mini-tag { cursor: pointer; padding: 4px 10px; font-size: 12px; }
.cloud .mini-tag:hover { background: var(--brand-soft); color: var(--brand); }
.rule-list { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 12px; line-height: 2; }

/* ---------- 筛选与帖子卡片 ---------- */
.filter-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; }
.filter-bar .f-label { font-size: 12px; color: var(--ink-3); margin-right: 4px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; transition: .16s; }
.chip:hover { border-color: #bcd3fa; color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-bar .f-right { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-card { padding: 16px 18px; transition: .2s; cursor: pointer; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(24,62,122,.13); border-color: #d5e4fb; }
.post-head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.tag.pin { background: #fff0e8; color: #e8662a; }
.tag.ess { background: #fff7e0; color: #b8790b; }
.tag.repost { background: #f0ebff; color: #7c4ddb; }
.tag.board { background: #eef4fd; color: #3b6fc4; }
.post-title { font-size: 16px; font-weight: 700; margin: 0 0 7px; line-height: 1.5; }
.post-card:hover .post-title { color: var(--brand); }
.post-excerpt { font-size: 13px; color: var(--ink-2); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.post-meta .m-author { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.post-meta .m-author:hover { color: var(--brand); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.post-stats { margin-left: auto; display: flex; gap: 12px; flex-shrink: 0; }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mini-tag { font-size: 11px; color: var(--ink-3); background: #f4f7fc; padding: 2px 8px; border-radius: 5px; }
.sig-line { font-size: 11px; color: var(--ink-3); font-style: normal; }
.empty { text-align: center; padding: 46px 20px; color: var(--ink-3); }
.empty .e-word { display: block; font-size: 17px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.load-more { display: block; width: 100%; margin-top: 14px; }

/* ---------- 详情页 ---------- */
.detail-wrap { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 18px; align-items: start; }
.crumb { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.crumb a:hover { color: var(--brand); }
.article { padding: 26px 30px; }
.article h1 { font-size: 25px; line-height: 1.45; margin: 12px 0 12px; }
.article-author { display: flex; align-items: center; gap: 11px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.article-author .a-info b { display: block; font-size: 13px; cursor: pointer; }
.article-author .a-info b:hover { color: var(--brand); }
.article-author .a-info small { color: var(--ink-3); font-size: 11px; display: block; }
.article-author .a-sig { font-size: 12px; color: var(--ink-2); background: #f4f8ff; padding: 3px 10px; border-radius: 8px; margin-top: 3px; display: inline-block; }
.article-body { font-size: 15px; line-height: 2; color: #2b3547; padding: 20px 0 8px; white-space: pre-wrap; word-break: break-word; }
.article-tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0 18px; }
.action-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.act-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 8px 15px; border-radius: 10px; font-weight: 600; transition: .18s; }
.act-btn:hover { border-color: #bcd3fa; color: var(--brand); background: #f8fbff; }
.act-btn.on { background: #fff0ea; border-color: #ffd2bf; color: #e8662a; }
.act-btn .n { font-size: 12px; opacity: .8; }
.view-box { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.view-box b { color: var(--brand); font-size: 15px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.section-head h3 { margin: 0; font-size: 16px; }
.section-head span { font-size: 12px; color: var(--ink-3); }
.comment-editor { display: flex; gap: 10px; padding: 16px; }
.comment-editor textarea { flex: 1; resize: vertical; min-height: 70px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #fbfdff; }
.comment-editor textarea:focus { border-color: #a9c8ff; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.comment-editor .ce-side { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.comment-editor .ce-tip { font-size: 11px; color: var(--ink-3); max-width: 130px; line-height: 1.6; }
.login-tip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: #f7faff; }
.login-tip p { margin: 0; font-size: 13px; color: var(--ink-2); }
.comment-item { padding: 15px 16px; border-top: 1px solid var(--line); display: flex; gap: 11px; }
.comment-main { flex: 1; min-width: 0; }
.comment-main .c-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-main .c-head b { font-size: 13px; cursor: pointer; }
.comment-main .c-head b:hover { color: var(--brand); }
.comment-main .c-head small { color: var(--ink-3); font-size: 11px; }
.comment-main .c-sig { font-size: 11px; color: var(--ink-3); }
.comment-main .c-body { font-size: 13.5px; color: #333e52; margin: 6px 0 7px; line-height: 1.8; word-break: break-word; }
.comment-main .c-tools { display: flex; gap: 12px; font-size: 12px; }
.comment-main .c-tools span { color: var(--ink-3); cursor: pointer; }
.comment-main .c-tools span:hover { color: var(--brand); }
.comment-main .c-tools span.warn:hover { color: var(--danger); }
.reply-list { margin-top: 10px; background: #f7faff; border-radius: 10px; padding: 4px 12px; }
.reply-item { padding: 8px 0; font-size: 12.5px; border-bottom: 1px dashed #e6edf8; }
.reply-item:last-child { border-bottom: 0; }
.reply-item b { color: var(--brand); }
.reply-item .to { color: var(--ink-3); }
.reply-item .r-time { color: var(--ink-3); font-size: 11px; margin-left: 8px; }
.reply-item .r-del { float: right; cursor: pointer; color: #d9a0a0; }
.reply-item .r-del:hover { color: var(--danger); }
.inline-reply { display: flex; gap: 8px; margin-top: 9px; }
.inline-reply input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; outline: 0; background: #fff; }
.inline-reply input:focus { border-color: #a9c8ff; }
.repost-item { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.repost-item .r-head { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.repost-item .r-head small { color: var(--ink-3); margin-left: auto; }
.repost-item p { margin: 6px 0 0; color: #333e52; background: #f7faff; padding: 8px 12px; border-radius: 8px; }

/* ---------- 表单 ---------- */
.form-card { padding: 26px 30px; }
.form-card h2 { margin: 0 0 4px; font-size: 20px; }
.form-card .sub { color: var(--ink-3); font-size: 12px; margin: 0 0 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 7px; }
.field label .req { color: var(--danger); }
.field .hint { font-size: 11px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; outline: 0; background: #fbfdff; transition: .18s; color: var(--ink); }
.input:focus, .select:focus, .textarea:focus { border-color: #a9c8ff; box-shadow: 0 0 0 3px rgba(37,99,235,.08); background: #fff; }
.textarea { resize: vertical; min-height: 170px; line-height: 1.9; }
.board-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.board-picker label { margin: 0; }
.board-opt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 1px solid var(--line); background: #fff; padding: 7px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: .16s; }
.board-opt:hover { border-color: #bcd3fa; }
.board-opt input { display: none; }
.board-opt.active { background: var(--brand-soft); border-color: #9dc0ff; color: var(--brand); }
.form-footer { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; flex-wrap: wrap; }
.form-footer .f-note { font-size: 12px; color: var(--ink-3); margin-left: auto; }

/* ---------- 我的资料 ---------- */
.profile-grid { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 26px; }
.avatar-panel { text-align: center; border-right: 1px dashed var(--line); padding-right: 24px; }
.avatar-preview { display: flex; justify-content: center; margin: 6px 0 14px; }
.upload-btn { display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 7px 14px; border-radius: 9px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.upload-btn:hover { border-color: #bcd3fa; color: var(--brand); }
.upload-btn input { display: none; }
.avatar-panel .ap-note { font-size: 11px; color: var(--ink-3); line-height: 1.8; margin-top: 12px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.section-label { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--brand); border-left: 3px solid var(--brand); padding-left: 9px; margin: 8px 0 16px; }
.profile-tip { background: #f4f8ff; border: 1px dashed #cfe0ff; border-radius: 10px; padding: 12px 14px; font-size: 12px; color: var(--ink-2); line-height: 1.9; margin-bottom: 18px; }
.ucard-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
.ucard-head b { display: block; font-size: 17px; }
.ucard-head small { color: var(--ink-3); font-size: 11.5px; }
.ucard-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.ucard-row:last-child { border-bottom: 0; }
.ucard-row .k { width: 84px; flex-shrink: 0; color: var(--ink-3); }
.ucard-row .v { flex: 1; color: var(--ink-2); word-break: break-word; }

/* ---------- 后台 ---------- */
.admin-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 16px; background: linear-gradient(110deg, #173d8f, #2563eb 55%, #0ea5e9); color: #fff; border-radius: 16px; box-shadow: 0 12px 28px rgba(23,61,143,.2); }
.admin-head h2 { margin: 0; font-size: 19px; }
.admin-head p { margin: 2px 0 0; font-size: 12px; opacity: .85; }
.admin-head .btn { margin-left: auto; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; }
.admin-head .btn:hover { background: rgba(255,255,255,.26); color: #fff; }
.admin-layout { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 18px; align-items: start; }
.admin-nav { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.admin-nav button { text-align: left; border: 0; background: transparent; color: var(--ink-2); padding: 9px 13px; border-radius: 9px; font-weight: 600; font-size: 13px; transition: .16s; }
.admin-nav button:hover { background: #f4f8ff; color: var(--brand); }
.admin-nav button.active { background: var(--brand-soft); color: var(--brand); }
.admin-panel { padding: 20px 22px; min-height: 420px; }
.admin-panel h3 { margin: 0 0 4px; font-size: 16px; }
.admin-panel .p-sub { color: var(--ink-3); font-size: 12px; margin: 0 0 18px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: linear-gradient(140deg, #fbfdff, #f2f7ff); }
.kpi b { display: block; font-size: 24px; line-height: 1.35; color: var(--brand-deep); }
.kpi span { font-size: 11.5px; color: var(--ink-3); }
.kpi small { display: block; font-size: 11px; color: var(--ok); margin-top: 3px; }
.chart-box { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.chart-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.chart-sub { font-size: 11px; color: var(--ink-3); margin-bottom: 12px; }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-col .bar { width: 100%; max-width: 40px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #60a5fa, #2563eb); transition: .3s; min-height: 3px; }
.bar-col:hover .bar { background: linear-gradient(180deg, #38bdf8, #1d4ed8); }
.bar-col .bar-val { font-size: 11px; color: var(--ink-2); font-weight: 700; }
.bar-col .bar-label { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rank-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 12.5px; border-bottom: 1px dashed var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-row .r-num { width: 18px; height: 18px; border-radius: 5px; background: var(--brand-soft); color: var(--brand); font-size: 10px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.rank-row .r-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.rank-row .r-name:hover { color: var(--brand); }
.rank-row .r-val { color: var(--ink-3); font-size: 11.5px; }
.dist-row { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font-size: 12px; }
.dist-row .d-name { width: 96px; flex-shrink: 0; color: var(--ink-2); }
.dist-row .d-track { flex: 1; height: 9px; background: #eef3fa; border-radius: 99px; overflow: hidden; }
.dist-row .d-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #60a5fa, #0ea5e9); }
.dist-row .d-val { width: 26px; text-align: right; color: var(--ink-3); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data th { background: #f6f9fe; color: var(--ink-2); font-weight: 700; text-align: left; padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.data td { padding: 10px 12px; border-bottom: 1px solid #f0f4fa; color: var(--ink-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fafcff; }
table.data .t-title { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; cursor: pointer; }
table.data .t-title:hover { color: var(--brand); }
.table-tools { display: flex; gap: 5px; }
.log-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.log-row:last-child { border-bottom: 0; }
.log-row .l-time { color: var(--ink-3); font-size: 11.5px; width: 140px; flex-shrink: 0; }
.log-row .l-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.log-row .l-title:hover { color: var(--brand); }
.setting-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.setting-row:last-child { border-bottom: 0; }
.setting-row .s-label { width: 128px; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.setting-row .s-desc { font-size: 11.5px; color: var(--ink-3); }
.setting-row .input { max-width: 280px; }
.danger-zone { background: #fff7f7; border: 1px solid #ffe0e0; border-radius: 12px; padding: 16px; margin-top: 18px; }
.danger-zone h4 { margin: 0 0 6px; color: var(--danger); font-size: 13px; }
.danger-zone p { margin: 0 0 12px; font-size: 12px; color: var(--ink-2); }

/* ---------- 弹窗与提示 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 300; background: rgba(15,28,50,.48); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .18s ease; }
.modal { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 24px; animation: popIn .22s cubic-bezier(.2,.8,.3,1.2); max-height: 86vh; overflow-y: auto; }
.modal.wide { max-width: 560px; }
.modal h3 { margin: 0 0 6px; font-size: 18px; }
.modal .m-sub { color: var(--ink-3); font-size: 12.5px; margin: 0 0 18px; line-height: 1.75; }
.modal .m-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.modal .field { margin-bottom: 14px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.auth-tabs button { flex: 1; padding: 9px; border: 0; background: transparent; font-weight: 700; color: var(--ink-3); border-bottom: 2px solid transparent; }
.auth-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.code-input { width: 100%; text-align: center; letter-spacing: 2px; font-size: 17px; font-weight: 700; border: 1px solid var(--line); border-radius: 10px; padding: 12px; outline: 0; background: #fbfdff; }
.code-input:focus { border-color: #a9c8ff; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.code-input.shake { animation: shake .35s; border-color: var(--danger); }
.gate-hint { background: #f4f8ff; border: 1px dashed #cfe0ff; border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--ink-2); margin-top: 14px; line-height: 1.8; }
.gate-hint code { background: #fff; padding: 1px 6px; border-radius: 5px; color: var(--brand); font-weight: 700; }
.toast-root { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(27,36,55,.94); color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-lg); animation: toastIn .25s ease; }
.toast.ok { background: #128a4c; }
.toast.err { background: #d63c3c; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.96) } to { opacity: 1; transform: none } }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-7px)} 50%{transform:translateX(7px)} 75%{transform:translateX(-4px)} }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) } to { opacity: 1; transform: none } }

/* ---------- 「我的资料」页右下角隐蔽入口 ---------- */
.corner-entry {
  position: fixed; right: 18px; bottom: 14px; z-index: 120;
  border: 0; background: transparent; padding: 4px 6px;
  color: var(--ink-3); font-size: 11px; font-weight: 400;
  text-decoration: underline; text-underline-offset: 3px;
  opacity: .42; transition: opacity .18s, color .18s;
}
.corner-entry:hover { opacity: .95; color: var(--ink-2); }
.corner-entry[hidden] { display: none; }
.footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.7); margin-top: 26px; padding: 22px 20px 74px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-left strong { font-size: 13px; }
.footer-left p { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-3); }
.footer-right { display: flex; align-items: center; gap: 14px; padding-right: 0; font-size: 11.5px; color: var(--ink-3); }
.admin-chip { font-size: 11.5px; font-weight: 700; color: #5b21b6; background: #f3edff; border: 1px solid #ddd0fb; border-radius: 99px; padding: 5px 11px; white-space: nowrap; }

/* ---------- 后台权限层级 ---------- */
.admin-head.super { background: linear-gradient(110deg, #3b1d78, #6d28d9 52%, #2563eb); box-shadow: 0 12px 28px rgba(80,40,160,.24); }
.admin-head-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.admin-head-actions .btn { margin-left: 0; }
.level-tip { background: #fff8ed; border: 1px solid #f3d3ae; border-left: 4px solid #e8842c; border-radius: 10px; padding: 11px 15px; font-size: 12.5px; color: #8a5a2b; line-height: 1.75; margin-bottom: 14px; }
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.level-card { border: 1px solid var(--line); border-radius: 13px; padding: 15px; background: #fbfdff; }
.level-card .lv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.level-card .lv-no { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }
.level-card b { font-size: 14px; }
.level-card .lv-who { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.level-card p { margin: 10px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.85; }
.level-card.lv2 { border-color: #cfe0ff; background: #f6faff; }
.level-card.lv3 { border-color: #ddd0fb; background: #faf7ff; }
.level-card.lv3 .lv-no { background: #ede4ff; color: #5b21b6; }
.level-note { margin-top: 16px; }
.level-note p { margin: 7px 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.85; }
.gate-alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border: 1px dashed #cfe0ff; border-radius: 10px; background: #f6faff; font-size: 12px; color: var(--ink-2); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 185px minmax(0,1fr); }
  .home-grid .col-right, .detail-wrap .col-right { display: none; }
  .detail-wrap { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .u-sig { display: none; }
}
@media (max-width: 820px) {
  body { padding-top: 60px; }
  .topbar { height: 60px; }
  .topbar-inner { gap: 9px; padding: 0 12px; }
  .brand-text small, .mainnav, .top-search .s-key, .top-actions .btn-primary { display: none; }
  /* 后台页面窄屏：收起搜索框与层级徽章，保证「返回前台」按钮完整可点 */
  body.admin-mode .top-search { display: none; }
  body.admin-mode .admin-chip { display: none; }
  .brand-text strong { font-size: 14px; }
  .top-search { max-width: none; min-width: 96px; }
  .top-search .s-word { display: none; }
  .brand-logo { width: 32px; height: 32px; font-size: 16px; }
  .brand-text strong { font-size: 13px; }
  .top-actions .btn[data-action="auth"][data-tab="register"] { display: none; }
  .user-chip { padding: 4px; max-width: none; }
  .user-chip .u-name { display: none; }
  .top-actions .btn[data-action="logout"] { display: none; }
  .notice-bar { margin: 12px 12px 0; align-items: flex-start; }
  .guest-tag { display: none; }
  .gate-banner { flex-wrap: wrap; margin: 12px 0 16px; padding: 12px 14px; gap: 10px; }
  .gate-text { flex-basis: calc(100% - 52px); }
  .gate-btns { width: 100%; }
  .gate-btns .btn { flex: 1; }
  .login-wall { min-height: calc(100vh - 170px); padding: 18px 12px; }
  .wall-panel { padding: 22px 20px; }
  .wall-brand h1 { font-size: 18px; }
  .home-grid { grid-template-columns: 1fr; }
  .home-grid .col-left { display: none; }
  .two-col, .profile-grid { grid-template-columns: 1fr; }
  .avatar-panel { border-right: 0; border-bottom: 1px dashed var(--line); padding: 0 0 18px; }
  .form-two { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; overflow-x: auto; }
  .admin-nav button { white-space: nowrap; }
  .article, .form-card { padding: 20px; }
  .article h1 { font-size: 21px; }
  .container { padding: 14px 12px 40px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-right { padding-right: 0; }
  .corner-entry { right: 12px; bottom: 12px; font-size: 10.5px; }
  .level-grid { grid-template-columns: 1fr; }
  .admin-head-actions { margin-left: 0; width: 100%; }
  .footer { padding: 18px 14px 68px; }
  .hero { padding: 22px; }
  .hero h1 { font-size: 21px; }
  .post-stats { gap: 9px; }
}

/* ---------- 第三层最高权限 · 全站黑色主题 ---------- */
body.super-mode {
  --brand: #8ba6d9;
  --brand-2: #6fb2cc;
  --brand-deep: #b7c9ec;
  --brand-soft: #1a2233;
  --ink: #e8ebf2;
  --ink-2: #a4adc0;
  --ink-3: #737d92;
  --bg: #07080c;
  --card: #11141d;
  --line: #242937;
  --accent: #d9955e;
  --ok: #4ade80;
  --danger: #f87171;
  --shadow: 0 6px 24px rgba(0,0,0,.55);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.78);
  background: var(--bg); color: var(--ink);
}
body.super-mode ::selection { background: #2b3a5c; color: #fff; }
body.super-mode .topbar { background: rgba(8,10,15,.94); border-bottom-color: #242937; }
body.super-mode .brand-logo { background: linear-gradient(135deg,#2a3448,#101620); color: #cfdcf5; box-shadow: none; border: 1px solid #2c3a52; }
body.super-mode .top-search { background: #141924; border-color: #242937; }
body.super-mode .top-search:focus-within { background: #171d2a; border-color: #3a4a68; box-shadow: 0 0 0 3px rgba(139,166,217,.12); }
body.super-mode .top-search .s-word { border-right-color: #2c3547; }
body.super-mode .top-search .s-key { background: #141924; }
body.super-mode .btn { background: #161b26; border-color: #2a3142; color: var(--ink-2); }
body.super-mode .btn:hover { border-color: #3c4961; color: var(--brand); }
body.super-mode .btn-primary { background: linear-gradient(135deg,#2b3a58,#1b2537); border-color: #3a4c6b; color: #dbe7fb; box-shadow: 0 5px 14px rgba(0,0,0,.5); }
body.super-mode .btn-primary:hover { color: #fff; }
body.super-mode .btn-danger:hover { color: #0b0d12; }
body.super-mode .user-chip { background: #161b26; }
body.super-mode .user-chip:hover { border-color: #3c4961; }
body.super-mode .avatar { background: linear-gradient(135deg,#25304a,#171f2e); }
body.super-mode .notice-bar { background: linear-gradient(90deg,#111725,#0d121c); border-color: #242937; }
body.super-mode .notice-tag { background: #26334c; color: #cfdcf5; }
body.super-mode .gate-banner { background: linear-gradient(100deg,#1c1710,#14161f 58%,#101623); border-color: #3a3324; border-left-color: #b3823c; box-shadow: none; }
body.super-mode .gate-mark { background: #7a5a25; color: #ffe9c2; }
body.super-mode .gate-text b { color: #e3c48e; }
body.super-mode .gate-text span { color: #b3a78f; }
body.super-mode .guest-tag { color: #e3c48e; background: #241d12; border-color: #3a3324; }
body.super-mode .act-btn.locked { background: #141a25; }
body.super-mode .act-btn.locked:hover { color: #e3c48e; border-color: #3a3324; background: #1c1710; }
body.super-mode .login-tip.locked { background: #1a1712; border-color: #3a3324; }
body.super-mode .login-tip.locked p b { color: #e3c48e; }
body.super-mode .wall-panel { box-shadow: 0 20px 55px rgba(0,0,0,.7); }
body.super-mode .wall-lock { color: #e3c48e; background: #241d12; border-color: #3a3324; }
body.super-mode .wall-admin { color: var(--ink-3); opacity: .4; }
body.super-mode .hero { background: linear-gradient(115deg,#0d1119 0%,#161d2b 52%,#1b2836 100%); box-shadow: 0 14px 34px rgba(0,0,0,.55); }
body.super-mode .hero::before { background: rgba(255,255,255,.035); }
body.super-mode .hero::after { background: rgba(255,255,255,.025); }
body.super-mode .hero-pill { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
body.super-mode .hero-btn { background: #e8ebf2; color: #10151f; }
body.super-mode .hero-btn.ghost { background: rgba(255,255,255,.06); color: #e8ebf2; border-color: rgba(255,255,255,.2); }
body.super-mode .board-item:hover { background: #171e2b; }
body.super-mode .board-item .b-mark { background: #1d2637; }
body.super-mode .stat-box { background: linear-gradient(135deg,#141a26,#10151f); border-color: #242937; }
body.super-mode .hot-rank { background: #1a2130; }
body.super-mode .hot-item:nth-child(1) .hot-rank { background: #3a2018; color: #f08a5d; }
body.super-mode .hot-item:nth-child(2) .hot-rank { background: #3a2c14; color: #e0b24e; }
body.super-mode .hot-item:nth-child(3) .hot-rank { background: #16243a; color: #8ba6d9; }
body.super-mode .mini-tag { background: #171d29; }
body.super-mode .chip { background: #161b26; }
body.super-mode .chip.active { background: #2b3a58; border-color: #3a4c6b; color: #e8ebf2; }
body.super-mode .tag.pin { background: #35231a; color: #e2a071; }
body.super-mode .tag.ess { background: #332a15; color: #d9bd63; }
body.super-mode .article-author .a-sig { background: #171e2b; }
body.super-mode .act-btn { background: #161b26; }
body.super-mode .act-btn:hover { border-color: #3c4961; background: #1a2130; }
body.super-mode .act-btn.on { background: #35231a; border-color: #5a3a28; color: #e2a071; }
body.super-mode .comment-editor textarea,
body.super-mode .inline-reply input,
body.super-mode .input, body.super-mode .select, body.super-mode .textarea,
body.super-mode .code-input { background: #0e131c; border-color: #2a3142; color: var(--ink); }
body.super-mode .input:focus, body.super-mode .select:focus, body.super-mode .textarea:focus,
body.super-mode .code-input:focus { border-color: #46597c; box-shadow: 0 0 0 3px rgba(139,166,217,.12); background: #121824; }
body.super-mode .board-opt, body.super-mode .upload-btn { background: #161b26; }
body.super-mode .profile-tip { background: #141b28; border-color: #2a3448; }
body.super-mode .admin-head, body.super-mode .admin-head.super { background: linear-gradient(110deg,#080a0f,#141a26 60%,#1b2130); box-shadow: 0 12px 28px rgba(0,0,0,.6); border: 1px solid #262e3f; }
body.super-mode .admin-head .brand-logo { background: rgba(255,255,255,.08) !important; color: #e8ebf2 !important; }
body.super-mode .admin-head .btn { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
body.super-mode .admin-head .btn:hover { background: rgba(255,255,255,.14); }
body.super-mode .admin-nav button:hover { background: #171e2b; }
body.super-mode .kpi { background: linear-gradient(140deg,#141a26,#0f141e); }
body.super-mode .kpi b { color: var(--brand-deep); }
body.super-mode .bar-col .bar { background: linear-gradient(180deg,#5c7ab0,#2b3a58); }
body.super-mode .bar-col:hover .bar { background: linear-gradient(180deg,#7f9fd6,#3a4c6b); }
body.super-mode .dist-row .d-track { background: #1a2130; }
body.super-mode .dist-row .d-fill { background: linear-gradient(90deg,#5c7ab0,#3a5a80); }
body.super-mode table.data th { background: #161c28; }
body.super-mode table.data td { border-bottom-color: #202634; }
body.super-mode table.data tr:hover td { background: #171e2b; }
body.super-mode .modal-mask { background: rgba(0,0,0,.78); }
body.super-mode .modal { background: #121722; border: 1px solid #262e3f; }
body.super-mode .gate-hint, body.super-mode .gate-alt { background: #141b28; border-color: #2a3448; }
body.super-mode .gate-hint code { background: #1c2434; }
body.super-mode .danger-zone { background: #211417; border-color: #40262a; }
body.super-mode .danger-zone h4 { color: #f8a0a0; }
body.super-mode .level-tip { background: #211b14; border-color: #3a3324; border-left-color: #b3823c; color: #cdbb95; }
body.super-mode .level-card { background: #141a26; }
body.super-mode .level-card.lv2 { border-color: #2a3a55; background: #121a29; }
body.super-mode .level-card.lv3 { border-color: #333c50; background: #161b27; }
body.super-mode .level-card.lv3 .lv-no { background: #232b3c; color: #c9d3e6; }
body.super-mode .footer { background: rgba(10,13,19,.85); }
body.super-mode .admin-chip { color: #c9d3e6; background: #1a2030; border-color: #2c3648; }
body.super-mode .corner-entry { color: var(--ink-3); }
body.super-mode .corner-entry:hover { color: var(--ink-2); }


/* ---------- 矢量符号与图标化互动 ---------- */
.icon-svg { width: 18px; height: 18px; display: block; flex-shrink: 0; }
.act-btn.icon-btn { padding: 9px 16px; gap: 9px; border-radius: 12px; }
.act-btn.icon-btn .icon-svg { width: 21px; height: 21px; }
.act-btn.icon-btn .n { font-size: 13px; font-weight: 700; opacity: 1; min-width: 12px; text-align: center; }
.act-btn.icon-btn.on { background: #fff1f0; border-color: #ffcdc7; color: #f0453a; }
.act-btn.icon-btn.on .icon-svg { color: #f0453a; }
.act-btn.icon-btn.locked { border-style: dashed; }

/* 帖子卡片：符号 + 数字，已点赞为红心 */
.post-stats { gap: 14px; }
.post-stats .s-item { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.post-stats .s-item .icon-svg { width: 15px; height: 15px; opacity: .8; }
.post-stats .s-item em { font-style: normal; font-weight: 600; font-size: 12px; }
.post-stats .s-like { border: 0; background: transparent; padding: 0; font-family: inherit; transition: transform .15s, color .15s; }
.post-stats .s-like.quick-like { cursor: pointer; }
.post-stats .s-like.quick-like:hover { color: #f0453a; transform: scale(1.08); }
.post-stats .s-like.on { color: #f0453a; }
.post-stats .s-like.on .icon-svg { opacity: 1; }
.post-stats .quick-like:focus-visible { outline: 2px solid #f0453a; outline-offset: 3px; border-radius: 4px; }

/* 我的内容 */
.my-content { margin-top: 16px; padding: 20px 22px; }
.mc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mc-head h2 { font-size: 18px; margin: 0 0 4px; }
.mc-head .sub { font-size: 12px; color: var(--ink-3); margin: 0; line-height: 1.7; }
.mc-summary { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.mc-summary b { color: var(--brand); font-size: 16px; margin-left: 3px; }
.mc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 14px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.mc-tab { border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; transition: .16s; }
.mc-tab em { font-style: normal; opacity: .7; margin-left: 3px; }
.mc-tab:hover { border-color: #bcd3fa; color: var(--brand); }
.mc-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.mc-list { display: flex; flex-direction: column; gap: 12px; }
.mc-list .post-card { box-shadow: none; border-color: var(--line); }

/* 最高权限黑色主题下的适配 */
body.super-mode .act-btn.icon-btn.on { background: #2a1719; border-color: #5a2b2b; color: #ff8a80; }
body.super-mode .post-stats .s-like.on,
body.super-mode .post-stats .s-like.quick-like:hover { color: #ff8a80; }
body.super-mode .mc-tab { background: #161b26; border-color: #2a3142; color: var(--ink-2); }
body.super-mode .mc-tab.active { background: #2b3a58; border-color: #3a4c6b; color: #e8ebf2; }
body.super-mode .mc-summary b { color: var(--brand-deep); }

@media (max-width: 820px) {
  .post-stats { gap: 10px; }
  .post-stats .s-item .icon-svg { width: 14px; height: 14px; }
  .act-btn.icon-btn { padding: 8px 13px; }
  .my-content { padding: 16px 14px; }
  .mc-summary { gap: 12px; }
  .mc-tab { padding: 6px 12px; font-size: 12px; }
}


/* ---------- 站点维护验证 · 黑色弹窗 ---------- */
.modal-mask.admin-gate-mask { background: rgba(3,5,9,.82); backdrop-filter: blur(6px); }
.modal.admin-gate {
  max-width: 396px; padding: 30px 30px 26px; text-align: center;
  background: linear-gradient(160deg,#121722 0%,#0b0e15 58%,#0d111a 100%);
  border: 1px solid #283143; color: #e8ebf2;
  box-shadow: 0 30px 76px rgba(0,0,0,.78), inset 0 1px 0 rgba(255,255,255,.04);
}
body.super-mode .modal.admin-gate {
  background: linear-gradient(160deg,#121722 0%,#0b0e15 58%,#0d111a 100%);
  border-color: #283143; color: #e8ebf2;
}
.gate-lock {
  width: 52px; height: 52px; margin: 2px auto 14px; border-radius: 16px;
  display: grid; place-items: center;
  background: #171e2b; border: 1px solid #2b3547; color: #cfd9ec;
}
.gate-lock .icon-svg { width: 24px; height: 24px; }
.modal.admin-gate h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: 1px; color: #eef2f8; }
.modal.admin-gate .m-sub { color: #7f8a9e; margin: 0 0 20px; }
.gate-field { position: relative; }
.modal.admin-gate .code-input {
  width: 100%; text-align: left; letter-spacing: 1px; font-size: 15px; font-weight: 500;
  padding: 12px 44px 12px 14px; border-radius: 10px;
  background: #080b11; border: 1px solid #2a3242; color: #e8ebf2;
}
.modal.admin-gate .code-input::placeholder { color: #5f6a7d; }
.modal.admin-gate .code-input:focus {
  border-color: #4a5c7e; background: #0c111a;
  box-shadow: 0 0 0 3px rgba(139,166,217,.14);
}
.modal.admin-gate .code-input.shake { border-color: #f87171; }
.gate-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent;
  color: #68748a; cursor: pointer;
}
.gate-eye:hover { background: #1a2130; color: #aab6ca; }
.gate-eye.on { color: #cfd9ec; }
.gate-eye .icon-svg { width: 17px; height: 17px; }
.modal.admin-gate .m-foot { justify-content: center; gap: 10px; margin-top: 22px; }
.modal.admin-gate .m-foot .btn { min-width: 92px; background: #171d29; border-color: #2c3547; color: #aab4c6; }
.modal.admin-gate .m-foot .btn:hover { border-color: #46577a; color: #e8ebf2; }
.modal.admin-gate .m-foot .btn-primary { background: #e8ebf2; border-color: #e8ebf2; color: #0c1017; font-weight: 700; }
.modal.admin-gate .m-foot .btn-primary:hover { background: #fff; border-color: #fff; color: #0c1017; }
.modal.admin-gate .gate-alt { background: #141a26; border-color: #2c3547; color: #aab4c6; text-align: left; }
.modal.admin-gate .gate-alt .btn { background: #1c2433; border-color: #34405a; color: #cfd9ec; }
@media (max-width: 480px) {
  .modal.admin-gate { padding: 24px 20px 22px; }
}
