
/* ============================================================
   统一深色页脚（全站）
   ============================================================ */
.footer {
    position: relative;
    background:
        radial-gradient(70% 90% at 80% 30%, rgba(96, 64, 210, 0.38) 0%, rgba(96, 64, 210, 0) 60%),
        radial-gradient(50% 70% at 12% 85%, rgba(45, 125, 255, 0.28) 0%, rgba(45, 125, 255, 0) 62%),
        linear-gradient(135deg, #160f2e 0%, #0d1838 50%, #241224 100%);
    color: rgba(255, 255, 255, 0.65);
    margin-top: 64px;          /* 与页面正文的呼吸距离（各页末尾 section padding 不一） */
    padding: 52px 0 0;
    overflow: hidden;
    /* 用同色投影填充 margin 留白带，避免露出 body 白底造成与上方浅灰区块的色差断层 */
    box-shadow: 0 -64px 0 0 #ffffff;
}
/* 末尾区块为浅灰底（--bg-light）的页面：首页、产品中心页 */
.page-home .footer,
.page-tail-light .footer {
    box-shadow: 0 -64px 0 0 var(--bg-light, #f5f7fb);
}
/* 顶部品牌色光晕装饰 */
.footer::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -120px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(91, 127, 197, 0.18) 0%, rgba(91, 127, 197, 0) 70%);
    pointer-events: none;
}
.footer::after {
    content: "";
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(196, 45, 38, 0.12) 0%, rgba(196, 45, 38, 0) 70%);
    pointer-events: none;
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(105px, 0.6fr) minmax(105px, 0.6fr) minmax(215px, 1.2fr) minmax(125px, 0.82fr);
    gap: 32px;
    align-items: start;
    padding-bottom: 38px;
}

/* 品牌列 */
.footer-brand .footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    transition: var(--transition);
}
.footer-brand .footer-logo:hover {
    transform: translateY(-2px);
}
.footer-brand .footer-logo img {
    height: 40px;
    width: auto;
    display: block;
}
.footer-about {
    max-width: 400px;
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.62);
}
.footer-contact-line {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
}
.footer-contact-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    margin-top: 0;
    color: #ffffff;
}
.footer-contact-icon svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: currentColor;
}
.footer-contact-icon-website {
    background: linear-gradient(135deg, #64748b, #334155);
    box-shadow: 0 7px 16px rgba(100, 116, 139, 0.2);
}
.footer-contact-icon-phone {
    background: linear-gradient(135deg, #23a968, #15734a);
    box-shadow: 0 7px 16px rgba(35, 169, 104, 0.2);
}
.footer-contact-icon-location {
    background: linear-gradient(135deg, #2f7de1, #1856b5);
    box-shadow: 0 7px 16px rgba(47, 125, 225, 0.22);
}
.footer-contact-icon-mail {
    background: linear-gradient(135deg, #e4493f, #b72720);
    box-shadow: 0 7px 16px rgba(228, 73, 63, 0.2);
}
.footer-contact-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: pre-line;
    color: inherit;
    text-decoration: none;
}
a.footer-contact-text:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 导航列 */
.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 2px 0 24px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 15px;
}
.footer-links li:last-child {
    margin-bottom: 0;
}
.footer-links a {
    display: inline-block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-left: 0;
}
.footer-links a:hover {
    color: #ffffff;
    padding-left: 6px;
}

/* 二维码列 */
.footer-qrcode {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.footer-qrcode .qrcode-box {
    width: 118px;
    height: 118px;
    margin: 0 0 12px;
    padding: 7px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-qrcode .qrcode-box img {
    width: 104px;
    height: 104px;
    object-fit: contain;
    display: block;
}
.footer-qrcode .qrcode-hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* 底部版权条 */
.footer .footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
}
.footer .footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.42);
    text-align: center;
}
.footer .footer-bottom .footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
.footer .footer-bottom .footer-icp::before {
    content: "|";
    margin-right: 18px;
    color: rgba(255, 255, 255, 0.28);
}
.footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.42);
    text-decoration: none;
    transition: var(--transition);
}
.footer .footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式 */
@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 38px 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-contact-col {
        grid-column: 1 / -1;
    }
    .footer-qrcode {
        grid-column: 1 / -1;
    }
    .footer-qrcode .qrcode-box {
        margin-bottom: 10px;
    }
}
@media (max-width: 560px) {
    .footer {
        margin-top: 44px;
        padding-top: 36px;
        box-shadow: 0 -44px 0 0 #ffffff;
    }
    .page-home .footer,
    .page-tail-light .footer {
        box-shadow: 0 -44px 0 0 var(--bg-light, #f5f7fb);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 28px;
    }
    .footer-brand .footer-about {
        max-width: none;
    }
    .footer-bottom {
        padding: 14px 16px;
    }
}
