/* ============================================================
   站点基础样式（精简版，仅保留登录/注册/找回/账户页所需）
   参考站点：math.ftcbb.com / style.css
   ============================================================ */

/* 重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background: #f0f2f5;
    color: #1a1a1a;
}

a { color: inherit; text-decoration: none; }

/* 站点顶栏 */
.site-header {
    flex: none;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #0b2f60;
}

.site-brand-mark {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #0b4182 0%, #1e88e5 100%);
    color: #fff; font-size: 1.2rem;
}

.site-brand-text {
    display: flex; flex-direction: column; line-height: 1.15;
}

.site-brand-text strong {
    font-size: 1.15rem; font-weight: 700;
}

.site-brand-text small {
    font-size: 0.7rem; color: #6b7c93;
}

.site-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.site-nav-link i { color: #1e88e5; }
.site-nav-link:hover { background: #f4f8ff; color: #0b4182; }
.site-nav-link.active { color: #0b4182; font-weight: 700; }
.site-nav-link.active i { color: #1e88e5; }
.site-nav-link.vip { color: #b26a00; font-weight: 600; }
.site-nav-link.vip i { color: #e08600; }

.site-user-slot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: none;
    margin-left: auto;
}

/* 全站用户导航按钮（user-ui.js 注入） */
.user-nav-area { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.user-nav-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.5rem 0.9rem; border-radius: 8px;
    font-size: 0.9rem; text-decoration: none; font-weight: 500;
    background: linear-gradient(135deg, #0b4182 0%, #1e88e5 100%); color: #fff;
    white-space: nowrap; transition: filter 0.2s;
}
.user-nav-btn:hover { filter: brightness(1.08); color: #fff; }
.user-nav-btn.ghost { background: transparent; color: #0b4182; border: 1px solid #b9d4f0; }
.user-nav-btn.ghost:hover { background: #e8f1fb; }
.user-nav-btn.vip { background: linear-gradient(135deg, #e08600 0%, #f5a623 100%); color: #fff; }

/* 页脚 */
.footer {
    margin-top: auto;
    background: #fff;
    border-top: 1px solid #e8e8e8;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    text-align: center;
    color: #6b7c93;
    font-size: 0.85rem;
}

.footer-content p { margin: 0.35rem 0; }
.footer-content a { color: #1565c0; text-decoration: underline; font-weight: 600; }
.footer-content .footer-links { margin-top: 0.8rem; }
.footer-content .footer-links a { margin: 0 0.35rem; }

/* 吸底布局 */
body.site-flex {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.site-flex > .site-header { flex: none; }
body.site-flex > .footer { margin-top: auto; }

@media (max-width: 760px) {
    .site-header-inner { gap: 0.6rem; padding: 0 0.7rem; }
    .site-nav { display: none; }
    .site-brand-text small { display: none; }
}
