﻿/* 打开弹框的按钮 */
.open-modal-btn {
padding: 12px 24px;
background: linear-gradient(135deg, #165DFF 0%, #0A2463 100%);
color: white;
border: none;
border-radius: 8px;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
display: flex;
align-items: center;
gap: 8px;
}

.open-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.4);
}

.open-modal-btn:active {
    transform: translateY(0);
}

/* 弹框遮罩层 */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 弹框显示状态 */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹框容器 */
.modal {
background-color: white;
padding: 30px;
border-radius: 16px;
width: 90%;
max-width: 550px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
transform: translateY(20px) scale(0.98);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
display:initial;
height:auto;
}

.modal-overlay.active .modal {
transform: translateY(0) scale(1);
}

/* 弹框顶部装饰条 */
.modal::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 5px;
background: linear-gradient(90deg, #165DFF 0%, #0A2463 100%);
}

.modal .input-wrapper {
    width:100%;
}
/* 关闭按钮 */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* 产品标题 */
.product-title-container {
margin: 0 0 30px 0;
padding-right: 30px; /* 给关闭按钮留出空间 */
}

.product-title {
font-size: 22px;
color: #1D2939;
font-weight: 600;
margin-bottom: 8px;
}

.product-subtitle {
font-size: 14px;
color: #667085;
line-height: 1.5;
}

/* 输入框容器 */
.input-group {
margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #344054;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.required-mark {
color: #F53F3F;
font-size: 16px;
}

.input-wrapper {
position: relative;
}

/* 输入框图标 */
.input-icon {
position: absolute;
left: 14px;
top: 14px;
color: #94A3B8;
transition: color 0.3s ease;
}

textarea + .input-icon {
top: 18px;
}

/* 输入框样式 */
.modal-input {
width: 100%;
/*padding: 14px 14px 14px 45px;*/
border: 1px solid #D0D5DD;
border-radius: 8px;
font-size: 15px;
color: #1D2939;
transition: all 0.3s ease;
background-color: #F9FAFB;
}

.modal-input::placeholder {
    color: #94A3B8;
}

.modal-input:focus {
    outline: none;
    border-color: #165DFF;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

    .modal-input:focus + .input-icon {
        color: #165DFF;
    }

/* 文本区域样式 */
.modal-textarea {
min-height: 120px;
resize: vertical;
line-height: 1.5;
padding-top: 16px;
}

/* 提交按钮 */
.modal-submit {
width: 100%;
padding: 14px;
background: linear-gradient(135deg, #165DFF 0%, #0A2463 100%);
color: white;
border: none;
border-radius: 8px;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
position: relative;
overflow: hidden;
}

.modal-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.modal-submit:hover::after {
    left: 100%;
}

.modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.modal-submit:active {
    transform: translateY(0);
}

/* 成功提示 */
.success-message {
position: fixed;
top: 20px;
right: 20px;
background-color: #039855;
color: white;
padding: 12px 20px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(3, 152, 85, 0.3);
transform: translateX(120%);
transition: transform 0.3s ease;
z-index: 1001;
display: flex;
align-items: center;
gap: 8px;
}

.success-message.show {
    transform: translateX(0);
}

/* 错误提示 */
.error-message {
color: #F53F3F;
font-size: 13px;
margin-top: 6px;
display: flex;
align-items: center;
gap: 4px;
height: 16px;
}
.fas {
    display:none !important;
}
.product-details-content .pro-details-quality .pro-details-cart
{
    margin: 0 10px 0 10px;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    padding: 0px;
}



/****页面滑到顶部************************/
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
#backToTopBtn:hover {
    background-color: #45a049;
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
}