/* 
 * LeleBlog文章列表多风格样式
 * 支持三种不同布局风格，可在后台切换
 */

/* ===== 共用基础样式 ===== */
.article-list {
    margin-bottom: 30px;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-category a {
    display: inline-block;
    transition: all 0.3s ease;
}

.article-meta {
    color: var(--text-muted);
    font-size: 13px;
}

.article-meta i {
    color: var(--primary-color);
    opacity: 0.7;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-item {
    animation: fadeInUp 0.6s ease backwards;
}

.article-item:nth-child(1) { animation-delay: 0.1s; }
.article-item:nth-child(2) { animation-delay: 0.2s; }
.article-item:nth-child(3) { animation-delay: 0.3s; }
.article-item:nth-child(4) { animation-delay: 0.4s; }
.article-item:nth-child(5) { animation-delay: 0.5s; }
.article-item:nth-child(6) { animation-delay: 0.6s; }
.article-item:nth-child(n+7) { animation-delay: 0.7s; }

/* ===== 风格一：高级卡片网格布局 ===== */
.article-list.style-card {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-gap: 25px;
}

.style-card .article-item {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.style-card .article-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.style-card .article-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.style-card .article-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, 
                rgba(0,0,0,0.3) 0%, 
                rgba(0,0,0,0) 40%,
                rgba(0,0,0,0) 60%,
                rgba(0,0,0,0.5) 100%);
    z-index: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.style-card .article-img img {
    transition: transform 0.8s ease;
}

.style-card .article-item:hover .article-img img {
    transform: scale(1.08);
}

.style-card .article-item:hover .article-img::before {
    opacity: 1;
}

.style-card .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
}

.style-card .article-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.4;
}

.style-card .article-title a {
    color: var(--text-primary);
    transition: all 0.3s ease;
    background-image: linear-gradient(transparent 0%, transparent 90%, var(--primary-lighter) 90%, var(--primary-lighter) 100%);
    background-repeat: no-repeat;
    background-size: 0% 100%;
}

.style-card .article-item:hover .article-title a {
    color: var(--primary-color);
    background-size: 100% 100%;
}

.style-card .article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 1;
}

.style-card .article-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
    width: 100%;
    position: relative;
    overflow: hidden;
    justify-content: flex-start;
}

.style-card .article-meta span {
    display: flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 0;
    white-space: nowrap;
    font-size: 12px;
}

.style-card .article-meta i {
    margin-right: 4px;
    font-size: 12px;
}

.style-card .read-more {
    margin-left: auto;
    font-size: 13px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.3s ease;
    background-color: var(--primary-lighter);
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.style-card .read-more i {
    margin-left: 4px;
    font-size: 11px;
    transition: transform 0.3s ease;
}

.style-card .article-item:hover .read-more {
    opacity: 1;
    transform: translateX(0);
}

.style-card .article-item:hover .read-more i {
    transform: translateX(3px);
}

.style-card .read-more:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== 风格二：杂志式列表布局 ===== */
.article-list.style-magazine {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 25px;
}

.style-magazine .article-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 25px;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.style-magazine .article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.style-magazine .article-img {
    height: 100%;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.style-magazine .article-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.style-magazine .article-item:hover .article-img img {
    transform: scale(1.05);
}

.style-magazine .article-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.style-magazine .article-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px;
    line-height: 1.4;
}

.style-magazine .article-title a {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

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

.style-magazine .article-excerpt {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    margin-bottom: 15px;
}

.style-magazine .article-meta {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.style-magazine .article-meta span {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.style-magazine .article-meta i {
    margin-right: 5px;
}

/* ===== 风格三：瀑布流布局 ===== */
.article-container {
    margin-bottom: 30px;
}

.article-section-title {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

.article-list.style-masonry {
    display: block;
    width: 100%;
    margin-bottom: 40px;
    position: relative;
}

.article-list.style-masonry::after {
    content: "";
    display: table;
    clear: both;
}

/* 瀑布流项目样式 */
.style-masonry .article-item {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease forwards;
    /* 瀑布流宽度设置 */
    width: calc(33.333% - 17px);
    float: left;
    margin-right: 25px;
}

/* 每行第3个元素取消右边距 */
.style-masonry .article-item:nth-child(3n) {
    margin-right: 0;
}

.style-masonry .article-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 5px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-5px);
}

.style-masonry .article-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.style-masonry .article-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.style-masonry .article-title a {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

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

.style-masonry .article-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.style-masonry .article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: auto;
    font-size: 12px;
}

.style-masonry .article-meta span {
    display: flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 5px;
}

.style-masonry .article-meta i {
    margin-right: 4px;
}

.style-masonry .article-img {
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 比例 */
    position: relative;
    overflow: hidden;
}

.style-masonry .article-img a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.style-masonry .article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.style-masonry .article-item:hover .article-img img {
    transform: scale(1.08);
}

/* ===== 响应式适配 ===== */
/* 大屏幕设备 (小于1200px) */
@media (max-width: 1199px) {
    .style-masonry .article-item {
        width: calc(33.333% - 17px);
    }
}

/* 平板设备 (小于992px) */
@media (max-width: 991px) {
    .style-masonry .article-item {
        width: calc(50% - 12px);
    }
    
    .style-masonry .article-item:nth-child(3n) {
        margin-right: 25px;
    }
    
    .style-masonry .article-item:nth-child(2n) {
        margin-right: 0;
    }
}

/* 中等屏幕设备 (小于768px) */
@media (max-width: 767px) {
    .style-masonry .article-item {
        width: 100%;
        margin-right: 0;
    }
    
    .style-masonry .article-item:nth-child(3n),
    .style-masonry .article-item:nth-child(2n) {
        margin-right: 0;
    }
}

/* 小屏幕设备 (小于576px) */
@media (max-width: 575px) {
    .article-list.style-card,
    .article-list.style-magazine,
    .article-list.style-masonry {
        grid-gap: 15px;
    }
    
    .style-card .article-item,
    .style-magazine .article-item,
    .style-masonry .article-item {
        border-radius: 8px;
    }
    
    .style-card .article-title,
    .style-magazine .article-title,
    .style-masonry .article-title {
        font-size: 16px;
    }
    
    .style-card .article-excerpt,
    .style-magazine .article-excerpt,
    .style-masonry .article-excerpt {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .style-card .article-meta,
    .style-magazine .article-meta,
    .style-masonry .article-meta {
        flex-wrap: wrap;
    }
    
    .style-card .article-meta span,
    .style-magazine .article-meta span {
        margin-bottom: 5px;
    }
    
    .style-card .article-img,
    .style-magazine .article-img,
    .style-masonry .article-img {
        height: 180px;
    }
    
    .style-card .article-content,
    .style-magazine .article-content,
    .style-masonry .article-content {
        padding: 15px;
    }
    
    .style-magazine .article-content {
        padding: 15px;
    }
    
    .style-magazine .article-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
}

/* 暗黑模式适配 */
[data-theme="dark"] .article-item {
    background-color: var(--bg-white);
}

[data-theme="dark"] .article-title a {
    color: var(--text-primary);
}

[data-theme="dark"] .style-masonry .article-author {
    color: var(--text-secondary);
}

/* 共用的分类标签样式 */
.article-category {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* 使用gap替代margin-right，更加现代 */
    background-color: transparent; /* 确保没有背景色 */
    padding: 0; /* 确保没有内边距 */
    border: none; /* 确保没有边框 */
}

.article-category a {
    font-size: 12px;
    padding: 5px 12px;
    background-color: #6366f1; /* 使用固定的蓝色而不是变量 */
    color: white !important; /* 确保文字颜色始终为白色 */
    border-radius: 20px; /* 统一使用圆角 */
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25); /* 增强阴影效果 */
    text-decoration: none;
    display: inline-block;
    writing-mode: horizontal-tb !important; /* 确保文字水平显示 */
    transition: all 0.2s ease;
    line-height: 1.2;
    text-align: center;
    min-width: 50px; /* 保证标签有最小宽度 */
}

.article-category a:hover {
    background-color: #4f46e5; /* 深一点的蓝色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* 删除专门为卡片布局设置的特殊样式，使用共用样式 */
.style-card .article-category a {
    /* 删除特殊样式，使用上面的通用样式 */
}

/* 添加瀑布流分类标签样式 */
.style-masonry .article-category {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background-color: transparent; /* 移除背景色 */
    padding: 0; /* 移除内边距 */
    border: none; /* 移除边框 */
    box-shadow: none; /* 移除阴影 */
}

.style-masonry .article-category a {
    display: inline-block;
    font-size: 12px;
    padding: 3px 10px;
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 20px;
    margin-right: 5px;
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.style-masonry .article-category a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* ===== 文章详情页新样式 ===== */
/* 上方卡片：标题、作者信息、分类、摘要 */
.post-header-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.post-header-card .post-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.post-header-card .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.post-header-card .post-meta-item {
    display: flex;
    align-items: center;
}

.post-header-card .post-meta-item i {
    margin-right: 6px;
    color: #666;
    opacity: 0.8;
}

/* 文章摘要区域 */
.post-summary {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    border-left: 4px solid #6366f1;
}

.post-summary .summary-icon {
    font-weight: 500;
    color: #6366f1;
    margin-bottom: 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.post-summary .summary-icon i {
    margin-right: 6px;
}

.post-summary .summary-content {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

/* 过期提醒 */
.post-outdated-notice {
    background-color: #fff3cd;
    color: #856404;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    border-left: 4px solid #ffc107;
}

.post-outdated-notice i {
    margin-right: 8px;
    font-size: 16px;
}

/* 下方卡片：文章正文 */
.post-content-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.post-content-card .post-banner {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
}

.post-content-card .post-banner img {
    width: 100%;
    object-fit: cover;
}

.post-content-wrapper {
    padding: 40px;
}

.post-content {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

.post-content h1, 
.post-content h2, 
.post-content h3, 
.post-content h4, 
.post-content h5, 
.post-content h6 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #222;
    font-weight: 600;
    line-height: 1.4;
}

.post-content h2 {
    font-size: 1.6rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5em;
}

.post-content h3 {
    font-size: 1.4rem;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5em 0;
}

.post-content a {
    color: #6366f1;
    text-decoration: none;
    border-bottom: 1px dashed rgba(99, 102, 241, 0.4);
    transition: all 0.2s;
}

.post-content a:hover {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.post-content blockquote {
    border-left: 4px solid #6366f1;
    padding-left: 1em;
    color: #666;
    font-style: italic;
    margin: 1.5em 0 1.5em 0.5em;
    background: rgba(99, 102, 241, 0.05);
    padding: 1em 1.2em;
    border-radius: 0 6px 6px 0;
}

.post-tags {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.post-tags .tags-label {
    margin-right: 10px;
    color: #666;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.post-tags .tags-label i {
    margin-right: 6px;
    color: #6366f1;
}

.post-tags .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tags .tags-list a {
    display: inline-flex;
    padding: 6px 12px;
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.post-tags .tags-list a:hover {
    background-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

/* 相关文章卡片 */
.related-posts-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
    padding: 25px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* 重新设计的文章导航卡片 */
.post-navigation-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 20px;
}

/* 文章分享区域 */
.post-share-area {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.share-label {
    font-size: 15px;
    color: #333;
    margin-right: 15px;
    white-space: nowrap;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.share-btn i {
    margin-right: 4px;
}

.share-btn.weibo {
    background-color: #e6162d;
}

.share-btn.qq {
    background-color: #12b7f5;
}

.share-btn.wechat {
    background-color: #07c160;
    position: relative;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 微信分享二维码样式 */
.qrcode-popup {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 15px;
    border-radius: 10px;
    display: block;
    z-index: 10;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qrcode-popup.show {
    opacity: 1;
    visibility: visible;
}

.qrcode-container {
    width: 128px;
    height: 128px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.qrcode-container img {
    max-width: 100%;
    max-height: 100%;
}

.qrcode-popup p {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 12px;
    color: #666;
}

/* 文章元信息统计 */
.post-meta-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item i {
    margin-right: 5px;
    color: #6366f1;
    opacity: 0.7;
}

.meta-item a {
    color: #6366f1;
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
}

.post-category a {
    color: #6366f1;
    text-decoration: none;
}

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

/* 文章导航项 */
.post-navigation-list {
    padding: 0;
}

.post-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.post-nav-item:last-child {
    border-bottom: none;
}

.post-nav-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.post-nav-info {
    flex: 1;
    min-width: 0;
}

.post-nav-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.post-nav-title {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.post-nav-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    flex-shrink: 0;
}

.post-nav-item:hover .post-nav-arrow {
    color: #4f46e5;
}

.post-nav-empty {
    padding: 30px 15px;
    text-align: center;
    color: #999;
}

.post-nav-empty p {
    margin: 0;
    font-size: 14px;
}

.related-title h3 {
    font-size: 18px;
    margin: 0 0 20px;
    color: #333;
    display: flex;
    align-items: center;
}

.related-title h3 i {
    margin-right: 8px;
    color: #6366f1;
}

/* 移动设备响应式 */
@media (max-width: 767px) {
    .post-header-card {
        padding: 20px;
    }
    
    .post-header-card .post-title {
        font-size: 1.5rem;
    }
    
    .post-content-wrapper {
        padding: 20px;
    }
    
    .post-tags, 
    .post-actions {
        padding: 15px 20px;
    }
    
    /* 增强移动设备上的阅读体验 */
    .post-content {
        font-size: 15px;
    }
    
    .post-content h2 {
        font-size: 1.4rem;
    }
    
    .post-content h3 {
        font-size: 1.2rem;
    }
}

/* 小型移动设备 */
@media (max-width: 576px) {
    .post-content-wrapper {
        padding: 15px;
    }
    
    .post-header-card {
        padding: 15px;
    }
    
    .post-summary {
        padding: 15px;
    }
    
    .post-content {
        font-size: 14px;
    }
}

/* 作者信息和文章数据卡片 */
.author-article-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.article-content-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.author-avatar {
    margin-right: 20px;
    flex-shrink: 0;
}

.author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
}

.article-info {
    flex: 1;
    min-width: 0; /* 确保内容可以正确缩放 */
}

.article-details {
    width: 100%;
}

.author-article-card .article-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
    line-height: 1.4;
}

.author-meta {
    margin-bottom: 5px;
    color: #666;
}

.author-name {
    font-size: 14px;
    color: #666;
}

.author-article-card .article-meta {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.article-actions {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    align-items: center;
}

.action-btn {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
}

.action-btn:hover {
    background: #6366f1;
    color: white;
}

/* 评论区样式修改 */
.comment-content-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.comment-avatar {
    margin-right: 15px;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.comment-main {
    flex: 1;
    min-width: 0; /* 确保内容可以正确缩放 */
}

.comment-author {
    margin-bottom: 5px;
}

.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin-right: 5px;
    display: flex;
    align-items: center;
}

.author-badge {
    display: inline-block;
    padding: 2px 5px;
    font-size: 12px;
    background-color: #6366f1;
    color: white;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 400;
}

.comment-author-level {
    color: #666;
    font-size: 13px;
}

.comment-content {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.comment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: #999;
}

.comment-time {
    display: flex;
    align-items: center;
}

.comment-time i {
    margin-right: 4px;
}

.comment-reply {
    display: flex;
    align-items: center;
}

.comment-reply a {
    color: #6366f1;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.comment-reply a i {
    margin-right: 3px;
}

.comment-reply a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* 二维码弹窗样式 - 从上面合并过来 */
.wechat-qrcode {
    position: absolute;
    right: 0;
    top: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    padding: 15px;
    text-align: center;
    width: 150px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wechat-qrcode.show {
    opacity: 1;
    visibility: visible;
}

.wechat-qrcode p {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 0;
}

/* 同分类其他文章卡片 */
.category-articles-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.category-articles-list {
    display: flex;
    flex-direction: column;
}

.category-article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-article-item:first-child {
    padding-top: 0;
}

.article-link {
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.article-date {
    color: #6366f1;
    font-size: 13px;
    margin-bottom: 5px;
}

.category-article-item .article-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin: 0;
    transition: color 0.2s;
}

.article-link:hover .article-title {
    color: #6366f1;
}

.article-arrow {
    margin-left: 15px;
    color: #ccc;
    transition: all 0.2s;
}

.category-article-item:hover .article-arrow {
    color: #6366f1;
    transform: translateX(3px);
}

/* 作者头像样式 */
.post-author-avatar {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.post-author-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
} 