/**
 * 默认模板 - 样式文件
 */

/* CSS变量 - 青墨色+金沙色配色 */
:root {
    --primary: #1a5f7a;
    --primary-dark: #134a5f;
    --primary-light: #2a7a9a;
    --gold: #c4a35a;
    --gold-light: #d4b36a;
    --gold-dark: #a48a3a;
    --accent: #e17055;
    --dark: #2d3436;
    --text: #333333;
    --text-light: #666666;
    --bg: #f8f9fa;
    --white: #ffffff;
}

/* 整体样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    padding-top: 70px;
}

.main-content {
    min-height: calc(100vh - 150px);
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* 区块标题 */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--gold);
}

.section-title i {
    color: var(--gold);
    margin-right: 8px;
}

/* 文章卡片 */
.article-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-card .card-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* 栏目卡片 */
.category-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
}

.category-card:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(26, 95, 122, 0.4);
}

.category-card i {
    font-size: 24px;
    margin-right: 15px;
    color: var(--primary);
    transition: color 0.3s;
}

.category-card:hover i {
    color: white;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

/* =====================
   文章详情页样式
   ===================== */

/* 文章头部 */
.article-header {
    background: linear-gradient(135deg, #1a5f7a 0%, #134a5f 100%);
    color: white;
    padding: 50px 0;
    margin-bottom: 40px;
}

.article-header .article-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.article-header .article-category a {
    color: white;
    text-decoration: none;
}

.article-header .article-category a:hover {
    text-decoration: underline;
}

.article-header .article-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-header .article-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 14px;
    opacity: 0.9;
}

.article-header .article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 文章容器 */
.article-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.article-summary {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #1a5f7a;
    color: #666;
}

/* 文章内容 */
.article-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content h2, .article-content h3, .article-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.article-content h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid #1a5f7a;
    padding-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid #1a5f7a;
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* 关键词标签 */
.article-keywords {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.keyword-tag {
    display: inline-block;
    background: white;
    color: #1a5f7a;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid #1a5f7a;
}

/* 相关文章 */
.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-articles h5 {
    margin-bottom: 20px;
    color: #333;
}

.related-articles h5 i {
    color: #1a5f7a;
    margin-right: 8px;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.related-list li:hover {
    background: #e9ecef;
}

.related-list li a {
    color: #333;
    text-decoration: none;
    flex: 1;
}

.related-list li a i {
    color: #1a5f7a;
    margin-right: 8px;
}

.related-list li:hover a {
    color: #1a5f7a;
}

/* 返回按钮 */
.article-back {
    margin-top: 40px;
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: linear-gradient(135deg, #1a5f7a 0%, #134a5f 100%);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* =====================
   栏目页样式
   ===================== */

.category-header {
    background: linear-gradient(135deg, #1a5f7a 0%, #134a5f 100%);
    color: white;
    padding: 50px 0;
    margin-bottom: 40px;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-title i {
    margin-right: 10px;
}

.category-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* =====================
   文章列表页样式
   ===================== */

.page-header {
    background: linear-gradient(135deg, #1a5f7a 0%, #134a5f 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.page-title i {
    margin-right: 10px;
}

.page-subtitle {
    margin: 10px 0 0;
    opacity: 0.9;
}

.search-form .form-control,
.search-form .form-select {
    border: none;
}

.search-form .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
}

.search-form .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* =====================
   空状态
   ===================== */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.empty-state p {
    font-size: 1.1rem;
}

/* =====================
   分页样式
   ===================== */

.pagination-nav {
    margin: 40px 0;
}

.pagination .page-link {
    color: #1a5f7a;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #1a5f7a 0%, #134a5f 100%);
    border-color: #1a5f7a;
    color: white;
}

.pagination .page-link:hover {
    background: #f8f9fa;
    border-color: #1a5f7a;
    color: #1a5f7a;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .article-header {
        padding: 30px 0;
    }

    .article-header .article-title {
        font-size: 1.5rem;
    }

    .article-header .article-meta {
        gap: 15px;
        font-size: 13px;
    }

    .article-container {
        padding: 20px;
    }

    .category-header {
        padding: 30px 0;
    }

    .category-title {
        font-size: 1.5rem;
    }
}
