/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* 太阳系背景 */
.solar-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
}

/* 太阳 */
.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ffd700 0%, #ff8c00 50%, #ff4500 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 60px #ffd700,
        0 0 120px #ff8c00,
        0 0 180px #ff4500;
    animation: sun-glow 3s ease-in-out infinite alternate;
}

@keyframes sun-glow {
    from { 
        box-shadow: 
            0 0 60px #ffd700,
            0 0 120px #ff8c00,
            0 0 180px #ff4500;
    }
    to { 
        box-shadow: 
            0 0 80px #ffd700,
            0 0 160px #ff8c00,
            0 0 240px #ff4500;
    }
}

/* 轨道 */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.earth-orbit {
    width: 400px;
    height: 400px;
    animation: orbit-rotate 20s linear infinite;
}

.mars-orbit {
    width: 600px;
    height: 600px;
    animation: orbit-rotate 30s linear infinite reverse;
}

.jupiter-orbit {
    width: 800px;
    height: 800px;
    animation: orbit-rotate 50s linear infinite;
}

@keyframes orbit-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 行星 */
.planet {
    position: absolute;
    border-radius: 50%;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.earth {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #4a90e2 0%, #357abd 50%, #2c5aa0 100%);
    box-shadow: 
        0 0 20px #4a90e2,
        inset 2px 2px 4px rgba(255, 255, 255, 0.3);
    animation: planet-rotate 10s linear infinite;
}

.mars {
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #e74c3c 0%, #c0392b 50%, #a93226 100%);
    box-shadow: 
        0 0 15px #e74c3c,
        inset 1px 1px 3px rgba(255, 255, 255, 0.2);
    animation: planet-rotate 15s linear infinite reverse;
}

.jupiter {
    width: 28px;
    height: 28px;
    background: linear-gradient(45deg, #f39c12 0%, #e67e22 50%, #d35400 100%);
    box-shadow: 
        0 0 25px #f39c12,
        inset 3px 3px 6px rgba(255, 255, 255, 0.3);
    animation: planet-rotate 25s linear infinite;
}

@keyframes planet-rotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

/* 星星背景 */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: stars-twinkle 4s ease-in-out infinite;
}

@keyframes stars-twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* 流星效果 */
.meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, #fff, transparent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1),
                0 0 0 8px rgba(255, 255, 255, 0.1),
                0 0 20px rgba(255, 255, 255, 1);
    animation: meteor-fall 3s linear infinite;
}

.meteor-1 {
    top: 0;
    left: 20%;
    animation-delay: 0s;
}

.meteor-2 {
    top: 0;
    left: 60%;
    animation-delay: 1.5s;
}

.meteor-3 {
    top: 0;
    left: 80%;
    animation-delay: 3s;
}

@keyframes meteor-fall {
    0% {
        transform: rotate(45deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translateX(1000px);
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 0 30px 30px;
    padding: 40px 0;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0.5;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.title {
    font-size: 3rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.title i {
    color: #ffd700;
    font-size: 2.8rem;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.4));
    animation: sparkle 2s ease-in-out infinite alternate;
}

@keyframes sparkle {
    from { transform: scale(1) rotate(0deg); }
    to { transform: scale(1.1) rotate(5deg); }
}

/* 主要内容样式 */
.main-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

/* 分类标签样式 */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.category-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.category-tab.active {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    border-color: #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* 网站列表样式 */
.sites-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.site-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    display: block;
}

.site-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.site-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.site-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.site-info h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 6px;
    font-weight: 600;
}

.site-info .site-url {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    word-break: break-all;
}

.site-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

/* 底部样式 */
.footer {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .sites-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .site-card {
        padding: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 60px;
    color: rgba(255, 255, 255, 0.8);
}

.loading i {
    font-size: 2.5rem;
    color: #ffd700;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}
