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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'Arial', sans-serif;
    background: transparent;
    color: #e0e0e0;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* ============================================
   动态科技背景
   ============================================ */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #0f0f0f 50%, #1a1a1a 75%, #0a0a0a 100%);
}

/* 网格系统 */
.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(211, 47, 47, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(211, 47, 47, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* 浮动粒子 */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.8), transparent 70%);
    border-radius: 50%;
    filter: blur(1px);
    animation: floatParticle 15s infinite ease-in-out;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
        opacity: 0.4;
    }
}

/* 扫描线效果 */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(211, 47, 47, 0.03) 50%
    );
    background-size: 100% 4px;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 8px;
    }
}

/* 光晕效果 */
.glow-effects {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.glow-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
    animation: glowMove1 25s infinite alternate ease-in-out;
}

.glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(183, 28, 28, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
    animation: glowMove2 30s infinite alternate ease-in-out;
}

@keyframes glowMove1 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(300px, 200px);
    }
}

@keyframes glowMove2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-200px, -150px);
    }
}

/* 连接线 */
.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.connection-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(211, 47, 47, 0.2), transparent);
    height: 1px;
    animation: lineFlow 10s infinite linear;
}

@keyframes lineFlow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 数据流效果 */
.data-stream {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.data-point {
    position: absolute;
    background: rgba(211, 47, 47, 0.6);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(211, 47, 47, 0.5);
    animation: dataFall 15s infinite linear;
}

@keyframes dataFall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* 脉冲效果 */
.pulse {
    position: absolute;
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: 50%;
    animation: pulseRing 4s infinite;
}

@keyframes pulseRing {
    0% {
        width: 50px;
        height: 50px;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* ============================================
   主要内容区域
   ============================================ */
.main-content {
    position: relative;
    z-index: 1;
}

/* 页面切换动画 */
.page-transition {
    animation: pageFadeIn 0.5s ease;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content > section {
    animation: sectionSlideIn 0.8s ease;
    animation-fill-mode: both;
}

.main-content > section:nth-child(1) { animation-delay: 0.1s; }
.main-content > section:nth-child(2) { animation-delay: 0.2s; }
.main-content > section:nth-child(3) { animation-delay: 0.3s; }

@keyframes sectionSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   头部导航
   ============================================ */
.header {
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(211, 47, 47, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 10px rgba(211, 47, 47, 0.5);
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
    color: #d32f2f;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-menu a i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
    transition: width 0.3s ease;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 80%;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(211, 47, 47, 0.1);
    color: white;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    background: rgba(211, 47, 47, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(211, 47, 47, 0.3);
}

/* ============================================
   介绍区域
   ============================================ */
.intro-section {
    padding: 4rem 0;
    background: transparent;
}

.intro-card {
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(211, 47, 47, 0.3);
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
}

.intro-card h1 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 10px rgba(211, 47, 47, 0.5);
}

.intro-card h1 i {
    margin-right: 15px;
    color: #d32f2f;
}

.intro-card p {
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(30, 30, 35, 0.7);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(211, 47, 47, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d32f2f, transparent);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.3);
    border-color: rgba(211, 47, 47, 0.5);
}

.feature-item i {
    font-size: 2.5rem;
    color: #d32f2f;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(211, 47, 47, 0.5);
}

.feature-item h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   最新数据区域
   ============================================ */
.latest-data-section {
    padding: 3rem 0;
    background: transparent;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(211, 47, 47, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.section-header h2 {
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 10px rgba(211, 47, 47, 0.5);
}

.section-header h2 i {
    margin-right: 10px;
    color: #d32f2f;
}

.update-time {
    color: #bbb;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 30, 35, 0.7);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.data-table-container {
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    border: 1px solid rgba(211, 47, 47, 0.3);
    position: relative;
    overflow-x: auto;
}

.data-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 30, 35, 0.7);
    min-width: 800px;
}

.data-table th {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.8) 0%, rgba(183, 28, 28, 0.8) 100%);
    color: white;
    padding: 1.2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(211, 47, 47, 0.5);
    position: sticky;
    top: 0;
}

.data-table td {
    padding: 1.2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.data-table tr:hover {
    background-color: rgba(211, 47, 47, 0.1);
    transform: scale(1.01);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* 数字球样式 */
.number-ball {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    border-radius: 50%;
    margin: 0 5px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    animation: glow 2s infinite alternate;
    transition: all 0.3s ease;
}

@keyframes glow {
    from {
        box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    }
    to {
        box-shadow: 0 4px 25px rgba(211, 47, 47, 0.8);
    }
}

.number-ball:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.8);
}

/* 大小单双徽章 */
.size-badge, .parity-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.size-badge:hover, .parity-badge:hover {
    transform: scale(1.1);
}

.size-badge.large {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
}

.size-badge.small {
    background: linear-gradient(135deg, #2196f3, #0d47a1);
    color: white;
}

.parity-badge.odd {
    background: linear-gradient(135deg, #ff9800, #e65100);
    color: white;
}

.parity-badge.even {
    background: linear-gradient(135deg, #9c27b0, #6a1b9a);
    color: white;
}

/* 统计摘要 */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(211, 47, 47, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.3);
    border-color: rgba(211, 47, 47, 0.5);
}

.stat-label {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    color: #d32f2f;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(211, 47, 47, 0.3);
}

/* ============================================
   预测区域
   ============================================ */
.prediction-section {
    padding: 3rem 0;
    background: transparent;
}

.view-more {
    color: #d32f2f;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(211, 47, 47, 0.3);
    transition: all 0.3s ease;
}

.view-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.view-more:hover {
    background: rgba(211, 47, 47, 0.2);
    border-color: rgba(211, 47, 47, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.2);
}

.view-more:hover i {
    transform: translateX(5px);
}

.prediction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.prediction-card {
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(211, 47, 47, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.prediction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
}

.prediction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(211, 47, 47, 0.3);
    border-color: rgba(211, 47, 47, 0.5);
}

.prediction-header {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.8) 0%, rgba(183, 28, 28, 0.8) 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.prediction-header i {
    font-size: 1.5rem;
    margin-right: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.prediction-header h3 {
    margin: 0;
    font-size: 1.3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.prediction-content {
    padding: 1.5rem;
}

.prediction-numbers {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.prediction-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 
        0 8px 25px rgba(211, 47, 47, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.prediction-number::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.prediction-number:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 35px rgba(211, 47, 47, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.prediction-desc {
    color: #bbb;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.confidence {
    margin-top: 1rem;
}

.confidence-label {
    display: block;
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.confidence-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.confidence-value {
    color: #4caf50;
    font-weight: bold;
    float: right;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.trend-indicator {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.trend-label {
    color: #bbb;
    font-size: 0.9rem;
}

.trend-value {
    font-weight: bold;
    font-size: 1.1rem;
}

.trend-value.up {
    color: #4caf50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.trend-value.down {
    color: #f44336;
    text-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

/* ============================================
   底部
   ============================================ */
.footer {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(211, 47, 47, 0.3);
    position: relative;
    z-index: 1;
    margin-top: 3rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 10px rgba(211, 47, 47, 0.5);
}

.footer-section h3 i,
.footer-section h4 i {
    margin-right: 10px;
    color: #d32f2f;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(211, 47, 47, 0.5);
}

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

/* ============================================
   弹窗
   ============================================ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.popup-container {
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: popupShow 0.3s ease;
    border: 1px solid rgba(211, 47, 47, 0.3);
    position: relative;
}

@keyframes popupShow {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
}

.popup-header {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.8) 0%, rgba(183, 28, 28, 0.8) 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.popup-header h3 i {
    margin-right: 10px;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.popup-content {
    padding: 2rem;
    color: #bbb;
    line-height: 1.8;
    font-size: 1.1rem;
}

.popup-footer {
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(30, 30, 35, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   按钮
   ============================================ */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
    border: 1px solid rgba(211, 47, 47, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.6);
    border-color: rgba(211, 47, 47, 0.8);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    border: 1px solid rgba(108, 117, 125, 0.5);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 117, 125, 0.6);
    border-color: rgba(108, 117, 125, 0.8);
}

/* ============================================
   加载动画
   ============================================ */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(211, 47, 47, 0.3);
    border-radius: 50%;
    border-top-color: #d32f2f;
    animation: spin 1s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.5);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   响应式设计 - 平板设备
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background: rgba(20, 20, 25, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        padding: 1rem 0;
        z-index: 999;
        border: 1px solid rgba(211, 47, 47, 0.3);
        border-top: none;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
    }
    
    .nav-menu a {
        color: #fff;
        padding: 1rem;
        justify-content: center;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .nav-menu a.active {
        background: rgba(211, 47, 47, 0.2);
        color: #fff;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .intro-card h1 {
        font-size: 1.8rem;
    }
    
    .intro-card {
        padding: 1.5rem;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .update-time {
        align-self: flex-start;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .number-ball {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 1rem;
    }
    
    .prediction-cards {
        grid-template-columns: 1fr;
    }
    
    .prediction-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .popup-footer {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
}

/* ============================================
   响应式设计 - 手机设备
   ============================================ */
@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }
    
    .stats-summary {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        padding: 1.2rem;
    }
    
    .intro-card h1 {
        font-size: 1.5rem;
    }
    
    .intro-card p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.6rem 0.3rem;
        font-size: 0.85rem;
    }
    
    .number-ball {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 0.9rem;
        margin: 0 3px;
    }
    
    .size-badge, .parity-badge {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    
    .prediction-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .prediction-card {
        margin-bottom: 1rem;
    }
    
    .view-more {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .popup-container {
        width: 95%;
    }
    
    .popup-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .popup-header {
        padding: 1.2rem;
    }
    
    .popup-footer {
        padding: 1.2rem;
    }
}

/* ============================================
   额外效果
   ============================================ */
/* 数字跳动效果 */
@keyframes numberBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.number-bounce {
    animation: numberBounce 0.5s ease;
}

/* 闪烁效果 */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.blink {
    animation: blink 1s infinite;
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(90deg, #d32f2f, #ff9800, #d32f2f);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* 高亮边框 */
.highlight-border {
    position: relative;
}

.highlight-border::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d32f2f, #ff9800, #d32f2f);
    border-radius: inherit;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

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