/* ===== 黄河网·独立核心站 基础样式 ===== */
/* 思源黑体（Noto Sans SC）已自托管到本站 skin/fonts/，由 layout.php 以 <link> 引入，不依赖外部 CDN */
* { margin:0; padding:0; box-sizing:border-box; }
ul,ol{ list-style:none; }
a{ text-decoration:none; color:#176e3c; }
body{
  font-family:var(--hh-font);
  color:#222; background:#f2f4f3; font-size:1rem; line-height:1.65; letter-spacing:.01em;
  -webkit-text-size-adjust:100%;
}
html{ font-size:100%; -webkit-text-size-adjust:100%; }

/* 头条风格标题：重字重 + 紧排 + 近黑字色 */
:root{
  --hh-font:"Noto Sans SC","Source Han Sans SC","思源黑体",sans-serif;
  --hh-title-font:"Noto Sans SC","Source Han Sans SC","思源黑体",sans-serif;
  --hh-title-color:#16191c;
}
.hh-tt{font-family:var(--hh-title-font);color:var(--hh-title-color);font-weight:700;letter-spacing:.2px;}

/* 内容容器：全站统一宽度，与首页一致 */
.content{ max-width:430px; width:100%; box-sizing:border-box; margin:0 auto; padding:12px; background:#fff; min-height:100vh; overflow-x:hidden; }

/* 卡片 */
.card{ background:#fff; border-radius:12px; padding:14px; margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.card-h{ font-size:16px; font-weight:bold; margin-bottom:10px; color:#176e3c; display:flex; align-items:center; justify-content:space-between; }

/* 按钮 */
.btn{ display:inline-block; padding:10px 18px; border-radius:10px; background:#1f8a4c; color:#fff; border:none; font-size:15px; cursor:pointer; text-align:center; }
.btn.block{ display:block; width:100%; }
.btn.ghost{ background:#fff; color:#1f8a4c; border:1px solid #1f8a4c; }
.btn.danger{ background:#e24c4c; }
.btn.sm{ padding:6px 12px; font-size:13px; border-radius:10px; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* 表单 */
.form-row{ margin-bottom:14px; }
.form-row label{ display:block; font-size:14px; color:#555; margin-bottom:6px; }
.form-row input[type=text],.form-row input[type=password],.form-row input[type=tel],.form-row textarea,.form-row select{
  width:100%; padding:11px 12px; border:1px solid #d9e2dd; border-radius:10px; font-size:15px; box-sizing:border-box; background:#fafbfa;
}
.form-row textarea{ min-height:110px; resize:vertical; }

/* 文章/详情排版 */
.article-detail{ background:#fff; padding:14px; border-radius:12px; }
.article-detail .tybt{ font-size:20px; font-weight:bold; text-align:center; line-height:1.5; margin-bottom:8px; word-break:break-word; }
.article-detail .tybs{ text-align:center; color:#999; font-size:.875rem; line-height:1.5; margin-bottom:12px; }
.tynr{ font-size:1rem; line-height:1.65; letter-spacing:.01em; word-break:break-word; }
.tynr p{ margin-bottom:14px; text-indent:0; }
/* 插图统一居中 */
.tynr p img,.tynr img{ display:block; margin:10px auto; max-width:100%; height:auto; border-radius:8px; }
/* 编辑 / 来源：文章结尾下一行，灰色，区别于正文 */
.editor-line{ margin-top:18px; padding-top:12px; border-top:1px dashed #e2e8e4; color:#9aa3a0; font-size:.875rem; line-height:1.6; }
.editor-line .e-item{ margin-right:16px; }

/* 列表项 */
.list-item{ display:flex; gap:12px; padding:12px 0; border-bottom:1px solid #f0f2f1; }
.list-item .li-thumb{ width:96px; height:72px; border-radius:8px; object-fit:cover; flex-shrink:0; background:#eee; }
.list-item .li-body{ flex:1; min-width:0; }
.list-item .li-title{ font-size:16px; font-weight:bold; line-height:1.4; margin-bottom:6px; }
.list-item .li-meta{ font-size:12px; color:#999; }

/* 徽章 */
.badge{ display:inline-block; padding:2px 8px; border-radius:10px; font-size:12px; }
.badge.exc{ background:#fff3d6; color:#b8860b; }
.badge.top{ background:#e7f3ec; color:#176e3c; }
.badge.rec{ background:#e6f0fb; color:#2f6fb0; }
.badge.ok{ background:#e7f3ec; color:#1f8a4c; }
.badge.wait{ background:#fff4e0; color:#c98a00; }
.badge.rej{ background:#fdeaea; color:#d64545; }

/* 宫格 */
.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.grid .g-cell{ background:#fff; border:1px solid #edf2ee; border-radius:15px; padding:15px 6px 13px; text-align:center; color:#2f3a34; text-decoration:none; box-shadow:0 1px 6px rgba(20,70,40,.05); transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.grid .g-cell:active{ transform:translateY(1px); border-color:#d6e7dc; box-shadow:0 1px 3px rgba(20,70,40,.08); }
.grid .g-cell .g-ico{ position:relative; width:46px; height:46px; margin:0 auto 9px; border-radius:14px; background:linear-gradient(135deg,#eaf6ee,#dcefe2); display:flex; align-items:center; justify-content:center; font-size:22px; line-height:1; }
.grid .g-cell .g-ico .ms-badge.g-dot{ position:absolute; top:-6px; right:-6px; box-shadow:0 0 0 2px #fff; }
.grid .g-cell .g-lbl{ font-size:13px; color:#2f3a34; font-weight:500; line-height:1.3; }

/* 提示页 */
.msg-box{ text-align:center; padding:50px 20px; }
.msg-box .ico{ font-size:48px; margin-bottom:14px; }
.msg-box .t{ font-size:18px; margin-bottom:18px; }
.msg-box.ok .ico{ color:#1f8a4c; }
.msg-box.err .ico{ color:#e24c4c; }

/* 身份卡 */
.id-card{ background:linear-gradient(135deg,#1f8a4c,#0c502a); color:#fff; border-radius:14px; padding:16px; margin-bottom:12px; }
.id-card .name{ font-size:20px; font-weight:bold; }
.id-card .role{ display:inline-block; margin-top:8px; background:rgba(255,255,255,.18); padding:3px 12px; border-radius:14px; font-size:13px; }

/* 统计块 */
.stat-row{ display:flex; gap:10px; }
.stat-row .stat{ flex:1; background:#fff; border-radius:12px; padding:14px; text-align:center; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.stat-row .stat .num{ font-size:22px; font-weight:bold; color:#176e3c; }
.stat-row .stat .lbl{ font-size:12px; color:#888; margin-top:4px; }

/* 地图卡 */
.map-card{ width:100%; height:240px; border-radius:12px; overflow:hidden; margin:10px 0; }
.geo-pick{ position:fixed; inset:0; background:#fff; z-index:9999; display:none; flex-direction:column; }
.geo-pick.show{ display:flex; }

/* 顶部横幅（非App） */
.site-head{ display:none; }
@media (min-width:768px){
  .content{ box-shadow:0 0 20px rgba(0,0,0,.05); }
}

/* 通用提示条（投稿 / 表单说明） */
.tip{background:#f6fbf8;border:1px solid #dbeade;border-radius:8px;padding:10px 12px;font-size:13px;color:#4a6153;line-height:1.7;}

/* ============ PC 侧栏组件（首页/栏目页共用） ============ */
.hh-lcard{background:#fff;border:1px solid #e3ede7;margin-bottom:14px;}
.hh-lcard .hd{font-size:18px;font-weight:700;color:var(--hh-title-color);padding:10px 14px;border-bottom:2px solid #1f8a4c;background:#f4faf6;display:flex;justify-content:space-between;align-items:center;}
.hh-lcard .hd em{font-style:normal;font-size:12px;color:#8fa79a;font-weight:400;}
.hh-lcard .hd em a{color:#1f8a4c;text-decoration:none;}
.hh-lcard .bd{padding:4px 14px 8px;}
.hh-lad{display:block;margin:10px 0;}
.hh-lad img{width:100%;display:block;}
.hh-lact{border-bottom:1px dashed #dce8e0;padding:10px 0;}
.hh-lact:last-child{border-bottom:0;}
.hh-lact a{display:flex;gap:10px;align-items:flex-start;text-decoration:none;}
.hh-lact img,.hh-lact .noimg{width:84px;height:60px;object-fit:cover;flex:0 0 84px;display:block;}
.hh-lact .noimg{background:#eef4f0;color:#9db4a6;font-size:11px;display:flex;align-items:center;justify-content:center;}
.hh-lact .t{font-size:14px;color:var(--hh-title-color);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.hh-lact a:hover .t{color:#1f8a4c;}
.hh-lact .d{font-size:12px;color:#8aa396;margin-top:3px;}
.hh-lvid{border-bottom:1px dashed #dce8e0;padding:10px 0;}
.hh-lvid:last-child{border-bottom:0;}
.hh-lvid a{display:flex;gap:10px;align-items:center;text-decoration:none;}
.hh-lvid .pl{position:relative;flex:0 0 96px;width:96px;height:58px;}
.hh-lvid .pl img{width:96px;height:58px;object-fit:cover;display:block;background:#0c120e;}
.hh-lvid .pl::after{content:'';position:absolute;left:40px;top:17px;border-style:solid;border-width:7px 0 7px 11px;border-color:transparent transparent transparent rgba(255,255,255,.92);}
.hh-lvid .t{font-size:14px;color:var(--hh-title-color);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.hh-lvid a:hover .t{color:#1f8a4c;}
.hh-lsnap{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:10px 0 6px;}
.hh-lsnap a{display:block;}
.hh-lsnap img{width:100%;height:88px;object-fit:cover;display:block;background:#eef4f0;}
.hh-lbtns{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 0 6px;}
.hh-lbtns a{display:block;text-align:center;padding:10px 4px;font-size:14px;color:#1f6b3d;background:#eef6f0;border:1px solid #d6e8db;text-decoration:none;transition:background .2s,color .2s;}
.hh-lbtns a:hover{background:#1f8a4c;border-color:#1f8a4c;color:#fff;}
.hh-linfo{padding:10px 0 8px;font-size:13px;color:#57685e;line-height:2.1;}
.hh-linfo a{color:#1f8a4c;text-decoration:none;}


/* ===== 身份徽章（会员认证 / 志愿者 / 管理） ===== */
.idb{display:inline-flex;align-items:center;gap:4px;padding:2.5px 9px 2.5px 6px;border-radius:10px;font-size:11.5px;font-weight:700;line-height:1.5;vertical-align:middle;white-space:nowrap;letter-spacing:.3px;-webkit-tap-highlight-color:transparent;}
.idb svg{width:12px;height:12px;flex-shrink:0;display:block;}
.idb-mem{background:linear-gradient(135deg,#fff3f3,#ffe2e2);color:#c3212e;border:1px solid #f1b5b5;box-shadow:0 1px 3px rgba(195,33,46,.10);}
.idb-vol{background:linear-gradient(135deg,#eef7f0,#dbf0e2);color:#1e7f47;border:1px solid #b7dcc3;box-shadow:0 1px 3px rgba(30,127,71,.10);}
.idb-adm{background:linear-gradient(135deg,#fff9e8,#ffefc0);color:#8a5b00;border:1px solid #eccf92;box-shadow:0 1px 3px rgba(217,164,24,.12);}

/* ===== 全站统一「返回」箭头（2026-11-15 十六修：弯尾箭头 → 尖角 <）=====
   按用户要求把原来的弯尾左箭头（back_arrow.png 蒙版）换成简洁的左尖角 <。
   纯 CSS 两条边框旋转 -45° 画出，零图片依赖、零 <img> 节点；
   currentColor 自动适配绿色顶栏（白）与浅色栏（深绿），老 WebView 也稳。 */
.hh-back-arw{
  display:block;width:100%;height:100%;position:relative;background:none;
}
.hh-back-arw::before{
  content:"";position:absolute;left:50%;top:50%;
  width:13px;height:13px;box-sizing:border-box;
  border-top:2.6px solid currentColor;border-left:2.6px solid currentColor;
  -webkit-transform:translate(-50%,-50%) rotate(-45deg);
  transform:translate(-50%,-50%) rotate(-45deg);
}
/* 网页端（无 App 顶栏）兜底浮动返回按钮里的箭头尺寸 */
#hhPubFloatBack .hh-back-arw{width:24px;height:24px;flex:0 0 24px;}

/* ===== 全站图片/视频微微弧角（2026-11-06） ===== */
/* 全局 6px；已有更具体圆角规则的元素（头像等）不受影响；媒体容器同步弧角避免露角 */
img,video{border-radius:6px;}
.rc-media,.rc-cover,.rc-vempty{border-radius:6px;}

/* ===== 全站统一按钮风格（2026-11-12：对齐「发布交易/交换」页 .ex-btn）=====
   中等圆角 10px、绿渐变主按钮 .pri + 白底描边次按钮 .ghost、700 字重、红色角标 .bdg。
   不使用大弧角（药丸 99px）也不强求全直角，统一 10px 圆角。 */
.hh-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;border:0;border-radius:10px;padding:12px 16px;font-size:15px;font-weight:700;color:#fff;text-decoration:none;font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;line-height:1.2;}
.hh-btn:active{transform:translateY(1px);opacity:.92;}
.hh-btn.pri{background:linear-gradient(135deg,#1f8a4c,#14572f);}
.hh-btn.ghost{background:#fff;color:#1f8a4c;border:1.5px solid #cfe6d8;}
.hh-btn.block{width:100%;}
.hh-btn .bdg{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:10px;background:#e24b4a;color:#fff;font-size:11px;font-weight:700;}

/* PC 端（非 App 壳、非首页）统一「返回」按钮：桌面浏览器无滑动返回手势，给一个可见返回
   2026-11-20：按用户要求从左上角移到右下角，避免和顶部导航/横幅挤在一起 */
#hhPcBack{position:fixed;right:18px;bottom:22px;z-index:9990;display:none;align-items:center;gap:4px;
  padding:8px 14px;border:0;border-radius:10px;background:linear-gradient(135deg,#1f8a4c,#14572f);
  color:#fff;font-size:14px;font-weight:700;font-family:inherit;cursor:pointer;
  box-shadow:0 3px 10px rgba(23,110,60,.26);-webkit-tap-highlight-color:transparent;}
#hhPcBack:active{transform:translateY(1px);opacity:.92;}
html:not(.app-shell):not(.hh-is-home) #hhPcBack{display:inline-flex;}

/* 一键返回顶部（2026-11-20）：长内容页滚动超过阈值显示，位于 hhPcBack 上方，避免重叠。
   放 .content 外的常驻壳（layout.php），SPA 软导航换页不消失；滚动复位自动隐藏。 */
#hhBackTop{position:fixed;right:18px;bottom:78px;z-index:9989;display:none;align-items:center;justify-content:center;
  padding:9px 13px;border:1px solid rgba(31,138,76,.2);border-radius:22px;
  background:rgba(255,255,255,.96);color:#1f8a4c;font-size:13px;font-weight:700;font-family:inherit;cursor:pointer;
  box-shadow:0 3px 12px rgba(23,110,60,.18);-webkit-tap-highlight-color:transparent;
  backdrop-filter:blur(4px);}
#hhBackTop.is-on{display:inline-flex;}
#hhBackTop:active{transform:translateY(1px);opacity:.9;}
/* App 壳底部有 56px tabbar，按钮上移到 tabbar 之上；PWA 安装条出现时再让位 */
@media (max-width:860px){ #hhBackTop{right:12px;bottom:70px;padding:8px 12px;font-size:12px;} }
/* 聊天页 / 全屏媒体页（视频号·美景竖滑浏览）不需要返回顶部 */
html.hh-chat-page #hhBackTop,
body.hh-media-page #hhBackTop{display:none!important;}

/* ===== 会员志愿者认证符号（2026-11-12）：昵称后绿色 ✓，仅出现在昵称旁，头像处不加 ===== */
.mcv-badge{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;margin-left:3px;
  border-radius:50%;background:#1f8a4c;color:#fff;font-style:normal;font-size:10px;line-height:1;vertical-align:middle;
  box-shadow:0 0 0 1.5px rgba(255,255,255,.65);flex:0 0 auto;cursor:default;}
.m-a-name + .mcv-badge{margin-left:4px;}

/* ===== 内容付费推广：H币置顶 / 高亮（2026-11-15 十七修） =====
   置顶 = 列表排序权重 + 「置顶」角标；高亮 = 标题加粗变色 + 卡片描边。
   角标自带底色，不依赖主题；标题用深橙，白底 / 浅绿底卡片上都清晰可读。 */
.hh-promo-badge{display:inline-block;vertical-align:1px;margin-right:5px;padding:1px 6px;border-radius:4px;
  background:#c2540a;color:#fff;font-size:10.5px;font-weight:700;line-height:1.6;white-space:nowrap;}
.hh-promo-badge.hl{background:#b06a12;}
.hh-promo-hl{font-weight:800 !important;color:#c2540a !important;}
.hh-promo-card{border-color:#efb077 !important;box-shadow:0 2px 10px rgba(194,84,10,.10);}
/* 视频大卡的标题叠在深色画面上，用浅橙保证对比度 */
.rc-ov .hh-promo-hl{color:#ffce97 !important;}
