/* ==========================================
   自定义本地 Footer 样式 (无 Tailwind 依赖)
   ========================================== */

   .custom-footer {
    width: 100%;
    margin-top: 3rem;              /* mt-12 (48px) */
    padding: 1.5rem 1rem;          /* py-6 (24px) px-4 (16px) */
    text-align: center;            /* text-center */
    font-family: monospace;        /* font-mono */
    font-size: 0.75rem;            /* text-xs (12px) */
    letter-spacing: 0.025em;       /* tracking-wide */
    
    /* 配色与边框 (使用主题变量或回退值) */
    background-color: var(--bg-card, #ffffff);
    color: var(--text-muted, #6b7280);
    border-top: 1px solid var(--border-color, #e5e7eb);
    box-sizing: border-box;
}

/* 容器居中与自适应 Flex 布局 */
.footer-container {
    max-width: 64rem;              /* max-w-5xl (1024px) */
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;        /* 移动端默认上下排列 flex-col */
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;                   /* gap-2 (8px) */
}

/* 内部区块基本结构 */
.footer-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 左侧特定配置 */
.footer-left {
    gap: 0.375rem;                 /* space-x-1.5 (6px) */
}

/* 右侧特定配置 */
.footer-right {
    gap: 0.75rem;                  /* space-x-3 (12px) */
    font-size: calc(11px * var(--ap-scale, 1));               /* text-[11px] */
}

/* 呼吸灯圆点通用样式 */
.status-dot {
    width: 6px;                    /* w-1.5 (6px) */
    height: 6px;                   /* h-1.5 (6px) */
    border-radius: 9999px;         /* rounded-full */
    display: inline-block;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; /* animate-pulse */
}

/* 状态点颜色定义 */
.dot-yellow {
    background-color: #eab308;     /* bg-yellow-500 */
}

.dot-green {
    background-color: #22c55e;     /* bg-green-500 */
}

/* 呼吸灯动画声明 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ==========================================
   PC 桌面端响应式断点 (≥768px，对应 md: 响应)
   ========================================== */
@media (min-width: 768px) {
    .custom-footer {
        padding-left: 2rem;        /* md:px-8 (32px) */
        padding-right: 2rem;
    }

    .footer-container {
        flex-direction: row;       /* md:flex-row 切换为左右横排 */
    }

    .footer-left {
        justify-content: flex-start; /* md:justify-start */
    }

    .footer-right {
        justify-content: flex-end;   /* md:justify-end */
    }
}
/* 全站页脚（templates/partials/_site_footer.html）：名称 · 条款与政策 · 版权与开发团队 */
.custom-footer.sf { font-family: inherit; letter-spacing: 0; padding: 1.75rem 1rem 2rem; }
.sf-in {
    max-width: 64rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
    font-size: calc(12px * var(--ap-scale, 1));
}
.sf-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: #374151; font-size: calc(13px * var(--ap-scale, 1)); }
.sf-brand img { width: 20px; height: 20px; border-radius: 6px; }
.sf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; }
.sf-links a, .sf-team a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.sf-links a:hover, .sf-team a:hover { color: #16a34a; text-decoration: underline; }
.sf-copy { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.75rem; opacity: 0.85; }
.sf-team { display: inline-flex; gap: 0.375rem; }
@media (min-width: 768px) {
    .sf-in { flex-direction: row; justify-content: space-between; }
    .sf-copy { justify-content: flex-end; }
}
html.dark .sf-brand { color: #e5e7eb; }
html.dark .sf-links a:hover, html.dark .sf-team a:hover { color: #4ade80; }
