/* ========== 全站共用组件样式（前台 + 后台） ==========
   由 /css/com-css.php 引入，前后台都会加载。
   包含：主题变量、公共页脚 .fe-footer、移动端底部导航 .fe-tabbar
*/

:root {
    --fe-primary: #2563eb;
    --fe-primary-dark: #1d4ed8;
    --fe-accent: #ef4444;
    --fe-bg: #f8fafc;
    --fe-card: #ffffff;
    --fe-text: #1e293b;
    --fe-text-2: #64748b;
    --fe-border: #e2e8f0;
    --fe-shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
    --fe-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --fe-radius: 10px;
}

/* ========== 公共页脚 ========== */
.fe-footer {
    background: #f1f5f9;
    color: #64748b;
    padding: 2.5rem 5% 1.2rem;
    margin-top: 3rem;
    border-top: 1px solid #e2e8f0;
}
.fe-footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.fe-footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem;
}
.fe-footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
    margin-top: 8px;
}
.fe-footer-desc { font-size: 0.85rem; line-height: 1.6; margin: 0; color: #64748b; }
.fe-footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.fe-footer-links a { color: #64748b; text-decoration: none; font-size: 0.85rem; transition: color .2s; }
.fe-footer-links a:hover { color: #2563eb; }
.fe-footer-contact { font-size: 0.85rem; margin: 0 0 0.5rem; display: flex; gap: 8px; }
.fe-footer-contact i { color: #2563eb; width: 16px; text-align: center; margin-top: 3px; }
.fe-footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== 移动端底部导航 ==========
   按钮宽度由 flex:1 按数量自动均分；增删导航项无需改样式
*/
.fe-tabbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -1px 10px rgba(0, 0, 0, .06);
    z-index: 900;
}
.fe-tabbar-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    padding: 6px 0 8px;
}
.fe-tabbar a {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.68rem;
    position: relative;
    transition: color .2s;
}
.fe-tabbar a i { font-size: 1.1rem; line-height: 1; }
.fe-tabbar a span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fe-tabbar a.active { color: #2563eb; }
.fe-tab-badge {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: 6px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    height: 16px;
    min-width: 16px;
    padding: 0 4px;
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 768px) {
    .fe-tabbar { display: block; }
    /* 页脚在移动端隐藏，避免与底部导航重叠；为底部导航留出安全距离 */
    .fe-footer { display: none; }
    body { padding-bottom: 66px; }
}

@media (min-width: 769px) {
    .fe-tabbar { display: none; }
}
