/*
Theme Name: Blocksy Child
Description: Child theme of Blocksy
Author: Your Name
Template: blocksy
Version: 1.0.0
Text Domain: blocksy-child
*/

/* ── Related/Upsells 产品 Slider 列宽修复 ─────────────────────────────────── */
/* 当 Blocksy Customizer 开启 Slider 模式后，flexy-item 宽度依赖
   --grid-columns-width CSS 变量。如果 WP Rocket 等缓存了旧版动态 CSS，
   该变量会丢失，导致每个卡片占满整行（100%）。这里显式补全以保证正确列数。 */
.related.is-layout-slider [data-products],
.up-sells.is-layout-slider [data-products] {
    --grid-columns-width: calc(100% / 4);
}
@media (max-width: 999px) {
    .related.is-layout-slider [data-products],
    .up-sells.is-layout-slider [data-products] {
        --grid-columns-width: calc(100% / 3);
    }
}
@media (max-width: 599px) {
    .related.is-layout-slider [data-products],
    .up-sells.is-layout-slider [data-products] {
        --grid-columns-width: calc(100% / 1);
    }
}
/* ─────────────────────────────────────────────────────────────────────────── */

/* ── Product Gallery Flexy 首屏防闪烁（桌面端） ───────────────────────────────
   现象：网络慢时，Flexy 样式/变量尚未就绪，缩略图会短暂按块级纵向堆叠，
   导致主图区域被拉很长。这里提供最小关键样式兜底。 */
@media (min-width: 768px) {
    .single-product .flexy-container .flexy-items {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
    }

    .single-product .flexy-container .flexy-items > .flexy-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .single-product .flexy-container .flexy-view[data-flexy-view='boxed'] {
        overflow: hidden;
    }

    .single-product .flexy-container .ct-media-container,
    .single-product .flexy-container .ct-media-container img {
        display: block;
        width: 100%;
    }

    .single-product .flexy-pills[data-type='thumbs'] > ol {
        display: flex;
        flex-wrap: nowrap;
        list-style: none;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .single-product .flexy-pills[data-type='thumbs'] > ol > li {
        list-style: none;
        flex: 0 0 var(--thumbs-width, 20%);
        width: var(--thumbs-width, 20%);
    }

}
/* ─────────────────────────────────────────────────────────────────────────── */

/* 通用跑马灯样式（简码：[site_marquee]） */
.child-marquee {
    --marquee-duration: 25s;
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
}

.child-marquee__inner {
    display: flex;
    width: max-content;
    animation: child-marquee-scroll var(--marquee-duration) linear infinite;
}

.child-marquee__track {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.child-marquee .child-marquee__item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 3rem;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

.child-marquee__item::before {
    content: '•';
    display: inline-block;
    margin-right: 0.6rem;
}

.child-marquee:hover .child-marquee__inner {
    animation-play-state: paused;
}

@keyframes child-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* 产品图片轮播样式 */
.product-image-carousel-wrapper {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
}

.product-image-carousel-wrapper.carousel-full-width {
    margin-left: calc(-100vw / 2 + 50%);
    margin-right: calc(-100vw / 2 + 50%);
    max-width: 100vw;
}

.product-image-carousel {
    position: relative;
    width: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 宽高比 */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide img,
.carousel-slide video,
.carousel-slide iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

/* 进度条指示器 - 放在图片内部中下位置 */
.carousel-progress-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
}

.progress-line {
    width: 40px;
    height: 3px;
    background: rgba(191, 191, 191, 0.4);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.progress-line:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scaleY(1.5);
}

.progress-line.active {
    background: rgba(255, 255, 255, 0.8);
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #fff;
    border-radius: 2px;
    width: 0;
    transition: width 0.1s linear;
}

.progress-line.active .progress-fill {
    animation: progressFill 5s linear infinite;
}

@keyframes progressFill {
    from { width: 0; }
    to { width: 100%; }
}

.carousel-description {
    padding: 30px 20px;
    text-align: center;
}

.carousel-description p {
    margin: 0;
    font-size: 24px;
    line-height: 1.6;
    color: #333;
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

/* 单张图片时隐藏导航控件 */
.product-image-carousel[data-slides="1"] .carousel-controls,
.product-image-carousel[data-slides="0"] .carousel-controls {
    display: none !important;
}

.product-image-carousel[data-slides="1"] .carousel-progress-indicators,
.product-image-carousel[data-slides="0"] .carousel-progress-indicators {
    display: none !important;
}
.carousel-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.product-image-carousel:hover .carousel-controls {
    opacity: 1;
}

/* 导航按钮 */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #ffffff;
    border: none;
    font-size: 28px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    font-weight: bold;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

/* 进度条指示器 */
.carousel-progress-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.progress-line {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.progress-line:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scaleY(1.5);
}

.progress-line.active {
    background: rgb(0 0 0 / 24%)
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #fff;
    border-radius: 2px;
    width: 0;
    transition: width 0.1s linear;
}

.progress-line.active .progress-fill {
    animation: progressFill 5s linear infinite;
}

@keyframes progressFill {
    from { width: 0; }
    to { width: 100%; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-image-carousel-wrapper {
        margin-left: calc(-100vw / 2 + 50%);
        margin-right: calc(-100vw / 2 + 50%);
        max-width: 100vw;
        border-radius: 0;
    }
    
    .carousel-slides {
        padding-bottom: 75%; /* 移动端也使用4:3比例 */
    }
    
    .carousel-description {
        padding: 20px 15px;
    }
    
    .carousel-description p {
        font-size: 16px;
        width: 85%;
    }
    
    .carousel-prev,
    .carousel-next {
        font-size: 24px;
        width: 42px;
        height: 42px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-progress-indicators {
        bottom: 15px;
        gap: 6px;
    }
    
    .progress-line {
        width: 30px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .product-image-carousel-wrapper {
        margin: 20px 0;
    }
    
    .carousel-slides {
        padding-bottom: 75%; /* 小屏幕使用更方形的比例 */
    }
    
    .carousel-description {
        padding: 15px 10px;
    }
    
    .carousel-description p {
        font-size: 14px;
        width: 90%;
        line-height: 1.5;
    }
    
    .carousel-prev,
    .carousel-next {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .progress-line {
        width: 25px;
        height: 3px;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1200px) {
    .carousel-slides {
        padding-bottom: 45%; /* 大屏幕使用更宽的比例 */
    }
    
    .carousel-description p {
        font-size: 20px;
        width: 80%;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 55px;
        height: 55px;
        font-size: 30px;
    }
    
    .progress-line {
        width: 50px;
        height: 3px;
    }
}

/* 后台管理样式 */
.carousel-image-item {
    transition: opacity 0.3s ease;
}

.carousel-image-item:hover {
    opacity: 0.8;
}

.remove-carousel-image:hover {
    background-color: #c82333 !important;
}

/* 加载动画 */
.carousel-slide img {
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

/* 无障碍访问优化 */
.carousel-prev:focus,
.carousel-next:focus,
.progress-line:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* 减少动画效果（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    .carousel-slide {
        transition: opacity 0.3s ease;
        transform: none;
    }
    
    .carousel-slide.active {
        transform: none;
    }
    
    .progress-fill {
        animation: none;
        transition: width 0.3s ease;
    }
    
    .carousel-slide img {
        transition: none;
    }
    
    .carousel-slide:hover img {
        transform: none;
    }
}

/* 预加载优化 */
.carousel-slide img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ================== 第二个模块：产品详情展示样式 ================== */

.product-details-wrapper {
    margin: 50px 0;
}

.product-details-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* 模块标题样式 */
.details-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.details-main-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0;
    letter-spacing: -0.5px;
}

/* 项目容器 - 正常与反向布局 */
.details-item-container {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
    min-height: 200px; /* 确保容器有最小高度 */
}

.details-item-container:last-child {
    margin-bottom: 0;
}

/* 反向布局：第2、4、6...项目 */
.details-item-container.reverse {
    flex-direction: row-reverse;
}

/* 文字容器 - 固定35%宽度 */
.details-text-container {
    flex: 0 0 35%;
    padding: 20px;
    min-width: 0; /* 防止文字溢出 */
}

.details-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.details-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    word-wrap: break-word;
}

/* 媒体容器 - 固定65%宽度，支持图片/视频/YouTube */
.details-media-container {
    flex: 0 0 65%;
    position: relative;
    overflow: hidden;
    min-height: 200px; /* 确保有最小高度 */
}

.details-media-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
    min-height: 200px; /* 确保图片有最小高度 */
}

.details-media-container:hover img {
    transform: scale(1.02);
}

/* 视频样式 */
.details-media-container video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px;
    border-radius: 12px;
    pointer-events: none; /* 禁止用户交互 */
}

/* 隐藏所有视频控件 */
.details-media-container video::-webkit-media-controls {
    display: none !important;
}

.details-media-container video::-webkit-media-controls-panel {
    display: none !important;
}

.details-media-container video::-webkit-media-controls-play-button {
    display: none !important;
}

.details-media-container video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.details-media-container video::-webkit-media-controls-volume-slider {
    display: none !important;
}

.details-media-container video::-webkit-media-controls-timeline {
    display: none !important;
}

.details-media-container video::-webkit-media-controls-current-time-display {
    display: none !important;
}

/* Firefox 控件隐藏 */
.details-media-container video::-moz-media-controls {
    display: none !important;
}

/* 确保视频无控件属性 */
.details-media-container video {
    -webkit-media-controls: none;
    -moz-media-controls: none;
}


.details-youtube-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; 
    overflow: hidden;
}

.details-youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* 禁止用户交互 */
}

/* 进一步隐藏YouTube控件和信息 */
.details-youtube-wrapper {
    overflow: hidden;
    position: relative;
}

.details-youtube-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: transparent;
}

/* 隐藏可能出现的YouTube控件 */
.details-youtube-wrapper {
    overflow: hidden;
}

.details-youtube-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 兼容旧的图片容器类名 */
.details-image-container {
    flex: 0 0 65%;
    position: relative;
    overflow: hidden;
    min-height: 200px; 
}

.details-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
    min-height: 200px; 
}

.details-image-container:hover img {
    transform: scale(1.02);
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    .product-details-wrapper {
        margin: 30px 0;
    }
    
    .details-section-header {
        margin-bottom: 20px;
    }
    
    .details-main-title {
        font-size: 28px;
    }
    
    .details-item-container {
        flex-direction: column !important;
        gap: 0;
        margin-bottom: 40px;
    }
    
    /* 手机端媒体容器 - 全宽无间隙，始终在第一位 */
    .details-media-container,
    .details-image-container {
        flex: none;
        width: 100vw;
        margin-left: calc(-100vw / 2 + 50%);
        margin-right: calc(-100vw / 2 + 50%);
        border-radius: 0;
        order: 1; /* 媒体始终在第一位 */
    }
    
    /* 手机端文字容器 - 添加左右间距，始终在第二位 */
    .details-text-container {
        flex: none;
        width: 100%;
        padding: 20px 0 0 0;
        order: 2; /* 文字始终在第二位 */
    }
    
    .details-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .details-description {
        font-size: 15px;
    }
}

/* 在这里添加您的其他自定义 CSS */

/* Recently Viewed: 标题底部间距 */
.ormau-recently-viewed-products .ct-module-title,
.related.products.is-width-constrained.ormau-recently-viewed-products .ct-module-title {
    margin-bottom: 30px !important;
}

/* 隐藏WooCommerce变体价格显示（第二个价格） */
.woocommerce-variation-price,
.single_variation_wrap .woocommerce-variation-price,
.variations_form .woocommerce-variation-price,
.product-summary .woocommerce-variation-price,
.single-product-summary .woocommerce-variation-price,
.variation-price,
.woocommerce-variation-price-wrapper,
div.woocommerce-variation-price,
p.woocommerce-variation-price,
.woocommerce div.product .woocommerce-variation-price,
.single-product .woocommerce-variation-price,
.single_variation_wrap .price,
.variations .woocommerce-variation-price {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* 隐藏重置变体按钮 */
.reset_variations,
.reset-variations,
.woocommerce-reset-variations,
button.reset_variations,
.woocommerce button.reset_variations,
.single-product .reset_variations,
button[name="reset_variations"],
.woocommerce input[type="button"][name="reset_variations"],
.variations .reset_variations,
.variations_form .reset_variations {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* 确保主价格容器可见且正常显示 */
.woocommerce div.product .price,
.woocommerce div.product p.price,
.product .price,
.summary .price {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    height: auto !important;
    overflow: visible !important;
}

/* ================== 第三个模块：Shop the Eos Collection 样式 ================== */

/* Eos Collection modal 遮罩背景 */
.eos-modal {
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eos-modal.active {
    opacity: 1;
}

.eos-modal-content {
    position: fixed;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: white;
    padding: 40px;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.eos-modal.active .eos-modal-content {
    transform: translateX(0);
}

.eos-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10001;
}

.eos-modal-close:hover {
    color: #000;
    background-color: #f0f0f0;
}

.eos-modal h2 {
    margin: 0 0 30px 0;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
    padding-right: 50px;
}

/* 弹窗内产品样式 - 使用WooCommerce标准结构 */
.eos-modal .eos-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 20px;
}

/* 继承WooCommerce产品循环样式 */
.eos-modal .eos-products-grid .product {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.eos-modal .eos-products-grid .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.eos-modal .eos-products-grid .product a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.eos-modal .eos-products-grid .product .woocommerce-loop-product__link {
    display: block;
    height: 100%;
}

.eos-modal .eos-products-grid .product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.eos-modal .eos-products-grid .product:hover img {
    transform: scale(1.05);
}

.eos-modal .eos-products-grid .product h2,
.eos-modal .eos-products-grid .product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eos-modal .eos-products-grid .product .price {
    margin: 0 15px 15px 15px;
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.eos-modal .eos-products-grid .product .price .amount,
.eos-modal .eos-products-grid .product .price .woocommerce-Price-amount {
    color: #667eea;
}

.eos-modal .eos-products-grid .product .price del {
    opacity: 0.7;
    margin-right: 8px;
}

.eos-modal .eos-products-grid .product .price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .eos-modal-content {
        width: 60%;
        padding: 30px;
    }
    
    .eos-modal h2 {
        font-size: 28px;
    }
    
    .eos-modal .eos-products-grid {
        gap: 20px;
    }
    
    .eos-modal .eos-products-grid .product img {
        height: 180px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .eos-modal-content {
        width: 100%;
        padding: 20px;
    }
    
    .eos-modal .eos-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .eos-modal h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .eos-modal .eos-products-grid .product img {
        height: 250px;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    .eos-modal-content {
        padding: 15px;
    }
    
    .eos-modal h2 {
        font-size: 22px;
        padding-right: 40px;
    }
    
    .eos-modal .eos-products-grid .product h2,
    .eos-modal .eos-products-grid .product .woocommerce-loop-product__title {
        font-size: 14px;
    }
    
    .eos-modal .eos-products-grid .product .price {
        font-size: 16px;
    }
}

/* 防止弹窗时页面滚动 */
body.modal-open {
    overflow: hidden !important;
}

/* ================== Guaranteed 容器加载隐藏/显示动画 ================== */
/* 页面加载时隐藏 Guaranteed 容器，固定高度135px防止占位 */
.Guaranteed {
    opacity: 0 !important;
    visibility: hidden !important;
    height: 135px !important;
    overflow: hidden !important;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out !important;
}

/* 加载完成后显示 */
.Guaranteed.loaded {
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
}

/* Help Center 样式 */
.help-center {
    max-width: 360px;
    font-family: inherit;
}

/* 触发按钮：Help Center + 图标（移动端可见） */
.help-center-trigger {
    display: none; /* 默认 PC 不显示，移动端显示 */
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #111111;
    cursor: pointer;
}

.help-center-trigger-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.help-center-trigger-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: #375542;
}

.help-center-trigger-label {
    display: inline-block;
}

/* 面板（PC 默认是静态块） */
.help-center-panel {
    margin-top: 8px;
}

.help-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-menu > li {
    border-bottom: 1px solid #f2f2f2;
}

.help-menu > li:last-child {
    border-bottom: none;
}

.help-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    padding: 12px 0;
    font-size: 16px;
    color: #111111;
    transition: color 0.2s ease;
}

/* 右侧箭头（第二个 SVG） */
.help-menu > li > a::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 16px;
    margin-left: 8px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'><path fill='currentColor' d='M326.7079 958.51045l-63.278185-60.523445L651.328255 512.841158 257.924327 124.944664l66.024739-60.523445 445.672362 448.419939L326.7079 958.51045z'/></svg>");
}

/* 悬停 & 当前激活菜单颜色 */
.help-menu > li > a:hover,
.help-menu .current-menu-item > a,
.help-menu .current-menu-ancestor > a {
    color: #375542;
}

/* 顶部标题：所有端（h4 + 图标一行） */
.help-center-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.help-center-panel-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #111111;
}

.help-center-panel-title svg {
    width: 18px;
    height: 18px;
    fill: #375542;
}

/* 禁止滚动（移动/iPad 打开弹窗时） */
@media (max-width: 1024px) {
    html.help-center-locked,
    body.help-center-locked {
        overflow: hidden;
    }
}

/* 移动端 / iPad：左侧弹窗样式 */
@media (max-width: 1024px) {

    .help-center {
        max-width: none;
    }

    .help-center-trigger {
        display: inline-flex;
    }

    .help-center-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 80vw;
        max-width: 480px;
        height: 100vh;
        background: #ffffff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.15);
        transform: translateX(-100%);
        transition: transform 0.25s ease-out;
        z-index: 9999;
        padding: 16px 20px;
        display: flex;
        flex-direction: column;
    }

    .help-center-panel.is-open {
        transform: translateX(0);
    }

    .help-center-close {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .help-center-close svg {
        width: 18px;
        height: 18px;
        display: block;
        fill: #666666;
    }

    .help-center-menu-wrapper {
        flex: 1;
        overflow-y: auto;
    }
}

/* 移动端底部抽屉修复样式 */
@media (max-width: 1024px){
  .ct-panel-content[data-device="mobile"] .ct-panel-content-inner{
    display:flex;
    flex-direction:column;
    height:100%;
    overflow-y:auto;
    padding:0 20px;
    box-sizing:border-box;
    padding-bottom:calc(20px + var(--ct-mobile-bottom-height, 160px));
  }

  .ct-panel-content[data-device="mobile"] .ct-mobile-drawer-bottom {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-left: -20px;
    margin-right: -20px;
    background: #fff;
    box-sizing: border-box;
    z-index: 5;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
  }

  .ct-panel-content[data-device="mobile"] .ct-mobile-drawer-bottom .ct-header-account{
    width:100%;
  }
  .ct-panel-content[data-device="mobile"] .ct-mobile-drawer-bottom .ct-header-account .ct-account-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #000;
    color: #fff;
    padding: 12px 18px;
    box-sizing: border-box;
    text-decoration: none;
    justify-content: center;
    border-radius: 50px;
    align-content: center;
  }
  .ct-panel-content[data-device="mobile"] .ct-mobile-drawer-bottom .ct-header-account .ct-account-item .ct-icon{
    width:22px;
    height:22px;
  }
  .ct-panel-content[data-device="mobile"] .ct-mobile-drawer-bottom .ct-header-account .ct-account-item .ct-icon *{
    fill:currentColor !important;
    stroke:currentColor !important;
  }
  .ct-panel-content[data-device="mobile"] .ct-mobile-drawer-bottom .ct-header-account .ct-account-item .ct-label{
    color:#fff;
  }

  .ct-panel-content[data-device="mobile"] .ct-mobile-drawer-bottom .ct-header-socials{
    margin-top:14px;
    width:100%;
  }
}

.ct-social-box {
    display: flex;
    flex-direction: var(--items-direction, row);
    flex-wrap: var(--wrap, wrap);
    gap: var(--items-spacing, 15px);
    justify-content: center;
}

/* ============================================
   修复 Elementor Call to Action 前端显示问题
   ============================================ */

/* 确保 Elementor 容器正常显示 */
.elementor-widget-call-to-action {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: auto !important;
}

/* 修复 CTA 容器内容 */
.elementor-widget-call-to-action .elementor-cta {
    display: flex !important;
    visibility: visible !important;
    min-height: 200px !important;
    height: auto !important;
}

/* 确保 CTA 内容区域正常显示 */
.elementor-widget-call-to-action .elementor-cta__content {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2 !important;
}

/* 确保 CTA 背景图片正常显示 */
.elementor-widget-call-to-action .elementor-cta__bg,
.elementor-widget-call-to-action .elementor-cta__bg-overlay {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 100% !important;
    width: 100% !important;
}

/* 确保背景图片正常渲染 */
.elementor-widget-call-to-action .elementor-cta__bg-wrapper {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    z-index: 0 !important;
}

/* 修复图片容器 */
.elementor-widget-call-to-action img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 确保文字内容在图片上方显示 */
.elementor-widget-call-to-action .elementor-cta__title,
.elementor-widget-call-to-action .elementor-cta__description,
.elementor-widget-call-to-action .elementor-cta__button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2 !important;
    position: relative !important;
}

/* 修复 Ribbon 显示 */
.elementor-widget-call-to-action .elementor-cta__content-item {
    display: block !important;
    visibility: visible !important;
}

/* 确保容器有正确的定位上下文 */
.elementor-widget-call-to-action .elementor-cta {
    position: relative !important;
    overflow: hidden !important;
}

/* 隐藏变体色板 hover 时的 tooltip 名称弹窗 */
.ct-swatch .ct-tooltip,
.ct-variation-swatch .ct-tooltip,
[class*="ct-swatch"] > .ct-tooltip {
    display: none !important;
}
