/**
 * page.css - 页面级样式
 * 从 _action.php 内联样式提取，统一管理，减少页面体积
 */

/* ── 全局布局 ── */
body {
    max-width: 600px;
    margin: 0 auto;
    background: #f4f4f4;
}

/* ── 期号信息栏 ── */
.issue-info {
    flex: 1;
}

/* ── 预测面板 ── */
.forecast-shell {
    background: #fff;
}

/* ── 选项卡导航 ── */
.data-panel-tab {
    display: flex;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid #dfdfdf;
}
.data-panel-tab a {
    display: block;
    flex: 1 0 auto;
    min-width: 25%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.data-panel-tab a.active {
    color: #ff7800;
    border-bottom-color: #ff7800;
    font-weight: bold;
}

/* ── 来源选择条 ── */
.forecast-source-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 10px;
    background: #f5f8fa;
    border-bottom: 1px solid #e7ecef;
}
.forecast-source-strip a {
    display: inline-block;
    padding: 0 10px;
    height: 24px;
    line-height: 24px;
    border-radius: 12px;
    background: #fff;
    color: #666;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
}
.forecast-source-strip a.active {
    background: #ff7800;
    border-color: #ff7800;
    color: #fff;
}

/* ── 预测详情表 ── */
.detail_forecast table td span + span {
    margin-left: 3px;
}

/* ── 面板滚动容器（统一替代各面板内联 style="flex:1;overflow-y:scroll;"）── */
.panel-scroll {
    flex: 1;
    overflow-y: scroll;
}

/* ── 走势图 ── */
.trend-wrap,
.census-wrap {
    background: #fff;
}
.trend-wrap .zstable2 td:first-child,
.trend-wrap .zstable2 th:first-child {
    width: 92px;
}
.trend-wrap .zstable2 td:nth-child(2),
.trend-wrap .zstable2 th:nth-child(2) {
    width: 56px;
}
.trend-wrap .zstable2 th,
.trend-wrap .zstable2 td {
    font-size: 14px;
}
.trend-wrap .zstable2-main td {
    height: 38px;
}
.trend-wrap .zstable2-main td:first-child,
.trend-wrap .zstable2-main td:nth-child(2) {
    color: #4b4b4b;
    font-size: 16px;
}
.trend-wrap .trend-badge {
    display: inline-block;
    min-width: 28px;
    height: 30px;
    line-height: 30px;
    padding: 0 6px;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
}
.trend-wrap .trend-badge-blue { background: #3233ff; }
.trend-wrap .trend-badge-red  { background: #ff0000; }
.trend-wrap .zstable3 th,
.trend-wrap .zstable3 td {
    background: #bae2ff !important;
    font-size: 16px;
    height: 40px;
    color: #4b4b4b;
}
.trend-wrap .zstable2-tit th,
.trend-wrap .zstable2-main th {
    background: #1089e0 !important;
    color: #fff;
    font-size: 18px;
    height: 46px;
}
.trend-wrap .count {
    padding-left: 0;
    font-size: 16px;
    float: none;
    display: inline-block;
}
.trend-wrap .count-time {
    margin-left: 34px;
    font-size: 16px;
    float: none;
    display: inline-block;
    color: #4b4b4b;
}
/* 统计数据列宽（替代原内联 style="width:30%"）*/
.stat-col { width: 30%; }

/* ── 间隔数据 ── */
.census-wrap .mustlook table td {
    width: 50%;
}
.census-wrap .mustlook table td span {
    display: block;
    font-size: 14px;
    color: #666;
    line-height: 34px;
}
.census-wrap .mustlook table td i {
    display: inline-block;
    margin: 0 4px;
    color: #f55252;
    font-style: normal;
    font-weight: bold;
}

/* ── 咪牌弹层 ── */
.mipai { display: none; }
.mipai.is-open {
    display: flex;
    z-index: 100000000;
}
.mipai.is-open .mipai-bg {
    background: rgba(0, 0, 0, .8);
    z-index: 10;
}
.mipai.is-open .mi-index { z-index: 11; }
body.mipai-lock { overflow-y: hidden !important; }

/* 替代原内联 style="display:none;" 的隐藏图片（用于咪牌动画） */
.mipai-hidden { display: none; }

/* ── 站点介绍文字（爬虫可见的关键词文本区域）── */
.site-intro {
    background: #fff;
    padding: 12px 16px;
    margin-top: 8px;
    border-top: 1px solid #ececec;
}
.site-intro p {
    font-size: 13px;
    color: #888;
    line-height: 1.8;
    text-align: center;
}

/* ── 页脚 ── */
.site-footer {
    background: #fff;
    margin-top: 12px;
    padding: 18px 16px 22px;
    border-top: 1px solid #ececec;
    text-align: center;
}
.site-footer-line {
    height: 1px;
    background: #e6e6e6;
    margin: 0 0 16px;
}
.site-footer-copy {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.9;
    word-break: break-word;
}
.site-footer-reserved {
    display: inline-block;
    white-space: nowrap;
}
