/* 首页特定样式 */

/* 组件样式 */
/* @import '/navigation/navigation.css'; */
@import "../../common/navigation/navigation.css";
@import "../../common/banner/banner.css";
@import "../../common/search/search.css";
@import "../../common/buttons/buttons.css";
@import "../../common/footer/footer.css";

/* 页面样式 */
/*@import "./countup/countup.css";*/
/*@import "./products/product-card.css";*/
/*@import "./process/process-steps.css";*/
/*@import "./carousel/page-carousel.css";*/
/*@import "./news/news.css";*/
@import "./form_new.css";
@import "./Swiper.css";

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.process-step {
    position: relative;
    padding: 0 15px;
}

.step-number {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: #265728;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
}

/* 连接线样式 - 紧贴盒子两侧 */
.step-number:before {
    content: '';
    position: absolute;
    top: 50%;
    left: -50px;
    width: 50px;
    height: 2px;
    background-color: #BCBCBC;
    transform: translateY(-50%);
}

.step-number:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    width: 50px;
    height: 2px;
    background-color: #BCBCBC;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .process-step {
        padding: 0;
        margin-bottom: 30px;
    }

    .step-number:before,
    .step-number:after {
        display: none;
    }

    .step-number {
        margin-bottom: 10px;
    }
}

.certificate-gradient {
    background: url("/plugins/shorea/static/images/home/homeV2/cer/bg.png") no-repeat top center;
    background-size: 100% 80%;
}

@media (max-width: 768px) {
    .certificate-gradient {
        background: none;
    }
}

/* FAQ 展开/收起样式 */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-question.active {
    color: #b45309;
    font-weight: bold;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.open {
    max-height: 200px;
}

/* 移除FAQ下划线 */
.faq-item:last-child {
    border-bottom: none;
}

/* 产品轮播 */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.carousel-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: 1px solid #e5e7eb;
}

.carousel-btn:hover:not(.disabled) {
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.carousel-btn.disabled {
    opacity: 0.3;
}

.carousel-btn.disabled:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-item {
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #f3f4f6;
    color: #4b5563;
}

.tab-item.active {
    background-color: #CEAF6F;
    color: white;
    font-weight: bold;
}

.tab-item:hover:not(.active) {
    background-color: #e5e7eb;
}

/* 证书样式 */
.certificate-frame {
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
    border: 10px solid transparent;
    border-image: url("/plugins/shorea/static/images/home/homeV2/cer/border.png") 20 round;
    aspect-ratio: 2/3;
    /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15),
       inset 0 2px 4px rgba(255, 255, 255, 0.8),
       inset 0 -2px 4px rgba(0, 0, 0, 0.1); */
}

.certificate-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 2/3;
}

.tray {
    position: absolute;
    bottom: 95px;
    background: linear-gradient(to top, rgba(255,251,235), #d8d8d8);
    border: 2px solid #c8c8c8;
    position: relative;
    transform: perspective(600px) rotateX(20deg);
    z-index: 0;
}

.tray::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 20px;
    background: linear-gradient(to top, rgba(255,251,235), #b8b8b8);
    border-radius: inherit;
    transform: perspective(600px) rotateX(-20deg);
    z-index: 0;
    bottom: -9px;
    border: 2px solid #c8c8c8;
}

.certificate-container {
    transition: transform 0.3s ease;
    z-index: 10;
}

.certificate-container:hover {
    transform: translateY(-8px);
}