/* ============================================================
   Ice Card 全站四栏页脚（v7.8.0 批次⑤）
   自包含：不依赖 Astra 样式；启用时隐藏 Astra 自带版权条。
   断点跟 Astra：≤921px 手机堆叠 + 避让 mobileshell 固定 Tab 栏。
   ============================================================ */

.icecard-footer {
    background: #0f172a;
    color: #cbd5e1;
    width: 100%;
    margin-top: 48px;
    font-size: 14px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

.icecard-footer .icf-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 48px 24px 24px;
}

.icecard-footer .icf-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 40px;
}

/* ---- 品牌列 ---- */
.icecard-footer .icf-brand {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1.2;
}

.icecard-footer .icf-tagline {
    margin: 12px 0 20px;
    color: #94a3b8;
    max-width: 320px;
}

/* Contact Support 整行胶囊钮：复用 .icm-support-btn 的 JS 绑定，覆盖其圆形样式 */
.icecard-footer button.icm-support-btn.icf-contact-btn {
    width: auto;
    height: auto;
    border: none;
    border-radius: 999px;
    padding: 11px 22px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(249, 115, 22, .28);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.icecard-footer button.icm-support-btn.icf-contact-btn:hover,
.icecard-footer button.icm-support-btn.icf-contact-btn:focus,
.icecard-footer button.icm-support-btn.icf-contact-btn:active {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border: none;
    color: #fff;
    box-shadow: 0 8px 20px rgba(249, 115, 22, .36);
    filter: brightness(1.03);
    outline: none;
}
.icecard-footer button.icm-support-btn.icf-contact-btn:active {
    transform: scale(.97);
}
.icecard-footer .icf-contact-btn svg {
    width: 18px !important;
    height: 18px !important;
}

/* ---- 链接列 ---- */
.icecard-footer h4.icf-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-align: left; /* 压主题 h4 居中默认，标题与下方链接左对齐（v7.8.2） */
    margin: 2px 0 14px;
}

.icecard-footer .icf-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.icecard-footer .icf-links li {
    margin: 0 0 10px;
}

.icecard-footer .icf-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color .12s ease;
}

.icecard-footer .icf-links a:hover {
    color: #38bdf8;
}

/* ---- Follow Us 社交图标（单色 currentColor，双控后输出） ---- */
.icecard-footer .icf-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.icecard-footer .icf-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(203, 213, 225, .28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: color .12s ease, border-color .12s ease, background .12s ease;
}

.icecard-footer .icf-socials a:hover {
    color: #fff;
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, .16);
}

.icecard-footer .icf-socials svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ---- 底部版权条 ---- */
.icecard-footer .icf-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(203, 213, 225, .14);
    color: #64748b;
    font-size: 13px;
}

/* ---- 启用插件页脚时隐藏 Astra 自带页脚/版权条（本站页脚由插件接管） ---- */
#colophon,
footer.site-footer {
    display: none !important;
}

/* ============================================================
   手机端（≤921px，跟 Astra 断点）：单列堆叠，避让固定 Tab 栏
   ============================================================ */
@media (max-width: 921px) {
    .icecard-footer {
        margin-top: 32px;
    }
    .icecard-footer .icf-inner {
        padding: 36px 20px calc(28px + 56px + env(safe-area-inset-bottom, 0px));
    }
    .icecard-footer .icf-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }
    .icecard-footer .icf-brand-col {
        grid-column: 1 / -1;
    }
    .icecard-footer .icf-tagline {
        max-width: none;
    }
}
