/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.list {
    width: 100%;
    height: auto;
    padding: 1rem 0;
}
/* 专题卡片容器 - 自适应布局 */
.topic-grid {
    display: grid;
    gap: 2rem;
    width: 100%;
}
/* 专题卡片项 */
.topic-item {
    position: relative;
    overflow: hidden;
/*    border-radius: 0.5rem;*/
    box-shadow: 0 0.2rem 0.8rem rgba(0,0,0,0.1);
    transition: transform 0.3s;
    /* PC端高度由图片自动撑开，自适应时重新设置 */
}
.topic-item:hover {
    transform: translateY(-0.3rem);
}
/* PC端图片（默认显示） */
.topic-img-pc {
    width: 100%;
    height: auto;
    display: block;
}
/* 自适应端图片（默认隐藏） */
.topic-img-adapt {
    width: 100%;
    /* 初始隐藏，自适应时设置固定高度 */
    display: none;
}
/* 图片标题（PC端显示，自适应隐藏） */
.topic-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

/* PC端（≥75rem）- 2列布局 */
@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;
    }
    .topic-grid {
        grid-template-columns: repeat(2, 1fr); /* PC端2列 */
    }
}

/* 自适应端（≤75rem）- 1列布局，替换图片+隐藏标题，高度改为10.25rem */
@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;
    }
    .topic-grid {
        grid-template-columns: 1fr; /* 自适应1列 */
    }
    /* 隐藏PC端图片，显示自适应图片 */
    .topic-img-pc {
        display: none;
    }
    .topic-img-adapt {
        display: block;
        height: 10.25rem; /* 固定高度10.25rem */
        object-fit: cover; /* 保持图片比例，防止拉伸 */
    }
    /* 设置topic-item的高度与图片一致（10.25rem） */
    .topic-item {
        height: 10.25rem; /* 固定高度10.25rem */
    }
    /* 隐藏标题 */
    .topic-title {
        display: none;
    }
}

/* 手机端（≤40rem）- 优化间距，保持高度10.25rem */
@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;
    }
    .topic-grid {
        gap: 1rem;
    }
    /* 保持固定高度10.25rem */
    .topic-img-adapt {
        height: 10.25rem;
    }
    .topic-item {
        height: 10.25rem;
    }
}