/* ============ 英吉沙学习园地 · 全局样式 ============ */
:root{
  --teal:#0FB5A5;--teal-600:#0E9E91;--teal-700:#0B8279;--teal-50:#E8F8F6;
  --ink:#1B2A2F;--ink2:#5A6B70;--ink3:#9AA8AC;--line:#E9EFEF;--bg:#F4F7F7;
  --card:#fff;--r:14px;--sh:0 2px 14px rgba(15,181,165,.08);
  --nav-h:64px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background:var(--bg);color:var(--ink);line-height:1.65;-webkit-font-smoothing:antialiased;
  padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom));
}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:none;background:none;color:inherit}
img{max-width:100%}
input,textarea,select{font:inherit;color:inherit}

/* ---------- 底部导航 ---------- */
.nav{
  position:fixed;left:0;right:0;bottom:0;z-index:100;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border-top:1px solid var(--line);
  box-shadow:0 -4px 20px rgba(15,181,165,.06);
  padding-bottom:env(safe-area-inset-bottom);
}
.nav-inner{
  max-width:1120px;margin:0 auto;height:var(--nav-h);
  display:flex;align-items:center;justify-content:center;gap:8px;
  padding:0 12px;
}
.nav-links{
  display:flex;flex:1;justify-content:space-around;align-items:center;
  gap:0;max-width:640px;
}
.nav-links a,.nav-publish{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  padding:8px 14px;border-radius:12px;font-size:11.5px;color:var(--ink3);
  transition:.18s;flex:1;max-width:110px;
}
.nav-links a svg{width:22px;height:22px}
.nav-links a:hover{background:var(--teal-50);color:var(--teal-700)}
.nav-links a.active{color:var(--teal-700);font-weight:600}
.nav-links a.active svg{stroke:var(--teal-700)}
.nav-publish{color:var(--ink3)}
.nav-publish .pub-icon{
  width:38px;height:38px;border-radius:50%;
  background:linear-gradient(135deg,var(--teal),#26C6B9);color:#fff;
  display:grid;place-items:center;box-shadow:0 4px 14px rgba(15,181,165,.4);
  margin-top:-3px;border:3px solid #fff;
}
.nav-publish .pub-icon svg{width:20px;height:20px;display:block}
.nav-publish:hover{color:var(--teal-700)}
.nav-publish:hover .pub-icon{filter:brightness(1.08)}

/* ---------- 页面容器 ---------- */
.page{max-width:1120px;margin:0 auto;padding:20px 16px 40px;min-height:70vh}
.page.narrow{max-width:820px}
.card{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);padding:18px}
.section-head{display:flex;align-items:center;justify-content:space-between;margin:26px 0 14px}
.section-head:first-child{margin-top:0}
.section-head h2{margin:0;font-size:18px;font-weight:700;display:flex;align-items:center;gap:8px}
.section-head h2::before{content:"";width:4px;height:17px;border-radius:2px;background:var(--teal)}
.section-head .more{font-size:13px;color:var(--ink3)}
.section-head .more:hover{color:var(--teal)}

/* ---------- 首页搜索 ---------- */
.search{position:relative;margin-bottom:16px}
.search input{
  width:100%;height:46px;border-radius:999px;border:1px solid var(--line);background:#fff;
  padding:0 46px 0 44px;font-size:15px;outline:none;transition:.2s;box-shadow:var(--sh);
}
.search input:focus{border-color:var(--teal);box-shadow:0 0 0 4px rgba(15,181,165,.1)}
.search .s-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:19px;height:19px;color:var(--ink3)}
.search .s-clear{
  position:absolute;right:14px;top:50%;transform:translateY(-50%);
  color:var(--ink3);font-size:18px;display:none;padding:0 4px;
}

/* ---------- 轮播 ---------- */
.carousel{position:relative;border-radius:18px;overflow:hidden;height:190px;box-shadow:var(--sh);margin-bottom:16px}
.carousel-track{display:flex;height:100%;transition:transform .5s cubic-bezier(.4,0,.2,1)}
.slide{min-width:100%;height:100%;padding:28px 30px;color:#fff;display:flex;flex-direction:column;justify-content:center}
.slide h2{margin:0 0 8px;font-size:23px;font-weight:700;letter-spacing:.5px}
.slide p{margin:0;opacity:.9;font-size:14px}
.slide .s-tag{
  display:inline-block;font-size:11px;background:rgba(255,255,255,.22);padding:2px 10px;
  border-radius:999px;margin-bottom:10px;width:fit-content;letter-spacing:1px;
}
.carousel-dots{position:absolute;bottom:14px;left:30px;display:flex;gap:6px}
.carousel-dots i{width:6px;height:6px;border-radius:999px;background:rgba(255,255,255,.5);transition:.3s}
.carousel-dots i.on{width:18px;background:#fff}

/* ---------- 置顶公告 ---------- */
.notice{
  display:flex;align-items:center;gap:10px;background:#fff;border-radius:12px;padding:11px 14px;
  box-shadow:var(--sh);margin-bottom:16px;overflow:hidden;
}
.notice-tag{
  flex-shrink:0;font-size:11px;font-weight:700;color:#fff;
  background:linear-gradient(135deg,#FF8A65,#FF7043);
  padding:3px 9px;border-radius:6px;letter-spacing:.5px;
}
.notice-text{font-size:13.5px;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- 快捷入口 ---------- */
.quick{
  display:grid;grid-template-columns:repeat(5,1fr);gap:10px;background:#fff;border-radius:var(--r);
  padding:16px 10px;box-shadow:var(--sh);margin-bottom:6px;
}
.quick-item{
  display:flex;flex-direction:column;align-items:center;gap:7px;padding:6px 2px;border-radius:12px;
  transition:.18s;font-size:12.5px;color:var(--ink2);
}
.quick-item:hover{background:var(--teal-50);color:var(--teal-700);transform:translateY(-2px)}
.qi-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-size:20px;background:var(--teal-50)}

/* ============================================================
   帖子卡片
   ============================================================ */
.post-list{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
@media(min-width:900px){
  .post-list{ grid-template-columns:1fr 1fr; }
}
.post-card{
  position:relative;
  background:#fff;
  border-radius:16px;
  padding:18px 20px 14px;
  box-shadow:0 2px 12px rgba(15,181,165,.06), 0 1px 3px rgba(0,0,0,.02);
  cursor:pointer;
  transition:transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s;
  border:1px solid #EEF4F4;
  display:flex;flex-direction:column;gap:10px;
  min-height:150px;
  overflow:hidden;
}
.post-card::before{
  content:"";
  position:absolute;left:0;top:0;bottom:0;width:3px;
  background:linear-gradient(180deg,var(--teal),#4FD1C5);
  opacity:0;transition:.22s;
}
.post-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(15,181,165,.16);
  border-color:#D8F0ED;
}
.post-card:hover::before{opacity:1}

.pc-header{
  display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--ink3);
  padding-bottom:10px;border-bottom:1px dashed #EEF4F4;
}
.pc-avatar{
  width:26px;height:26px;border-radius:50%;
  background:linear-gradient(135deg,var(--teal),#4FD1C5);
  color:#fff;display:grid;place-items:center;font-size:12px;font-weight:700;
  flex-shrink:0;box-shadow:0 2px 6px rgba(15,181,165,.25);
}
.pc-author{color:var(--ink2);font-weight:600}
.pc-time{margin-left:auto;font-size:12px}
.pc-title{
  margin:0;font-size:17px;font-weight:700;line-height:1.5;color:var(--ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  transition:.18s;
}
.post-card:hover .pc-title{color:var(--teal-700)}
.pc-excerpt{
  margin:0;font-size:13.5px;color:var(--ink2);line-height:1.7;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  flex:1;
}
.pc-footer{
  display:flex;align-items:center;gap:10px;
  padding-top:10px;border-top:1px dashed #EEF4F4;
  font-size:12.5px;color:var(--ink3);
  flex-wrap:wrap;
}
.pc-forum{
  background:var(--teal-50);color:var(--teal-700);
  padding:2px 10px;border-radius:999px;font-size:11.5px;font-weight:600;
}
.pc-stats{
  display:flex;align-items:center;gap:14px;margin-left:auto;
  font-size:12.5px;color:var(--ink3);
}
.pc-stats .stat{ display:flex;align-items:center;gap:4px; }
.pc-stats .stat svg{ width:14px;height:14px;opacity:.7; }
.pc-stats .stat b{ font-weight:600;color:var(--ink2); }
.pc-status{ font-size:11px;padding:2px 8px;border-radius:6px; }
.pc-status.warn{ background:#FFEBEE;color:#D84315; }
.pc-status.pending{ background:#FFF3E0;color:#E65100; }

/* ---- 帖子卡片缩略图 ---- */
.post-card.with-thumb{
  display:grid;
  grid-template-columns:1fr 96px;
  gap:12px;
}
.post-card.with-thumb .pc-body{
  min-width:0;
  display:flex;flex-direction:column;gap:10px;
}
.pc-thumb{
  width:96px;height:96px;
  border-radius:12px;
  overflow:hidden;
  background:#F2F5F5;
  align-self:center;
  position:relative;
}
.pc-thumb img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  transition:transform .3s;
}
.post-card:hover .pc-thumb img{
  transform:scale(1.06);
}

/* 手机端缩略图缩小 */
@media(max-width:640px){
  .post-card.with-thumb{
    grid-template-columns:1fr 78px;
    gap:10px;
  }
  .pc-thumb{width:78px;height:78px;border-radius:10px}
}

/* ---------- 加载更多 / 空状态 ---------- */
.load-more{
  text-align:center;padding:16px;color:var(--teal-700);font-size:14px;
  cursor:pointer;font-weight:600;border-radius:12px;margin-top:4px;
  transition:.18s;
}
.load-more:hover{background:var(--teal-50)}
.empty{text-align:center;padding:60px 20px;color:var(--ink3);font-size:14px;line-height:1.9}

/* ============================================================
   板块九宫格（图标 + 名称）
   ============================================================ */
.forum-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px;
  margin:4px 0 6px;
}
.forum-card{
  position:relative;
  background:#fff;
  border-radius:14px;
  padding:16px 6px 14px;
  border:1px solid #EEF4F4;
  box-shadow:0 2px 10px rgba(15,181,165,.05);
  cursor:pointer;
  transition:transform .2s, box-shadow .2s, border-color .2s;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  text-align:center;
  overflow:hidden;
}
.forum-card:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(15,181,165,.16);
  border-color:#CFEDE9;
}
.fc-icon{
  position:relative;overflow:hidden;
  width:50px;height:50px;border-radius:14px;
  background:linear-gradient(135deg,var(--teal),#4FD1C5);
  color:#fff;display:grid;place-items:center;font-size:24px;
  flex-shrink:0;box-shadow:0 4px 12px rgba(15,181,165,.25);
}
.fc-icon span{position:relative;z-index:1}
.fc-icon img{
  position:absolute;inset:0;z-index:2;
  width:100%;height:100%;object-fit:cover;
  border-radius:inherit;display:block;
}
.fc-name{
  font-size:13px;
  font-weight:600;
  color:var(--ink);
  margin:0;
  line-height:1.3;
  max-width:100%;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  word-break:break-all;
}
.forum-card:hover .fc-name{ color:var(--teal-700); }

/* 平板 */
@media(max-width:1024px){
  .forum-grid{ grid-template-columns:repeat(4,1fr); }
}
/* 手机 */
@media(max-width:640px){
  .forum-grid{
    grid-template-columns:repeat(4,1fr);
    gap:8px;
  }
  .forum-card{
    padding:12px 4px 10px;
    border-radius:12px;
    gap:6px;
  }
  .fc-icon{
    width:42px;height:42px;border-radius:12px;font-size:20px;
    box-shadow:0 2px 8px rgba(15,181,165,.22);
  }
  .fc-name{
    font-size:11.5px;
  }
}

/* ---------- 板块详情页 ---------- */
.board-header{
  display:flex;align-items:center;gap:14px;
  background:linear-gradient(135deg,var(--teal),#26C6B9);
  border-radius:18px;padding:22px;color:#fff;
  box-shadow:0 6px 20px rgba(15,181,165,.25);
  margin-bottom:16px;
}
.board-header .bh-icon{
  position:relative;overflow:hidden;
  width:54px;height:54px;border-radius:16px;
  background:rgba(255,255,255,.22);backdrop-filter:blur(4px);
  display:grid;place-items:center;font-size:26px;flex-shrink:0;
  border:1.5px solid rgba(255,255,255,.35);
}
.board-header .bh-icon span{position:relative;z-index:1}
.board-header .bh-icon img{
  position:absolute;inset:0;z-index:2;
  width:100%;height:100%;object-fit:cover;
  border-radius:inherit;display:block;
}
.board-header .bh-info{flex:1;min-width:0}
.board-header h1{margin:0 0 4px;font-size:20px;font-weight:700}
.board-header p{margin:0;font-size:13px;opacity:.9;line-height:1.6}
.board-back{
  padding:8px 16px;border-radius:999px;
  background:rgba(255,255,255,.2);color:#fff;
  font-size:13px;flex-shrink:0;transition:.2s;
  backdrop-filter:blur(4px);
}
.board-back:hover{background:rgba(255,255,255,.32)}

/* ---------- 消息页 ---------- */
.seg{display:flex;gap:6px;background:#fff;padding:5px;border-radius:999px;box-shadow:var(--sh);margin-bottom:14px}
.seg button{flex:1;padding:8px;border-radius:999px;font-size:14px;color:var(--ink2);transition:.2s}
.seg button.on{background:var(--teal-50);color:var(--teal-700);font-weight:600}
.msg-item{display:flex;gap:12px;padding:15px 4px;border-bottom:1px solid var(--line)}
.msg-item:last-child{border-bottom:none}
.msg-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:18px;flex-shrink:0}
.msg-icon.sys{background:#FFF3E0}
.msg-icon.usr{background:var(--teal-50)}
.msg-icon.int{background:#EDE7F6}
.msg-body{flex:1;min-width:0}
.msg-title{font-size:14.5px;font-weight:600;margin-bottom:2px}
.msg-desc{font-size:13px;color:var(--ink2)}
.msg-time{font-size:11.5px;color:var(--ink3);margin-top:4px}

/* ---------- 我的 ---------- */
.profile{
  display:flex;align-items:center;gap:14px;
  background:linear-gradient(135deg,var(--teal),#26C6B9);
  border-radius:18px;padding:22px 20px;color:#fff;
  box-shadow:0 6px 20px rgba(15,181,165,.28);margin-bottom:14px;
}
.profile .avatar{
  width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.22);
  display:grid;place-items:center;font-size:22px;font-weight:700;
  border:2px solid rgba(255,255,255,.5);flex-shrink:0;
}
.profile .p-name{font-size:17px;font-weight:700}
.profile .p-id{font-size:12.5px;opacity:.85}
.profile .p-btn{
  margin-left:auto;background:rgba(255,255,255,.2);padding:7px 14px;border-radius:999px;
  font-size:13px;backdrop-filter:blur(4px);transition:.2s;color:#fff;
}
.profile .p-btn:hover{background:rgba(255,255,255,.32)}
.stat-row{
  display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-radius:var(--r);
  padding:16px 0;box-shadow:var(--sh);margin-bottom:14px;text-align:center;
}
.stat-row b{display:block;font-size:19px;color:var(--teal-700)}
.stat-row span{font-size:12.5px;color:var(--ink3)}
.menu-list{background:#fff;border-radius:var(--r);box-shadow:var(--sh);overflow:hidden}
.menu-item{
  display:flex;align-items:center;gap:12px;padding:15px 18px;font-size:14.5px;
  border-bottom:1px solid var(--line);transition:.15s;cursor:pointer;width:100%;text-align:left;
}
.menu-item:last-child{border-bottom:none}
.menu-item:hover{background:var(--teal-50)}
.menu-item .mi-icon{font-size:17px;width:22px;text-align:center}
.menu-item .mi-arrow{margin-left:auto;color:var(--ink3);font-size:16px}

/* ---------- 详情页 ---------- */
.detail-title{font-size:22px;font-weight:700;margin:0 0 12px;line-height:1.45}
.detail-meta{
  display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink3);flex-wrap:wrap;
  padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:18px;
}
.detail-content{font-size:15.5px;line-height:1.85;word-break:break-word}
.detail-content img{border-radius:10px;margin:8px 0;cursor:zoom-in;max-width:100%}
.detail-content p{margin:0 0 12px}
.detail-actions{display:flex;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid var(--line);flex-wrap:wrap}
.btn-like{
  display:flex;align-items:center;gap:6px;padding:9px 22px;border-radius:999px;
  background:var(--teal-50);color:var(--teal-700);font-weight:600;font-size:14px;transition:.2s;
}
.btn-like:hover{background:#D5F2EE}
.btn-like.on{background:linear-gradient(135deg,var(--teal),#26C6B9);color:#fff}
.btn-ghost{padding:9px 18px;border-radius:999px;background:#F2F5F5;color:var(--ink2);font-size:14px;transition:.2s}
.btn-ghost:hover{background:#E8EEEE}
.btn-primary{
  padding:9px 22px;border-radius:999px;background:linear-gradient(135deg,var(--teal),#26C6B9);
  color:#fff;font-weight:600;font-size:14px;box-shadow:0 4px 12px rgba(15,181,165,.3);transition:.2s;
}
.btn-primary:hover{filter:brightness(1.06)}
.btn-primary:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.btn-block{width:100%;padding:12px;border-radius:12px;font-size:15px}

.cmt-editor{display:flex;gap:10px;margin:14px 0 18px;align-items:flex-end}
.cmt-editor textarea{
  flex:1;min-height:70px;border:1px solid var(--line);border-radius:12px;padding:11px 13px;
  resize:vertical;outline:none;font-size:14px;transition:.2s;background:#FAFCFC;
}
.cmt-editor textarea:focus{border-color:var(--teal);background:#fff;box-shadow:0 0 0 3px rgba(15,181,165,.09)}
.cmt{display:flex;gap:11px;padding:15px 0;border-bottom:1px solid var(--line)}
.cmt:last-child{border-bottom:none}
.cmt-avatar{
  width:34px;height:34px;border-radius:50%;
  background:linear-gradient(135deg,var(--teal),#4FD1C5);
  color:#fff;display:grid;place-items:center;font-size:13px;font-weight:700;flex-shrink:0;
}
.cmt-main{flex:1;min-width:0}
.cmt-head{display:flex;align-items:center;gap:8px;font-size:13px;margin-bottom:3px}
.cmt-head b{font-size:13.5px}
.cmt-head span{color:var(--ink3);font-size:12px}
.cmt-text{font-size:14.5px;line-height:1.7;word-break:break-word}
.cmt-foot{display:flex;gap:16px;margin-top:8px;font-size:12.5px;color:var(--ink3)}
.cmt-foot button:hover{color:var(--teal-700)}
.replies{margin-top:10px;background:#F7FAFA;border-radius:11px;padding:4px 12px}
.reply{display:flex;gap:9px;padding:10px 0;border-bottom:1px solid #EDF3F3;font-size:13.5px}
.reply:last-child{border-bottom:none}
.reply-avatar{
  width:26px;height:26px;border-radius:50%;background:#CFEDE9;color:var(--teal-700);
  display:grid;place-items:center;font-size:11px;font-weight:700;flex-shrink:0;
}
.reply-more{font-size:12.5px;color:var(--teal-700);padding:8px 0;cursor:pointer}

/* ---------- 表单 ---------- */
.form-card{background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:22px}
.inp{
  width:100%;border:1px solid var(--line);border-radius:11px;padding:11px 13px;font-size:14.5px;
  outline:none;background:#FAFCFC;transition:.2s;margin-bottom:11px;
}
.inp:focus{border-color:var(--teal);background:#fff;box-shadow:0 0 0 3px rgba(15,181,165,.09)}
textarea.inp{resize:vertical;min-height:200px;line-height:1.7}
label.lb{display:block;font-size:13px;color:var(--ink2);margin-bottom:6px;font-weight:600}
.form-tip{font-size:12.5px;color:var(--ink3);margin:2px 0 18px;line-height:1.7}

/* ---------- 弹窗 ---------- */
#modalRoot{position:fixed;inset:0;z-index:500;display:none}
#modalRoot.show{display:block}
.mask{
  position:absolute;inset:0;background:rgba(20,40,42,.42);backdrop-filter:blur(3px);
  display:flex;align-items:center;justify-content:center;padding:18px;animation:fade .2s;
}
@keyframes fade{from{opacity:0}to{opacity:1}}
.modal{
  background:#fff;border-radius:18px;width:100%;max-width:460px;max-height:86vh;overflow-y:auto;
  animation:pop .25s cubic-bezier(.34,1.4,.64,1);
}
.modal.wide{max-width:620px}
@keyframes pop{from{transform:scale(.94);opacity:0}to{transform:scale(1);opacity:1}}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 12px;font-size:16.5px;font-weight:700}
.modal-close{font-size:24px;color:var(--ink3);line-height:1;width:30px;height:30px;border-radius:50%}
.modal-close:hover{background:#F2F5F5}
.modal-body{padding:0 20px 4px}
.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:16px 20px 20px}

/* ---------- 小工具 ---------- */
.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tool-box{border:1px solid var(--line);border-radius:13px;padding:14px;text-align:center}
.pomo-time{font-size:34px;font-weight:700;color:var(--teal-700);font-variant-numeric:tabular-nums;letter-spacing:1px}
.pomo-btns{display:flex;gap:7px;justify-content:center;margin-top:10px}
.pomo-btns button{padding:6px 14px;border-radius:999px;background:var(--teal-50);color:var(--teal-700);font-size:13px;font-weight:600}
.note-area{width:100%;min-height:110px;border:1px solid var(--line);border-radius:11px;padding:10px;font-size:13.5px;resize:vertical;outline:none;background:#FAFCFC}

/* ---------- 图片预览 / Toast ---------- */
.img-preview{position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:900;display:grid;place-items:center;padding:20px;cursor:zoom-out;animation:fade .2s}
.img-preview img{max-width:100%;max-height:100%;border-radius:8px}
#toast{
  position:fixed;left:50%;bottom:calc(var(--nav-h) + 20px);transform:translateX(-50%) translateY(20px);
  background:rgba(27,42,47,.92);color:#fff;padding:11px 22px;border-radius:999px;font-size:14px;
  z-index:999;opacity:0;transition:.3s;pointer-events:none;white-space:nowrap;max-width:88vw;
  overflow:hidden;text-overflow:ellipsis;
}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ---------- 骨架屏 ---------- */
.skeleton{background:#fff;border-radius:16px;padding:18px;box-shadow:var(--sh);margin-bottom:14px}
.sk-line{height:13px;border-radius:6px;background:linear-gradient(90deg,#EEF3F3 25%,#F7FAFA 50%,#EEF3F3 75%);background-size:200% 100%;animation:sh 1.4s infinite;margin-bottom:9px}
@keyframes sh{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* ---------- 页脚 ---------- */
.footer{text-align:center;padding:26px 16px 34px;color:var(--ink3);font-size:12.5px;line-height:2}
.footer a:hover{color:var(--teal-700)}

/* ---------- 关于页 ---------- */
.about-hero{text-align:center;padding:34px 20px 26px}
.about-logo{
  width:74px;height:74px;border-radius:22px;margin:0 auto 16px;
  background:linear-gradient(135deg,var(--teal),#4FD1C5);color:#fff;display:grid;place-items:center;
  font-size:32px;font-weight:700;box-shadow:0 8px 24px rgba(15,181,165,.35);
}
.about-hero h1{margin:0 0 6px;font-size:22px}
.about-hero p{margin:0;color:var(--ink3);font-size:13px}
.about-list{background:#F7FAFA;border-radius:12px;padding:16px 18px;font-size:14px;color:var(--ink2);line-height:2.2}
.about-list b{color:var(--ink)}

/* ============================================================
   热门推荐（横向滚动）
   ============================================================ */
.hot-scroll{
  display:flex;gap:12px;overflow-x:auto;padding:4px 4px 12px;
  scroll-snap-type:x mandatory;scrollbar-width:none;
}
.hot-scroll::-webkit-scrollbar{display:none}
.hot-card{
  position:relative;
  flex:0 0 auto;
  width:270px;
  scroll-snap-align:start;
  background:#fff;
  border-radius:14px;
  padding:14px 16px;
  border:1px solid #EEF4F4;
  box-shadow:0 2px 10px rgba(15,181,165,.06);
  cursor:pointer;
  transition:transform .22s, box-shadow .22s, border-color .22s;
  display:flex;flex-direction:column;gap:8px;
  overflow:hidden;
}
.hot-card:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(15,181,165,.16);
  border-color:#CFEDE9;
}
.hot-rank{
  position:absolute;top:0;right:0;
  width:34px;height:34px;border-radius:0 14px 0 14px;
  background:linear-gradient(135deg,var(--teal),#26C6B9);
  color:#fff;display:grid;place-items:center;
  font-size:13px;font-weight:800;font-style:italic;
  box-shadow:0 4px 10px rgba(15,181,165,.28);
}
.hot-rank.r1{background:linear-gradient(135deg,#FF8A65,#FF5722)}
.hot-rank.r2{background:linear-gradient(135deg,#FFB74D,#FF9800)}
.hot-rank.r3{background:linear-gradient(135deg,#FFD54F,#FFC107)}
.hot-title{
  margin:0;font-size:14.5px;font-weight:700;line-height:1.5;
  padding-right:34px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  color:var(--ink);
}
.hot-card:hover .hot-title{color:var(--teal-700)}
.hot-meta{
  display:flex;align-items:center;gap:6px;
  font-size:12px;color:var(--ink3);
}
.hot-stats{
  display:flex;gap:12px;font-size:12px;color:var(--ink3);
  margin-top:auto;padding-top:8px;border-top:1px dashed #EEF4F4;
}
.hot-stats b{color:var(--teal-700);font-weight:700}

/* ============================================================
   板块切换 tabs（吸顶）
   ============================================================ */
.post-tabs-wrap{
  position:sticky;top:0;z-index:20;
  background:rgba(244,247,247,.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  padding:10px 0 8px;
  margin:0 -16px 8px;
  padding-left:16px;padding-right:16px;
}
.post-tabs{
  display:flex;gap:8px;overflow-x:auto;
  scrollbar-width:none;padding-bottom:2px;
}
.post-tabs::-webkit-scrollbar{display:none}
.ptab{
  flex-shrink:0;padding:7px 16px;border-radius:999px;
  background:#fff;font-size:13.5px;color:var(--ink2);
  border:1px solid #EEF4F4;transition:.2s;white-space:nowrap;
}
.ptab:hover{color:var(--teal-700);border-color:#CFEDE9}
.ptab.on{
  background:linear-gradient(135deg,var(--teal),#26C6B9);
  color:#fff;font-weight:600;border-color:transparent;
  box-shadow:0 4px 12px rgba(15,181,165,.3);
}

/* ============================================================
   移动端
   ============================================================ */
@media(max-width:768px){
  .page{padding:14px 12px 20px}
  .carousel{height:152px}
  .slide{padding:20px}
  .slide h2{font-size:18px}
  .slide p{font-size:12.5px}
  .quick{grid-template-columns:repeat(5,1fr);padding:12px 4px;gap:2px}
  .qi-icon{width:38px;height:38px;font-size:18px;border-radius:12px}
  .quick-item{font-size:11px;gap:5px}
  .post-list{grid-template-columns:1fr;gap:12px}
  .post-card{padding:16px}
  .pc-title{font-size:15.5px}
  .pc-excerpt{font-size:13px}
  .pc-stats{gap:12px;font-size:12px}
  .detail-title{font-size:19px}
  .tool-grid{grid-template-columns:1fr}
  .form-card{padding:16px}
  #toast{bottom:calc(var(--nav-h) + 12px)}
  .post-tabs-wrap{margin:0 -12px 8px;padding-left:12px;padding-right:12px}
}

@media(max-width:600px){
  .hot-card{width:230px;padding:12px 14px}
  .hot-title{font-size:13.5px}
  .hot-stats{font-size:11px;gap:10px}
}

/* ============================================================
   SVG 图标统一尺寸
   ============================================================ */
.ic{ display:inline-flex;align-items:center;justify-content:center; }
.ic svg{ display:block; }

/* 底部导航图标 */
.nav-links svg{ width:22px;height:22px;display:block; }
.nav-publish .pub-icon svg{ width:20px;height:20px; }

/* 快捷入口图标 */
.qi-icon svg{ width:22px;height:22px;color:var(--teal-700); }

/* 帖子卡片统计 */
.pc-stats .stat svg{ width:14px;height:14px; }
.pc-status svg{ width:12px;height:12px;vertical-align:-2px;margin-right:2px; }

/* 消息页图标 */
.msg-icon svg{ width:20px;height:20px;color:var(--teal-700); }
.msg-icon.sys svg{ color:#E65100; }
.msg-icon.usr svg{ color:var(--teal-700); }
.msg-icon.int svg{ color:#6A4FB6; }

/* 我的页面菜单 */
.menu-item .mi-icon svg{ width:18px;height:18px;color:var(--teal-700);display:block; }

/* 关于页 */
.about-ic{ display:inline-flex;vertical-align:-3px;margin-right:6px; }
.about-ic svg{ width:16px;height:16px;color:var(--teal-700); }

/* 帖子详情点赞按钮 */
.btn-like svg{ width:16px;height:16px; }
.cmt-foot button svg{ width:14px;height:14px;vertical-align:-2px;margin-right:3px; }

/* 小工具标题 */
.tool-title{ font-size:12.5px;color:var(--ink3);margin-bottom:6px;display:flex;align-items:center;justify-content:center;gap:5px; }
.tool-title svg{ width:14px;height:14px;color:var(--teal-700); }

/* 板块兜底图标 */
.fc-icon svg{ width:26px;height:26px;color:#fff; }
.board-header .bh-icon svg{ width:28px;height:28px;color:#fff; }

/* ===== 热门推荐：图标+数字 对齐 ===== */
.hot-stats {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.hot-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.hot-stats svg {
  width: 16px !important;
  height: 16px !important;
  flex: none;
}

.hot-stats b {
  font-weight: 600;
}

/* ---- 登录 / 注册页 ---- */
.auth-hero{ text-align:center; padding:10px 0 22px; }
.auth-avatar{
  width:84px;height:84px;border-radius:50%;
  margin:0 auto 12px;
  background:linear-gradient(135deg,var(--teal),#4FD1C5);
  color:#fff;display:grid;place-items:center;
  font-size:34px;font-weight:700;
  overflow:hidden;position:relative;
  box-shadow:0 8px 22px rgba(15,181,165,.28);
  border:3px solid #fff;
}
.auth-avatar img{ width:100%;height:100%;object-fit:cover;display:block; }
.auth-avatar.avatar-upload{ cursor:pointer; }
.auth-avatar .up-tip{
  font-size:34px;color:rgba(255,255,255,.9);line-height:1;font-weight:400;
}
.auth-name{ font-size:17px;font-weight:700;color:var(--ink);margin-bottom:4px; }
.auth-tip{ font-size:12.5px;color:var(--ink3);line-height:1.7; }

/* 头像带图片时，覆盖 background 渐变 */
.avatar-img{
  padding:0;overflow:hidden;background:#E8F8F6;
  display:grid;place-items:center;
}
.avatar-img img{ width:100%;height:100%;object-fit:cover;display:block; }

.avatar-btn{
  width:34px;height:34px;border-radius:50%;
  background:var(--teal-50);color:var(--teal-700);
  display:grid;place-items:center;font-size:14px;font-weight:700;
  border:1.5px solid #fff;box-shadow:var(--sh);overflow:hidden;
}
.avatar-btn img{ width:100%;height:100%;object-fit:cover; }

/* 头像上传样式 */
.avatar-upload{ position:relative; cursor:pointer; overflow:hidden; }
.avatar-upload img{ width:100%;height:100%;object-fit:cover;border-radius:50%; }
.avatar-upload::after{
  content:"换";
  position:absolute;right:-2px;bottom:-2px;
  width:22px;height:22px;border-radius:50%;
  background:var(--teal);color:#fff;
  font-size:11px;font-weight:700;
  display:grid;place-items:center;
  border:2px solid #fff;
  opacity:0;transition:.2s;
}
.avatar-upload:hover::after{ opacity:1; }

/* 头像图片通用 */
.avatar-img img{ width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit; }

/* ============================================================
   审核中心
   ============================================================ */
.audit-card{
  background:#fff;border-radius:14px;
  padding:16px 18px;margin-bottom:12px;
  border:1px solid #EEF4F4;
  box-shadow:0 2px 10px rgba(15,181,165,.06);
}
.audit-head{
  display:flex;align-items:center;gap:10px;
  padding-bottom:10px;border-bottom:1px dashed #EEF4F4;margin-bottom:10px;
}
.audit-meta{ display:flex;align-items:center;gap:8px;font-size:13px;flex-wrap:wrap; }
.audit-meta b{ color:var(--ink); }
.audit-meta span{ color:var(--ink3);font-size:12px; }
.audit-title{
  margin:0 0 8px;font-size:16px;font-weight:700;
  cursor:pointer;color:var(--ink);
  transition:.18s;
}
.audit-title:hover{ color:var(--teal-700); }
.audit-content{
  font-size:13.5px;color:var(--ink2);line-height:1.7;
  background:#F7FAFA;border-radius:10px;padding:10px 12px;
  max-height:200px;overflow:hidden;
  word-break:break-word;
}
.audit-content img{ max-width:100%;border-radius:6px; }
.audit-actions{
  display:flex;gap:10px;margin-top:12px;
  padding-top:12px;border-top:1px dashed #EEF4F4;
}
.btn-approve,.btn-reject{
  display:inline-flex;align-items:center;gap:5px;
  padding:8px 18px;border-radius:999px;
  font-size:13.5px;font-weight:600;transition:.2s;
}
.btn-approve{
  background:linear-gradient(135deg,var(--teal),#26C6B9);color:#fff;
  box-shadow:0 4px 12px rgba(15,181,165,.3);
}
.btn-approve:hover{ filter:brightness(1.06); }
.btn-approve svg{ width:15px;height:15px; }
.btn-reject{
  background:#FFF3F0;color:#D84315;
}
.btn-reject:hover{ background:#FFEBEE; }
.btn-reject svg{ width:15px;height:15px; }
.report-tag{
  display:inline-block;font-size:11px;font-weight:700;
  background:#FFF3E0;color:#E65100;
  padding:3px 10px;border-radius:6px;
}
.report-reason{
  font-size:13px;color:#D84315;
  background:#FFF3F0;border-radius:8px;
  padding:8px 12px;margin-bottom:8px;
}
.report-parent{
  font-size:12.5px;color:var(--ink3);
  padding:6px 12px;margin-bottom:6px;
  background:#FAFCFC;border-radius:8px;
  border-left:3px solid #CFEDE9;
}

/* ============================================================
   帖子详情：作者卡片
   ============================================================ */
.author-card{
  display:flex;align-items:center;gap:12px;
  background:#F7FAFA;
  border-radius:12px;
  padding:12px 16px;
  margin:18px 0;
  border-left:3px solid var(--teal);
}
.author-card-avatar{
  width:44px;height:44px;border-radius:50%;
  background:linear-gradient(135deg,var(--teal),#4FD1C5);
  color:#fff;display:grid;place-items:center;
  font-size:16px;font-weight:700;flex-shrink:0;
  overflow:hidden;
}
.author-card-avatar img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.author-info{flex:1;min-width:0}
.author-name{font-size:14.5px;font-weight:700;color:var(--ink)}
.author-sub{font-size:12px;color:var(--ink3);margin-top:2px}

/* 头像带图片时统一处理 */
.avatar-img{padding:0;overflow:hidden;background:#E8F8F6}
.avatar-img img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.pc-avatar.avatar-img, .cmt-avatar.avatar-img, .reply-avatar.avatar-img{
  padding:0;
}

/* ============================================================
   头像裁剪弹窗
   ============================================================ */
.crop-modal{
  position:fixed;inset:0;z-index:900;
  background:#1B2A2F;
  display:none;
  flex-direction:column;
}
.crop-modal.show{ display:flex; }

.crop-head{
  height:56px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 14px;
  background:rgba(0,0,0,.35);
  color:#fff;
  flex-shrink:0;
}
.crop-title{ font-size:15px;font-weight:600; }
.crop-cancel,.crop-ok{
  padding:7px 16px;border-radius:999px;
  font-size:14px;color:#fff;
}
.crop-cancel{ background:rgba(255,255,255,.15); }
.crop-ok{
  background:linear-gradient(135deg,var(--teal),#26C6B9);
  font-weight:600;
  box-shadow:0 4px 12px rgba(15,181,165,.4);
}

.crop-body{
  flex:1;min-height:0;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  background:#000;
}
.crop-body img{ max-width:100%;max-height:100%;display:block; }

.crop-tip{
  padding:12px;
  text-align:center;font-size:12.5px;
  color:rgba(255,255,255,.65);
  background:rgba(0,0,0,.35);
  flex-shrink:0;
}

/* Cropper.js 样式覆盖（可选，让它更圆润） */
.cropper-view-box{
  border-radius:50%;
  outline:2px solid #fff;
  outline-color:#fff;
}
.cropper-face{ background:transparent; }
.cropper-line{ background-color:var(--teal); }
.cropper-point{ background-color:var(--teal); }

/* 注册页头像预览（有图时撑满圆形） */
.auth-avatar img{
  width:100%;height:100%;object-fit:cover;display:block;
  border-radius:50%;
}

/* ============================================================
   wangEditor 容器（发布页）
   ============================================================ */
#editor-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
#toolbar-container {
  border-bottom: 1px solid var(--line);
  background: #FAFCFC;
}
#editor-container {
  height: 380px;
  overflow-y: auto;
}
@media (max-width: 640px) {
  #editor-container { height: 280px; }
}

/* ============================================================
   详情页富文本渲染
   ============================================================ */
.rich-content {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
  word-break: break-word;
}
.rich-content p { margin: 14px 0; }
.rich-content h1, .rich-content h2, .rich-content h3,
.rich-content h4, .rich-content h5 {
  margin: 20px 0 12px;
  font-weight: 700;
  line-height: 1.4;
}
.rich-content h1 { font-size: 24px; }
.rich-content h2 { font-size: 20px; }
.rich-content h3 { font-size: 18px; }
.rich-content h4 { font-size: 16px; }
.rich-content h5 { font-size: 14px; }

.rich-content blockquote {
  background: #f5f2f0;
  border-left: 6px solid var(--teal);
  padding: 10px 16px;
  margin: 14px 0;
  border-radius: 0 8px 8px 0;
  color: var(--ink2);
}

.rich-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  border-radius: 8px;
  padding: 14px 18px;
  overflow-x: auto;
  margin: 14px 0;
  font-size: 13.5px;
  line-height: 1.7;
}
.rich-content pre code {
  background: none;
  padding: 0;
  font-family: Consolas, Monaco, "Andale Mono", monospace;
  color: inherit;
  font-size: inherit;
}

.rich-content code {
  background: #f5f2f0;
  color: #c7254e;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9em;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
  cursor: zoom-in;
  display: block;
}

.rich-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0;
  font-size: 14px;
}
.rich-content table td,
.rich-content table th {
  border: 1px solid #e8e8e8;
  padding: 8px 12px;
  text-align: left;
  line-height: 1.5;
}
.rich-content table th {
  background: #f5f2f0;
  font-weight: 700;
  text-align: center;
}

.rich-content ul,
.rich-content ol {
  padding-left: 26px;
  margin: 12px 0;
}
.rich-content li { margin: 5px 0; }

.rich-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

.rich-content a {
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rich-content a:hover { color: var(--teal); }

.rich-content .w-e-image-container {
  display: inline-block;
  margin: 4px 4px;
}
.rich-content .w-e-textarea-video-container {
  background: #f5f2f0;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin: 12px 0;
}
.rich-content .w-e-textarea-video-container video {
  max-width: 100%;
  border-radius: 6px;
}

/* 代码高亮 token（Prism.js 配色，wangEditor 输出带 token 类的 span） */
.rich-content .token.comment,
.rich-content .token.prolog,
.rich-content .token.doctype,
.rich-content .token.cdata { color: #708090; }
.rich-content .token.punctuation { color: #999; }
.rich-content .token.property,
.rich-content .token.tag,
.rich-content .token.boolean,
.rich-content .token.number,
.rich-content .token.constant,
.rich-content .token.symbol,
.rich-content .token.deleted { color: #905; }
.rich-content .token.selector,
.rich-content .token.attr-name,
.rich-content .token.string,
.rich-content .token.char,
.rich-content .token.builtin,
.rich-content .token.inserted { color: #690; }
.rich-content .token.operator,
.rich-content .token.entity,
.rich-content .token.url { color: #9a6e3a; }
.rich-content .token.atrule,
.rich-content .token.attr-value,
.rich-content .token.keyword { color: #07a; }
.rich-content .token.function,
.rich-content .token.class-name { color: #dd4a68; }
.rich-content .token.regex,
.rich-content .token.important,
.rich-content .token.variable { color: #e90; }

/* 移动端压缩 */
@media (max-width: 640px) {
  .rich-content { font-size: 15px; }
  .rich-content pre { padding: 10px 12px; font-size: 12.5px; }
  .rich-content table { font-size: 13px; }
  .rich-content table td,
  .rich-content table th { padding: 6px 8px; }
  .rich-content h1 { font-size: 20px; }
  .rich-content h2 { font-size: 18px; }
  .rich-content h3 { font-size: 16px; }
}