:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --accent-light: #ff6b6b;
    --text: #333;
    --text-light: #666;
    --bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1rem;
    opacity: 0.8;
    letter-spacing: 4px;
}

/* Navigation */
.nav {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-date {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.nav-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 20px;
    border: none;
    background: var(--bg);
    color: var(--text-light);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.tab:hover {
    background: var(--accent);
    color: var(--white);
}

.tab.active {
    background: var(--accent);
    color: var(--white);
}

/* Main Content */
.main {
    padding: 40px 0;
    min-height: 60vh;
}

/* Hero Section */
.hero {
    margin-bottom: 40px;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: var(--transition);
    cursor: pointer;
}

.hero-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.hero-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.hero-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-category {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--primary);
}

.hero-summary {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-summary {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 0;
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.disclaimer {
    opacity: 0.6;
    font-size: 0.8rem !important;
}

/* Detail Page */
.article {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.article-header {
    padding: 40px;
    border-bottom: 1px solid #eee;
}

.article-category {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 30px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-body {
    padding: 40px;
}

.article-body h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.article-body p {
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 20px;
    text-align: justify;
}

.article-body blockquote {
    background: var(--bg);
    border-left: 4px solid var(--accent);
    padding: 20px 25px;
    margin: 25px 0;
    font-style: italic;
    color: var(--text-light);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 25px;
    transition: var(--transition);
}

.back-link:hover {
    gap: 12px;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.tag {
    background: var(--bg);
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-card {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .hero-content {
        padding: 25px;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .nav .container {
        justify-content: center;
    }
    
    .article-header,
    .article-body {
        padding: 25px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
}
