footer {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}


/* 模拟页面内容区（仅用于展示，与页脚无关） */
.demo-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

/* ---------- 页脚主样式 ---------- */
/* 使用 CSS 变量，方便整体调色 —— 当前为清爽浅色模式 */
.site-footer {
    --footer-bg: #050b15;           /* 背景色：极浅灰 */
    --footer-text: #6b7280;          /* 主要文字颜色 */
    --footer-heading: #9ca3af;        /* 标题颜色 */
    --footer-link: #6b7280;           /* 链接默认色 */
    --footer-link-hover: #ffffffe6;      /* 链接悬停蓝色 */
    --footer-border: #e5e7eb;          /* 边框分割线 */
    --footer-accent: #6b7280;           /* 点缀色（左边框等） */
    --footer-slogan-border: #2563eb;
    --footer-copyright: #6b7280;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0 2rem;
    font-size: 0.95rem;
}

/* 如果想快速切换深色模式，只需覆盖变量（取消下面注释即可） */
/*
.site-footer.dark-mode {
    --footer-bg: #0f172a;
    --footer-text: #e2e8f0;
    --footer-heading: #f1f5f9;
    --footer-link: #cbd5e1;
    --footer-link-hover: #60a5fa;
    --footer-border: #334155;
    --footer-accent: #3b82f6;
    --footer-slogan-border: #3b82f6;
    --footer-copyright: #94a3b8;
}
*/

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 上半部：品牌 + 服务 + 联系人 (flex 三列) */
.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem 1.5rem;
    margin-bottom: 2.5rem;
}

/* 左侧品牌 */
.footer-brand {
    min-width: 240px;
}
.footer-brand img {
    width: 150px;
}


.footer-brand h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;      /* 纯色，无渐变，更干净 */
    margin-bottom: 1.5rem;
}

.footer-brand .slogan {
    color: var(--footer-text);
    font-size: .875rem;
    margin-top: 0.5rem;
    opacity: 0.9;
    line-height: 1.625rem;
}

/* 中部服务网格 */
.footer-services {
    flex: 3 1 500px;
    min-width: 300px;
}

.footer-services h3 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--footer-accent);        /* 用点缀色 */
    margin-bottom: 2.5rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
}

.service-col p {
    font-weight: 600;
    color: var(--footer-heading);
    margin-bottom: 1.5rem;
    font-size: .875rem;
    line-height: 1.25rem;
}

.service-col ul {
    list-style: none;
}

.service-col li {
    margin-bottom: 1.4rem;
}

.service-col a {
    color: var(--footer-link);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s;
    display: inline-block;
}

.service-col a:hover {
    color: var(--footer-link-hover);
    padding-left: 4px;
}

/* 右侧联系 */
.footer-contact {
    flex: 1 1 220px;
    min-width: 180px;
}

.footer-contact h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--footer-heading);
    margin-bottom: 1rem;
    margin-top: 3rem;
    letter-spacing: 0.3px;
}

.contact-item {
    margin-bottom: 0.75rem;
}

.contact-item a {
    color: var(--footer-accent);
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.contact-item a:hover {
    color: var(--footer-link-hover);
}

.contact-item .phone {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--footer-heading);
    letter-spacing: 0.5px;
}

/* 底部版权 */
.footer-bottom {
    padding-top: 2rem;
    margin-top: 5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    color: var(--footer-copyright);
    font-size: 0.7rem;
}

.copyright {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: var(--footer-link-hover);
}

/* 响应式 */
@media screen and (max-width: 900px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media screen and (max-width: 640px) {
    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .legal-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* 移除之前邮箱的按钮样式，使其更符合普通链接 */
.footer-contact .contact-item:first-of-type {
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}