/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif; background: #f5f6fa; color: #121212; font-size: 15px; padding: 0; margin: 0; }
a { color: #003399; text-decoration: none; }
a:hover { color: #ff8200; text-decoration: underline; }

@media (min-width: 768px) {
    body { max-width: 640px; margin: 0 auto; background: #e8e8e8; box-shadow: 0 0 30px rgba(0,0,0,0.1); min-height: 100vh; }
}

/* ===== 头部 ===== */
.m-header { background: #fff; padding: 12px 16px; border-bottom: 1px solid #e8e8e8; }
.m-header-inner { display: flex; align-items: center; gap: 12px; }
.m-logo { flex-shrink: 0; }
.m-logo-text { font-size: 22px; font-weight: 700; color: #222; }
.m-search-box { flex: 1; position: relative; }
.m-search-input { width: 100%; padding: 10px 80px 10px 14px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; background: #f5f6fa; outline: none; }
.m-search-input:focus { border-color: #237ded; background: #fff; }
.m-search-btn { position: absolute; right: 3px; top: 3px; bottom: 3px; padding: 0 16px; background: #237ded; color: #fff; border: none; border-radius: 4px; font-size: 14px; cursor: pointer; }

/* ===== 面包屑 ===== */
.m-breadcrumb { padding: 12px 16px; font-size: 14px; color: #999; background: #f8f9fa; border-bottom: 1px solid #eee; }
.m-breadcrumb a { color: #999; }
.m-breadcrumb span { color: #333; }

/* ===== 标题区 ===== */
.m-topic-header { background: #fff; padding: 20px 16px 0; border-bottom: 1px solid #f6f6f6; }
.m-topic-header h1 { font-size: 30px; font-weight: 500; color: #222; margin: 0 0 8px 0; text-align: left; }
.m-topic-time { font-size: 13px; color: #c5c5c5; margin-bottom: 12px; }
.m-topic-desc { font-size: 15px; color: #666; line-height: 1.8; padding-bottom: 16px; border-bottom: 1px solid #f6f6f6; }

/* ===== 文章列表 ===== */
.m-article-list { padding: 0 16px; background: #fff; }
.article-list-item { padding: 20px 0; border-bottom: 1px solid #f6f6f6; }
.article-list-item:last-child { border-bottom: none; }
.article-title-link { font-size: 22px !important; display: block !important; color: #333; text-align: center; line-height: 1.6; font-weight: normal; }
.article-title-link a { color: #eb7340; }
.article-title-link a:hover { color: #ff8200; text-decoration: underline; }
.article-meta-info { color: #c5c5c5; text-align: center; font-size: 13px; padding: 8px 0 14px; }
.article-content-body { color: #121212; font-size: 16px; line-height: 1.9; }
.article-content-body p { margin: 0 0 18px 0; }
.article-view-link { text-align: center; padding: 6px 0 2px; }
.article-view-link a { display: inline-block; padding: 0 32px; height: 40px; line-height: 40px; color: #ff8200 !important; background: #fff; border: 1px solid #ff8200; font-size: 16px; border-radius: 20px; }
.article-view-link a:active { background: #fff2e5; }

/* ===== 文章标签 ===== */
.article-tags { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 6px 0 8px 0; font-size: 14px; color: #555; justify-content: flex-start; background: #f8f9fa; padding: 6px 14px; border-radius: 4px; border-left: 3px solid #ff8200; }
.article-tags .tag-item { background: none; padding: 2px 12px 2px 6px; border: none; color: #555; font-size: 14px; line-height: 1.8; border-right: 1px solid #e0e0e0; }
.article-tags .tag-item:last-child { border-right: none; }
.article-tags .tag-item strong { color: #333; font-weight: 600; }

/* ===== 分页 ===== */
#pages { padding: 18px 16px 12px; text-align: center; font-size: 14px; background: #fff; }
#pages a, #pages span { display: inline-block; min-width: 36px; height: 36px; line-height: 36px; margin: 0 3px; padding: 0 10px; text-align: center; border: 1px solid #ddd; border-radius: 4px; color: #333; background: #fff; font-size: 14px; }
#pages a:active { border-color: #ff8200; background: #ff8200; color: #fff; }
#pages .page-current { background: #ff8200; border-color: #ff8200; color: #fff; font-weight: bold; }

/* ===== 相关专题 ===== */
.m-related-section { background: #fff; padding: 16px 16px; border-bottom: 1px solid #eee; }
.m-related-section .m-section-title { font-size: 17px; font-weight: 700; color: #333; margin: 0 0 14px 0; padding-bottom: 10px; border-bottom: 2px solid #ff8200; }
.m-related-section .m-topics-list { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.m-related-section .m-topic-tag { display: inline-block; background: #f5f7fa; color: #333; padding: 6px 18px; border-radius: 20px; font-size: 14px; border: 1px solid #e8e8e8; }
.m-related-section .m-topic-tag:hover { background: #ff8200; color: #fff; border-color: #ff8200; text-decoration: none; }

/* ===== 月度/年度总结 ===== */
.m-fixed-box { background: #fff; padding: 16px 16px; border-bottom: 1px solid #eee; }
.m-fixed-box:last-child { border-bottom: none; }
.m-fixed-title { font-size: 17px; font-weight: 700; color: #333; margin: 0 0 14px 0; padding-bottom: 10px; border-bottom: 2px solid #237ded; }
.m-fixed-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; }
.m-fixed-item { display: block; font-size: 14px; color: #333; padding: 8px 4px; background: #f5f7fa; border-radius: 4px; text-align: center; border: 1px solid transparent; }
.m-fixed-item:active { background: #237ded; color: #fff; border-color: #237ded; }

/* ===== footer ===== */
.m-footer { padding: 24px 16px 30px; text-align: center; font-size: 13px; color: #999; background: #f8f9fa; margin-top: 0; line-height: 1.8; }
.m-footer a { color: #999; }

/* ===== 响应式 ===== */
@media (max-width: 480px) {
    .m-topic-header h1 { font-size: 24px; }
    .article-title-link { font-size: 18px !important; }
    .article-content-body { font-size: 15px; line-height: 1.8; }
    .article-content-body p { margin-bottom: 14px; }
    .m-topic-header { padding: 14px 12px 0; }
    .m-article-list { padding: 0 12px; }
    .article-list-item { padding: 16px 0; }
    .m-related-section { padding: 14px 12px; }
    .m-fixed-box { padding: 14px 12px; }
    #pages { padding: 14px 12px 10px; }
    .m-fixed-item { font-size: 13px; padding: 6px 2px; }
    .m-related-section .m-topic-tag { font-size: 13px; padding: 5px 14px; }
    .article-tags { font-size: 13px; padding: 4px 10px; }
    .article-tags .tag-item { font-size: 13px; padding: 1px 8px 1px 4px; }
}
@media (max-width: 380px) {
    .m-topic-header h1 { font-size: 20px; }
    .article-title-link { font-size: 16px !important; }
    .m-search-input { font-size: 13px; padding: 8px 60px 8px 10px; }
    .m-search-btn { font-size: 12px; padding: 0 10px; }
    .m-fixed-list { grid-template-columns: repeat(2, 1fr); }
}