/* style.css - 赛博朋克风格主样式 */
:root {
    --neon-blue: #0ff0fc;
    --neon-purple: #bc13fe;
    --neon-pink: #ff00ff;
    --dark-bg: #0a0a1a;
    --darker-bg: #050510;
    --grid-color: rgba(11, 255, 251, 0.1);
    --text-glow: 0 0 10px currentColor;
}

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

body {
    background-color: var(--dark-bg);
    background-image: 
        linear-gradient(45deg, var(--grid-color) 1px, transparent 1px),
        linear-gradient(-45deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(
        circle at 20% 50%,
        rgba(11, 255, 251, 0.15) 0%,
        transparent 40%
    );
    pointer-events: none;
    z-index: -1;
}

/* 霓虹渐变文字效果 */
.neon-text {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--text-glow);
}

/* 头部导航 */
.cyber-header {
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(11, 255, 251, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.cyber-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    position: relative;
}

.logo::after {
    content: '28';
    position: absolute;
    top: -5px;
    right: -20px;
    font-size: 0.8rem;
    color: var(--neon-pink);
    animation: pulse 2s infinite;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--neon-blue);
    background: rgba(11, 255, 251, 0.1);
    box-shadow: 0 0 15px rgba(11, 255, 251, 0.3);
}

.nav-links a.active {
    color: var(--neon-blue);
    border-bottom: 2px solid var(--neon-blue);
}

/* 英雄区域 */
.hero-section {
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(5, 5, 16, 0.9) 0%,
        rgba(11, 255, 251, 0.1) 50%,
        rgba(188, 19, 254, 0.1) 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(11, 255, 251, 0.5);
    border: 2px solid var(--neon-blue);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 最新数据表格 */
.latest-data {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

.data-table {
    width: 100%;
    background: rgba(5, 5, 16, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(11, 255, 251, 0.3);
    box-shadow: 0 0 30px rgba(11, 255, 251, 0.2);
}

.table-header {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1.5fr 1fr 1fr;
    background: linear-gradient(90deg, var(--darker-bg), rgba(11, 255, 251, 0.2));
    padding: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid var(--neon-blue);
}

.table-row {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1.5fr 1fr 1fr;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.table-row:hover {
    background: rgba(11, 255, 251, 0.05);
}

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

.period {
    color: var(--neon-blue);
    font-weight: bold;
}

.numbers {
    display: flex;
    gap: 0.5rem;
}

.number-ball {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    box-shadow: 0 0 10px currentColor;
}

.total {
    font-weight: bold;
    font-size: 1.2rem;
}

.size-badge, .parity-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.big {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
}

.small {
    background: linear-gradient(135deg, #F44336, #FF9800);
    color: white;
}

.odd {
    background: linear-gradient(135deg, #2196F3, #03A9F4);
    color: white;
}

.even {
    background: linear-gradient(135deg, #9C27B0, #E91E63);
    color: white;
}

/* 赛博朋克卡片 */
.cyber-card {
    background: rgba(5, 5, 16, 0.7);
    border: 1px solid rgba(11, 255, 251, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.cyber-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(11, 255, 251, 0.3);
    border-color: var(--neon-blue);
}

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

.cyber-card:hover::before {
    left: 100%;
}

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

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

.cyber-modal {
    background: linear-gradient(135deg, var(--darker-bg), #0a0a2a);
    border: 2px solid var(--neon-blue);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 50px rgba(11, 255, 251, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .cyber-modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(11, 255, 251, 0.3);
}

.modal-close {
    background: none;
    border: none;
    color: var(--neon-pink);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

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

.modal-content {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cyber-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(11, 255, 251, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 底部样式 */
.cyber-footer {
    background: var(--darker-bg);
    border-top: 2px solid var(--neon-purple);
    margin-top: 4rem;
    padding: 3rem 2rem 1.5rem;
}

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

.footer-section h3 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.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.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--neon-blue);
}

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

/* 动画效果 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.glitch {
    animation: glitch 0.5s infinite;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.cyber-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top: 3px solid var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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