/**
 * 底部留言板样式文件
 * 基于xinli项目设计，与原项目留言板样式完全一致
 * 作者：AI助手
 * 创建时间：2025-09-13
 */

/* ============ 底部留言板主容器样式 ============ */
.footer-contact-section {
    font-family: 'Arial', sans-serif;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://zhgw.long-wen.cn/static/images/engineer-scaled-2048x1536.jpg');
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-contact-container {
    max-width: 1400px;
    width: 100%;
    padding: 0 32px;
    text-align: center;
}

/* ============ 标题区域样式 ============ */
.footer-contact-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: white;
}

.footer-contact-subtitle {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 32px;
}

/* ============ 表单容器样式 ============ */
.footer-contact-form-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact-form-row {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ 输入框样式 ============ */
.footer-contact-input {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 25px !important;
    padding: 12px 20px !important;
    color: white !important;
    font-size: 16px !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    width: 200px !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.footer-contact-textarea {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 25px !important;
    padding: 12px 20px !important;
    color: white !important;
    font-size: 16px !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    resize: none !important;
    height: 48px !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
    width: 250px !important;
    box-sizing: border-box !important;
}

/* 输入框焦点状态 */
.footer-contact-input:focus,
.footer-contact-textarea:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 占位符样式 */
.footer-contact-input::placeholder,
.footer-contact-textarea::placeholder {
    color: white !important;
    opacity: 1 !important;
}

/* ============ 提交按钮样式 ============ */
.footer-contact-submit-btn {
    background: #faac4c !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 60px !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    margin-left: 80px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(250, 172, 76, 0.3) !important;
    width: auto !important;
    height: auto !important;
}

.footer-contact-submit-btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 84, 0, 0.4);
}

.footer-contact-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(211, 84, 0, 0.3);
}

/* ============ 成功提示框样式 ============ */
.footer-success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-success-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    color: white;
    transform: scale(0.8);
    animation: successPopIn 0.4s ease forwards;
}

.footer-success-icon {
    font-size: 60px;
    color: #4CAF50;
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.footer-success-content h3 {
    font-size: 24px;
    margin: 20px 0 15px;
    font-weight: 600;
    color: white;
}

.footer-success-content p {
    font-size: 16px;
    line-height: 1.6;
    margin: 15px 0 25px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-close-success-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-close-success-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ============ 响应式设计 ============ */

/* 平板端适配 (最大768px) */
@media (max-width: 768px) {
    .footer-contact-section {
        min-height: 400px;
        padding: 30px 0;
    }
    
    .footer-contact-title {
        font-size: 1.8rem;
    }
    
    .footer-contact-subtitle {
        font-size: 1rem;
    }
    
    .footer-contact-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-contact-input,
    .footer-contact-textarea {
        width: 100% !important;
        max-width: 300px;
    }
    
    .footer-contact-submit-btn {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 300px !important;
    }
}

/* 移动端适配 (最大480px) */
@media (max-width: 480px) {
    .footer-contact-title {
        font-size: 1.5rem;
    }
    
    .footer-contact-subtitle {
        font-size: 0.9rem;
    }
    
    .footer-contact-input,
    .footer-contact-textarea {
        max-width: 280px;
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .footer-contact-submit-btn {
        padding: 10px 40px !important;
        font-size: 14px !important;
        max-width: 280px !important;
    }
}

/* ============ 动画效果 ============ */
@keyframes successPopIn {
    0% {
        transform: scale(0.5) translateY(-50px);
        opacity: 0;
    }
    70% {
        transform: scale(1.05) translateY(0);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}
