/* 阳光房Footer样式 */

.sunroom-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.sunroom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%2327ae60" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    opacity: 0.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Footer Top Section */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    /* margin-bottom: 50px; */
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand Section */
.footer-brand {
    max-width: 400px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.brand-logo i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #DC2626, #700303);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
}

.brand-logo:hover i {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 12px 35px rgba(39, 174, 96, 0.4);
}

.brand-logo h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ecf0f1;
    margin: 0;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    font-size: 1.1rem;
    color: #bdc3c7;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdc3c7;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    color: white;
}

.social-icon.facebook:hover {
    background: #3b5998;
    box-shadow: 0 8px 25px rgba(59, 89, 152, 0.4);
}

.social-icon.twitter:hover {
    background: #1da1f2;
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.social-icon.linkedin:hover {
    background: #0077b5;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.social-icon.youtube:hover {
    background: #ff0000;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 8px 25px rgba(188, 24, 136, 0.4);
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.link-group h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ecf0f1;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.link-group h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #DC2626, #4e0202);
    border-radius: 2px;
}

.link-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-group li {
    margin-bottom: 12px;
}

.link-group a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.link-group a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    color: #DC2626;
    font-weight: bold;
    transition: all 0.3s ease;
}

.link-group a:hover {
    color: #DC2626;
    padding-left: 20px;
    transform: translateX(5px);
}

.link-group a:hover::before {
    opacity: 1;
    left: 0;
}

/* Footer Bottom */
.footer-bottom {
    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 p {
    color: #95a5a6;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.footer-legal {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #DC2626;
    transition: width 0.3s ease;
}

.footer-legal a:hover {
    color: #DC2626;
}

.footer-legal a:hover::after {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .sunroom-footer {
        padding: 40px 0 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .footer-top {
        gap: 30px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .link-group h4 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal {
        justify-content: center;
        gap: 20px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .brand-logo {
        justify-content: center;
    }
    
    .footer-brand {
        text-align: center;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .brand-logo h3 {
        font-size: 1.5rem;
    }
    
    .footer-brand p {
        font-size: 1rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-legal a {
        font-size: 0.85rem;
    }
    
    .copyright p {
        font-size: 0.85rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-brand,
.footer-links {
    animation: fadeInUp 0.6s ease-out;
}

.link-group {
    animation: fadeInUp 0.6s ease-out;
}

.link-group:nth-child(1) { animation-delay: 0.1s; }
.link-group:nth-child(2) { animation-delay: 0.2s; }
.link-group:nth-child(3) { animation-delay: 0.3s; }
.link-group:nth-child(4) { animation-delay: 0.4s; }

/* 悬停效果增强 */
.footer-top:hover .brand-logo i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(39, 174, 96, 0.6);
    }
    100% {
        box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    }
}

/* 滚动效果 */
.sunroom-footer {
    background-attachment: fixed;
}

/* 打印样式 */
@media print {
    .sunroom-footer {
        background: white !important;
        color: black !important;
    }
    
    .social-icons,
    .footer-legal {
        display: none;
    }
    
    .footer-top {
        border-bottom: 1px solid #ccc;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .sunroom-footer {
        background: #000;
        color: #fff;
    }
    
    .link-group a {
        color: #fff;
    }
    
    .link-group a:hover {
        color: #0f0;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    .social-icon,
    .link-group a,
    .brand-logo i {
        transition: none;
    }
    
    .sunroom-footer::before {
        animation: none;
    }
}