/* 拷贝 YYSF 原版关键 CSS 规则（.t1 / .desc / .b1 / .b2 / .b2b / .b3 / .b3t / .b4 / .b4t / .b5 / .b5t / .tb / .highlight 等）
   避免依赖原版完整背景/导航。颜色与原版保持一致：标题红 #da0000、表格灰 F6F6F6、虚浮价格标红等 */
.m-stats { width: 1300px; margin: 20px auto; overflow: hidden; color: #1e2127; }
.m-stats * { box-sizing: border-box; }

/* t1 顶部统计条 */
.m-stats .t1 {
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    padding: 15px;
    line-height: 25px;
    background: #FFF;
    margin-bottom: 15px;
    color: #1e2127;
    border: 1px solid #EAEAEA;
}
.m-stats .t1 font { margin: 0 3px; }

/* 友情提示 desc */
.m-stats .desc {
    background: #FFF;
    padding: 20px;
    color: #666;
    font-size: 13px;
    border-radius: 0;
    border: 1px solid #EAEAEA;
    margin-bottom: 15px;
}
.m-stats .desc p { margin: 0; line-height: 1.9; }
.m-stats .desc b { color: #333; }

/* tb 表格通用 */
.m-stats .tb { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 13px; }
.m-stats .tb td p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-stats .tb td a.red { color: #FF0000; }

/* b1 左（广告投入） + 右（站内排名） 两栏 */
.m-stats .b1 {
    display: flex;
    background-color: #FFF;
    justify-content: space-between;
    margin-bottom: 30px;
}
.m-stats .b1 .left { width: 70%; }
.m-stats .b1 .left td {
    height: 40px;
    border: 1px solid #EAEAEA;
    text-align: center;
    color: #4a4a4a;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 6px;
}
.m-stats .b1 .left th {
    height: 40px;
    border: 1px solid #EAEAEA;
    background: #f6f6f6;
    text-align: center;
    color: #545454;
    font-weight: normal;
}
.m-stats .b1 .left .title {
    height: 50px;
    font-weight: 700;
    font-size: 16px;
    text-align: left;
    padding: 0 0 0 20px;
    background: #FFF;
}
.m-stats .b1 .left .b1_tdb { background: #ffffcf; }
.m-stats .b1 .right { width: 29%; }
.m-stats .b1 .right td {
    height: 40px;
    border: 1px solid #EAEAEA;
    background: #fff;
    text-align: center;
    color: #4a4a4a;
}
.m-stats .b1 .right th {
    height: 40px;
    border: 1px solid #EAEAEA;
    background: #f6f6f6;
    text-align: center;
    color: #545454;
    font-weight: normal;
}
.m-stats .b1 .right .title {
    height: 50px;
    font-weight: 700;
    font-size: 16px;
    text-align: left;
    padding: 0 0 0 20px;
    background: #FFF;
}
.m-stats .b1 span,
.m-stats .b3 span,
.m-stats .b4 span { color: #FF0000; }

/* b2 同服务器 / 同域名 */
.m-stats .b2 {
    font-size: 13px;
    margin-bottom: 25px;
}
/* .b2b 默认样式（浅蓝背景红边框） */
.m-stats .b2b {
    border: 1px solid #da0000;
    background: #fafdff;
    border-bottom: none;
    line-height: 50px;
    padding: 0 0 0 20px;
    color: #424242;
    font-size: 14px;
    font-weight: 700;
}
/* 当 .b2b 同时带 .title 时（红底白字标题栏，与 YYSF 原版一致） */
.m-stats .b2b.title {
    height: 50px;
    font-weight: 700;
    font-size: 16px;
    background: #da0000;
    color: #fff;
}
/* 马赛克隐私保护（与 YYSF 原版一致） */
.m-stats .mosaic-wrap {
    position: relative;
    display: inline-block;
}
.m-stats .mosaic-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 2;
}
.m-stats .b2 td {
    height: 40px;
    border: #EAEAEA 1px solid;
    text-align: center;
    word-break: break-all;
    line-height: 14px;
    padding: 0 6px;
    background: #FFF;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-stats .b2 tr:hover { background: #ffffcf; }
.m-stats .b2 th {
    height: 40px;
    background: #F6F6F6;
    border: #dddddd 1px solid;
    font-weight: normal;
}
.m-stats .b2 a { color: #000; }
.m-stats .b2 a:hover { color: red; text-decoration: underline; }
.m-stats .b2 td:nth-child(8) a {
    display: inline-block;
    width: 78px;
    line-height: 24px;
    font-size: 12px;
    text-align: center;
    color: #fff;
    background: #da0000;
    border-radius: 4px;
}
.m-stats .b2 td:nth-child(8) a:hover { background: #FF0000; text-decoration: none; }
.m-stats .b2 .tb .highlight { color: #FF0000; }

/* b3 每日成本 */
.m-stats .b3 { margin-bottom: 30px; }
.m-stats .b3 th {
    background: #F6F6F6;
    border: 1px solid #DDD;
    height: 35px;
    font-weight: normal;
}
.m-stats .b3 td {
    background: #F6F6F6;
    border: 1px solid #DDD;
    text-align: center;
    padding: 7px 0;
    height: 100px;
    vertical-align: top;
}
.m-stats .b3 td p { line-height: 25px; margin: 0; }
.m-stats .b3 td p span { margin: 0 1px; }
.m-stats .b3t td {
    height: 40px;
    background: #f6f6f6;
    font-weight: 700;
    vertical-align: middle;
}
.m-stats .b3 .line td { background: #fff; }

/* b4 广告目前显示情况 */
.m-stats .b4t {
    font-size: 22px;
    font-weight: 700;
    color: #1e2127;
    margin-bottom: 10px;
    margin-top: 20px;
}
.m-stats .b4 {
    margin-bottom: 30px;
    font-size: 13px;
}
.m-stats .b4 table { margin-bottom: 20px; }
.m-stats .b4 th {
    background: #F6F6F6;
    border: 1px solid #EAEAEA;
    height: 40px;
    font-weight: normal;
}
.m-stats .b4 td {
    background: #fff;
    border: 1px solid #EAEAEA;
    height: 40px;
    padding: 0 2px;
    text-align: center;
    word-wrap: break-word;
    line-height: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-stats .b4 td:nth-child(4) { color: #FF0000; }
.m-stats .b4 a { color: #000; }
.m-stats .b4 a:hover { color: red; text-decoration: underline; }

/* b5 历史记录 */
.m-stats .b5 { margin-bottom: 30px; }
.m-stats .b5 .tb { background-color: #F6F6F6; }
.m-stats .b5t {
    font-size: 22px;
    font-weight: 700;
    color: #1e2127;
    margin-bottom: 10px;
}
.m-stats .b5 td {
    border: 1px solid #ddd;
    background: #f6f6f6;
    text-align: center;
    height: 50px;
    padding: 0 6px;
}
.m-stats .b5 td p { line-height: 20px; margin: 0; }
.m-stats .b5 td b { color: #000000; }
.m-stats .b5 td p:first-child { color: #8f8f8f; }
.m-stats .b5 td p:nth-child(2) { color: #4c4c4c; }
.m-stats .b5 .red { color: #FF0000 !important; }
.m-stats .b3 .red { color: #FF0000 !important; }

/* 空数据提示 */
.m-stats .yysf-empty {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    background: #fafafa;
    border: 1px dashed #ddd;
    margin-bottom: 15px;
}

/* 搜索框 */
.m-stats .search-wrap {
    background: #FFF;
    border: 1px solid #EAEAEA;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.m-stats .search-wrap input {
    flex: 1;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #ddd;
    font-size: 13px;
    color: #000;
}
.m-stats .search-wrap button {
    height: 34px;
    padding: 0 18px;
    background: #da0000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
}
.m-stats .search-wrap button:hover { background: #FF0000; }
