/* ================== 基础和桌面端样式 ================== */
.faq-container-wrapper .faq-mobile-layout {
    display: none; /* 默认隐藏移动端布局 */
}

.faq-desktop-layout {
    display: flex;
    gap: 40px;
    width: 100%;
}

.faq-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.faq-menu-wrapper {
    position: sticky;
    top: 100px;
}

.left-block-menu {
    padding: 18px 24px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.left-block-menu h3 {
    font-size: 18px;
    font-weight: 500;
    color: #373737;
    margin: 0;
    transition: color 0.3s;
}

.left-block-menu.active, .left-block-menu:hover {
    background-color: #f056270d;
}

.left-block-menu.active h3, .left-block-menu:hover h3 {
    color: #f05627;
}

.faq-content {
    flex: 1;
    min-width: 0;
}

.heading-block {
    scroll-margin-top: 120px;
}

.heading-block .category-title-main {
    font-size: 32px;
    font-weight: 600;
    color: #373737;
    margin-bottom: 40px;
}

/* 通用问答手风琴样式 */
.faq-qa-wrapper {
    border-bottom: 1px solid #e0e0e0;
}
.faq-qa-wrapper summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
}
.faq-qa-wrapper summary::-webkit-details-marker {
    display: none;
}
.faq-qa-wrapper .faq-question {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}
.faq-answer-wrapper {
    padding-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}
.faq-answer-wrapper p { margin-top: 0; }
.faq-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>' );
    background-repeat: no-repeat;
    background-position: center;
}
.faq-qa-wrapper[open] > summary .faq-arrow {
    transform: rotate(180deg);
}

/* ================== 移动端样式 (小于 768px) ================== */
@media (max-width: 767px) {
    .faq-container-wrapper .faq-desktop-layout {
        display: none; /* 隐藏桌面端布局 */
    }
    .faq-container-wrapper .faq-mobile-layout {
        display: block; /* 显示移动端布局 */
        width: 100%;
    }
    .mobile-main-title {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 24px;
    }
    .mobile-topic-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .mobile-topic-card {
        background-color: white;
        border-radius: 16px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        cursor: pointer;
        height: 110px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    .mobile-topic-icon {
        margin-bottom: 8px;
        color: #f05627;
        font-size: 24px;
    }
    .mobile-topic-title {
        font-size: 16px;
        font-weight: 600;
        margin: 0;
    }

    /* 抽屉样式 */
    .mobile-drawer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #f8f8f8;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
    }
    .mobile-drawer.is-open {
        transform: translateX(0);
    }
    .drawer-header {
        display: flex;
        align-items: center;
        padding: 15px;
        background-color: white;
        border-bottom: 1px solid #eee;
    }
    .drawer-back-button {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }
    .drawer-back-button svg {
        width: 24px;
        height: 24px;
    }
    .drawer-title {
        font-size: 18px;
        font-weight: bold;
        margin-left: 10px;
    }
    .drawer-content {
        padding: 20px;
    }
}

/* ================== FAQ 搜索框样式 ================== */
.faq-search-container {
    position: relative;
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    color: white;
}
.faq-search-container.mobile-bg { display: none; } /* 移动端背景默认隐藏 */

@media (max-width: 767px) {
    .faq-search-container.desktop-bg { display: none; } /* 桌面端背景在移动端隐藏 */
    .faq-search-container.mobile-bg { display: block; } /* 移动端背景在移动端显示 */
}

.faq-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* 调整遮罩透明度 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.faq-search-content h1 {
    font-size: 40px;
    margin-bottom: 1rem;
    color: white;
    font-weight: bold;
}

.faq-search-content h3 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 2rem;
    color: white;
}

.faq-search-input-wrapper {
    position: relative;
    background-color: white;
    border-radius: 8px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.faq-search-input-wrapper .search-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23373737" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 21l-4.35-4.35M19 11a8 8 0 11-16 0 8 8 0 0116 0z"/></svg>' );
    background-repeat: no-repeat;
    margin-right: 10px;
}

.faq-search__input {
    border: none;
    outline: none;
    box-shadow: none !important;
    width: 100%;
    font-size: 18px;
    padding: 10px 0;
    color: #373737;
}
.faq-search__input:focus {
    ring: 0;
    box-shadow: none !important;
}

/* 搜索结果容器 */
.faq-search-results-container {
    padding: 40px 20px;
    display: none; /* 默认隐藏 */
}
.faq-search-results-container .highlight {
    background-color: #f0d627; /* 高亮关键词的背景色 */
    font-weight: bold;
    color: #000;
}

/* ================== Hero Slider 样式 ================== */
.hero-slider-wrapper {
    width: 100%;
    height: 100vh; /* 占满整个屏幕高度 */
    position: relative;
}
.hero-slider {
    width: 100%;
    height: 100%;
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.slide-background-image, .slide-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 视频或图片铺满容器 */
    background-size: cover;
    background-position: center;
}
.slide-content-overlay {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 50px;
    box-sizing: border-box;
}
/* 内容定位 */
.position-center-center { justify-content: center; align-items: center; text-align: center; }
.position-center-left { justify-content: flex-start; align-items: center; text-align: left; }
.position-center-right { justify-content: flex-end; align-items: center; text-align: right; }
.position-top-center { justify-content: center; align-items: flex-start; text-align: center; }
.position-bottom-center { justify-content: center; align-items: flex-end; text-align: center; }
/* 其他位置可按需添加 */

.slide-content {
    color: white;
    max-width: 600px;
}
.eyebrow-text { font-size: 18px; margin-bottom: 15px; }
.slide-logo { max-height: 40px; margin-bottom: 15px; }
.slide-slogan { font-size: 48px; font-weight: bold; margin: 0 0 30px 0; }
.slide-buttons { display: flex; gap: 15px; justify-content: inherit; }
.slide-button {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.slide-button:hover { background-color: rgba(255, 255, 255, 0.4); }

/* Swiper 导航按钮和分页器样式 */
.swiper-button-next, .swiper-button-prev { color: #fff; }
.swiper-pagination-bullet-active { background: #fff; }

/* ================== Hero Slider 样式 ================== */
.hero-slider-wrapper {
    width: 100%;
    height: 100vh; /* 占满整个屏幕高度 */
    position: relative;
}
.hero-slider {
    width: 100%;
    height: 100%;
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.slide-background-image, .slide-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 视频或图片铺满容器 */
    background-size: cover;
    background-position: center;
}
.slide-content-overlay {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 50px;
    box-sizing: border-box;
}
/* 内容定位 */
.position-center-center { justify-content: center; align-items: center; text-align: center; }
.position-center-left { justify-content: flex-start; align-items: center; text-align: left; }
.position-center-right { justify-content: flex-end; align-items: center; text-align: right; }
.position-top-center { justify-content: center; align-items: flex-start; text-align: center; }
.position-top-left { justify-content: flex-start; align-items: flex-start; text-align: left; }
.position-top-right { justify-content: flex-end; align-items: flex-start; text-align: right; }
.position-bottom-center { justify-content: center; align-items: flex-end; text-align: center; }
.position-bottom-left { justify-content: flex-start; align-items: flex-end; text-align: left; }
.position-bottom-right { justify-content: flex-end; align-items: flex-end; text-align: right; }

.slide-content {
    color: white;
    max-width: 600px;
}
.eyebrow-text { font-size: 18px; margin-bottom: 15px; }
.slide-logo { max-height: 40px; margin-bottom: 15px; }
.slide-slogan { font-size: 48px; font-weight: bold; margin: 0 0 30px 0; }
.slide-buttons { display: flex; gap: 15px; justify-content: inherit; }
.slide-button {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.slide-button:hover { background-color: rgba(255, 255, 255, 0.4); }

/* Swiper 导航按钮和分页器样式 */
.swiper-button-next, .swiper-button-prev { color: #fff; }
.swiper-pagination-bullet-active { background: #fff; }

/* ================== Layered Content Slider 样式 ================== */
.layered-slider-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}
.hotspot-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.hotspot-bg-asset {
    width: 100%; height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}
.layered-content-area, .layered-media-area {
    width: 50%;
    height: 100%;
    padding: 5%;
    box-sizing: border-box;
    z-index: 2;
    position: relative;
}
.layered-content-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #333; /* 默认文字颜色 */
}
.layout-reversed {
    flex-direction: row-reverse;
}
.static-main-title { font-size: 36px; font-weight: bold; margin: 0 0 10px 0; }
.static-subtitle { font-size: 20px; color: #666; margin: 0 0 30px 0; }
.static-features-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 40px; }
.static-feature-item { display: flex; align-items: center; gap: 15px; }
.static-feature-icon { font-size: 24px; color: #333; }
.dynamic-content-pane { display: none; }
.dynamic-content-pane.active { display: block; }
.content-animation-fade .dynamic-content-pane { animation: fadeIn 0.5s; }

.layered-nav-container { position: relative; margin-top: auto; /* 将导航推到底部 */ }
.layered-nav-item {
    font-size: 18px;
    color: #888;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.3s;
}
.layered-nav-item.active { color: #333; font-weight: bold; }
.layered-nav-indicator {
    position: absolute;
    left: -20px;
    top: 10px;
    width: 3px;
    height: 18px;
    background-color: #f05627;
    transition: top 0.3s ease-in-out;
}
.layered-media-slider { width: 100%; height: 100%; }
.layered-media-asset { width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; }

@media (max-width: 767px) {
    .layered-slider-wrapper { height: auto; }
    .layered-content-area, .layered-media-area { width: 100% !important; padding: 20px; }
    .layout-reversed { flex-direction: column-reverse !important; }
    .layered-media-area { min-height: 300px; }
}

/* ================== Custom Nav Slider 样式 ================== */
.custom-nav-slider-wrapper {
    position: relative;
    width: 100%;
    height: 90vh; /* 占屏幕高度的90% */
    min-height: 650px;
    color: #333;
}
.custom-nav-main-slider {
    width: 100%;
    height: 100%;
}
.swiper-slide {
    overflow: hidden;
}
.slide-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.slide-bg-asset {
    width: 100%; height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}
.slide-content-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}
.slide-main-title { font-size: 42px; font-weight: bold; margin: 0 0 15px 0; }
.slide-subtitle { font-size: 22px; color: #555; margin: 0 0 35px 0; }
.slide-features-list { display: flex; flex-direction: column; gap: 20px; }
.slide-feature-item { display: flex; align-items: center; gap: 15px; font-size: 18px; }
.slide-feature-icon { font-size: 28px; }
.slide-product-image { max-width: 100%; height: auto; }

/* 自定义导航 */
.custom-slider-nav {
    position: absolute;
    left: 5%;
    bottom: 10%;
    z-index: 10;
}
.swiper-pagination-custom {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.swiper-pagination-bullet-custom {
    font-size: 18px;
    color: #888;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.3s;
    background: none !important; /* 覆盖swiper默认样式 */
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}
.swiper-pagination-bullet-custom-active {
    color: #333;
    font-weight: bold;
}
.custom-nav-indicator {
    position: absolute;
    left: -20px;
    top: 10px; /* JS会计算准确位置 */
    width: 3px;
    height: 18px; /* 和字体大小相关 */
    background-color: #f05627;
    transition: top 0.3s ease-in-out;
}

/* 移动端响应式 */
@media (max-width: 767px) {
    .custom-nav-slider-wrapper { height: auto; min-height: 0; }
    .slide-content-grid { grid-template-columns: 1fr; padding: 80px 20px 120px 20px; text-align: center; }
    .slide-content-right { order: -1; margin-bottom: 30px; }
    .slide-features-list, .slide-feature-item { justify-content: center; }
    .custom-slider-nav { left: 0; right: 0; bottom: 30px; display: flex; justify-content: center; }
    .swiper-pagination-custom { flex-direction: row; gap: 20px; }
    .swiper-pagination-bullet-custom { font-size: 14px; padding: 5px; }
    .custom-nav-indicator { display: none; } /* 移动端隐藏竖条指示器 */
}
