/* 新世纪中学校园论坛 公共样式
   主调：林荫绿。尽量克制，少用花活，突出内容和阅读 */
:root {
  --bg: #f4f7f4;
  --card: #ffffff;
  --line: #e3eae4;
  --line2: #d5e0d7;
  --g1: #2c6e4f;            /* 深绿：标题/按钮 */
  --g2: #3f8f6b;            /* 主绿 */
  --g3: #e9f3ed;            /* 浅绿底 */
  --gc: #f7fbf8;
  --tx: #24312a;
  --tx2: #66776c;
  --tx3: #97a39b;
  --warn: #c2574f;          /* 删除/警示，砖红 */
  --pink: #e08a6d;          /* 表白墙点缀，暖杏色 */
  --r: 14px;
  --sh: 0 1px 2px rgba(31, 55, 41, .05), 0 4px 14px rgba(31, 55, 41, .05);
  --sh2: 0 6px 24px rgba(31, 55, 41, .12);
  --w: 1120px;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none }
img { border: 0 }
svg.ic { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: -3px }
::selection { background: #bfe0cd }
button { font: inherit; cursor: pointer }
input, textarea, select { font: inherit; color: inherit }
h1,h2,h3,h4 { margin: 0; font-weight: 700; line-height: 1.35 }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px }

/* ---------- 顶栏 ---------- */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.hd-in { max-width: var(--w); margin: 0 auto; padding: 0 16px; height: 58px; display: flex; align-items: center; gap: 14px }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0 }
.logo-b { width: 34px; height: 34px; border-radius: 10px; background: var(--g1); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; letter-spacing: .5px; flex: none }
.logo-i { height: 36px; width: auto; object-fit: contain; flex: none }
.logo-txt b { display: block; font-size: 16.5px; line-height: 1.1 }
.logo-txt span { font-size: 11px; color: var(--tx3); letter-spacing: 1px }
.h-nav { display: flex; gap: 2px; margin-left: 6px }
.h-nav a { padding: 7px 13px; border-radius: 9px; color: var(--tx2); font-size: 15px; white-space: nowrap }
.h-nav a:hover { color: var(--g1); background: var(--g3) }
.h-nav a.on { color: var(--g1); font-weight: 700; background: var(--g3) }
.h-r { display: flex; align-items: center; gap: 10px }
.h-ss { position: relative; margin-left: auto; order: 1 }
#fbBtn { order: 2; flex: none }
.m-ss { display: none; position: relative; align-items: center }
.h-ss input {
  width: 190px; height: 36px; padding: 0 12px 0 33px; border: 1px solid var(--line2);
  border-radius: 18px; background: var(--gc); outline: none; transition: all .2s;
}
.h-ss input:focus { border-color: var(--g2); background: #fff; width: 230px }
.h-ss .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--tx3); width: 16px; height: 16px; pointer-events: none }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px; padding: 8px 16px;
  font-size: 14px; transition: all .18s; white-space: nowrap;
}
/* 主按钮统一为白底绿描边(全局无实心绿)，悬停浅绿底 */
.btn-p { background: #fff; border-color: var(--g2); color: var(--g1) }
.btn-p:hover { background: var(--g3); box-shadow: var(--sh) }
.btn-ghost { border-color: var(--line2); background: #fff; color: var(--tx2) }
.btn-ghost:hover { border-color: var(--g2); color: var(--g1); background: var(--g3) }
.btn-lg { padding: 11px 22px; font-size: 15px; border-radius: 12px }
.btn .ic { width: 16px; height: 16px }
/* 用户区 */
.h-user { position: relative; display: flex; align-items: center; gap: 8px; order: 3 }
.h-user > .btn, .h-u-btn { border: 1px solid var(--line2); background: #fff; color: var(--tx2); border-radius: 10px; padding: 7px 14px; display: inline-flex; align-items: center; gap: 7px }
.h-u-btn:hover { border-color: var(--g2); color: var(--g1) }
.ava {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-weight: 600; flex: none; user-select: none;
  width: 36px; height: 36px; font-size: 16px; background: var(--g2);
}
.ava.s26 { width: 26px; height: 26px; font-size: 12px }
.ava.s40 { width: 40px; height: 40px; font-size: 18px }
.ava.s56 { width: 56px; height: 56px; font-size: 24px }
.ava.s80 { width: 80px; height: 80px; font-size: 34px; border-radius: 22px }
.ava.s40.bd { outline: 3px solid #fff; box-shadow: var(--sh) }
img.ava { object-fit: cover; background: #dfe5dd }
.h-u-wrap { position: relative }
.h-u { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; cursor: pointer }
.h-u:hover { background: var(--g3) }
.h-u .un { font-size: 14px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.h-u .ic { width: 14px; height: 14px; color: var(--tx3) }
.h-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh2);
  padding: 6px; display: none; z-index: 60;
}
.h-menu a { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 8px; color: var(--tx); font-size: 14px }
.h-menu a:hover { background: var(--g3); color: var(--g1) }
.h-menu a.red { color: var(--warn) }
.h-menu a.red:hover { background: #fbeceb }
.h-menu .ic { width: 15px; height: 15px; color: var(--tx3) }
.h-u-wrap.open .h-menu { display: block; animation: po .14s ease }
@keyframes po { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }

/* ---------- 卡片通用 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh) }
.pad { padding: 18px }
.pg { margin: 16px auto 40px }

/* ---------- 首页 hero ---------- */
.hero {
  margin-top: 18px; border-radius: 18px; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #1f4a36, #2c6e4f);
  padding: 34px 30px; display: flex; align-items: center; gap: 20px;
}
.hero h1 { font-size: 28px; letter-spacing: 1px }
.hero h1 small { font-weight: 500; font-size: 15px; color: #cfe6d8; margin-left: 10px; letter-spacing: 0 }
.hero p { margin: 10px 0 0; color: #d9eade; font-size: 14px; max-width: 560px }
.hero .hb { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap }
.hero .btn-w { background: #fff; color: var(--g1); font-weight: 600 }
.hero .btn-w:hover { background: #eaf5ee }
.hero .btn-o { border: 1px solid rgba(255,255,255,.45); color: #fff; background: transparent }
.hero .btn-o:hover { background: rgba(255,255,255,.12) }
.hero-side { margin-left: auto; display: flex; gap: 26px; text-align: center; padding-right: 8px }
.hero-side b { font-size: 26px; display: block }
.hero-side span { font-size: 12px; color: #bcd9c7 }

/* ---------- 板块标签(横向滑动条) ---------- */
.bkline { display: flex; align-items: center; gap: 8px; margin-top: 14px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch }
.bkline::-webkit-scrollbar { display: none }
.bk { flex: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid var(--line2); background: #fff; border-radius: 999px;
  font-size: 13.5px; color: var(--tx2); cursor: pointer; transition: all .18s;
}
.bk:hover { border-color: var(--g2); color: var(--g1); transform: translateY(-1px) }
.bk.on { background: #eef6f1; border-color: var(--g1); color: var(--g1); font-weight: 700 }

/* ---------- 列表工具栏/帖子行 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; flex-wrap: wrap }
.seg { display: inline-flex; background: #eef3ef; border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px }
.seg button { border: 0; background: transparent; padding: 6px 15px; border-radius: 8px; color: var(--tx2); font-size: 14px }
.seg button:hover { color: var(--g1) }
.seg button.on { background: #fff; color: var(--g1); font-weight: 700; box-shadow: var(--sh) }
.tb-r { margin-left: auto; display: flex; align-items: center; gap: 8px }
.tb-r .n { color: var(--tx3); font-size: 13px }
.tz-item { display: flex; gap: 12px; padding: 15px 18px; cursor: pointer; transition: background .15s }
.tz-item:hover { background: var(--gc) }
.tz-item + .tz-item { border-top: 1px dashed var(--line) }
.tz-item .bd { margin-top: 4px }
.tz-item .t { font-size: 15.5px; font-weight: 650; line-height: 1.4 }
.tz-item:hover .t { color: var(--g1) }
.tz-item .ex { color: var(--tx2); font-size: 13.5px; margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
.tz-item .mt { margin-top: 7px; display: flex; align-items: center; gap: 12px; color: var(--tx3); font-size: 12.5px; flex-wrap: wrap }
.tz-item .tag { background: var(--g3); color: var(--g1); padding: 1px 9px; border-radius: 6px; font-size: 12px }
.tz-item .mt .ic { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px }
.tz-item .hot { color: #c2574f; font-size: 12px; font-weight: 700 }
.more { display: block; margin: 16px auto 4px; padding: 10px; width: 100%; border: 0; background: transparent; color: var(--tx2); font-size: 14px; border-radius: 10px }
.more:hover { background: var(--g3); color: var(--g1) }
.empty { text-align: center; padding: 60px 20px; color: var(--tx3) }
.empty .ic { width: 40px; height: 40px; opacity: .5 }
.empty p { margin: 10px 0 0; font-size: 14px }

/* ---------- 两栏布局 ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start }
.rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 74px }
.rail .card { padding: 15px 16px }
.rail h4 { font-size: 14.5px; display: flex; align-items: center; gap: 7px; margin-bottom: 11px; color: var(--g1) }
.rail h4::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--g2) }
.rail .row { display: block; padding: 8px 2px; border-bottom: 1px dashed var(--line); color: var(--tx); font-size: 13.5px; line-height: 1.45 }
.rail .row:last-child { border-bottom: 0 }
.rail .row:hover { color: var(--g1) }
.rail .row b { font-weight: 600 }
.rail .sub { color: var(--tx3); font-size: 12px }
.rail .wall-mini { background: #fdf6f2; border: 1px solid #f4e3d8 }
.rail .wall-mini .row:hover { color: #b25a35 }
.rail .wq { font-size: 12px; color: #b25a35; margin: 8px 0 4px }
.rail .tuij { display: flex; align-items: center; gap: 9px; padding: 6px 0; color: var(--tx) }
.rail .tuij:hover .nm { color: var(--g1) }
.rail .tuij .nm { font-size: 13.5px; font-weight: 600; line-height: 1.2 }
.rail .tuij .gz { margin-left: auto }

/* ---------- 帖子详情 ---------- */
.pg-ttl { margin: 14px 0; font-size: 14px }
.pg-ttl a:hover { color: var(--g1) }
.pg-ttl .sep { margin: 0 7px; color: var(--tx3) }
.p-main { padding: 26px 26px 16px }
.p-title { font-size: 23px; line-height: 1.45; word-break: break-word }
.p-meta { display: flex; align-items: center; gap: 11px; margin: 15px 0 4px; flex-wrap: wrap }
.p-meta .nm { font-weight: 650; font-size: 15px }
.p-meta .nm:hover { color: var(--g1) }
.p-meta .in { color: var(--tx3); font-size: 12.5px }
.p-body { margin-top: 12px; white-space: pre-wrap; word-break: break-word; font-size: 15.5px; line-height: 1.9 }
.p-tools { display: flex; align-items: center; gap: 8px; border-top: 1px dashed var(--line); margin-top: 18px; padding: 12px 0 4px }
.act {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: #fff;
  padding: 7px 14px; border-radius: 999px; color: var(--tx2); font-size: 13.5px; transition: all .15s;
}
.act:hover { border-color: var(--g2); color: var(--g1) }
.act .ic { width: 15px; height: 15px }
.act.like { border-color: #f0d7cd; color: #b25a35 }
.act.like:hover, .act.like.done { background: #fdf1ec; border-color: #e8b9a4; color: #a24a2a }
.act.like.done .ic { fill: #c2574f; stroke: #c2574f }
.delbtn { margin-left: auto; border: 0; background: transparent; color: var(--tx3); font-size: 12.5px; padding: 6px }
.delbtn:hover { color: var(--warn) }

.hf-sec { margin-top: 16px; padding: 20px 22px }
.hf-sec h3 { font-size: 16px; margin-bottom: 4px }
.hf-sec h3 b { color: var(--g2) }
.hf-item { display: flex; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line) }
.hf-item:last-child { border-bottom: 0 }
.hf-item .ri { flex: 1; min-width: 0 }
.hf-item .nm { font-weight: 650; font-size: 14px; display: inline-block }
.hf-item .nm:hover { color: var(--g1) }
.hf-item .tm { color: var(--tx3); font-size: 12px; margin-left: 8px }
.hf-item .bd { margin-top: 4px; font-size: 14.5px; white-space: pre-wrap; word-break: break-word; line-height: 1.8 }
.hf-item .l2 { margin-top: 6px }
.hf-item .op { border: 0; background: transparent; color: var(--tx3); font-size: 12px; padding: 2px 4px }
.hf-item .op:hover { color: var(--warn) }
.hf-write { margin-top: 14px; display: flex; gap: 10px; align-items: flex-end }
.hf-in { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px }
.hf-in textarea {
  width: 100%; display: block; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 13px;
  min-height: 64px; resize: vertical; outline: none; background: var(--gc); transition: border .2s;
}
.hf-in textarea:focus { border-color: var(--g2); background: #fff }
.hf-bar { display: flex; align-items: center; gap: 8px; min-height: 30px; flex-wrap: wrap }
.hf-vox { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap }

/* ---------- 语音：气泡条 / 录音按钮 / 预览 ---------- */
.voxline { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0 }
.bd .voxline { margin-top: 8px }
.att.voxline { margin: 8px 0 10px }
/* 语音气泡：白底绿描边，左 5 根声波柱，右大号秒数（参考主流聊天软件语音条） */
.vox {
  display: inline-flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px;
  border: 1px solid var(--g2); border-radius: 18px; cursor: pointer;
  background: #fff; color: var(--g1); box-shadow: 0 1px 4px rgba(44, 110, 79, .08);
  transition: background .2s, box-shadow .2s, transform .06s;
}
.vox:hover { background: var(--g3); box-shadow: 0 3px 10px rgba(44, 110, 79, .14) }
.vox:active { transform: scale(.98) }
.vox .vc { display: flex; align-items: center; gap: 3px; height: 26px; flex: none }
.vox .vc span { width: 3px; background: currentColor; border-radius: 2px }
.vox .vc span:nth-child(1) { height: 6px }
.vox .vc span:nth-child(2) { height: 10px }
.vox .vc span:nth-child(3) { height: 14px }
.vox .vc span:nth-child(4) { height: 18px }
.vox .vc span:nth-child(5) { height: 24px }
/* 秒数：统一字体避免小号上标产生边缘锯齿 */
.vox .vd { font-size: 16px; font-weight: 700; line-height: 1; -webkit-font-smoothing: antialiased; white-space: nowrap }
.vox .vd i { font-style: normal; font-size: 11px; font-weight: 500; margin-left: 2px; vertical-align: 2px; opacity: .9 }
/* 播放中：5 根柱依次起伏 */
.vox.on .vc span { animation: vbar 1s ease-in-out infinite }
.vox.on .vc span:nth-child(1) { animation-delay: 0s }
.vox.on .vc span:nth-child(2) { animation-delay: .1s }
.vox.on .vc span:nth-child(3) { animation-delay: .2s }
.vox.on .vc span:nth-child(4) { animation-delay: .3s }
.vox.on .vc span:nth-child(5) { animation-delay: .4s }
@keyframes vbar {
  0%, 100% { transform: scaleY(.6) }
  50% { transform: scaleY(1.2) }
}
.vox-x {
  width: 22px; height: 22px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line2); border-radius: 50%; background: #fff; color: var(--tx3);
  font-size: 14px; line-height: 1; flex: none; transition: all .15s;
}
.vox-x:hover { color: var(--warn); border-color: #e5b9ac; background: #fdf3f0 }
/* 录音按钮：白底灰描边胶囊，发帖弹窗与回复条样式统一；录音中变砖红脉冲 */
.vrec {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px;
  padding: 0 13px; border: 1px solid var(--line2); border-radius: 999px; background: #fff;
  color: var(--tx2); font-size: 13px; cursor: pointer; line-height: 1; transition: all .18s;
}
.vrec svg { width: 15px; height: 15px; flex: none; display: block }
.vrec:hover { border-color: var(--g2); color: var(--g1); background: var(--g3) }
.vrec.rec { background: var(--warn); border-color: var(--warn); color: #fff; animation: vpulse 1.3s ease-out infinite }
.vrec.rec:hover { background: var(--warn); color: #fff }
@keyframes vpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 87, 79, .35) }
  55% { box-shadow: 0 0 0 7px rgba(194, 87, 79, 0) }
}

/* ---------- 表单/弹窗 ---------- */
.f { display: flex; flex-direction: column; gap: 14px }
.f label { font-size: 13.5px; font-weight: 650; display: block; margin-bottom: 6px; color: var(--tx) }
.f input[type=text], .f input[type=password], .f textarea, .f select {
  width: 100%; border: 1px solid var(--line2); border-radius: 11px; padding: 10px 13px;
  background: var(--gc); outline: none; transition: all .2s; resize: vertical;
}
.f input:focus, .f textarea:focus, .f select:focus { border-color: var(--g2); background: #fff }
.f select { cursor: pointer }
.f .hint { color: var(--tx3); font-size: 12px; margin-top: -8px }
.mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 35, 26, .45);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 60px 16px 40px;
  animation: fade .16s ease;
}
.mbox { width: 100%; background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--sh2); position: relative; animation: pu .18s ease }
.mbox h3 { font-size: 17px; margin-bottom: 16px }
.mbox .x { position: absolute; right: 12px; top: 12px; border: 0; background: transparent; color: var(--tx3); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center }
.mbox .x:hover { background: var(--g3); color: var(--g1) }
.mbox .x .ic { width: 18px; height: 18px }
@keyframes fade { from { opacity: 0 } }
@keyframes pu { from { opacity: 0; transform: translateY(10px) } }

.wide { max-width: 620px }
.mid { max-width: 430px }
.toast {
  position: fixed; left: 50%; bottom: 42px; transform: translate(-50%, 14px); z-index: 300;
  background: #17392a; color: #eafff2; padding: 10px 20px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .25s; box-shadow: var(--sh2); max-width: 88vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) }
.toast.err { background: #7a2e28 }

.login-tab { display: flex; gap: 24px; margin-bottom: 18px; border-bottom: 1px solid var(--line) }
.login-tab button { border: 0; background: none; padding: 8px 2px 10px; font-size: 16px; color: var(--tx2); position: relative; font-weight: 600 }
.login-tab button.on { color: var(--g1) }
.login-tab button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; background: var(--g2); border-radius: 2px }
.sub { margin-top: 6px }
.sub .tip { text-align: center; color: var(--tx3); font-size: 13px; margin-top: 12px }
.sub .tip a { color: var(--g2); cursor: pointer }
.sub .tip a:hover { text-decoration: underline }
.reg-note { color: var(--tx3); font-size: 12px; margin-top: -6px }

/* ---------- 表白墙 ---------- */
.wall-top { display: flex; align-items: center; gap: 12px; margin: 18px 0 0 }
.wall-top h2 { font-size: 22px; color: #333 }
.wall-top .tip { color: var(--tx3); font-size: 13px }
.wall-top .btn { margin-left: auto }
.wcol { column-count: 3; column-gap: 14px; margin-top: 16px }
@media (max-width: 1000px) { .wcol { column-count: 2 } }
@media (max-width: 620px) { .wcol { column-count: 1 } }
.wcard {
  break-inside: avoid; margin-bottom: 14px; background: #fffdfa; border: 1px solid #f2e3d5;
  border-radius: 12px; padding: 18px 18px 12px; box-shadow: var(--sh); cursor: pointer;
  transition: all .2s; position: relative;
}
.wcard::before {
  content: ''; position: absolute; left: 50%; top: -7px; transform: translateX(-50%) rotate(-2deg);
  width: 64px; height: 13px; background: rgba(226, 199, 143, .5); border-radius: 3px;
}
.wcard:hover { transform: translateY(-3px); box-shadow: var(--sh2); border-color: #e6c9ae }
.wcard .wt { display: flex; align-items: center; gap: 9px; margin-bottom: 8px }
.wcard .wt .nm { font-size: 14px; font-weight: 700; color: #8a5a3a }
.wcard .wt .tm { margin-left: auto; color: var(--tx3); font-size: 12px }
.wcard .dx { display: inline-block; font-size: 12px; background: #fdeee3; color: #b25a35; border-radius: 6px; padding: 1px 8px; margin-bottom: 7px }
.wcard .txt { font-size: 14.5px; line-height: 1.85; color: #4a3d30; white-space: pre-wrap; word-break: break-word }
.wcard .wf { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 9px; border-top: 1px dashed #eeddcc; color: #a89a8c; font-size: 12.5px }
.wcard .wf .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px }
.wcard .wf .heart.on .ic { fill: #d56b4a; stroke: #d56b4a; color: #d56b4a }
.wcard .wf button { background: none; border: 0; padding: 0; color: inherit; display: inline-flex; align-items: center }
.wcard .wf button:hover { color: #b25a35 }
.wcard-anoy .ava { background: #efe9e2; color: #b39a84 }
.wc-sub { color: var(--tx3); font-size: 12px; margin-left: 4px }
.anon-tag { font-size: 11px; color: #b39a84; border: 1px dashed #d9c8b8; border-radius: 5px; padding: 0 5px; margin-left: 5px; vertical-align: 1px }

/* ---------- 个人主页 ---------- */
.ucard { overflow: hidden }
.uc-banner { height: 150px; background: linear-gradient(150deg, #f8f1e3, #efe6d2); background-size: cover; background-position: center 30%; background-repeat: no-repeat; position: relative }
.uc-main { display: flex; gap: 18px; padding: 0 22px 18px; position: relative; flex-wrap: wrap }
.uc-ava { margin-top: -34px; background: #fff; border-radius: 26px; padding: 5px }
.uc-nm { padding-top: 22px; min-width: 220px; flex: 1; display: flex; flex-direction: column; gap: 8px; align-self: flex-start }
.uc-nm h2 { font-size: 23px; line-height: 1.35; display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
/* 次级信息行：班级 / 实名 / @ID 分块留白 */
.u-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px }
.u-chip { font-style: normal; font-size: 11.5px; line-height: 1.7; padding: 0 9px; border-radius: 6px; white-space: nowrap }
.u-chip.nj { background: var(--g3); color: var(--g1); font-weight: 600 }
.u-chip.zm { background: #f3f5f2; color: var(--tx2); border: 1px solid var(--line) }
.u-sub .uid { color: var(--tx3); font-size: 12.5px }
.uc-nm #uQm { color: var(--tx2); font-size: 13.5px }
.uc-act { padding-top: 20px; display: flex; gap: 8px }
.uc-stats { display: flex; border-top: 1px solid var(--line) }
.uc-stats a { flex: 1; text-align: center; padding: 13px 4px; border-right: 1px solid var(--line); color: var(--tx2); font-size: 13px }
.uc-stats a:last-child { border-right: 0 }
.uc-stats a:hover { background: var(--gc); color: var(--g1) }
.uc-stats b { display: block; font-size: 18px; color: var(--tx) }
.uc-stats a:hover b { color: var(--g1) }
.uc-left { display: flex; flex-direction: column; gap: 14px }
.uc-info { padding: 18px }
.uc-info h4 { font-size: 14.5px; margin-bottom: 8px }
.uc-info .zi { white-space: pre-wrap; font-size: 13.5px; color: var(--tx2); word-break: break-word }
.uc-info .k { color: var(--tx3); font-size: 12.5px; margin-top: 8px }
.utabs { display: flex; border-bottom: 1px solid var(--line); gap: 4px; flex-wrap: wrap }
.utabs button { border: 0; background: none; padding: 11px 15px; font-size: 14.5px; color: var(--tx2); border-bottom: 2.5px solid transparent; margin-bottom: -1px }
.utabs button:hover { color: var(--g1) }
.utabs button.on { color: var(--g1); font-weight: 700; border-color: var(--g2) }
.utabs .cnt { font-size: 12px; background: var(--g3); color: var(--g1); border-radius: 8px; padding: 1px 7px; margin-left: 5px }
.upf { display: flex; gap: 14px; align-items: center }
.upf-a { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 600; color: #fff; border: 1px solid var(--line); background: #dfe5dd }
.upf-a img { width: 100%; height: 100%; object-fit: cover }
.upf-a > span { width: 100%; height: 100%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600 }
.upf-bn { width: 180px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; background-image: linear-gradient(160deg, #2c6e4f, #3f8f6b); background-size: cover; background-position: center 30% }
.upf-bn img { width: 100%; height: 100%; object-fit: cover }
.upf-b { display: flex; flex-direction: column; align-items: flex-start; gap: 4px }
.upf-b .btn { position: relative }
.upf-b .sub { font-size: 12px }
.upf .lk { font-size: 12.5px; cursor: pointer }
.bn-ip { display: inline-block; width: 58px; height: 34px; border-radius: 7px; background: #dfe5dd; background-size: cover; background-position: center; border: 1px solid var(--line2); vertical-align: middle }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr }
  .rail { position: static; display: none }
  .hero-side { display: none }
}
/* 中窄屏：搜索框改为可收缩，避免把导航链接挤变形 */
@media (max-width: 720px) {
  .hd-in { gap: 8px; padding: 0 14px }
  .logo { flex: none; min-width: 0 }
  .logo-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
  .logo-txt b { font-size: 15px }
  .h-nav a { padding: 6px 9px; white-space: nowrap }
  .h-ss { flex: 1 1 auto; min-width: 0; max-width: 190px }
  .h-ss input { width: 100% }
  .h-ss input:focus { width: 100% }
  .h-user > .btn, .h-u-btn { padding: 6px 10px }
}
@media (max-width: 640px) {
  .h-nav a { padding: 7px 9px; font-size: 14px }
  .logo-txt span { display: none }
  .h-ss input { width: 30px; padding: 0 0 0 30px; border-color: transparent; background: transparent }
  .h-ss input:focus { width: 140px }
  .hero { padding: 26px 20px }
  .hero h1 { font-size: 22px }
  .hero h1 small { display: block; margin: 6px 0 0 }
  .tz-item { padding: 13px 14px }
  .p-main { padding: 20px 16px 12px }
  .p-title { font-size: 19px }
  .uc-main { padding: 0 16px 14px }
  .mask { padding: 20px 12px }
  .pg { margin: 10px auto 30px }
  .card { border-radius: 12px }
}
@media (max-width: 560px) {
  .hd-in { padding: 6px 12px 10px; gap: 6px 10px; flex-wrap: wrap; height: auto; min-height: 58px }
  .logo { gap: 0 }
  .logo-txt { display: none }
  .h-nav { margin-left: 0; gap: 0 }
  .h-nav a { padding: 6px 8px; font-size: 13.5px }
  .h-user { min-width: 0 }
  .h-u .un { max-width: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block }
  /* 手机：搜索栏移出顶部，放到正文上方独立一栏 */
  .hd .h-ss { display: none }
  #fbBtn { order: 1; flex: none; margin-left: auto }
  .h-user { order: 2 }
  /* 正文顶部独立搜索条 */
  .m-ss { display: flex; margin: 0 0 14px }
  .m-ss .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--tx3); pointer-events: none }
  .m-ss input { width: 100%; height: 40px; padding: 0 12px 0 38px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; outline: none }
  .m-ss input:focus { border-color: var(--g2) }
  .btn { padding: 8px 12px; font-size: 13px }
  .h-user { gap: 6px }
  .h-user > .btn, .h-u-btn { padding: 6px 10px; font-size: 13px }
  .hero { padding: 22px 18px }
  .hero h1 { font-size: 21px; letter-spacing: .5px }
  .hero .hb { margin-top: 16px }
  .hero .hb .btn { flex: 1; padding: 10px 6px }
  .bkline { margin-top: 12px }
  .toolbar { margin: 14px 0 10px }
  .seg button { padding: 6px 11px; font-size: 13px }
  .wall-top { flex-wrap: wrap }
  .wall-top .btn { margin-left: 0 }
  .wall-top .tip { width: 100% }
  .p-meta { gap: 8px }
  .hf-write { flex-direction: column; align-items: stretch }
  .hf-write .btn { align-self: flex-end }
  .uc-act { width: 100%; padding-top: 4px }
  .uc-ava { margin-top: -30px }
  .uc-nm h2 { font-size: 20px }
  .mbox { padding: 20px 16px }
  .empty { padding: 40px 16px }
}
@media (max-width: 400px) {
  .hd-in { gap: 6px 10px; padding: 0 10px 8px }
  .logo-b { width: 30px; height: 30px; font-size: 16px; border-radius: 9px }
  .h-nav a { padding: 6px 6px; font-size: 13px }
  .h-user > .btn, .h-u-btn { padding: 5px 8px; font-size: 12px }
  .btn-p { padding: 8px 10px }
  .hero { border-radius: 14px }
  .tz-item { gap: 9px; padding: 12px 12px }
  .tz-item .ex { -webkit-line-clamp: 3 }
  .p-title { font-size: 18px }
  .hf-sec { padding: 16px 14px }
  .wrap { padding: 0 10px }
  .uc-stats a { font-size: 12px }
  .uc-stats b { font-size: 16px }
}

/* ================= 校园生活气息增强（追加覆盖，只服务首页为主） ================= */
:root {
  --bg: #f5f7f1;
  --sh: 0 1px 2px rgba(38, 58, 44, .05), 0 4px 10px -2px rgba(38, 58, 44, .06), 0 14px 30px -16px rgba(38, 58, 44, .18);
  --sh2: 0 2px 8px rgba(38, 58, 44, .07), 0 22px 46px -20px rgba(38, 58, 44, .32);
}

/* ---- Hero：暖阳 + 底部绿意，不那么“合成” ---- */
body[data-pg="home"] .hero {
  background:
    radial-gradient(120% 200% at 100% -25%, rgba(247, 201, 72, .18), transparent 55%),
    radial-gradient(140% 180% at -10% 120%, rgba(126, 211, 148, .13), transparent 55%),
    linear-gradient(160deg, #1a4230, #2c6e4f 60%, #35825c);
}
body[data-pg="home"] .hero > div { flex: 1; min-width: 0 }
body[data-pg="home"] .hero h1 small { color: #ffe3a1 }
body[data-pg="home"] .hero p { color: #e0ecdf; max-width: 540px }
.hero-art { margin-left: auto; width: 214px; max-width: 36%; flex: none }
@media (max-width: 900px) { .hero-art { display: none } }

/* ---- 板块：悬停随主题色走 ---- */
.bk { --c: var(--g2) }
.bk:hover { border-color: var(--c); color: var(--c) }
.bk.on { background: #eef6f1; border-color: var(--g1); color: var(--g1); font-weight: 700 }
.bk.on:hover { color: var(--g1) }

/* ---- 帖子行板块小签：暖黄便签，不全是绿 ---- */
.tz-item .tag { background: #fff3db; border: 1px solid #f1ddb0; color: #a5641b; font-weight: 600 }
.tz-item .hot { color: #d9762e }

/* ---- 空状态：阳光 + 粉笔头插画 ---- */
.empty { padding: 46px 20px }
.empty-art {
  width: 108px; height: 108px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(160deg, #eaf4df, #f7fbf3);
  box-shadow: inset 0 0 0 1px #e4edda, inset 0 -6px 12px -6px rgba(120, 160, 130, .25);
  display: grid; place-items: center; position: relative;
}
.empty-art::before {
  content: ''; position: absolute; right: 4px; top: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffe190, #f5b93f 62%);
  box-shadow: 0 3px 6px -2px rgba(190, 145, 40, .45);
}
.empty-art::after {
  content: ''; position: absolute; left: 16px; bottom: 10px; width: 22px; height: 6px; border-radius: 3px;
  background: #dcedc9; transform: rotate(-6deg); opacity: .9;
}
.empty-art .ic { width: 46px; height: 46px; color: var(--g1); transform: rotate(-12deg) }
.empty .e1 { margin: 0; font-size: 16px; font-weight: 700; color: var(--tx) }
.empty .e2 { margin: 6px 0 0; font-size: 13.5px; color: var(--tx2) }
.empty .e-go { margin-top: 20px }

/* ---- 侧栏“活跃同学”：多一行签名，hover 有底色 ---- */
.rail .tuij { border-radius: 9px; padding: 7px 6px; margin: 0 -6px }
.rail .tuij:hover { background: var(--gc) }
.rail .tuij .nm2 { flex: 1; min-width: 0; line-height: 1.3 }
.rail .tuij .qy {
  display: block; font-size: 11.5px; color: var(--tx3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ================= 附件、上传、外链 ================= */
.atts { margin-top: 14px }
.att { margin: 12px 0 }
.att + .att { margin-top: 4px }
.att-v { width: 100%; max-width: 580px; display: block; border-radius: 12px; background: #111 }
.att-img { max-width: 100%; max-height: 520px; border-radius: 12px; display: block }
.att-nm {
  font-size: 12.5px; color: var(--tx3); margin-top: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.att-file {
  display: flex; gap: 12px; align-items: center; padding: 11px 14px;
  border: 1px solid var(--line2); background: var(--gc); border-radius: 12px;
}
.att-file:hover { border-color: var(--g2); background: #fff }
.att-fi { width: 40px; height: 40px; border-radius: 10px; background: var(--g3); color: var(--g1); display: grid; place-items: center; flex: none }
.att-fi .ic { width: 20px; height: 20px }
.att-fn {
  font-size: 14px; font-weight: 600; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.att-fs { display: block; font-size: 12px; color: var(--tx3); font-weight: 400 }
.lk { color: var(--g2); text-decoration: underline; text-underline-offset: 2px; word-break: break-all }
.lk:hover { color: var(--g1) }

/* 发帖弹窗：选附件区 */
.up-b { display: flex; flex-direction: column; gap: 8px }
.up-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.up-pick { cursor: pointer }
.up-tip { font-size: 12px; color: var(--tx3) }
.up-list { display: flex; flex-direction: column; gap: 6px }
.up-i {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border: 1px dashed var(--line2); border-radius: 9px; background: var(--gc);
}
.up-i.ok { border-style: solid; border-color: var(--line); background: #fbfdfb }
.up-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px }
.up-sz { color: var(--tx3); font-size: 12px; white-space: nowrap }
.up-i.ok .up-sz { color: var(--g2) }
.up-x { border: 0; background: transparent; color: var(--tx3); font-size: 12px; padding: 2px 6px }
.up-x:hover { color: var(--warn) }

/* 班级小签：跟在用户名后 */
.cchip {
  display: inline-block; font-style: normal; font-size: 11px; line-height: 1;
  color: var(--g1); background: var(--g3); border: 1px solid #d8e9dd;
  border-radius: 5px; padding: 2px 6px; margin-left: 6px;
  vertical-align: 1.5px; white-space: nowrap;
}
.p-meta .cchip { vertical-align: 1px }
.hf-item .cchip { font-size: 10.5px; padding: 1px 5px }
.rail .cchip { font-size: 10px; padding: 1px 5px; margin-left: 5px }
@media (max-width: 560px) { .cchip { padding: 1px 5px; margin-left: 4px } }

/* 年级[ ]班：小控件组合 */
.nj-pick { display: flex; align-items: center; gap: 8px; margin-top: 4px }
.nj-pick select { flex: 1; min-width: 0; width: auto; margin: 0 }
.nj-pick input[type="number"] { width: 76px; margin: 0 }
.nj-pick span { color: var(--tx3); font-size: 13px; flex: none }
@media (max-width: 400px) {
  .nj-pick { gap: 6px }
  .nj-pick input[type="number"] { width: 62px }
}

/* ============ 首页去 AI 味 · 柔和浅底 Hero（追加覆盖） ============ */
body[data-pg="home"] .hero {
  background:
    radial-gradient(90% 140% at 102% -6%, #fdf3e2 0%, rgba(253, 243, 226, 0) 48%),
    linear-gradient(158deg, #eef5ec 0%, #f6faf5 55%, #fdfaf1 100%);
  border: 1px solid #e1e9de;
  padding: 42px 40px;
  box-shadow: var(--sh);
}
body[data-pg="home"] .hero h1 { color: #2e3d2e; font-weight: 800 }
body[data-pg="home"] .hero h1 small { display: block; margin-top: 10px; color: #6b8a6d; font-weight: 400 }
body[data-pg="home"] .hero p { color: #4d5f4d; max-width: 560px; line-height: 1.8 }
body[data-pg="home"] .hero .hb { margin-top: 26px }
body[data-pg="home"] #fbBtn2 {
  background: #e8833a; border-color: #e8833a; color: #fff;
  box-shadow: 0 6px 16px -9px rgba(198, 108, 38, .65);
}
body[data-pg="home"] #fbBtn2:hover { background: #d47128; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(198, 108, 38, .7) }
body[data-pg="home"] .hero .btn-o { color: #2f6b4f; border: 1.5px solid #a8c2ac; background: rgba(255, 255, 255, .55) }
body[data-pg="home"] .hero .btn-o:hover { background: #eef5ec; transform: translateY(-1px) }
.hero-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px }
.hero-meta span {
  font-size: 12.5px; color: #5d735d; background: rgba(255, 255, 255, .62);
  border: 1px dashed #c7d6c4; border-radius: 999px; padding: 5px 12px;
}
.hero-meta i { color: #b9632a; font-style: normal; font-weight: 700 }

/* 呼吸感：正文卡片上下留白 */
.card { padding: 18px 20px }

/* 手写感小细节 + 微交互上浮 */
.bk { transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease }
.bk:hover { transform: translateY(-2px); box-shadow: var(--sh) }
.hb .btn, .rail .row, .row, .tz-item { transition: transform .14s ease, box-shadow .14s ease }
.tz-item:hover .ex { text-decoration-color: var(--g2) }

/* ============ 等级徽标 ============ */
.lvb { font-style: normal; display: inline-block; padding: 0 5px; border-radius: 5px; font-size: 10.5px; line-height: 1.6; margin: 0 4px 0 5px; font-weight: 700; vertical-align: 1px; white-space: nowrap }
.lvb.lv0 { background: #eef1ec; color: #7f8b84 }
.lvb.lv1 { background: #dcefe1; color: #3e8e63 }
.lvb.lv2 { background: #cfe6d4; color: #2f7d50 }
.lvb.lv3 { background: #f5efd9; color: #8a6d1f }
.lvb.lv4 { background: #fbe9d3; color: #b36a1e }
.lvb.lv5 { background: #f6dcc4; color: #b25a35 }
.lvb.lv6 { background: #f3d2bf; color: #c2573f }
.lvb.lv7 { background: #edd7ca; color: #a4582e }
.lvb.lv8 { background: #e6d3c6; color: #8a4a2a }
.lvb.lv9 { background: #e5d5b4; color: #7a5c12 }
.lvb.lv10 { background: #e7cdac; color: #8a4a1f }
.lvb.lv11 { background: #d8b98e; color: #fff }
.un .lvb { vertical-align: -2px }

/* ============ 全域公告条 ============ */
.ggline { background: linear-gradient(90deg, #3d5a44, #5f7d52); color: #fff; font-size: 13px }
.ggline .gg { display: flex; align-items: center; gap: 10px; padding: 7px 0 }
.gg-tag { flex: none; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 1px 9px; font-size: 12px }
.gg-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.gg-txt i { font-style: normal; margin: 0 8px; opacity: .5 }
.ggline .x { color: #fff; opacity: .7; flex: none; background: none; border: 0; cursor: pointer; font-size: 16px; line-height: 1 }

/* ============ 首页轮播 ============ */
.bnz { margin-bottom: 18px }
.bn-in { position: relative; overflow: hidden; border-radius: 16px; box-shadow: 0 8px 26px -14px rgba(46, 61, 46, .5); border: 1px solid rgba(255, 255, 255, .55) }
.bn-tk { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1) }
.bn-sl { position: relative; flex: 0 0 100%; height: 190px; background-size: cover; background-position: center; cursor: pointer; color: #fff }
.bn-dim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 20, 12, .62) 0%, rgba(10, 20, 12, .12) 55%, rgba(10, 20, 12, .25)) }
.bn-deco { position: absolute; inset: 0; opacity: .35; background: radial-gradient(120% 160% at 92% -20%, rgba(255, 255, 255, .5) 0%, transparent 42%) }
.bn-c { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); z-index: 2; max-width: 72% }
.bn-c b { display: block; font-size: 25px; font-weight: 800; letter-spacing: .5px; text-shadow: 0 2px 14px rgba(0, 0, 0, .3) }
.bn-c span { display: inline-block; margin-top: 8px; font-size: 13.5px; opacity: .94; background: rgba(0, 0, 0, .22); padding: 3px 10px; border-radius: 999px }
.bn-dots { position: absolute; right: 18px; bottom: 14px; display: flex; gap: 6px; z-index: 3 }
.bn-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: .25s }
.bn-dots i.on { width: 20px; background: #fff }
@media (max-width: 640px) {
  .bn-sl { height: 150px }
  .bn-c { left: 20px }
  .bn-c b { font-size: 19px }
  .bn-c span { font-size: 12px; margin-top: 6px }
}

/* ============ 右下浮钮(通知/后台) ============ */
.fabz { position: fixed; right: 18px; bottom: 20px; z-index: 980; display: flex; flex-direction: column; gap: 10px }
.fabz button, .fabz a { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px -8px rgba(46, 61, 46, .55); transition: transform .15s ease }
.fabz button:hover, .fabz a:hover { transform: translateY(-2px) }
.fabz button { background: #fff; color: #e8833a; border: 1.5px solid #e8833a }
.fabz button:hover { background: #fdf1e7 }
.fabz a { background: #fff; border: 1.5px solid var(--g2); color: var(--g1); text-decoration: none }
.fabz a:hover { background: var(--g3) }
.fabz svg { width: 21px; height: 21px }
.bdot { position: absolute; top: 5px; right: 5px; min-width: 15px; height: 15px; border-radius: 99px; background: #d9543f; color: #fff; font-size: 9.5px; line-height: 15px; text-align: center; border: 1.5px solid #fff }

/* ============ 关怀提醒卡 ============ */
.ghk { position: fixed; right: 18px; bottom: 84px; z-index: 970; width: 300px; background: #fffdf7; border: 1px solid #e9d9bd; border-radius: 14px; box-shadow: 0 10px 30px -12px rgba(120, 90, 40, .4); padding: 13px 15px; animation: ghPop .35s ease }
@keyframes ghPop { from { opacity: 0; transform: translateY(10px) } }
.ghk .gh-t { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #b25a35; font-weight: 700 }
.ghk .gh-t b { flex: 1; font-size: 13px; color: #7a5c12; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.ghk .gh-t button { margin-left: auto; border: 0; background: none; color: #c7b38c; cursor: pointer; font-size: 15px }
.ghk p { margin: 7px 0 0; font-size: 13.5px; line-height: 1.65; color: #4d4335 }
.ghk .gh-f { margin-top: 12px; display: flex; align-items: center; justify-content: flex-end; gap: 10px }
.ghk .gh-f .gh-cd { font-size: 12px; color: #b25a35; font-weight: 600 }
.ghk .gh-f .btn { border: 0; background: linear-gradient(135deg, #e8833a, #d96f2a); color: #fff; border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 600; cursor: pointer; min-width: 76px; transition: opacity .2s }
.ghk .gh-f .btn:disabled { opacity: .5; cursor: default }

/* ============ 通知面板 ============ */
.xxbox { position: fixed; right: 18px; bottom: 84px; z-index: 975; width: 340px; background: #fff; border-radius: 14px; box-shadow: 0 14px 40px -14px rgba(30, 45, 32, .5); overflow: hidden; animation: ghPop .25s ease }
.xx-hd { display: flex; align-items: center; gap: 6px; padding: 12px 15px; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, #eef5ec, #f8f4e9) }
.xx-hd b { color: #b25a35; font-size: 12px }
.xx-hd button { margin-left: auto; border: 0; background: none; font-size: 16px; cursor: pointer; color: var(--tx3) }
.xx-list { max-height: 300px; overflow: auto }
.xx { padding: 11px 15px; border-top: 1px solid #f0f2ee }
.xx.new { background: #f3f9f2 }
.xx p { margin: 0; font-size: 13.5px; line-height: 1.6 }
.xx span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--tx3) }
.xx-none { text-align: center; color: var(--tx3); padding: 26px 0; font-size: 13px }

/* ============ 管理后台 ============ */
body[data-pg="admin"] header { position: static }
.adm { padding: 16px 0 60px }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px }
.adm-tabs button { border: 1px solid #dde6dc; background: #fff; border-radius: 999px; padding: 7px 15px; cursor: pointer; font-size: 13.5px; color: #3f5a46; transition: .15s }
.adm-tabs button:hover { border-color: var(--g2); color: var(--g1); background: var(--g3) }
.adm-tabs button.on { background: #fff; border-color: var(--g2); color: var(--g1); font-weight: 700 }
.adm-panel { background: #fff; border-radius: 16px; box-shadow: var(--sh); border: 1px solid #ecefea; padding: 16px 18px 8px }
.ad-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px }
.ad-top input, .ad-top select { border: 1px solid #dbe3da; border-radius: 9px; padding: 8px 10px; font-size: 13.5px; min-width: 120px; flex: 1 }
.ad-top input#in-sjt { flex: none }
.ad-tab { overflow: auto }
.ad-tab table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px }
.ad-tab th, .ad-tab td { text-align: left; padding: 11px 14px; border-bottom: 1px solid #f0f2ee; vertical-align: top }
.ad-tab th { color: var(--tx3); font-weight: 600; font-size: 12px; background: #fafbf9; white-space: nowrap }
.ad-tab button { border: 1px solid #d5e0d6; background: #fff; color: #2f5a42; border-radius: 7px; padding: 5px 11px; font-size: 12.5px; margin: 3px 7px 3px 0; cursor: pointer; white-space: nowrap }
.ad-tab button:hover { background: #eef5ec }
.ad-tab .sub { font-size: 12px; color: var(--tx3); margin-top: 2px; font-weight: 400 }
.ad-tab .pg { font-style: normal; font-size: 11.5px; border-radius: 6px; padding: 1px 7px; font-weight: 700 }
.ad-tab .pg.a { background: #fbe9d3; color: #b36a1e }
.ad-tab .pg.z { background: #f6dcc4; color: #b25a35 }
.ad-tab .pg.f { background: #d9e8f6; color: #2a6bb0 }
.ad-tab .pg.off { background: #f2dcd6; color: #b13a2a }
.jx-set.card { display: grid; gap: 10px; margin-bottom: 14px; border: 1px dashed #d5e0d6 }
.jx-set label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #3f5a46 }
@media (max-width: 720px) {
  .xxbox { width: auto; left: 12px; right: 12px; bottom: 80px }
  .ghk { width: auto; left: 12px; right: 12px }
  .ad-top input { flex-basis: 45% }
}
