/**
 * 加拿大PC28预测系统 - 样式文件
 */

:root {
    /* 主色调 */
    --primary-color: #1a2980;
    --secondary-color: #26d0ce;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --info-color: #3498db;
    
    /* 中性色 */
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
    
    /* 尺寸 */
    --border-radius: 10px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.site-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px 0;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-title a:hover {
    opacity: 0.9;
}

.site-description {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 导航菜单 */
.main-nav {
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f8f9fa;
    color: #1a2980;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 3px;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #1a2980;
    color: white;
    text-decoration: none;
}

.pagination .active a {
    background-color: #1a2980;
    color: white;
}

.pagination .disabled a {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}
.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    flex: 1;
    text-align: center;
}

.nav-item a {
    display: block;
    padding: 15px 20px;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-item a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.nav-item.active a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.card-header h1, .card-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-secondary {
    background: linear-gradient(to right, var(--info-color), #2980b9);
    color: white;
}

.btn-success {
    background: linear-gradient(to right, var(--success-color), #27ae60);
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 最新开奖结果 */
.latest-result {
    padding: 20px 0;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.result-item {
    background: linear-gradient(135deg, var(--light-color), #e9ecef);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
}

.result-label {
    font-size: 1rem;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.result-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* 号码球样式 */
.numbers-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.number-ball {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(26, 41, 128, 0.3);
}

.number-ball.small {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

/* 总和显示 */
.sum-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--danger-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.history-table th,
.history-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.history-table th {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--primary-color);
    position: sticky;
    top: 0;
}

.history-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 大小单双徽章 */
.size-badge, .parity-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.size-badge.big {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger-color);
}

.size-badge.small {
    background-color: rgba(52, 152, 219, 0.2);
    color: var(--info-color);
}

.parity-badge.even {
    background-color: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.parity-badge.odd {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--success-color);
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.page-item {
    margin: 0 2px;
}

.page-link {
    display: block;
    padding: 8px 15px;
    background-color: var(--light-color);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 600;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
}

.page-item.disabled .page-link {
    background-color: #e9ecef;
    color: var(--gray-color);
    cursor: not-allowed;
}

/* 预测结果样式 */
.prediction-result {
    background: linear-gradient(135deg, #fff9e6, #fff0cc);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    border: 2px dashed var(--warning-color);
}

.prediction-numbers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.prediction-ball {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--warning-color), #e67e22);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.3);
}

.prediction-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.summary-item {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.summary-label {
    font-size: 1rem;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.summary-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* 快速链接 */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.quick-link {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    border: 2px solid transparent;
}

.quick-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.quick-link-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.quick-link h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.quick-link p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* SEO内容区域 */
.seo-content-section {
    margin-top: 40px;
}

.seo-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.seo-content h3 {
    color: var(--primary-color);
    margin: 25px 0 15px;
    font-size: 1.5rem;
}

.seo-content ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.seo-content li {
    margin-bottom: 10px;
}

.seo-keywords {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.keyword-tag {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 5px 15px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 警告框 */
.warning-box {
    background-color: #fff3cd;
    border-left: 5px solid var(--warning-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 25px 0;
}

.warning-box h4 {
    color: #856404;
    margin-bottom: 10px;
}

.warning-box p {
    color: #856404;
    margin: 0;
}

/* 无数据状态 */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-color);
}

.no-data i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

.no-data p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* 页脚样式 */
.site-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.seo-text {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-top: 15px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-item {
        flex: 0 0 33.333%;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.8rem;
    }
    
    .nav-item {
        flex: 0 0 50%;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .number-ball {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .prediction-ball {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .history-table th,
    .history-table td {
        padding: 10px 5px;
    }
}

@media (max-width: 480px) {
    .nav-item {
        flex: 0 0 100%;
    }
    
    .prediction-numbers {
        gap: 10px;
    }
    
    .prediction-ball {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(26, 41, 128, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}