/* ==================== 基础重置 ==================== */
* { 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 ==================== */
.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-list-header {
    background: #fff;
    border-radius: 10px;
    padding: 18px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    text-align: center;
}
.m-list-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.m-list-subtitle {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* ==================== 快速导航 ==================== */
.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-topic-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==================== 列表项 ==================== */
.m-topic-item {
    background: #fff;
    border-radius: 10px;
    padding: 16px 14px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #eaeef3;
}

/* 标题 */
.m-topic-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}
.m-topic-title a {
    color: #1a1a1a;
    text-decoration: none;
}
.m-topic-title a:hover {
    color: #237ded;
}

/* 元数据行 */
.m-topic-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2f5;
}
.m-meta-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.m-meta-tag {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f5f7fa;
    color: #888;
}
.m-tag-qa { background: #e6f7ff; color: #1890ff; }
.m-tag-like { background: #fff2f0; color: #ff4d4f; }
.m-tag-doc { background: #f6ffed; color: #52c41a; }
.m-meta-time {
    font-size: 11px;
    color: #bbb;
    white-space: nowrap;
}

/* ==================== 三列指标 - 移动端上下堆叠 ==================== */
.m-metrics-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}
.m-metric-row {
    background: #fafbfc;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #f0f2f5;
}
.m-metric-warn {
    background: #fff8f8;
    border: 1px solid #ffe8e8;
}

/* 标签 */
.m-metric-label {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.m-metric-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.m-label-blue::before { background: #237ded; }
.m-label-green::before { background: #0aa770; }
.m-label-red::before { background: #e74c3c; }

/* 主内容行：文字+百分比 */
.m-metric-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 8px;
}
.m-metric-text {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.m-text-red { color: #c0392b; }

/* 百分比 */
.m-metric-pct {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.m-pct-blue { color: #237ded; }
.m-pct-green { color: #0aa770; }
.m-pct-red { color: #e74c3c; }

/* 条形图 */
.m-metric-bar {
    width: 100%;
    height: 6px;
    background: #e8eaed;
    border-radius: 3px;
    overflow: hidden;
}
.m-metric-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}
.m-fill-blue { background: linear-gradient(90deg, #237ded, #5A9EF2); }
.m-fill-green { background: linear-gradient(90deg, #0aa770, #2ecc71); }
.m-fill-red { background: linear-gradient(90deg, #ff6b6b, #ee5a5a); }

.m-metric-empty {
    font-size: 13px;
    color: #ccc;
    padding: 8px 0;
    text-align: center;
}

/* ==================== 底部按钮 ==================== */
.m-topic-footer {
    padding-top: 8px;
    border-top: 1px solid #f0f2f5;
}
.m-btn-enter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    background: #237ded;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.m-btn-enter:active {
    background: #1a5fb4;
    transform: scale(0.98);
}
.m-btn-arrow {
    width: 16px;
    height: 16px;
    fill: #fff;
    flex-shrink: 0;
}

/* ==================== 分页 ==================== */
.m-pagination-wrap {
    margin: 18px 0;
    padding: 10px 0;
}
.m-pagination-wrap #pages {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.m-pagination-wrap #pages a,
.m-pagination-wrap #pages b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.m-pagination-wrap #pages a {
    background: #fff;
    color: #555;
    border: 1px solid #e0e0e0;
}
.m-pagination-wrap #pages a:hover {
    background: #237ded;
    color: #fff;
    border-color: #237ded;
}
.m-pagination-wrap #pages b {
    background: #237ded;
    color: #fff;
    font-weight: 700;
    border: 1px solid #237ded;
}

/* ==================== 空状态 ==================== */
.m-list-empty {
    background: #fff;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* ==================== 响应式微调 ==================== */
@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: 42px; font-size: 11px; }
    .m-list-header h1 { font-size: 18px; }
    .m-topic-title { font-size: 16px; }
    .m-metric-text { font-size: 13px; }
    .m-meta-tag { font-size: 11px; padding: 2px 6px; }
}