/* 社刊列表样式 */
.magazine-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start; /* Align items to the start */
}

.news-list-container .magazine-item {
    flex: 0 0 calc(50% - 10px); /* Two cards per row with a gap */
    max-width: calc(50% - 10px);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .news-list-container .magazine-item {
        flex: 0 0 100%; /* One card per row on smaller screens */
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .magazine-item {
        flex: 0 0 100%; /* One card per row on smaller screens */
        max-width: 100%;
    }
}

.news-list-container .news-image {
    width: 100%;
    height: 650px; /* 减小图片高度 */
    object-fit: contain; /* 确保图片完整显示 */
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f5f5f5; /* 添加背景色 */
}

.magazine-item {
    opacity: 0; /* 初始隐藏 */
    transform: translateX(-50px); /* 初始左移 */
    transition: all 0.6s ease-out; /* 动画过渡 */
}

.magazine-item.animate {
    opacity: 1; /* 动画后显示 */
    transform: translateX(0); /* 动画后归位 */
}

.magazine-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.magazine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.magazine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.magazine-title {
    color: #333333;
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
}

.magazine-date {
    color: #666666;
    font-size: 0.9rem;
    background-color: #f5f5f5;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.magazine-content {
    color: #666666;
    margin-bottom: 1rem;
}

.magazine-articles {
    margin-top: 0.8rem;
    padding-left: 1.5rem;
    line-height: 0.6;
}

.toc-row {
    display: flex;
    justify-content: flex-start; /* 保持左对齐 */
    gap: 20%; /* 调整两列之间的间距 */
    margin-bottom: 0.2rem;
}

.toc-item {
    flex: 0 0 35%; /* 每列占据卡片宽度的2/5 */
    text-align: left;
}

@media (max-width: 768px) {
    .magazine-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .magazine-title {
        font-size: 1.3rem;
    }
}