/*
 Theme Name:   GibbonBlack - Woodmart Child
 Description:  GibbonBlack 电商独立站子主题，基于 Woodmart
 Author:       GibbonBlack
 Author URI:   https://gibbonblack.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  gibbonblack
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   GibbonBlack Brand Styles
   ========================================================================== */

:root {
    --gb-primary: #000000;
    --gb-secondary: #333333;
    --gb-accent: #c4a35a;
    --gb-text: #222222;
    --gb-text-light: #666666;
    --gb-bg: #ffffff;
    --gb-bg-alt: #f8f8f8;
    --gb-border: #e0e0e0;
}

/* ==========================================================================
   H5 定制链接弹窗样式
   ========================================================================== */

.gb-customize-wrapper {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid var(--gb-accent);
    border-radius: 8px;
    background: var(--gb-bg-alt);
}

.gb-customize-wrapper h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gb-primary);
}

.gb-customize-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gb-primary);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.gb-customize-btn:hover {
    background: var(--gb-secondary);
    color: #fff !important;
}

.gb-customize-url-field {
    margin-top: 15px;
}

.gb-customize-url-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gb-text-light);
}

.gb-customize-url-field input[type="url"],
.gb-customize-url-field input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gb-border);
    border-radius: 4px;
    font-size: 14px;
}

/* H5 定制弹窗 */
.gb-customize-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.gb-customize-modal-overlay.active {
    display: flex;
}

.gb-customize-modal {
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gb-customize-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--gb-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gb-customize-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Affiliate 注册页面样式
   ========================================================================== */

.gb-affiliate-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.gb-affiliate-benefit-card {
    padding: 24px;
    background: var(--gb-bg-alt);
    border-radius: 8px;
    text-align: center;
}

.gb-affiliate-benefit-card h3 {
    font-size: 18px;
    margin: 12px 0 8px;
}

.gb-affiliate-benefit-card p {
    font-size: 14px;
    color: var(--gb-text-light);
    margin: 0;
}

/* ==========================================================================
   视频背景 Hero 区域
   ========================================================================== */

.gb-video-hero {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gb-video-hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.gb-video-hero .gb-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.gb-video-hero .gb-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px;
}

/* ==========================================================================
   移动端适配
   ========================================================================== */

@media (max-width: 768px) {
    .gb-customize-modal {
        width: 95%;
        height: 90vh;
        border-radius: 8px;
    }

    .gb-video-hero {
        min-height: 50vh;
    }

    .gb-affiliate-benefits {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   WoodMart Hardware Hero 修复
   ========================================================================== */

/*
 * Hardware 首屏 slider 的文字层默认带动画初始态，未被脚本激活时会保持透明。
 * 这里给首页首屏一个可见性兜底，避免只显示背景图不显示标题和按钮。
 */
.home .elementor-element-3c542c8 .wd-animation {
    opacity: 1;
}

.home .elementor-element-3c542c8 .wd-transform {
    transform: none;
}
