/*
 Theme Name:   Astra Child - B2B Lighting
 Theme URI:    https://andysom.com
 Description:  Astra Child Theme for B2B LED Lighting Business
 Author:       Andy
 Author URI:   https://andysom.com
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child
*/

/* ================================================
   Smart Slider Precise Fixes
   ================================================ */

/* 强制箭头显示 - Base64图像箭头 */
.n2-ss-slider .n2-ss-arrow {
    display: block !important;
    visibility: visible !important;
    opacity: 0.9 !important;
    z-index: 9999 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
}

/* 箭头具体位置 */
.n2-ss-slider .n2-ss-arrow-previous {
    left: 20px !important;
}
.n2-ss-slider .n2-ss-arrow-next {
    right: 20px !important;
}

/* 确保箭头容器不隐藏 */
.n2-ss-slider .n2-ss-slider-controls {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 箭头大小 */
.n2-ss-slider .n2-ss-arrow img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    display: block !important;
}

/* 移动端箭头 */
@media (max-width: 767px) {
    .n2-ss-slider .n2-ss-arrow {
        width: 26px !important;
        height: 26px !important;
    }
    .n2-ss-slider .n2-ss-arrow img {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        min-height: 16px !important;
    }
    .n2-ss-slider .n2-ss-arrow-previous {
        left: 10px !important;
    }
    .n2-ss-slider .n2-ss-arrow-next {
        right: 10px !important;
    }
}

/* 文字大小分级控制 */
@media (min-width: 1025px) {
    .n2-ss-slider .n2-ss-layer h1,
    .n2-ss-slider .n2-ss-layer h2 {
        font-size: 48px !important;
    }
    .n2-ss-slider .n2-ss-layer p,
    .n2-ss-slider .n2-ss-layer span {
        font-size: 18px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .n2-ss-slider .n2-ss-layer h1,
    .n2-ss-slider .n2-ss-layer h2 {
        font-size: 36px !important;
    }
    .n2-ss-slider .n2-ss-layer p,
    .n2-ss-slider .n2-ss-layer span {
        font-size: 16px !important;
    }
}

@media (max-width: 767px) {
    .n2-ss-slider .n2-ss-layer h1,
    .n2-ss-slider .n2-ss-layer h2 {
        font-size: 24px !important;
    }
    .n2-ss-slider .n2-ss-layer p,
    .n2-ss-slider .n2-ss-layer span {
        font-size: 14px !important;
    }
}

/* 防止横向滚动 */
html, body {
    overflow-x: hidden !important;
}

/* ================================================
   Depicter Slider Fixes
   ================================================ */

/* 强制删除Slider容器上下留白 */
.depicter-section,
.depicter-slides,
.depicter-revert,
div[class*=depicter] {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 修复可能的Section内边距 */
.elementor-element:has(.depicter-section),
.elementor-widget-shortcode:has(iframe[src*=depicter]),
.elementor-widget-shortcode:has(div[class*=depicter]) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ================================================
   Force White Background Site-wide
   ================================================ */

/* 全站背景白色 */
html,
body,
#page,
.site-content,
.content-area,
.ast-container,
.ast-primary-header-bar,
.main-header-bar,
.site-header,
footer,
.site-footer,
.ast-footer-copyright,
.widget,
section {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* 删除任何灰色背景 */
body.custom-background {
    background-color: #ffffff !important;
}

/* Astra容器背景 */
.ast-separate-container {
    background-color: #ffffff !important;
}
