/* ==========================================================
   蓝航导航 bluenav · 白底 + 浅色科技蓝渐变玻璃拟态
   Z-BlogPHP Theme
   ========================================================== */
:root {
    --bn-bg: #eef4ff;
    --bn-bg-2: #e3eeff;
    --bn-card: rgba(255, 255, 255, 0.72);
    --bn-card-solid: #ffffff;
    --bn-border: rgba(96, 150, 255, 0.20);
    --bn-border-2: rgba(96, 150, 255, 0.38);
    --bn-shadow: 0 8px 30px rgba(52, 110, 255, 0.10);
    --bn-shadow-hover: 0 14px 40px rgba(52, 110, 255, 0.18);
    --bn-text: #17233d;
    --bn-text-2: #5d6f92;
    --bn-text-3: #8aa0c3;
    --bn-primary: #2f7bff;
    --bn-primary-2: #00b7ff;
    --bn-grad: linear-gradient(135deg, #4a9eff 0%, #00c6ff 100%);
    --bn-grad-soft: linear-gradient(135deg, rgba(74, 158, 255, 0.12), rgba(0, 198, 255, 0.12));
    --bn-radius: 16px;
    --bn-radius-sm: 10px;
    --bn-header: rgba(255, 255, 255, 0.62);
    --bn-nav-bg: rgba(255, 255, 255, 0.55);
    --bn-input: rgba(255, 255, 255, 0.75);
    --bn-input-border: rgba(96, 150, 255, 0.28);
    --bn-hover: rgba(74, 158, 255, 0.08);
    --bn-404: rgba(74, 158, 255, 0.06);
}

html[data-theme="dark"] {
    --bn-bg: #0b1220;
    --bn-bg-2: #0f1930;
    --bn-card: rgba(19, 30, 54, 0.66);
    --bn-card-solid: #15203a;
    --bn-border: rgba(96, 160, 255, 0.16);
    --bn-border-2: rgba(110, 170, 255, 0.34);
    --bn-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    --bn-shadow-hover: 0 14px 40px rgba(0, 0, 0, 0.5);
    --bn-text: #e9effb;
    --bn-text-2: #94a5c6;
    --bn-text-3: #66799c;
    --bn-primary: #5aa5ff;
    --bn-primary-2: #38d0ff;
    --bn-grad: linear-gradient(135deg, #4a9eff 0%, #00c6ff 100%);
    --bn-grad-soft: linear-gradient(135deg, rgba(74, 158, 255, 0.14), rgba(0, 198, 255, 0.14));
    --bn-header: rgba(13, 21, 38, 0.6);
    --bn-nav-bg: rgba(13, 21, 38, 0.55);
    --bn-input: rgba(17, 28, 52, 0.6);
    --bn-input-border: rgba(96, 160, 255, 0.22);
    --bn-hover: rgba(90, 165, 255, 0.10);
    --bn-404: rgba(74, 158, 255, 0.08);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bn-bg);
    background-image: linear-gradient(180deg, var(--bn-bg) 0%, var(--bn-bg-2) 100%);
    background-attachment: fixed;
    color: var(--bn-text);
    font-size: 14px;
    line-height: 1.7;
    transition: background .3s ease, color .3s ease;
}
a { color: var(--bn-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--bn-primary-2); }
img { max-width: 100%; border: 0; vertical-align: middle; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: 14px; color: var(--bn-text); }
button { cursor: pointer; }

/* 背景装饰光斑 */
.bn-bg-decor {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(420px 320px at 12% 8%, rgba(74, 158, 255, 0.20), transparent 65%),
        radial-gradient(480px 360px at 88% 16%, rgba(0, 198, 255, 0.16), transparent 65%),
        radial-gradient(520px 400px at 55% 92%, rgba(74, 158, 255, 0.12), transparent 70%);
    transition: opacity .3s ease;
}

.bn-container { width: 1200px; max-width: 96%; margin: 0 auto; }

/* ---------- 顶部信息条 ---------- */
.bn-topbar {
    background: var(--bn-grad);
    color: #fff;
    font-size: 12.5px;
    letter-spacing: .3px;
}
.bn-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.bn-topbar a { color: rgba(255, 255, 255, 0.92); }
.bn-topbar a:hover { color: #fff; text-decoration: underline; }
.bn-topbar-qq { margin-right: 14px; opacity: .92; }

/* ---------- 头部 ---------- */
.bn-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--bn-header);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--bn-border);
    transition: background .3s ease;
}
.bn-header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 16px 0 12px;
}
.bn-logo { flex: 0 0 auto; min-width: 0; }
.bn-logo img { height: 44px; width: auto; display: block; }
.bn-logo-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--bn-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    white-space: nowrap;
}

/* 搜索 */
.bn-search { flex: 1 1 auto; min-width: 0; max-width: 640px; }
.bn-search-tabs { display: flex; gap: 2px; margin-bottom: 8px; flex-wrap: wrap; }
.bn-search-tabs span {
    padding: 3px 13px;
    font-size: 12.5px;
    color: var(--bn-text-2);
    border-radius: 20px;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
}
.bn-search-tabs span:hover { color: var(--bn-primary); background: var(--bn-hover); }
.bn-search-tabs span.on {
    color: #fff;
    background: var(--bn-grad);
    box-shadow: 0 4px 14px rgba(47, 123, 255, 0.30);
}
.bn-search-box {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--bn-input-border);
    border-radius: 999px;
    background: var(--bn-input);
    overflow: hidden;
    box-shadow: inset 0 1px 4px rgba(30, 80, 200, 0.04);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.bn-search-box:focus-within { border-color: var(--bn-primary); box-shadow: 0 0 0 4px rgba(47, 123, 255, 0.12); }
.bn-search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 10px 18px;
    font-size: 14.5px;
}
.bn-search-box button {
    flex: 0 0 auto;
    border: 0;
    padding: 0 26px;
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 4px;
    background: var(--bn-grad);
    transition: filter .2s ease;
}
.bn-search-box button:hover { filter: brightness(1.08); }

/* 头部操作按钮 */
.bn-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.bn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13.5px;
    line-height: 1.4;
    cursor: pointer;
    transition: all .22s ease;
    white-space: nowrap;
}
.bn-btn-primary {
    color: #fff;
    background: var(--bn-grad);
    box-shadow: 0 6px 18px rgba(47, 123, 255, 0.28);
}
.bn-btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(47, 123, 255, 0.36); }
.bn-btn-ghost {
    color: var(--bn-primary);
    background: var(--bn-grad-soft);
    border-color: var(--bn-border-2);
}
.bn-btn-ghost:hover { color: var(--bn-primary); background: var(--bn-hover); transform: translateY(-1px); }
.bn-btn-lg { padding: 11px 30px; font-size: 15px; }
.bn-btn-random { color: var(--bn-text-2); background: var(--bn-hover); border-color: var(--bn-border); }
.bn-btn-random:hover { color: var(--bn-primary); border-color: var(--bn-border-2); }
.bn-btn-theme {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid var(--bn-border);
    background: var(--bn-card);
    color: var(--bn-text-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bn-btn-theme:hover { color: var(--bn-primary); border-color: var(--bn-border-2); transform: rotate(18deg); }
.bn-btn-theme .bn-icon-sun { display: none; }
.bn-btn-theme .bn-icon-moon { display: block; }
html[data-theme="dark"] .bn-btn-theme .bn-icon-sun { display: block; }
html[data-theme="dark"] .bn-btn-theme .bn-icon-moon { display: none; }

/* 导航条 */
.bn-nav { background: var(--bn-nav-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid transparent; }
.bn-nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
.bn-nav-list { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bn-nav-list li { position: relative; }
.bn-nav-list li a {
    display: block;
    padding: 10px 18px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--bn-text);
    border-radius: 10px;
    transition: all .2s ease;
}
.bn-nav-list li a:hover { color: var(--bn-primary); background: var(--bn-hover); }
.bn-nav-list li.on a, .bn-nav-list li.active a {
    color: #fff;
    background: var(--bn-grad);
    box-shadow: 0 5px 14px rgba(47, 123, 255, 0.26);
}
.bn-nav-right { display: flex; align-items: center; gap: 10px; }
.bn-nav-submit {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--bn-grad);
    box-shadow: 0 4px 12px rgba(47, 123, 255, 0.26);
}
.bn-nav-submit:hover { color: #fff; filter: brightness(1.08); }
.bn-nav-toggle { display: none; background: transparent; border: 0; color: var(--bn-text-2); }

/* ---------- 主容器 ---------- */
.bn-main { padding: 22px 0 40px; min-height: 60vh; }

/* ---------- 通用卡片 ---------- */
.bn-card {
    background: var(--bn-card);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--bn-border);
    border-radius: var(--bn-radius);
    box-shadow: var(--bn-shadow);
    transition: box-shadow .25s ease, transform .25s ease, background .3s ease;
}

/* ---------- 首页布局 ---------- */
.bn-home { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.bn-home-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bn-home-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* 分类导航卡片 */
.bn-cate { padding: 20px 22px 24px; overflow: hidden; }
.bn-cate:hover { box-shadow: var(--bn-shadow-hover); transform: translateY(-2px); }
.bn-cate-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.bn-cate-badge {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    background: var(--bn-grad);
    box-shadow: 0 5px 14px rgba(47, 123, 255, 0.28);
}
.bn-cate-title { flex: 0 0 auto; font-size: 19px; font-weight: 700; }
.bn-cate-title a { color: var(--bn-text); }
.bn-cate-title a:hover { color: var(--bn-primary); }
.bn-cate-count { flex: 1 1 auto; font-size: 12px; color: var(--bn-text-3); }
.bn-cate-more {
    flex: 0 0 auto;
    padding: 4px 14px;
    font-size: 12.5px;
    color: var(--bn-primary);
    border: 1px solid var(--bn-border-2);
    border-radius: 999px;
    background: var(--bn-grad-soft);
    transition: all .2s ease;
}
.bn-cate-more:hover { color: #fff; background: var(--bn-grad); border-color: transparent; }

/* 收录网格 */
.bn-site-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.bn-site-grid li { min-width: 0; }
.bn-site-grid li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--bn-radius-sm);
    border: 1px solid transparent;
    transition: all .2s ease;
}
.bn-site-grid li a:hover {
    background: var(--bn-hover);
    border-color: var(--bn-border);
    box-shadow: 0 6px 16px rgba(47, 123, 255, 0.10);
    transform: translateY(-2px);
}
.bn-site-icon { flex: 0 0 auto; position: relative; width: 30px; height: 30px; border-radius: 9px; overflow: hidden; background: var(--bn-grad-soft); display: inline-flex; align-items: center; justify-content: center; }
.bn-site-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.bn-site-icon-fallback {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--bn-grad);
}
.bn-site-name { flex: 1 1 auto; min-width: 0; font-size: 13.5px; color: var(--bn-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-site-grid li a:hover .bn-site-name { color: var(--bn-primary); }

/* 子分类分组 */
.bn-cate-groups { display: flex; flex-direction: column; gap: 14px; }
.bn-cate-group-name { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.bn-cate-group-name::before { content: ""; width: 4px; height: 15px; border-radius: 4px; background: var(--bn-grad); }
.bn-cate-group-name a { color: var(--bn-text-2); }
.bn-cate-group-name a:hover { color: var(--bn-primary); }

/* ---------- 首页侧栏 ---------- */
.bn-side-card { padding: 18px 20px; }
.bn-side-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--bn-text);
}
.bn-side-title::before { content: ""; width: 5px; height: 18px; border-radius: 4px; background: var(--bn-grad); }

.bn-rank-list li { display: flex; align-items: center; gap: 10px; padding: 7px 2px; }
.bn-rank-list li + li { border-top: 1px dashed var(--bn-border); }
.bn-rank-no {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--bn-text-2);
    background: var(--bn-hover);
}
.bn-rank-list li:nth-child(-n+3) .bn-rank-no { color: #fff; background: var(--bn-grad); box-shadow: 0 4px 10px rgba(47, 123, 255, 0.28); }
.bn-rank-list li a { flex: 1 1 auto; min-width: 0; color: var(--bn-text); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-rank-list li a:hover { color: var(--bn-primary); }
.bn-rank-list li em { flex: 0 0 auto; font-style: normal; font-size: 12px; color: var(--bn-text-3); }

.bn-new-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 2px; }
.bn-new-list li + li { border-top: 1px dashed var(--bn-border); }
.bn-new-list li a { flex: 1 1 auto; min-width: 0; color: var(--bn-text); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-new-list li a:hover { color: var(--bn-primary); }
.bn-new-list li span { flex: 0 0 auto; font-size: 12px; color: var(--bn-text-3); }

/* 系统模块 */
.bn-module { padding: 18px 20px; margin-bottom: 20px; }
.bn-module .bn-module-content { font-size: 13.5px; }
.bn-module .bn-module-content ul li { padding: 6px 0; border-bottom: 1px dashed var(--bn-border); display: flex; align-items: center; gap: 8px; }
.bn-module .bn-module-content ul li:last-child { border-bottom: 0; }
.bn-module .bn-module-content a { color: var(--bn-text); }
.bn-module .bn-module-content a:hover { color: var(--bn-primary); }
.bn-module .bn-module-content ul ul li::before { content: "·"; color: var(--bn-primary); font-weight: 700; }

/* ---------- 面包屑 & 列表标题 ---------- */
.bn-crumb { margin-bottom: 14px; font-size: 13px; color: var(--bn-text-3); }
.bn-crumb a { color: var(--bn-text-2); }
.bn-crumb a:hover { color: var(--bn-primary); }
.bn-list { max-width: 900px; }
.bn-list-title { margin-bottom: 18px; font-size: 22px; font-weight: 700; }

/* ---------- 列表卡片 ---------- */
.bn-list-items { display: flex; flex-direction: column; gap: 16px; }
.bn-post { display: flex; align-items: center; gap: 18px; padding: 20px 22px; }
.bn-post:hover { box-shadow: var(--bn-shadow-hover); transform: translateY(-2px); }
.bn-post-icon { position: relative; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--bn-grad-soft); }
.bn-post-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.bn-post-icon .bn-site-icon-fallback { width: 100%; height: 100%; border-radius: 0; font-size: 24px; }
.bn-post-body { flex: 1 1 auto; min-width: 0; }
.bn-post-title { font-size: 17px; font-weight: 600; margin-bottom: 7px; }
.bn-post-title a { color: var(--bn-text); }
.bn-post-title a:hover { color: var(--bn-primary); }
.bn-post-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--bn-text-3); margin-bottom: 7px; flex-wrap: wrap; }
.bn-post-meta span { display: inline-flex; align-items: center; gap: 4px; }
.bn-post-desc { font-size: 13px; color: var(--bn-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bn-post-action { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.bn-post-action .bn-btn { padding: 7px 18px; font-size: 13px; }

/* ---------- 分页 ---------- */
.bn-pagebar { margin-top: 24px; }
.bn-pagebar ul { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.bn-pagebar li a, .bn-pagebar li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--bn-text-2);
    background: var(--bn-card);
    border: 1px solid var(--bn-border);
    transition: all .2s ease;
}
.bn-pagebar li a:hover { color: #fff; background: var(--bn-grad); border-color: transparent; }
.bn-pagebar li span.current { color: #fff; background: var(--bn-grad); border-color: transparent; box-shadow: 0 6px 16px rgba(47, 123, 255, 0.30); }
.bn-pagebar .bn-pg-arrow { font-size: 18px; line-height: 1; }

/* ---------- 文章页 ---------- */
.bn-single { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.bn-single-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bn-single-side { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.bn-article { padding: 28px 30px; }
.bn-article-title { font-size: 25px; font-weight: 800; line-height: 1.4; margin-bottom: 12px; }
.bn-article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--bn-text-3); padding-bottom: 16px; border-bottom: 1px dashed var(--bn-border); margin-bottom: 18px; }
.bn-article-meta a { color: var(--bn-primary); }
.bn-article-actions { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.bn-article-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 16px;
    border-radius: var(--bn-radius-sm);
    background: var(--bn-grad-soft);
    border: 1px solid var(--bn-border);
    margin-bottom: 22px;
}
.bn-info-item { min-width: 0; }
.bn-info-item span { display: block; font-size: 12px; color: var(--bn-text-3); margin-bottom: 3px; }
.bn-article-info strong { font-size: 13.5px; color: var(--bn-text); font-weight: 600; word-break: break-all; }

/* ---------- 收录详情页（快导航式信息卡） ---------- */
.bn-nav-hero { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px; border-radius: var(--bn-radius); background: var(--bn-grad-soft); border: 1px solid var(--bn-border); margin-bottom: 24px; position: relative; overflow: hidden; }
.bn-nav-hero::before { content: ""; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 123, 255, 0.12), transparent 70%); pointer-events: none; }
.bn-nav-hero-head { display: flex; align-items: center; gap: 16px; }
.bn-nav-hero-icon { position: relative; flex: 0 0 auto; width: 60px; height: 60px; border-radius: 15px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--bn-border); box-shadow: 0 6px 16px rgba(47, 123, 255, 0.10); }
.bn-nav-hero-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.bn-nav-hero-icon .bn-site-icon-fallback { width: 100%; height: 100%; border-radius: 0; font-size: 26px; }
.bn-nav-hero-titles { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bn-nav-hero-titles .bn-article-title { margin-bottom: 0; font-size: 28px; }
.bn-nav-fail { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #f87171, #ef4444); vertical-align: middle; }
.bn-nav-stats { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--bn-text-2); }
.bn-nav-stats span { display: inline-flex; align-items: center; gap: 4px; }
.bn-nav-stats span + span::before { content: "·"; margin-right: 2px; color: var(--bn-text-3); }
.bn-nav-slogan { font-size: 14.5px; color: var(--bn-text-2); line-height: 1.7; }
.bn-nav-sub { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--bn-text-3); }
.bn-nav-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.bn-nav-actions .bn-btn { padding: 9px 20px; }
.bn-nav-interact { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 14px; margin-top: 6px; border-top: 1px dashed var(--bn-border); }
.bn-interact { display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px; border-radius: 999px; font-size: 12.5px; color: var(--bn-text-2); background: #fff; border: 1px solid var(--bn-border); cursor: pointer; user-select: none; transition: all .2s ease; }
.bn-interact:hover { color: var(--bn-primary); border-color: var(--bn-primary); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(47, 123, 255, 0.12); }
.bn-interact.on { color: #fff; background: var(--bn-grad); border-color: transparent; }
.bn-interact em { font-style: normal; font-weight: 600; }
.bn-interact svg { flex: 0 0 auto; }
[data-theme="dark"] .bn-interact { background: rgba(255, 255, 255, 0.05); }
.bn-nav-shot { margin-top: 14px; border-radius: var(--bn-radius-sm); overflow: hidden; border: 1px solid var(--bn-border); background: #fff; }
.bn-nav-shot img { display: block; width: 100%; height: auto; }
[data-theme="dark"] .bn-nav-shot { background: rgba(255, 255, 255, 0.04); }
/* 网址提交页：获取网站信息 */
.bn-form-urlrow { display: flex; gap: 8px; }
.bn-form-urlrow input { flex: 1 1 auto; }
.bn-fetch-btn { flex: 0 0 auto; white-space: nowrap; }
.bn-fetch-tip { margin-top: 6px; font-size: 12.5px; color: var(--bn-text-3); }
.bn-fetch-tip.err { color: #ef4444; }
.bn-fetch-shot { margin-top: 8px; border-radius: 10px; overflow: hidden; border: 1px solid var(--bn-border); max-width: 420px; }
.bn-fetch-shot img { display: block; width: 100%; height: auto; }
.bn-qr-mask { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(15, 26, 46, 0.55); backdrop-filter: blur(4px); }
.bn-qr-box { background: #fff; border-radius: 18px; padding: 26px 30px; text-align: center; box-shadow: 0 20px 60px rgba(15, 26, 46, 0.30); }
.bn-qr-box img { width: 200px; height: 200px; border-radius: 12px; }
.bn-qr-box p { margin: 14px 0 12px; font-size: 13px; color: #334155; }
.bn-qr-box .bn-btn { padding: 7px 22px; font-size: 13px; color: #334155; border-color: #dbe4f0; }
[data-theme="dark"] .bn-qr-box { background: #17233c; }
[data-theme="dark"] .bn-qr-box p { color: #cbd9f2; }
[data-theme="dark"] .bn-qr-box .bn-btn { color: #cbd9f2; border-color: #2a3a5c; }
.bn-article-content { font-size: 15px; color: var(--bn-text); word-wrap: break-word; }
.bn-article-content p { margin: 0 0 14px; }
.bn-article-content img { border-radius: 12px; }
.bn-article-content h2, .bn-article-content h3, .bn-article-content h4 { margin: 20px 0 10px; font-weight: 700; }
.bn-article-content a { color: var(--bn-primary); border-bottom: 1px dashed var(--bn-border-2); }
.bn-article-content blockquote { border-left: 4px solid var(--bn-primary); background: var(--bn-grad-soft); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 0 0 14px; color: var(--bn-text-2); }
.bn-article-content code { background: var(--bn-hover); border-radius: 6px; padding: 2px 7px; font-size: 13px; }
.bn-article-content pre { background: #0f1a2e; color: #d7e6ff; padding: 16px; border-radius: 12px; overflow-x: auto; margin: 0 0 14px; }
.bn-article-content pre code { background: transparent; padding: 0; color: inherit; }
.bn-article-content table { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.bn-article-content th, .bn-article-content td { border: 1px solid var(--bn-border); padding: 8px 12px; }
.bn-article-content th { background: var(--bn-grad-soft); }

.bn-article-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--bn-border); }
.bn-tag { padding: 4px 13px; border-radius: 999px; font-size: 12.5px; color: var(--bn-primary); background: var(--bn-grad-soft); border: 1px solid var(--bn-border); transition: all .2s ease; }
.bn-tag:hover { color: #fff; background: var(--bn-grad); border-color: transparent; }

.bn-article-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.bn-pn { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: var(--bn-radius-sm); background: var(--bn-hover); border: 1px solid var(--bn-border); transition: all .2s ease; min-width: 0; }
.bn-pn:hover { border-color: var(--bn-border-2); transform: translateY(-1px); }
.bn-pn span { font-size: 12px; color: var(--bn-text-3); }
.bn-pn strong { font-size: 14px; color: var(--bn-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-pn-next { text-align: right; align-items: flex-end; }

.bn-relate { padding: 20px 24px; }
.bn-relate-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bn-relate-list li a { display: block; padding: 9px 14px; border-radius: var(--bn-radius-sm); background: var(--bn-hover); border: 1px solid transparent; color: var(--bn-text); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all .2s ease; }
.bn-relate-list li a:hover { color: var(--bn-primary); border-color: var(--bn-border-2); }

/* ---------- 评论区 ---------- */
.bn-comments-wrap { padding: 24px 28px; }
.bn-comments { margin-bottom: 20px; }
.bn-comment { display: flex; gap: 12px; padding: 14px 0; }
.bn-comment + .bn-comment { border-top: 1px dashed var(--bn-border); }
.bn-comment-avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--bn-grad-soft); }
.bn-comment-body { flex: 1 1 auto; min-width: 0; }
.bn-comment-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--bn-text-3); margin-bottom: 5px; }
.bn-comment-name { font-weight: 600; color: var(--bn-primary); }
.bn-comment-reply { color: var(--bn-text-3); }
.bn-comment-reply:hover { color: var(--bn-primary); }
.bn-comment-content { font-size: 14px; color: var(--bn-text); word-wrap: break-word; }
.bn-comment .bn-comment { margin-left: 22px; padding-left: 16px; border-left: 2px solid var(--bn-border); }

.bn-comment-post { margin-top: 8px; padding-top: 16px; border-top: 1px dashed var(--bn-border); }
.bn-cp-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.bn-cp-title a { font-size: 12.5px; color: var(--bn-text-3); font-weight: 400; }
.bn-cp-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.bn-comment-post input[type="text"], .bn-comment-post textarea {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid var(--bn-input-border);
    border-radius: var(--bn-radius-sm);
    background: var(--bn-input);
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.bn-comment-post input[type="text"]:focus, .bn-comment-post textarea:focus { border-color: var(--bn-primary); box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.10); }
.bn-comment-post textarea { resize: vertical; }
.bn-comment-post .bn-cp-submit { margin-top: 10px; text-align: right; }
.bn-comment-post .bn-cp-submit input {
    padding: 9px 28px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: var(--bn-grad);
    box-shadow: 0 5px 14px rgba(47, 123, 255, 0.26);
    transition: filter .2s ease, transform .2s ease;
}
.bn-comment-post .bn-cp-submit input:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ---------- 空状态 ---------- */
.bn-empty { padding: 60px 30px; text-align: center; color: var(--bn-text-2); }
.bn-empty p { margin-bottom: 14px; }
.bn-empty .bn-btn { margin: 0 4px; }
.bn-404-code { font-size: 72px; font-weight: 800; background: var(--bn-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; line-height: 1.2; }

/* ---------- 提交收录页 ---------- */
.bn-submit { max-width: 760px; }
.bn-submit-card { padding: 30px 34px; }
.bn-submit-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.bn-submit-desc { font-size: 13.5px; color: var(--bn-text-2); margin-bottom: 20px; }
.bn-alert { padding: 12px 16px; border-radius: var(--bn-radius-sm); font-size: 14px; margin-bottom: 16px; }
.bn-alert-ok { color: #0e7a3d; background: rgba(46, 200, 110, 0.14); border: 1px solid rgba(46, 200, 110, 0.35); }
.bn-alert-err { color: #c2402e; background: rgba(255, 90, 70, 0.12); border: 1px solid rgba(255, 90, 70, 0.35); }
html[data-theme="dark"] .bn-alert-ok { color: #6ee7a5; }
html[data-theme="dark"] .bn-alert-err { color: #ff9c8f; }
.bn-form-row { margin-bottom: 18px; }
.bn-form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--bn-text); }
.bn-form-row label em { color: #ff5f4e; font-style: normal; }
.bn-form-row input[type="text"], .bn-form-row select, .bn-form-row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--bn-input-border);
    border-radius: var(--bn-radius-sm);
    background: var(--bn-input);
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.bn-form-row input[type="text"]:focus, .bn-form-row select:focus, .bn-form-row textarea:focus { border-color: var(--bn-primary); box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.10); }
.bn-form-row textarea { resize: vertical; }
.bn-form-vcode { display: flex; align-items: center; gap: 12px; }
.bn-form-vcode input { flex: 0 0 140px; }
.bn-vcode-q {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: var(--bn-radius-sm);
    font-size: 15px;
    font-weight: 700;
    color: var(--bn-primary);
    background: var(--bn-grad-soft);
    border: 1px dashed var(--bn-border-2);
    letter-spacing: 2px;
    user-select: none;
}
.bn-form-submit { display: flex; gap: 12px; align-items: center; margin-top: 22px; }

/* ---------- 页脚 ---------- */
.bn-footer { border-top: 1px solid var(--bn-border); background: var(--bn-header); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 22px 0; }
.bn-footer .bn-container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--bn-text-3); }
.bn-footer a { color: var(--bn-text-2); }
.bn-footer a:hover { color: var(--bn-primary); }

/* 返回顶部 */
.bn-backtop {
    position: fixed;
    right: 26px;
    bottom: 34px;
    z-index: 99;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--bn-border);
    background: var(--bn-card);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--bn-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--bn-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: all .3s ease;
}
.bn-backtop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.bn-backtop:hover { background: var(--bn-grad); color: #fff; border-color: transparent; }

/* ---------- 动画 ---------- */
@keyframes bn-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.bn-cate, .bn-side-card, .bn-post, .bn-article { animation: bn-fade-up .45s ease both; }
.bn-cate:nth-child(2) { animation-delay: .05s; }
.bn-cate:nth-child(3) { animation-delay: .1s; }
.bn-cate:nth-child(4) { animation-delay: .15s; }
.bn-cate:nth-child(5) { animation-delay: .2s; }
.bn-cate:nth-child(6) { animation-delay: .25s; }
.bn-cate:nth-child(7) { animation-delay: .3s; }
.bn-cate:nth-child(8) { animation-delay: .35s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .bn-home, .bn-single { grid-template-columns: 1fr; }
    .bn-home-side { display: grid; grid-template-columns: 1fr 1fr; }
    .bn-site-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
    .bn-header-inner { flex-wrap: wrap; gap: 12px; }
    .bn-search { order: 3; flex-basis: 100%; max-width: none; }
    .bn-actions { margin-left: auto; }
    .bn-site-grid { grid-template-columns: repeat(3, 1fr); }
    .bn-home-side { grid-template-columns: 1fr; }
    .bn-post { flex-wrap: wrap; }
    .bn-post-action { flex-direction: row; width: 100%; }
    .bn-post-action .bn-btn { flex: 1; }
}
@media (max-width: 640px) {
    .bn-nav-list { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bn-card-solid); border-bottom: 1px solid var(--bn-border); box-shadow: var(--bn-shadow); padding: 8px 4%; flex-direction: column; align-items: stretch; }
    .bn-nav-list.open { display: flex; }
    .bn-nav-list li a { padding: 12px 10px; }
    .bn-nav-toggle { display: inline-flex; }
    .bn-site-grid { grid-template-columns: repeat(2, 1fr); }
    .bn-article { padding: 20px 18px; }
    .bn-article-pn { grid-template-columns: 1fr; }
    .bn-relate-list { grid-template-columns: 1fr; }
    .bn-cp-fields { grid-template-columns: 1fr; }
    .bn-footer .bn-container { justify-content: center; text-align: center; }
    .bn-topbar-inner { justify-content: center; }
    .bn-topbar-right { display: none; }
    .bn-btn-random span { display: none; }
    .bn-btn-random { padding: 0; width: 40px; height: 40px; }
}
