/* ============================================================
   Footer — 小米商城风格：浅色通透（白 / 极浅灰），近黑标题
   覆盖 common.css 中 footer 的深色底，全部令牌取自 common.css
   ============================================================ */

/* 覆盖全局 footer 的深色主题（common.css: footer{background:var(--ink)}） */
footer {
    background: var(--card);
    color: var(--text-2);
}
footer a { color: var(--text-2); }
footer a:hover { color: var(--brand); text-decoration: none; }

/* ---------- 服务承诺条 ---------- */
.footer-service {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.footer-service-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 22px;
}
.footer-service-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text);
}
.footer-service-item svg { color: var(--brand); flex-shrink: 0; }
.footer-service-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-strong);
}
.footer-service-text span {
    display: block;
    font-size: 12px;
    color: var(--text-2);
}

/* ---------- 主区 ---------- */
.footer-main {
    background: var(--card);
    padding: 44px 0 36px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
    gap: 32px;
}
.footer-col { min-width: 0; }

/* 品牌列 */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 14px;
}
.footer-slogan {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.footer-hotline { display: flex; flex-direction: column; gap: 4px; }
.footer-hotline-label { font-size: 12px; color: var(--text-3); }
.footer-hotline-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 1px;
}
.footer-hotline-time { font-size: 12px; color: var(--text-2); }

/* 链接列 */
.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 10px;
    transition: color var(--fast);
}
.footer-col a:hover { color: var(--brand); text-decoration: none; }

/* 订阅列 */
.footer-subscribe-tip {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 12px;
    line-height: 1.7;
}
.footer-subscribe-form {
    display: flex;
    gap: 8px;
}
.footer-subscribe-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    background: var(--card);
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color var(--fast), box-shadow var(--fast);
}
.footer-subscribe-input::placeholder { color: var(--text-3); }
.footer-subscribe-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-light);
}
.footer-subscribe-btn {
    height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-xs);
    background: var(--brand);
    color: var(--card);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--fast);
}
.footer-subscribe-btn:hover { background: var(--brand-hover); }
.footer-subscribe-btn:disabled { background: var(--text-3); cursor: not-allowed; }

/* ---------- 版权条 ---------- */
.footer-copyright {
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 18px 0;
}
.footer-copyright-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-3);
}
.footer-copyright p { margin: 0; }
.footer-copyright-copy { color: var(--text-3); }
.footer-copyright-note { color: var(--text-3); }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .footer-service-inner { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-subscribe-col { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .footer-service-inner { padding-top: 18px; padding-bottom: 18px; gap: 14px 12px; }
    .footer-service-item { justify-content: flex-start; }
    .footer-service-item svg { width: 24px; height: 24px; }
    .footer-service-text strong { font-size: 14px; }

    .footer-main { padding: 30px 0 24px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
    .footer-col h4 { margin-bottom: 10px; }
    /* 链接改为可点按的宽行：纵向点击区域 ≥ 40px */
    .footer-col a { padding: 9px 0; margin-bottom: 0; line-height: 1.7; }
    .footer-slogan { margin-bottom: 16px; }

    .footer-copyright { padding: 16px 0; }
    .footer-copyright-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 480px) {
    .footer-main { padding: 26px 0 20px; }
    .footer-inner { gap: 22px 16px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-subscribe-col { grid-column: 1 / -1; }
    .footer-hotline-num { font-size: 20px; }
    .footer-col h4 { font-size: 14px; }
    .footer-subscribe-form { flex-wrap: wrap; }
    .footer-subscribe-btn { width: 100%; }
    .footer-copyright-inner { align-items: center; text-align: center; }
}
