/* ============================================================
 * 中国教育科研信息网 · 移动端(H5)共享样式
 * 视觉规范沿用 PC 站配色：主蓝 #0E4DA4 + 暖金 #E8A33D
 * 首页为政务新闻门户范式：蓝头 + 头条焦点 + 分类列表
 * ============================================================ */
:root{
  --m-primary:#0E4DA4;        /* PC 站主蓝 */
  --m-primary2:#0A3A82;       /* 深蓝：渐变、按压态 */
  --m-primary3:#3A7BD5;       /* 亮蓝：浅底占位 */
  --m-accent:#E8A33D;         /* PC 站暖金：强调点缀 */
  --m-bg:#F4F4F4;             /* 浅灰底 */
  --m-card:#fff; --m-text:#222; --m-sub:#888;
  --m-line:#E6E6E6; --m-safe:env(safe-area-inset-bottom);
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
html,body{margin:0;padding:0;}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  background:var(--m-bg); color:var(--m-text); font-size:15px; line-height:1.6;
  -webkit-text-size-adjust:100%;
}
img{max-width:100%; height:auto; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit;}

/* ===== 顶部应用栏（PC 主蓝 实色页头） ===== */
.m-topbar{
  position:sticky; top:0; z-index:50;
  background:var(--m-primary); color:#fff;
  padding:10px 12px 11px;
  display:flex; flex-direction:column; gap:9px;
  box-shadow:0 1px 0 rgba(0,0,0,.08), 0 2px 8px rgba(14,77,164,.20);
}
.m-topbar .m-top-row{display:flex; align-items:center; gap:8px;}
.m-topbar .logo{height:30px; width:auto; border-radius:6px; background:#fff; padding:2px;}
.m-topbar .t1{font-size:16px; font-weight:700; line-height:1.1; letter-spacing:.5px;}
/* 官网毛笔书法标题：白底图放在蓝头上的白圆角底牌，避免白方块 */
.m-topbar .t1logo-wrap{background:#fff; padding:5px 10px; border-radius:8px; display:flex; align-items:center; box-shadow:0 1px 3px rgba(0,0,0,.12); flex:0 1 auto; max-width:calc(100% - 150px); overflow:hidden;}
.m-topbar .t1logo{height:21px; width:auto; display:block; max-width:100%;}
.m-topbar .t2{font-size:11px; opacity:.9; line-height:1.1; margin-top:2px;}
.m-topbar .spacer{flex:1;}
/* 页头按钮统一尺寸：搜索按钮与登录按钮一样大 */
.m-topbar .home{
  flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center;
  height:34px; min-width:62px; padding:0 16px; border-radius:18px;
  font-size:14px; font-weight:700; color:#fff;
  background:var(--m-accent);                        /* 登录变色：暖金，醒目 */
  box-shadow:0 2px 8px rgba(232,163,61,.38);
  text-decoration:none;
}
.m-topbar .home:active{filter:brightness(.95);}
/* 登录后不一样：退出＝白色描边；后台＝浅色实心 */
.m-topbar .home.home-out{background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.6); box-shadow:none;}
.m-topbar .home.home-out:active{background:rgba(255,255,255,.26);}
.m-topbar .home.home-adm{background:rgba(255,255,255,.92); color:var(--m-primary); box-shadow:none;}
.m-topbar .home.home-adm:active{background:#fff;}
/* 页头内搜索条：淡白胶囊，搜索按钮与登录按钮同尺寸 */
.m-hsearch{display:flex; gap:8px; align-items:center;}
.m-hsearch input{
  flex:1; min-width:0; height:34px; border-radius:18px; padding:0 15px; font-size:14px;
  border:1px solid rgba(255,255,255,.28); background:rgba(255,255,255,.15); color:#fff; outline:none;
  transition:background .2s, border-color .2s, color .2s;
}
.m-hsearch input::placeholder{color:rgba(255,255,255,.72);}
.m-hsearch input:focus{background:#fff; color:#333; border-color:#fff;}
.m-hsearch input:focus::placeholder{color:#aab0b8;}
.m-hsearch button{
  flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center;
  height:34px; min-width:62px; padding:0 16px; border-radius:18px; border:none;
  font-size:14px; font-weight:700; color:var(--m-primary); background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.m-hsearch button:active{filter:brightness(.96);}

/* ===== 内容容器 ===== */
.m-body{padding:12px 12px calc(16px + var(--m-safe));}
.m-hasshare{padding-bottom:calc(72px + var(--m-safe));}

/* ===== 通用卡片（扁平、浅描边） ===== */
.m-card{background:var(--m-card); border:1px solid var(--m-line); border-radius:10px; padding:14px; margin-bottom:12px;}

/* ===== 头条焦点（图片新闻式） ===== */
.m-focus{margin-bottom:12px;}
.m-focus-a{display:block; border-radius:10px; overflow:hidden; box-shadow:0 1px 6px rgba(0,0,0,.08);}
.m-focus-img{position:relative; min-height:152px; background:linear-gradient(135deg,#0A3A82,#0E4DA4); background-size:cover; background-position:center; display:flex; align-items:flex-end;}
.m-focus-mask{position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,.74) 0%,rgba(0,0,0,.18) 58%,rgba(0,0,0,0) 100%);}
.m-focus-cap{position:relative; padding:14px 14px 13px; color:#fff; width:100%;}
.m-focus-tag{display:inline-block; background:var(--m-accent); color:#fff; font-size:11px; padding:2px 8px; border-radius:3px; margin-bottom:7px; font-weight:700;}
.m-focus-t{font-size:18px; font-weight:700; line-height:1.42; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-shadow:0 1px 2px rgba(0,0,0,.3);}
.m-focus-d{font-size:12px; opacity:.85; margin-top:6px;}

/* ===== 头条轮播（自动轮播 + 手指滑动 + 圆点） ===== */
.m-carousel{position:relative; border-radius:10px; overflow:hidden; box-shadow:0 1px 6px rgba(0,0,0,.08); margin-bottom:12px;}
.m-carousel-track{display:flex; transition:transform .42s cubic-bezier(.22,.61,.36,1); will-change:transform;}
.m-cs{position:relative; flex:0 0 100%; min-height:170px; background:linear-gradient(135deg,#0A3A82,#0E4DA4); background-size:cover; background-position:center; display:flex; align-items:flex-end; overflow:hidden;}
.m-cs-mask{position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,.76) 0%,rgba(0,0,0,.20) 56%,rgba(0,0,0,0) 100%);}
.m-cs-cap{position:relative; padding:16px 16px 15px; color:#fff; width:100%;}
.m-cs-tag{display:inline-block; background:var(--m-accent); color:#fff; font-size:11px; padding:2px 8px; border-radius:3px; margin-bottom:8px; font-weight:700;}
.m-cs-t{font-size:18px; font-weight:700; line-height:1.42; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-shadow:0 1px 2px rgba(0,0,0,.3);}
.m-cs-d{font-size:12px; opacity:.85; margin-top:6px;}
.m-carousel-dots{position:absolute; right:12px; bottom:10px; display:flex; gap:5px; z-index:2;}
.m-carousel-dots i{width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.55); transition:width .3s,background .3s;}
.m-carousel-dots i.on{width:16px; border-radius:3px; background:#fff;}

/* ===== 栏目滚动淡入（JS 支持才生效） ===== */
.m-reveal .m-sec{opacity:0; transform:translateY(18px); transition:opacity .5s ease, transform .5s ease;}
.m-reveal .m-sec.in{opacity:1; transform:none;}

/* ===== 返回顶部 ===== */
.m-totop{position:fixed; right:14px; bottom:calc(20px + var(--m-safe)); width:42px; height:42px; border-radius:50%; background:var(--m-primary); color:#fff; font-size:20px; line-height:42px; text-align:center; box-shadow:0 4px 14px rgba(14,77,164,.32); z-index:60; display:none; cursor:pointer;}
.m-totop.on{display:block; animation:pop .2s ease;}
@keyframes pop{from{opacity:0; transform:scale(.7)}to{opacity:1; transform:scale(1)}}

/* ===== 下拉刷新提示（位于页头正下方，默认高度 0 隐藏） ===== */
.m-pull{position:absolute; left:0; right:0; top:100px; height:0; overflow:hidden;
  display:flex; align-items:center; justify-content:center; gap:6px;
  font-size:13px; color:var(--m-sub); z-index:45; pointer-events:none;}
.m-pull .spin{margin-right:0; vertical-align:-3px;}

/* ===== 快捷服务（文字条，含登录） ===== */
.m-quick{text-align:center; padding:4px 0 12px; margin-bottom:6px;}
.m-quick a{font-size:15px; color:var(--m-primary); font-weight:600; letter-spacing:1px;}
.m-quick a:active{opacity:.65;}

/* ===== 分类 tab（蓝下划线） ===== */
.m-cattabs{display:flex; gap:0; overflow-x:auto; border-bottom:2px solid var(--m-line); margin:4px 0 2px; scrollbar-width:none; -webkit-overflow-scrolling:touch;}
.m-cattabs::-webkit-scrollbar{display:none;}
.m-cattabs .tab{flex:0 0 auto; padding:10px 13px; font-size:15px; color:#555; position:relative; white-space:nowrap;}
.m-cattabs .tab.on{color:var(--m-primary); font-weight:700;}
.m-cattabs .tab.on::after{content:""; position:absolute; left:13px; right:13px; bottom:-2px; height:3px; background:var(--m-primary); border-radius:2px;}

/* ===== 新闻列表行（标题左 + 日期右 MM-DD） ===== */
.m-newslist{background:var(--m-card); border:1px solid var(--m-line); border-radius:8px; padding:2px 12px;}
.m-row{display:flex; align-items:center; gap:10px; padding:13px 2px; border-bottom:1px solid var(--m-line);}
.m-row:last-child{border-bottom:none;}
.m-row:active{background:#fafafa;}
.m-row .tt{flex:1; min-width:0; font-size:15px; color:#222; line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.m-row .dt{flex:0 0 auto; font-size:12px; color:#999; padding-left:6px;}

/* ===== 栏目资讯分区（教育部式竖向堆叠板块） ===== */
.m-sec{background:var(--m-card); border:1px solid var(--m-line); border-radius:8px; margin-bottom:12px; overflow:hidden;}
.m-sec-h{display:flex; align-items:center; padding:11px 12px 9px; border-bottom:1px solid var(--m-line);}
.m-sec-h .bar{width:4px; height:16px; background:var(--m-primary); border-radius:2px; margin-right:8px;}
.m-sec-h .nm{font-size:16px; font-weight:700; color:var(--m-text);}
.m-sec-h .more{margin-left:auto; font-size:12px; color:var(--m-primary);}
.m-sec-b{padding:2px 12px;}
.m-sec-b .m-row{padding:12px 0; border-bottom:1px solid var(--m-line);}
.m-sec-b .m-row:last-child{border-bottom:none;}
.m-sec-b .dt{flex:0 0 auto; font-size:12px; color:var(--m-primary); font-weight:600; padding-right:8px; padding-left:0;}
.m-morewrap{padding:12px 0 8px;}

/* ===== 区块标题（蓝条 + 深字） ===== */
.m-sec-t{font-size:16px; font-weight:700; color:var(--m-text); margin:18px 4px 10px; display:flex; align-items:center;}
.m-sec-t::before{content:""; width:4px; height:17px; border-radius:2px; background:var(--m-primary); margin-right:8px;}

/* ===== 栏目 chips 横向滚动 ===== */
.m-chips{display:flex; gap:8px; overflow-x:auto; padding:2px 2px 8px; scrollbar-width:none; -webkit-overflow-scrolling:touch;}
.m-chips::-webkit-scrollbar{display:none;}
.m-chip{flex:0 0 auto; background:var(--m-card); border:1px solid var(--m-line); border-radius:4px; padding:7px 14px; font-size:13px; color:var(--m-sub); white-space:nowrap;}
.m-chip.on{background:var(--m-primary); color:#fff; border-color:var(--m-primary);}

/* ===== 资讯列表项（干净分隔线） ===== */
.m-news{display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--m-line);}
.m-news:active{opacity:.7;}
.m-news .thumb{width:96px; height:72px; flex:0 0 96px; border-radius:6px; overflow:hidden; background:linear-gradient(135deg,var(--m-primary),var(--m-primary3)); display:flex; align-items:center; justify-content:center; color:#fff; font-size:22px; font-weight:700;}
.m-news .thumb img{width:100%; height:100%; object-fit:cover;}
.m-news .info{flex:1; min-width:0;}
.m-news .ti{font-size:15px; font-weight:600; color:var(--m-text); line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.m-news .me{margin-top:8px; font-size:12px; color:var(--m-sub); display:flex; justify-content:space-between; align-items:center;}
.m-news .me .src{background:#E9F0FA; color:var(--m-primary); padding:1px 8px; border-radius:3px; font-size:11px;}

/* ===== 加载/空态 ===== */
.m-load{text-align:center; color:var(--m-sub); font-size:13px; padding:14px;}
.m-empty{text-align:center; color:var(--m-sub); padding:34px 16px; font-size:14px;}
.m-more{width:100%; height:44px; border:1px solid var(--m-line); background:#fff; border-radius:6px; color:var(--m-primary); font-size:15px;}
.spin{display:inline-block; width:16px; height:16px; border:2px solid var(--m-line); border-top-color:var(--m-primary); border-radius:50%; animation:sp .7s linear infinite; vertical-align:-3px; margin-right:6px;}
@keyframes sp{to{transform:rotate(360deg)}}

/* ===== 搜索条（柔和胶囊：淡描边 + 浅灰底 + 圆角，去除硬方框） ===== */
.m-search{display:flex; gap:8px; margin-bottom:10px; align-items:center;}
.m-search input{flex:1; height:40px; border:1px solid #ECEEF1; border-radius:20px; padding:0 16px; font-size:14px; background:#F6F7F9; color:#333; outline:none; transition:border-color .2s,background .2s;}
.m-search input::placeholder{color:#B6BAC1;}
.m-search input:focus{border-color:var(--m-primary3); background:#fff;}
.m-search button{width:70px; height:40px; border:none; border-radius:20px; background:linear-gradient(135deg,var(--m-primary),var(--m-primary3)); color:#fff; font-size:14px; box-shadow:0 2px 8px rgba(14,77,164,.18);}
.m-search button:active{filter:brightness(.95);}

/* ===== 文章详情 ===== */
.m-art-title{font-size:21px; font-weight:800; color:var(--m-text); line-height:1.4; margin:4px 0 10px;}
.m-art-meta{font-size:12px; color:var(--m-sub); margin-bottom:14px; padding-bottom:12px; border-bottom:1px solid var(--m-line);}
.m-art-body{font-size:16px; line-height:1.9; color:#333; word-wrap:break-word; overflow-wrap:break-word;}
.m-art-body img{max-width:100% !important; height:auto !important; border-radius:6px; margin:10px 0;}
.m-art-body table{max-width:100% !important; overflow-x:auto; display:block;}
.m-art-body p{margin:0 0 12px;}
.m-art-body a{color:var(--m-primary); text-decoration:underline;}

/* ===== 底部固定分享条（贴底，无导航栏时；按钮带图标） ===== */
.m-sharebar{position:fixed; left:0; right:0; bottom:var(--m-safe); z-index:40; padding:0 12px; display:flex; gap:10px;}
.m-sharebar button{
  flex:1; height:46px; border:none; border-radius:23px; font-size:15px; font-weight:600; color:#fff;
  background:var(--m-primary); box-shadow:0 4px 14px rgba(14,77,164,.28);
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
}
.m-sharebar button svg{width:19px; height:19px; flex:0 0 19px; fill:currentColor;}
.m-sharebar .wx{background:#07C160; box-shadow:0 4px 14px rgba(7,193,96,.30);}
.m-sharebar button:active{filter:brightness(.95);}

/* ===== 文末分享：红色发光文字（正文下面一行） ===== */
.m-share-txt{text-align:center; padding:26px 0 36px; -webkit-tap-highlight-color:transparent; cursor:pointer;}
.m-share-txt span{
  display:inline-block; color:#E62E2E; font-size:19px; font-weight:800;
  letter-spacing:9px; text-indent:9px; padding:4px 8px;
  animation:shareGlow 1.5s ease-in-out infinite;
}
.m-share-txt span:active{transform:scale(.94);}
@keyframes shareGlow{
  0%,100%{ opacity:.74; text-shadow:0 0 4px rgba(230,46,46,.45), 0 0 10px rgba(230,46,46,.22); }
  50%    { opacity:1;   text-shadow:0 0 8px rgba(230,46,46,.95), 0 0 20px rgba(230,46,46,.60), 0 0 34px rgba(230,46,46,.32); }
}

/* ===== 分享卡预览（复刻微信卡片：标题 + 右下缩略图 + 底部来源） ===== */
.m-card{background:#F2F3F5; border:1px solid #E7E9ED; border-radius:12px; padding:14px 14px 11px; margin-bottom:14px;}
.m-card-t{font-size:18px; line-height:1.45; font-weight:600; color:#1F2329; margin-bottom:12px; word-break:break-word;}
.m-card-b{display:flex; align-items:flex-end; gap:10px;}
.m-card-src{flex:1; min-width:0; display:flex; align-items:center; gap:6px; font-size:12px; color:#9AA0A6;}
.m-card-src svg{width:14px; height:14px; flex:0 0 14px; fill:#B9BFC6;}
.m-card-src span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.m-card-img{width:72px; height:72px; flex:0 0 72px; border-radius:8px; overflow:hidden; background:#E8EAEE;}
.m-card-img img{width:100%; height:100%; object-fit:cover; display:block;}

/* ===== 分享底部弹层 ===== */
.m-sheet-mask{position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:90; display:none; align-items:flex-end;}
.m-sheet-mask.on{display:flex;}
.m-sheet{background:#fff; width:100%; border-radius:16px 16px 0 0; padding:16px 16px calc(16px + var(--m-safe)); animation:up .2s ease;}
@keyframes up{from{transform:translateY(100%)}to{transform:translateY(0)}}
.m-sheet h4{margin:0 0 12px; font-size:15px; text-align:center; color:var(--m-text);}
.m-sheet .row{display:flex; gap:12px; margin-bottom:14px;}
.m-sheet .row a, .m-sheet .row button{
  flex:1; height:48px; border:none; border-radius:10px; font-size:15px; font-weight:600; color:#fff;
  background:var(--m-primary);
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
}
.m-sheet .row svg{width:18px; height:18px; flex:0 0 18px; fill:currentColor;}
.m-sheet .row .wx{background:#07C160;}
.m-sheet .row .cp{background:var(--m-primary2);}
.m-sheet .tip{font-size:12px; color:var(--m-sub); text-align:center; line-height:1.7;}
.m-sheet .close{text-align:center; color:var(--m-sub); font-size:15px; margin-top:6px; padding:8px;}

/* ===== 新闻分类 tab（后台/新闻页复用） ===== */
.m-tabs{display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap;}
.m-tab-pill{flex:1; min-width:64px; text-align:center; padding:9px 0; border-radius:6px; background:var(--m-card); border:1px solid var(--m-line); font-size:14px; color:var(--m-sub);}
.m-tab-pill.on{background:var(--m-primary); color:#fff; border-color:var(--m-primary); font-weight:600;}

/* ===== 报名表列表 ===== */
.m-bm{display:flex; align-items:center; gap:12px; padding:14px; background:var(--m-card); border:1px solid var(--m-line); border-radius:10px; margin-bottom:12px;}
.m-bm .ic{width:46px; height:46px; flex:0 0 46px; border-radius:10px; background:linear-gradient(135deg,var(--m-primary),var(--m-primary3)); color:#fff; display:flex; align-items:center; justify-content:center; font-size:22px;}
.m-bm .tx{flex:1; min-width:0;}
.m-bm .tx .t{font-size:16px; font-weight:600; color:var(--m-text);}
.m-bm .tx .s{font-size:12px; color:var(--m-sub); margin-top:2px;}
.m-bm .ar{color:var(--m-sub); font-size:18px;}

/* ===== 后台入口 ===== */
.m-adm-btn{display:flex; align-items:center; gap:12px; padding:16px 14px; background:var(--m-card); border:1px solid var(--m-line); border-radius:10px; margin-bottom:12px;}
.m-adm-btn .ic{font-size:24px;}
.m-adm-btn .tx .t{font-size:16px; font-weight:600;}
.m-adm-btn .tx .s{font-size:12px; color:var(--m-sub); margin-top:2px;}
.m-adm-btn .ar{margin-left:auto; color:var(--m-sub); font-size:18px;}

/* ===== 底部导航栏（已按需求移除 2026-11-15） ===== */

/* ---------- 栏目文章缩略图卡片（2026-11-16：首页/搜索列表加缩略图） ---------- */
.m-row-thumb{display:flex; align-items:center; gap:12px; padding:12px 0;}
.m-row-thumb .thumb{flex:0 0 88px; width:88px; height:66px; border-radius:6px; overflow:hidden; background:#E8EAEE;}
.m-row-thumb .thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.m-row-thumb .txt{flex:1; min-width:0; display:flex; flex-direction:column; gap:6px;}
.m-row-thumb .txt .tt{font-size:15px; color:#222; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.m-row-thumb .txt .dt{font-size:12px; color:#999;}
