/* ============================================================
   公共底部样式 — 用于首页、新闻页及其他需要统一底部的页面
   ============================================================ */

.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

/* 底部只剩品牌区：宽度收一收，免得简介一行拉得太长 */
.footer-brand {
    max-width: 880px;
    margin-bottom: 40px;
}
.footer-brand h3 {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
}
.footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 16px;
}
.footer-brand .footer-contact p {
    margin-bottom: 8px;
    font-size: 13px;
}
.footer-brand .footer-contact i {
    margin-right: 8px;
    color: var(--primary);
}

/* ========== 关于我们 / 联系我们 / 服务协议 ========== */
.footer-entry-links {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0 24px;
}
.footer-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    gap: 10px;
    padding: 14px 24px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.footer-entry i {
    font-size: 17px;
    color: var(--primary);
    transition: all 0.2s;
}
.footer-entry:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(245,124,0,0.1);
    transform: translateY(-2px);
}
.footer-entry:hover i {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ========== 回到顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .footer-brand { max-width: 100%; }
}

@media (max-width: 768px) {
    .footer { padding: 40px 0 24px; }
    .footer-brand { margin-bottom: 28px; }
    .footer-brand h3 { font-size: 19px; }
    .footer-brand p { margin-bottom: 12px; }

    /* 三个入口平分一行，字少放得下 */
    .footer-entry-links { gap: 8px; margin: 14px 0 18px; }
    .footer-entry {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        gap: 6px;
        padding: 8px 6px;
        font-size: 14px;
        border-radius: 10px;
    }
    .footer-entry i { font-size: 15px; }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
