/* ===========================================
   Modern Footer Styles
   现代化页脚样式
   =========================================== */

.modern-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #e74c3c, #f39c12, #2ecc71);
    background-size: 400% 100%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Footer Main Content */
.footer-main {
    padding: 60px 0 40px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

/* Footer Sections */
.footer-section {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }
.footer-section:nth-child(5) { animation-delay: 0.5s; }

/* Company Section */
.footer-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    height: 120px;
    width: auto;
    /* filter: brightness(0) invert(1); */
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(52, 152, 219, 0.5));
    transform: scale(1.05);
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #bdc3c7;
    margin-bottom: 25px;
    max-width: 280px;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: #3498db;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    border-color: #3498db;
}

.social-link i {
    font-size: 1rem;
}

/* Footer Titles */
.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 1px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #3498db;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Info */
.footer-contact-info {
    margin-bottom: 25px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-contact-item i {
    width: 18px;
    color: #3498db;
    font-size: 1rem;
}

.footer-contact-item a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #3498db;
}

/* Footer Contact Info Toggle Styles */
.footer-contact-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-contact-label {
    color: #bdc3c7;
    font-weight: 500;
}

.footer-contact-value {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-value:hover {
    color: #3498db;
}

/* Footer Contact Info Button Styles */
.footer-contact-item .contact-info-icon-btn {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #3498db;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 6px;
}

.footer-contact-item .contact-info-icon-btn:hover {
    background: rgba(52, 152, 219, 0.3);
    border-color: #3498db;
    color: #ecf0f1;
}

.footer-contact-item .contact-info-icon-btn.contact-info-active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

/* Newsletter */
.newsletter h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: #bdc3c7;
}

.newsletter-input:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.newsletter-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.newsletter-btn i {
    font-size: 1rem;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.85rem;
    color: #bdc3c7;
    margin: 0;
}

.copyright a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #2ecc71;
}

.payment-methods {
    display: flex;
    gap: 15px;
    align-items: center;
}

.payment-methods i {
    font-size: 1.8rem;
    color: #bdc3c7;
    transition: all 0.3s ease;
}

.payment-methods i:hover {
    color: #3498db;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 30px;
    }
    
    /* 平板端优化布局 */
    .footer-section:nth-child(1) {
        grid-column: 1 / 3;
    }
    
    .footer-section:nth-child(2) {
        grid-column: 3 / 5;
    }
    
    .footer-section:nth-child(3) {
        grid-column: 1 / 3;
    }
    
    .footer-section:nth-child(4) {
        grid-column: 3 / 5;
    }
    
    .footer-section:nth-child(5) {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-content {
        display: block;
        gap: 0;
    }
    
    /* 公司信息区域 - 突出显示 */
    .footer-section:nth-child(1) {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        padding: 25px 20px;
        margin-bottom: 25px;
        text-align: center;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* 链接区域 - 卡片式布局 */
    .footer-section:nth-child(2),
    .footer-section:nth-child(3),
    .footer-section:nth-child(4) {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 15px;
        border-left: 3px solid #3498db;
        transition: all 0.3s ease;
    }
    
    .footer-section:nth-child(2):hover,
    .footer-section:nth-child(3):hover,
    .footer-section:nth-child(4):hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(5px);
        border-left-color: #2ecc71;
    }
    
    /* 联系信息区域 - 特殊样式 */
    .footer-section:nth-child(5) {
        background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
        border-radius: 15px;
        padding: 25px 20px;
        margin-bottom: 20px;
        border: 1px solid rgba(52, 152, 219, 0.2);
    }
    
    /* 标题样式调整 */
    .footer-title {
        font-size: 1rem;
        margin-bottom: 15px;
        text-align: left;
    }
    
    .footer-title::after {
        left: 0;
        transform: none;
        width: 25px;
    }
    
    /* 公司区域标题居中 */
    .footer-section:nth-child(1) .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* 链接样式优化 */
    .footer-links {
        text-align: left;
    }
    
    .footer-links a {
        display: flex;
        align-items: center;
        padding: 8px 0;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .footer-links a:hover {
        background: rgba(52, 152, 219, 0.1);
        padding-left: 15px;
    }
}

.footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
}

.newsletter-form {
    max-width: 300px;
    margin: 10px auto 0;
}

@media (max-width: 480px) {
    .footer-main {
        padding: 40px 0 25px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .payment-methods i {
        font-size: 1.5rem;
    }
    
    .newsletter-input {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .newsletter-btn {
        width: 40px;
        height: 40px;
    }
    
    /* 小屏幕装饰线调整 */
    .footer-title::after {
        width: 25px;
    }
}