/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

/* 容器样式 */
.container {
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 15px;
    text-align: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
}

.main-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.sub-title {
    font-size: 1.2em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    color: #43ffde;
}

/* 计算器样式 */
.calculator {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form-group {
    margin-bottom: 11px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

/* 抽成比例标签特殊样式 */
.form-group:has(#commissionType) label {
    color: #667eea;
    font-weight: 700;
    font-size: 15px;
    position: relative;
    padding-left: 12px;
}

.form-group:has(#commissionType) label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.form-group:has(#commissionType) label::after {
    content: '✨';
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.8;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #a0a4a8;
}

/* 抽成比例选择器 - 现代化设计 */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23667eea' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    border: 2px solid rgba(102, 126, 234, 0.3);
    font-weight: 600;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

select.form-control:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 255, 0.98) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

select.form-control:focus {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 255, 1) 100%);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3), 0 12px 30px rgba(102, 126, 234, 0.25);
    transform: translateY(-3px);
}

/* 抽成比例选择器特殊样式 - 与头部渐变保持一致 */
#commissionType {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-size: 22px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    font-weight: 600;
    color: #667eea;
    position: relative;
    overflow: hidden;
}

#commissionType::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#commissionType:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-color: rgba(102, 126, 234, 0.6);
    color: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

#commissionType:hover::before {
    opacity: 1;
}

#commissionType:focus {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: #667eea;
    color: #2d3748;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.4), 0 15px 35px rgba(102, 126, 234, 0.35);
    transform: translateY(-3px);
}

/* 下拉选项样式 - 现代化设计 */
select.form-control option {
    padding: 14px 16px;
    background: white;
    color: #2d3748;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.2s ease;
    line-height: 1.5;
}

select.form-control option:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: #667eea;
    font-weight: 600;
}

select.form-control option:checked {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #2d3748;
    font-weight: 700;
    border-left: 4px solid #667eea;
}

/* 抽成比例选项特殊样式 - 现代化设计 */
#commissionType option {
    font-size: 14px;
    padding: 16px 18px 16px 50px;
    background: white;
    color: #2d3748;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.5;
    position: relative;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: 18px center;
    background-size: 20px;
}

#commissionType option:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: #667eea;
    font-weight: 600;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

#commissionType option:checked {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    color: #2d3748;
    font-weight: 700;
    border-left: 4px solid #667eea;
    animation: optionSelect 0.3s ease;
}

/* 为每个选项类型添加图标和颜色标识 */
#commissionType option[value="默认"] {
    border-left: 4px solid #48bb78;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%2348bb78' viewBox='0 0 16 16'%3E%3Cpath d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z'/%3E%3C/svg%3E");
}

#commissionType option[value="转软件"] {
    border-left: 4px solid #ed8936;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23ed8936' viewBox='0 0 16 16'%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
}

#commissionType option[value="自购"] {
    border-left: 4px solid #e53e3e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23e53e3e' viewBox='0 0 16 16'%3E%3Cpath d='M11 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h6zM5 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H5z'/%3E%3Cpath d='M8 14a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/%3E%3C/svg%3E");
}

#commissionType option[value="会员单"] {
    border-left: 4px solid #9f7aea;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%239f7aea' viewBox='0 0 16 16'%3E%3Cpath d='M2 1a1 1 0 0 0-1 1v4.586a1 1 0 0 0 .293.707l7 7a1 1 0 0 0 1.414 0l4.586-4.586a1 1 0 0 0 0-1.414l-7-7A1 1 0 0 0 6.586 1H2zm4 3.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/%3E%3C/svg%3E");
}

#commissionType option[value="素材"] {
    border-left: 4px solid #38b2ac;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%2338b2ac' viewBox='0 0 16 16'%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zM7 6.5C7 7.328 6.552 8 6 8s-1-.672-1-1.5S5.448 5 6 5s1 .672 1 1.5zM4.285 9.567a.5.5 0 0 1 .683.183A3.498 3.498 0 0 0 8 11.5a3.498 3.498 0 0 0 3.032-1.75.5.5 0 1 1 .866.5A4.498 4.498 0 0 1 8 12.5a4.498 4.498 0 0 1-3.898-2.25.5.5 0 0 1 .183-.683zM10 8c-.552 0-1-.672-1-1.5S9.448 5 10 5s1 .672 1 1.5S10.552 8 10 8z'/%3E%3C/svg%3E");
}

/* 选项选择动画 */
@keyframes optionSelect {
    0% {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
        transform: scale(0.98);
    }
    50% {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
        transform: scale(1.02);
    }
    100% {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
        transform: scale(1);
    }
}

/* 下拉选项悬停时的微动画 */
#commissionType option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#commissionType option:hover::before {
    opacity: 0.3;
}

/* 下拉框展开时的整体样式优化 */
select.form-control:focus option {
    animation: fadeInOptions 0.4s ease;
}

@keyframes fadeInOptions {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 结果区域 */
.result-group {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.result-label {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
    font-size: 14px;
}

.result-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
}

/* 按钮样式 */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.button-group .btn {
    flex: 1;
}

/* 提示信息 */
.type-tips {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    border-left: 4px solid #667eea;
}

.type-tips strong {
    color: #667eea;
    font-weight: 600;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    margin: 0 auto;
    padding: 39px;
    border-radius: 20px;
    width: 90%;
    min-height: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.3s ease;
}

/* 绑定团队模态框内部间隔优化 */
#bindTeamModal .modal-content h3 {
    margin-bottom: 25px !important;
}

#bindTeamModal .modal-content p {
    margin-bottom: 30px !important;
}

#bindTeamModal .modal-content .form-group {
    margin-bottom: 25px;
}

#bindTeamModal .modal-content .form-group label {
    margin-bottom: 10px;
    font-size: 15px;
    color: #555;
}

#bindTeamModal .modal-content #validationStatus {
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

#bindTeamModal .modal-content #saveTeamInfo {
    margin-top: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #a0a4a8;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #667eea;
}

.close-paste-upload {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #a0a4a8;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-paste-upload:hover {
    color: #667eea;
}

.order-details {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 22px;
    line-height: 1.8;
    white-space: pre-wrap;
    border: 1px solid #e1e5e9;
}

/* 粘贴上传输入框样式 - 优化打字体验 */
#pasteUploadInput {
    background: #f8f9ff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    white-space: pre-wrap !important;
    border: 1px solid #667eea !important;
    width: 100% !important;
    resize: vertical !important;
    min-height: 500px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: #333 !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

#pasteUploadInput:focus {
    border: 1px solid #667eea !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1) !important;
}

#pasteUploadInput::placeholder {
    color: #a0a4a8 !important;
    font-style: italic !important;
}

.copy-button {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

/* 上传订单按钮 - 橙色样式 */
#uploadOrder {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%) !important;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

#uploadOrder:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3) !important;
}

@keyframes slideDown {
    from {
        top: -50px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

@keyframes slideUpOut {
    from {
        top: 20px;
        opacity: 1;
    }
    to {
        top: -50px;
        opacity: 0;
    }
}

/* 响应式设计 */
@media (min-width: 768px) {
    .container {
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 15px;
    }
    
    .header {
        padding: 15px 15px;
    }
    
    .main-title {
        font-size: 1.8em;
    }
    
    .calculator {
        padding: 13px;
    }
    
    .form-control {
        padding: 11px 11px;
        font-size: 12px;
    }
    
    .btn {
        padding: 14px;
        font-size: 14px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
    
    /* 移动设备上的按钮组样式 */
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .button-group .btn {
        width: 100%;
    }
}

/* 标签和勾选框在同一排的样式 */
.label-with-checkboxes {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.label-with-checkboxes label {
    margin-bottom: 0;
    font-weight: 600;
    color: #555;
    font-size: 14px;
    white-space: nowrap;
}

.dispatch-reception-checkboxes {
    display: flex;
    gap: 20px;
    align-items: center;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dispatch-label {
    color: #48bb78;
    background: rgba(72, 187, 120, 0.1);
}

.dispatch-label:hover {
    background: rgba(102, 126, 234, 0.2);
}

.reception-label {
    color: #48bb78;
    background: rgba(72, 187, 120, 0.1);
}

.reception-label:hover {
    background: rgba(72, 187, 120, 0.2);
}

/* 选中状态的样式 */
.checkbox-group input[type="checkbox"]:checked + .dispatch-label {
    background: rgba(102, 126, 234, 0.3);
}

.checkbox-group input[type="checkbox"]:checked + .reception-label {
    background: rgba(105, 113, 225, 0.3);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 全局上传状态消息样式 */
.upload-status {
    position: fixed;
    top: 121px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    display: none;
    transition: all 0.3s ease;
    min-width: 300px;
    box-sizing: border-box;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 消息类型样式 */
.upload-status.success {
    background: rgb(255, 255, 255);
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.upload-status.error {
    background: rgb(255, 255, 255);
    color: #e53e3e;
    border: 1px solid rgba(229, 62, 62, 0.3);
}

.upload-status.warning {
    background: rgb(255, 255, 255);
    color: #ed8936;
    border: 1px solid rgba(237, 137, 54, 0.3);
}

.upload-status.info {
    background: rgb(255, 255, 255);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* 订单详情模态框中的上传订单按钮 - 橙色样式 */
#uploadOrderFromModal {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%) !important;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

#uploadOrderFromModal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3) !important;
}

/* 自定义确认对话框样式 */
.custom-confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-confirm-dialog.show {
    opacity: 1;
    visibility: visible;
}

.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-confirm-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10001;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.custom-confirm-dialog.show .custom-confirm-content {
    transform: translateY(0);
}

.custom-confirm-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.custom-confirm-title {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
}

.custom-confirm-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.custom-confirm-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.custom-confirm-body {
    padding: 30px 20px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.custom-confirm-body p {
    margin: 0;
}

.custom-confirm-footer {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f9ff;
    border-top: 1px solid #e1e5e9;
}

.custom-confirm-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-confirm-cancel {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.custom-confirm-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
}

.custom-confirm-ok {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.custom-confirm-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.custom-confirm-btn:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .custom-confirm-content {
        width: 95%;
        max-width: 350px;
    }
    
    .custom-confirm-header {
        padding: 15px;
    }
    
    .custom-confirm-title {
        font-size: 1.3em;
    }
    
    .custom-confirm-body {
        padding: 20px 15px;
        font-size: 14px;
    }
    
    .custom-confirm-footer {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .custom-confirm-btn {
        padding: 12px;
        font-size: 14px;
    }
}
