/* ============================================================
 * vip3mb00332 移动端 - 北理工深蓝主题
 * ============================================================ */
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0;background:#fff}
body{font:14px/1.6 "Microsoft YaHei","PingFang SC",sans-serif;color:#333;-webkit-font-smoothing:antialiased;overflow-x:hidden;padding-bottom:56px}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block;border:0}
ul,ol{list-style:none;margin:0;padding:0}
h1,h2,h3,h4,h5,h6{margin:0;font-weight:700}

/* === 顶栏 === */
.m-header{position:sticky;top:0;left:0;right:0;height:54px;background:#1d3a7a;padding:0 12px;display:flex;align-items:center;justify-content:space-between;z-index:80;box-shadow:0 1px 4px rgba(0,0,0,.1)}
.m-logo{display:flex;align-items:center;flex:1;color:#fff;gap:8px;overflow:hidden}
.m-logo img{width:34px;height:34px;border-radius:50%;background:#fff;padding:3px;flex-shrink:0;object-fit:contain}
.m-logo .brand{display:flex;flex-direction:column;line-height:1.15;overflow:hidden}
.m-logo .brand .cn{font-size:15px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.m-logo .brand .en{font-size:9px;color:#cfd8ee;letter-spacing:.5px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.m-search-btn,.m-menu-btn{width:38px;height:38px;background:transparent;border:0;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff;padding:0}
.m-search-btn::before{content:'';width:18px;height:18px;border:2px solid #fff;border-radius:50%;display:block;position:relative}
.m-search-btn::after{content:'';position:absolute;width:8px;height:2px;background:#fff;transform:translate(13px,12px) rotate(45deg)}
.m-menu-btn{flex-direction:column;gap:4px}
.m-menu-btn span{width:20px;height:2px;background:#fff;border-radius:1px;display:block}

/* 搜索框 */
.m-search-bar{position:fixed;top:54px;left:0;right:0;background:#1d3a7a;padding:0 12px;height:0;overflow:hidden;transition:height .25s;z-index:70}
.m-search-bar.on{height:54px;padding:8px 12px}
.m-search-bar form{display:flex;background:#fff;border-radius:4px;overflow:hidden}
.m-search-bar input{flex:1;border:0;padding:0 12px;font-size:14px;outline:none;height:38px}
.m-search-bar button{background:#1d3a7a;color:#fff;border:0;padding:0 18px;font-size:14px}

/* 抽屉 */
.m-drawer-mask{position:fixed;inset:0;background:rgba(0,0,0,.45);opacity:0;visibility:hidden;transition:all .25s;z-index:90}
.m-drawer-mask.on{opacity:1;visibility:visible}
.m-drawer{position:fixed;top:0;right:-280px;width:280px;height:100%;background:#fff;transition:right .25s;z-index:100;overflow-y:auto}
.m-drawer.on{right:0}
.m-drawer .d-head{background:#1d3a7a;color:#fff;padding:18px;font-size:16px;font-weight:600;letter-spacing:1px}
.m-drawer .d-menu li a{display:block;padding:14px 18px;border-bottom:1px solid #f0f0f0;font-size:15px;color:#222}
.m-drawer .d-menu li.on a,.m-drawer .d-menu li a:active{background:#f3f6fc;color:#1d3a7a}

/* === Banner === */
.m-banner{margin-bottom:0}
.m-banner .swiper-container{height:200px}
.m-banner .swiper-slide{background-position:center;background-size:cover}
.m-banner .swiper-slide img{width:100%;height:100%;object-fit:cover}
.m-banner .swiper-pagination-bullet{background:rgba(255,255,255,.6);opacity:1}
.m-banner .swiper-pagination-bullet-active{background:#fff}

/* === 通用区块 === */
.m-section{padding:30px 12px;background:#fff}
.m-section.cream{background:#f3eee2}
.m-section.dark{background:linear-gradient(180deg,#1c3470 0%,#15275a 100%);color:#fff}
.m-sec-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:20px;padding-bottom:10px;border-bottom:1px solid #e0e6f0}
.m-sec-head h2{font-size:20px;color:#1d3a7a;letter-spacing:3px;font-weight:700}
.m-sec-head em{font-style:normal;font-size:11px;color:#888;display:block;margin-top:4px;letter-spacing:1px}
.m-sec-head .more{font-size:12px;color:#888}
.m-section.dark .m-sec-head h2{color:#fff}
.m-section.dark .m-sec-head em{color:#a8b8d8}
.m-section.dark .m-sec-head{border-color:rgba(255,255,255,.15)}

/* === 焦点关注 === */
.m-focus{display:flex;flex-direction:column;gap:12px}
.m-focus .big{position:relative;background:#fff;border-radius:3px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.1)}
.m-focus .big .pic{height:200px;background:#dfe5f0}
.m-focus .big .pic img{width:100%;height:100%;object-fit:cover}
.m-focus .big .cap{padding:14px}
.m-focus .big .cap h3{font-size:15px;color:#222;line-height:1.5;font-weight:600;margin-bottom:8px}
.m-focus .big .cap .date{font-size:12px;color:#888}
.m-focus .small{display:grid;grid-template-columns:120px 1fr;gap:12px;background:#fff;border-radius:3px;padding:10px;box-shadow:0 1px 6px rgba(0,0,0,.06)}
.m-focus .small .pic{width:120px;height:80px;background:#dfe5f0;border-radius:3px;overflow:hidden}
.m-focus .small .pic img{width:100%;height:100%;object-fit:cover}
.m-focus .small h4{font-size:14px;color:#222;line-height:1.45;font-weight:600;margin-bottom:8px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.m-focus .small .date{font-size:11px;color:#888}

/* === 北理新闻 grid === */
.m-news-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.m-news-grid .news-card{position:relative;background:#fff;border-radius:3px;padding:30px 12px 14px;box-shadow:0 1px 6px rgba(0,0,0,.06)}
.m-news-grid .news-card .badge{position:absolute;left:50%;transform:translateX(-50%);top:0;background:#2a4d96;color:#fff;padding:4px 10px;font-size:11px;border-radius:0 0 2px 2px;line-height:1.2}
.m-news-grid .news-card h3{font-size:13px;color:#222;font-weight:600;line-height:1.5;margin-bottom:6px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.m-news-grid .news-card p{font-size:12px;color:#666;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}

/* === 教学科研 === */
.m-research{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.m-research .paper{background:#fff;border-radius:2px;padding:10px;box-shadow:0 1px 6px rgba(0,0,0,.06)}
.m-research .paper .pic{height:120px;background:#f4f4f4;margin-bottom:8px;overflow:hidden;border-radius:2px}
.m-research .paper .pic img{width:100%;height:100%;object-fit:cover}
.m-research .paper h4{font-size:13px;color:#222;line-height:1.5;font-weight:600;margin-bottom:6px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.m-research .paper .date{font-size:11px;color:#888}

/* === 媒体北理 / 全媒体窗 === */
.m-media-list{display:flex;flex-direction:column;gap:14px}
.m-media-list .item{padding-top:8px;border-top:2px solid #5a8bd8}
.m-media-list .item.green{border-color:#5fc26b}
.m-media-list .item.red{border-color:#e53e3e}
.m-media-list .item.yellow{border-color:#e6b450}
.m-media-list .item .src{display:flex;justify-content:space-between;font-size:12px;color:#5a8bd8;font-weight:600;margin-bottom:6px}
.m-media-list .item.green .src{color:#5fc26b}
.m-media-list .item.red .src{color:#e53e3e}
.m-media-list .item.yellow .src{color:#e6b450}
.m-media-list .item .src .date{color:#cfd8ee;font-weight:400}
.m-media-list .item h4{color:#fff;font-size:14px;line-height:1.5;font-weight:600;margin-bottom:6px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.m-media-list .item p{color:#cfd8ee;font-size:12px;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.m-allmedia{margin-top:20px}
.m-allmedia .video{position:relative;border-radius:3px;overflow:hidden;background:#000;aspect-ratio:16/10;display:block}
.m-allmedia .video img{width:100%;height:100%;object-fit:cover}
.m-allmedia .video .play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.85);color:#1d3a7a;display:flex;align-items:center;justify-content:center;font-size:18px}

/* === 数据北理 === */
.m-stats{padding:40px 12px;background:#0c1635 url("../images/star-bg.jpg") center/cover no-repeat;color:#fff;position:relative}
.m-stats::before{content:'';position:absolute;inset:0;background:rgba(12,22,53,.7)}
.m-stats .container{position:relative;z-index:2}
.m-stats .h{text-align:center;margin-bottom:24px}
.m-stats .h h2{font-size:22px;letter-spacing:3px}
.m-stats .h em{font-style:normal;font-size:12px;color:#a8b8d8;margin-top:4px;display:block}
.m-stats .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.m-stats .it{aspect-ratio:1;border:1px solid rgba(255,255,255,.4);border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:rgba(255,255,255,.04)}
.m-stats .it .n{font-size:22px;font-weight:700;line-height:1}
.m-stats .it .lbl{font-size:11px;color:#cfd8ee;margin-top:4px;line-height:1.3}

/* === 北理专题 === */
.m-topics{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.m-topics .topic{aspect-ratio:16/9;border-radius:3px;overflow:hidden;position:relative;background:#9b1c1c}
.m-topics .topic img{width:100%;height:100%;object-fit:cover}
.m-topics .topic .mask{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:700;text-align:center;padding:0 8px;background:rgba(0,0,0,.2)}

/* === 校务公开 === */
.m-affair{display:flex;flex-direction:column;gap:14px;margin-bottom:20px}
.m-affair .item{background:#fff;border-radius:3px;padding:14px;box-shadow:0 1px 6px rgba(0,0,0,.06)}
.m-affair .item .h{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;padding-bottom:6px;border-bottom:2px solid #1d3a7a;width:60px}
.m-affair .item .h h4{font-size:13px;color:#1d3a7a;font-weight:700}
.m-affair .item .date{font-size:11px;color:#888;margin-bottom:6px}
.m-affair .item p{font-size:13px;color:#222;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.m-quick-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.m-quick-grid a{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;aspect-ratio:1;border-radius:3px;padding:6px;font-size:11px;color:#444;border:1px solid #f0eadb}
.m-quick-grid a .ic{width:30px;height:30px;border-radius:6px;border:1px solid currentColor;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;margin-bottom:4px}
.m-quick-grid a.c1{color:#5a8bd8}.m-quick-grid a.c2{color:#3aa8e0}.m-quick-grid a.c3{color:#e54d4d}
.m-quick-grid a.c4{color:#3aa8e0}.m-quick-grid a.c5{color:#e54d4d}.m-quick-grid a.c6{color:#e6892b}
.m-quick-grid a.c7{color:#5a8bd8}.m-quick-grid a.c8{color:#a3852e}.m-quick-grid a.c9{color:#e6b450}.m-quick-grid a.c10{color:#5fc26b}

/* === 宣传图墙 === */
.m-promo-strip{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.m-promo-strip .promo{aspect-ratio:16/9;border-radius:3px;overflow:hidden;position:relative;background:#9b1c1c}
.m-promo-strip .promo img{width:100%;height:100%;object-fit:cover;opacity:.85}
.m-promo-strip .promo span{position:absolute;left:10px;top:10px;background:#9b1c1c;color:#fff;font-size:12px;font-weight:600;padding:2px 8px;border-radius:1px}

/* === 友情链接 === */
.m-flinks{background:#1d3a7a;color:#cfd8ee;padding:18px 12px}
.m-flinks .label{display:block;color:#fff;font-weight:700;font-size:14px;margin-bottom:10px;letter-spacing:1px}
.m-flinks ul{display:flex;flex-wrap:wrap;list-style:none;padding:0;margin:0;gap:6px 0}
.m-flinks ul li{display:list-item;list-style:none;list-style-type:none;margin:0;padding:0}
.m-flinks ul li::marker{content:"";display:none;color:transparent;font-size:0}
.m-flinks a,.m-flinks ul li a{color:#cfd8ee;font-size:12px;padding:4px 10px;display:inline-block;border-right:1px solid rgba(255,255,255,.25);text-decoration:none;line-height:1.3}
.m-flinks ul li:last-child a{border-right:0}
.m-flinks a:hover{color:#fff}

/* === 页脚 === */
.m-footer{background:#102357;color:#a3b3d6;padding:18px 12px 22px;text-align:center;font-size:12px;line-height:2}
.m-footer p{margin:0}
.m-footer a{color:#cfd8ee}
.m-footer strong{color:#fff;font-weight:600}
.m-footer .beian a{color:#cfd8ee}

/* === 固定底栏 === */
.m-fixbar{position:fixed;left:0;right:0;bottom:0;display:flex;background:#1d3a7a;height:54px;z-index:60;box-shadow:0 -1px 8px rgba(0,0,0,.18)}
.m-fixbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;font-size:11px;line-height:1.2}
.m-fixbar a i{font-style:normal;font-size:18px;margin-bottom:2px}
.m-fixbar a:active{background:#2a4d96}

/* === 列表/文章页 === */
.m-page{padding:14px 12px}
.m-crumb{font-size:12px;color:#888;margin-bottom:12px;padding:8px 12px;background:#f3f5f8;border-radius:2px}
.m-crumb a{color:#888}
.m-list{background:#fff;border-radius:3px;padding:0 12px;box-shadow:0 1px 6px rgba(0,0,0,.06)}
.m-list li{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px dashed #eee;gap:10px}
.m-list li::before{content:'';width:5px;height:5px;border-radius:50%;background:#1d3a7a;flex-shrink:0}
.m-list li:last-child{border-bottom:0}
.m-list li a{flex:1;font-size:14px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-list li .date{font-size:11px;color:#999;flex-shrink:0}
.m-pagelist{margin-top:16px;text-align:center}
.m-pagelist a,.m-pagelist span{display:inline-block;padding:5px 10px;margin:2px;border:1px solid #e0e0e0;font-size:12px;border-radius:2px;color:#555}
.m-pagelist .thisclass{background:#1d3a7a;color:#fff;border-color:#1d3a7a}

.m-article{background:#fff;border-radius:3px;padding:18px 14px;box-shadow:0 1px 6px rgba(0,0,0,.06)}
.m-article h1{font-size:18px;color:#222;line-height:1.45;margin-bottom:10px;font-weight:700}
.m-article .meta{font-size:12px;color:#999;padding-bottom:12px;border-bottom:1px solid #eee;margin-bottom:14px}
.m-article .meta span{margin-right:12px}
.m-article .body{font-size:14px;line-height:1.8;color:#333}
.m-article .body p{margin:0 0 12px}
.m-article .body img{margin:8px auto;height:auto}
