/* PC端弹窗样式 */
.stilovero-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.stilovero-popup-content {
    background: white;
    padding: 40px 30px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 0 auto; /* 确保居中 */
}

/* PC端带图片的弹窗样式 */
.stilovero-popup-with-image {
    display: flex;
    max-width: 700px !important; /* 增加宽度以容纳图片 */
    width: 90%;
    padding: 0;
    overflow: hidden;
}

.stilovero-popup-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stilovero-popup-image-content {
    color: white;
    text-align: center;
    display: flex;
}

.stilovero-popup-image-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.stilovero-popup-image-text {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stilovero-popup-image-subtext {
    font-size: 16px;
    opacity: 0.9;
}

.stilovero-popup-form-side {
    flex: 1;
    padding: 0px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stilovero-popup-close {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #666;
    line-height: 1;
    z-index: 1;
}

.stilovero-popup-close:hover {
    color: #333;
}

.stilovero-popup-title {
    font-size: 24px;
    color: #BB5644;
    margin-bottom: 20px;
    line-height: 1.3;
}

.stilovero-popup-form {
    text-align: left;
}

.stilovero-form-group {
    margin-bottom: 20px;
}

/* 输入框样式修改 - 从下划线改为完整边框 */
.stilovero-form-group input {
    width: 100%;
    padding: 6px 15px;
    border: 1px solid #BB5644 !important; /* 确保有完整边框 */
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fafafa;
    appearance: none; /* 移除默认样式 */
    -webkit-appearance: none; /* Safari */
}

.stilovero-form-group input:focus {
    outline: none;
    border-color: #BB5644 !important;
    background: white;
    box-shadow: 0 0 0 3px rgba(187, 86, 68, 0.1);
}

.stilovero-form-group input::placeholder {
    color: #999;
}

.stilovero-submit-btn {
    background: #BB5644;
    color: white;
    border: none;
    padding: 14px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.stilovero-submit-btn:hover {
    background: #A54A3A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(187, 86, 68, 0.3);
}

.stilovero-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.stilovero-agreement {
    font-size: 12px;
    color: #666;
    margin-top: 15px;
    line-height: 1.4;
    text-align: center;
}

.stilovero-success {
    display: none;
}

.stilovero-success-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.stilovero-coupon-code {
    margin: 10px 0px 20px 0px;
    font-size: 28px;
    color: #000;
    letter-spacing: 2px;
}

.stilovero-shop-btn {
    background: #BB5644;
    color: white;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
    width: 80%;
}

.stilovero-shop-btn:hover {
    background: #BB5644;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration:none;
}

/* 移动端左侧小层样式 */
.stilovero-mobile-trigger {
    position: fixed;
    left: -90px; /* 调整位置，只露出一点点 */
    top: 50%;
    transform: translateY(-50%) rotate(-270deg);
    background: #BB5644;
    color: white;
    padding: 1px 15px 1px 0px;
    cursor: pointer;
    z-index: 9998;
    font-size: 16px;
    transition: left 0.3s ease;
    min-width: 110px;
    text-align: center;
    display: none; /* 默认隐藏 */
}

.stilovero-mobile-trigger.visible {
    left: -50px; /* 显示时位置 */
    display: block; /* 显示时设置为block */
    letter-spacing: 2px;
}

.stilovero-mobile-trigger:hover {
    background: #A54A3A;
}
.stilovero-trigger-container {
    display: flex;
    align-items: baseline;
}
/* 移动端触发按钮关闭按钮 */
.stilovero-trigger-close {
    font-size: 24px;
    cursor: pointer;
    text-align: center;
    color: white;
    padding:5px 15px;
}

.stilovero-mobile-trigger:hover .stilovero-trigger-close {
    display: block;
}

.stilovero-trigger-close:hover {
    background: rgba(0,0,0,0.5);
}

/* 移动端弹窗样式 */
.stilovero-mobile-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.stilovero-mobile-popup .stilovero-popup-content {
    max-width: 320px;
    margin: 20px;
    padding: 30px 20px;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
}

/* 确保所有弹窗都居中 */
.stilovero-popup-overlay,
.stilovero-mobile-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stilovero-popup-overlay {
        display: none !important;
    }
    
    .stilovero-popup-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    .stilovero-popup-image{
        display: none !important;
    }
}

@media (min-width: 769px) {
    .stilovero-mobile-trigger,
    .stilovero-mobile-popup {
        display: none !important;
    }
    
    .stilovero-popup-with-image {
        display: flex;
    }
}

/* 弹窗显示时的居中样式 */
.stilovero-popup-overlay[style*="display: flex"],
.stilovero-mobile-popup[style*="display: flex"] {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

