
/* 现代化新闻页面样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f8f9fa;
    --border-color: #dee2e6;
    --hover-color: #0056b3;
    --transition: all 0.3s ease;
}

/* 深色模式变量 */
[data-theme="dark"] {
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --border-color: #404040;
    --secondary-color: #a0a0a0;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}

/* 新闻部分样式 */
.news-section {
    padding: 40px 0;
}

.news-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

.news-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.news-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.news-header h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.news-header h3 a:hover {
    color: var(--hover-color);
}

.news-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.news-item p {
    color: var(--text-color);
    margin: 0;
    font-size: 1rem;
}

/* 图片栏样式 */
.image-section {
    padding: 40px 0;
    background: var(--card-bg);
}

.image-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

.image-slider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--card-bg);
    padding-bottom: 20px;
}

.image-slider img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: var(--transition);
}

.image-slider img:hover {
    transform: scale(1.05);
}

/* 页脚样式 */
.footer {
    background: var(--card-bg);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.footer p {
    color: var(--secondary-color);
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-date {
        margin-top: 5px;
    }

    .image-slider img {
        width: 250px;
        height: 167px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item {
    animation: fadeIn 0.5s ease-out forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--card-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
} 