/* ==========================================================================
   Modern Footer Theme - 2024 Redesign
   Blue & White Glassmorphism Edition
   ========================================================================== */

/* --- Variables --- */
:root {
    --footer-bg: #ffffff;
    --footer-text: #1d2129;
    --footer-text-light: #86909c;
    --footer-border: #f2f3f5;
    --primary-blue: #006eff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* --- Footer Wrapper --- */
.footer-modern-wrapper {
    /*margin-top: 60px;*/
    width: 100%;
    position: relative;
    background: linear-gradient(180deg, rgba(240, 247, 255, 0.5) 0%, #ffffff 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--footer-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 0.875rem; /* 14px */
    line-height: 1.6;
}

/* --- CTA Banner --- */
.footer-cta {
    width: 100%;
    padding: 60px 0;
    background: url('/static/images/footer-bg.png') no-repeat center center; /* Optional background image */
    background-size: cover;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Glass effect for CTA */
.footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.cta-desc {
    font-size: 16px;
    color: var(--text-sub);
    max-width: 600px;
    display: block; /* Show description again */
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: linear-gradient(135deg, #006eff 0%, #0056cc 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 110, 255, 0.2);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 110, 255, 0.3);
}

/* --- Service Advantages --- */
.footer-advantages-wrapper {
    background: transparent;
    border-bottom: 1px solid var(--footer-border);
}

.footer-advantages {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    justify-content: space-between; /* Evenly spaced */
    align-items: center;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    background: rgba(0, 110, 255, 0.05);
    opacity: 1;
}

.advantage-icon {
    font-size: 36px;
    color: var(--primary-blue);
    opacity: 1;
}

.advantage-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

/* --- Main Footer Grid --- */
.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px;
    display: flex; /* Changed from grid to flex for specific column sizing */
    justify-content: space-between;
    gap: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1; /* Equal width by default */
    align-items: flex-start; /* Ensure left alignment */
}

/* Make Support column (last one) look like tiles */
.footer-column.support-col {
    flex: 1.2; /* slightly wider if needed */
    align-items: stretch; /* Stretch tiles to fill width */
}

.column-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem; /* 16px */
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    position: relative;
    padding-left: 12px;
    align-self: flex-start;
}

.column-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    background: #1f6feb;
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.footer-link {
    font-size: 0.875rem; /* 14px */
    color: #4B5563;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.6;
}

.footer-link:hover {
    color: #1f6feb;
    text-decoration: underline;
    transform: translateX(4px);
}

.footer-link i {
    font-size: 12px;
    opacity: 0.6;
}

/* --- Contact Column Special Styling (Tiles) --- */
.contact-item-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: #4B5563;
}

.contact-item:hover {
    background: #fff;
    border-color: #D1D5DB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f6feb;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-label {
    display: none;
}

.contact-value {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: #4B5563;
    word-break: break-all;
}

/* --- Friend Links --- */

.friend-links-box {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
    border-top: 1px solid var(--footer-border);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.friend-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.friend-link {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.friend-link:hover {
    color: var(--primary-blue);
}

/* --- Copyright --- */
.footer-copyright {
    background: #f7f8fa; /* Light background */
    padding: 24px 0;
    border-top: 1px solid var(--footer-border);
    text-align: center;
}

.copyright-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.copyright-text a {
    color: var(--text-sub);
    text-decoration: none;
    margin: 0 4px;
}

.copyright-text a:hover {
    color: var(--primary-blue);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-advantages {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .footer-main {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-modern-wrapper {
        font-size: 0.9375rem; /* 15px */
    }
    .footer-modern-wrapper .column-title {
        font-size: 1.0625rem; /* 17px */
    }
    .footer-advantages {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .footer-main {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
    .cta-title {
        font-size: 24px;
    }
    .footer-column.support-col {
        grid-column: span 2;
    }
}
