/* =========================================================
   学习小屋 · 论坛设计系统
   加载在 front.css 之后：把「AI 产品落地页」改成常见的博客论坛
   —— 紧凑页头 / 板块表 / 帖子表 / 楼层 / 侧栏统计 / 信息密度优先
   ========================================================= */

/* ---------- 0. 换肤：把紫色渐变换成论坛蓝 ---------- */
:root{
  --brand-1:#2563eb; --brand-2:#3b82f6; --brand-3:#60a5fa;
  --brand-grad:linear-gradient(90deg,#2563eb 0%,#3b82f6 100%);
  --brand-grad-soft:linear-gradient(135deg,rgba(37,99,235,.08),rgba(59,130,246,.05));
  --brand-ink:#1d4ed8;

  --bg:#f4f5f7; --bg-soft:#f7f8fa; --card:#ffffff;
  --fg:#1f2329; --fg-2:#51565d; --fg-3:#8f959e;
  --stroke:#e5e7eb; --stroke-strong:#d5d9e0;

  --shadow-xs:0 1px 2px rgba(16,24,40,.04);
  --shadow-sm:0 1px 3px rgba(16,24,40,.06);
  --shadow-md:0 4px 14px -6px rgba(16,24,40,.12);
  --shadow-brand:0 2px 8px -2px rgba(37,99,235,.35);

  --r-sm:4px; --r-md:6px; --r-lg:8px; --r-xl:12px; --r-pill:999px;
  --font:-apple-system,BlinkMacSystemFont,"PingFang SC","HarmonyOS Sans SC","Microsoft YaHei","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;

  --f-line:#e5e7eb; --f-line2:#eef0f3; --f-soft:#f7f8fa;
  --f-brand:#2563eb; --f-brand-d:#1d4ed8; --f-brand-l:#eff6ff;
  --f-red:#e5484d; --f-green:#12a150; --f-amber:#e8930c;
}

body{
  font-size:15px; line-height:1.75;
  color:var(--fg);
}
/* Astra 会把 body 刷成白的，论坛要浅灰底才托得住白卡片 */
body,body.ast-separate-container,body.ast-plain-container,body.ast-two-container{
  background:#f4f5f7 !important; background-image:none !important;
}
h1,h2,h3,h4{letter-spacing:0; font-weight:600}
a{color:var(--f-brand)}
a:hover{color:var(--f-brand-d)}

/* 论坛页去掉 Astra 的留白与阴影。
   容器宽度统一交给 front.css 的「宽度阶梯」（1200→1360→1520→1680），
   这里不再单独写 1240——否则首页 1200、论坛页 1240，页头又是第三个数，
   三个左边缘互相对不齐。 */
.cottage-forum .site-content{padding-top:18px}
.cottage-forum .site-content .ast-container{padding-left:18px; padding-right:18px}
.cottage-forum.ast-separate-container .ast-article-post,
.cottage-forum.ast-separate-container .ast-separate-posts,
.cottage-forum .ast-separate-container #primary,
.cottage-forum #primary{padding:0 !important; background:transparent !important; border:0 !important; box-shadow:none !important}
.cottage-forum .entry-header{display:none}
.cottage-forum .ast-container > .entry-header{display:none}
/* 短代码页不要 Astra 的页面标题 */
.cottage-naked-title .entry-header,.cottage-naked-title .ast-single-entry-banner{display:none !important}

/* Astra 页脚在灰底上仍然保持白卡片观感 */
.site-footer{background:#fff; border-top:1px solid var(--f-line)}

/* ---------- 1. 页头：紧凑论坛导航 ---------- */
.site-header{
  background:#fff !important;
  backdrop-filter:none; -webkit-backdrop-filter:none;
  border-bottom:1px solid var(--f-line);
  box-shadow:0 1px 2px rgba(16,24,40,.04);
}
/* 页头容器跟正文容器用同一档宽度，logo 与内容左边缘才对得齐 */
.site-title a{font-size:19px; font-weight:700; letter-spacing:0}
.site-description{font-size:12px}
.main-header-menu > .menu-item > .menu-link{
  font-size:14.5px; font-weight:500; padding:6px 12px !important;
  border-radius:var(--r-md); color:var(--fg-2);
}
.main-header-menu > .menu-item > .menu-link:hover{background:var(--f-soft); color:var(--f-brand)}
.main-header-menu > .menu-item.current-menu-item > .menu-link,
.main-header-menu > .menu-item.current_page_item > .menu-link{
  background:var(--f-brand-l); color:var(--f-brand-d); font-weight:600;
}
/* 取消「最后一项=渐变主按钮」的落地页做法 */
.main-header-menu > .menu-item:last-child > .menu-link{
  background:transparent; color:var(--fg-2) !important; box-shadow:none; margin-left:0;
}
.main-header-menu > .menu-item:last-child > .menu-link:hover{background:var(--f-soft); color:var(--f-brand) !important; transform:none}

/* 页头右侧：登录 / 注册 / 用户
   注意：<li> 和 <a> 带同一批 class，所以视觉样式一律只作用于 > a */
.main-header-menu > .cottage-auth-item{
  display:flex !important; align-items:center; align-self:center;
  padding:0 !important; margin:0 !important; background:transparent !important;
  border:0 !important; box-shadow:none !important; height:auto !important; line-height:1 !important;
}
.main-header-menu > .cottage-auth-item > a{
  display:inline-flex; align-items:center; gap:7px; height:36px;
  padding:0 15px; border-radius:var(--r-md); font-size:14px; font-weight:500;
  line-height:1; text-decoration:none; transition:.15s; box-shadow:none;
}
.main-header-menu > .cottage-auth-login > a{
  border:1px solid var(--f-line); background:#fff; color:var(--fg-2) !important;
}
.main-header-menu > .cottage-auth-login > a:hover{
  border-color:var(--f-brand); color:var(--f-brand) !important; background:var(--f-brand-l);
}
.main-header-menu > .cottage-auth-register > a{
  margin-left:8px; background:var(--f-brand); border:1px solid var(--f-brand);
  color:#fff !important; font-weight:600;
}
.main-header-menu > .cottage-auth-register > a:hover{background:var(--f-brand-d); border-color:var(--f-brand-d); color:#fff !important}
.main-header-menu > .cottage-auth-user > a{padding:0 10px 0 4px; border:1px solid transparent}
.main-header-menu > .cottage-auth-user > a:hover{background:var(--f-soft); border-color:var(--f-line)}
.main-header-menu .cottage-auth-user img{
  width:28px; height:28px; border-radius:50%; display:block; border:1px solid var(--f-line);
}
.main-header-menu .cottage-auth-user .nm{font-weight:600; color:var(--fg); font-size:14px}
.main-header-menu .cottage-auth-user .lv{
  font-size:11px; color:var(--f-brand); background:var(--f-brand-l);
  padding:1px 6px; border-radius:3px; font-weight:500;
}
.main-header-menu .cottage-auth-user .caret{
  width:0; height:0; border-left:4px solid transparent; border-right:4px solid transparent;
  border-top:5px solid var(--fg-3); margin-left:2px;
}
.main-header-menu .sub-menu .cottage-auth-sub > a{font-size:14px; padding:7px 14px}
.ast-header-search .ast-search-menu-icon .search-field{border-radius:var(--r-md) !important}

/* 顶栏常驻「发新帖」（cottage-front.php 挂在 astra_header_search 钩子上）。
   桌面顶栏和手机顶栏各渲染一份，落在搜索图标左边：
   页头是 sticky 的，所以它永远在眼前，不会被输入法挡到右下角去。 */
.cottage-nav-new{
  display:inline-flex; align-items:center; gap:6px; flex:0 0 auto;
  height:36px; padding:0 16px; margin-right:12px;
  background:var(--f-brand); border:1px solid var(--f-brand); border-radius:var(--r-md);
  color:#fff !important; font-size:14px; font-weight:600; line-height:1;
  text-decoration:none; box-shadow:none; transition:.15s; white-space:nowrap;
}
.cottage-nav-new:hover{background:var(--f-brand-d); border-color:var(--f-brand-d); color:#fff !important}
.cottage-nav-new svg{flex:0 0 auto}
@media (max-width:600px){
  .cottage-nav-new{height:34px; padding:0 12px; margin-right:8px; font-size:13.5px}
  .cottage-nav-new .t{display:none}   /* 极窄屏只留图标，别把搜索/菜单挤走 */
}
@media print{.cottage-nav-new{display:none}}

/* 移动端抽屉 */
.ast-mobile-popup-drawer .menu-link{font-size:15px}
.ast-mobile-popup-drawer .cottage-auth-register{display:block; text-align:center; margin:8px 0 0 !important}

/* ---------- 2. 两栏骨架 ---------- */
.fw-wrap{
  display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:18px; align-items:start;
  /* Astra 的 .ast-container 是 flex，.fw-wrap 作为它的子项会被压成「内容宽」
     （漂流瓶只有几封信时右边就空出一大块）。这里让它撑满。 */
  flex:1 1 auto; width:100%; min-width:0;
}
/* 超宽屏右栏跟着宽一点，主列不至于被拉成一行一屏 */
@media (min-width:1800px){
  .fw-wrap{grid-template-columns:minmax(0,1fr) 340px; gap:22px}
}
.fw-main{min-width:0}
.fw-side{position:sticky; top:76px}
body.admin-bar .fw-side{top:108px}

/* 面包屑 */
.f-crumb{font-size:13px; color:var(--fg-3); margin-bottom:12px; display:flex; align-items:center; gap:6px; flex-wrap:wrap}
.f-crumb a{color:var(--fg-3)}
.f-crumb a:hover{color:var(--f-brand)}
.f-crumb .sep{color:#c9ced6}
.f-crumb .cur{color:var(--fg-2)}

/* 提示条 */
.f-alert{
  border-radius:var(--r-md); padding:9px 14px; font-size:14px; margin-bottom:14px;
  border:1px solid; display:flex; align-items:center; gap:8px;
}
.f-alert-err{background:#fff1f0; border-color:#ffd6d3; color:#c92a2a}
.f-alert-ok{background:#f0fdf4; border-color:#c6f0d3; color:#0f7b3f}
.f-alert::before{font-size:15px}
.f-alert-err::before{content:"⚠"}
.f-alert-ok::before{content:"✓"}

/* ---------- 3. 区块标题 ---------- */
.f-sec-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  margin:20px 0 10px; padding-bottom:8px; border-bottom:2px solid var(--f-line);
}
.f-sec-head h2{font-size:16px; margin:0; font-weight:600; position:relative; padding-left:11px}
.f-sec-head h2::before{
  content:""; position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:3px; height:15px; background:var(--f-brand); border-radius:2px;
}
.f-sec-sub,.f-sec-more{font-size:13px; color:var(--fg-3)}
.f-sec-more:hover{color:var(--f-brand)}

/* ---------- 4. 顶部小横幅（不做大地毯式 Hero） ---------- */
.f-hero{
  background:#fff; border:1px solid var(--f-line); border-radius:var(--r-lg);
  padding:16px 18px; display:flex; align-items:center; justify-content:space-between;
  gap:16px; flex-wrap:wrap;
}
.f-hero h1{font-size:20px; margin:0 0 4px}
.f-hero p{font-size:13.5px; color:var(--fg-3); margin:0; max-width:640px}
.f-hero-acts{display:flex; gap:8px; flex-wrap:wrap}
.f-board-title{display:flex; align-items:center; gap:12px}
.f-board-ic{
  width:44px; height:44px; flex:0 0 44px; display:grid; place-items:center;
  font-size:21px; background:var(--f-brand-l); border-radius:var(--r-lg);
}

/* ---------- 5. 按钮 ---------- */
.f-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  height:34px; padding:0 15px; font-size:14px; font-weight:500; line-height:1;
  border:1px solid var(--f-line); border-radius:var(--r-md);
  background:#fff; color:var(--fg-2); cursor:pointer; transition:.15s;
  white-space:nowrap; text-decoration:none;
}
.f-btn:hover{border-color:#c3cad6; color:var(--fg); background:#fcfcfd}
.f-btn-primary{background:var(--f-brand); border-color:var(--f-brand); color:#fff !important; font-weight:600}
.f-btn-primary:hover{background:var(--f-brand-d); border-color:var(--f-brand-d); color:#fff}
.f-btn-lg{height:38px; padding:0 20px; font-size:14.5px}
.f-btn-block{width:100%}
.f-mini{
  height:24px; padding:0 9px; font-size:12px; border-radius:var(--r-sm);
  border:1px solid var(--f-line); background:#fff; color:var(--fg-3);
  cursor:pointer; display:inline-flex; align-items:center; gap:4px; transition:.15s;
}
.f-mini:hover{border-color:var(--f-brand); color:var(--f-brand)}
.f-mini.on{background:var(--f-brand-l); border-color:#bfdbfe; color:var(--f-brand-d)}

/* ---------- 6. 板块列表 ---------- */
.board-list{background:#fff; border:1px solid var(--f-line); border-radius:var(--r-lg); overflow:hidden}
.board-row{
  display:grid; grid-template-columns:48px minmax(0,1fr) 74px 74px 220px;
  align-items:center; gap:14px; padding:14px 18px;
  border-bottom:1px solid var(--f-line2); transition:.15s;
}
.board-row:last-child{border-bottom:0}
.board-row:hover{background:#fafbfc}
.board-ic{
  width:44px; height:44px; border-radius:var(--r-lg); background:var(--f-soft);
  display:grid; place-items:center; font-size:20px;
}
.board-info{min-width:0}
.board-name{font-size:15.5px; font-weight:600; color:var(--fg)}
.board-name:hover{color:var(--f-brand)}
.board-info p{font-size:13px; color:var(--fg-3); margin:3px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.board-num{text-align:center}
.board-num b{display:block; font-size:15px; font-weight:600; color:var(--fg-2); line-height:1.3}
.board-num span{font-size:12px; color:var(--fg-3)}
.board-last{min-width:0; border-left:1px solid var(--f-line2); padding-left:16px}
.board-last a{display:block; font-size:13.5px; color:var(--fg-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.board-last a:hover{color:var(--f-brand)}
.board-last span{font-size:12px; color:var(--fg-3)}
.muted{color:var(--fg-3)}

/* ---------- 7. 帖子列表 ---------- */
.topic-list{background:#fff; border:1px solid var(--f-line); border-radius:var(--r-lg); overflow:hidden}
.tl-head{
  display:grid; grid-template-columns:minmax(0,1fr) 150px 170px; gap:14px;
  padding:10px 18px 10px 70px; background:var(--f-soft);
  border-bottom:1px solid var(--f-line); font-size:12.5px; color:var(--fg-3); font-weight:500;
}
.tl-head .c-cnt{text-align:center}
.tl-head .c-last{text-align:left}
.tl-row{
  display:grid; grid-template-columns:40px minmax(0,1fr) 150px 170px;
  align-items:center; gap:14px; padding:12px 18px;
  border-bottom:1px solid var(--f-line2); transition:.15s;
}
.tl-row:last-child{border-bottom:0}
.tl-row:hover{background:#fafbfc}
.tl-row.is-pinned{background:#fffdf5}
.tl-row.is-pinned:hover{background:#fffbea}
.tl-av img{width:40px; height:40px; border-radius:50%; display:block; border:1px solid var(--f-line)}
.tl-main{min-width:0}
.tl-title{
  display:block; font-size:15px; font-weight:500; color:var(--fg);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.tl-title:hover{color:var(--f-brand)}
.tl-sub{font-size:12.5px; color:var(--fg-3); margin-top:4px; display:flex; align-items:center; gap:6px; flex-wrap:wrap}
.tl-sub a{color:var(--fg-3)}
.tl-sub a:hover{color:var(--f-brand)}
.tl-sub .dot{color:#c9ced6}
.tl-board{background:var(--f-soft); border:1px solid var(--f-line); border-radius:3px; padding:0 6px; font-size:11.5px}
.tl-cnt{display:flex; align-items:center; justify-content:center; gap:5px; font-size:12px; color:var(--fg-3)}
.tl-cnt b{
  font-size:12.5px; font-weight:600; color:var(--f-brand);
  background:var(--f-brand-l); border-radius:3px; padding:1px 7px; min-width:26px; text-align:center;
}
.tl-cnt b + span{margin-right:6px}
.tl-last{font-size:12.5px; min-width:0; border-left:1px solid var(--f-line2); padding-left:16px}
.tl-last a{display:block; color:var(--fg-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.tl-last a:hover{color:var(--f-brand)}
.tl-last span{color:var(--fg-3)}
.tag{
  font-style:normal; font-size:11px; font-weight:600; border-radius:3px;
  padding:1px 5px; margin-right:5px; vertical-align:1px;
}
.tag-pin{background:#fff3e0; color:#c96a00; border:1px solid #ffe0b2}
.tag-best{background:#fff0f0; color:#d32f2f; border:1px solid #ffd6d6}
.tag-lock{background:#f1f3f5; color:#6b7280; border:1px solid #e3e6ea}

/* ---------- 8. 分页 ---------- */
.f-pager{display:flex; justify-content:center; gap:5px; margin:18px 0; flex-wrap:wrap}
.f-pager .page-numbers{
  min-width:32px; height:32px; padding:0 10px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--f-line); border-radius:var(--r-md); background:#fff;
  font-size:13.5px; color:var(--fg-2); text-decoration:none;
}
.f-pager .page-numbers:hover{border-color:var(--f-brand); color:var(--f-brand)}
.f-pager .page-numbers.current{background:var(--f-brand); border-color:var(--f-brand); color:#fff; font-weight:600}
.f-pager .dots{border:0; background:transparent; color:var(--fg-3)}

/* ---------- 9. 侧栏卡片 ---------- */
.f-card{
  background:#fff; border:1px solid var(--f-line); border-radius:var(--r-lg);
  padding:14px 16px; margin-bottom:14px;
}
.f-card h3{
  font-size:14px; margin:0 0 10px; padding-bottom:8px;
  border-bottom:1px solid var(--f-line2); font-weight:600;
}
.f-card h3:last-child{margin-bottom:0}
.f-stats{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:8px}
.f-stats li{display:flex; align-items:baseline; justify-content:space-between; font-size:13px; color:var(--fg-3); background:var(--f-soft); border-radius:var(--r-md); padding:7px 10px}
.f-stats li b{font-size:15px; color:var(--f-brand); font-weight:600}
.f-newest{font-size:12.5px; color:var(--fg-3); margin:10px 0 0}
.f-boardnav{list-style:none; margin:0; padding:0}
.f-boardnav li + li{border-top:1px solid var(--f-line2)}
.f-boardnav a{display:flex; align-items:center; justify-content:space-between; padding:6px 0; font-size:13.5px; color:var(--fg-2)}
.f-boardnav a:hover{color:var(--f-brand)}
.f-boardnav b{font-size:12px; color:var(--fg-3); font-weight:500; background:var(--f-soft); border-radius:3px; padding:0 6px}
.f-hotlist,.f-replylist,.f-actives{list-style:none; margin:0; padding:0}
.f-hotlist li{display:flex; align-items:center; gap:7px; padding:5px 0; font-size:13.5px; min-width:0}
.f-hotlist .rk{
  flex:0 0 17px; height:17px; border-radius:3px; background:#eef0f3; color:var(--fg-3);
  font-size:11px; font-weight:700; display:grid; place-items:center;
}
.f-hotlist .rk-1{background:#e5484d; color:#fff}
.f-hotlist .rk-2{background:#f76808; color:#fff}
.f-hotlist .rk-3{background:#e8930c; color:#fff}
.f-hotlist a{flex:1; min-width:0; color:var(--fg-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.f-hotlist a:hover{color:var(--f-brand)}
.f-hotlist .vv{font-size:11.5px; color:var(--fg-3); flex:0 0 auto}
.f-replylist li{display:flex; gap:8px; padding:6px 0; align-items:flex-start}
.f-replylist li + li{border-top:1px solid var(--f-line2)}
.f-replylist img{width:24px; height:24px; border-radius:50%; flex:0 0 24px; margin-top:2px}
.f-replylist div{min-width:0}
.f-replylist .ttl{display:block; font-size:13px; color:var(--fg-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.f-replylist .ttl:hover{color:var(--f-brand)}
.f-replylist .sub{font-size:11.5px; color:var(--fg-3)}
.f-actives li + li{border-top:1px solid var(--f-line2)}
.f-actives a{display:flex; align-items:center; gap:8px; padding:6px 0; font-size:13.5px; color:var(--fg-2)}
.f-actives a:hover{color:var(--f-brand)}
.f-actives img{width:28px; height:28px; border-radius:50%; flex:0 0 28px}
.f-actives .nm{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

/* 当前用户卡片 */
.f-me{display:grid; grid-template-columns:48px minmax(0,1fr); gap:12px; align-items:center}
.f-me img{width:48px; height:48px; border-radius:50%; grid-row:span 2}
.f-me .who{display:flex; align-items:center; gap:7px; flex-wrap:wrap; min-width:0}
.f-me .who a{font-size:15px; font-weight:600; color:var(--fg)}
.f-me .f-me-acts{grid-column:1 / -1; display:flex; gap:8px; margin-top:2px}
.f-me .f-me-acts .f-btn{flex:1}
.f-join p{font-size:13px; color:var(--fg-3); margin:0 0 10px}
.f-join .f-me-acts{display:flex; gap:8px}
.f-join .f-me-acts .f-btn{flex:1}

/* 等级徽章 */
.f-level{font-size:11px; font-weight:600; border-radius:3px; padding:1px 6px; white-space:nowrap}
.lv-0{background:#f1f3f5; color:#868e96}
.lv-1{background:#eef4ff; color:#2563eb}
.lv-2{background:#e8f7ee; color:#12a150}
.lv-3{background:#fff4e6; color:#c96a00}
.lv-4{background:#f3ecff; color:#7048e8}
.lv-5{background:#ffe8e8; color:#e5484d}

/* ---------- 10. 帖子页 / 楼层 ---------- */
.f-topic{background:#fff; border:1px solid var(--f-line); border-radius:var(--r-lg) var(--r-lg) 0 0; padding:16px 20px; border-bottom:0}
.f-topic-title{font-size:20px; margin:0 0 8px; line-height:1.4}
.f-topic-meta{display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--fg-3); flex-wrap:wrap}
.f-topic-meta .dot{color:#c9ced6}
.f-chip{background:var(--f-brand-l); color:var(--f-brand-d); border-radius:3px; padding:1px 7px; font-size:12px; font-weight:500}
.f-chip-warn{background:#fff3e0; color:#c96a00}

.floor{
  display:grid; grid-template-columns:150px minmax(0,1fr);
  background:#fff; border:1px solid var(--f-line); border-bottom:0;
}
.floor:last-of-type{border-bottom:1px solid var(--f-line); border-radius:0 0 var(--r-lg) var(--r-lg)}
.floor-op{border-radius:0}
.floor-side{
  padding:16px 12px; border-right:1px solid var(--f-line2); background:#fcfcfd;
  display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center;
}
.floor-side img{width:64px; height:64px; border-radius:50%; border:1px solid var(--f-line); background:#fff}
.floor-side .fname{font-size:14px; font-weight:600; color:var(--fg); line-height:1.3}
.floor-side .fname:hover{color:var(--f-brand)}
.floor-side .f-postsn{font-size:11.5px; color:var(--fg-3)}
.floor-body{min-width:0; display:flex; flex-direction:column}
.floor-bar{
  display:flex; align-items:center; gap:10px; padding:8px 16px;
  background:var(--f-soft); border-bottom:1px solid var(--f-line2);
  font-size:12px; color:var(--fg-3);
}
.floor-no{font-weight:600; color:var(--fg-2)}
.floor-acts{margin-left:auto; display:flex; gap:6px}
.floor-content{padding:14px 18px; flex:1; font-size:15px; line-height:1.85; color:var(--fg-2); overflow-wrap:break-word}
.floor-content > *:first-child{margin-top:0}
.floor-content > *:last-child{margin-bottom:0}
.floor-content p{margin:0 0 12px}
.floor-content img{max-width:100%; height:auto; border-radius:var(--r-md)}
/* front.css 里 .entry-content pre 带了 !important，这里必须压过去 */
.floor-content pre,.entry-content pre{
  background:#1f2329 !important; color:#e6e8eb !important; border:1px solid #1f2329 !important;
  padding:12px 14px; border-radius:var(--r-md);
  overflow:auto; font-size:13px; line-height:1.7; font-family:var(--mono,monospace);
}
.floor-content code,.entry-content code{background:#f1f3f5; padding:1px 5px; border-radius:3px; font-size:13px; font-family:var(--mono,monospace)}
.floor-content pre code,.entry-content pre code{background:transparent !important; color:#e6e8eb !important; padding:0; border:0}
.floor-content blockquote{
  margin:0 0 12px; padding:8px 14px; border-left:3px solid var(--f-line);
  background:var(--f-soft); color:var(--fg-3); border-radius:0 var(--r-md) var(--r-md) 0;
}
.floor-content a{text-decoration:underline; text-underline-offset:2px}
.floor-content ul,.floor-content ol{margin:0 0 12px; padding-left:22px}
/* 帖子正文里的表格（长文里放对照表用）：不写的话就是一张无边框的裸表 */
.floor-content table,.entry-content table{
  border-collapse:collapse; width:100%; margin:14px 0; font-size:13.5px; background:#fff;
}
.floor-content th,.floor-content td,.entry-content th,.entry-content td{
  border:1px solid var(--f-line); padding:8px 11px; text-align:left; vertical-align:top;
}
.floor-content thead th,.entry-content thead th{background:var(--f-soft); font-weight:600; color:var(--fg)}
.floor-content tbody tr:nth-child(even),.entry-content tbody tr:nth-child(even){background:var(--bg-soft)}

/* ---------- 前台编辑器：WP 自带的 TinyMCE，融进站内样式 ---------- */
.mce-tinymce{border-radius:var(--r-md) !important; box-shadow:none !important}
/* 「添加媒体」按钮（正文里插图用）：跟站内按钮一个样子 */
.wp-media-buttons{display:flex; align-items:center; gap:8px; margin:10px 0 2px}
.wp-media-buttons .insert-media.button{
  display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 14px;
  font:inherit; font-size:13.5px; font-weight:500; color:var(--fg-2) !important;
  background:#fff; border:1px solid var(--f-line); border-radius:var(--r-md);
  box-shadow:none; cursor:pointer; text-decoration:none;
}
.wp-media-buttons .insert-media.button:hover{border-color:var(--f-brand); color:var(--f-brand) !important}
.wp-media-buttons .insert-media.button:before{font-size:14px}
/* 正文里插入的图片：跟着正文宽度走，圆角 */
.floor-content img,.entry-content img,.mce-content-body img{max-width:100%; height:auto}
/* 写文章那页：编辑器在 .editor 卡片里，去掉它自己的外框，免得框里套框 */
.editor .mce-tinymce{border:0 !important}
.editor .mce-toolbar-grp{background:var(--f-soft) !important; border:0 !important;
  border-bottom:1px solid var(--stroke) !important; padding:4px 6px !important}
.editor .mce-edit-area{border:1px solid var(--stroke) !important; border-top:0 !important;
  border-radius:0 0 var(--r-md) var(--r-md) !important}
/* 发帖 / 回复框：编辑器单独出现，给它一个和站内一致的边框 */
.f-form .mce-tinymce,.f-reply .mce-tinymce{border:1px solid var(--stroke) !important}
.f-form .mce-toolbar-grp,.f-reply .mce-toolbar-grp{background:var(--f-soft) !important; border:0 !important;
  border-bottom:1px solid var(--stroke) !important; padding:4px 6px !important}
/* 工具栏按钮：别被 Astra 的全局按钮样式带偏 */
.mce-toolbar .mce-btn{border:0 !important; background:transparent !important; box-shadow:none !important;
  border-radius:6px !important; margin:0 1px !important}
.mce-toolbar .mce-btn:hover,.mce-toolbar .mce-btn:focus{background:#e8ebf2 !important}
.mce-toolbar .mce-btn button{padding:4px 6px !important; line-height:1 !important}
.mce-toolbar .mce-btn i{font-style:normal}
.mce-statusbar{border-top:1px solid var(--stroke) !important; background:transparent !important}
.mce-statusbar .mce-path-item{font-size:12px}
/* 编辑区里的字，跟前台一致（TinyMCE 的 content_style 已设，这里兜一层） */
.mce-edit-area iframe{background:#fff !important}

/* 回复框 */
.f-reply{margin-top:18px}
.f-reply-title{font-size:15px; margin:0 0 12px}
.f-locked{text-align:center; color:var(--fg-3); font-size:14px}
.f-locked p{margin:0 0 12px}
.f-locked .f-me-acts{display:flex; gap:8px; justify-content:center}
.f-form{margin:0}
.f-field{display:block; margin-bottom:14px}
.f-field > span{display:block; font-size:13.5px; font-weight:500; color:var(--fg-2); margin-bottom:6px}
.f-field > span em{font-style:normal; font-weight:400; color:var(--fg-3); font-size:12.5px; margin-left:7px}
.f-field input[type=text],.f-field input[type=email],.f-field input[type=password],
.f-field textarea,.f-field select{
  width:100%; border:1px solid var(--f-line); border-radius:var(--r-md);
  padding:9px 12px; font-size:14.5px; line-height:1.6; color:var(--fg); background:#fff;
  font-family:inherit; transition:.15s; box-sizing:border-box;
}
.f-field textarea{resize:vertical; min-height:120px}
.f-field input:focus,.f-field textarea:focus,.f-field select:focus{
  outline:0; border-color:var(--f-brand); box-shadow:0 0 0 3px rgba(37,99,235,.10);
}
.f-form-acts{display:flex; align-items:center; gap:12px; flex-wrap:wrap}
.f-fine{font-size:12.5px; color:var(--fg-3); margin:10px 0 0}
.f-h1{font-size:19px; margin:0 0 16px; padding-bottom:12px; border-bottom:1px solid var(--f-line2)}

/* ---------- 11. 会员 / 个人主页 ---------- */
.member-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px}
.member-card{
  background:#fff; border:1px solid var(--f-line); border-radius:var(--r-lg);
  padding:18px 12px; text-align:center; transition:.15s; display:block;
}
.member-card:hover{border-color:#bfdbfe; box-shadow:var(--shadow-sm); transform:translateY(-1px)}
.member-card img{width:56px; height:56px; border-radius:50%; border:1px solid var(--f-line); margin-bottom:9px}
.member-card .nm{font-size:14.5px; font-weight:600; color:var(--fg); margin-bottom:6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.member-card .sub{font-size:11.5px; color:var(--fg-3); margin-top:7px}

.f-profile{
  background:#fff; border:1px solid var(--f-line); border-radius:var(--r-lg);
  padding:20px; display:flex; gap:18px; align-items:flex-start;
}
.f-profile > img{width:96px; height:96px; border-radius:50%; border:1px solid var(--f-line); flex:0 0 96px}
.f-profile-main{min-width:0}
.f-profile-main h1{font-size:20px; margin:0 0 8px; display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.f-profile .bio{font-size:13.5px; color:var(--fg-2); margin:0 0 12px}
.f-profile-stats{display:flex; gap:22px; flex-wrap:wrap}
.f-profile-stats span{font-size:12.5px; color:var(--fg-3)}
.f-profile-stats b{display:block; font-size:16px; color:var(--fg); font-weight:600}

.f-replyfeed{list-style:none; margin:0; padding:0; background:#fff; border:1px solid var(--f-line); border-radius:var(--r-lg); overflow:hidden}
.f-replyfeed li{padding:12px 16px; border-bottom:1px solid var(--f-line2)}
.f-replyfeed li:last-child{border-bottom:0}
.f-replyfeed .hd{display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:4px}
.f-replyfeed .hd a{font-size:14px; font-weight:500; color:var(--fg-2)}
.f-replyfeed .hd a:hover{color:var(--f-brand)}
.f-replyfeed .hd span{font-size:12px; color:var(--fg-3); flex:0 0 auto}
.f-replyfeed .bd{font-size:13.5px; color:var(--fg-3); line-height:1.7}

/* 认证页窄卡片 */
.f-narrow{max-width:440px; margin:0 auto}

/* 登录 / 注册页：单列居中，不带侧栏 —— 站外唯一能看到的界面，不能漏站内内容 */
.f-auth-shell{max-width:470px; margin:40px auto 60px}
.f-auth-shell .f-card{padding:30px 28px}
.f-auth-shell .f-auth h1{font-size:22px; margin:0 0 6px}
.f-auth h1{font-size:21px; margin:0 0 6px}
.f-auth .lead{font-size:13.5px; color:var(--fg-3); margin:0 0 18px; line-height:1.7}

/* ---------- 12. 文章卡片 / 相关 ---------- */
.f-postgrid{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px}
.f-postcard{
  background:#fff; border:1px solid var(--f-line); border-radius:var(--r-lg);
  padding:14px 16px; transition:.15s; display:block;
}
.f-postcard:hover{border-color:#bfdbfe; box-shadow:var(--shadow-sm)}
.f-postcard h3{font-size:15px; margin:0 0 7px; color:var(--fg); line-height:1.45}
.f-postcard p{font-size:13px; color:var(--fg-3); margin:0 0 10px; line-height:1.65}
.f-postcard .meta{font-size:12px; color:var(--fg-3)}
.f-related{display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:10px}
.f-related a{
  background:#fff; border:1px solid var(--f-line); border-radius:var(--r-lg);
  padding:11px 14px; display:block; transition:.15s;
}
.f-related a:hover{border-color:#bfdbfe}
.f-related .ttl{display:block; font-size:14px; color:var(--fg); margin-bottom:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.f-related .sub{font-size:12px; color:var(--fg-3)}

/* ---------- 13. 空状态 ---------- */
.f-empty{background:#fff; border:1px solid var(--f-line); border-radius:var(--r-lg); padding:48px 20px; text-align:center; color:var(--fg-3)}
.f-empty .ic{font-size:34px; margin-bottom:10px; opacity:.75}
.f-empty p{font-size:14px; margin:0 0 14px}

/* ---------- 14. 文章页 / 归档页沿用论坛观感 ---------- */
.ast-separate-container .ast-article-post,.ast-separate-container .ast-article-single{
  border:1px solid var(--f-line); border-radius:var(--r-lg); box-shadow:none;
}
.entry-title{font-size:22px}
.entry-content{font-size:15.5px; line-height:1.85; color:var(--fg-2)}
.entry-content h2{font-size:18px; margin:26px 0 10px; padding-left:10px; border-left:3px solid var(--f-brand)}
.entry-content h3{font-size:16px; margin:20px 0 8px}
.cottage-actions{border-color:var(--f-line) !important}
.comment-list .comment{border:1px solid var(--f-line); border-radius:var(--r-lg); padding:14px 16px; margin-bottom:10px; background:#fff}
.comment-form input,.comment-form textarea{border:1px solid var(--f-line) !important; border-radius:var(--r-md) !important}

/* ---------- 15. 响应式 ---------- */
@media (max-width:1100px){
  .fw-wrap{grid-template-columns:minmax(0,1fr)}
  .fw-side{position:static; margin-top:18px}
  .board-row{grid-template-columns:44px minmax(0,1fr) 64px 64px; gap:12px}
  .board-last{display:none}
}
@media (max-width:860px){
  .tl-head{display:none}
  .tl-row{grid-template-columns:34px minmax(0,1fr); gap:10px; padding:11px 14px}
  .tl-av img{width:34px; height:34px}
  .tl-last{grid-column:2; border-left:0; padding-left:0; margin-top:5px; display:flex; gap:8px; align-items:center}
  .tl-cnt{grid-column:2; justify-content:flex-start}
  .board-row{grid-template-columns:40px minmax(0,1fr) 58px; padding:12px 14px}
  .board-num:nth-of-type(4){display:none}
  .floor{grid-template-columns:minmax(0,1fr)}
  .floor-side{
    flex-direction:row; align-items:center; justify-content:flex-start; text-align:left;
    gap:9px; border-right:0; border-bottom:1px solid var(--f-line2); padding:10px 14px;
  }
  .floor-side img{width:38px; height:38px}
  .floor-side .f-postsn{display:none}
  .f-profile{flex-direction:column; align-items:center; text-align:center}
  .f-profile-main h1{justify-content:center}
  .f-profile-stats{justify-content:center; gap:18px}
  .f-topic-title{font-size:18px}
  .f-hero{padding:14px}
  .f-hero h1{font-size:18px}
}
@media (max-width:600px){
  .fw-wrap{gap:14px}
  .cottage-forum .site-content .ast-container{padding-left:12px; padding-right:12px}
  .f-stats{grid-template-columns:1fr 1fr}
  .member-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
  .f-postgrid{grid-template-columns:1fr}
  .f-pager .page-numbers{min-width:29px; height:29px; font-size:13px}
}

/* =========================================================
 * 16. 首页门户（替代原来的渐变落地页）
 * ========================================================= */
.f-welcome{
  background:#fff; border:1px solid var(--f-line); border-radius:var(--r-lg);
  padding:22px 24px; display:flex; align-items:center; justify-content:space-between;
  gap:24px; flex-wrap:wrap; position:relative; overflow:hidden;
}
.f-welcome::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--f-brand);
}
.f-welcome-txt{min-width:0}
.f-welcome h1{font-size:23px; margin:0 0 7px}
.f-welcome p{font-size:14px; color:var(--fg-3); margin:0 0 14px; max-width:620px; line-height:1.7}
.f-welcome-stats{display:flex; gap:26px; flex-wrap:wrap}
.f-welcome-stats span{font-size:12.5px; color:var(--fg-3)}
.f-welcome-stats b{display:block; font-size:19px; color:var(--f-brand); font-weight:600; line-height:1.3}
.f-welcome-acts{display:flex; gap:8px; flex-wrap:wrap}

.f-boardchips{
  /* 168 而不是 190：1920 宽时 6 个板块正好排一行（不换行、不折字，实测过） */
  display:grid; grid-template-columns:repeat(auto-fit,minmax(168px,1fr));
  gap:10px; margin-top:14px;
}
.f-boardchip{
  display:flex; align-items:center; gap:11px; padding:12px 14px;
  background:#fff; border:1px solid var(--f-line); border-radius:var(--r-lg); transition:.15s;
}
.f-boardchip:hover{border-color:#bfdbfe; background:#fafbff}
.f-boardchip .ic{
  width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center;
  background:var(--f-brand-l); color:var(--f-brand); border-radius:var(--r-lg);
}
.f-boardchip .tx{min-width:0}
.f-boardchip .tx b{display:block; font-size:14.5px; color:var(--fg); font-weight:600}
.f-boardchip .tx em{font-style:normal; font-size:12px; color:var(--fg-3)}

/* 板块 SVG 图标 */
.bi{display:inline-block; vertical-align:middle; width:20px; height:20px}
.board-ic{color:var(--f-brand)}
.f-board-ic{color:var(--f-brand)}
.f-boardnav .bn{display:inline-flex; align-items:center; gap:7px}
.f-boardnav .bn .bi{width:15px; height:15px; color:var(--f-brand); flex:0 0 15px}
.f-chip .bi{width:13px; height:13px; margin-right:4px; vertical-align:-1px}
.tl-sub .bi{width:12px; height:12px; margin-right:3px; vertical-align:-2px}


/* 页头用户下拉菜单 */
.main-header-menu > .cottage-auth-user > .sub-menu{
  min-width:150px; padding:6px; border:1px solid var(--f-line); border-radius:var(--r-lg);
  box-shadow:0 8px 24px -10px rgba(16,24,40,.22); background:#fff;
}
.main-header-menu > .cottage-auth-user > .sub-menu > li > a{
  display:block; padding:8px 12px; border-radius:var(--r-md); font-size:13.5px;
  color:var(--fg-2); white-space:nowrap;
}
.main-header-menu > .cottage-auth-user > .sub-menu > li > a:hover{background:var(--f-soft); color:var(--f-brand)}
.main-header-menu > .cottage-auth-user > .sub-menu > li:last-child > a{color:var(--f-red)}
.main-header-menu > .cottage-auth-user > .sub-menu > li:last-child > a:hover{background:#fff1f0; color:var(--f-red)}


/* 危险按钮（删除） */
.f-btn-danger{color:var(--f-red) !important; border-color:#ffd6d3; background:#fff}
.f-btn-danger:hover{background:#fff1f0; border-color:var(--f-red); color:var(--f-red) !important}


/* =========================================================
 * 17. 链接下划线：界面上全部去掉
 *     front.css 里 .entry-content a{text-decoration:underline} 是给文章正文写的，
 *     但论坛的整套界面也在 .entry-content 里，于是按钮、帖子标题、板块名、
 *     侧栏链接全被划了线。这里统一清掉：界面元素永不划线，
 *     只有正文（帖子楼层 / 单篇文章）里的链接在悬停时才划线。
 * ========================================================= */
.entry-content a,
.floor-content a{ text-decoration:none; }

.f-btn,.f-btn:hover,.f-btn:focus,
.f-mini,.f-mini:hover,
.tl-title,.tl-title:hover,.tl-title:focus,
.board-name,.board-name:hover,
.f-sec-more,.f-sec-more:hover,
.f-crumb a,.f-crumb a:hover,
.f-boardnav a,.f-boardnav a:hover,
.f-hotlist a,.f-hotlist a:hover,
.f-replylist a,.f-replylist a:hover,
.f-actives a,.f-actives a:hover,
.f-postcard,.f-postcard:hover,.f-postcard *,
.member-card,.member-card:hover,.member-card *,
.f-boardchip,.f-boardchip:hover,.f-boardchip *,
.f-related a,.f-related a:hover,.f-related a *,
.f-replyfeed .hd a,.f-replyfeed .hd a:hover,
.f-profile a,.f-profile a:hover,
.f-pager .page-numbers,
.fw-side a,.fw-side a:hover,
.f-card a,.f-card a:hover,
.f-form a,.f-form a:hover,
.f-alert a,.f-alert a:hover,
.f-me .who a,.f-me .who a:hover,
.ast-builder-menu a,.main-header-menu a,.main-header-menu a:hover,
.site-footer a,.site-footer a:hover,
.ast-footer-copyright a,.ast-footer-copyright a:hover,
.cottage-footer a,.cottage-footer a:hover,
.cottage-actions .act,.cottage-actions .act:hover{
  text-decoration:none !important;
}

/* 正文里的链接：静止不划线，悬停才出现 */
.floor-content a:hover,.floor-content a:focus,
.single-post .entry-content a:hover,.single-post .entry-content a:focus{
  text-decoration:underline !important; text-underline-offset:2px;
}
.floor-content a,.single-post .entry-content a{ text-underline-offset:2px; }


/* =========================================================
 * 18. 压住 Astra 的「内容链接加下划线」
 *     Astra 默认开了 underline-content-links，生成的是
 *       .ast-single-post .entry-content a{text-decoration:underline}
 *     权重 (0,2,1)，比 .entry-content a (0,1,1) 高，所以第 17 节压不住它。
 *     已经从设置里关掉了这个开关，下面这段是保险（万一以后又被打开）。
 * ========================================================= */
.ast-single-post .entry-content a,
.ast-single-post .entry-content a:focus,
.ast-single-post .entry-content a:visited{ text-decoration:none; }

/* 正文里（帖子楼层 / 单篇文章正文 / 留言）链接悬停才划线 */
.ast-single-post .entry-content .floor-content a:hover,
.ast-single-post .entry-content .floor-content a:focus,
.single-post.ast-single-post .entry-content p a:hover,
.single-post.ast-single-post .entry-content li a:hover,
.single-post.ast-single-post .entry-content blockquote a:hover,
.ast-single-post .entry-content .comment-content a:hover{
  text-decoration:underline; text-underline-offset:2px;
}


/* 用户下拉菜单：后台入口分组 + 退出登录标红 */
.main-header-menu > .cottage-auth-user > .sub-menu > li.cottage-auth-admin:first-of-type > a,
.main-header-menu > .cottage-auth-user > .sub-menu > li.cottage-auth-admin + .cottage-auth-admin > a{ border-top:1px solid var(--f-line2); }
.main-header-menu > .cottage-auth-user > .sub-menu > li.cottage-auth-admin > a{ color:var(--fg-3); }
.main-header-menu > .cottage-auth-user > .sub-menu > li.cottage-auth-admin:first-of-type > a{ margin-top:4px; padding-top:10px; }
.main-header-menu > .cottage-auth-user > .sub-menu > li.cottage-auth-out > a{ color:var(--f-red); }
.main-header-menu > .cottage-auth-user > .sub-menu > li.cottage-auth-out > a:hover{ background:#fff1f0; color:var(--f-red); }


/* =========================================================
 * 19. 资源库
 * ========================================================= */
.res-stats{display:flex; gap:24px; flex-wrap:wrap; margin-top:12px}
.res-stats span{font-size:12.5px; color:var(--fg-3)}
.res-stats b{display:block; font-size:18px; color:var(--f-brand); font-weight:600; line-height:1.3}

/* 搜索 / 排序条 */
.res-toolbar{display:flex; gap:8px; margin-top:14px; flex-wrap:wrap}
/* Astra 把 input / select 统一设成了 width:100%，这里必须显式收回来，
   否则每个控件各占一整行，工具栏会竖着堆起来 */
.res-toolbar input[type=search],.res-toolbar select{
  height:36px; width:auto; border:1px solid var(--f-line); border-radius:var(--r-md);
  padding:0 12px; font-size:14px; background:#fff; color:var(--fg); font-family:inherit;
}
.res-toolbar input[type=search]{flex:1 1 220px; min-width:180px}
.res-toolbar select{flex:0 0 auto; min-width:126px}
.res-toolbar input:focus,.res-toolbar select:focus{outline:0; border-color:var(--f-brand); box-shadow:0 0 0 3px rgba(37,99,235,.10)}

/* 分类筛选 */
.res-filter{display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 16px}
.res-filter a{
  display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 12px;
  border:1px solid var(--f-line); border-radius:var(--r-pill); background:#fff;
  font-size:13px; color:var(--fg-2);
}
.res-filter a:hover{border-color:#bfdbfe; color:var(--f-brand)}
.res-filter a.on{background:var(--f-brand); border-color:var(--f-brand); color:#fff; font-weight:600}
.res-filter a b{font-size:11.5px; font-weight:500; opacity:.7}

/* 列表 */
.res-list{display:flex; flex-direction:column; gap:8px}
.res-item{
  display:flex; align-items:center; gap:14px; padding:13px 16px;
  background:#fff; border:1px solid var(--f-line); border-radius:var(--r-lg); transition:.15s;
}
.res-item:hover{border-color:#bfdbfe; box-shadow:var(--shadow-sm); transform:translateY(-1px)}
.res-main{flex:1; min-width:0; display:block}
.res-title{display:block; font-size:15px; font-weight:600; color:var(--fg); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.res-item:hover .res-title{color:var(--f-brand)}
.res-desc{display:block; font-size:13px; color:var(--fg-3); margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.res-meta{display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:12.5px; color:var(--fg-3); margin-top:5px}
.res-meta a{color:var(--fg-3)}
.res-meta a:hover{color:var(--f-brand)}
.res-meta .dot{color:#c9ced6}
.res-chip{
  font-style:normal; background:var(--f-brand-l); color:var(--f-brand-d);
  border-radius:3px; padding:1px 7px; font-size:12px; font-weight:500;
}
.res-go{
  flex:0 0 auto; font-size:13px; color:var(--fg-3); border:1px solid var(--f-line);
  border-radius:var(--r-md); padding:5px 12px; background:#fff;
}
.res-item:hover .res-go{border-color:var(--f-brand); color:var(--f-brand)}

/* 文件类型图标 */
.res-ic{
  flex:0 0 46px; width:46px; height:46px; border-radius:var(--r-lg);
  display:grid; place-items:center; font-size:11px; font-weight:700; letter-spacing:.3px;
}
.res-ic-lg{flex:0 0 62px; width:62px; height:62px; font-size:13px; border-radius:var(--r-xl)}
.res-ic-arc{background:#fff4e6; color:#c96a00}
.res-ic-book{background:#eef4ff; color:#2563eb}
.res-ic-doc{background:#f1f3f5; color:#5b6472}
.res-ic-media{background:#f3ecff; color:#7048e8}
.res-ic-img{background:#e8f7ee; color:#12a150}

/* 详情页 */
.res-head{display:flex; gap:16px; align-items:flex-start; background:#fff; border:1px solid var(--f-line); border-radius:var(--r-lg); padding:18px 20px}
.res-head-main{min-width:0}
.res-head h1{font-size:20px; margin:0 0 8px; line-height:1.4}
.res-dl-card{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  background:#fff; border:1px solid var(--f-line); border-top:0;
  border-radius:0 0 var(--r-lg) var(--r-lg); padding:14px 20px; margin-bottom:14px;
}
.res-dl-btn{gap:8px}
.res-dl-info{display:flex; flex-direction:column; gap:4px; min-width:0}
.res-dl-acts{display:flex; align-items:center; gap:10px; flex:0 0 auto}
.res-dl-info .fname{font-size:13.5px; color:var(--fg-2); word-break:break-all}
.res-note{font-size:12.5px; color:var(--c-amber,#c96a00); background:#fff8e6; border:1px solid #ffe9bf; border-radius:var(--r-sm); padding:3px 8px; display:inline-block}
.res-body{background:transparent; border:0; padding:0}

/* 上传页 */
.res-upload{max-width:720px}
.res-lead{font-size:13.5px; color:var(--fg-3); margin:0 0 18px; line-height:1.7}
.res-drop{
  position:relative; border:2px dashed var(--f-line); border-radius:var(--r-lg);
  background:var(--f-soft); padding:26px 18px; text-align:center; cursor:pointer; transition:.15s;
}
.res-drop:hover,.res-drop.is-over{border-color:var(--f-brand); background:var(--f-brand-l)}
.res-drop input[type=file]{position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer}
.res-drop-inner{pointer-events:none}
.res-drop .ic{font-size:30px; margin-bottom:8px; opacity:.8}
.res-drop p{margin:0; font-size:13.5px; color:var(--fg-2)}
.res-drop p.fine{font-size:12px; color:var(--fg-3); margin-top:7px; line-height:1.65}
.res-picked{
  margin-top:10px; padding:10px 14px; border:1px solid #bfdbfe; background:var(--f-brand-l);
  border-radius:var(--r-md); font-size:13.5px; color:var(--f-brand-d);
}
.res-picked b{font-weight:600}

@media (max-width:640px){
  .res-item{gap:11px; padding:12px 13px}
  .res-ic{flex:0 0 40px; width:40px; height:40px; font-size:10px}
  .res-ic-lg{flex:0 0 50px; width:50px; height:50px; font-size:11px}
  .res-go{display:none}
  .res-desc{display:none}
  .res-head{padding:14px}
  .res-dl-card{padding:13px 14px}
  .res-dl-btn{width:100%; justify-content:center}
}


/* 侧栏「最新资源」 */
.f-reslist{list-style:none; margin:0; padding:0}
.f-reslist li + li{border-top:1px solid var(--f-line2)}
.f-reslist a{display:flex; align-items:center; gap:9px; padding:8px 0}
.f-reslist .res-ic{flex:0 0 32px; width:32px; height:32px; font-size:9.5px; border-radius:var(--r-md)}
.f-reslist .tx{min-width:0; display:block}
.f-reslist .ttl{display:block; font-size:13.5px; color:var(--fg-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.f-reslist a:hover .ttl{color:var(--f-brand)}
.f-reslist .sub{display:block; font-size:11.5px; color:var(--fg-3)}
.f-side-more{display:block; margin-top:9px; padding-top:9px; border-top:1px solid var(--f-line2); font-size:12.5px; color:var(--fg-3)}
.f-side-more:hover{color:var(--f-brand)}


/* ---------- 未登录访客：页头只留品牌 + 登录/注册 ---------- */
/* 站点对外的部分只有博客，论坛/资讯/资源这些标签点了也是弹回登录页，
   所以未登录访客的导航里一个都不留（成员登录后照常是全套导航）。 */
body.cottage-guest .main-header-menu > .menu-item:not(.cottage-auth-item){display:none}
body.cottage-guest:not(.cottage-public) .ast-header-search{display:none}
body.cottage-guest:not(.cottage-public) .f-crumb{display:none}
/* Astra 自带的版权条在私有站上只是噪音 */
body.cottage-guest .site-below-footer-wrap,
body.cottage-guest .ast-small-footer{display:none !important}
/* 页脚在登录页/门禁页上只留品牌 + 版权 + 备案号；公开层仍显示导航链接 */
body.cottage-guest:not(.cottage-public) .cottage-footer .flinks{display:none}

/* ---------- 服务门户页（/services/） ---------- */
.svc-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px; margin:20px 0}
.svc-card{display:flex; flex-direction:column; gap:6px; padding:18px 20px; background:#fff;
  border:1px solid var(--f-line); border-radius:var(--r-lg); text-decoration:none; transition:.15s}
.svc-card:hover{transform:translateY(-2px); box-shadow:var(--shadow-sm); border-color:#c3cad6}
.svc-card b{font-size:15.5px; color:var(--fg)}
.svc-card span{font-size:13px; color:var(--fg-3)}
.svc-card em{font-size:11.5px; color:#a9b0bd; font-style:normal; word-break:break-all}

/* ---------- 站务面板：访问控制 ---------- */
.mg-gate{display:flex; flex-direction:column}
.mg-gate-row{display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:9px 0; border-top:1px solid var(--f-line2)}
.mg-gate-row:first-child{border-top:0}
.mg-gate-name{flex:1 1 220px; min-width:0; display:flex; flex-direction:column; gap:2px}
.mg-gate-name a{font-size:14px; font-weight:600; color:var(--fg)}
.mg-gate-roles{display:flex; gap:16px; flex-wrap:wrap}


/* =========================================================
 * 漂流瓶（letters 板块）：信纸 / 心情 / 匿名
 * ========================================================= */
/* ===== 漂流瓶 · 版式（预览稿）===== */
:root{
  --bottle-paper:#fdfaf3;   /* 信纸底 */
  --bottle-paper2:#f5efe2;  /* 私信信纸底（更深一点） */
  --bottle-line:#e7dcc6;    /* 信纸边 */
  --bottle-ink:#3f3a33;     /* 信纸字色（暖黑） */
  --bottle-muted:#9a9184;   /* 信纸次要字 */
  --bottle-sea:#0e7490;     /* 海蓝点缀 */
  --bottle-serif:Georgia,"Songti SC","STSong",SimSun,serif;
}
/* 板块页 hero：海边的那块滩 */
.bottle-hero{
  background:linear-gradient(135deg,#eaf5f8 0%,#fdfaf3 70%);
  border:1px solid var(--bottle-line); border-radius:var(--r-lg);
  padding:20px 22px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.bottle-hero h1{ font-family:var(--bottle-serif); font-size:22px; margin:0 0 6px; color:var(--bottle-ink) }
.bottle-hero p{ margin:0; font-size:13.5px; color:var(--bottle-muted); max-width:34em }
.bottle-hero .wave{ font-size:20px }

/* 信件卡片流（板块页列表） */
.letter-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(310px,1fr)); gap:14px }
.letter-card{
  background:var(--bottle-paper); border:1px solid var(--bottle-line); border-radius:14px;
  padding:16px 18px 14px; position:relative; display:flex; flex-direction:column; gap:10px;
  box-shadow:0 2px 12px -8px rgba(63,58,51,.18); transition:.16s ease; text-decoration:none;
}
.letter-card:hover{ transform:translateY(-2px); box-shadow:0 10px 24px -12px rgba(63,58,51,.28) }
.letter-card .excerpt{
  font-family:var(--bottle-serif); font-size:15.5px; line-height:1.95; color:var(--bottle-ink);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; margin:0;
}
.letter-card .meta{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--bottle-muted) }
.letter-card .anon-name{ font-family:var(--bottle-serif); font-style:italic; color:var(--bottle-ink) }
.letter-card .replies{ margin-left:auto; color:var(--bottle-sea) }
.letter-card.is-private{ background:var(--bottle-paper2) }
.letter-card .lock{
  position:absolute; top:12px; right:12px; font-size:11.5px; color:var(--bottle-muted);
  border:1px solid var(--bottle-line); border-radius:999px; padding:2px 9px; background:#fff;
}
/* 匿名头像：一只小瓶子 */
.anon-avatar{
  width:34px; height:34px; border-radius:50%; flex:0 0 34px; display:grid; place-items:center;
  background:linear-gradient(135deg,#7dd3fc,#0e7490); color:#fff; font-size:16px;
}
/* 心情标签 */
.mood-tag{ display:inline-flex; align-items:center; gap:5px; height:22px; padding:0 9px;
  border-radius:999px; font-size:12px; width:max-content }
.mood-happy{ background:#fdf3d0; color:#8a6d1a }
.mood-sad{ background:#e3edfb; color:#2b5cb8 }
.mood-lost{ background:#ece7fa; color:#5b3fb8 }
.mood-thanks{ background:#e2f6e8; color:#1f7a45 }
.mood-anxious{ background:#fdeadd; color:#b4531a }
.mood-calm{ background:#dcf3f6; color:#0e7490 }

/* 信件页：信纸正文 */
.letter-paper{
  background:var(--bottle-paper); border:1px solid var(--bottle-line); border-radius:14px;
  padding:26px 30px; font-family:var(--bottle-serif); font-size:16px; line-height:2.05; color:var(--bottle-ink);
}
.letter-paper p{ margin:0 0 14px }
.letter-paper p:last-child{ margin-bottom:0 }
.letter-head{ display:flex; align-items:center; gap:10px; margin:0 0 14px; flex-wrap:wrap }
.letter-head .anon-name{ font-family:var(--bottle-serif); font-style:italic; font-size:15px; color:var(--bottle-ink) }
.letter-head .time{ font-size:12.5px; color:var(--bottle-muted) }
/* 回信：虚线边，像信的折痕 */
.reply-letter{ background:#fffdf8; border:1px dashed var(--bottle-line); border-radius:12px; padding:15px 17px }
.reply-letter .who{ display:flex; align-items:center; gap:8px; margin:0 0 8px; font-size:13px; color:var(--bottle-muted) }
.reply-letter .who .anon-name{ font-family:var(--bottle-serif); font-style:italic; color:var(--bottle-ink) }
.reply-letter .body{ font-family:var(--bottle-serif); font-size:15px; line-height:1.95; color:var(--bottle-ink) }
/* 发信表单 */
.bottle-compose{
  background:var(--bottle-paper); border:1px solid var(--bottle-line); border-radius:14px; padding:24px 26px;
}
.bottle-compose .lead{ font-family:var(--bottle-serif); font-size:15px; color:var(--bottle-muted); margin:0 0 16px }
.mood-picker{ display:flex; gap:8px; flex-wrap:wrap; margin:0 0 16px }
.mood-picker label{
  display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 12px; cursor:pointer;
  border:1px solid var(--bottle-line); border-radius:999px; background:#fff; font-size:13px; color:var(--bottle-ink);
}
.mood-picker input{ display:none }
.mood-picker input:checked + span{ font-weight:600 }
.mood-picker label:has(input:checked){ background:#fff; border-color:var(--bottle-sea); box-shadow:0 0 0 2px rgba(14,116,144,.12) }
.bottle-compose textarea{
  width:100%; min-height:190px; border:1px solid var(--bottle-line); border-radius:10px; background:#fffef9;
  font-family:var(--bottle-serif); font-size:15.5px; line-height:2; padding:14px 16px; color:var(--bottle-ink); resize:vertical;
}
.bottle-compose textarea:focus{ outline:0; border-color:var(--bottle-sea); box-shadow:0 0 0 3px rgba(14,116,144,.10) }
.bottle-compose .opts{ display:flex; gap:18px; flex-wrap:wrap; margin:14px 0 0; font-size:13.5px; color:var(--bottle-ink) }
.bottle-compose .opts label{ display:inline-flex; align-items:center; gap:7px; cursor:pointer }
.bottle-throw{
  display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 22px; border:0; cursor:pointer;
  border-radius:999px; background:linear-gradient(135deg,#0e7490,#0891b2); color:#fff; font-size:15px; font-weight:600;
  box-shadow:0 10px 24px -10px rgba(14,116,144,.5);
}
.bottle-throw:hover{ transform:translateY(-2px) }
.bottle-compose .foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:16px }
.bottle-compose .fine{ font-size:12.5px; color:var(--bottle-muted) }

/* ---------- 正文编辑辅助（字数 / 草稿条 / 粘图占位） ---------- */
.cottage-count{font-size:12.5px; color:var(--fg-3); margin-left:12px}
.cottage-draft-bar{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin:12px 0 0; padding:10px 14px; font-size:13.5px;
  background:#fffbeb; border:1px solid #fde68a; border-radius:var(--r-md); color:#7c5c00;
}
.cottage-draft-bar .f-btn{height:30px; padding:0 12px; font-size:13px}
.cottage-pasting{color:var(--fg-3); font-size:13px}
.cottage-paste-err{color:#c92a2a; font-size:13px}

/* ---------- 外链卡片（正文里引用别处内容） ---------- */
.cottage-card{
  display:block; margin:16px 0; padding:14px 16px; text-decoration:none;
  background:#fff; border:1px solid var(--f-line); border-left:3px solid var(--f-brand);
  border-radius:var(--r-md); transition:.16s ease;
}
.cottage-card:hover{border-color:var(--f-brand); box-shadow:0 6px 18px -10px rgba(37,99,235,.35); transform:translateY(-1px)}
.cottage-card .cc-site{display:inline-block; font-size:11.5px; font-weight:600; color:var(--f-brand);
  background:var(--f-brand-l); border-radius:3px; padding:1px 7px; margin-bottom:6px}
.cottage-card .cc-title{display:block; font-size:15.5px; line-height:1.5; color:var(--fg)}
.cottage-card .cc-desc{display:block; margin-top:5px; font-size:13.5px; line-height:1.7; color:var(--fg-2)}
.cottage-card .cc-url{display:block; margin-top:7px; font-size:11.5px; color:var(--fg-3); word-break:break-all}

/* ---------- 正文图片：对齐 + 自适应 ---------- */
.entry-content img.alignleft,.floor-content img.alignleft{float:left; margin:4px 18px 12px 0; max-width:50%}
.entry-content img.alignright,.floor-content img.alignright{float:right; margin:4px 0 12px 18px; max-width:50%}
.entry-content img.aligncenter,.floor-content img.aligncenter{display:block; margin:14px auto}
.entry-content img,.floor-content img{max-width:100%; height:auto}
/* 图片说明（[caption]） */
.entry-content .wp-caption,.floor-content .wp-caption{max-width:100%; margin:14px 0}
.wp-caption-text{font-size:12.5px; color:var(--fg-3); text-align:center; margin-top:6px}
@media (max-width:600px){
  .entry-content img.alignleft,.entry-content img.alignright,
  .floor-content img.alignleft,.floor-content img.alignright{float:none; display:block; margin:12px auto; max-width:100%}
}
