/**
 * 自定义页脚样式
 * 
 * @package Astra
 * @since 1.0.0
 */

/* 页脚主容器 */
.custom-footer {
    /* background-color: #2c2c2c; */
    color: #000000;
    padding: 0 0 0 0;
    font-family: Arial, sans-serif;
}

.custom-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* 左侧联系信息区域 */
.footer-contact-section {
    flex: 1;
    max-width: 300px;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
}

.contact-item strong {
    color: #000000;
    font-weight: 600;
}

/* 支付方式图标 */
.payment-methods-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.payment-icon svg {
    width: 40px;
    height: 26px;
    display: block;
}

/* 支付方式特定样式 */
.payment-icon.visa:hover {
    box-shadow: 0 4px 8px rgba(26, 31, 113, 0.3);
}

.payment-icon.mastercard:hover {
    box-shadow: 0 4px 8px rgba(235, 0, 27, 0.3);
}

.payment-icon.paypal:hover {
    box-shadow: 0 4px 8px rgba(0, 48, 135, 0.3);
}

.payment-icon.applepay:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* WhatsApp链接 */
.whatsapp-link {
    margin-top: 20px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.whatsapp-btn:hover {
    color: #25d366;
}

.whatsapp-btn i {
    font-size: 18px;
}

/* 中间导航区域 */
.footer-navigation-section {
    flex: 1;
    display: flex;
    gap: 60px;
    max-width: 400px;
}

.nav-column {
    flex: 1;
}

.footer-title {
    color: #000000;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-menu li {
    margin-bottom: 12px;
}

.footer-nav-menu a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav-menu a:hover {
    color: #d4af37;
}

/* 右侧邮件订阅区域 */
.footer-newsletter-section {
    flex: 1;
    max-width: 350px;
}

.newsletter-description {
    color: #000000;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 邮件订阅表单 */
.newsletter-form {
    width: 100%;
}

.form-group {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
}

.email-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    border-radius: 4px 0 0 4px;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.email-input:focus {
    box-shadow: 0 0 0 2px #d4af37;
}

.email-input::placeholder {
    color: #999999;
    font-style: italic;
}

.submit-btn {
    padding: 12px 25px;
    background-color: #d4af37;
    color: #000000;
    border: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
    min-width: 100px;
}

.submit-btn:hover {
    background-color: #b8941f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 表单消息 */
.form-message {
    font-size: 13px;
    padding: 8px 0;
    min-height: 20px;
}

.form-message.success {
    color: #4caf50;
}

.form-message.error {
    color: #f44336;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .custom-footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-contact-section,
    .footer-navigation-section,
    .footer-newsletter-section {
        max-width: 100%;
        width: 100%;
    }
    
    .footer-navigation-section {
        flex-direction: column;
        gap: 30px;
    }
    
    .payment-methods-icons {
        justify-content: center;
    }
    
    .form-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .email-input,
    .submit-btn {
        border-radius: 4px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .custom-footer {
        padding: 30px 0;
    }
    
    .custom-footer-container {
        padding: 0 15px;
        gap: 25px;
    }
    
    .footer-title {
        font-size: 16px;
    }
    
    .contact-item {
        font-size: 13px;
    }
    
    .payment-icon svg {
        width: 35px;
        height: 23px;
    }
}

/* 加载动画 */
.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #000000;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Font Awesome图标确保显示 */
.fab {
    font-family: "Font Awesome 5 Brands", "Font Awesome 6 Brands";
}

/* 简单的淡入动画类 */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0.8;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 确保页脚内容始终可见 */
.custom-footer .footer-contact-section,
.custom-footer .footer-navigation-section,
.custom-footer .footer-newsletter-section {
    opacity: 1 !important;
    visibility: visible !important;
}
