/* =========================================
   全局变量定义
   ========================================= */
:root {
    --footer-bg: #020814;
    --footer-bg-gradient: linear-gradient(135deg, #020814 0%, #020814 100%);
    --text-primary: #ffffff;
    --text-secondary: #9999aa;
    --text-muted: #666677;
    --accent-color: #4a9eff;
    --border-color: rgba(255, 255, 255, 0.08);
    --social-bg: rgba(255, 255, 255, 0.05);
    --social-hover: rgba(74, 158, 255, 0.2);
}

/* =========================================
   Footer 正常流式布局 - 在页面最底部
   ========================================= */
.custom-footer-fixed {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    background: var(--footer-bg-gradient) !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
}

.footer-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 15px 0;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* =========================================
   左侧区域
   ========================================= */
.footer-left {
    flex: 0 0 280px;
    min-width: 280px;
}

.brand-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.brand-subtitle {
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 16px;
    font-weight: 500;
}

.brand-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

/* 社交媒体图标 */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--social-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--social-hover);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* =========================================
   中间导航区域
   ========================================= */
.footer-nav {
    flex: 0 0 140px;
    max-width: 160px;
}

.nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.nav-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--accent-color);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--accent-color);
}

/* =========================================
   右侧区域 - 仅显示图片
   ========================================= */
.footer-right {
    flex: 0 0 280px;
    min-width: 250px;
}

.footer-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 180px;
    object-fit: cover;
}

/* =========================================
   底部版权区域
   ========================================= */
.footer-bottom {
    width: 100%;
    margin: 20px 0 0;
    padding: 15px 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* =========================================
   手机端隐藏类
   ========================================= */
.hide-mobile {
    display: block;
}

/* 中屏：隐藏右侧图片 */
@media (max-width: 1200px) {
    .footer-right {
        display: none;
    }
}

/* 窄屏/手机：只显示左侧，隐藏其他 */
@media (max-width: 768px) {
    .footer-content {
        padding: 15px 15px 0;
        gap: 15px;
    }

    .footer-left {
        flex: 1;
        min-width: 100%;
        text-align: center;
        order: 1;
    }

    .brand-desc {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-nav {
        display: none !important;
    }

    .footer-right {
        display: none !important;
    }

    .footer-bottom {
        padding: 12px 15px;
    }

    .footer-bottom p {
        font-size: 11px;
    }
}

