/* 手机版CSS - 1566范文网问答专题 */

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 15px; color: #333; line-height: 1.6; background: #f5f5f5; -webkit-text-size-adjust: 100%; }
a { color: #333; text-decoration: none; }
a:hover { color: #237ded; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
ul, ol { list-style: none; }

/* ===== 头部 ===== */
.m-header { background: #fff; border-bottom: 1px solid #eee; padding: 10px 12px; position: sticky; top: 0; z-index: 100; }
.m-header-inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.m-logo {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    flex-shrink: 0;
}
.m-logo-num { font-size: 22px; font-weight: 700; color: #237ded; letter-spacing: -1px; }
.m-logo-text { font-size: 14px; font-weight: 600; color: #333; margin-left: 2px; }

/* 手机版搜索框 */
.m-search {
    flex: none;
    width: 60%;
    margin-left: 8px;
}
.m-search ul { display: none; }
.m-search div { display: flex; border: 1px solid #237ded; border-radius: 20px; overflow: hidden; height: 34px; background: #fff; }
.m-search_ipt {
    flex: 1;
    border: 0;
    padding: 0 10px;
    font-size: 12px;
    outline: none;
    background: transparent;
}
.m-search_btn {
    width: 48px;
    border: 0;
    background: #237ded;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}
.m-search_btn:active { background: #1a5fb4; }

/* ===== 主体容器 ===== */
.m-wrapper { max-width: 640px; margin: 0 auto; padding: 10px 12px; }

/* ===== 面包屑 ===== */
.m-crumbs { font-size: 12px; color: #999; margin-bottom: 10px; padding: 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-crumbs a { color: #666; }
.m-crumbs a:hover { color: #237ded; }
.m-crumbs-sep { color: #ccc; margin: 0 3px; }
.m-crumbs-current { color: #999; }

/* ===== 快速导航 ===== */
.m-quick-nav { background: #fff; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.m-quick-nav-title { font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; }
.m-quick-nav-list { display: flex; flex-wrap: wrap; gap: 8px; }
.m-quick-nav-item { display: inline-block; padding: 5px 12px; background: #f0f4f9; color: #555; font-size: 13px; border-radius: 16px; text-decoration: none; transition: all 0.2s; }
.m-quick-nav-item:hover { background: #237ded; color: #fff; }
.m-quick-nav-item.active { background: #237ded; color: #fff; }

/* ===== 概况卡片 ===== */
.m-overview-card { background: #fff; border-radius: 8px; padding: 16px 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.m-overview-card h1 { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; line-height: 1.4; word-break: break-all; }
.m-overview-meta { color: #999; font-size: 12px; margin-bottom: 12px; }
.m-overview-meta span { margin-right: 12px; }
.m-overview-stats { display: flex; gap: 8px; }
.m-overview-stat { flex: 1; text-align: center; padding: 10px 4px; background: #f8f9fa; border-radius: 6px; }
.m-stat-num { font-size: 20px; font-weight: 700; color: #237ded; line-height: 1.2; display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 32px; }
.m-stat-label { font-size: 11px; color: #888; margin-top: 6px; }

/* 点赞按钮 */
.m-like-btn { display: inline-flex; align-items: center; gap: 4px; color: #237ded; cursor: pointer; line-height: 1; transition: all 0.2s; }
.m-like-btn.liked { color: #e74c3c; }
.m-like-btn.liked .m-like-icon svg { fill: #e74c3c; }
.m-like-btn:active { transform: scale(0.95); }
.m-like-icon { width: 20px; height: 20px; vertical-align: middle; flex-shrink: 0; }
.m-like-icon svg { width: 100%; height: 100%; fill: #237ded; transition: fill 0.2s; }
#likeCount { font-size: 20px; font-weight: 700; }

.m-fanwen-link { display: inline; color: #237ded; font-size: 20px; font-weight: 700; text-decoration: none; }
.m-fanwen-link:hover { color: #1a5fb4; }

/* ===== 简介 ===== */
.m-intro-box { background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border-left: 3px solid #237ded; }
.m-intro-box p { font-size: 14px; line-height: 1.8; color: #555; }
.m-intro-highlight { color: #237ded; font-weight: 600; }

/* ===== 模块通用 ===== */
.m-module-box { background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
h2.m-module-title { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #237ded; display: inline-block; }
.m-disclaimer { font-size: 11px; color: #bbb; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #eee; }

.m-misunderstanding-list { display: flex; flex-direction: column; }
.m-misunderstanding-item { display: block; padding: 8px 0; }
.m-misunderstanding-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.m-misunderstanding-name { font-size: 14px; color: #555; line-height: 1.4; word-break: break-all; flex: 1; padding-right: 8px; }
.m-misunderstanding-percent { font-size: 12px; color: #888; text-align: right; flex-shrink: 0; white-space: nowrap; }
.m-misunderstanding-bar { display: block; width: 100%; height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.m-misunderstanding-fill { height: 100%; background: linear-gradient(90deg, #ff6b6b, #ee5a5a); border-radius: 4px; }
.m-misunderstanding-percent { width: auto; font-size: 12px; color: #888; text-align: right; flex-shrink: 0; white-space: nowrap; }

.m-chart-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.m-chart-col { background: #fff; border-radius: 8px; padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }

.m-chart-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.m-chart-header h2.m-module-title {
    display: block;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.m-wordcount-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 150px;
    padding: 35px 10px 12px; 
    justify-content: space-between;
    position: relative;    
    margin-top: 10px;     
}
.m-wordcount-chart-item { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0; }
.m-wordcount-chart-bar { width: 100%; max-width: 50px; background: linear-gradient(180deg, #237ded, #5A9EF2); border-radius: 3px 3px 0 0; transition: height 0.3s ease; }
.m-wordcount-chart-label { font-size: 11px; color: #666; margin-top: 6px; text-align: center; word-break: break-all; }
.m-wordcount-chart-percent {
    font-size: 12px;
    color: #237ded;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.5;
    position: relative;   
    z-index: 2;   
    padding-top: 5px;   
}

/* 用户关注度分布 - 横向条形图 */
.m-attention-chart { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.m-attention-chart-item { display: flex; align-items: center; gap: 8px; }
.m-attention-chart-label { width: 70px; font-size: 12px; color: #555; text-align: right; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-attention-chart-bar-wrap { flex: 1; height: 18px; background: #f0f0f0; border-radius: 9px; overflow: hidden; min-width: 60px; }
.m-attention-chart-bar { height: 100%; border-radius: 9px; transition: width 0.3s ease; }
.m-attention-chart-bar-1 { background: linear-gradient(90deg, #0aa770, #2ecc71); }
.m-attention-chart-bar-2 { background: linear-gradient(90deg, #237ded, #5A9EF2); }
.m-attention-chart-bar-3 { background: linear-gradient(90deg, #ff9e3a, #ffb347); }
.m-attention-chart-bar-4 { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.m-attention-chart-bar-5 { background: linear-gradient(90deg, #9b59b6, #8e44ad); }
.m-attention-chart-bar-6 { background: linear-gradient(90deg, #1abc9c, #16a085); }
.m-attention-chart-bar-7 { background: linear-gradient(90deg, #f39c12, #e67e22); }
.m-attention-chart-bar-8 { background: linear-gradient(90deg, #34495e, #2c3e50); }
.m-attention-chart-percent { width: 40px; font-size: 12px; color: #237ded; font-weight: 700; text-align: right; flex-shrink: 0; }

/* ===== 标签云 ===== */
.m-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.m-tag-cloud-item { display: inline-block; padding: 5px 12px; background: #f0f4f9; color: #555; font-size: 13px; border-radius: 16px; text-decoration: none; transition: all 0.2s; }
.m-tag-cloud-item:hover { background: #237ded; color: #fff; }

/* ===== 相关专题对比 ===== */
.m-topic-compare-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.m-topic-compare-item { display: block; padding: 12px; background: #f8f9fa; border-radius: 6px; color: #555; text-decoration: none; }
.m-topic-compare-item:hover { background: #237ded; color: #fff; }
.m-topic-compare-item:hover .m-topic-meta { color: rgba(255,255,255,0.8); }
.m-topic-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; display: block; word-break: break-all; }
.m-topic-meta { font-size: 11px; opacity: 0.8; display: block; color: #888; }

/* ===== 问答列表 ===== */
.m-faq-list { background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 10px; overflow: hidden; }
.m-faq-list-header { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; background: #fafbfc; }
.m-faq-list-title { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.m-faq-list-count { font-size: 12px; color: #999; margin-left: 8px; }
.m-faq-list-sort { font-size: 11px; color: #0aa770; margin-left: 6px; }

.m-faq-item { padding: 12px 14px; border-bottom: 1px solid #f5f5f5; }
.m-faq-item:last-child { border-bottom: 0; }
.m-faq-item:active { background: #fafbfc; }
.m-faq-num { width: 26px; height: 26px; background: #237ded; color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-right: 8px; flex-shrink: 0; vertical-align: top; }
.m-faq-item h2 { font-size: 15px; color: #1a1a1a; font-weight: 600; line-height: 1.5; margin-bottom: 8px; display: flex; align-items: flex-start; }
.m-faq-item h2 a { color: #1a1a1a; text-decoration: none; word-break: break-all; }
.m-faq-item h2 a:hover { color: #237ded; }
.m-faq-answer { font-size: 13px; line-height: 1.7; color: #555; background: #f5f7fa; padding: 8px 12px; border-radius: 4px; border-left: 2px solid #237ded; margin-top: 6px; margin-left: 34px; display: block; word-break: break-all; }
.m-faq-meta { margin-top: 8px; font-size: 12px; color: #999; margin-left: 34px; }
.m-faq-meta a { color: #237ded; text-decoration: none; }

/* ===== 分页 ===== */
.faq-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 18px 0; padding: 10px; flex-wrap: wrap; }
.faq-pagination a { display: inline-block; padding: 8px 14px; border-radius: 4px; font-size: 14px; text-decoration: none; background: #fff; color: #555; border: 1px solid #e0e0e0; min-width: 36px; text-align: center; }
.faq-pagination a:hover { background: #237ded; color: #fff; border-color: #237ded; }
.faq-pagination span { display: inline-block; padding: 8px 14px; border-radius: 4px; font-size: 14px; text-decoration: none; }
.faq-pagination span.current { background: #237ded; color: #fff; font-weight: 700; border: 1px solid #237ded; }

/* ===== 空状态 ===== */
.m-empty { text-align: center; padding: 40px 20px; color: #999; background: #fff; border-radius: 8px; }
.m-empty h3 { font-size: 16px; color: #666; margin-bottom: 8px; }
.m-empty p { font-size: 13px; }

/* ===== 底部模块 ===== */
.m-bottom-modules { margin-top: 10px; }
.m-sidebar-mod { background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.m-sidebar-mod h3 { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #237ded; display: inline-block; }
.m-sidebar-mod ul { list-style: none; padding: 0; margin: 0; }
.m-sidebar-mod li { padding: 8px 0; border-bottom: 1px dashed #eee; }
.m-sidebar-mod li:last-child { border-bottom: 0; }
.m-sidebar-mod li a { color: #444; font-size: 14px; font-weight: 500; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-sidebar-mod li a:hover { color: #237ded; }

.m-fw-item { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px dashed #eee; color: #333; font-size: 14px; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-fw-item:last-child { border-bottom: 0; }
.m-fw-item:hover { color: #237ded; }
.m-fw-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8; }
.m-fw-icon svg { width: 100%; height: 100%; fill: #237ded; }

/* 相关专题推荐 - 网格布局 */
.m-tag-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.m-tag-grid-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #f8f9fa; border-radius: 6px; text-decoration: none; transition: all 0.2s; }
.m-tag-grid-item:hover { background: #237ded; }
.m-tag-grid-item:hover .m-tag-grid-name { color: #fff; }
.m-tag-grid-item:hover .m-tag-grid-count { color: rgba(255,255,255,0.85); }
.m-tag-grid-name { font-size: 13px; color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.m-tag-grid-count { font-size: 11px; color: #999; margin-left: 6px; flex-shrink: 0; }

/* ===== Footer ===== */
.m-footer { padding: 15px 0; width: 100%; background: #333; font-size: 12px; line-height: 20px; margin-top: 15px; }
.m-copyright { color: #999; font-size: 11px; text-align: center; padding: 0 15px; }
.m-copyright a { color: #999; }
.m-copyright p { line-height: 1.8; }
/* ==================== 用户还关注模块样式 ==================== */
.m-inline-faq-list { padding: 0 15px; }
.m-inline-faq-item { 
    padding: 15px 0; 
    border-bottom: 1px solid #f0f0f0; 
}
.m-inline-faq-item:last-child { border-bottom: none; }
.m-inline-faq-question { 
    font-size: 15px; 
    font-weight: 600; 
    color: #1a1a1a; 
    line-height: 1.6; 
    margin-bottom: 10px; 
    display: flex; 
    align-items: flex-start; 
}
.m-inline-faq-num { 
    display: inline-block; 
    width: 22px; 
    height: 22px; 
    line-height: 22px; 
    text-align: center; 
    background: #4a90d9; 
    color: #fff; 
    font-size: 12px; 
    font-weight: 700; 
    border-radius: 4px; 
    margin-right: 10px; 
    flex-shrink: 0; 
    margin-top: 1px; 
}
.m-inline-faq-answer { 
    font-size: 14px; 
    color: #555; 
    line-height: 1.8; 
    padding-left: 32px; 
}
.m-inline-faq-answer br { margin-bottom: 8px; }

/* ===== 手机端高赞回答标签样式（与PC端一致）===== */
.qa-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    margin-right: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

.badge-hot {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.badge-toplike {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.badge-best {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.badge-quick {
    background: #fffbe6;
    color: #faad14;
    border: 1px solid #ffe58f;
}

.badge-picked {
    background: #f9f0ff;
    color: #722ed1;
    border: 1px solid #d3adf7;
}

/* ===== 响应式微调 ===== */
@media (max-width: 360px) {
    .m-header-inner { gap: 8px; }
    .m-logo-num { font-size: 18px; }
    .m-logo-text { font-size: 12px; }
    .m-search_btn { width: 48px; font-size: 12px; }
    .m-overview-stats { gap: 6px; }
    .m-overview-stat { padding: 8px 2px; }
    .m-stat-num { font-size: 18px; }
    .m-stat-label { font-size: 10px; }
    .m-wordcount-chart { gap: 5px; }
    .m-attention-chart-label { width: 55px; font-size: 11px; }
    .m-tag-grid { grid-template-columns: 1fr; }
    .faq-pagination a, .faq-pagination span { padding: 6px 10px; font-size: 13px; }
}