/* ===== 博客模块样式 ===== */

/* 博客卡片 */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0e6d8;
    margin-bottom: 24px;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.blog-card .card-body {
    padding: 24px;
}
.blog-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c2418;
    margin-bottom: 12px;
}
.blog-card .card-title a {
    color: #2c2418;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card .card-title a:hover {
    color: #7a3e1f;
}
.blog-card .card-meta {
    font-size: 0.85rem;
    color: #8a7a6a;
    margin-bottom: 12px;
}
.blog-card .card-meta i {
    margin-right: 4px;
}
.blog-card .card-meta .separator {
    margin: 0 8px;
}
.blog-card .card-summary {
    color: #5a4a38;
    line-height: 1.7;
    margin-bottom: 16px;
}
.blog-card .card-footer {
    background: none;
    border-top: 1px solid #f5efe8;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.blog-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.blog-card .tags .tag {
    background: #f0e6d8;
    color: #7a3e1f;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: background 0.2s;
}
.blog-card .tags .tag:hover {
    background: #e0d5c8;
}
.blog-card .status-badge {
    font-size: 0.7rem;
    padding: 2px 10px;
}

/* 博客详情 */
.blog-detail .blog-header {
    margin-bottom: 24px;
}
.blog-detail .blog-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c2418;
    margin-bottom: 12px;
}
.blog-detail .blog-meta {
    color: #8a7a6a;
    font-size: 0.9rem;
}
.blog-detail .blog-meta i {
    margin-right: 4px;
}
.blog-detail .blog-meta .separator {
    margin: 0 10px;
}
.blog-detail .blog-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #3f3325;
}
.blog-detail .blog-content h1,
.blog-detail .blog-content h2,
.blog-detail .blog-content h3 {
    color: #7a3e1f;
    margin-top: 28px;
    margin-bottom: 16px;
}
.blog-detail .blog-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}
.blog-detail .blog-content blockquote {
    border-left: 4px solid #c2845c;
    padding: 12px 20px;
    background: #f9f4ed;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
    color: #5a4a38;
}
.blog-detail .blog-content code {
    background: #f0e6d8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}
.blog-detail .blog-content pre {
    background: #2c2418;
    color: #f0e6d8;
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
}
.blog-detail .blog-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid #f0e6d8;
    border-bottom: 1px solid #f0e6d8;
}

/* 评论区 */
.comment-section {
    margin-top: 32px;
}
.comment-section .comment-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #7a3e1f;
    margin-bottom: 16px;
}
.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid #f5efe8;
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-item .comment-user {
    font-weight: 600;
    color: #7a3e1f;
}
.comment-item .comment-time {
    font-size: 0.8rem;
    color: #b0a088;
    margin-left: 12px;
}
.comment-item .comment-content {
    margin-top: 6px;
    color: #3f3325;
    line-height: 1.6;
}
.comment-item .comment-actions {
    margin-top: 8px;
    display: flex;
    gap: 12px;
}
.comment-item .comment-actions button {
    background: none;
    border: none;
    color: #b0a088;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s;
}
.comment-item .comment-actions button:hover {
    color: #7a3e1f;
}
.comment-item .replies {
    margin-left: 40px;
    padding-left: 16px;
    border-left: 2px solid #f0e6d8;
}
.comment-form textarea {
    border-radius: 10px;
    border: 1px solid #e0d5c8;
    padding: 12px 16px;
    resize: vertical;
    min-height: 80px;
}
.comment-form textarea:focus {
    border-color: #7a3e1f;
    box-shadow: none;
}

/* 发布/编辑表单 */
.blog-form .form-control {
    border-radius: 10px;
    border: 1px solid #e0d5c8;
    padding: 12px 16px;
}
.blog-form .form-control:focus {
    border-color: #7a3e1f;
    box-shadow: none;
}
.blog-form .form-label {
    font-weight: 600;
    color: #5a4a38;
}
.blog-form .tag-input {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e0d5c8;
    border-radius: 10px;
    min-height: 46px;
    cursor: text;
}
.blog-form .tag-input .tag-item {
    background: #f0e6d8;
    color: #7a3e1f;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.blog-form .tag-input .tag-item .remove-tag {
    cursor: pointer;
    font-weight: 700;
    color: #8a7a6a;
}
.blog-form .tag-input .tag-item .remove-tag:hover {
    color: #c0392b;
}
.blog-form .tag-input input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 80px;
    padding: 4px 0;
}

/* 博客列表侧边栏 */
.blog-sidebar .widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #f0e6d8;
    margin-bottom: 20px;
}
.blog-sidebar .widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: #7a3e1f;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0e6d8;
}
.blog-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-sidebar .widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid #f5efe8;
}
.blog-sidebar .widget ul li:last-child {
    border-bottom: none;
}
.blog-sidebar .widget ul li a {
    color: #5a4a38;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-sidebar .widget ul li a:hover {
    color: #7a3e1f;
}
.blog-sidebar .widget ul li .count {
    color: #b0a088;
    font-size: 0.8rem;
    float: right;
}

/* 响应式 */
@media (max-width: 768px) {
    .blog-card .card-body {
        padding: 16px;
    }
    .blog-card .card-footer {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
    }
    .blog-detail .blog-title {
        font-size: 1.5rem;
    }
    .comment-item .replies {
        margin-left: 16px;
        padding-left: 12px;
    }
}