﻿/* Footer variables */
:root {
    --footer-bg: #34343a; /* 深灰背景 */
    --footer-title: #ffffff; /* 标题白色 */
    --footer-text: #bfbfc4; /* 次要文字 */
    --footer-link: #cfcfd3; /* 链接默认 */
    --footer-link-hover: #ffffff; /* 链接 hover */
    --footer-radius: 6px;
    --container-max: 1200px;
}

/* 基础容器（如果你已有 .container，请按项目风格合并） */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Footer main */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    padding-top: 66px;
    margin-top: 80px;
    transition: margin-top .18s ease;
}
@media (max-width: 1200px) {
    .site-footer {
        margin-top: 60px;
    }
}
@media (max-width: 600px) {
    .site-footer {
        margin-top: 32px;
    }
}
/* 内部区域 */
    .site-footer__inner {
    padding-bottom: 24px;
}

/* 四列布局 */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    align-items: start;
}

/* 每列 */
.footer-col {
    min-width: 0;
}

/* 标题 */
.footer-title {
    color: var(--footer-title);
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 14px 0;
    line-height: 1;
}

/* 列表样式 */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-list li {
        margin: 8px 0;
    }

    .footer-list a {
        color: var(--footer-link);
        text-decoration: none;
        font-size: 16px;
        transition: color .15s;
    }

        .footer-list a:hover,
        .footer-list a:focus {
            color: var(--footer-link-hover);
            text-decoration: underline;
        }

/* 联系信息 */
.footer-contact {
    font-style: normal;
    font-size: 16px;
    line-height: 1.8;
    color: var(--footer-text);
}

/* 二维码列，右对齐显示 */
.footer-col--qr {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* 二维码图片 */
.footer-qr {
    width: 150px!important;
    height: 150px!important;
    object-fit: cover;
    border-radius: 4px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* 底部版权条 */
.site-footer__bar {
    border-top: 1px solid rgba(255,255,255,0.04);
    background: rgba(0,0,0,0.02);
    padding: 14px 0;
    margin-top: 18px;
}

.footer-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Copyright / 备案 */
.site-footer__bar .copyright {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
}

.site-footer__bar .records {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    white-space: nowrap;
}

/* 小屏响应式 */
@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-col--qr {
        align-items: flex-start;
    }
    /* QR 左对齐更自然 */
}

@media (max-width: 600px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-col--qr {
        align-items: center;
    }

    .footer-qr {
        margin-top: 6px;
        width: 120px;
        height: 120px;
    }

    .footer-bar__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .site-footer__bar .records {
        white-space: normal;
        font-size: 12px;
    }
}
