/* ==========================================================================
   反馈弹窗样式文件 - Feedback Modal Styles
   专用于用户反馈提交成功弹窗的样式
   ========================================================================== */

/* 弹窗遮罩层 */
.feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: modalFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 弹窗主体 */
.feedback-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(44, 62, 80, 0.3),
        0 0 0 1px rgba(180, 239, 78, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 弹窗装饰边框 */
.feedback-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #B4EF4E 0%, #FF39D2 50%, #1A66FF 100%);
    border-radius: 20px 20px 0 0;
}

/* 弹窗头部 */
.feedback-modal-header {
    padding: 28px 32px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(180, 239, 78, 0.15);
    background: linear-gradient(135deg, rgba(248, 255, 254, 0.8) 0%, rgba(232, 248, 245, 0.6) 100%);
}

.feedback-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feedback-modal-header h3::before {
    content: '🎉';
    font-size: 28px;
    animation: celebrateRotate 2s ease-in-out infinite;
}

/* 关闭按钮 */
.feedback-modal-close {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%);
    border: 1px solid rgba(180, 239, 78, 0.2);
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 300;
}

.feedback-modal-close:hover {
    background: linear-gradient(135deg, #FF39D2 0%, #E625B8 100%);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 57, 210, 0.3);
    border-color: transparent;
}

/* 弹窗内容区域 */
.feedback-modal-body {
    padding: 32px;
    overflow-y: auto;
    max-height: calc(85vh - 200px);
}

/* 成功消息 */
.success-message {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.5;
    background: linear-gradient(135deg, #B4EF4E 0%, #9DE83F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
}

/* 反馈详情卡片 */
.feedback-details {
    background: linear-gradient(135deg, rgba(180, 239, 78, 0.08) 0%, rgba(232, 248, 245, 0.12) 100%);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(180, 239, 78, 0.15);
    position: relative;
    overflow: hidden;
}

.feedback-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #B4EF4E 0%, #9DE83F 100%);
    border-radius: 0 2px 2px 0;
}

.feedback-details p {
    margin: 12px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-details p strong {
    color: #1A66FF;
    font-weight: 700;
    min-width: 120px;
}

/* 温馨提示卡片 */
.feedback-tips {
    background: linear-gradient(135deg, rgba(26, 102, 255, 0.08) 0%, rgba(232, 240, 255, 0.12) 100%);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(26, 102, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.feedback-tips::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #1A66FF 0%, #0052E6 100%);
    border-radius: 0 2px 2px 0;
}

.feedback-tips p {
    margin: 0 0 16px 0;
    color: #1A66FF;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-tips ul {
    margin: 0;
    padding-left: 24px;
    color: #2c3e50;
}

.feedback-tips li {
    margin: 10px 0;
    line-height: 1.6;
    font-size: 15px;
    position: relative;
}

.feedback-tips li::marker {
    color: #1A66FF;
}

/* 弹窗底部 */
.feedback-modal-footer {
    padding: 20px 32px 32px;
    text-align: center;
    background: linear-gradient(135deg, rgba(248, 255, 254, 0.6) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-top: 1px solid rgba(180, 239, 78, 0.1);
}

/* 确定按钮 */
.feedback-btn-primary {
    background: linear-gradient(135deg, #B4EF4E 0%, #9DE83F 100%);
    color: #2c3e50;
    border: none;
    padding: 16px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 6px 20px rgba(180, 239, 78, 0.3);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

.feedback-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.feedback-btn-primary:hover {
    background: linear-gradient(135deg, #9DE83F 0%, #8BD636 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(180, 239, 78, 0.4);
}

.feedback-btn-primary:hover::before {
    left: 100%;
}

.feedback-btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s;
}

/* 动画定义 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes celebrateRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(180, 239, 78, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(180, 239, 78, 0.5);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .feedback-modal {
        width: 95%;
        margin: 20px;
        max-height: 90vh;
    }
    
    .feedback-modal-header,
    .feedback-modal-body,
    .feedback-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .feedback-modal-header h3 {
        font-size: 20px;
    }
    
    .success-message {
        font-size: 16px;
    }
    
    .feedback-details,
    .feedback-tips {
        padding: 20px;
    }
    
    .feedback-btn-primary {
        padding: 14px 32px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .feedback-modal {
        width: 98%;
        margin: 10px;
    }
    
    .feedback-modal-header {
        padding: 20px 16px 16px;
    }
    
    .feedback-modal-body {
        padding: 24px 16px;
    }
    
    .feedback-modal-footer {
        padding: 16px;
    }
    
    .feedback-modal-header h3 {
        font-size: 18px;
    }
    
    .feedback-btn-primary {
        width: 100%;
        padding: 16px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .feedback-modal {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: #ecf0f1;
    }
    
    .feedback-modal-header {
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(52, 73, 94, 0.6) 100%);
        border-bottom-color: rgba(180, 239, 78, 0.2);
    }
    
    .feedback-modal-header h3 {
        color: #ecf0f1;
    }
    
    .success-message {
        color: #ecf0f1;
    }
    
    .feedback-details,
    .feedback-tips {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(180, 239, 78, 0.2);
    }
    
    .feedback-details p,
    .feedback-tips li {
        color: #bdc3c7;
    }
    
    .feedback-modal-footer {
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.6) 0%, rgba(52, 73, 94, 0.8) 100%);
        border-top-color: rgba(180, 239, 78, 0.1);
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .feedback-modal {
        border: 2px solid #000;
    }
    
    .feedback-btn-primary {
        border: 2px solid #000;
    }
    
    .feedback-modal-close {
        border: 2px solid #000;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .feedback-modal-overlay,
    .feedback-modal,
    .feedback-btn-primary,
    .feedback-modal-close {
        animation: none;
        transition: none;
    }
    
    .feedback-btn-primary:hover {
        transform: none;
    }
    
    .feedback-modal-close:hover {
        transform: none;
    }
}