/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ============================================================
   一、询盘按钮区域（.eu-inquiry-buttons）
   ============================================================ */

.eu-inquiry-buttons {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 350px;
    font-family: Arial, sans-serif;
}

.inquiry-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: var(--btn-bg);
    color: #fff;
}

.inquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--btn-bg);
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 1rem;
    background: var(--btn-bg);
    color: #fff;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}

.inquiry-btn:hover .btn-icon {
    transform: scale(1.1);
}

.btn-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.btn-content {
    flex: 1;
    text-align: left;
}

.btn-title {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}

.btn-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.95);
}

/* 不同按钮颜色 */
.whatsapp-btn { --btn-bg: #25D366; }
.email-btn    { --btn-bg: #3182CE; }
.form-btn     { --btn-bg: #DD6B20; }

/* 特效小红点 + 呼吸圈 */
.inquiry-btn .btn-icon::before {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    background-color: #e53e3e;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
    z-index: 2;
}

.form-btn .btn-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--btn-bg);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: .6; }
    70%  { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(2); opacity: 0; }
}

/* ============================================================
   二、联系弹窗区域（.contact-popup）
   ============================================================ */

.contact-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.contact-popup {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
    border: 1px solid rgba(0,0,0,.05);
    animation: popupSlide 0.35s ease-out;
    font-family: 'Segoe UI', sans-serif;
}

@keyframes popupSlide {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.contact-popup h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: .5rem;
}

.contact-popup P{color: #1a202c;}

.close-popup {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.6rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.close-popup:hover {
    color: #333;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    background: #f7fafc;
    border-radius: 12px;
    padding: .75rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    border: 1px solid #e2e8f0;
}

.contact-item:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.08);
}

.icon-badge {
    position: relative;
    width: 42px;
    height: 42px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(255,255,255,.6);
}

.icon-badge svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.badge-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: red;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50%     { transform: scale(1.4); opacity: .6; }
}

.contact-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.contact-status {
    font-size: .8125rem;
    color: #718096;
}

/* ============================================================
   三、通用动画
   ============================================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


   /* 浮动按钮样式 - 完全匹配截图 */
    .wa__widget_container {
        position: fixed;
        right: 30px;
        bottom: 30px;
        z-index: 9999;
        font-family: Arial, sans-serif;
    }
    .wa__btn_popup {
        display: flex;
        align-items: center;
        cursor: pointer;
    }
    .wa__btn_popup_txt {
        background: #f5f5f5;
        color: #333;
        padding: 10px 15px;
        border-radius: 25px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        font-size: 14px;
        margin-right: 7px;
        white-space: nowrap;
    }
    .wa__btn_popup_txt span strong {
        font-weight: bold;
    }
    .wa__btn_popup_icon {
        width: 48px;
        height: 48px;
        background: #2db742;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    .wa__btn_popup_icon svg {
        width: 24px;
        height: 24px;
        fill: white;
    }
    
    /* 弹窗样式 - 匹配参考代码 */
    .wa__popup_chat_box {
        position: absolute;
        right: 30px;
        bottom: 102px;
        width: 300px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        display: none;
        overflow: hidden;
    }
    .wa__popup_heading {
        background: #2db742;
        padding: 15px;
        color: white;
    }
    .wa__popup_title {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 5px;
    }
    .wa__popup_intro {
        font-size: 12px;
        color: #d9ebc6;
    }
    .wa__popup_intro strong {
        font-weight: bold;
    }
    .wa__popup_content {
        padding: 15px;
    }
    .wa__popup_notice {
        font-size: 11px;
        color: #666;
        margin-bottom: 15px;
        text-align: center;
    }
    .wa__popup_content_item {
        margin-bottom: 10px;
    }
    .wa__stt {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #333;
        padding: 8px;
        border-radius: 4px;
        transition: background 0.2s;
    }
    .wa__stt:hover {
        background: #f5f5f5;
    }
    .wa__popup_avatar {
        margin-right: 10px;
    }
    .wa__member_name {
        font-size: 14px;
        font-weight: bold;
        COLOR: #000;
    }
    .wa__member_duty {
        font-size: 11px;
        color: #666;
    }
