
/* 全局重置与变量 */
:root {
    --primary-color: #ff0055; /* 霓虹粉 */
    --secondary-color: #00e5ff; /* 青色 */
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* 导航栏 */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(18, 18, 18, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--secondary-color);
}

.search-box input {
    background: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    outline: none;
}

/* 焦点大图 */
.hero-banner {
    height: 60vh;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.2)), url('https://picsum.photos/1920/1080?grayscale');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.banner-content {
    max-width: 600px;
}

.tag {
    background-color: var(--primary-color);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: inline-block;
}

.banner-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.btn-glow {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 10px var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--secondary-color);
}

/* 资讯网格 */
.news-grid-section {
    padding: 4rem 5%;
}

.section-header {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}

.news-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.news-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 1.5rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.news-card:hover .card-overlay {
    transform: translateY(0);
}

.category {
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.card-overlay h3 {
    font-size: 1.2rem;
    line-height: 1.3;
}

.news-card.large .card-overlay h3 {
    font-size: 1.8rem;
}

/* 排行榜 */
.charts-section {
    padding: 0 5% 4rem;
}

.chart-container {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.chart-container h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.chart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s;
}

.chart-item:hover {
    background-color: #2a2a2a;
}

.rank {
    font-size: 1.5rem;
    font-weight: bold;
    width: 40px;
    color: var(--text-gray);
}

.rank-1 .rank { color: #ffd700; }
.rank-2 .rank { color: #c0c0c0; }
.rank-3 .rank { color: #cd7f32; }

.info {
    flex: 1;
}

.info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.score {
    color: var(--primary-color);
    font-size: 0.9rem;
}

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

.trend.up { color: #4caf50; }
.trend.down { color: #f44336; }
.trend.same { color: var(--text-gray); }

/* 页脚 */
.main-footer {
    background-color: #000;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    margin: 0 1rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-light);
}

.copyright {
    color: #555;
    font-size: 0.8rem;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .news-card.large {
        grid-column: span 2;
        height: 300px;
    }
    .news-card:not(.large) {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card.large {
        grid-column: span 1;
    }
}
