/* ================================================================
   俄钓4 社区 · 白色精简社区风主题层（对标 LightSNS）
   加载顺序必须在 style.css 之后：本文件覆盖深色变量与硬编码色值，
   并新增瀑布流 / 用户等级 / 上传 / 弹窗层级修复等组件。
   ================================================================ */

:root{
  /* —— 重新定义为白色精简社区风 —— */
  --bg:#f4f6f9;              /* 页面底色：浅灰蓝 */
  --surface:#ffffff;         /* 卡片：纯白 */
  --surface-2:#f7f9fc;       /* 次级卡片/输入底 */
  --line:#e8edf4;            /* 描边 */
  --line-2:#dfe6ef;
  --primary:#1ea3a3;         /* 湖水青（保留品牌色） */
  --primary-d:#14807f;
  --accent:#ff8a3d;
  --text:#1c2430;            /* 主文字：近黑 */
  --text-2:#4a5568;
  --muted:#8b98ab;           /* 次要文字 */
  --danger:#e5484d;
  --ok:#2e9e5b;
  --shadow:0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-md:0 4px 14px rgba(16,24,40,.08);
  --nav-h:56px;

  /* 毛玻璃：浅色玻璃 */
  --g-bg:rgba(255,255,255,.72);
  --g-bg-2:rgba(255,255,255,.90);
  --g-bd:rgba(16,24,40,.08);
  --g-hi:rgba(30,163,163,.35);
  --g-blur:14px;
  --g-shadow:0 4px 16px rgba(16,24,40,.08);
  --g-shadow-sm:0 1px 4px rgba(16,24,40,.05);
}

/* 背景：极淡的青橙柔光，白色卡片有东西可"透" */
body{
  background:var(--bg);
  color:var(--text);
}
body::before{
  background:
    radial-gradient(46% 34% at 12% 4%, rgba(30,163,163,.13), transparent 70%),
    radial-gradient(42% 34% at 90% 2%, rgba(255,138,61,.10), transparent 72%),
    radial-gradient(56% 44% at 50% 100%, rgba(74,163,255,.09), transparent 75%) !important;
}

/* —— 顶栏：白色玻璃 —— */
.topbar{
  background:rgba(255,255,255,.86) !important;
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line) !important;
  padding:10px 14px;
}
.topbar h1{font-size:17px;font-weight:700;color:var(--text)}
.topbar .back{color:var(--text-2)}
/* 文字 + 图形 Logo */
.brand-logo{display:flex;align-items:center;justify-content:center;color:var(--primary);margin-right:4px;flex:none}
.brand-logo .ic{width:26px;height:26px}

/* —— 底部导航：白色玻璃 —— */
.bottom-nav{
  background:rgba(255,255,255,.92) !important;
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  backdrop-filter:saturate(180%) blur(14px);
  border-top:1px solid var(--line) !important;
  height:var(--nav-h);
}
.bottom-nav a{color:var(--muted);font-size:11px}
.bottom-nav a.active{color:var(--primary)}
.bottom-nav a .ic{width:22px;height:22px}

/* 悬浮发帖按钮 */
.fab{
  background:linear-gradient(135deg,#22b8b8,#1ea3a3) !important;
  color:#fff;box-shadow:0 6px 18px rgba(30,163,163,.35) !important;
  width:52px;height:52px;border-radius:26px;font-size:26px;
}

/* —— 卡片 / 列表 —— */
.card,.post,.adm-item,.notice-item,.list-item{
  background:var(--surface) !important;
  border:1px solid var(--line) !important;
  border-radius:14px !important;
  box-shadow:var(--shadow) !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
.card:hover,.post:hover{border-color:var(--line-2) !important;box-shadow:var(--shadow-md) !important}
.card,.post{margin:0 12px 12px;padding:14px}
.card>.title-xl,.card h3{margin-top:0}

/* —— 按钮：精简扁平 —— */
.btn{
  background:var(--surface-2) !important;
  color:var(--text) !important;
  border:1px solid var(--line-2) !important;
  border-radius:10px !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  font-weight:600;
  transition:background .15s,border-color .15s,transform .1s;
}
.btn:hover{background:#eef2f8 !important;border-color:var(--primary) !important}
.btn:active{transform:translateY(1px)}
.btn.ghost{background:var(--surface-2) !important}
.btn.primary,.btn.accent{
  background:linear-gradient(135deg,#22b8b8,#1ea3a3) !important;
  border-color:transparent !important;color:#fff !important;
}
.btn.accent{background:linear-gradient(135deg,#ff9a52,#ff8a3d) !important}
.btn.sm{width:auto;padding:6px 12px;font-size:13px;border-radius:8px}

/* 标签 chip */
.tag{
  background:var(--surface-2) !important;
  border:1px solid var(--line) !important;
  color:var(--text-2) !important;
  border-radius:999px;padding:5px 12px;font-size:12.5px;
  box-shadow:none !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;
}
.tag.on{background:var(--primary) !important;color:#fff !important;border-color:var(--primary) !important}

/* 输入 */
input,textarea,select{
  background:var(--surface) !important;
  color:var(--text) !important;
  border:1px solid var(--line-2) !important;
  border-radius:10px;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
}
input:focus,textarea:focus,select:focus{border-color:var(--primary) !important;box-shadow:0 0 0 3px rgba(30,163,163,.12) !important}
::placeholder{color:#a9b4c4}

/* 统计格 */
.stat-grid{gap:10px;padding:0 12px}
.stat-grid .s{
  background:var(--surface) !important;border:1px solid var(--line) !important;
  border-radius:12px;box-shadow:var(--shadow) !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
}
.stat-grid .s b{color:var(--text);font-size:19px}
.stat-grid .s span{color:var(--muted);font-size:12px}

/* 次级文字 */
.sub,.kv,.meta{color:var(--muted)}
.title-xl{color:var(--text);font-weight:700}
.empty,.adm-empty{color:var(--muted)}

/* ===== 弹窗层级修复：必须盖住 Leaflet（其内部 z-index 最高 1000）===== */
.modal{
  z-index:10000 !important;
  background:rgba(16,24,40,.52) !important;
  /* 遮罩层不能再挂 blur：内层滚动会连带整屏 backdrop 重绘，
     移动端/APP 内核表现为「滑动卡图层、掉帧」（鱼种详情等长弹窗尤其明显）。
     弹窗本体已是不透明卡片，去掉遮罩模糊后观感几乎无差别。 */
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
}
.modal .panel{
  background:var(--surface) !important;
  border:1px solid var(--line) !important;
  border-radius:16px !important;
  box-shadow:0 20px 50px rgba(16,24,40,.22) !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
  color:var(--text);
  max-height:82vh;overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;      /* 弹窗滚到底不把整页一起带着滚 */
}
/* 聊天面板 */
.chat-box{background:var(--bg) !important;z-index:9000 !important}
/* toast 永远在最上层 */
#toast{z-index:10001 !important;background:rgba(28,36,48,.92) !important;color:#fff;border-radius:10px;padding:9px 16px;font-size:13.5px}

/* ===== 首页 / 全部帖子：论坛卡片式列表（单列，替代原瀑布流） ===== */
.feed-list{padding:6px 8px 2px}
.post-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:var(--shadow);
  margin:0 0 8px;overflow:hidden;
}
.post-card:active{background:var(--surface-2)}

.pc-head{display:flex;align-items:center;gap:8px;padding:8px 10px 5px}
.pc-av{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:none;background:var(--surface-2)}
.pc-av-wrap{display:block;flex:none}
.pc-who{flex:1;min-width:0}
.pc-nm{
  display:flex;align-items:center;gap:5px;min-width:0;
  font-size:13px;font-weight:600;color:var(--text);text-decoration:none;
}
.pc-nm .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-time{font-size:11px;color:var(--muted);margin-top:2px}

.pc-body{padding:0 10px;cursor:pointer}
.pc-title{
  margin:0 0 4px;font-size:15px;font-weight:700;line-height:1.42;color:var(--text);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.pc-text{
  margin:0 0 6px;font-size:13px;line-height:1.62;color:var(--text-2);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.pc-pics{display:flex;gap:4px;margin:0 0 6px}
.pc-pics.n1 img{width:100%;max-height:180px;object-fit:cover;border-radius:10px;display:block}
.pc-pics.n3{position:relative}
.pc-pics.n3 img{
  width:33.333%;aspect-ratio:1;object-fit:cover;border-radius:8px;display:block;
  border:1px solid var(--line);
}
.pc-picmore{
  position:absolute;right:6px;bottom:6px;
  background:rgba(16,24,40,.62);color:#fff;font-size:11px;
  padding:2px 7px;border-radius:6px;
}
.pc-tags{display:flex;gap:6px;flex-wrap:wrap;padding-bottom:6px}
.pc-tag{
  font-size:11px;padding:2px 8px;border-radius:6px;
  background:var(--surface-2);border:1px solid var(--line);color:var(--muted);
}
.pc-tag.alt{background:rgba(30,163,163,.10);border-color:rgba(30,163,163,.28);color:var(--primary)}

.pc-foot{
  display:flex;align-items:center;gap:14px;
  padding:7px 10px;border-top:1px solid var(--line);
  font-size:12px;color:var(--muted);
}
.pc-foot .act{
  display:inline-flex;align-items:center;gap:4px;cursor:pointer;
  transition:color .15s;user-select:none;
}
.pc-foot .act:first-child{margin-right:auto}
.pc-foot .act:hover{color:var(--primary)}
.pc-foot .act.on{color:var(--accent);font-weight:600}
.pc-foot .act.pop{animation:pop .28s ease}
.pc-foot .act .ic{width:15px;height:15px}

/* 个人主页「评论」列表里的评论正文预览 */
.c-cmt{
  font-size:13.5px;line-height:1.5;color:var(--text-2);margin:0 0 4px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

/* 旧瀑布流样式保留给其它页面兜底，这里不再是首页容器 */
.wf-card{
  break-inside:avoid;margin:0 0 10px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  overflow:hidden;cursor:pointer;display:block;color:inherit;
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.wf-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:var(--line-2)}
.wf-card:active{transform:translateY(0)}

.wf-cover{position:relative;width:100%;display:block;background:var(--surface-2)}
.wf-cover img{width:100%;display:block;object-fit:cover;max-height:240px}
.wf-cover .badge{
  position:absolute;left:8px;top:8px;z-index:2;
  background:rgba(28,36,48,.66);color:#fff;font-size:11px;
  padding:2px 7px;border-radius:6px;backdrop-filter:blur(4px);
}
.wf-nocover{
  width:100%;height:96px;display:flex;align-items:center;justify-content:center;
  font-size:30px;background:linear-gradient(135deg,#eef7f7,#f7f3ee);
}
.wf-body{padding:10px 11px 11px}
.wf-title{
  font-size:14px;font-weight:600;line-height:1.45;color:var(--text);
  margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.wf-excerpt{
  font-size:12.5px;color:var(--muted);line-height:1.5;margin:0 0 8px;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.wf-thumbs{display:flex;gap:4px;margin-bottom:8px}
.wf-thumbs img{width:33%;aspect-ratio:1;object-fit:cover;border-radius:6px;border:1px solid var(--line)}

.wf-author{display:flex;align-items:center;gap:6px;margin-bottom:8px}
.wf-author img{width:20px;height:20px;border-radius:50%;object-fit:cover}
.wf-author .nm{font-size:12.5px;color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.wf-foot{
  display:flex;align-items:center;gap:12px;
  font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:8px;
}
.wf-foot .act{display:inline-flex;align-items:center;gap:3px;cursor:pointer;transition:color .15s;user-select:none}
.wf-foot .act:hover{color:var(--primary)}
.wf-foot .act.on{color:var(--accent);font-weight:600}
.wf-foot .act.pop{animation:pop .28s ease}
@keyframes pop{0%{transform:scale(1)}45%{transform:scale(1.32)}100%{transform:scale(1)}}

/* ===== 用户等级徽章 ===== */
.lv-badge{
  display:inline-flex;align-items:center;gap:3px;
  font-size:10px;font-weight:700;line-height:1;
  padding:2px 6px;border-radius:5px;color:#fff;white-space:nowrap;
}
.lv-1{background:#9aa7b8}
.lv-2{background:#5fb8d6}
.lv-3{background:#2e9e5b}
.lv-4{background:#7c6cf0}
.lv-5{background:linear-gradient(135deg,#ff9a52,#ff6b3d)}
.lv-admin{background:linear-gradient(135deg,#e5484d,#b32228)}
.role-badge{font-size:10px;padding:2px 6px;border-radius:5px;background:var(--surface-2);color:var(--text-2);border:1px solid var(--line)}

/* 作者行（昵称 + 等级 + 角色） */
.author-line{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.author-line .nm{font-size:13px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ===== 折叠选择页（板块 / 筛选抽屉） ===== */
.fold-sheet{
  position:fixed;left:0;right:0;bottom:0;z-index:9500;
  background:var(--surface);border-top:1px solid var(--line);
  border-radius:18px 18px 0 0;box-shadow:0 -8px 30px rgba(16,24,40,.14);
  transform:translateY(100%);transition:transform .26s cubic-bezier(.3,.9,.3,1);
  max-height:72vh;display:flex;flex-direction:column;
}
.fold-sheet.show{transform:translateY(0)}
.fold-sheet .fh{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px 10px;border-bottom:1px solid var(--line);
}
.fold-sheet .fh b{font-size:15px}
.fold-sheet .fh .x{cursor:pointer;color:var(--muted);font-size:20px;line-height:1}
.fold-sheet .fb{padding:12px 16px calc(16px + env(safe-area-inset-bottom));overflow-y:auto}
.fold-sheet .opt{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 12px;border-radius:10px;cursor:pointer;font-size:14px;
}
.fold-sheet .opt:hover{background:var(--surface-2)}
.fold-sheet .opt.on{background:rgba(30,163,163,.10);color:var(--primary);font-weight:600}
.fold-sheet .opt .ck{color:var(--primary);font-weight:700}
.fold-mask{position:fixed;inset:0;z-index:9400;background:rgba(16,24,40,.35);display:none}
.fold-mask.show{display:block}

/* ===== 顶部模块按钮（首页快捷入口 · 横向滚动条，收起冗余入口） ===== */
.mod-bar{
  display:flex;gap:8px;overflow-x:auto;padding:10px 12px 6px;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.mod-bar::-webkit-scrollbar{display:none}
.mod-btn{
  flex:0 0 auto;min-width:66px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  padding:10px 12px;border-radius:14px;cursor:pointer;text-align:center;
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);
  transition:transform .12s,border-color .15s;
}
.mod-btn:hover{border-color:var(--primary);transform:translateY(-2px)}
.mod-btn:active{transform:translateY(0) scale(.97)}
.mod-btn .ic{width:24px;height:24px}
.mod-btn .tx{font-size:11.5px;color:var(--text-2);font-weight:500;white-space:nowrap}

/* ===== 底部声明栏：不再悬浮 =====
   需求：全站取消常驻悬浮，只在「我的」页面最下方以普通文档流块显示。
   （footer.js 会把它挂到 #view-me 里，由 app.js 的 setView() 控制 hidden） */
.site-foot{
  position:static !important;
  margin:18px 12px calc(10px + env(safe-area-inset-bottom)) !important;
  padding:14px 14px !important;
  border:1px solid var(--line) !important;border-radius:14px !important;
  background:var(--surface) !important;
  box-shadow:var(--shadow) !important;
  font-size:12px !important;line-height:1.7;
  color:var(--muted) !important;text-align:center;
}
.site-foot .sf-name{font-size:13px;color:var(--text-2);font-weight:600}
.site-foot .sf-name .sf-sub{display:block;font-size:11.5px;font-weight:400;opacity:.65;margin-top:2px}
.site-foot .sf-dis{margin:6px 0 4px;font-size:11.5px}
.site-foot .sf-links{margin:4px 0 0;font-size:11.5px}
.site-foot .sf-cr{display:block;opacity:.5;font-size:11px;margin-top:6px}
/* 声明栏不再占位：body 只需给底部导航留高度 */
body{padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom)) !important}
body.has-nav{padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom)) !important}
@media(min-width:900px){
  body{padding-bottom:calc(var(--nav-h) + 10px) !important}
  body.has-nav{padding-bottom:calc(var(--nav-h) + 10px) !important}
}

/* ===== 上传组件 ===== */
.up-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}
@media(min-width:600px){ .up-grid{grid-template-columns:repeat(4,1fr)} }
.up-cell{
  position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;
  border:1px dashed var(--line-2);background:var(--surface-2);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.up-cell img,.up-cell video{width:100%;height:100%;object-fit:cover}
.up-cell .del{
  position:absolute;right:3px;top:3px;width:20px;height:20px;border-radius:10px;
  background:rgba(28,36,48,.7);color:#fff;font-size:13px;line-height:20px;text-align:center;cursor:pointer;
}
.up-cell .add{font-size:22px;color:var(--muted)}
.up-hint{font-size:11.5px;color:var(--muted);margin-top:6px}

/* 视频 / 外链卡片 */
.media-video{width:100%;border-radius:12px;margin:8px 0;background:#000;max-height:340px}
.media-link{
  display:flex;gap:10px;align-items:center;padding:10px;margin:8px 0;
  background:var(--surface-2);border:1px solid var(--line);border-radius:12px;cursor:pointer;
}
.media-link:hover{border-color:var(--primary)}
.media-link .ic{width:26px;height:26px}
.media-link .grow{min-width:0}
.media-link .t{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.media-link .s{font-size:11.5px;color:var(--muted)}
.media-link img{width:60px;height:40px;object-fit:cover;border-radius:8px;flex:none}

/* ===== 水域环境数据条 ===== */
.env-bar{
  display:flex;gap:8px;overflow-x:auto;padding:10px 12px 2px;-webkit-overflow-scrolling:touch;
}
.env-chip{
  flex:0 0 auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;
  padding:8px 12px;box-shadow:var(--shadow);min-width:88px;text-align:center;
}
.env-chip .k{font-size:11px;color:var(--muted)}
.env-chip .v{font-size:15px;font-weight:700;color:var(--text);margin-top:2px}
.env-chip.hl .v{color:var(--primary)}
.env-note{
  margin:8px 12px 0;padding:10px 12px;border-radius:12px;font-size:12.5px;line-height:1.6;
  background:#fff8ed;border:1px solid #ffe0bd;color:#8a5a20;
}
.env-note.official{background:#eef7f7;border-color:#cfe9e9;color:#1c6b6b}

/* 时段/天气/水温 三栏 */
.env-rows{margin:10px 12px 0;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.env-row{display:flex;gap:10px;padding:11px 13px;border-bottom:1px solid var(--line);font-size:13px}
.env-row:last-child{border-bottom:0}
.env-row .lb{flex:0 0 74px;color:var(--muted);font-size:12.5px}
.env-row .vl{flex:1;color:var(--text);line-height:1.55}
.env-row .vl.na{color:var(--muted);font-style:italic}

/* ===== 消息页：一键已读 / 删除 =====
   旧版是「文字链接 + 间隔撑开 + 绝对定位的 ✕」，窄屏上 ✕ 会压住通知正文，
   两个操作也会挤到同一行溢出。改成：胶囊按钮 + 行内删除按钮（flex 固定位，不重叠）。 */
.msg-toolbar{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  padding:8px 12px;border-bottom:1px solid var(--line);
  background:var(--surface);font-size:12.5px;
}
.msg-toolbar .sp{flex:1 1 auto;min-width:0}
.msg-toolbar .act{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;white-space:nowrap;
  padding:5px 11px;border-radius:999px;
  border:1px solid var(--line);background:var(--surface-2);
  color:var(--text-2);font-weight:500;font-size:12px;cursor:pointer;
}
.msg-toolbar .act:active{transform:translateY(1px)}
.msg-toolbar .act .ic{width:13px;height:13px;flex:none}
.msg-toolbar .act.danger{color:var(--danger);border-color:rgba(229,72,77,.28)}
.notice-item{position:relative}
.notice-item .nbody{flex:1 1 0;min-width:0}
.notice-item .n-tx{overflow-wrap:anywhere}
.notice-item .ndel{
  flex:none;width:28px;height:28px;flex:0 0 28px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;padding:0;
  border:1px solid var(--line);background:var(--surface-2);
  color:var(--muted);font-size:14px;line-height:1;cursor:pointer;
}
.notice-item .ndel:hover,.notice-item .ndel:active{color:#fff;background:var(--danger);border-color:transparent}

/* ===== 钓点弹窗 ==== */
.leaflet-popup-content-wrapper{
  background:var(--surface) !important;color:var(--text) !important;
  border-radius:12px !important;box-shadow:0 8px 24px rgba(16,24,40,.16) !important;
}
.leaflet-popup-tip{background:var(--surface) !important}
.leaflet-popup-content{margin:12px 14px !important;font-size:13px;color:var(--text)}
.leaflet-popup-content a{color:var(--primary);font-weight:600}
.leaflet-container a.leaflet-popup-close-button{color:var(--muted) !important}

/* 钓点详情弹窗内的关联帖 / 评论 */
.rel-post{
  display:flex;align-items:center;gap:10px;padding:9px;border-radius:10px;color:inherit;
  background:var(--surface-2);border:1px solid var(--line);margin-bottom:6px;
}
.rel-post:hover{border-color:var(--primary)}
.rel-post img{width:60px;height:42px;object-fit:cover;border-radius:8px;flex:none}
.rel-post .noimg{
  width:60px;height:42px;border-radius:8px;flex:none;
  background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:18px;
}
.rel-post .grow{min-width:0}
.rel-post b{display:block;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ===== 地图工具条 / 坐标条 ===== */
.map-tools button{
  background:var(--surface) !important;color:var(--text) !important;
  border:1px solid var(--line-2) !important;box-shadow:var(--shadow) !important;
}
.map-coord{
  background:rgba(255,255,255,.9) !important;color:var(--text) !important;
  border:1px solid var(--line) !important;border-radius:10px;
}

/* ===== 搜索栏 ===== */
.search-bar{padding:10px 12px 0;display:flex;gap:8px}
.search-bar input{
  flex:1;background:var(--surface) !important;border-radius:10px;
}

/* ===== 通用工具类 ===== */
.row{display:flex;align-items:center;gap:10px}
.grow{flex:1;min-width:0}
.hidden{display:none!important}
.lvbar{height:5px;border-radius:3px;background:var(--line);overflow:hidden;margin:5px 0}
.lvbar i{display:block;height:100%;background:linear-gradient(90deg,#22b8b8,#1ea3a3)}

/* 加载骨架屏 */
.skel{background:linear-gradient(90deg,#eef2f7 25%,#f7f9fc 37%,#eef2f7 63%);background-size:400% 100%;animation:sk 1.2s ease infinite;border-radius:10px}
@keyframes sk{0%{background-position:100% 50%}100%{background-position:0 50%}}

/* 空态 */
.empty{padding:42px 16px;text-align:center;color:var(--muted);font-size:14px}
.empty .empty-ill{background:linear-gradient(135deg,#eaf6f6,#f7f2ec);box-shadow:inset 0 0 0 1px rgba(30,163,163,.10)}
.empty .empty-tip{opacity:.8}

/* 深色模式偏好：用户系统设为深色时，保留白色但降低刺眼感 */
@media (prefers-color-scheme: dark){
  /* 社区站统一白色，不跟随系统切换（避免与"白色精简"需求冲突） */
}

/* ============================================================
   PC（≥900px）页脚：同样「常驻悬浮」
   需求：声明栏要一直悬浮显示，不能只有滑到最底部才看到。
   桌面端因此也改成 fixed，但收进居中的「机身」(--pw) 里、与底部导航同宽，
   避免横跨 1920px 的通栏与位置错乱；内容压缩成单行精简条。
   ============================================================ */
@media (min-width: 900px){
  body{padding-bottom:calc(var(--nav-h) + 10px) !important}
  body.has-nav{padding-bottom:calc(var(--nav-h) + 10px) !important}

  /* 桌面端声明栏同样不悬浮：收进居中的「机身」里做普通卡片 */
  .site-foot{
    position:static !important;
    width:auto !important;max-width:calc(var(--pw,560px) - 24px);
    margin:20px auto 14px !important;
    padding:16px 18px !important;
    border:1px solid var(--line) !important;border-radius:16px !important;
    background:var(--surface) !important;
    box-shadow:var(--shadow) !important;
    font-size:12.5px !important;line-height:1.75 !important;
    color:var(--muted) !important;text-align:center;
  }
  .site-foot .sf-name{font-size:14px !important;font-weight:700}
  .site-foot .sf-name .sf-sub{display:block !important;font-size:11.5px;opacity:.6;margin-top:2px}
  .site-foot .sf-dis{margin:8px 0 6px !important;font-size:12px !important}
  .site-foot .sf-links{margin:6px 0 !important;font-size:12px !important}
  .site-foot .sf-cr{display:block !important;opacity:.5;font-size:11.5px;margin-top:6px}
}
