/* ===== index.css - 首页模块样式 ===== */

/* ---- Banner Section ---- */
.banner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 86px;
}

.banner-section .banner-bg {
    display: block;
    width: 100%;
    height: auto;
}

.banner-labels {
    position: absolute;
    inset: 0;
}

/* label包裹层：绝对定位，flex行，垂直居中，点在左，胶囊在右 */
.banner-label-wrap {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
}

/* 外部绿色圆点 */
.banner-label-wrap .label-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #73DE20;
    flex-shrink: 0;
    border: solid 4px #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    box-sizing: initial;
}

.banner-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(115, 222, 32, 0.87);
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.banner-label:hover {
    background: rgba(115, 222, 32, 1);
    transform: scale(1.05);
}

.banner-label .label-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* 各标签位置（使用wrap定位） */
.banner-label-wrap--wind       { top: 16%; right: 10%; }
.banner-label-wrap--logistics  { top: 24%; right: 26%; }
.banner-label-wrap--coking     { top: 30%; right: 35%; }
.banner-label-wrap--warehouse  { top: 33%; right: 28%; }
.banner-label-wrap--drying     { top: 21%; right: 42%; }
.banner-label-wrap--screening  { top: 31%; right: 54%; }
.banner-label-wrap--railway    { bottom: 10%; left: 44%; }


/* ---- Part1: Company Intro ---- */
.company-section {
    padding: 80px 0 60px;
    background: #fff;
    position: relative;
}

.company-section .section-header {
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}


/* ---- Video Section ---- */
.video-section {
    position: relative;
    padding: 0 0 0;
    position: relative;
    z-index: 1;
}

.video-wrapper {
    display: flex;
    gap: 0;
    margin: 0 auto;
    max-width: 1584px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-color: #ECF3EC;
    z-index: 1;
}

.video-left {
    position: relative;
    flex: 0 0 52%;
    overflow: hidden;
    min-height: 480px;
    border-radius: 24px;
}

.video-left video {
    width: 100%;
    height: 100%;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 91px;
    height: 91px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 2;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-right {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-right h3 {
    font-size: 28px;
    color: var(--color-text);
    margin-bottom: 30px;
    line-height: 1.4;
}

.video-right p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 28px;
}

.video-bg-extend {
    width: 100%;
    height: 100px;
    margin-top: -50px;
    position: relative;
    z-index: -1;
    background: var(--color-primary);
}

.company-section-bg{
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #5BB217;
    width: 100%;
    height: 548px;
    z-index: 0;
}

/* ---- Part2: Business Section ---- */
.business-section {
    padding: 80px 0;
    background: #f5f5f5;
    position: relative;
}

.business-section .section-header {
    margin-bottom: 30px;
}

.business-section .section-header .sub-desc {
    text-align: center;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    max-width: 1584px;
    margin: 0 auto;
}

.business-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.business-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.business-card:hover img {
    transform: scale(1.05);
}

.business-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: rgba(0, 0, 0, 0.4); /* 透明黑色的蒙版 */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.business-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.business-card .card-overlay h4 {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 2px;
}

/* First row: wind(large), drying, screening+detail, coking */
.business-card--wind {
    grid-row: span 2;
    min-height: 500px;
}

.business-card--screening {
    position: relative;
}

.business-card--screening .card-detail {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(91, 178, 23, 0.92);
    color: #fff;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

.business-card--screening:hover .card-detail {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 悬停时隐藏默认蒙版标题，显示详情层 */
.business-card--screening:hover .card-overlay {
    opacity: 0;
}

.business-card--screening .card-detail h4 {
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.business-card--screening .card-detail p {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 15px;
    text-align: center;
}

.business-card--screening .card-detail .btn-more {
    padding: 6px 16px;
    font-size: 14px;
    align-self: center;
    background: rgba(255,255,255,0.2);
}

/* 删除旧的重复按钮样式（已由上面替换） */

/* ---- Part3: News Section ---- */
.news-section {
    background: #EDF5E6;
    padding: 80px 0;
}

.news-section .section-header {
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1584px;
    margin: 0 auto;
}

.news-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 第二张卡片悬停显绿色 */
.news-card:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.news-card:hover .news-content h4,
.news-card:hover .news-content p {
    color: #fff;
}

.news-card:hover .btn-more span {
    color: #fff;
}

.news-card .news-img {
    width: 100%;
    height: 334px;
    overflow: hidden;
}

.news-card .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-card .news-content {
    padding: 25px;
}

.news-card .news-content h4 {
    font-size: 20px;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .news-content p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 28px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .btn-more {
    font-size: 14px;
    padding: 8px 18px;
}

.btn-more .btn-arrow{
    background-color: #fff;
}
.news-card:hover .btn-more{
    border: 1px solid #fff;
}


/* ===== Responsive - Index Module ===== */

@media (max-width: 1200px) {
    .banner-label {
        font-size: 14px;
        padding: 6px 14px;
    }

    .video-right {
        padding: 40px 30px;
    }
    .video-right h3 {
        font-size: 24px;
    }

    .business-grid {
        gap: 15px;
    }

    .business-card--wind {
        min-height: 400px;
    }

    .business-card .card-overlay h4{
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .banner-label {
        font-size: 11px;
        padding: 4px 10px;
        gap: 5px;
    }

    .banner-section{
        margin-top: 60px;
    }

    .banner-label .label-icon {
        width: 16px;
        height: 16px;
    }

    .banner-label-wrap .label-dot {
        width: 7px;
        height: 7px;
        border-width: 3px;
    }

    .banner-label-wrap {
        gap: 6px;
    }

    .video-wrapper {
        flex-direction: column;
        border-radius: 8px;
    }

    .video-left {
        flex: none;
        height: 350px;
        min-height: unset;
    }

    .video-right {
        padding: 30px;
    }

    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .business-card--wind {
        grid-row: span 1;
        min-height: 250px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .company-section-bg{
        height: 300px;
    }

    .business-card .card-overlay h4{
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .banner-label {
        font-size: 9px;
        padding: 3px 7px;
        gap: 4px;
    }

    .banner-label .label-icon {
        width: 12px;
        height: 12px;
    }

    .banner-label-wrap .label-dot {
        width: 5px;
        height: 5px;
        border-width: 2px;
        box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
    }

    .banner-label-wrap {
        gap: 4px;
    }

    .company-section {
        padding: 40px 0 0;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
    }

    .video-left {
        height: 220px;
    }

    .video-right {
        padding: 25px 20px;
    }
    .video-right h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    .video-right p {
        font-size: 14px;
        line-height: 24px;
    }

    .video-bg-extend {
        height: 150px;
        margin-top: -75px;
    }

    .business-section {
        padding: 50px 0;
    }

    .business-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .business-card--wind {
        min-height: 200px;
    }

    .news-section {
        padding: 50px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .business-card .card-overlay{
        height: 45px;
    }
    .news-card .news-img {
        height: 200px;
    }

    .news-card .btn-more {
        font-size: 14px;
        padding: 4px 12px;
    }
}

@media (max-width: 480px) {
    .banner-label {
        font-size: 8px;
        padding: 2px 5px;
        gap: 3px;
        border-radius: 20px;
    }

    .banner-label .label-icon {
        width: 10px;
        height: 10px;
    }

    .banner-label-wrap .label-dot {
        display: none;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .business-card--wind {
        min-height: 200px;
        grid-row: span 1;
    }
}
