@charset "UTF-8";
/* ====== 首页样式表 /css/article-index.css ======
   包含：首页特定样式、Bootstrap核心布局、Font Awesome图标替代方案
   版本：v2.0 (合并Bootstrap核心和图标样式)
   ================================================== */

/* ====== Bootstrap 核心重置 ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background: #f4f7fb;
    padding: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 容器 */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 移除所有列表的默认样式 */
ul, ol, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ====== 首页特定样式 ====== */
.home-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    background: #ffffff;
    box-shadow: 0 20px 40px -10px rgba(0,20,30,0.15);
    border-radius: 28px;
    padding: 2.5rem 2.2rem;
    transition: all 0.2s ease;
}

@media (max-width: 576px) {
    .home-wrapper {
        padding: 1.5rem 1.2rem;
        border-radius: 20px;
        margin: 10px auto;
    }
}

/* 首页头部样式 */
.home-header {
    background: linear-gradient(135deg, #f0f4fa 0%, #e6edf6 100%);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    border: 1px solid rgba(59, 110, 156, 0.1);
}

.home-header h1 {
    font-size: 2.4rem;
    font-weight: 750;
    color: #0b1c2e;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.home-header p {
    font-size: 1.2rem;
    color: #4a5f73;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .home-header {
        padding: 1.8rem;
    }
    .home-header h1 {
        font-size: 1.9rem;
    }
    .home-header p {
        font-size: 1rem;
    }
}

/* 首页网格布局 */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* 文章卡片 */
.article-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    display: flex;
    border: 1px solid #eef2f6;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px rgba(59, 110, 156, 0.2);
}

.article-thumb {
    width: 220px;
    flex-shrink: 0;
    overflow: hidden;
}

.article-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-thumb:hover img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.8rem;
    flex: 1;
}

.article-title {
    font-size: 1.6rem;
    font-weight: 680;
    margin-bottom: 12px;
    color: #0b1c2e;
}

.article-title a {
    color: #0b1c2e;
    text-decoration: none;
    transition: color 0.2s;
}

.article-title a:hover {
    color: #3b6e9c;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    color: #4a5f73;
    background: #f0f4fa;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    border: 1px solid rgba(59, 110, 156, 0.1);
}

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

.article-summary {
    color: #2a3b4c;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #3b6e9c;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.read-more:hover {
    color: #1a3e5c;
    border-bottom-color: #1a3e5c;
}

.read-more i {
    margin-left: 6px;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .article-card {
        flex-direction: column;
    }
    .article-thumb {
        width: 100%;
        height: 200px;
    }
    .article-title {
        font-size: 1.4rem;
    }
}

/* 侧边栏卡片 */
.sidebar-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    margin-bottom: 25px;
    border: 1px solid #eef2f6;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 620;
    color: #153e5a;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #cbdbe9;
}

.sidebar-title i {
    color: #3b6e9c;
    margin-right: 8px;
}

/* 推荐阅读项 */
.recommend-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s;
    list-style: none;
}

.recommend-item:hover {
    background: #f0f4fa;
}

.recommend-thumb {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid #eef2f6;
}

.recommend-title {
    font-size: 1rem;
    font-weight: 540;
    color: #1e4d6f;
    margin-bottom: 4px;
    line-height: 1.4;
}

.recommend-item small {
    color: #6c7a8a;
    font-size: 0.85rem;
}

/* 友情链接 */
.friend-link {
    display: inline-block;
    background: #f0f4fa;
    padding: 6px 16px;
    border-radius: 30px;
    margin: 4px;
    color: #3b6e9c;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(59, 110, 156, 0.1);
    transition: all 0.2s;
    list-style: none;
}

.friend-link:hover {
    background: #3b6e9c;
    color: white;
    border-color: #3b6e9c;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 2.5rem 0 1rem;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 30px;
    background: #f0f4fa;
    color: #2b4f6e;
    text-decoration: none;
    border: 1px solid rgba(59, 110, 156, 0.15);
    font-weight: 500;
    transition: all 0.2s;
    list-style: none;
}

.page-link i {
    font-size: 14px;
}

.page-link:hover {
    background: #3b6e9c;
    color: white;
    border-color: #3b6e9c;
}

.page-link.active {
    background: #2b4f6e;
    color: white;
    border-color: #2b4f6e;
}

.page-link.disabled {
    color: #a0b3c5;
    pointer-events: none;
    background: #f5f7fa;
    border-color: #d8e2ed;
}

.page-dots {
    color: #6c7a8a;
    padding: 0 5px;
    list-style: none;
}

.page-info {
    margin-left: 10px;
    color: #4a5f73;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .pagination {
        gap: 5px;
    }
    .page-link {
        min-width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

/* 站点地图按钮 */
.sitemap-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: #f0f4fa;
    color: #2b4f6e;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid rgba(59, 110, 156, 0.15);
    transition: all 0.2s;
    font-weight: 500;
}

.sitemap-btn:hover {
    background: #3b6e9c;
    color: white;
}

/* 页脚 */
.site-footer {
    text-align: center;
    padding: 2rem 0 0.8rem 0;
    margin-top: 3.2rem;
    color: #5b6f82;
    border-top: 1px solid #d8e2ed;
    font-size: 0.95rem;
}

.site-footer p {
    margin-bottom: 0.2rem;
}

/* ====== Font Awesome 图标替代方案（使用 Emoji）====== */

/* 通用图标基类 */
[class^="icon-"]::before,
[class*=" icon-"]::before,
.fas::before,
.far::before,
.fa::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    margin-right: 4px;
}

/* 书籍图标 */
.fa-book-open::before,
.icon-book::before {
    content: "📖";
}

/* 报纸图标 */
.fa-newspaper::before,
.icon-newspaper::before {
    content: "📰";
}

/* 用户图标 */
.fa-user::before,
.icon-user::before {
    content: "👤";
}

/* 日历图标 */
.fa-calendar::before,
.fa-calendar-alt::before,
.icon-calendar::before {
    content: "📅";
}

/* 眼睛图标 */
.fa-eye::before,
.icon-eye::before {
    content: "👁️";
}

/* 箭头右 */
.fa-arrow-right::before,
.icon-arrow-right::before {
    content: "→";
    margin-left: 4px;
    margin-right: 0;
}

/* 箭头左 */
.fa-chevron-left::before,
.icon-chevron-left::before {
    content: "←";
}

/* 箭头右（小） */
.fa-chevron-right::before,
.icon-chevron-right::before {
    content: "→";
}

/* 星星图标 */
.fa-star::before,
.icon-star::before {
    content: "⭐";
}

/* 链接图标 */
.fa-link::before,
.icon-link::before {
    content: "🔗";
}

/* 站点地图图标 */
.fa-sitemap::before,
.icon-sitemap::before {
    content: "🗺️";
}

/* 文件代码图标 */
.fa-file-code::before,
.icon-file-code::before {
    content: "📄";
}

/* 时钟图标 */
.fa-clock::before,
.icon-clock::before {
    content: "⏰";
}

/* 主页图标 */
.fa-home::before,
.icon-home::before {
    content: "🏠";
}

/* 搜索图标 */
.fa-search::before,
.icon-search::before {
    content: "🔍";
}

/* 设置图标 */
.fa-cog::before,
.fa-cogs::before,
.icon-settings::before {
    content: "⚙️";
}

/* 上传图标 */
.fa-upload::before,
.icon-upload::before {
    content: "📤";
}

/* 下载图标 */
.fa-download::before,
.icon-download::before {
    content: "📥";
}

/* 打印图标 */
.fa-print::before,
.icon-print::before {
    content: "🖨️";
}

/* 分享图标 */
.fa-share::before,
.fa-share-alt::before,
.icon-share::before {
    content: "📤";
}

/* 心形图标 */
.fa-heart::before,
.icon-heart::before {
    content: "❤️";
}

/* 评论图标 */
.fa-comment::before,
.fa-comments::before,
.icon-comment::before {
    content: "💬";
}

/* 标签图标 */
.fa-tag::before,
.fa-tags::before,
.icon-tag::before {
    content: "🏷️";
}

/* 文件夹图标 */
.fa-folder::before,
.fa-folder-open::before,
.icon-folder::before {
    content: "📁";
}

/* 信息图标 */
.fa-info::before,
.fa-info-circle::before,
.icon-info::before {
    content: "ℹ️";
}

/* 警告图标 */
.fa-exclamation::before,
.fa-exclamation-triangle::before,
.fa-exclamation-circle::before,
.icon-warning::before {
    content: "⚠️";
}

/* 错误图标 */
.fa-times::before,
.fa-times-circle::before,
.fa-close::before,
.icon-error::before {
    content: "❌";
}

/* 成功图标 */
.fa-check::before,
.fa-check-circle::before,
.icon-success::before {
    content: "✅";
}

/* 问号图标 */
.fa-question::before,
.fa-question-circle::before,
.icon-question::before {
    content: "❓";
}

/* 电话图标 */
.fa-phone::before,
.icon-phone::before {
    content: "📱";
}

/* 邮件图标 */
.fa-envelope::before,
.fa-envelope-open::before,
.fa-mail::before,
.icon-mail::before {
    content: "📧";
}

/* 位置图标 */
.fa-map-marker::before,
.fa-map-marker-alt::before,
.fa-location::before,
.icon-location::before {
    content: "📍";
}

/* 确保图标和文字之间有适当的间距 */
.fas, .far, .fa, [class^="icon-"], [class*=" icon-"] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 只有图标没有文字的情况 */
.fas:only-child, 
.far:only-child, 
.fa:only-child,
[class^="icon-"]:only-child,
[class*=" icon-"]:only-child {
    margin-right: 0;
}

/* 按钮中的图标 */
.btn i,
button i,
a i {
    display: inline-block;
}