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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #06b6d4;
    --accent: #f97316;
    --success: #10b981;
    --danger: #ef4444;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-tertiary: #e5e7eb;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #d1d5db;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

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

header {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 0.95rem;
}

.search-bar button {
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: #ea580c;
}

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

nav ul li a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background: rgba(255,255,255,0.2);
}

.main-nav {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.main-nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background: var(--bg-secondary);
    color: var(--primary);
}

.main-nav .hot-tags {
    display: flex;
    gap: 0.5rem;
}

.main-nav .hot-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent);
    border-radius: 3px;
    font-size: 0.85rem;
}

.banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.banner-text h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.banner-text p {
    opacity: 0.9;
}

.banner-button {
    background: white;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.banner-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

main {
    padding: 1rem 0;
}

.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.primary-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.featured-article {
    grid-column: span 2;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.featured-article img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.featured-article-content {
    padding: 1.5rem;
}

.featured-article-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.featured-article-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: var(--shadow-md);
}

.article-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.article-card-content {
    padding: 1rem;
}

.article-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.article-card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.secondary-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.news-list {
    list-style: none;
}

.news-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-tertiary);
    transition: background 0.2s ease;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li:hover {
    background: var(--bg-secondary);
}

.news-list li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
}

.news-list li span {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    padding: 0.35rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.tag-cloud a:hover {
    background: var(--primary);
    color: white;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.section-title a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.section-title a:hover {
    color: var(--primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card-content {
    padding: 1rem;
}

.news-card-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.news-card-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 3px;
    font-size: 0.75rem;
}

.breadcrumb {
    background: white;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.page-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
}

.content-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.5rem;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1.5rem;
}

.content-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.content-item-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.content-item-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th,
.table-container td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table-container th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.table-container tr:hover {
    background: var(--bg-secondary);
}

.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    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;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.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.5);
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
    
    .primary-content {
        grid-template-columns: 1fr;
    }
    
    .featured-article {
        grid-column: span 1;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-item {
        flex-direction: column;
    }
    
    .content-item img {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}