/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.5;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    width: 100%;
    overflow-x: hidden;
}

/* ===== 顶部导航 ===== */
.top-nav {
    background: #2c3e50;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #c0392b;  /* 深红色 */
}
.top-nav a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 5px;
    padding: 3px 8px;
    border-radius: 3px;
}
.top-nav a:hover {
    background: #34495e;
}

/* ===== 公告 ===== */
.notice {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 8px 15px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

/* ===== 期数导航 ===== */
.issue-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}
.issue-nav a {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 4px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid #d0d7de;
}
.issue-nav a:hover {
    background: #c0392b;  /* 深红色 */
    color: #fff;
    border-color: #a93226;
}

/* ===== 开奖直播 ===== */
.live-frame {
    margin: 10px 15px;
}
.live-frame iframe {
    width: 100%;
    height: 180px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* ===== 板块标题 ===== */
.section-title {
    background: #2c3e50;
    color: #fff;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
    border-left: 3px solid #c0392b;  /* 深红色 */
}

/* 多彩色标题 - 加深 */
.section-title.red { background: #c0392b; }      /* 中国红 */
.section-title.blue { background: #2980b9; }     /* 深蓝 */
.section-title.green { background: #27ae60; }    /* 翠绿 */
.section-title.orange { background: #d35400; }   /* 橙红 */
.section-title.purple { background: #8e44ad; }   /* 深紫 */
.section-title.teal { background: #16a085; }     /* 深青 */

/* ===== 板块内容 ===== */
.section-content {
    padding: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    margin-bottom: 10px;
    overflow-x: hidden;
}

/* ===== 数据行 - 网格布局保证对齐 ===== */
.data-row {
    display: grid;
    grid-template-columns: 65px 90px 1fr 85px;  /* 固定列宽：期号、标题、内容、结果 */
    align-items: start;
    padding: 6px 10px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.6;
}

/* 带边框的数据行（多行板块内部） */
.data-row-with-border {
    border-bottom: 1px dotted #d0d7de;
}
.data-row-with-border:last-child {
    border-bottom: none;
}

/* 期号列 - 左对齐，中国红 */
.issue-col {
    color: #c0392b;  /* 中国红 */
    font-weight: 700;
    font-size: 16px;
    text-align: left;
    white-space: nowrap;
}

/* 标题列 - 左对齐，深蓝 */
.title-col {
    color: #2980b9;  /* 深蓝 */
    font-weight: 700;
    font-size: 16px;
    text-align: left;
    white-space: nowrap;
}

/* 内容列 - 左对齐，中国红，自动换行 */
.content-col {
    color: #FF4D4D;  /* 中国红 */
    font-size: 16px;
    text-align: center;
    padding: 0 5px 0 0;
    white-space: nowrap;
    word-break: break-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    font-weight: 700;
}

/* 结果列 - 右对齐，深绿 */
.result-col {
    color: #27ae60;  /* 深绿 */
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    white-space: nowrap;
}

/* 号码标签 - 加深 */
.number-tag {
    display: inline-block;
    padding: 2px 4px;
    margin: 0 1px;
    background: #ecf0f1;
    border-radius: 2px;
    font-size: 15px;
    color: #FF0000;  /* 中国红 */
    white-space: nowrap;
    font-weight: 500;
}

/* 生肖标签 - 加深 */
.zodiac-tag {
    display: inline-block;
    padding: 2px 4px;
    margin: 0 1px;
    background: #ecf0f1;
    border-radius: 2px;
    font-size: 15px;
    color: #c0392b;  /* 中国红 */
    font-weight: 500;
}

/* 中奖高亮 - 更醒目 */
.highlight {
    background: #f1c40f !important;  /* 金黄色 */
    color: #e74c3c !important;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 2px;
}

/* 期号分割线 - 中国红 */
.period-divider {
    border-bottom: 2px solid #c0392b;  /* 中国红 */
    margin: 12px 0 6px 0;
    height: 1px;
    background: transparent;
    width: 100%;
}

/* 手机适配 - 阈值改成 768px 覆盖所有手机 */
@media (max-width: 768px) {
    body { font-size: 14px; }
    .data-row {
        grid-template-columns: 40px 50px 1fr 65px;  /* 列宽调小 */
        padding: 4px 6px;
        gap: 2px;
    }
    .issue-col { font-size: 14px; }
    .title-col { font-size: 14px; }
    .content-col { 
        font-size: 14px;
        text-align: center;  /* 手机端左对齐更易读 */
    }
    .result-col { font-size: 14px; }
    .number-tag { 
        font-size: 13px; 
        padding: 1px 2px;
        margin: 0 0px;
    }
    .section-title { 
        font-size: 16px; 
        padding: 8px 10px;
    }
}

/* ===== 底部 ===== */
.footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 15px;
    text-align: center;
    font-size: 13px;
    border-top: 2px solid #c0392b;  /* 中国红 */
    margin-top: 15px;
}