/* 手机端样式 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; background: #f5f5f5; color: #333; font-size: 14px; margin: 0; }

/* 顶部导航 */
.m-header { background: #c0392b; display: flex; align-items: center; height: 50px; padding: 0 12px; position: sticky; top: 0; z-index: 100; }
.m-logo { color: #fff; font-size: 18px; font-weight: bold; text-decoration: none; flex: 1; }
.m-search-btn, .m-menu-btn { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; padding: 0 8px; }

/* 手机端导航菜单 */
.m-nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 99; }
.m-nav-overlay.active { display: block; }
.m-nav { position: fixed; top: 0; left: -260px; width: 260px; height: 100vh; background: #2c3e50; z-index: 100; transition: left .3s; overflow-y: auto; padding-top: 50px; }
.m-nav.active { left: 0; }
.m-nav ul { list-style: none; padding: 0; margin: 0; }
.m-nav ul li a { display: block; color: #ccc; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.1); text-decoration: none; font-size: 15px; }
.m-nav ul li a:hover { background: #c0392b; color: #fff; }

/* 容器 */
.m-container { padding: 10px 12px; }

/* 新闻列表 */
.m-news-list { list-style: none; padding: 0; margin: 0; }
.m-news-item { background: #fff; border-radius: 6px; padding: 12px; margin-bottom: 10px; display: flex; gap: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.m-news-thumb { flex-shrink: 0; }
.m-news-thumb img { width: 90px; height: 65px; object-fit: cover; border-radius: 4px; }
.m-news-body { flex: 1; min-width: 0; }
.m-news-title { font-size: 14px; margin: 0 0 6px 0; line-height: 1.4; }
.m-news-title a { color: #222; text-decoration: none; }
.m-news-meta { color: #aaa; font-size: 12px; }
.m-news-meta span { margin-right: 8px; }

/* 详情页 */
.m-article-h1 { font-size: 18px; font-weight: bold; line-height: 1.5; margin: 0 0 10px 0; }
.m-article-meta { color: #999; font-size: 12px; padding: 8px 0; border-bottom: 1px solid #eee; margin-bottom: 12px; }
.m-article-content { line-height: 1.8; font-size: 15px; }
.m-article-content img { max-width: 100%; height: auto; display: block; margin: 8px auto; }
.m-article-content p { margin-bottom: 10px; }

/* 标题块 */
.m-block-title { font-size: 16px; font-weight: bold; margin: 12px 0 8px 0; padding-left: 10px; border-left: 3px solid #c0392b; }

/* 热门列表 */
.m-hot-list { list-style: none; padding: 0; margin: 0; background: #fff; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; }
.m-hot-list li { padding: 8px 0; border-bottom: 1px dashed #eee; }
.m-hot-list li:last-child { border-bottom: none; }
.m-hot-list li a { color: #333; text-decoration: none; font-size: 13px; line-height: 1.5; }
.m-hot-list li a:hover { color: #c0392b; }

/* ====== 轮播幻灯片 ====== */
.m-slider { position: relative; border-radius: 8px; overflow: hidden; margin-bottom: 15px; background: #ddd; }
.m-slider-track { display: flex; transition: transform .35s ease; }
.m-slider-item { flex: 0 0 100%; position: relative; }
.m-slider-item a { display: block; }
.m-slider-item img { width: 100%; height: 200px; object-fit: cover; display: block; }
.m-slider-noimg { width: 100%; height: 200px; background: linear-gradient(135deg, #c0392b, #e74c3c); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: bold; }
.m-slider-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; padding: 30px 12px 10px; font-size: 14px; line-height: 1.4; }
.m-slider-dots { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.m-slider-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); transition: all .3s; }
.m-slider-dots span.active { background: #fff; width: 18px; border-radius: 3px; }

/* ====== 分类区块 ====== */
.m-section { margin-bottom: 15px; }
.m-section-hd { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 8px 0; }
.m-section-title { font-size: 16px; font-weight: bold; padding-left: 10px; border-left: 3px solid #c0392b; }
.m-section-more { font-size: 12px; color: #c0392b; text-decoration: none; padding-right: 2px; }
.m-section-more:hover { text-decoration: underline; }

/* ====== 热门排行榜 ====== */
.m-hot-rank { list-style: none; padding: 0; margin: 0; background: #fff; border-radius: 6px; }
.m-hot-rank li { display: flex; align-items: center; padding: 11px 12px; border-bottom: 1px solid #f0f0f0; }
.m-hot-rank li:last-child { border-bottom: none; border-radius: 0 0 6px 6px; }
.m-hot-num { width: 20px; height: 20px; border-radius: 4px; background: #bdc3c7; color: #fff; text-align: center; line-height: 20px; font-size: 12px; font-weight: bold; flex-shrink: 0; margin-right: 10px; }
.m-hot-rank .hot-top .m-hot-num { background: #c0392b; }
.m-hot-rank li a { flex: 1; color: #333; text-decoration: none; font-size: 14px; line-height: 1.5; min-width: 0; }
.m-hot-rank li a:hover { color: #c0392b; }
.m-hot-views { color: #aaa; font-size: 11px; flex-shrink: 0; margin-left: 8px; }

/* 轮播 */
.m-banner { border-radius: 6px; overflow: hidden; margin-bottom: 12px; }
.m-banner-item { position: relative; }
.m-banner-item img { width: 100%; height: 180px; object-fit: cover; }
.m-banner-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.5); color: #fff; padding: 8px 12px; font-size: 13px; }

/* 分页 */
.m-pagination { display: flex; justify-content: center; margin: 15px 0; gap: 5px; }
.m-pagination a { display: block; padding: 6px 12px; border: 1px solid #ddd; border-radius: 3px; color: #333; text-decoration: none; background: #fff; font-size: 13px; }
.m-pagination a.active { background: #c0392b; color: #fff; border-color: #c0392b; }

/* 底部 */
.m-footer { background: #2c3e50; color: #aaa; text-align: center; padding: 15px; font-size: 12px; margin-top: 20px; }
.m-footer p { margin: 4px 0; }
.footer-update-time { color: #fff; font-size: 12px; }
