﻿/* ========================================
   首页 & 文章详情页 & 文章列表页 - 绿色主题样式
   依赖 blog-green.css
   ======================================== */

/* ========================================
   首页样式
   ======================================== */

/* ===== 首页容器 ===== */
.home-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2%;
}

/* ===== Tab导航 ===== */
.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--primary-bg, #E8F5E9);
    margin-bottom: 20px;
    gap: 4px;
}

.tab-nav-item {
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

    .tab-nav-item:hover {
        color: var(--primary-green, #2E7D32);
        background: var(--primary-bg, #E8F5E9);
        border-radius: 8px 8px 0 0;
    }

    .tab-nav-item.active {
        color: var(--primary-dark, #1B5E20);
        border-bottom-color: var(--primary-green, #2E7D32);
        background: var(--primary-bg, #E8F5E9);
        border-radius: 8px 8px 0 0;
    }

    .tab-nav-item i {
        margin-right: 8px;
    }

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

    .tab-panel.show {
        display: block;
    }

/* ===== 文章/随笔列表项 ===== */
.item-row {
    padding: 16px 0;
    border-bottom: 1px solid var(--primary-bg, #E8F5E9);
    transition: all 0.3s ease;
}

    .item-row:last-child {
        border-bottom: none;
    }

    .item-row:hover {
        padding-left: 8px;
    }

    .item-row h4 {
        font-size: 18px;
        font-weight: 600;
        color: var(--primary-dark, #1B5E20);
        margin: 0 0 8px 0;
    }

        .item-row h4 a {
            color: var(--primary-dark, #1B5E20);
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .item-row h4 a:hover {
                color: var(--primary-light, #43A047);
            }

.item-summary {
    margin: 0 0 10px 0;
    line-height: 1.8;
    color: var(--text-secondary, #4a4a4a);
    font-size: 15px;
    text-indent: 2em;
}

    .item-summary a {
        color: var(--text-secondary, #4a4a4a);
        text-decoration: none;
    }

        .item-summary a:hover {
            color: var(--primary-green, #2E7D32);
        }

/* ===== 图片列表 ===== */
.img-list {
    margin: 10px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .img-list img {
        max-width: 220px;
        max-height: 160px;
        border-radius: 8px;
        object-fit: cover;
        border: 1px solid var(--primary-bg, #E8F5E9);
        transition: transform 0.3s ease;
    }

        .img-list img:hover {
            transform: scale(1.02);
        }

/* ===== 操作按钮 ===== */
.item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--primary-bg, #E8F5E9);
}

.action-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: var(--primary-bg, #E8F5E9);
    color: var(--primary-dark, #1B5E20);
}

    .action-btn:hover {
        transform: scale(1.02);
        box-shadow: 0 2px 8px var(--primary-shadow, rgba(46, 125, 50, 0.3));
    }

    .action-btn.like-btn {
        background: var(--primary-bg, #E8F5E9);
        color: var(--primary-dark, #1B5E20);
    }

        .action-btn.like-btn:hover {
            background: #c8e6c9;
        }

        .action-btn.like-btn.active {
            background: #fce4ec;
            color: #c62828;
        }

    .action-btn.comment-btn {
        background: #e3f2fd;
        color: #1565C0;
    }

        .action-btn.comment-btn:hover {
            background: #bbdefb;
        }

    .action-btn i {
        font-size: 15px;
    }

/* ===== 评论区域 ===== */
.comment-area {
    display: none;
    margin-top: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--primary-bg, #E8F5E9);
}

    .comment-area.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .comment-area .form-input {
        width: 100%;
        padding: 10px 14px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        min-height: 70px;
        box-sizing: border-box;
        font-size: 14px;
        transition: border-color 0.3s ease;
        resize: vertical;
        font-family: inherit;
    }

        .comment-area .form-input:focus {
            outline: none;
            border-color: var(--primary-green, #2E7D32);
            box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
        }

    .comment-area .btn-submit {
        padding: 8px 24px;
        border: none;
        border-radius: 6px;
        background: var(--primary-gradient, linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #43A047 100%));
        color: #fff;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.3s ease;
        margin-top: 8px;
    }

        .comment-area .btn-submit:hover {
            box-shadow: 0 4px 15px var(--primary-shadow, rgba(46, 125, 50, 0.3));
            transform: translateY(-1px);
        }

/* ===== 评论列表 ===== */
.comment-list {
    margin-top: 12px;
}

.comment-box {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .comment-box:last-child {
        border-bottom: none;
    }

    .comment-box .comment-user {
        font-weight: 600;
        color: var(--primary-dark, #1B5E20);
    }

    .comment-box .comment-content {
        margin: 4px 0;
        color: var(--text-secondary, #4a4a4a);
        line-height: 1.6;
    }

    .comment-box .comment-time {
        font-size: 12px;
        color: #999;
        margin-top: 2px;
    }

/* ========================================
   文章详情页样式
   ======================================== */

/* ===== 文章详情容器 ===== */
.article-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2%;
}

/* ===== 文章标题 ===== */
.article-title {
    text-align: center;
    margin: 10px 0 20px;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark, #1B5E20);
}

/* ===== 文章元信息 ===== */
.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 16px 0 20px;
    border-bottom: 2px solid var(--primary-bg, #E8F5E9);
    color: #6c757d;
    font-size: 14px;
    flex-wrap: wrap;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .article-meta-item i {
        font-size: 16px;
        color: var(--primary-green, #2E7D32);
    }

/* ===== 文章正文 ===== */
.article-content {
    padding: 20px 0;
    line-height: 1.9;
    font-size: 17px;
    color: var(--text-secondary, #4a4a4a);
}

    .article-content img {
        max-width: 100%;
        border-radius: 8px;
        margin: 16px 0;
    }

    .article-content p {
        margin-bottom: 16px;
    }

/* ===== 文章操作按钮 ===== */
.article-actions {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-top: 2px solid var(--primary-bg, #E8F5E9);
    flex-wrap: wrap;
}

    .article-actions .btn {
        padding: 10px 24px;
        border-radius: 8px;
        font-weight: 500;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        font-size: 14px;
    }

        .article-actions .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
        }

    .article-actions .btn-primary {
        background: var(--primary-gradient, linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #43A047 100%));
        color: white;
    }

        .article-actions .btn-primary:hover {
            background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%);
            box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
        }

    .article-actions .btn-danger {
        background: linear-gradient(135deg, #ef5350 0%, #d32f2f 100%);
        color: white;
    }

        .article-actions .btn-danger:hover {
            background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
        }

/* ===== 点赞评论入口 ===== */
.article-interactions {
    border-top: 2px solid var(--primary-bg, #E8F5E9);
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

    .article-interactions .like-btn,
    .article-interactions .comment-btn {
        cursor: pointer;
        font-size: 16px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 18px;
        border-radius: 20px;
        transition: all 0.3s ease;
        border: none;
        background: var(--primary-bg, #E8F5E9);
        color: var(--primary-dark, #1B5E20);
        font-weight: 500;
    }

        .article-interactions .like-btn:hover,
        .article-interactions .comment-btn:hover {
            transform: scale(1.02);
            box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
        }

        .article-interactions .like-btn:hover {
            background: #c8e6c9;
        }

        .article-interactions .comment-btn:hover {
            background: #bbdefb;
        }

/* ===== 评论面板 ===== */
.comment-panel {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--primary-bg, #E8F5E9);
}

    .comment-panel.show {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .comment-panel .form-input {
        width: 100%;
        padding: 10px 14px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        min-height: 80px;
        box-sizing: border-box;
        font-size: 14px;
        transition: border-color 0.3s ease;
        resize: vertical;
        font-family: inherit;
        margin-bottom: 10px;
    }

        .comment-panel .form-input:focus {
            outline: none;
            border-color: var(--primary-green, #2E7D32);
            box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
        }

    .comment-panel .btn-submit {
        padding: 8px 24px;
        border: none;
        border-radius: 6px;
        background: var(--primary-gradient, linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #43A047 100%));
        color: #fff;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .comment-panel .btn-submit:hover {
            box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
            transform: translateY(-1px);
        }

/* ========================================
   文章列表页样式
   ======================================== */

/* ===== 文章列表容器 ===== */
.article-list-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2%;
}

/* ===== 列表头部 ===== */
.list-header {
    padding: 15px 20px;
    margin-bottom: 15px;
}

    .list-header h3 {
        font-size: 20px;
        font-weight: 600;
        color: var(--primary-dark, #1B5E20);
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

        .list-header h3 i {
            color: var(--primary-green, #2E7D32);
        }

    .list-header .page-info {
        font-size: 14px;
        color: #6c757d;
        font-weight: 400;
    }

        .list-header .page-info span {
            color: var(--primary-green, #2E7D32);
            font-weight: 600;
        }

/* ===== 文章卡片 ===== */
.article-card {
    margin-bottom: 15px;
    padding: 20px 24px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

    .article-card:hover {
        border-left-color: var(--primary-green, #2E7D32);
        transform: translateX(4px);
    }

    .article-card .article-title {
        margin: 0 0 10px 0;
        font-size: 20px;
        font-weight: 600;
    }

        .article-card .article-title a {
            color: var(--primary-dark, #1B5E20);
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .article-card .article-title a:hover {
                color: var(--primary-light, #43A047);
                text-decoration: underline;
            }

    .article-card .article-meta {
        color: #6c757d;
        font-size: 14px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--primary-bg, #E8F5E9);
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

        .article-card .article-meta i {
            color: var(--primary-green, #2E7D32);
            margin-right: 4px;
        }

    .article-card .article-summary {
        padding: 12px 0;
        line-height: 1.8;
        font-size: 15px;
        color: var(--text-secondary, #4a4a4a);
        text-indent: 2em;
    }

    .article-card .article-footer {
        margin-top: 8px;
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

        .article-card .article-footer .btn {
            padding: 6px 20px;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--primary-gradient, linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #43A047 100%));
            color: white;
        }

            .article-card .article-footer .btn:hover {
                transform: translateY(-1px);
                box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
            }

        .article-card .article-footer .like-btn {
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 14px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            border: none;
            background: var(--primary-bg, #E8F5E9);
            color: var(--primary-dark, #1B5E20);
        }

            .article-card .article-footer .like-btn:hover {
                background: #c8e6c9;
                transform: scale(1.02);
            }

/* ===== 分页 ===== */
.pagination-container {
    padding: 15px;
    text-align: center;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

    .pagination-container .page-link {
        padding: 6px 14px;
        border: 1px solid var(--primary-bg, #E8F5E9);
        border-radius: 6px;
        text-decoration: none;
        color: var(--text-secondary, #4a4a4a);
        transition: all 0.3s ease;
        font-size: 14px;
        background: white;
    }

        .pagination-container .page-link:hover {
            background: var(--primary-bg, #E8F5E9);
            color: var(--primary-green, #2E7D32);
            border-color: var(--primary-green, #2E7D32);
        }

        .pagination-container .page-link.active {
            background: var(--primary-gradient, linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #43A047 100%));
            color: white;
            border-color: var(--primary-green, #2E7D32);
            cursor: default;
        }

        .pagination-container .page-link.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

    .pagination-container .page-ellipsis {
        padding: 6px 10px;
        color: #999;
    }

/* ========================================
   侧边栏（共用）
   ======================================== */

.sidebar-card {
    background: white;
    border-radius: var(--card-radius, 12px);
    padding: 24px;
    box-shadow: var(--card-shadow, 0 4px 20px rgba(46, 125, 50, 0.08));
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 125, 50, 0.06);
}

    .sidebar-card:hover {
        box-shadow: var(--card-hover-shadow, 0 8px 30px rgba(46, 125, 50, 0.12));
        border-color: rgba(46, 125, 50, 0.1);
    }

    .sidebar-card h3 {
        font-size: 18px;
        font-weight: 600;
        color: var(--primary-dark, #1B5E20);
        margin: 0 0 16px 0;
        padding-bottom: 12px;
        border-bottom: 2px solid var(--primary-bg, #E8F5E9);
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .sidebar-card h3 i {
            color: var(--primary-green, #2E7D32);
        }

/* ===== 侧边栏分类 ===== */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .category-list a {
        color: #555;
        text-decoration: none;
        padding: 6px 12px;
        border-radius: 6px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
    }

        .category-list a:hover {
            color: var(--primary-green, #2E7D32);
            background: var(--primary-bg, #E8F5E9);
            padding-left: 20px;
        }

        .category-list a.active {
            color: var(--primary-green, #2E7D32);
            background: var(--primary-bg, #E8F5E9);
            font-weight: 600;
            padding-left: 20px;
        }

        .category-list a i {
            color: var(--primary-green, #2E7D32);
            font-size: 14px;
        }

/* ===== 侧边栏导航 ===== */
.sidebar-nav-item {
    padding: 8px 0;
}

    .sidebar-nav-item a {
        color: #495057;
        text-decoration: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 6px;
    }

        .sidebar-nav-item a:hover {
            color: var(--primary-green, #2E7D32);
            background: var(--primary-bg, #E8F5E9);
            padding-left: 20px;
        }

        .sidebar-nav-item a i {
            color: var(--primary-green, #2E7D32);
        }

/* ===== 热门文章 ===== */
.hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .hot-list li {
        padding: 6px 0;
        border-bottom: 1px solid var(--primary-bg, #E8F5E9);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .hot-list li:last-child {
            border-bottom: none;
        }

        .hot-list li a {
            color: var(--text-secondary, #4a4a4a);
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 14px;
        }

            .hot-list li a:hover {
                color: var(--primary-green, #2E7D32);
            }

        .hot-list li .hot-rank {
            display: inline-block;
            min-width: 22px;
            height: 22px;
            line-height: 22px;
            text-align: center;
            border-radius: 50%;
            background: var(--primary-bg, #E8F5E9);
            color: var(--primary-green, #2E7D32);
            font-size: 12px;
            font-weight: 600;
            margin-right: 8px;
        }

            .hot-list li .hot-rank.top1 {
                background: linear-gradient(135deg, #ff6b6b, #ee5a24);
                color: white;
            }

            .hot-list li .hot-rank.top2 {
                background: linear-gradient(135deg, #feca57, #f9a825);
                color: white;
            }

            .hot-list li .hot-rank.top3 {
                background: linear-gradient(135deg, #54a0ff, #2e86de);
                color: white;
            }

/* ===== 绿色渐变侧边栏 ===== */
.sidebar-green-gradient {
    background: var(--primary-gradient, linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #43A047 100%));
    color: white;
    border: none !important;
}

    .sidebar-green-gradient h3 {
        color: white;
        border-bottom-color: rgba(255, 255, 255, 0.2);
    }

        .sidebar-green-gradient h3 i {
            color: white !important;
        }

    .sidebar-green-gradient p {
        font-size: 14px;
        line-height: 1.8;
        opacity: 0.95;
        margin: 0;
    }

/* ========================================
   空状态（共用）
   ======================================== */

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

    .empty-state i {
        font-size: 48px;
        margin-bottom: 16px;
        color: var(--primary-light, #43A047);
    }

    .empty-state h4 {
        color: var(--primary-dark, #1B5E20);
        margin-bottom: 8px;
    }

    .empty-state p {
        margin: 0;
    }

/* ========================================
   Toast容器
   ======================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-item {
    padding: 14px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-size: 15px;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.toast-success {
    background: var(--primary-gradient, linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #43A047 100%));
    color: white;
}

.toast-error {
    background: #dc3545;
    color: white;
}

.toast-warning {
    background: #ffc107;
    color: #212529;
}

.toast-info {
    background: #17a2b8;
    color: white;
}

/* ========================================
   动画
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========================================
   响应式设计
   ======================================== */

/* ===== 平板 ===== */
@media screen and (max-width: 1024px) {
    .home-container,
    .article-detail-container,
    .article-list-container {
        grid-template-columns: 65% 32%;
        gap: 16px;
        padding: 16px;
    }
}

/* ===== 手机 - 右侧自动排到下方 ===== */
@media screen and (max-width: 768px) {
    .home-container,
    .article-detail-container,
    .article-list-container {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 12px;
    }

        .home-container > div:last-child,
        .article-detail-container > div:last-child,
        .article-list-container > div:last-child {
            width: 100% !important;
            order: 2;
        }

        .home-container > div:first-child,
        .article-detail-container > div:first-child,
        .article-list-container > div:first-child {
            width: 100% !important;
            order: 1;
        }

    .tab-nav-item {
        padding: 10px 16px;
        font-size: 14px;
    }

    .item-row h4 {
        font-size: 16px;
    }

    .img-list img {
        max-width: 120px;
        max-height: 100px;
    }

    .action-btn {
        padding: 3px 12px;
        font-size: 13px;
    }

    .card {
        padding: 16px 18px;
    }

    .article-meta {
        gap: 12px;
        font-size: 13px;
    }

    .article-interactions {
        gap: 12px;
    }

        .article-interactions .like-btn,
        .article-interactions .comment-btn {
            font-size: 14px;
            padding: 4px 14px;
        }

    .article-actions .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .article-title {
        font-size: 26px;
    }

    .article-card {
        padding: 16px;
    }

        .article-card .article-title {
            font-size: 17px;
        }

        .article-card .article-meta {
            font-size: 13px;
            gap: 10px;
        }

    .pagination-container .page-link {
        padding: 4px 10px;
        font-size: 13px;
    }

    .list-header h3 {
        font-size: 18px;
    }
}

/* ===== 小手机 ===== */
@media screen and (max-width: 480px) {
    .home-container,
    .article-detail-container,
    .article-list-container {
        padding: 8px;
        gap: 12px;
    }

    .tab-nav-item {
        padding: 8px 12px;
        font-size: 13px;
        flex: 1;
        text-align: center;
    }

    .img-list img {
        max-width: 100px;
        max-height: 80px;
    }

    .item-actions {
        gap: 8px;
    }

    .action-btn {
        padding: 2px 10px;
        font-size: 12px;
    }

    .card {
        padding: 12px 14px;
        border-radius: 10px;
    }

    .comment-area {
        padding: 12px;
    }

        .comment-area .form-input {
            min-height: 60px;
            font-size: 13px;
            padding: 8px 12px;
        }

        .comment-area .btn-submit {
            padding: 6px 18px;
            font-size: 13px;
        }

    .article-meta {
        font-size: 12px;
        gap: 8px;
    }

    .article-actions {
        gap: 8px;
    }

        .article-actions .btn {
            padding: 6px 12px;
            font-size: 12px;
        }

    .article-interactions .like-btn,
    .article-interactions .comment-btn {
        font-size: 13px;
        padding: 3px 10px;
    }

    .comment-panel .form-input {
        min-height: 60px;
        font-size: 13px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-card {
        padding: 12px 14px;
    }

        .article-card .article-title {
            font-size: 16px;
        }

        .article-card .article-summary {
            font-size: 14px;
        }

        .article-card .article-footer {
            gap: 10px;
        }

            .article-card .article-footer .btn {
                padding: 4px 14px;
                font-size: 13px;
            }

            .article-card .article-footer .like-btn {
                font-size: 13px;
                padding: 3px 10px;
            }

    .pagination-container .page-link {
        padding: 3px 8px;
        font-size: 12px;
    }

    .list-header {
        padding: 12px 14px;
    }

        .list-header h3 {
            font-size: 16px;
        }




    /* ===== 三列网格布局 ===== */
    .home-container {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 20px;
        max-width: 1280px;
        margin: 0 auto;
        padding: 20px 16px;
    }

    /* 主内容区 */
    .main-content {
        min-width: 0; /* 防止溢出 */
    }

    /* 侧边栏 */
    .sidebar-content {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* ===== 移动端适配 ===== */
    @media (max-width: 992px) {
        .home-container {
            grid-template-columns: 1fr;
            gap: 16px;
            padding: 12px;
        }

        .sidebar-content {
            order: 2; /* 侧边栏放到下面 */
        }

        .main-content {
            order: 1;
        }
    }

    @media (max-width: 600px) {
        .home-container {
            padding: 8px;
            gap: 12px;
        }

        /* Tab导航适配 */
        .tab-nav {
            flex-wrap: wrap;
            gap: 4px;
        }

        .tab-nav-item {
            flex: 1;
            min-width: 80px;
            padding: 8px 10px;
            font-size: 13px;
            text-align: center;
            justify-content: center;
        }

            .tab-nav-item i {
                margin-right: 4px;
            }

        /* 文章列表适配 */
        .item-row {
            padding: 12px 10px;
        }

            .item-row h4 {
                font-size: 15px;
            }

        .item-summary {
            font-size: 13px;
        }

        /* 图片列表适配 */
        .img-list {
            gap: 6px;
        }

            .img-list img {
                height: 80px;
                object-fit: cover;
            }

        /* 操作按钮适配 */
        .item-actions {
            flex-wrap: wrap;
            gap: 8px;
        }

        .action-btn {
            font-size: 12px;
            padding: 4px 10px;
        }

        /* 评论区域适配 */
        .comment-area {
            padding: 8px 0;
        }

            .comment-area textarea {
                font-size: 14px;
                padding: 8px;
            }

        .comment-box {
            padding: 8px 10px;
            font-size: 13px;
        }

        /* 侧边栏适配 */
        .sidebar-card {
            padding: 12px 14px;
        }

            .sidebar-card h3 {
                font-size: 15px;
            }

        .category-list a {
            font-size: 13px;
            padding: 4px 0;
        }

        /* 温馨提示卡片适配 */
        .card[style*="primary-gradient"] {
            padding: 12px 14px;
        }

            .card[style*="primary-gradient"] p {
                font-size: 13px !important;
            }
    }

    @media (max-width: 400px) {
        .tab-nav-item {
            font-size: 12px;
            padding: 6px 8px;
        }

            .tab-nav-item i {
                display: none; /* 小屏隐藏图标节省空间 */
            }

        .item-row h4 {
            font-size: 14px;
        }

        .img-list {
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
        }

            .img-list img {
                height: 60px;
            }

        .action-btn {
            font-size: 11px;
            padding: 3px 8px;
        }

            .action-btn i {
                margin-right: 2px;
            }
    }





}
