/* ====== 板块展示组件 ====== */

.sector-cards001 .layout h1 {
    display: flex;
    align-items: end;
}

.sector-cards001 .layout h1 .cat-intro {
    font-size: 0.16rem;
    color: #333;
    max-width: 80%;
    flex-shrink: 0;
    margin-left: 0.2rem;
    font-weight: normal;
}

/* ====== Grid 布局 ====== */
.sector-cards001 .sector-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.sector-cards001 .sector-card {
    flex: 1;
    min-width: calc(100% / 5);
}

/* ====== 卡片 ====== */
.sector-cards001 .sector-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 6rem;
}

.sector-cards001 .sector-card .r_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sector-cards001 .sector-card .r_img .inner-img {
    width: 100%;
    height: 100%;
}

.sector-cards001 .sector-card .r_img .inner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图片自带 0.2 浅遮罩 */
.sector-cards001 .sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 1;
}

/* ====== 遮罩层（随标题下移） ====== */
.sector-cards001 .sector-card .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.5s ease;
}

.sector-cards001 .sector-card:hover .mask {
    top: 66.66%;
    height: 33.34%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
}

/* 标题 — 始终在遮罩正中 */
.sector-cards001 .sector-card .mask .title-wrap {
    text-align: center;
    padding: 0 0.2rem;
}

.sector-cards001 .sector-card .mask .title-wrap .title {
    color: #fff;
    font-size: 0.24rem;
    font-weight: bold;
    line-height: 1.4;
}

/* ====== 卡片内容区（描述 + MORE） ====== */
.sector-cards001 .sector-card .card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 0.2rem;
    box-sizing: border-box;
    pointer-events: none;
}

/* 描述 — 默认隐藏，悬浮时从上方滑入 */
.sector-cards001 .sector-card .card-content .desc-wrap {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.5s ease 0.1s;
    text-align: center;
    padding-top: 0.4rem;
}

.sector-cards001 .sector-card:hover .card-content .desc-wrap {
    opacity: 1;
    transform: translateY(0);
}

.sector-cards001 .sector-card:hover::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));

}

.sector-cards001 .sector-card .card-content .desc-wrap .desc {
    color: rgba(255, 255, 255, 1);
    font-size: 0.16rem;
    line-height: 1.5;
    max-height: 1.44rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

/* ====== MORE 按钮 ====== */
.sector-cards001 .sector-card .card-content .more-link {
    position: absolute;
    bottom: 0.2rem;
    right: 0.2rem;
    padding: 0.06rem 0.16rem;
    border: 1px solid #fff;
    color: #fff;
    font-size: 0.14rem;
    border-radius: 0.03rem;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
    pointer-events: auto;
}

.sector-cards001 .sector-card:hover .card-content .more-link {
    opacity: 1;
}

/* ====== 响应式 ====== */
@media (max-width: 960px) {
    .sector-cards001 .sector-card {
        min-width: calc(100% / 3);
        height: 4rem;
    }

    .sector-cards001 .sector-card .mask .title-wrap .title {
        font-size: 0.19rem !important;
    }

    .sector-cards001 .layout h1 {
        flex-direction: column;
        align-items: flex-start;
    }

    .sector-cards001 .layout h1 .cat-intro {
        max-width: 100%;
        text-align: left;
        margin-left: 0;
        margin-top: 0.2rem;
    }
}

@media (max-width: 768px) {
    .sector-cards001 .sector-card {
        min-width: 50%;
        height: 3rem;
    }

    .sector-cards001 .sector-card .card-content .desc-wrap .desc {
        font-size: 0.14rem;
        -webkit-line-clamp: 4;
    }
}

@media (max-width: 480px) {
    .sector-cards001 .sector-card {
        min-width: 100%;
        height: 1.2rem;
        transition: height 0.4s ease;
    }

    .sector-cards001 .sector-card.expanded {
        height: 2.4rem;
    }

    .sector-cards001 .sector-card .card-content .desc-wrap .desc {
        font-size: 0.14rem;
        -webkit-line-clamp: 4;
    }

    /* 默认只显示标题 */
    .sector-cards001 .sector-card .card-content .desc-wrap,
    .sector-cards001 .sector-card .card-content .more-link {
        display: none;
    }

    .sector-cards001 .sector-card.expanded .card-content .desc-wrap,
    .sector-cards001 .sector-card.expanded .card-content .more-link {
        display: block;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* 遮罩和标题在收起时居中 */
    .sector-cards001 .sector-card .mask {
        height: 100%;
        top: 0;
    }

    .sector-cards001 .sector-card .card-content {
        justify-content: center;
    }

    .sector-cards001 .sector-card.expanded .mask {
        top: 66.66%;
        height: 33.34%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.8));
    }

    .sector-cards001 .sector-card.expanded .card-content {
        justify-content: flex-start;
        padding-top: 0.3rem;
    }

    .sector-cards001 .sector-card.expanded .card-content .desc-wrap {
        padding-top: 0 !important;
    }

    /* 首块上方圆角，末块下方圆角 */
    .sector-cards001 .sector-card:first-child {
        border-top-left-radius: 0.16rem;
        border-top-right-radius: 0.16rem;
        overflow: hidden;
    }

    .sector-cards001 .sector-card:last-child {
        border-bottom-left-radius: 0.16rem;
        border-bottom-right-radius: 0.16rem;
        overflow: hidden;
    }
}