/* style.css - 科技感蓝紫绿主题样式 */
:root {
    --primary-blue: #0a1a3d;
    --secondary-blue: #1a2b4d;
    --accent-blue: #2a5bd7;
    --accent-purple: #8a2be2;
    --accent-green: #00d4aa;
    --light-blue: #4fc3f7;
    --text-light: #e0e0e0;
    --text-lighter: #ffffff;
    --gradient-bg: linear-gradient(135deg, #0a1a3d 0%, #1a103d 50%, #0d2c3d 100%);
    --card-bg: rgba(26, 43, 77, 0.7);
    --card-border: rgba(74, 144, 226, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glow: 0 0 15px rgba(74, 144, 226, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: var(--gradient-bg);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: rgba(10, 26, 61, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--light-blue), var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
    color: var(--accent-green);
}

/* 导航样式 */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--accent-green);
    background: rgba(0, 212, 170, 0.1);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    width: 70%;
}

/* 主内容区 */
.main-content {
    padding: 40px 0;
}

.section-title {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-purple);
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    display: inline-block;
    background: linear-gradient(to right, var(--light-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--accent-green);
}

/* 卡片样式 */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow), var(--glow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th {
    background: rgba(42, 91, 215, 0.2);
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--light-blue);
    border-bottom: 2px solid var(--accent-blue);
}

.data-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table tr:hover {
    background: rgba(74, 144, 226, 0.1);
}

/* 开奖号码样式 */
.lottery-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    color: white;
    font-weight: bold;
    margin: 0 5px;
    box-shadow: 0 4px 10px rgba(42, 91, 215, 0.3);
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tag-small {
    background: rgba(0, 212, 170, 0.2);
    color: var(--accent-green);
}

.tag-big {
    background: rgba(138, 43, 226, 0.2);
    color: var(--accent-purple);
}

.tag-even {
    background: rgba(74, 144, 226, 0.2);
    color: var(--light-blue);
}

.tag-odd {
    background: rgba(255, 105, 180, 0.2);
    color: #ff69b4;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(42, 91, 215, 0.4);
}

.btn-green {
    background: linear-gradient(to right, var(--accent-green), #00a884);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: white;
}

/* 走势图容器 */
.trend-chart-container {
    height: 400px;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
}

/* 页脚样式 */
footer {
    background: rgba(10, 26, 61, 0.9);
    border-top: 1px solid var(--card-border);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--accent-green);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-green);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th, .data-table td {
        padding: 10px 5px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 弹窗样式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow), 0 0 50px rgba(138, 43, 226, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.popup-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--accent-green);
}

/* 进度条样式 */
.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--accent-green), var(--accent-blue));
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease;
}