/* ==========================================================================
   Xiuno X Landing Footer — Global Footer Styles
   此文件在所有页面全局加载，用 footer.footer 限定作用域避免污染其他页面样式。
   Footer 样式从 landing.css 拆出，因为 footer 在所有页面显示，而 landing.css
   只在 landing 页加载。
   ========================================================================== */

/* ==========================================================================
   Footer 用到的 CSS 变量（独立声明，不依赖 landing.css 的 :root）
   ========================================================================== */
:root {
    /* Brand Colors */
    --xiuno-primary: #2563eb;
    --xiuno-primary-light: #3b82f6;
    --xiuno-space-dark: #1a1a2e;

    /* Spacing (8px grid) */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-5: 3rem;     /* 48px */
    --space-6: 4rem;     /* 64px */

    /* Radius */
    --radius-sm: 8px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ==========================================================================
   Footer
   ========================================================================== */
footer.footer {
    background: var(--xiuno-space-dark);
    padding: var(--space-6) 0 var(--space-3);
    color: rgba(255, 255, 255, 0.7);
}

footer.footer .footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-5);
    margin-bottom: var(--space-4);
}

footer.footer .footer-brand .xiuno-logo-text {
    color: white;
}

footer.footer .footer-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: var(--space-2) 0;
    max-width: 300px;
    line-height: 1.7;
}

footer.footer .footer-social {
    display: flex;
    gap: 10px;
}

footer.footer .footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

footer.footer .footer-social-link:hover {
    background: var(--xiuno-primary);
    color: white;
    transform: translateY(-3px);
}

footer.footer .footer-social-link i {
    font-size: 1.2rem;
}

footer.footer .footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

footer.footer .footer-col h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-2);
}

footer.footer .footer-col a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 0;
    transition: var(--transition);
}

footer.footer .footer-col a:hover {
    color: var(--xiuno-primary-light);
    padding-left: 4px;
}

footer.footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    flex-wrap: wrap;
    gap: var(--space-1);
}

footer.footer .footer-icp {
    display: flex;
    align-items: center;
    gap: 8px;
}

footer.footer .footer-icp a:hover {
    color: rgba(255, 255, 255, 0.7);
}

footer.footer .footer-divider {
    color: rgba(255, 255, 255, 0.2);
}


/* ==========================================================================
   Responsive
   ========================================================================== */

/* Large devices (desktops, 992px and up) */
@media (max-width: 991.98px) {
    footer.footer .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 767.98px) {
    footer.footer .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    footer.footer .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Small devices (mobile, 576px and up) */
@media (max-width: 575.98px) {
    footer.footer .footer-links {
        grid-template-columns: 1fr;
    }
}
