/* 基础样式设置 */
:root {
    --primary: #0d2b59;
    --primary-light: #1a4b8c;
    --secondary: #c8102e;
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #777777;
    --bg-light: #f5f5f5;
    --border: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* 通用样式 */
a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* 头部样式 */
header {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 0;
}

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

.date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.social-links a {
    color: var(--white);
    margin-left: 1rem;
    font-size: 1.1rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 1rem;
}

.logo {
    font-size: 2.5rem;
    color: var(--white);
    font-weight: bold;
    text-decoration: none;
    font-family: 'Times New Roman', Times, serif;
}

.tagline {
    color: var(--white);
    opacity: 0.8;
    font-size: 1rem;
    margin-top: 0.3rem;
}

nav {
    background-color: var(--primary-light);
}

.main-nav {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    color: var(--white);
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* 头条新闻 */
.headline {
    margin: 2rem 0;
}

.main-headline {
    border: 1px solid var(--border);
    padding: 1rem;
    background-color: var(--white);
    margin-bottom: 1.5rem;
}

.headline-image {
    width: 100%;
    margin-bottom: 1rem;
}

.headline-category {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-family: 'Arial', sans-serif;
}

.headline-title {
    margin-bottom: 0.8rem;
}

.headline-summary {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.headline-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
}

/* 次要头条 */
.secondary-headlines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.secondary-headline {
    border: 1px solid var(--border);
    padding: 1rem;
}

.secondary-headline-image {
    margin-bottom: 0.8rem;
}

/* 内容区域布局 */
.content-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

/* 新闻列表样式 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

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

.news-item-image {
    flex: 0 0 300px;
}

.news-item-content {
    flex: 1;
}

.news-item-category {
    display: inline-block;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    font-family: 'Arial', sans-serif;
}

.news-item-title {
    margin-bottom: 0.5rem;
}

.news-item-summary {
    margin-bottom: 0.8rem;
    color: var(--text-medium);
}

.news-item-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
}

/* 列表页样式 */
.page-header {
    background-color: var(--bg-light);
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-description {
    color: var(--text-medium);
    max-width: 800px;
}

.filter-bar {
    background-color: var(--bg-light);
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

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

.category-filters {
    display: flex;
    gap: 1rem;
}

.category-filter {
    font-size: 0.9rem;
    cursor: pointer;
}

.category-filter.active {
    color: var(--secondary);
    font-weight: bold;
}

.sort-options select {
    padding: 0.3rem 0.5rem;
    border: 1px solid #ccc;
    font-family: 'Arial', sans-serif;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    gap: 0.5rem;
}

.page-link {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    text-align: center;
    line-height: 36px;
    color: var(--text-dark);
}

.page-link:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.page-link.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* 详情页样式 */
.article-detail {
    max-width: 800px;
}

.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.article-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
    margin-bottom: 1rem;
}

.article-image {
    width: 100%;
    margin: 0 auto 1.5rem;
}

.article-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.article-content {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-medium);
}

.article-tags {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tag {
    display: inline-block;
    background-color: var(--bg-light);
    padding: 0.3rem 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-family: 'Arial', sans-serif;
}

.share-buttons {
    margin-bottom: 2rem;
}

.share-text {
    font-weight: bold;
    margin-right: 1rem;
}

/* 侧边栏样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    border: 1px solid var(--border);
    padding: 1.5rem;
    background-color: var(--white);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

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

.popular-news li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.popular-news li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-news a {
    display: block;
}

.popular-news-image {
    margin-bottom: 0.5rem;
}

.popular-news-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.popular-news-date {
    font-size: 0.8rem;
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
}

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

.category-list li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dotted var(--border);
}

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

.category-list a {
    display: flex;
    justify-content: space-between;
}

.category-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 相关新闻 */
.related-news {
    margin: 3rem 0;
}

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

/* 页脚样式 */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

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

.footer-column h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

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

.footer-about {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .secondary-headlines {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
    
    .news-item-image {
        flex: none;
        max-width: 100%;
    }
    
    .secondary-headlines, .related-news-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .main-nav a {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .header-top {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .category-filters {
        flex-wrap: wrap;
    }
    
    .filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
