

/* 重置样式 & 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background-color: #f8f9fa;
    color: #1e2a3a;
    line-height: 1.65;
    font-size: 16px;
}

/* 容器 - 响应式居中 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== 链接样式 ========== */
a {
    color: #2c5f8a;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #c44536;
    text-decoration: underline;
}

/* ========== 页眉样式 - 移动端适配 ========== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo h1 a {
    color: #1e4663;
    letter-spacing: 1px;
}

.logo h1 a:hover {
    text-decoration: none;
    color: #c44536;
}

.tagline {
    font-size: 0.7rem;
    color: #6c7a89;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    color: #2d3e50;
}

.main-nav a:hover,
.main-nav a.active {
    color: #c44536;
    border-bottom: 2px solid #c44536;
}

/* ========== 主要内容区域 ========== */
.main-content {
    min-height: 65vh;
    padding: 24px 0 48px;
}

/* 焦点横幅区域 - 移动端优化 */
.featured-banner {
    margin-bottom: 32px;
}

.banner-card {
    background: linear-gradient(135deg, #1e3c4c 0%, #2b5c6f 100%);
    border-radius: 20px;
    padding: 32px 24px;
    color: white;
    text-align: center;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.2);
}

.banner-card h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.banner-card p {
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 20px;
    opacity: 0.92;
}

.btn {
    display: inline-block;
    background-color: #e88d67;
    color: white;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c44536;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* 通用区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-left: 4px solid #c44536;
    padding-left: 14px;
    margin-bottom: 24px;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e2a3a;
}

.more-link {
    font-size: 0.85rem;
}

/* 故事网格卡片 - 响应式网格 */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.story-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #edf2f7;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.12);
}

.story-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.story-card h3 a {
    color: #1e4663;
}

.story-card h3 a:hover {
    color: #c44536;
}

.meta {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 12px;
}

.story-card p {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 16px;
    line-height: 1.5;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 500;
}

/* 两栏布局 - 移动端自适应 */
.two-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 32px 0;
}

@media (min-width: 768px) {
    .two-columns {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
}

/* 热门推荐列表 */
.hot-recommend, .categories-side {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #edf2f7;
}

.hot-list, .category-list {
    list-style: none;
}

.hot-list li, .category-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-list li:last-child, .category-list li:last-child {
    border-bottom: none;
}

.hot-list li a, .category-list li a {
    font-weight: 500;
    flex: 1;
}

.hot-list li span {
    font-size: 0.75rem;
    color: #e88d67;
    background: #fef5e8;
    padding: 2px 8px;
    border-radius: 20px;
}

.category-list li {
    justify-content: flex-start;
    gap: 12px;
}

.category-list li a {
    color: #2c5f8a;
}

/* 编辑推荐 */
.editor-pick {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
    border: 1px solid #edf2f7;
}

.pick-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pick-item {
    padding: 12px;
    background: #fafbfc;
    border-radius: 12px;
    border-left: 3px solid #e88d67;
}

.pick-item .badge {
    display: inline-block;
    background: #e88d67;
    color: white;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 20px;
    margin-right: 12px;
}

.pick-item a {
    font-size: 1rem;
    font-weight: 600;
}

.pick-item p {
    font-size: 0.85rem;
    color: #5a6e7c;
    margin-top: 8px;
}

/* ========== 列表页专用样式 ========== */
.page-header {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 32px;
    text-align: center;
    border: 1px solid #edf2f7;
}

.page-header h1 {
    font-size: 1.8rem;
    color: #1e4663;
    margin-bottom: 8px;
}

.page-header p {
    color: #6c7a89;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
}

.filter-tabs a {
    background: #ffffff;
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid #dce5ec;
    font-size: 0.85rem;
}

.filter-tabs a.active, .filter-tabs a:hover {
    background: #c44536;
    color: white;
    border-color: #c44536;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    background: white;
    border: 1px solid #dce5ec;
    border-radius: 8px;
    font-size: 0.9rem;
}

.pagination .current {
    background: #c44536;
    color: white;
    border-color: #c44536;
}

/* ========== 内容页（文章详情）样式 ========== */
.article-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .article-container {
        padding: 48px 56px;
    }
}

.article-header {
    text-align: center;
    margin-bottom: 32px;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 24px;
}

.article-header h1 {
    font-size: 1.8rem;
    color: #1e4663;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .article-header h1 {
        font-size: 2.2rem;
    }
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content h2 {
    font-size: 1.4rem;
    margin: 1.8em 0 0.8em;
    color: #1e4663;
}

/* 相关推荐 & 内容推荐区域 */
.related-section, .content-recommend {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #edf2f7;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.related-item {
    padding: 16px;
    background: #fafbfc;
    border-radius: 12px;
    transition: all 0.2s;
}

.related-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.related-item p {
    font-size: 0.85rem;
    color: #6c7a89;
}

/* ========== 页脚样式 ========== */
.site-footer {
    background: #1e2a3a;
    color: #cbd5e0;
    padding: 32px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-info p {
    margin-bottom: 8px;
}

.footer-info a {
    color: #e88d67;
}

.footer-info a:hover {
    color: #ffb48a;
}

/* ========== 响应式微调 ========== */
@media (max-width: 640px) {
    .container {
        padding: 0 12px;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .banner-card {
        padding: 28px 20px;
    }

    .banner-card h2 {
        font-size: 1.3rem;
    }

    .main-nav ul {
        gap: 14px;
    }

    .main-nav a {
        font-size: 0.85rem;
    }

    .article-container {
        padding: 20px 16px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}