* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
}

.header {
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 50%;
    margin: 0 auto;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 历史记录容器 */
.lishi-container {
    width: 50%;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 历史记录期数显示 */
.lishi-issue {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

/* 导航栏样式 */
.nav-container {
    width: 50%;
    margin: 20px auto;
    padding: 0 20px;
}

/* 新公告栏样式 */
.announcement-bar-container {
    width: 50%;
    margin: 20px auto;
    padding: 0 20px;
}

.announcement-bar-header {
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    height: 60px;
    overflow: hidden;
}

.announcement-label {
    font-weight: bold;
    margin-right: 15px;
    white-space: nowrap;
    font-size: 16px;
    flex-shrink: 0;
}

.announcement-scroll {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.announcement-scroll span {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
    padding-left: 100%;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 旧公告栏样式 */
.announcement-container {
    width: 50%;
    margin: 10px auto;
    padding: 0 20px;
}

.announcement-content {
    background: linear-gradient(135deg, #ffc107, #ffca28);
    color: #333;
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: calc(50% * 0.6);
    min-height: 35px;
}

.announcement-label {
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
    color: #d63384;
}

.announcement-scroll {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-scroll span {
    display: inline-block;
    animation: scroll-left 10s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 彩种切换按钮样式 */
.lottery-switch-container {
    width: 50%;
    margin: 15px auto;
    padding: 0 20px;
}

.lottery-switch-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.lottery-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 10px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lottery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #0056b3, #004085);
}

.lottery-btn:active {
    transform: translateY(0);
}

.lottery-btn.active {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 彩票内容区域样式 */
.lottery-container {
    width: 50%;
    margin: 20px auto;
    padding: 0 20px;
}

.new-KJ-TabBox-box {
    font-size: 16px;
    box-sizing: border-box;
    color: #333;
    padding: 8px;
    font-family: "PingFang SC", "microsoft yahei", arial, "helvetica neue", "hiragino sans gb", sans-serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.new-KJ-TabBox-box a {
    text-decoration: none;
}

.new-KJ-TabBox-box .kj-font-red {
    color: #f00 !important;
}

.new-KJ-TabBox-box-tit {
    display: flex;
    align-items: center;
    height: 17px;
    line-height: 17px;
    font-size: 17px;
}

.new-KJ-TabBox-box-tit-l {}

.new-KJ-TabBox-box-tit-m {
    flex: 1;
    text-align: center;
    font-weight: bold;
}

.new-KJ-TabBox-box-tit-r {}

.new-KJ-TabBox-box-con {
    display: flex;
    margin: 8px 0;
}

.new-KJ-TabBox-box-con .kj-ball {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 61px;
    text-align: center;
    border-radius: 4px;
    margin-right: 6px;
    box-sizing: border-box;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 3px solid #333;
}

.new-KJ-TabBox-box-con .kj-ball:last-child {
    margin-right: 0;
}

.new-KJ-TabBox-box-con .kj-ball:nth-last-child(3) {
    margin-right: 6px;
}

.new-KJ-TabBox-box-con .kj-ball h2 {
    margin: 0;
    padding: 0;
    color: #fff;
    line-height: 30px;
    font-size: 28px;
    font-weight: 900;
    font-family: Tahoma, Geneva, sans-serif;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
}

.new-KJ-TabBox-box-con .kj-ball .whsx {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    line-height: 30px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    color: #333;
    font-size: 14px;
    background: #fff !important;
    font-weight: bold;
    flex: 1;
}

.plus-sign {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 10px;
}

.new-KJ-TabBox-box-foot {
    display: flex;
    align-items: center;
    font-size: 16px;
    flex-wrap: wrap;
}

.new-KJ-TabBox-box-foot-l {
    flex: 1;
    white-space: nowrap;
}

.new-KJ-TabBox-box-foot-r {}

.refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 10px;
}

/* 号码球颜色样式 - 纯色背景 */
.kj-ball.red-ball {
    background-color: #ff4757 !important;
}

.kj-ball.blue-ball {
    background-color: #3742fa !important;
}

.kj-ball.green-ball {
    background-color: #2ed573 !important;
}

.kj-ball.red-ball h2,
.kj-ball.blue-ball h2,
.kj-ball.green-ball h2 {
    color: white !important;
}

/* 号码球颜色样式 - 红绿蓝三色配置 */
.kj-ball.red {
    background-color: #ff4757 !important;
}

.kj-ball.green {
    background-color: #2ed573 !important;
}

.kj-ball.blue {
    background-color: #3742fa !important;
}

.kj-ball.red h2,
.kj-ball.green h2,
.kj-ball.blue h2 {
    color: white !important;
}

/* 加载状态样式 */
.kj-ball.loading {
    background: #f8f9fa !important;
    position: relative;
    overflow: hidden;
}

.kj-ball.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 期数选择栏样式 */
.period-selector-container {
    width: 50%;
    margin: 15px auto;
    padding: 0 20px;
}

.period-selector {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.period-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.period-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.period-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.period-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.period-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #28a745;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 网站信息样式 */
.website-info {
    background: #f8f9fa;
    color: #333;
    padding: 8px 15px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.website-link {
    font-size: 14px;
}

.website-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.website-link a:hover {
    text-decoration: underline;
}

/* 更新时间样式 */
.update-time {
    background: linear-gradient(135deg, #ffc107, #ffca28);
    color: #333;
    padding: 6px 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.update-label {
    font-weight: bold;
    margin-right: 5px;
}

.update-frequency {
    color: #d63384;
    font-weight: bold;
}

/* 期数选择栏响应式设计 */
@media (max-width: 768px) {
    .period-selector-container {
        width: 100%;
        margin: 12px auto;
        padding: 0 16px;
    }

    .period-selector {
        padding: 8px 12px;
    }

    .period-header {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .period-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .period-btn {
        padding: 5px 3px;
        font-size: 11px;
    }

    .website-info,
    .update-time {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .period-selector-container {
        padding: 0 12px;
        margin: 10px auto;
    }

    .period-selector {
        padding: 6px 10px;
    }

    .period-header {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .period-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .period-btn {
        padding: 4px 2px;
        font-size: 10px;
    }

    .website-info,
    .update-time {
        padding: 5px 10px;
        font-size: 12px;
        margin-bottom: 6px;
    }
}

/* 资料类型切换按钮样式 */
.materials-type-container {
    width: 50%;
    margin: 20px auto;
    padding: 0 20px;
}

.materials-type-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
}

.materials-type-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.materials-type-tab.active {
    background: white;
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.materials-type-tab:hover {
    background: #f0f0f0;
}

/* 解四不像图板块样式 */
.four-unlike-container {
    width: 50%;
    margin: 20px auto;
    padding: 0 20px;
}

.four-unlike-header {
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.four-unlike-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

/* 旧的按钮样式已移除，使用新的 .material-period-btn 样式 */

.unlike-content {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    padding: 20px;
    overflow: hidden;
}

/* 加载和错误状态样式 */
.unlike-loading,
.unlike-error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 260px;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
}

.unlike-error {
    color: #dc3545;
}

/* 解新彩挂牌图板块样式 */
.new-lottery-container {
    width: 50%;
    margin: 20px auto;
    padding: 0 20px;
}

.new-lottery-header {
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.new-lottery-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

/* 旧的按钮样式已移除，使用新的 .material-period-btn 样式 */

.new-lottery-content {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    padding: 20px;
    overflow: hidden;
}

/* 加载和错误状态样式 */
.new-lottery-loading,
.new-lottery-error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 260px;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
}

.new-lottery-error {
    color: #dc3545;
}

/* 管家婆板块样式 */
.housekeeper-container {
    width: 50%;
    margin: 20px auto;
    padding: 0 20px;
}

.housekeeper-header {
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.housekeeper-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

/* 旧的按钮样式已移除，使用新的 .material-period-btn 样式 */

.housekeeper-content {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    padding: 20px;
    overflow: hidden;
}

/* 加载和错误状态样式 */
.housekeeper-loading,
.housekeeper-error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 260px;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
}

.housekeeper-error {
    color: #dc3545;
}

/* 三板块响应式设计 */
@media (max-width: 768px) {
    .materials-type-container {
        width: 100%;
        margin: 15px auto;
        padding: 0 16px;
    }

    .materials-type-tab {
        padding: 10px 12px;
        font-size: 13px;
    }

    .four-unlike-container,
    .new-lottery-container,
    .housekeeper-container {
        width: 100%;
        margin: 15px auto;
        padding: 0 16px;
    }

    .four-unlike-header,
    .new-lottery-header,
    .housekeeper-header {
        padding: 12px 16px;
    }

    .four-unlike-header h3,
    .new-lottery-header h3,
    .housekeeper-header h3 {
        font-size: 16px;
    }

    .four-unlike-buttons,
    .new-lottery-buttons,
    .housekeeper-buttons {
        padding: 12px;
        gap: 1.5%;
    }

    .unlike-btn,
    .new-lottery-btn,
    .housekeeper-btn {
        padding: 10px 6px;
        font-size: 12px;
    }

    .unlike-content,
    .new-lottery-content,
    .housekeeper-content {
        padding: 16px;
        min-height: 250px;
    }

    .unlike-loading,
    .unlike-error,
    .new-lottery-loading,
    .new-lottery-error,
    .housekeeper-loading,
    .housekeeper-error {
        height: 210px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .materials-type-container {
        padding: 0 12px;
        margin: 12px auto;
    }

    .materials-type-tab {
        padding: 8px 10px;
        font-size: 12px;
    }

    .four-unlike-container,
    .new-lottery-container,
    .housekeeper-container {
        padding: 0 12px;
        margin: 12px auto;
    }

    .four-unlike-header,
    .new-lottery-header,
    .housekeeper-header {
        padding: 10px 12px;
    }

    .four-unlike-header h3,
    .new-lottery-header h3,
    .housekeeper-header h3 {
        font-size: 15px;
    }

    .four-unlike-buttons,
    .new-lottery-buttons,
    .housekeeper-buttons {
        padding: 10px;
        gap: 1%;
    }

    .unlike-btn,
    .new-lottery-btn,
    .housekeeper-btn {
        padding: 8px 4px;
        font-size: 11px;
    }

    .unlike-content,
    .new-lottery-content,
    .housekeeper-content {
        padding: 12px;
        min-height: 200px;
    }

    .unlike-loading,
    .unlike-error,
    .new-lottery-loading,
    .new-lottery-error,
    .housekeeper-loading,
    .housekeeper-error {
        height: 160px;
        font-size: 12px;
    }
}

/* 导航图片样式 */
.nav-images {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.nav-image {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: none;
}

.nav-image.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.nav-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 无图片提示 */
.no-image {
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    font-size: 16px;
}

/* 手机版导航样式 */
@media (max-width: 768px) {
    .header {
        width: 100%;
        padding: 16px;
    }

    .header h1 {
        font-size: 20px;
    }

    .nav-container,
    .announcement-container,
    .lottery-switch-container,
    .lottery-container,
    .lishi-container {
        width: 100%;
        margin: 10px auto;
        padding: 0 16px;
    }

    .announcement-content {
        padding: 6px 12px;
        min-height: 30px;
    }

    .announcement-label {
        margin-right: 8px;
        font-size: 14px;
    }

    .lottery-switch-buttons {
        gap: 8px;
    }

    .lottery-btn {
        padding: 8px 6px;
        font-size: 12px;
    }

    .new-KJ-TabBox-box {
        font-size: 14px;
    }

    .new-KJ-TabBox-box-tit {
        font-size: 16px;
    }

    .new-KJ-TabBox-box-con .kj-ball {
        margin-right: 4px;
    }

    .new-KJ-TabBox-box-con .kj-ball:nth-last-child(3) {
        margin-right: 4px;
    }

    .new-KJ-TabBox-box-con .kj-ball h2 {
        font-size: 24px;
        line-height: 25px;
    }

    .new-KJ-TabBox-box-con .kj-ball .whsx {
        height: 25px;
        line-height: 25px;
        font-size: 12px;
    }

    .new-KJ-TabBox-box-foot {
        font-size: 15px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .header {
        padding: 14px 12px;
    }

    .header h1 {
        font-size: 18px;
    }

    .nav-container,
    .announcement-container,
    .lottery-switch-container,
    .lottery-container,
    .lishi-container {
        padding: 0 12px;
        margin: 8px auto;
    }

    .announcement-content {
        padding: 5px 10px;
        min-height: 28px;
    }

    .announcement-label {
        margin-right: 6px;
        font-size: 13px;
    }

    .lottery-switch-buttons {
        gap: 6px;
    }

    .lottery-btn {
        padding: 6px 4px;
        font-size: 11px;
        border-radius: 4px;
    }

    .new-KJ-TabBox-box-tit,
    .new-KJ-TabBox-box-foot {
        font-size: 14px;
    }

    .no-image {
        padding: 40px 15px;
        font-size: 14px;
    }
}

/* 无数据提示样式 */
.no-data-message {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 40px 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    border: 1px dashed #ddd;
    width: 100%;
    margin: 8px 0;
}

/* 加载状态样式 */
.loading-message {
    text-align: center;
    color: #10b981;
    font-size: 16px;
    padding: 40px 20px;
    background-color: #f0fdf4;
    border-radius: 8px;
    border: 1px dashed #86efac;
    width: 100%;
    margin: 8px 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 资料显示样式 */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.material-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.material-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.material-period {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 12px;
}

.material-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.material-image {
    text-align: center;
    margin-bottom: 10px;
}

.material-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.material-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-error {
    display: none;
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #f5c6cb;
}

.material-remark {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-left: 4px solid #007bff;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.material-remark:empty {
    display: none;
}

/* 资料加载和错误状态样式 */
.materials-loading,
.materials-error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 260px;
    font-size: 14px;
    text-align: center;
}

.materials-loading {
    color: #10b981;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px dashed #86efac;
    animation: pulse 2s infinite;
}

.materials-error {
    color: #dc3545;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px dashed #fecaca;
}

/* 资料显示响应式设计 */
@media (max-width: 768px) {
    .materials-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 8px 0;
    }

    .material-item {
        padding: 12px;
    }

    .material-period {
        padding: 6px 10px;
        font-size: 13px;
    }

    .material-remark {
        padding: 8px;
        font-size: 13px;
    }

    .material-period-btn {
        padding: 8px 6px;
        font-size: 11px;
    }

    .materials-loading,
    .materials-error {
        height: 210px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .materials-grid {
        gap: 12px;
        padding: 5px 0;
    }

    .material-item {
        padding: 10px;
    }

    .material-period {
        padding: 5px 8px;
        font-size: 12px;
    }

    .material-remark {
        padding: 6px;
        font-size: 12px;
    }

    .material-period-btn {
        padding: 6px 4px;
        font-size: 10px;
    }

    .materials-loading,
    .materials-error {
        height: 160px;
        font-size: 12px;
    }
}

/* iframe 容器样式 */
.materials-iframe-container {
    width: 50%;
    margin: 20px auto;
    padding: 0 20px;
    background: transparent;
}

.materials-iframe-container iframe {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* iframe 响应式设计 */
@media (max-width: 768px) {
    .materials-iframe-container {
        width: 100%;
        margin: 15px auto;
        padding: 0 16px;
    }

    .materials-iframe-container iframe {
        min-height: 1000px;
    }
}

@media (max-width: 480px) {
    .materials-iframe-container {
        padding: 0 12px;
        margin: 12px auto;
    }

    .materials-iframe-container iframe {
        min-height: 900px;
    }
}

/* ===== 资料专区样式 ===== */
.materials-container {
    width: 50%;
    margin: 20px auto;
    padding: 0 20px;
}

/* 资料类型切换按钮样式 */
.materials-type-switch-container {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 2px solid #ddd;
}

.materials-type-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.materials-type-btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #ccc;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.materials-type-btn:hover {
    border-color: #ff4757;
    color: #ff4757;
}

.materials-type-btn.active {
    background-color: #ff4757;
    color: #fff;
    border-color: #ff4757;
}

/* 资料板块样式 */
.four-unlike-container,
.new-lottery-container,
.housekeeper-container {
    width: 100%;
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.four-unlike-header,
.new-lottery-header,
.housekeeper-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff4757;
}

.four-unlike-header h3,
.new-lottery-header h3,
.housekeeper-header h3 {
    color: #333;
    font-size: 18px;
    margin: 0;
}

/* 期数按钮样式 */
.four-unlike-buttons,
.new-lottery-buttons,
.housekeeper-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* 期数按钮容器 */
.four-unlike-buttons,
.new-lottery-buttons,
.housekeeper-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.material-period-btn {
    flex: 1;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-period-btn:hover {
    border-color: #ff4757;
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.material-period-btn.active {
    background-color: #ff4757;
    color: #fff;
    border-color: #ff4757;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

/* 资料内容样式 */
.unlike-content,
.new-lottery-content,
.housekeeper-content {
    min-height: 200px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

/* 资料图片样式 */
.materials-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.materials-image {
    max-width: 100%;
    max-height: 400px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 资料加载和错误状态 */
.materials-loading,
.materials-error {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
}

.materials-error {
    color: #dc3545;
}

.material-item {
    margin-bottom: 15px;
}

.material-period {
    font-weight: bold;
    color: #ff4757;
    margin-bottom: 8px;
    font-size: 14px;
}

.material-content {
    color: #666;
    line-height: 1.6;
}

.material-image {
    max-width: 100%;
    margin: 10px 0;
}

.material-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-error {
    display: none;
    color: #ff4757;
    padding: 20px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 4px;
}

.material-remark {
    color: #999;
    font-size: 12px;
    margin-top: 8px;
    padding: 8px;
    background: #f5f5f5;
    border-left: 3px solid #ff4757;
    border-radius: 2px;
}

.material-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.materials-loading,
.materials-error,
.material-empty {
    text-align: center;
    padding: 30px;
    color: #999;
}

.materials-error {
    color: #ff4757;
}

.materials-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 高手贴板块样式 */
.expert-posts-container {
    width: 50%;
    margin: 20px auto;
    padding: 0 20px;
}

.expert-posts-header {
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.expert-posts-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.expert-posts-content {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
}

.expert-posts-table {
    width: 100%;
    border-collapse: collapse;
}

.expert-posts-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.expert-posts-table tbody tr:last-child {
    border-bottom: none;
}

.expert-posts-table td {
    padding: 0;
    text-align: center;
    border-right: 1px solid #e0e0e0;
}

.expert-posts-table td:last-child {
    border-right: none;
}

.expert-posts-table td a {
    display: block;
    padding: 15px 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.expert-posts-table td a:hover {
    background: #f0f8ff;
    color: #e74c3c;
    transform: scale(1.05);
}

/* 高手贴弹窗样式 */
.expert-posts-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.expert-posts-modal.active {
    display: block;
}

.expert-posts-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.expert-posts-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.expert-posts-modal-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expert-posts-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.expert-posts-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.expert-posts-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.expert-posts-modal-body {
    padding: 25px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.expert-posts-modal-body::-webkit-scrollbar {
    width: 8px;
}

.expert-posts-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.expert-posts-modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.expert-posts-modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 弹窗内五期内容 - 文章形式样式 */
.expert-article-content {
    width: 100%;
    margin-top: 10px;
}

.expert-period-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.8;
}

.expert-period-item:last-child {
    border-bottom: none;
}

.expert-period-number {
    display: inline-block;
    min-width: 100px;
    font-weight: 700;
    color: #28a745;
    font-size: 16px;
    margin-right: 20px;
    flex-shrink: 0;
}

.expert-period-content {
    flex: 1;
    color: #333;
    font-size: 15px;
    word-wrap: break-word;
    word-break: break-all;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .expert-posts-container {
        width: 100%;
        padding: 0 16px;
    }

    .expert-posts-header {
        padding: 12px 16px;
    }

    .expert-posts-header h3 {
        font-size: 16px;
    }

    .expert-posts-table td a {
        padding: 12px 8px;
        font-size: 13px;
    }

    .expert-posts-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .expert-posts-modal-header {
        padding: 15px 20px;
    }

    .expert-posts-modal-header h3 {
        font-size: 18px;
    }

    .expert-posts-modal-body {
        padding: 20px;
    }

    .expert-period-item {
        padding: 12px 0;
        flex-direction: column;
    }

    .expert-period-number {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 8px;
        font-size: 15px;
    }

    .expert-period-content {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .expert-posts-container {
        padding: 0 12px;
    }

    .expert-posts-header {
        padding: 10px 12px;
    }

    .expert-posts-header h3 {
        font-size: 15px;
    }

    .expert-posts-table td a {
        padding: 10px 6px;
        font-size: 12px;
    }

    .expert-posts-modal-header {
        padding: 12px 15px;
    }

    .expert-posts-modal-header h3 {
        font-size: 16px;
    }

    .expert-posts-modal-body {
        padding: 15px;
    }

    .expert-period-item {
        padding: 10px 0;
    }

    .expert-period-number {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .expert-period-content {
        font-size: 13px;
    }
}

/* 响应式设计 - 公告栏 */
@media (max-width: 768px) {
    .announcement-bar-container {
        width: 100%;
        padding: 0 16px;
    }

    .announcement-bar-header {
        height: 50px;
        padding: 12px 16px;
    }

    .announcement-label {
        font-size: 14px;
        margin-right: 12px;
    }

    .announcement-scroll span {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .announcement-bar-container {
        width: 100%;
        padding: 0 12px;
    }

    .announcement-bar-header {
        height: 45px;
        padding: 10px 12px;
    }

    .announcement-label {
        font-size: 12px;
        margin-right: 10px;
    }

    .announcement-scroll span {
        font-size: 12px;
    }
}

/* 开奖栏样式 */
.lottery-results-container {
    width: 50%;
    margin: 20px auto;
    padding: 0 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-size: 16px;
    box-sizing: border-box;
    color: #333;
    font-family: "PingFang SC", "microsoft yahei", arial, "helvetica neue", "hiragino sans gb", sans-serif;
}

.lottery-results-container a {
    text-decoration: none;
}

.lottery-results-container .kj-font-red {
    color: #f00 !important;
}

/* 开奖栏内的标题样式 */
.lottery-results-container .new-KJ-TabBox-box-tit {
    display: flex;
    align-items: center;
    height: 17px;
    line-height: 17px;
    font-size: 17px;
    padding: 8px 0;
}

.lottery-results-container .new-KJ-TabBox-box-tit-l {}

.lottery-results-container .new-KJ-TabBox-box-tit-m {
    flex: 1;
    text-align: center;
    font-weight: bold;
}

.lottery-results-container .new-KJ-TabBox-box-tit-r {}

/* 开奖栏内的号码显示样式 */
.lottery-results-container .new-KJ-TabBox-box-con {
    display: flex;
    margin: 8px 0;
    align-items: center;
}

.lottery-results-container .new-KJ-TabBox-box-con .kj-ball {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 61px;
    text-align: center;
    border-radius: 4px;
    margin-right: 6px;
    box-sizing: border-box;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 3px solid #333;
}

.lottery-results-container .new-KJ-TabBox-box-con .kj-ball:last-child {
    margin-right: 0;
}

.lottery-results-container .new-KJ-TabBox-box-con .kj-ball:nth-last-child(3) {
    margin-right: 6px;
}

.lottery-results-container .new-KJ-TabBox-box-con .kj-ball h2 {
    margin: 0;
    padding: 0;
    color: #fff;
    line-height: 30px;
    font-size: 28px;
    font-weight: 900;
    font-family: Tahoma, Geneva, sans-serif;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
}

.lottery-results-container .new-KJ-TabBox-box-con .kj-ball .whsx {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    line-height: 30px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    color: #333;
    font-size: 14px;
    background: #fff !important;
    font-weight: bold;
    flex: 1;
}

.lottery-results-container .new-KJ-TabBox-box-con .plus-sign {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 10px;
}

/* 开奖栏内的底部样式 */
.lottery-results-container .new-KJ-TabBox-box-foot {
    display: flex;
    align-items: center;
    font-size: 16px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.lottery-results-container .new-KJ-TabBox-box-foot-l {
    flex: 1;
    white-space: nowrap;
}

.lottery-results-container .new-KJ-TabBox-box-foot-r {}

.lottery-results-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
}

.lottery-results-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.lottery-results-tab:hover {
    background: #efefef;
}

.lottery-results-tab.active {
    background: white;
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.lottery-results-content {
    padding: 30px 20px;
}

.lottery-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.lottery-results-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.lottery-results-time {
    font-size: 12px;
    color: #999;
}

.lottery-numbers-display {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.lottery-numbers-group {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}

.lottery-number-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex: 1;
    max-width: 70px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 140px;
}

.lottery-ball {
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    box-shadow: none;
    margin-bottom: 0;
    border-bottom: 2px solid #ddd;
}

.lottery-ball.red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.lottery-ball.green {
    background: linear-gradient(135deg, #2e8b57, #3cb371);
}

.lottery-ball.blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.lottery-zodiac {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    height: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: white;
    padding: 0;
}

.lottery-color {
    font-size: 11px;
    color: #999;
    height: 14px;
    line-height: 14px;
    display: none;
}

.lottery-plus {
    font-size: 28px;
    color: #e74c3c;
    font-weight: bold;
    margin: 0;
    flex: 0 0 auto;
    padding: 0 10px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .lottery-results-container {
        width: 100%;
        padding: 0 16px;
    }

    .lottery-results-container .new-KJ-TabBox-box-tit {
        font-size: 16px;
    }

    .lottery-results-container .new-KJ-TabBox-box-con .kj-ball {
        margin-right: 4px;
    }

    .lottery-results-container .new-KJ-TabBox-box-con .kj-ball:nth-last-child(3) {
        margin-right: 4px;
    }

    .lottery-results-container .new-KJ-TabBox-box-con .kj-ball h2 {
        font-size: 24px;
        line-height: 25px;
    }

    .lottery-results-container .new-KJ-TabBox-box-con .kj-ball .whsx {
        height: 25px;
        line-height: 25px;
        font-size: 12px;
    }

    .lottery-results-container .new-KJ-TabBox-box-foot {
        font-size: 15px;
    }

    .lottery-results-tab {
        padding: 10px 12px;
        font-size: 13px;
    }

    .lottery-results-content {
        padding: 20px 15px;
    }

    .lottery-results-title {
        font-size: 14px;
    }

    .lottery-results-time {
        font-size: 11px;
    }

    .lottery-numbers-display {
        margin-top: 20px;
    }

    .lottery-number-item {
        max-width: 60px;
        border: 1.5px solid #ddd;
        height: 120px;
    }

    .lottery-ball {
        font-size: 18px;
        border-bottom: 1.5px solid #ddd;
        height: 50%;
    }

    .lottery-zodiac {
        font-size: 11px;
        height: 50%;
    }

    .lottery-plus {
        font-size: 24px;
        padding: 0 6px;
        height: 120px;
    }

    .materials-container {
        width: 100%;
        padding: 0 16px;
    }

    .materials-type-buttons {
        gap: 8px;
    }

    .materials-type-btn {
        padding: 6px 16px;
        font-size: 13px;
    }

    .four-unlike-container,
    .new-lottery-container,
    .housekeeper-container {
        margin: 15px 0;
        padding: 12px;
    }

    .four-unlike-header h3,
    .new-lottery-header h3,
    .housekeeper-header h3 {
        font-size: 16px;
    }

    .material-period-btn {
        padding: 10px 6px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .lottery-results-container {
        width: 100%;
        padding: 0 12px;
    }

    .lottery-results-container .new-KJ-TabBox-box-tit,
    .lottery-results-container .new-KJ-TabBox-box-foot {
        font-size: 14px;
    }

    .lottery-results-tab {
        padding: 8px 10px;
        font-size: 12px;
    }

    .lottery-results-content {
        padding: 15px 12px;
    }

    .lottery-results-title {
        font-size: 13px;
    }

    .lottery-results-time {
        font-size: 10px;
    }

    .lottery-numbers-display {
        margin-top: 20px;
    }

    .lottery-number-item {
        max-width: 48px;
        border: 1px solid #ddd;
        height: 100px;
    }

    .lottery-ball {
        font-size: 16px;
        border-bottom: 1px solid #ddd;
        height: 50%;
    }

    .lottery-zodiac {
        font-size: 10px;
        height: 50%;
    }

    .lottery-plus {
        font-size: 20px;
        padding: 0 4px;
        height: 100px;
    }

    .materials-container {
        width: 100%;
        padding: 0 12px;
    }

    .materials-type-buttons {
        gap: 6px;
    }

    .materials-type-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .four-unlike-container,
    .new-lottery-container,
    .housekeeper-container {
        margin: 10px 0;
        padding: 10px;
    }

    .four-unlike-header h3,
    .new-lottery-header h3,
    .housekeeper-header h3 {
        font-size: 14px;
    }

    .material-period-btn {
        padding: 8px 4px;
        font-size: 11px;
    }

    .materials-table-container {
        width: 100%;
        padding: 0 5px;
    }

    .materials-table {
        font-size: 11px;
    }

    .materials-table th,
    .materials-table td {
        padding: 6px;
    }

    .materials-table-header h3 {
        font-size: 14px;
    }
}

/* 资料表格容器 */
.materials-table-container {
    width: 50%;
    margin: 20px auto;
    padding: 0 20px;
}

.materials-table-header {
    background: #4a90e2;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.materials-table-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.materials-table-content {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.materials-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.materials-table thead {
    border-bottom: 2px solid #ddd;
}

.materials-table th {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: white;
    background: #4a90e2;
    border-right: 1px solid #ddd;
}

.materials-table th:last-child {
    border-right: none;
}

.materials-table tbody tr {
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.materials-table tbody tr:hover {
    background-color: #f9f9f9;
}

.materials-table td {
    padding: 12px;
    text-align: center;
    color: #333;
    border-right: 1px solid #ddd;
}

.materials-table td:last-child {
    border-right: none;
}

.materials-table td:first-child {
    font-weight: 600;
    color: #666;
}

.materials-table td:nth-child(2) {
    color: #e74c3c;
    font-weight: 500;
}

/* 平板响应式 */
@media (max-width: 768px) {
    .materials-table-container {
        width: 100%;
        padding: 0 10px;
    }

    .materials-table {
        font-size: 12px;
    }

    .materials-table th,
    .materials-table td {
        padding: 8px;
    }
}
/* 精选内容 - 4*8按钮网格样式 */
.category4-content {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.material-article-btn {
    padding: 12px 8px;
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-article-btn:hover {
    background: linear-gradient(135deg, #3cb371, #2e8b57);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.material-article-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.material-article-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.material-article-btn.disabled:hover {
    transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 弹窗样式 */
.materials-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.materials-modal.active {
    display: block;
}

.materials-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.materials-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.materials-modal-header {
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.materials-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.materials-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.materials-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.materials-modal-body {
    padding: 25px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.materials-modal-body::-webkit-scrollbar {
    width: 8px;
}

.materials-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.materials-modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.materials-modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 响应式 - 移动端适配 */
@media (max-width: 768px) {
    .category4-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 15px;
    }

    .material-article-btn {
        font-size: 12px;
        padding: 10px 6px;
        min-height: 45px;
    }

    .materials-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .materials-modal-body {
        padding: 20px;
        font-size: 14px;
    }
}

/* ========== ʮ������ϰ����ʽ ========== */

/* �Ĳ���ͼƬչʾ��� */
.sibuxiang-section {
    width: 50%;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #2e8b57;
}

/* �Ĳ���ť */
.sibuxiang-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sibuxiang-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sibuxiang-btn:hover {
    background: linear-gradient(135deg, #3cb371, #2e8b57);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sibuxiang-btn.active {
    background: linear-gradient(135deg, #1e6b47, #2e8b57);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* ͼƬ��ʾ���� */
.sibuxiang-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
}

.sibuxiang-image-container img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.sibuxiang-image-container img:hover {
    transform: scale(1.02);
}

/* ���ݱ����� */
.data-table-section {
    width: 50%;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* ��ͷ - ��ɫ���� */
.data-table thead th.table-header-green {
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: none;
}

/* ��ͷ - ��ɫ���� (11.30���ϣ� */
#materials-11-30 .data-table thead th.table-header-green {
    background: linear-gradient(135deg, #ffc107, #ffca28);
    color: #333;
}

/* ����Ԫ�� */
.data-table tbody tr {
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.data-table tbody tr:hover {
    background-color: #f9f9f9;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    padding: 12px 15px;
    text-align: center;
    color: #333;
    border-right: 1px solid #ddd;
}

.data-table tbody td:last-child {
    border-right: none;
}

/* ��һ�мӴ� */
.data-table tbody td:first-child {
    font-weight: 600;
    color: #555;
}

/* �����(������) - ��ɫ���� */
.data-table tbody td:nth-child(3) {
    color: #ff0000;
    font-weight: 600;
}

/* ��Ӧʽ��� - ƽ�� */
@media (max-width: 768px) {
    .sibuxiang-section,
    .data-table-section {
        width: 90%;
        padding: 15px;
    }

    .section-title {
        font-size: 18px;
    }

    .sibuxiang-buttons {
        gap: 8px;
    }

    .sibuxiang-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .sibuxiang-image-container {
        min-height: 300px;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table thead th.table-header-green {
        font-size: 16px;
        padding: 12px;
    }

    .data-table tbody td {
        padding: 10px 12px;
    }
}

/* ��Ӧʽ��� - �ֻ� */
@media (max-width: 480px) {
    .sibuxiang-section,
    .data-table-section {
        width: 95%;
        padding: 12px;
    }

    .section-title {
        font-size: 16px;
    }

    .sibuxiang-buttons {
        gap: 6px;
    }

    .sibuxiang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .sibuxiang-image-container {
        min-height: 250px;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table thead th.table-header-green {
        font-size: 14px;
        padding: 10px;
    }

    .data-table tbody td {
        padding: 8px 10px;
    }
}

/* �����·�˵������ */
.table-description {
    margin-top: 15px;
    padding: 12px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.desc-item {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e74c3c;
    line-height: 1.6;
}

/* ��Ӧʽ - ƽ�� */
@media (max-width: 768px) {
    .table-description {
        padding: 10px 0;
        gap: 6px;
    }

    .desc-item {
        font-size: 13px;
    }
}

/* ��Ӧʽ - �ֻ� */
@media (max-width: 480px) {
    .table-description {
        padding: 8px 0;
        gap: 5px;
    }

    .desc-item {
        font-size: 12px;
    }
}

/* �ܼ��Ű�ť��ʽ */
.guanjiapo-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.guanjiapo-btn:hover {
    background: linear-gradient(135deg, #3cb371, #2e8b57);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.guanjiapo-btn.active {
    background: linear-gradient(135deg, #1e6b47, #2e8b57);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* �²ʹ��ư�ť��ʽ */
.xincaiguapai-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.xincaiguapai-btn:hover {
    background: linear-gradient(135deg, #3cb371, #2e8b57);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.xincaiguapai-btn.active {
    background: linear-gradient(135deg, #1e6b47, #2e8b57);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}
