/* 算算神算網页面样式 */

/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
}

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to right, #667eea, #6a82ef, #6880ec, #697edc, #657eea, #6880ea, #667eea);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.tj-icon {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* 主内容区域 - 为固定头部留出空间 */
.container-fluid {
    padding: 0;
}

.container-fluid:has(.lottery-section) {
    padding: 0 15px;
}

.container-fluid:has(.recommend-section) {
    padding: 0 10px;
}

/* 菜单网格样式 */
.menu-grid {
    padding: 5px;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 998;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 占位元素，防止内容被固定头部遮挡 */
.header-spacer {
    height: 155px;
}

.menu-grid .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -3px;
}

.menu-item {
    flex: 1;
    min-width: calc(20% - 6px);
    margin: 3px;
    padding: 8px 4px;
    background: linear-gradient(to right, #667eea, #6a82ef, #6880ec, #697edc, #657eea, #6880ea, #667eea);;
    color: #ffeb3b;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-item:active {
    background: #e0e0e0;
}

/* 菜单项激活状态样式 */
.menu-item.active {
    background: #dc3545 !important;
    color: white !important;
    text-decoration: underline;
    text-decoration-color: white;
    text-underline-offset: 2px;
    transform: translateY(-1px);
}

/* 广告图片样式 */
img.banner-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 200px;
    object-fit: cover;
}

/* 开奖区域样式 */
.lottery-section {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

/* 标题样式 */
.title-section {
    margin-bottom: 12px;
    padding-bottom: 0;
}

.main-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    letter-spacing: 0.3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.title-left {
    flex: 1;
    text-align: left;
}

.title-right {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 开奖号码区域样式 */
.numbers-section {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.numbers-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 0 4px 0 0;
}

/* 开奖号码球样式 */
.number-ball {
    min-width: 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.ball-number {
    font-size: 20px;
    line-height: 1;
    margin-bottom: 2px;
    color: white;
    font-weight: 700;
}

.ball-label {
    font-size: 9px;
    line-height: 1;
    padding-top: 2px;
    margin-top: 2px;
    width: 75%;
    text-align: center;
    color: white;
    white-space: nowrap;
    border-radius: 0 0 25px 25px;
}

.number-ball.red {
    background-color: #dc3545;
    color: white;
}

.number-ball.blue {
    background-color: #0d6efd;
    color: white;
}

.number-ball.green {
    background-color: #28a745;
    color: white;
}

.plus-sign {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 加载文字 */
.loading-text {
    color: #6c757d;
    font-size: 16px;
    text-align: center;
    width: 100%;
    padding: 20px;
}

/* 精品推薦區域样式 */
.recommend-section {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recommend-header {
    background-color: #0066cc;
    padding: 12px;
    text-align: center;
}

.recommend-title {
    color: #ffd700;
    font-size: 16px;
    font-weight: 600;
}

.recommend-list {
    background: #000000;
    padding: 8px 0;
}

.recommend-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #000000;
    border-bottom: 1px solid #333333;
    font-size: 13px;
    line-height: 1.8;
    white-space: nowrap;
    overflow: hidden;
}

.recommend-item:last-child {
    border-bottom: none;
}

.recommend-new-icon {
    width: auto;
    height: 20px;
    margin-right: 6px;
    flex-shrink: 0;
}

.recommend-click {
    color: #00ccff;
    font-weight: 600;
    margin-right: 4px;
    flex-shrink: 0;
}

.recommend-destination {
    color: #00ccff;
    font-weight: 600;
    margin-right: 4px;
    flex-shrink: 0;
}

.recommend-content {
    color: #00ccff;
    font-weight: 500;
    margin-left: 4px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 历史开奖区域样式 */
.history-section {
    margin-top: 20px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 历史开奖按钮区域 */
.history-button-section {
    background: #f8f9fa;
    padding: 20px 16px;
    text-align: center;
}

/* 历史开奖查看按钮样式 */
.history-view-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border: none;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 300px;
}

.history-view-btn:hover {
    background: linear-gradient(135deg, #ff5252, #ff4444);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.history-view-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

/* 响应式设计 */
@media (max-width: 576px) {
    .lottery-section {
        padding: 12px;
    }
    
    .main-title {
        font-size: 15px;
    }
    
    .title-right {
        font-size: 13px;
    }
    
    .history-section {
        margin-top: 16px;
    }
    
    .history-button-section {
        padding: 16px 12px;
    }
    
    .history-view-btn {
        padding: 10px 24px;
        font-size: 15px;
        max-width: 100%;
    }
    
    .number-ball {
        min-width: 46px;
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 480px) {
    .menu-item {
        font-size: 12px;
        padding: 6px 3px;
    }
    
    .lottery-section {
        padding: 10px;
    }
    
    .main-title {
        font-size: 14px;
    }
    
    img.banner-image {
        max-height: 130px;
    }
    
    .number-ball {
        min-width: 44px;
        width: 44px;
        height: 44px;
    }
    
    .recommend-title {
        font-size: 14px;
    }
    
    .recommend-item {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .recommend-new-icon {
        height: 18px;
    }
}

/* pred01 列表样式 */
.pred01-section {
    margin-top: 5px;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
}

.pred01-header {
    background: linear-gradient(to right, #667eea, #6a82ef, #6880ec, #697edc, #657eea, #6880ea, #667eea);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 40px;
    height: 40px;
    color: #ffffff;
}

.pred01-list {
    background: #ffffff;
}

.pred01-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.pred01-row {
    border-bottom: 1px solid #e0e0e0;
}

.pred01-row:last-child {
    border-bottom: none;
}

.pred01-cell {
    padding: 8px 12px !important;
    font-size: 13px;
    line-height: 1.6;
    vertical-align: middle;
    text-align: left;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .pred01-header {
        font-size: 13px;
        line-height: 36px;
        height: 36px;
    }
    
    .pred01-cell {
        padding: 6px 10px !important;
        font-size: 12px;
    }
}

/* pred02 列表样式 */
.pred02-section {
    margin-top: 5px;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
}

.pred02-header {
    background: linear-gradient(to right, #667eea, #6a82ef, #6880ec, #697edc, #657eea, #6880ea, #667eea);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 40px;
    height: 40px;
    color: #ffffff;
}

.pred02-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.pred02-list {
    background: #ffffff;
}

.pred02-item {
    border-bottom: 1px solid #e0e0e0;
}

.pred02-item:last-child {
    border-bottom: none;
}

.pred02-cell {
    padding: 8px 12px !important;
    font-size: 13px;
    line-height: 1.8;
    vertical-align: middle;
}

.pred02-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.pred02-left {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.pred02-right {
    flex-shrink: 0;
    margin-left: 10px;
    text-align: right;
    white-space: nowrap;
}

.pred02-hot-icon {
    width: auto;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
}

/* pred03 列表样式 */
.pred03-section {
    margin-top: 5px;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
}

.pred03-header {
    background: linear-gradient(to right, #667eea, #6a82ef, #6880ec, #697edc, #657eea, #6880ea, #667eea);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 40px;
    height: 40px;
    color: #ffffff;
}

.pred03-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.pred03-list {
    background: #ffffff;
}

.pred03-item {
    border-bottom: 1px solid #e0e0e0;
}

.pred03-item:last-child {
    border-bottom: none;
}

.pred03-cell {
    padding: 8px 12px !important;
    font-size: 13px;
    line-height: 1.8;
    vertical-align: middle;
}

.pred03-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
}

.pred03-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.pred03-middle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pred03-right {
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
}

.pred03-arrow {
    width: auto;
    height: 18px;
    vertical-align: middle;
}

.pred03-result-container {
    text-align: right;
    margin-top: 4px;
    padding-top: 4px;
    font-size: 13px;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .pred02-header {
        font-size: 13px;
        line-height: 36px;
        height: 36px;
    }
    
    .pred02-cell {
        padding: 6px 10px !important;
        font-size: 12px;
    }
    
    .pred02-hot-icon {
        height: 23px;
    }
    
    .pred03-header {
        font-size: 13px;
        line-height: 36px;
        height: 36px;
    }
    
    .pred03-cell {
        padding: 6px 10px !important;
        font-size: 12px;
    }
    
    .pred03-arrow {
        height: 16px;
    }
    
    .pred03-result-container {
        font-size: 12px;
        margin-top: 3px;
        padding-top: 3px;
    }
}

/* 金牌圖庫样式 */
.gold-gallery-section {
    margin-top: 5px;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
}

.gold-gallery-header {
    background: linear-gradient(to right, #667eea, #6a82ef, #6880ec, #697edc, #657eea, #6880ea, #667eea);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 40px;
    height: 40px;
    color: #ffffff;
}

.gold-gallery-content {
    padding: 10px;
    text-align: center;
    background: #ffffff;
}

.gold-gallery-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .gold-gallery-header {
        font-size: 13px;
        line-height: 36px;
        height: 36px;
    }
    
    .gold-gallery-content {
        padding: 8px;
    }
}

/* pred04 列表样式 */
.pred04-section {
    margin-top: 5px;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
}

.pred04-header {
    background: linear-gradient(to right, #667eea, #6a82ef, #6880ec, #697edc, #657eea, #6880ea, #667eea);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 40px;
    height: 40px;
    color: #ffffff;
}

.pred04-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.pred04-item {
    border-bottom: 1px solid #e0e0e0;
}

.pred04-item:last-child {
    border-bottom: none;
}

.pred04-cell {
    padding: 10px 12px !important;
    font-size: 13px;
    line-height: 1.8;
    vertical-align: middle;
    text-align: center;
}

.pred04-period {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
}

.pred04-check-icon {
    height: 16px;
    vertical-align: middle;
}

.pred04-title-badge {
    background: green;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
}

.pred04-content {
    margin: 5px 0;
    font-weight: bold;
}

.pred04-result {
    margin-top: 5px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .pred04-header {
        font-size: 13px;
        line-height: 36px;
        height: 36px;
    }

    .pred04-cell {
        padding: 8px 10px !important;
        font-size: 12px;
    }

    .pred04-check-icon {
        height: 15px;
    }
}

/* pred05 列表样式 */
.pred05-section {
    margin-top: 5px;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
}

.pred05-header {
    background: linear-gradient(to right, #667eea, #6a82ef, #6880ec, #697edc, #657eea, #6880ea, #667eea);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 40px;
    height: 40px;
    color: #ffffff;
}

.pred05-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.pred05-item {
    border-bottom: 1px solid #e0e0e0;
}

.pred05-item:last-child {
    border-bottom: none;
}

.pred05-cell {
    padding: 8px 12px !important;
    font-size: 13px;
    line-height: 1.6;
    vertical-align: middle;
}

.pred05-cell.period-cell {
    text-align: left;
    width: 15%;
    font-weight: bold;
}

.pred05-cell.content-cell {
    text-align: left;
    width: 60%;
}

.pred05-cell.result-cell {
    text-align: right;
    width: 25%;
}

.pred05-content-line {
    margin: 3px 0;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .pred05-header {
        font-size: 13px;
        line-height: 36px;
        height: 36px;
    }

    .pred05-cell {
        padding: 6px 10px !important;
        font-size: 12px;
    }

    .pred05-cell.period-cell,
    .pred05-cell.content-cell,
    .pred05-cell.result-cell {
        width: auto;
    }
}

/* pred06 列表样式 */
.pred06-section {
    margin-top: 5px;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
}

.pred06-header {
    background: linear-gradient(to right, #667eea, #6a82ef, #6880ec, #697edc, #657eea, #6880ea, #667eea);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 40px;
    height: 40px;
    color: #ffffff;
}

.pred06-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.pred06-item {
    border-bottom: 1px solid #e0e0e0;
}

.pred06-item:last-child {
    border-bottom: none;
}

.pred06-cell {
    padding: 8px 12px !important;
    font-size: 13px;
    line-height: 1.6;
    vertical-align: middle;
}

.pred06-zhong-icon,
.pred06-red-icon {
    height: 16px;
    width: auto;
    vertical-align: middle;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .pred06-header {
        font-size: 13px;
        line-height: 36px;
        height: 36px;
    }

    .pred06-cell {
        padding: 6px 10px !important;
        font-size: 12px;
    }

    .pred06-zhong-icon,
    .pred06-red-icon {
        height: 25px;
    }
}

/* pred08 列表样式 */
.pred08-section {
    margin-top: 5px;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
}

.pred08-header {
    background: linear-gradient(to right, #667eea, #6a82ef, #6880ec, #697edc, #657eea, #6880ea, #667eea);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 40px;
    height: 40px;
    color: #ffeb3b;
}

.pred08-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.pred08-item {
    border-bottom: 1px solid #e0e0e0;
}

.pred08-item:last-child {
    border-bottom: none;
}

.pred08-cell {
    padding: 8px 12px !important;
    font-size: 13px;
    line-height: 1.6;
    vertical-align: middle;
}

.pred08-icon {
    height: 16px;
    width: auto;
    vertical-align: middle;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .pred08-header {
        font-size: 13px;
        line-height: 36px;
        height: 36px;
    }

    .pred08-cell {
        padding: 6px 10px !important;
        font-size: 12px;
    }

    .pred08-icon {
        height: 14px;
    }
}

/* pred09 列表样式 */
.pred09-section {
    margin-top: 5px;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
}

.pred09-header {
    background: linear-gradient(to right, #667eea, #6a82ef, #6880ec, #697edc, #657eea, #6880ea, #667eea);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 40px;
    height: 40px;
    color: #ffffff;
}

.pred09-definitions {
    background: #ffffff;
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.pred09-def-line {
    font-size: 13px;
    line-height: 1.6;
    color: #000000;
}

.pred09-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.pred09-item {
    border-bottom: 1px solid #e0e0e0;
}

.pred09-item:last-child {
    border-bottom: none;
}

.pred09-cell {
    padding: 8px 12px !important;
    font-size: 13px;
    line-height: 1.6;
    vertical-align: middle;
}

.pred09-icon {
    height: 16px;
    width: auto;
    vertical-align: middle;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .pred09-header {
        font-size: 13px;
        line-height: 36px;
        height: 36px;
    }

    .pred09-cell {
        padding: 6px 10px !important;
        font-size: 12px;
    }

    .pred09-icon {
        height: 14px;
    }
    
    .pred09-def-line {
        font-size: 14px;
        font-weight: bold;
        text-align: center;
    }
}

/* pred10 列表样式 */
.pred10-section {
    margin-top: 5px;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
}

.pred10-header {
    background: linear-gradient(to right, #667eea, #6a82ef, #6880ec, #697edc, #657eea, #6880ea, #667eea);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 40px;
    height: 40px;
    color: #ffffff;
}

.pred10-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.pred10-item {
    border-bottom: 1px solid #e0e0e0;
}

.pred10-item:last-child {
    border-bottom: none;
}

.pred10-cell {
    padding: 8px 12px !important;
    font-size: 13px;
    line-height: 1.6;
    vertical-align: middle;
}

.pred10-icon {
    height: 16px;
    width: auto;
    vertical-align: middle;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .pred10-header {
        font-size: 13px;
        line-height: 36px;
        height: 36px;
    }

    .pred10-cell {
        padding: 6px 10px !important;
        font-size: 12px;
    }

    .pred10-icon {
        height: 14px;
    }
}

