/* ==================== 1566手机站TAG列表CSS V4 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; line-height: 1.6; color: #333; background: #f5f5f5; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ==================== Header（完全无背景色） ==================== */
.m-header { background: transparent; position: sticky; top: 0; z-index: 100; border-bottom: none; box-shadow: none; }
.m-header-inner { display: flex; justify-content: space-between; align-items: center; padding: 0 15px; height: 50px; }
.m-logo { flex-shrink: 0; }
.m-logo-text { font-size: 20px; font-weight: 800; color: #667eea; letter-spacing: 1px; }
.m-search-box { flex: 1; max-width: 220px; position: relative; margin-left: 15px; }
.m-search-input { width: 100%; height: 36px; background: #f5f7fa; border: 1px solid #e0e0e0; border-radius: 18px; padding: 0 60px 0 12px; font-size: 14px; color: #333; outline: none; }
.m-search-input::placeholder { color: #999; }
.m-search-btn { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); padding: 0 14px; height: 30px; background: #667eea; border: none; border-radius: 15px; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }

/* ==================== 面包屑 ==================== */
.m-breadcrumb { background: #fff; padding: 10px 15px; font-size: 12px; color: #999; border-bottom: 1px solid #eee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-breadcrumb a { color: #667eea; }
.m-breadcrumb span { color: #999; }

/* ==================== 专题头部 ==================== */
.m-topic-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 20px 15px; position: relative; overflow: hidden; }
.m-topic-bg { position: absolute; top: -50%; right: -20%; width: 200px; height: 200px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.m-topic-content { position: relative; z-index: 1; }
.m-topic-header h1 { font-size: 22px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.m-topic-intro { font-size: 13px; line-height: 1.7; opacity: 0.95; margin-bottom: 20px; }

/* ==================== 热门排行 ==================== */
.m-hot-chart { background: rgba(255,255,255,0.15); border-radius: 12px; padding: 15px; margin-top: 15px; }
.m-hot-chart h2 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 5px; font-weight: 600; }
.m-chart-list { display: flex; flex-direction: column; gap: 10px; }
.m-chart-item { display: flex; flex-direction: column; gap: 5px; }
.m-chart-info { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.m-chart-rank { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; font-weight: 700; font-size: 11px; color: #ffd700; white-space: nowrap; }
.m-chart-title { flex: 1; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.m-chart-clicks { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; font-size: 11px; white-space: nowrap; }
.m-chart-bar-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.2); border-radius: 3px; overflow: hidden; }
.m-chart-bar { height: 100%; border-radius: 3px; transition: width 1s ease; }

/* ==================== 文章列表 ==================== */
.m-article-list { background: #fff; padding: 0 15px; margin-top: 10px; }
.m-article-item { border-bottom: 1px solid #f0f0f0; padding: 15px 0; }
.m-article-item:first-child { padding-top: 15px; }
.m-article-item:last-child { border-bottom: none; }
.m-article-link { display: flex; gap: 12px; }
.m-article-img { width: 100px; height: 75px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #f5f5f5; }
.m-article-img img { width: 100%; height: 100%; object-fit: cover; }
.m-article-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.m-article-title { font-size: 15px; font-weight: 600; color: #333; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-article-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.m-meta-item { background: #f5f7fa; padding: 2px 8px; border-radius: 4px; border-left: 2px solid #667eea; font-size: 12px; color: #666; }
.m-meta-item em { color: #667eea; font-style: normal; font-weight: 600; }
.m-article-summary { font-size: 13px; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.m-article-stats { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #999; }
.m-hot-badge { display: flex; align-items: center; gap: 3px; background: #fff5f5; color: #ff6b6b; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }

/* ==================== 视觉分隔线（相关信息与TAG列表分隔） ==================== */
.m-related-divider { display: flex; align-items: center; gap: 12px; padding: 20px 0 15px; margin: 0 -15px; background: #fafbfc; border-top: 1px solid #eef2f6; border-bottom: 1px solid #f0f0f0; }
.m-divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent 0%, #d0d8e8 50%, transparent 100%); }
.m-divider-text { font-size: 13px; color: #8892a0; font-weight: 500; white-space: nowrap; padding: 0 4px; }

/* ==================== 分页 ==================== */
#pages { background: #fff; padding: 20px 15px; text-align: center; border-top: 1px solid #eee; }
#pages a { display: inline-block; padding: 8px 14px; margin: 0 4px; background: #f5f5f5; border-radius: 6px; color: #666; font-size: 14px; min-width: 36px; transition: all 0.2s; }
#pages a:hover { background: #667eea; color: #fff; }
#pages select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; background: #fff; margin-left: 5px; }

/* ==================== 通用模块标题 ==================== */
.m-section-title { font-size: 16px; font-weight: 700; color: #333; padding: 15px; display: flex; align-items: center; gap: 8px; background: #fff; border-bottom: 1px solid #f0f0f0; margin: 0; }
.m-section-title i { color: #667eea; font-size: 18px; }

/* ==================== FAQ区域 ==================== */
.m-faq-section { background: #fff; margin-top: 10px; border-top: 1px solid #eee; }
.m-faq-list { padding: 15px; }
.m-faq-item { background: #f8f9fc; border-radius: 12px; margin-bottom: 12px; overflow: hidden; border: 1px solid #eef2f6; transition: all 0.2s ease; }
.m-faq-item:last-child { margin-bottom: 0; }
.m-faq-item:active { transform: scale(0.98); }
.m-faq-q { background: #fff; padding: 14px 15px; font-weight: 700; color: #2c3e50; font-size: 15px; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid #eef2f6; line-height: 1.6; }
.m-faq-a { background: #f8f9fc; padding: 12px 15px; color: #5a6e8a; font-size: 13px; line-height: 1.7; display: flex; align-items: flex-start; gap: 10px; }
.m-faq-icon { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.m-faq-q .m-faq-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.m-faq-a .m-faq-icon { background: #e8f0fe; color: #667eea; font-size: 11px; }

/* ==================== 写作避坑指南（只保留序号+文字，序号蓝色） ==================== */
.m-writing-tips-box { background: #fff; margin-top: 10px; border-top: 1px solid #eee; }
.m-tips-list { padding: 15px; }
.m-tip-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f5f5f5; }
.m-tip-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.m-tip-num-blue { width: 24px; height: 24px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.m-tip-text { flex: 1; font-size: 14px; color: #333; line-height: 1.6; }

/* ==================== 推荐字数分布 ==================== */
.m-word-count-box { background: #fff; margin-top: 10px; border-top: 1px solid #eee; }
.m-word-count-item { padding: 12px 15px; border-bottom: 1px solid #f5f5f5; }
.m-word-count-item:last-child { border-bottom: none; }
.m-word-count-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.m-word-count-range { font-size: 14px; color: #333; font-weight: 500; }
.m-word-count-percent { font-size: 12px; color: #667eea; font-weight: 600; }
.m-word-count-bar-bg { width: 100%; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.m-word-count-bar { height: 100%; background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); border-radius: 3px; transition: width 1s ease; }

/* ==================== 用户最关注 ==================== */
.m-keyword-box { background: #fff; margin-top: 10px; border-top: 1px solid #eee; }
.m-keyword-item { padding: 12px 15px; border-bottom: 1px solid #f5f5f5; }
.m-keyword-item:last-child { border-bottom: none; }
.m-keyword-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.m-keyword-name { font-size: 14px; color: #333; font-weight: 500; }
.m-keyword-percent { font-size: 12px; color: #667eea; font-weight: 600; }
.m-keyword-bar-bg { width: 100%; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.m-keyword-bar { height: 100%; background: linear-gradient(90deg, #00b894 0%, #00a885 100%); border-radius: 3px; transition: width 1s ease; }

/* ==================== 相关专题 ==================== */
.m-related-section { background: #fff; margin-top: 10px; border-top: 3px solid #667eea; position: relative; }
.m-related-section::before { content: ''; position: absolute; top: -3px; left: 15px; width: 40px; height: 3px; background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); }
.m-related-section .m-section-title { background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%); color: #667eea; border-bottom: 2px solid #eef2ff; }
.m-related-section .m-section-title i { color: #764ba2; font-size: 20px; }
.m-tag-cloud { padding: 20px 15px; text-align: left; line-height: 2.4; background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%); }
.m-topics-list { padding: 20px 15px; text-align: left; line-height: 2.4; background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%); }
.m-topic-tag { display: inline-block; margin: 0 10px 12px 0; padding: 8px 18px; font-size: 14px; color: #555; background: #fff; border-radius: 20px; border: 1px solid #d0d8e8; transition: all 0.25s ease; box-shadow: 0 2px 4px rgba(102,126,234,0.08); font-weight: 500; }
.m-topic-tag:hover { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102,126,234,0.25); }

/* ==================== 页脚 ==================== */
.m-footer { background: #2c3e50; color: #95a5a6; padding: 25px 15px; text-align: center; margin-top: 20px; }
.m-footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 15px; }
.m-footer-links a { color: #fff; font-size: 14px; font-weight: 500; padding: 5px 10px; border-radius: 4px; transition: all 0.2s ease; }
.m-footer-links a:hover { background: rgba(255,255,255,0.1); }
.m-copyright { font-size: 12px; color: #7f8c8d; }
.m-copyright a { color: #95a5a6; }

/* ==================== 响应式 ==================== */
@media screen and (min-width: 768px) { 
    body { max-width: 480px; margin: 0 auto; background: #e8e8e8; } 
    .m-header, .m-breadcrumb, .m-topic-header, .m-article-list, .m-faq-section, .m-writing-tips-box, .m-word-count-box, .m-keyword-box, .m-related-section, #pages, .m-footer { max-width: 480px; margin-left: auto; margin-right: auto; } 
    .m-header { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; } 
    .m-breadcrumb { margin-top: 50px; } 
}
@media (max-width: 375px) { 
    .m-topic-header h1 { font-size: 20px; } 
    .m-article-img { width: 90px; height: 68px; } 
}
@media (min-width: 414px) { 
    .m-article-img { width: 110px; height: 82px; } 
}
@supports (padding-top: env(safe-area-inset-top)) { 
    .m-header { padding-top: env(safe-area-inset-top); } 
    .m-footer { padding-bottom: env(safe-area-inset-bottom); } 
}
@media (prefers-color-scheme: dark) { 
    body { background: #1a1a1a; color: #e0e0e0; } 
    .m-header { background: transparent; }
    .m-breadcrumb, .m-article-list, .m-faq-section, .m-writing-tips-box, .m-word-count-box, .m-keyword-box, .m-related-section { background: #2d2d2d; } 
    .m-breadcrumb { border-bottom-color: #3d3d3d; color: #888; } 
    .m-article-item { border-bottom-color: #3d3d3d; }
    .m-article-title { color: #e0e0e0; } 
    .m-meta-item { background: #3d3d3d; color: #aaa; } 
    .m-section-title { background: #2d2d2d; border-bottom-color: #3d3d3d; color: #e0e0e0; }
    .m-faq-item { background: #3d3d3d; border-color: #4d4d4d; }
    .m-faq-q { background: #2d2d2d; color: #e0e0e0; border-bottom-color: #4d4d4d; }
    .m-faq-a { background: #3d3d3d; color: #aaa; } 
    .m-tag-cloud { background: #2d2d2d; }
    .m-topics-list { background: #2d2d2d; }
    .m-topic-tag { background: #3d3d3d; border-color: #4d4d4d; color: #aaa; } 
    #pages { background: #2d2d2d; border-top-color: #3d3d3d; } 
    #pages a { background: #3d3d3d; color: #aaa; } 
    .m-search-input { background: #3d3d3d; border-color: #4d4d4d; color: #e0e0e0; } 
    .m-tip-text { color: #e0e0e0; }
    .m-tip-row { border-bottom-color: #3d3d3d; }
    .m-related-divider { background: #2d2d2d; border-top-color: #3d3d3d; border-bottom-color: #3d3d3d; }
    .m-divider-text { color: #666; }
    .m-divider-line { background: linear-gradient(90deg, transparent 0%, #4d4d4d 50%, transparent 100%); }
}