/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.list {
    width: 100%;
    height: auto;
    padding: 1rem 0;
}
/* 杂志列表容器 - 基础样式，自适应时切换列数 */
.magazine-grid {
    display: grid;
    gap: 2rem; /* 基础间距，自适应时调整 */
    width: 100%;
    justify-items: center; /* 子项居中，防止错位 */
}
/* 杂志项样式 */
.magazine-item {
    display: flex;
    flex-direction: column; /* 垂直排列，图片在上，日期在下 */
    align-items: center; /* 水平居中 */
    width: fit-content; /* 宽度随内容自适应 */
    transition: transform 0.3s;
}
.magazine-item:hover {
    transform: translateY(-0.3rem);
}
/* 杂志封面图容器 */
.magazine-img-box {
    display: block; /* 块级包裹图片 */
    margin-bottom: 0.5rem; /* 图片与日期间距 */
}
/* 杂志封面图 - 核心尺寸保留7.5rem×9.75rem（PC端） */
.magazine-img {
    width: 7.5rem;
    height: 9.75rem;
    object-fit: cover;
    border: 1px solid #eee;
    display: block; /* 消除行内间隙 */
}
/* 日期链接 - 强制块级，确保在图片下方 */
.magazine-date {
    font-size: 1rem;
    color: #666;
    text-decoration: none;
    display: block; /* 块级显示 */
    text-align: center; /* 文字居中 */
    width: 100%; /* 宽度与图片对齐 */
    line-height: 1.2; /* 固定行高 */
}
.magazine-date:hover {
    color: #b12b10;
}

/* PC端（≥75rem）- 6列布局 */
@media (min-width: 75rem) {
    .listmain{
        width: 75rem;
        height: auto;
        background-color: #fff;
        padding: 5rem;
        margin: 0 auto;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.2), 5px 0 10px rgba(0, 0, 0, 0.2);
    }
    .dqwz{
        width: 100%;
        height: 2.2rem;
        color: #b12b10;
        font-size: 1.25rem;
        font-weight: 600;
        border-bottom: 2px solid #b12b10;
        margin-bottom: 2rem;
    }
    .dqwz a{
        color: #b12b10;
        font-size: 1.25rem;
        font-weight: 600;
    }
    /* PC端一行6列 */
    .magazine-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem; /* 6列时间距稍小，避免过宽 */
    }
}

/* 平板端（≤75rem）- 3列布局 */
@media (max-width: 75rem) {
    .listmain{
        width: 100%;
        height: auto;
        background-color: #fff;
        padding: 2rem 1rem;
        margin: 0 auto;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.2), 5px 0 10px rgba(0, 0, 0, 0.2);
    }
    .dqwz{
        width: 100%;
        height: auto;
        line-height: 2.2rem;
        color: #b12b10;
        font-size: 1.1rem;
        font-weight: 600;
        border-bottom: 2px solid #b12b10;
        margin-bottom: 1.5rem;
        padding: 0.5rem 0;
    }
    .dqwz a{
        color: #b12b10;
        font-size: 1.1rem;
        font-weight: 600;
    }
    /* 平板/手机端一行3列 */
    .magazine-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    /* 缩小图片尺寸适配3列 */
    .magazine-img {
        width: 6.5rem;
        height: 8.5rem;
    }
    .magazine-date {
        font-size: 0.95rem;
    }
    .magazine-img-box {
        margin-bottom: 0.4rem;
    }
}

/* 手机端（≤40rem）- 保持3列，进一步缩小图片和间距 */
@media (max-width: 40rem) {
    .listmain{
        padding: 1rem 0.5rem;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1), 2px 0 5px rgba(0, 0, 0, 0.1);
    }
    .dqwz{
        font-size: 1rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid #b12b10;
    }
    .dqwz a{
        font-size: 1rem;
    }
    /* 仍为3列，进一步缩小间距和图片 */
    .magazine-grid {
        gap: 1rem;
    }
    .magazine-img {
        width: 5rem; /* 手机端图片更窄 */
        height: 6.5rem; /* 保持7.5:9.75的比例 */
    }
    .magazine-date {
        font-size: 0.85rem;
    }
    .magazine-img-box {
        margin-bottom: 0.3rem;
    }
}