/* ===== 社区问答 - 现代 UI 设计系统 ===== */
:root {
    --bbs-primary: #0ea5e9;
    --bbs-primary-hover: #0284c7;
    --bbs-primary-light: #e0f2fe;
    --bbs-accent: #06b6d4;
    --bbs-success: #10b981;
    --bbs-success-light: #ecfdf5;
    --bbs-warning: #f59e0b;
    --bbs-danger: #ef4444;
    --bbs-text: #1e293b;
    --bbs-text-secondary: #64748b;
    --bbs-text-muted: #94a3b8;
    --bbs-border: #e2e8f0;
    --bbs-bg: #f8fafc;
    --bbs-card: #ffffff;
    --bbs-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --bbs-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --bbs-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --bbs-radius: 12px;
    --bbs-radius-sm: 8px;
    --bbs-max-width: 1100px;
    --bbs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--bbs-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--bbs-text);
    background: var(--bbs-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--bbs-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--bbs-primary-hover); }

.bbs-page { min-height: 100vh; display: flex; flex-direction: column; }
.bbs-main { flex: 1; }

/* ===== Header ===== */
.bbs-header {
    background: var(--bbs-card);
    border-bottom: 1px solid var(--bbs-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
}

.bbs-header__inner {
    max-width: var(--bbs-max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* ===== Logo：与主站 fuduedu header-logo 视觉 1:1 对齐（颜色 + 字号 + 字体 + 尺寸四项精确） ===== */
/* 颜色精确值来自主站 styles.css：--fudu-primary=#0f766e / --fudu-primary-600=#0d9488 */
/* 字号精确值：主站 .header-logo 1.25rem × 主站 body 默认 16px = 20px（直接写绝对 px，绕开 Bbs body=15px 的 rem 基准污染） */
/* 字体栈精确值：--fudu-font-sans = Alibaba PuHuiTi 3（普惠体）主站同款，保证视觉宽度/字形一致 */
.bbs-logo {
    display: flex;
    align-items: center;
    gap: 8px;                /* 主站 .header-logo gap:0.5rem = 8px，写绝对 px 防 rem 污染 */
    color: #0f766e;          /* 主色 Teal-700 */
    font-weight: 700;        /* 与主站 font-weight:700 一致 */
    font-size: 20px;         /* 主站 20px 绝对 px 对齐（绕开 Bbs body=15px rem 基准） */
    line-height: 1.2;        /* 主站 header-logo 继承默认约 1.2，显式锁死避免 body 1.6 干扰 */
    font-family: "Alibaba PuHuiTi 3", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;  /* 与主站 --fudu-font-sans 1:1 对齐 */
    -webkit-font-smoothing: antialiased;
    flex-shrink: 0;
    text-decoration: none;
}
.bbs-logo:hover { color: #0d9488; }  /* hover Teal-600，主站 --fudu-primary-600 */
.bbs-logo__text {
    /* 文字节点额外锁一遍，防止未来父级嵌套样式覆盖 */
    font: inherit;
    color: inherit;
    letter-spacing: 0;
}
.bbs-logo__icon {
    display: inline-flex;
    width: 32px;             /* 主站 .header-logo-icon 2rem × 16px = 32px 绝对 px 对齐 */
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;      /* 主站 0.375rem = 6px 绝对 px 对齐 */
    background-color: #0f766e;
    color: #ffffff;
    flex-shrink: 0;
}
.bbs-logo__icon svg {
    width: 20px;             /* 主站 1.25rem × 16px = 20px 绝对 px 对齐 */
    height: 20px;
    stroke-width: 2;
}
/* 保留旧 bbs-logo__img 类兼容（若后续需要换回上传图片） */
.bbs-logo__img {
    width: auto;
    height: 36px;
    max-width: 160px;
    object-fit: contain;
    flex-shrink: 0;
}

.bbs-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow: visible;
}
.bbs-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: var(--bbs-radius-sm);
    color: var(--bbs-text-secondary);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}
.bbs-nav__link:hover { background: var(--bbs-primary-light); color: var(--bbs-primary); }
.bbs-nav__link.is-active { background: var(--bbs-primary-light); color: var(--bbs-primary); }

/* 带子栏目的导航项 */
.bbs-nav__item {
    position: relative;
}
.bbs-nav__item > .bbs-nav__link { cursor: pointer; }
.bbs-nav__item.is-active > .bbs-nav__link,
.bbs-nav__item:hover > .bbs-nav__link {
    background: var(--bbs-primary-light);
    color: var(--bbs-primary);
}
.bbs-nav__arrow {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    transition: transform 0.2s;
}
.bbs-nav__item:hover .bbs-nav__arrow { transform: rotate(180deg); opacity: 1; }

.bbs-nav__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 160px;
    padding: 6px;
    background: var(--bbs-card);
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius-sm);
    box-shadow: var(--bbs-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
    z-index: 200;
}
.bbs-nav__item:hover .bbs-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.bbs-nav__sub-link {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--bbs-text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}
.bbs-nav__sub-link:hover {
    background: var(--bbs-primary-light);
    color: var(--bbs-primary);
}
.bbs-nav__sub-link.is-active {
    background: var(--bbs-primary-light);
    color: var(--bbs-primary);
    font-weight: 600;
}

/* 顶部工具栏：搜索 + 用户 + 提问 */
.bbs-header__toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

/* 搜索框 */
.bbs-search-form {
    position: relative;
    display: flex;
    align-items: center;
}
.bbs-search-form__icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: var(--bbs-text-muted);
    pointer-events: none;
}
.bbs-search-form__input {
    width: 180px;
    padding: 7px 12px 7px 32px;
    border: 1px solid var(--bbs-border);
    border-radius: 20px;
    font-size: 13px;
    background: var(--bbs-bg);
    color: var(--bbs-text);
    outline: none;
    transition: all 0.2s;
}
.bbs-search-form__input:focus {
    width: 220px;
    border-color: var(--bbs-primary);
    background: var(--bbs-card);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.bbs-search-form__input::placeholder { color: var(--bbs-text-muted); }

/* 用户区域 */
.bbs-user { flex-shrink: 0; }
.bbs-user__guest {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bbs-user__link {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bbs-text-secondary);
    border-radius: var(--bbs-radius-sm);
    transition: all 0.2s;
}
.bbs-user__link:hover { color: var(--bbs-primary); background: var(--bbs-primary-light); }
.bbs-user__link--primary {
    background: var(--bbs-primary-light);
    color: var(--bbs-primary);
}
.bbs-user__link--primary:hover { background: var(--bbs-primary); color: #fff; }

.bbs-user__login {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.bbs-user__login:hover { background: var(--bbs-bg); }
.bbs-user__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--bbs-text);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bbs-user__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 120px;
    padding: 6px;
    background: var(--bbs-card);
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius-sm);
    box-shadow: var(--bbs-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
    z-index: 200;
}
.bbs-user__login:hover .bbs-user__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.bbs-user__dropdown a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--bbs-text-secondary);
}
.bbs-user__dropdown a:hover {
    background: var(--bbs-primary-light);
    color: var(--bbs-primary);
}

.bbs-header__post {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    gap: 7px;
    min-height: 36px;
    padding: 0 16px 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: #fff !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 48%, #0891b2 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 4px 14px rgba(14, 165, 233, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.bbs-header__post::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
}
.bbs-header__post svg {
    width: 14px;
    height: 14px;
    padding: 4px;
    box-sizing: content-box;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.bbs-header__post:hover {
    color: #fff !important;
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        0 8px 20px rgba(14, 165, 233, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.bbs-header__post:hover::before {
    transform: translateX(120%);
}
.bbs-header__post:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

/* 移动端搜索与用户 */
.bbs-mobile-search {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bbs-border);
}
.bbs-mobile-search__input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius-sm);
    font-size: 14px;
}
.bbs-mobile-user {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--bbs-border);
}

/* 搜索页 */
.bbs-search-page__head { margin-bottom: 20px; }
.bbs-search-page__title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
}
.bbs-search-page__count {
    font-size: 14px;
    color: var(--bbs-text-muted);
    margin: 0;
}
.bbs-search-page__count strong { color: var(--bbs-primary); }
.bbs-search-page__form { margin-bottom: 28px; }
.bbs-search-page__input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 16px;
    background: var(--bbs-card);
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius);
    box-shadow: var(--bbs-shadow);
}
.bbs-search-page__input-wrap svg {
    width: 20px;
    height: 20px;
    color: var(--bbs-text-muted);
    flex-shrink: 0;
}
.bbs-search-page__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: var(--bbs-text);
}
.bbs-search-page__input::placeholder { color: var(--bbs-text-muted); }

.bbs-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius-sm);
    cursor: pointer;
}
.bbs-menu-toggle span {
    display: block;
    height: 2px;
    background: var(--bbs-text);
    border-radius: 1px;
    transition: all 0.3s;
}
.bbs-menu-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.bbs-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.bbs-menu-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.bbs-mobile-nav {
    display: none;
    flex-direction: column;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--bbs-border);
    background: var(--bbs-card);
}
.bbs-mobile-nav.is-open { display: flex; }
.bbs-mobile-nav__link {
    padding: 12px 0;
    color: var(--bbs-text-secondary);
    font-size: 15px;
    border-bottom: 1px solid var(--bbs-border);
}
.bbs-mobile-nav__link--accent { color: var(--bbs-primary); font-weight: 600; }

.bbs-mobile-nav__group { border-bottom: 1px solid var(--bbs-border); }
.bbs-mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bbs-mobile-nav__head .bbs-mobile-nav__link {
    flex: 1;
    border-bottom: none;
}
.bbs-mobile-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    color: var(--bbs-text-muted);
    cursor: pointer;
    flex-shrink: 0;
}
.bbs-mobile-nav__toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}
.bbs-mobile-nav__group.is-open .bbs-mobile-nav__toggle svg { transform: rotate(180deg); }
.bbs-mobile-nav__sub {
    display: none;
    padding: 0 0 8px 16px;
    background: var(--bbs-bg);
}
.bbs-mobile-nav__group.is-open .bbs-mobile-nav__sub { display: block; }
.bbs-mobile-nav__sublink {
    display: block;
    padding: 10px 12px;
    color: var(--bbs-text-secondary);
    font-size: 14px;
    border-radius: var(--bbs-radius-sm);
}
.bbs-mobile-nav__sublink.is-active,
.bbs-mobile-nav__sublink:hover {
    color: var(--bbs-primary);
    background: var(--bbs-primary-light);
}
.bbs-mobile-nav__link.is-active { color: var(--bbs-primary); font-weight: 600; }

/* ===== Buttons ===== */
.bbs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--bbs-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}
.bbs-btn svg { width: 16px; height: 16px; }
.bbs-btn--primary {
    background: linear-gradient(135deg, var(--bbs-primary), #38bdf8);
    color: #fff;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}
.bbs-btn--primary:hover {
    background: linear-gradient(135deg, var(--bbs-primary-hover), #0ea5e9);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}
.bbs-btn--outline {
    background: var(--bbs-card);
    color: var(--bbs-text-secondary);
    border: 1px solid var(--bbs-border);
}
.bbs-btn--outline:hover { border-color: var(--bbs-primary); color: var(--bbs-primary); background: var(--bbs-primary-light); }
.bbs-btn--sm { padding: 8px 16px; font-size: 13px; }
.bbs-btn--lg { padding: 14px 28px; font-size: 15px; }

/* ===== Layout ===== */
.bbs-container {
    max-width: var(--bbs-max-width);
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.bbs-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}
.bbs-layout__main { min-width: 0; }
.bbs-layout__side { position: sticky; top: 88px; }

/* ===== Hero ===== */
.bbs-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 52px 48px;
    border-radius: 20px;
    color: var(--bbs-text);
    background:
        linear-gradient(145deg, #f0f9ff 0%, #ecfeff 45%, #e0f2fe 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow:
        0 12px 32px -18px rgba(14, 165, 233, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    isolation: isolate;
}
.bbs-hero__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
    z-index: 0;
}
.bbs-hero__glow--a {
    top: -30%;
    right: -6%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, transparent 70%);
    animation: bbs-hero-float 10s ease-in-out infinite;
}
.bbs-hero__glow--b {
    bottom: -36%;
    left: -10%;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.22) 0%, transparent 72%);
    animation: bbs-hero-float 12s ease-in-out infinite reverse;
}
.bbs-hero__grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}
.bbs-hero__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    animation: bbs-hero-in 0.7s ease-out both;
}
.bbs-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #0369a1;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(14, 165, 233, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.bbs-hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.22);
    animation: bbs-hero-pulse 2s ease-in-out infinite;
}
.bbs-hero__title {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    color: #0f172a;
    text-shadow: none;
}
.bbs-hero__desc {
    margin: 0 0 32px;
    max-width: 480px;
    font-size: 16px;
    line-height: 1.75;
    color: #475569;
}
.bbs-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.bbs-hero .bbs-btn--lg {
    min-height: 48px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.bbs-hero .bbs-btn--primary {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.32);
}
.bbs-hero .bbs-btn--primary:hover {
    background: linear-gradient(135deg, #0284c7, #0891b2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.38);
}
.bbs-hero .bbs-btn--outline {
    background: rgba(255, 255, 255, 0.75);
    color: #0f766e;
    border: 1px solid rgba(45, 212, 191, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.bbs-hero .bbs-btn--outline:hover {
    background: #fff;
    color: #0f766e;
    border-color: #2dd4bf;
    transform: translateY(-2px);
}

@keyframes bbs-hero-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bbs-hero-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-18px, 14px) scale(1.06); }
}
@keyframes bbs-hero-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.22); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.1); }
}

@media (prefers-reduced-motion: reduce) {
    .bbs-hero__content,
    .bbs-hero__glow,
    .bbs-hero__badge::before { animation: none; }
}

/* ===== Section ===== */
.bbs-section { margin-bottom: 24px; }
.bbs-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.bbs-section__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--bbs-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.bbs-section__title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--bbs-primary), var(--bbs-accent));
    border-radius: 2px;
}

/* ===== Category Tags ===== */
.bbs-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bbs-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--bbs-card);
    border: 1px solid var(--bbs-border);
    border-radius: 20px;
    color: var(--bbs-text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.bbs-tag:hover {
    background: var(--bbs-primary-light);
    border-color: var(--bbs-primary);
    color: var(--bbs-primary);
    transform: translateY(-1px);
    box-shadow: var(--bbs-shadow);
}
.bbs-tag.is-active {
    background: var(--bbs-primary);
    border-color: var(--bbs-primary);
    color: #fff;
}

/* ===== Topic Card ===== */
.bbs-card {
    background: var(--bbs-card);
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius);
    box-shadow: var(--bbs-shadow);
    overflow: hidden;
}
.bbs-topic-list { display: flex; flex-direction: column; gap: 12px; }

.bbs-topic-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bbs-card);
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius);
    transition: all 0.25s;
    cursor: pointer;
}
.bbs-topic-card:hover {
    border-color: #bae6fd;
    box-shadow: var(--bbs-shadow-md);
    transform: translateY(-2px);
}
.bbs-topic-card__stats {
    flex-shrink: 0;
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 12px 8px;
    background: var(--bbs-bg);
    border-radius: var(--bbs-radius-sm);
    text-align: center;
}
.bbs-topic-card__stats-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--bbs-primary);
    line-height: 1;
}
.bbs-topic-card__stats-label {
    font-size: 11px;
    color: var(--bbs-text-muted);
    font-weight: 500;
}
.bbs-topic-card__body { flex: 1; min-width: 0; }
.bbs-topic-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.5;
}
.bbs-topic-card__title a {
    color: var(--bbs-text);
    text-decoration: none;
}
.bbs-topic-card__title a:hover { color: var(--bbs-primary); }
.bbs-topic-card__excerpt {
    font-size: 14px;
    color: var(--bbs-text-secondary);
    margin: 0 0 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bbs-topic-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--bbs-text-muted);
}
.bbs-topic-card__author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--bbs-text-secondary);
}
.bbs-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bbs-primary), var(--bbs-accent));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bbs-avatar--lg { width: 40px; height: 40px; font-size: 16px; }
.bbs-avatar--img {
    padding: 0;
    background: var(--bbs-border);
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
}

.bbs-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.bbs-badge--success { background: var(--bbs-success-light); color: var(--bbs-success); }
.bbs-badge--cat { background: var(--bbs-primary-light); color: var(--bbs-primary); }

/* ===== Sidebar Widget ===== */
.bbs-widget {
    background: var(--bbs-card);
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--bbs-shadow);
}
.bbs-widget__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--bbs-text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bbs-border);
}
.bbs-widget__list { list-style: none; margin: 0; padding: 0; }
.bbs-widget__list li { margin-bottom: 4px; }
.bbs-widget__list a {
    display: block;
    padding: 8px 10px;
    border-radius: var(--bbs-radius-sm);
    color: var(--bbs-text-secondary);
    font-size: 14px;
    transition: all 0.2s;
}
.bbs-widget__list a:hover { background: var(--bbs-primary-light); color: var(--bbs-primary); }

.bbs-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.bbs-stat-item {
    text-align: center;
    padding: 14px 8px;
    background: var(--bbs-bg);
    border-radius: var(--bbs-radius-sm);
}
.bbs-stat-item__num {
    font-size: 24px;
    font-weight: 800;
    color: var(--bbs-primary);
    line-height: 1;
}
.bbs-stat-item__label {
    font-size: 12px;
    color: var(--bbs-text-muted);
    margin-top: 4px;
}

/* ===== Breadcrumb ===== */
.bbs-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--bbs-text-muted);
    margin-bottom: 20px;
}
.bbs-breadcrumb a { color: var(--bbs-text-secondary); }
.bbs-breadcrumb a:hover { color: var(--bbs-primary); }
.bbs-breadcrumb__sep { color: var(--bbs-border); }

/* ===== Page Header ===== */
.bbs-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}
.bbs-page-header__title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: var(--bbs-text);
}

/* ===== Question Detail ===== */
.bbs-question {
    background: var(--bbs-card);
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--bbs-shadow);
}
.bbs-question__head {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.bbs-question__title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.4;
    color: var(--bbs-text);
    letter-spacing: -0.01em;
}
.bbs-question__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--bbs-text-muted);
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bbs-border);
}
.bbs-question__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.bbs-question__meta-item svg { width: 14px; height: 14px; opacity: 0.6; }
.bbs-question__admin {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.bbs-topic-edit,
.bbs-topic-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: transparent;
    border: 1px solid var(--bbs-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--bbs-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.bbs-topic-edit:hover {
    border-color: var(--bbs-primary);
    color: var(--bbs-primary);
    background: var(--bbs-primary-light);
}
.bbs-topic-status:hover {
    border-color: var(--bbs-warning);
    color: var(--bbs-warning);
    background: #fffbeb;
}
.bbs-badge--closed {
    background: #fef3c7;
    color: #b45309;
}
.bbs-topic-edit-panel {
    margin-top: 16px;
    padding: 16px;
    background: var(--bbs-bg);
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius-sm);
}
.bbs-topic-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.bbs-topic-edit-save,
.bbs-topic-edit-cancel {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid var(--bbs-border);
    background: var(--bbs-card);
    color: var(--bbs-text-secondary);
}
.bbs-topic-edit-save {
    background: var(--bbs-primary);
    border-color: var(--bbs-primary);
    color: #fff;
}
.bbs-topic-edit-save:hover { background: var(--bbs-primary-hover); }
.bbs-topic-edit-cancel:hover {
    border-color: var(--bbs-text-muted);
    color: var(--bbs-text);
}
.bbs-topic-closed-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: var(--bbs-text-muted);
    font-size: 15px;
}
.bbs-topic-closed-tip svg {
    width: 22px;
    height: 22px;
    color: var(--bbs-warning);
    flex-shrink: 0;
}
.bbs-form-panel--closed {
    background: var(--bbs-bg);
    border-style: dashed;
}
.bbs-form-panel--login {
    background: var(--bbs-bg);
    border-style: dashed;
}
.bbs-form-panel--login .bbs-form-actions {
    padding-top: 16px;
}
.bbs-question__content {
    font-size: 15px;
    line-height: 1.85;
    color: var(--bbs-text);
    overflow-x: auto;
}
.bbs-question__content img { max-width: 100%; border-radius: var(--bbs-radius-sm); }
.bbs-question__content p { margin: 0 0 12px; }

/* ===== Rich content (editor output) ===== */
.bbs-question__content ul,
.bbs-question__content ol,
.bbs-reply-card__content ul,
.bbs-reply-card__content ol {
    padding-left: 2em;
    margin: 12px 0;
}
.bbs-question__content li,
.bbs-reply-card__content li {
    margin: 4px 0;
}
.bbs-question__content table,
.bbs-reply-card__content table {
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: var(--bbs-card);
}
.bbs-question__content table.table,
.bbs-reply-card__content table.table,
.bbs-question__content table.table-bordered,
.bbs-reply-card__content table.table-bordered {
    border: 1px solid var(--bbs-border);
}
.bbs-question__content table td,
.bbs-question__content table th,
.bbs-reply-card__content table td,
.bbs-reply-card__content table th {
    border: 1px solid var(--bbs-border);
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}
.bbs-question__content table th,
.bbs-reply-card__content table th {
    background: var(--bbs-bg);
    font-weight: 600;
    color: var(--bbs-text);
}
.bbs-question__content table tbody tr:nth-child(even),
.bbs-reply-card__content table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.6);
}
.bbs-question__content blockquote,
.bbs-reply-card__content blockquote {
    margin: 12px 0;
    padding: 10px 16px;
    border-left: 4px solid var(--bbs-primary);
    background: var(--bbs-bg);
    color: var(--bbs-text-secondary);
}
.bbs-question__content pre,
.bbs-reply-card__content pre {
    margin: 12px 0;
    padding: 12px;
    background: var(--bbs-bg);
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius-sm);
    overflow-x: auto;
    line-height: 1.6;
    font-size: 13px;
}
.bbs-question__content hr,
.bbs-reply-card__content hr {
    margin: 16px 0;
    border: 0;
    border-top: 1px solid var(--bbs-border);
}

/* ===== Replies ===== */
.bbs-replies { margin-bottom: 24px; }
.bbs-replies__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.bbs-replies__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
.bbs-replies__count {
    font-size: 14px;
    color: var(--bbs-text-muted);
    font-weight: 400;
}

.bbs-reply-list { display: flex; flex-direction: column; gap: 12px; }
.bbs-reply-card {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--bbs-card);
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius);
    position: relative;
    transition: box-shadow 0.2s;
}
.bbs-reply-card:hover { box-shadow: var(--bbs-shadow); }
.bbs-reply-card.is-best {
    border-color: #6ee7b7;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}
.bbs-reply-card__best {
    position: absolute;
    top: 0;
    right: 16px;
    background: var(--bbs-success);
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    letter-spacing: 0.5px;
}
.bbs-reply-card__side { flex-shrink: 0; }
.bbs-reply-card__body { flex: 1; min-width: 0; }
.bbs-reply-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.bbs-reply-card__floor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 6px;
    background: var(--bbs-primary-light);
    color: var(--bbs-primary);
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}
.bbs-reply-card__author { font-weight: 600; font-size: 14px; color: var(--bbs-text); }
.bbs-reply-card__time { font-size: 12px; color: var(--bbs-text-muted); }
.bbs-reply-card__city {
    font-size: 12px;
    color: var(--bbs-text-muted);
    padding: 2px 8px;
    background: var(--bbs-bg);
    border-radius: 4px;
}
.bbs-reply-card__city::before { content: '来自 '; }
.bbs-reply-card__actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--bbs-border);
}
.bbs-reply-to {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: transparent;
    border: 1px solid var(--bbs-border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--bbs-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.bbs-reply-to:hover {
    border-color: var(--bbs-primary);
    color: var(--bbs-primary);
    background: var(--bbs-primary-light);
}
.bbs-reply-best,
.bbs-reply-edit,
.bbs-reply-del {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: transparent;
    border: 1px solid var(--bbs-border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--bbs-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 6px;
}
.bbs-reply-best:hover {
    border-color: var(--bbs-success);
    color: var(--bbs-success);
    background: var(--bbs-success-light);
}
.bbs-reply-edit:hover {
    border-color: var(--bbs-primary);
    color: var(--bbs-primary);
    background: var(--bbs-primary-light);
}
.bbs-reply-del:hover {
    border-color: var(--bbs-danger);
    color: var(--bbs-danger);
    background: #fef2f2;
}
.bbs-reply-edit-panel {
    margin-top: 10px;
    padding: 12px;
    background: var(--bbs-bg);
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius-sm);
}
.bbs-reply-edit-shared .bbs-form-group--editor {
    margin-bottom: 0;
}
.bbs-reply-edit-shared .note-editor {
    background: var(--bbs-card);
    border-radius: var(--bbs-radius-sm);
}
.bbs-reply-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.bbs-reply-edit-save,
.bbs-reply-edit-cancel {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid var(--bbs-border);
    background: var(--bbs-card);
    color: var(--bbs-text-secondary);
}
.bbs-reply-edit-save {
    background: var(--bbs-primary);
    border-color: var(--bbs-primary);
    color: #fff;
}
.bbs-reply-edit-save:hover { background: var(--bbs-primary-hover); }
.bbs-reply-edit-cancel:hover {
    border-color: var(--bbs-text-muted);
    color: var(--bbs-text);
}
.bbs-reply-children {
    margin: 8px 0 0 52px;
    padding-left: 16px;
    border-left: 2px solid var(--bbs-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bbs-reply-card--child {
    padding: 14px 16px;
    background: var(--bbs-bg);
    border-style: dashed;
}
.bbs-reply-target {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    background: var(--bbs-primary-light);
    border: 1px solid #bae6fd;
    border-radius: var(--bbs-radius-sm);
    font-size: 14px;
    color: var(--bbs-text-secondary);
}
.bbs-reply-target strong { color: var(--bbs-primary); }
.bbs-reply-target__cancel {
    margin-left: auto;
    padding: 2px 10px;
    background: transparent;
    border: 1px solid var(--bbs-border);
    border-radius: 4px;
    font-size: 12px;
    color: var(--bbs-text-muted);
    cursor: pointer;
}
.bbs-reply-target__cancel:hover {
    border-color: var(--bbs-danger);
    color: var(--bbs-danger);
}
.bbs-reply-card__content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--bbs-text-secondary);
    overflow-x: auto;
    overflow-wrap: break-word;
    word-break: break-word;
}
.bbs-reply-card__content p { margin: 0 0 8px; }
.bbs-reply-card__content img,
.bbs-reply-card__content video,
.bbs-reply-card__content iframe {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: var(--bbs-radius-sm);
}
.bbs-reply-card__content img {
    display: block;
    margin: 8px 0;
}

.bbs-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--bbs-card);
    border: 1px dashed var(--bbs-border);
    border-radius: var(--bbs-radius);
    color: var(--bbs-text-muted);
}
.bbs-empty__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--bbs-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bbs-text-muted);
}
.bbs-empty__icon svg { width: 28px; height: 28px; }
.bbs-empty__text { font-size: 15px; margin: 0; }

/* ===== Forms ===== */
.bbs-form-panel {
    background: var(--bbs-card);
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius);
    padding: 28px;
    box-shadow: var(--bbs-shadow);
}
.bbs-form-panel__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
}
.bbs-form-panel__desc {
    font-size: 14px;
    color: var(--bbs-text-muted);
    margin: 0 0 24px;
}
.bbs-form-group { margin-bottom: 20px; }
.bbs-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bbs-text);
}
.bbs-form-group .required { color: var(--bbs-danger); }
.bbs-input, .bbs-select, .bbs-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--bbs-text);
    background: var(--bbs-card);
    transition: all 0.2s;
    outline: none;
}
.bbs-input:focus, .bbs-select:focus, .bbs-textarea:focus {
    border-color: var(--bbs-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}
.bbs-input::placeholder, .bbs-textarea::placeholder { color: var(--bbs-text-muted); }
.bbs-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.bbs-form-group--editor .note-editor {
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius);
    overflow: hidden;
}
.bbs-form-group--editor .note-toolbar {
    background: var(--bbs-bg-soft);
    border-bottom: 1px solid var(--bbs-border);
}
.bbs-form-group--editor .note-editable {
    min-height: 200px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--bbs-text);
}
.bbs-form-group--editor .dr_ueditor { display: none; }
.bbs-form-actions { display: flex; gap: 12px; align-items: center; padding-top: 4px; }

.bbs-login-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bbs-primary-light);
    border: 1px solid #bae6fd;
    border-radius: var(--bbs-radius-sm);
    font-size: 14px;
    color: var(--bbs-text);
}
.bbs-login-tip {
    font-size: 12px;
    color: var(--bbs-text-muted);
    margin-left: auto;
}

/* ===== Pagination ===== */
.bbs-pagination {
    display: flex;
    justify-content: center;
    padding: 28px 0 8px;
}
.bbs-pagination .pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
}
.bbs-pagination .pagination > li {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    float: none;
}
.bbs-pagination .pagination > li > a,
.bbs-pagination .pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    margin: 0;
    border-radius: var(--bbs-radius-sm);
    font-size: 14px;
    color: var(--bbs-text-secondary);
    border: 1px solid var(--bbs-border);
    background: var(--bbs-card);
    text-decoration: none;
    float: none;
    position: static;
    line-height: 1;
    box-sizing: border-box;
    transition: all 0.2s;
    white-space: nowrap;
}
.bbs-pagination .pagination > li > a:hover,
.bbs-pagination .pagination > li > a:focus {
    z-index: 1;
    border-color: var(--bbs-primary);
    color: var(--bbs-primary);
    background: var(--bbs-primary-light);
}
.bbs-pagination .pagination > .active > a,
.bbs-pagination .pagination > li.active > a,
.bbs-pagination .pagination > .page-active > a,
.bbs-pagination .pagination > li.page-active > a {
    background: var(--bbs-primary);
    border-color: var(--bbs-primary);
    color: #fff !important;
    cursor: default;
    font-weight: 600;
}
.bbs-pagination .pagination > .active > a:hover,
.bbs-pagination .pagination > li.active > a:hover,
.bbs-pagination .pagination > .page-active > a:hover,
.bbs-pagination .pagination > li.page-active > a:hover {
    background: var(--bbs-primary);
    border-color: var(--bbs-primary);
    color: #fff !important;
}
.bbs-pagination .pagination > .disabled > a,
.bbs-pagination .pagination > li.disabled > a,
.bbs-pagination .pagination > .disabled > span,
.bbs-pagination .pagination > li.disabled > span {
    color: var(--bbs-text-muted);
    background: var(--bbs-bg);
    border-color: var(--bbs-border);
    cursor: not-allowed;
    opacity: 0.65;
}
.bbs-pagination .pagination > .disabled > a:hover,
.bbs-pagination .pagination > li.disabled > a:hover {
    color: var(--bbs-text-muted);
    background: var(--bbs-bg);
    border-color: var(--bbs-border);
}

/* ===== Footer ===== */
.bbs-footer {
    background: var(--bbs-card);
    border-top: 1px solid var(--bbs-border);
    margin-top: auto;
}
.bbs-footer__inner {
    max-width: var(--bbs-max-width);
    margin: 0 auto;
    padding: 32px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}
.bbs-footer__brand strong { font-size: 16px; color: var(--bbs-text); }
.bbs-footer__brand p { font-size: 13px; color: var(--bbs-text-muted); margin: 6px 0 0; }
.bbs-footer__links { display: flex; gap: 20px; }
.bbs-footer__links a { font-size: 13px; color: var(--bbs-text-secondary); }
.bbs-footer__links a:hover { color: var(--bbs-primary); }
.bbs-footer__copy {
    text-align: center;
    padding: 16px 20px;
    font-size: 12px;
    color: var(--bbs-text-muted);
    border-top: 1px solid var(--bbs-border);
}

/* ===== Back to top ===== */
.bbs-back-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--bbs-primary);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--bbs-shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s;
    z-index: 90;
}
.bbs-back-top svg { width: 20px; height: 20px; }
.bbs-back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.bbs-back-top:hover { background: var(--bbs-primary-hover); transform: translateY(-2px); }

/* ===== Toast ===== */
.bbs-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    border-radius: var(--bbs-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: var(--bbs-success);
    box-shadow: var(--bbs-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 200;
    pointer-events: none;
}
.bbs-toast.is-show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.bbs-toast.is-error { background: var(--bbs-danger); }

/* ===== Category Page Banner ===== */
.bbs-cat-banner {
    background: var(--bbs-card);
    border: 1px solid var(--bbs-border);
    border-radius: var(--bbs-radius);
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: var(--bbs-shadow);
}
.bbs-cat-banner__title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
}
.bbs-cat-banner__desc {
    font-size: 14px;
    color: var(--bbs-text-muted);
    margin: 0;
}

/* ===== Auth (login / register / find) ===== */
.bbs-auth {
    display: flex;
    justify-content: center;
    padding: 24px 0 40px;
}
.bbs-auth__card {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px 28px;
    background: var(--bbs-card);
    border: 1px solid var(--bbs-border);
    border-radius: 16px;
    box-shadow: var(--bbs-shadow-md);
}
.bbs-auth__head { margin-bottom: 24px; text-align: center; }
.bbs-auth__title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--bbs-text);
}
.bbs-auth__desc {
    margin: 0;
    font-size: 14px;
    color: var(--bbs-text-secondary);
}
.bbs-auth__form { display: flex; flex-direction: column; gap: 14px; }
.bbs-auth__field { display: flex; flex-direction: column; gap: 6px; }
.bbs-auth__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bbs-text-secondary);
}
.bbs-auth__input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--bbs-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--bbs-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bbs-auth__input:focus {
    outline: none;
    border-color: var(--bbs-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}
.bbs-auth__captcha {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bbs-auth__captcha .bbs-auth__input { flex: 1; }
.bbs-auth__captcha img,
.bbs-auth__captcha .fc-code img {
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--bbs-border);
    flex-shrink: 0;
}
.bbs-auth__field.has-error .bbs-auth__input {
    border-color: var(--bbs-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.bbs-auth__send {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 40px;
}
.bbs-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}
.bbs-auth__check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bbs-text-secondary);
    cursor: pointer;
}
.bbs-auth__link {
    color: var(--bbs-primary);
    font-weight: 500;
}
.bbs-auth__link:hover { color: var(--bbs-primary-hover); }
.bbs-auth__submit {
    width: 100%;
    margin-top: 4px;
}
.bbs-auth__foot {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--bbs-border);
    text-align: center;
    font-size: 13px;
    color: var(--bbs-text-secondary);
}
.bbs-auth__sep { margin: 0 6px; color: var(--bbs-text-muted); }

/* ===== Member center ===== */
.bbs-member {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.bbs-member__card {
    background: var(--bbs-surface, #fff);
    border: 1px solid var(--bbs-border);
    border-radius: 16px;
    padding: 20px 16px;
}
.bbs-member__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--bbs-border);
}
.bbs-member__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bbs-primary-light);
}
.bbs-member__profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.bbs-member__profile-info strong {
    font-size: 15px;
    color: var(--bbs-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bbs-member__profile-info span {
    font-size: 12px;
    color: var(--bbs-text-muted);
}
.bbs-member__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bbs-member__nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--bbs-text-secondary);
    font-size: 14px;
    transition: background .15s, color .15s;
}
.bbs-member__nav-link:hover {
    background: var(--bbs-primary-light);
    color: var(--bbs-primary);
}
.bbs-member__nav-link.is-active {
    background: var(--bbs-primary-light);
    color: var(--bbs-primary);
    font-weight: 600;
}
.bbs-member__nav-link--muted { color: var(--bbs-text-muted); }
.bbs-member__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.bbs-member__head .bbs-form-panel__title { margin-bottom: 0; }
.bbs-member__count {
    font-size: 13px;
    color: var(--bbs-text-muted);
}
.bbs-avatar-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.bbs-avatar-box__notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #f0c36d;
    background: #fff8e6;
    color: #b45309;
    font-size: 15px;
    line-height: 1.5;
}
.bbs-avatar-box__notice strong {
    font-weight: 700;
    letter-spacing: 0.02em;
}
.bbs-avatar-box__img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bbs-border);
    background: var(--bbs-primary-light);
}
.bbs-avatar-box__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.bbs-avatar-box__tip {
    font-size: 13px;
    color: var(--bbs-text-muted);
    margin: 0;
}
.bbs-avatar-box__tip.is-error {
    color: #c2410c;
    font-size: 14px;
    font-weight: 600;
}
.bbs-member-reply-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bbs-member-reply {
    padding: 14px 16px;
    border: 1px solid var(--bbs-border);
    border-radius: 12px;
    background: var(--bbs-bg, #fafbfc);
}
.bbs-member-reply__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--bbs-text-muted);
}
.bbs-member-reply__topic {
    color: var(--bbs-primary);
    font-weight: 600;
    font-size: 14px;
}
.bbs-member-reply__content {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--bbs-text-secondary);
}
.bbs-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--bbs-text-muted);
    font-size: 14px;
}
.bbs-empty a { color: var(--bbs-primary); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .bbs-layout { grid-template-columns: 1fr; }
    .bbs-layout__side { position: static; }
    .bbs-nav { display: none; }
    .bbs-search-form { display: none; }
    .bbs-user { display: none; }
    .bbs-header__post { display: none; }
    .bbs-menu-toggle { display: flex; }
    .bbs-hero { padding: 36px 22px; border-radius: 16px; }
    .bbs-hero__title { font-size: 26px; }
    .bbs-hero__desc { font-size: 15px; margin-bottom: 24px; }
    .bbs-hero__glow--a { width: 260px; height: 260px; }
    .bbs-hero__glow--b { width: 220px; height: 220px; }
    .bbs-member { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .bbs-container { padding: 16px 14px 32px; }
    .bbs-topic-card { flex-direction: column; gap: 12px; padding: 16px; }
    .bbs-topic-card__stats {
        flex-direction: row;
        width: auto;
        gap: 16px;
        padding: 8px 12px;
        align-self: flex-start;
    }
    .bbs-question { padding: 20px 16px; }
    .bbs-question__title { font-size: 20px; }
    .bbs-reply-card { flex-direction: column; gap: 10px; }
    .bbs-reply-children { margin-left: 24px; padding-left: 12px; }
    .bbs-form-panel { padding: 20px 16px; }
    .bbs-page-header { flex-direction: column; align-items: flex-start; }
    .bbs-footer__inner { flex-direction: column; }
}
