/* ========================================================================
   footer.css — 606导航 底部系统样式
   包含：主Footer / 友链区 / 底部广告 / 返回顶部 / 暗黑适配 / 响应式
   ======================================================================== */

/* ================= 底部广告位 ================= */
.footer-ad-wrap {
    margin: 40px 0 0;
    padding: 0 0 0;
}
.footer-ad-wrap .container {
    max-width: 1200px;
}
.footer-ad-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transition: transform .3s, box-shadow .3s;
}
.footer-ad-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.footer-ad-link img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================= 页脚友情链接区 ================= */
.footer-links-wrap {
    background: linear-gradient(180deg, transparent 0%, rgba(248,249,255,.8) 100%);
    padding: 36px 0 28px;
    border-top: 1px solid rgba(0,0,0,.06);
}
.footer-links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.footer-links-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links-title i {
    color: #6a11cb;
}
.footer-links-more {
    font-size: 13px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .2s;
}
.footer-links-more:hover {
    color: #6a11cb;
}
.footer-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-link-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    color: #4a5568;
    transition: all .25s;
    white-space: nowrap;
}
.footer-link-item:hover {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(106,17,203,.3);
}
.footer-link-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
}
.footer-link-icon-default {
    font-size: 12px;
    color: #a0aec0;
}
.footer-link-item:hover .footer-link-icon-default {
    color: #fff;
}

/* ================= 主 Footer ================= */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: rgba(255,255,255,.8);
    padding: 56px 0 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}
/* 装饰光晕 */
.footer::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(106,17,203,.2) 0%, transparent 70%);
    pointer-events: none;
}
.footer::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37,117,252,.15) 0%, transparent 70%);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

/* ================= Footer 网格 ================= */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    border-radius: 1px;
}
.footer-col-title i {
    font-size: 14px;
    opacity: .9;
}

/* ================= 导航列表 ================= */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav li {
    margin-bottom: 10px;
}
.footer-nav a {
    color: rgba(255,255,255,.65);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .25s;
    padding: 2px 0;
}
.footer-nav a:hover {
    color: #fff;
    transform: translateX(4px);
}
.footer-nav a i {
    font-size: 10px;
    opacity: .5;
    transition: opacity .2s;
}
.footer-nav a:hover i {
    opacity: 1;
}

/* ================= 联系信息 ================= */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: rgba(255,255,255,.65);
}
.footer-contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: all .25s;
}
.footer-contact li:hover .footer-contact-icon {
    background: rgba(255,255,255,.15);
    transform: scale(1.1);
}

/* ================= 迷你统计 ================= */
.footer-stats-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.fsm-item {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
    transition: all .25s;
}
.fsm-item:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(106,17,203,.4);
}
.fsm-num {
    display: block;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.fsm-label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.5);
    margin-top: 2px;
}

/* ================= 二维码 ================= */
.footer-qrcode {
    text-align: center;
    background: rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 14px 10px 10px;
    border: 1px solid rgba(255,255,255,.08);
}
.footer-qrcode img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin: 0 auto 6px;
    display: block;
    background: #fff;
    padding: 4px;
}
.footer-qrcode span {
    font-size: 12px;
    color: rgba(255,255,255,.6);
}

/* ================= 分割线 ================= */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.12) 50%, transparent 100%);
    margin: 0 0 24px;
}

/* ================= 底部版权行 ================= */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 28px;
}
.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-icp {
    color: rgba(255,255,255,.55);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(255,255,255,.06);
    border-radius: 4px;
    transition: all .2s;
}
.footer-icp:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
}
.footer-icp i {
    font-size: 11px;
}
.footer-cr {
    font-size: 12px;
    color: rgba(255,255,255,.4);
}

.footer-bottom-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
}
.footer-bottom-nav a {
    color: rgba(255,255,255,.5);
    transition: color .2s;
    padding: 2px 4px;
}
.footer-bottom-nav a:hover {
    color: #fff;
}
.footer-bottom-nav .dot {
    color: rgba(255,255,255,.25);
}

/* ================= 返回顶部按钮 ================= */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(106,17,203,.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(106,17,203,.5);
}

/* ================= 暗黑模式适配 ================= */
[data-theme="dark"] .footer-links-wrap {
    background: linear-gradient(180deg, transparent 0%, rgba(26,32,44,.6) 100%);
    border-top-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .footer-links-title {
    color: #e2e8f0;
}
[data-theme="dark"] .footer-link-item {
    background: #2d3748;
    border-color: #4a5568;
    color: #cbd5e0;
}
[data-theme="dark"] .footer-link-item:hover {
    color: #fff;
}
[data-theme="dark"] .footer-ad-link {
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

/* ================= 响应式 ================= */

/* 平板 */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-copy {
        justify-content: center;
    }
    .footer-bottom-nav {
        justify-content: center;
    }
}

/* 手机 */
@media (max-width: 640px) {
    .footer {
        padding: 40px 0 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 28px;
    }
    .footer-col-title {
        font-size: 14px;
        margin-bottom: 14px;
    }
    .footer-contact li {
        font-size: 12px;
    }
    .footer-stats-mini {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    .fsm-item {
        padding: 8px 4px;
    }
    .fsm-num {
        font-size: 16px;
    }
    .fsm-label {
        font-size: 10px;
    }
    .footer-qrcode img {
        width: 64px;
        height: 64px;
    }
    .footer-copy {
        font-size: 12px;
        flex-direction: column;
        gap: 6px;
    }
    .footer-bottom-nav {
        font-size: 11px;
    }
    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    /* 友链区 */
    .footer-links-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .footer-link-item {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* 超小屏 */
@media (max-width: 380px) {
    .footer-stats-mini {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-copy {
        font-size: 11px;
    }
}

/* ================= 打印隐藏 ================= */
@media print {
    .footer,
    .back-to-top,
    .footer-ad-wrap {
        display: none !important;
    }
}
