/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.product-m {
    display: none;
}
.product-pc{
    display: block;
}

/* Banner Section */
.banner {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* 黑色半透明蒙层 */
    z-index: 1;
}

.banner > * {
    position: relative;
    z-index: 2; /* 确保内容在蒙层之上 */
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.banner-content {
    position: relative;
    max-width: 960px;
    padding: 0 20px;
    z-index: 1;
}

.banner h1 {
    font-size: 54px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 32px;
    line-height: 1.2;
}

.banner p {
    font-size: 14px;
    max-width: 800px;
    text-align: left;

}

/* Product Categories Navigation */
.product-categories {
    height: 68px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 360px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.product-categories a {
    padding: 0 42px;
    text-decoration: none;
    color: rgba(34, 34, 34, 0.7);
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s;
}

.product-categories a.active {
    color: #222;
    font-weight: 600;
    font-size: 18px;
    color: #3377FF;
    position: relative;
}

.product-categories a.active .active-line {
    width: 100px;
    position: absolute;
    left: 50%;
    right: 0;
    bottom: -76%;
    transform: translateX(-50%);
    height: 3px;
    background: #3377FF;
}

/* Product Sections */
.product-section {
    /* margin-bottom: 24px; */
    background: #F6F8F9;
    padding-bottom: 120px;
}

.section-bg {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}


#delivery .section-bg {
    background: url('https://www.orionstar.com/res/orics/down/ow001_20250328_48af341991f381ec719158a0e074f8b8.webp') center/cover no-repeat;
}

#warehouse .section-bg {
    background: url('https://www.orionstar.com/res/orics/down/ow001_20250328_7118aa61e79eef42890cad980a3f9dc4.webp') center/cover no-repeat;
}

#greeting .section-bg {
    background: url('https://www.orionstar.com/res/orics/down/ow001_20250328_a55b586c9210796a1fdf2290351eb88f.webp') center/cover no-repeat;
}
#cleaning .section-bg {
    background: url('https://www.orionstar.com/res/orics/down/ow001_20250711_291e2198ff8409413a2b0de2e5587446.webp') center/cover no-repeat;
}

.section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%);
}

.section-bg.reverse .section-content {
    margin-left: auto;
    padding-right: 360px;
    padding-left: 0;
}

.section-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding-left: 360px;
    max-width: 925px;
}

.section-content h2 {
    font-size: 48px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.section-content p {
    font-size: 14px;
    margin-bottom: 24px;
}

/* Product Cards */
.product-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.product-card {
    flex: 0 1 624px;
    background: #fff;
    padding: 42px 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.card-content {
    margin-bottom: 42px;
}

.card-content h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

.card-content p {
    font-size: 18px;
    color: rgba(34, 34, 34, 0.6);
}

.card-image {
    height: 360px;
    margin-bottom: 24px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* .product-card:hover .card-image img {
    transform: scale(1.05);
} */

/* Learn More Button */
.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: #3377FF;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 30px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.learn-more:hover {
    color: #fff;
    background: #2261ff;
}

.learn-more img {
    width: 7px;
    height: auto;
    margin-top: -2px;
}
.expand-btn{
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* .learn-more::after {
    content: '>';
    font-size: 20px;
} */

/* Mobile Styles */
@media (max-width: 768px) {

    .desc-container {
        position: relative;
    }

    .desc-text {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .desc-text.expanded {
        -webkit-line-clamp: unset;
    }

    .expand-btn {
        cursor: pointer;
        display: block;
        width: fit-content;
        padding: 1.6vw 4.267vw;
        background-color: #D8E4FC;
        border-radius: 2.6vw;
       
        margin: 0 auto;
        margin-top: 3.2vw;
    }

    .section-content .expand-btn {
        text-align: center;
    }

    .section-content .expand-btn img {
        width: 2.6vw;
        height: auto;
    }

    .section-content .desc-container {
        text-align: center;
    }

    .section-content .desc-text {
        margin-bottom: 0;
    }

    .banner .expand-btn img {
        width: 2.6vw;
        height: auto;
    }

    .product-m {
        display: block;
    }
    .product-pc{
        display: none;
    }
    /* 吸顶导航样式 */
    .product-categories {
        position: relative;
        z-index: 100;
        transition: all 0.3s ease;
    }

    .product-categories.sticky-tab {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow-y: hidden;
    }

    /* 占位元素样式 */
    .nav-placeholder {
        display: none;
        height: var(--nav-height);
    }

    .nav-placeholder.show {
        display: block;
    }

    .banner {
        height: 100%;
        background: none !important;
        background-color: #C7D8FA !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #000;
    }

    .banner::before {
        background: none;
    }

    .banner img {
        width: 100%;
        height: auto;
        /* 让高度自适应 */
        object-fit: contain;
        /* 确保图片完整显示 */

    }

    .banner-content {
        padding: 16vw 5.33vw 0;
        gap: 4.27vw;
        margin-bottom: 8vw;
    }

    .banner h1 {
        font-size: 7.2vw;
        line-height: 200%;
        margin-bottom: 0;
    }

    .banner p {
        font-size: 3.2vw;
        text-align: left;
    }
    
    .product-categories {
        padding: 3.2vw 5.333vw;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        background: #000;
        gap: 4.267vw;
    }

    .product-categories a {
        font-size: 3.73vw;
        white-space: nowrap;
        position: relative;
        color: #fff;
        border-radius: 4.2vw;
        padding: 0;
    }

    .product-categories a.active {
        font-size: 3.73vw;
        font-weight: 600;
        color: #3377FF;
        background-color: #fff;
        padding: 1.6vw 3.2vw;

    }

    .product-categories a.active .active-line {
       display: none;
    }

    #delivery .section-bg,
    #warehouse .section-bg,
    #greeting .section-bg,
    #cleaning .section-bg {
        background: #000;
    }

    .section-bg {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 16vw 0 0;
    }

    .section-content {
        padding: 0 5.33vw;
        text-align: center;
        margin-bottom: 0;
    }

    .section-bg.reverse .section-content {
        padding: 0 5.33vw;
    }

    .section-content h2 {
        font-size: 7.2vw;
        margin-bottom: 4.27vw;
        text-align: left;
    }

    .section-content p {
        font-size: 3.2vw;
        margin-bottom: 0;
        text-align: left;
    }

    .product-cards {
        padding: 0 5.33vw;
        margin-top: 3.2vw;
        gap: 3.2vw;
        flex-direction: column;
    }

    .product-card {
        padding: 8vw 3.2vw;
        width: 100%;
        flex: 1;
    }

    .card-content {
        margin-bottom: 8vw;
    }

    .card-content h3 {
        font-size: 4.267vw;
        margin-bottom: 1.6vw;
        min-height: 0;
    }

    .card-content p {
        font-size: 3.2vw;
    }

    .card-image {
        height: 64vw;
        margin-bottom: 8vw;
    }

    .learn-more {
        padding: 2.667vw 5.2vw;
        font-size: 3.2vw;
        gap: 1.6vw;
    }

    .learn-more::after {
        font-size: 3.2vw;
    }

    .learn-more img {
        width: 1.6vw;
        height: auto;
        margin-top: -0.533vw;
    }
    .section-bg .learn-more{
        margin-top: 4.267vw;
    }
    .product-section {
        padding-bottom: 21.333vw;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .banner h1 {
        font-size: 42px;
    }

    .section-content h2 {
        font-size: 36px;
    }

    .product-categories {
        padding: 0 20px;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .product-categories a {
        padding: 0 20px;
        white-space: nowrap;
    }

    .section-content,
    .section-bg.reverse .section-content {
        padding: 0 60px;
    }

    .product-cards {
        flex-wrap: wrap;
    }

    .product-card {
        flex: 0 1 calc(50% - 12px);
    }
}

/* Large Desktop Styles */
@media (min-width: 1025px) and (max-width: 1600px) {
    .product-categories {
        padding: 0 120px;
    }

    .section-content {
        padding-left: 120px;
        max-width: 700px;
    }

    .section-bg.reverse .section-content {
        padding-right: 120px;
    }

    /* .card-content h3{
        min-height: 100.78px;
    } */

}

.expand-btn img {
    transition: transform 0.3s ease;
}

.expand-btn.expanded img {
    transform: rotate(180deg);
}