@charset "UTF-8";

/* =========================================
   1. Global Layout & Core Styles
   ========================================= */
body {
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
}
.page-content { flex: 1; }

/* =========================================
   2. Footer Container & Backgrounds
   ========================================= */
.cool-footer {
    flex-shrink: 0; 
    position: relative; 
    background-color: #050509;
    color: #ffffff; 
    padding-top: 6rem; 
    padding-bottom: 3rem;
    overflow: hidden; 
    font-size: 0.95rem;
}

/* Grid Background Effect */
.cool-footer::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px; 
    z-index: 1; 
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

/* Glow Animation */
.footer-glow {
    position: absolute; 
    top: -100px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 1000px; 
    height: 700px;
    background: radial-gradient(circle, rgba(0, 158, 247, 0.6) 0%, rgba(0, 158, 247, 0.2) 40%, rgba(0, 0, 0, 0) 70%);
    z-index: 0; 
    pointer-events: none; 
    filter: blur(60px); 
    mix-blend-mode: screen;
    animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.container-xxl { position: relative; z-index: 2; }

/* =========================================
   3. Components & Typography
   ========================================= */
/* CTA Section */
.footer-cta-title {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 2px;
    background: linear-gradient(to bottom, #ffffff 30%, #a1a5b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.footer-cta-desc { 
    color: #eeeeee; 
    font-size: 1.2rem; 
    max-width: 1000px; 
    margin: 0 auto 2.5rem; 
}

/* Unified CTA Buttons */
.footer-cta-btn {
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-footer-primary {
    background-color: #009EF7;
    color: #ffffff;
}

.btn-footer-secondary {
    background-color: #ffffff;
    color: #050509; /* Dark text on white */
}

/* Hover Effect: Color Darkens */
.footer-cta-btn:hover {
    transform: translateY(-3px);
    filter: brightness(0.9); /* Darkens both background and text */
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
/* Ensure text color remains consistent on hover for primary/secondary */
.btn-footer-primary:hover { color: #ffffff; }
.btn-footer-secondary:hover { color: #050509; }

/* Link Lists */
.footer-heading { 
    color: #fff; 
    font-weight: 700; 
    margin-bottom: 1.2rem; 
    font-size: 1rem; 
}

.cool-links { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.cool-links li { margin-bottom: 8px; }

.cool-link {
    color: #7E8299; 
    text-decoration: none; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex; 
    align-items: center; 
    position: relative;
}

.cool-link:hover { 
    color: #009EF7; 
    transform: translateX(5px); 
    text-shadow: 0 0 15px rgba(0, 158, 247, 0.8); 
}

/* Logo & Description */
.footer-logo {
    height: 40px; 
    margin-bottom: 1rem;
}

.footer-company-desc {
    line-height: 1.6; 
    font-size: 0.9rem;
}

/* =========================================
   4. Bottom Bar & Status
   ========================================= */
.footer-bottom-bar {
    margin-top: 1.5rem; 
    padding-top: 2rem; 
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

/* System Status Indicator */
.system-status {
    display: inline-flex; 
    align-items: center; 
    padding: 8px 16px; 
    border-radius: 30px;
    background: rgba(80, 205, 137, 0.15); 
    border: 1px solid rgba(80, 205, 137, 0.3);
    color: #50cd89; 
    font-size: 0.9rem; 
    font-weight: 600; 
    box-shadow: 0 0 15px rgba(80, 205, 137, 0.1);
}

.status-dot {
    width: 10px; 
    height: 10px; 
    background-color: #50cd89; 
    border-radius: 50%; 
    margin-right: 10px;
    box-shadow: 0 0 10px rgba(80, 205, 137, 0.8); 
    animation: pulse-green-turbo 1.5s infinite;
}

@keyframes pulse-green-turbo {
    0% { box-shadow: 0 0 0 0 rgba(80, 205, 137, 0.8); }
    70% { box-shadow: 0 0 0 8px rgba(80, 205, 137, 0); }
    100% { box-shadow: 0 0 0 0 rgba(80, 205, 137, 0); }
}

/* Social Icons */
.social-glass {
    width: 42px; 
    height: 42px; 
    border-radius: 12px; 
    background: rgba(255,255,255,0.05);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff;
    text-decoration: none; 
    transition: all 0.3s; 
    border: 1px solid rgba(255,255,255,0.1); 
    backdrop-filter: blur(4px);
    cursor: pointer; 
    padding: 0;
}

.footer-copyright {
    color: #6c757d !important; 
    font-size: 0.8rem; 
    line-height: 2rem;
}

/* =========================================
   5. Modals
   ========================================= */
.modal-content {
    background-color: #1e1e2d; 
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.1); 
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}
.modal-header { border-bottom: 1px solid rgba(255,255,255,0.05); }
.modal-footer { border-top: 1px solid rgba(255,255,255,0.05); }
.btn-close { filter: invert(1); }

/* =========================================
   6. Responsive Design (Mobile)
   ========================================= */
.desktop-columns {
    border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .cool-footer {
        padding-top: 4rem; 
        text-align: center;
        padding-left: 2rem; 
        padding-right: 2rem; 
    }
    
    .desktop-columns { display: none; }
    .mobile-menu-area { display: block; margin-top: 5rem; }
    .mobile-brand-box { margin-bottom: 4rem !important; }

    .footer-bottom-bar { 
        flex-direction: column; 
        gap: 20px; 
        margin-top: 2rem; 
        border-top: none; 
    }
    
    .system-status { margin-bottom: 1.5rem; }

    .footer-cta-title { font-size: 1.8rem; line-height: 1.2; }
    .footer-cta-desc { 
        color: #b5b5c3; 
        font-size: 0.8rem; 
        max-width: 600px; 
        margin: 0 auto 2.5rem; 
    }
    
    .mobile-grid-item { 
        text-align: center !important; 
        margin-bottom: 1.5rem; 
    }

    .cta-buttons {
        flex-direction: row !important;
        gap: 12px !important;
    }
    
    .cta-buttons .footer-cta-btn {
        width: auto !important;
        flex: 1;
        padding-left: 5px !important;
        padding-right: 5px !important;
        white-space: nowrap;
        font-size: 0.95rem;
    }

    /* 移动端链接居中 */
    .cool-link {
        justify-content: center;
        width: 100%;
    }
    
    .mobile-brand-logo {
        height: 35px;
    }
}

@media (min-width: 769px) { 
    .mobile-menu-area { display: none; } 
}
