/* ====================================================================
   离尘下载中心 — Neo-Brutalism 设计系统
   规格：零圆角 / 2-4px 纯黑描边 / 硬偏移阴影 / 高饱和撞色功能编码 / 等宽字体
   性能约定：动画仅用 transform/opacity/box-shadow（合成器友好，不阻塞文字）
   ==================================================================== */

:root {
    --nb-yellow: #FFE66D;
    --nb-mint: #95E7D3;
    --nb-cyan: #4ECDC4;
    --nb-red: #FF6B6B;
    --nb-blue: #7FC8F8;
    --nb-ink: #000;
    --nb-ink2: #333;
    --nb-ink3: #666;
    --nb-bg: #FFF;
    --nb-bg-alt: #F2F0E9;
    --nb-shadow: 6px 6px 0 0 #000;
    --nb-shadow-lg: 10px 10px 0 0 #000;
    --nb-shadow-hover: 12px 12px 0 0 var(--nb-red);
    --nb-bw: 3px;
    --nb-font: 'JetBrains Mono', 'Cascadia Mono', 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', monospace, sans-serif;
}

* { border-radius: 0 !important; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--nb-font);
    background: var(--nb-bg);
    color: var(--nb-ink);
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--nb-yellow); color: #000; }

/* 硬阴影滚动条 */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--nb-bg-alt); border-left: 2px solid #000; }
::-webkit-scrollbar-thumb { background: #000; }

a { color: inherit; }

/* ==================== 顶部导航 ==================== */
.nb-nav {
    position: sticky; top: 0; z-index: 900;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 12px 28px;
    background: var(--nb-bg);
    border-bottom: 4px solid #000;
}

.nb-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; font-weight: 900; font-size: 18px; letter-spacing: 0.5px;
}
.nb-brand .nb-logo {
    width: 34px; height: 34px; background: #000; color: var(--nb-yellow);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 900;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 0 var(--nb-red);
}
.nb-brand small { color: var(--nb-ink3); font-weight: 700; font-size: 11px; }

.nb-nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nb-nav-links a {
    text-decoration: none; font-weight: 700; font-size: 13px;
    padding: 7px 14px; border: 3px solid transparent;
}
.nb-nav-links a:hover { border-color: #000; background: var(--nb-bg-alt); }
.nb-nav-links a.active { background: var(--nb-yellow); border-color: #000; box-shadow: 4px 4px 0 0 #000; }

.nb-nav-user { display: flex; align-items: center; gap: 10px; }
.nb-avatar {
    width: 32px; height: 32px; background: var(--nb-mint); border: 3px solid #000;
    display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px;
}

/* ==================== 按钮 ==================== */
.nb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
    padding: 8px 18px; border: 3px solid #000; background: var(--nb-bg); color: #000;
    text-decoration: none; line-height: 1.4; white-space: nowrap;
    transition: box-shadow .18s ease, transform .18s ease;
}
.nb-btn:hover { box-shadow: var(--nb-shadow); transform: translate(-2px, -2px); }
.nb-btn:active { box-shadow: 2px 2px 0 0 #000; transform: translate(1px, 1px); }
.nb-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

.nb-btn-primary { background: var(--nb-red); color: #fff; }
.nb-btn-yellow { background: var(--nb-yellow); }
.nb-btn-mint { background: var(--nb-mint); }
.nb-btn-dark { background: #000; color: #fff; }
.nb-btn-sm { padding: 4px 10px; font-size: 12px; border-width: 2px; }
.nb-btn-danger { border-color: #000; color: var(--nb-red); background: var(--nb-bg); }

/* ==================== Hero ==================== */
.nb-hero { text-align: center; padding: 56px 20px 8px; }
.nb-hero h1 {
    font-size: clamp(2.4rem, 7vw, 5.2rem); font-weight: 900; line-height: 1.06;
    margin: 0 0 10px; letter-spacing: -1px; text-transform: uppercase;
}
.nb-hero h1 .hl { background: var(--nb-yellow); padding: 0 12px; border: 4px solid #000; display: inline-block; box-shadow: 8px 8px 0 0 #000; }
.nb-hero p { color: var(--nb-ink2); font-weight: 500; margin: 18px 0 0; }

.nb-statbar {
    display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px;
}
.nb-stat {
    border: 3px solid #000; padding: 10px 22px; background: var(--nb-bg);
    font-weight: 800; font-size: 13px; display: flex; gap: 10px; align-items: center;
}
.nb-stat b { font-size: 20px; font-weight: 900; }
.nb-stat.s1 { background: var(--nb-mint); }
.nb-stat.s2 { background: var(--nb-yellow); }
.nb-stat.s3 { background: var(--nb-cyan); }

/* ==================== 搜索 + 筛选 ==================== */
.nb-toolbar { max-width: 1080px; margin: 34px auto 0; padding: 0 20px; }

.nb-search { display: flex; border: 4px solid #000; background: var(--nb-yellow); }
.nb-search input {
    flex: 1; border: none; outline: none; background: transparent;
    font-family: inherit; font-size: 15px; font-weight: 600; padding: 14px 16px; color: #000;
    min-width: 0;
}
.nb-search input::placeholder { color: #6b5d10; }
.nb-search button {
    font-family: inherit; font-weight: 900; font-size: 14px; cursor: pointer;
    border: none; border-left: 4px solid #000; background: #000; color: var(--nb-yellow);
    padding: 0 26px;
}
.nb-search button:hover { background: var(--nb-red); color: #fff; }

.nb-filters {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    margin-top: 18px;
}
.nb-chip {
    font-family: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
    border: 3px solid #000; padding: 6px 14px; background: var(--nb-bg);
    display: inline-flex; align-items: center; gap: 7px;
    transition: box-shadow .15s ease, transform .15s ease;
}
.nb-chip:hover { box-shadow: 4px 4px 0 0 #000; transform: translate(-1px, -1px); }
.nb-chip .cnt { font-size: 11px; background: #000; color: #fff; padding: 1px 7px; }
.nb-chip.cat-all { background: var(--nb-bg); }
.nb-chip.cat-document { background: var(--nb-mint); }
.nb-chip.cat-image { background: var(--nb-cyan); }
.nb-chip.cat-archive { background: var(--nb-yellow); }
.nb-chip.cat-software { background: var(--nb-red); color: #fff; }
.nb-chip.cat-software .cnt { background: #fff; color: #000; }
.nb-chip.cat-media { background: var(--nb-blue); }
.nb-chip.cat-other { background: var(--nb-bg-alt); }
.nb-chip.active { box-shadow: 5px 5px 0 0 #000; transform: translate(-2px, -2px); outline: 3px solid #000; outline-offset: 1px; }

.nb-sorts { margin-left: auto; display: flex; }
.nb-sort {
    font-family: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
    border: 3px solid #000; padding: 6px 14px; background: var(--nb-bg);
}
.nb-sort + .nb-sort { border-left: none; }
.nb-sort.active { background: #000; color: #fff; }

.nb-result-line { color: var(--nb-ink3); font-size: 12.5px; font-weight: 700; margin: 16px 2px 0; }

/* ==================== 卡片网格 ==================== */
.nb-main { max-width: 1080px; margin: 0 auto; padding: 26px 20px 70px; }

.nb-grid {
    display: grid; gap: 26px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.nb-card {
    border: 4px solid #000; background: var(--nb-bg);
    display: flex; flex-direction: column; cursor: pointer;
    transition: box-shadow .2s ease, transform .2s ease;
}
.nb-card:hover { box-shadow: var(--nb-shadow-hover); transform: translate(-3px, -3px); }

.nb-card-cover {
    height: 150px; border-bottom: 4px solid #000;
    display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.nb-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nb-card-cover .cover-icon { width: 56px; height: 56px; }
.nb-card-cover.cat-doc { background: var(--nb-mint); }
.nb-card-cover.cat-img { background: var(--nb-cyan); }
.nb-card-cover.cat-arc { background: var(--nb-yellow); }
.nb-card-cover.cat-soft { background: var(--nb-red); }
.nb-card-cover.cat-med { background: var(--nb-blue); }
.nb-card-cover.cat-oth { background: var(--nb-bg-alt); }

.nb-card-body { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nb-card-title {
    font-size: 17px; font-weight: 900; line-height: 1.3; margin: 0;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.nb-card-desc {
    color: var(--nb-ink2); font-size: 12.5px; line-height: 1.55; margin: 0;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.nb-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.nb-tag { font-size: 10.5px; font-weight: 800; border: 2px solid #000; padding: 1px 8px; }
.nb-tag.t-document { background: var(--nb-mint); }
.nb-tag.t-image { background: var(--nb-cyan); }
.nb-tag.t-archive { background: var(--nb-yellow); }
.nb-tag.t-software { background: var(--nb-red); color: #fff; }
.nb-tag.t-media { background: var(--nb-blue); }
.nb-tag.t-other { background: var(--nb-bg-alt); }
.nb-tag.t-lock { background: #000; color: var(--nb-yellow); }
.nb-tag.t-vip { background: #000; color: var(--nb-yellow); border-color: #000; box-shadow: 2px 2px 0 0 var(--nb-yellow); }
.nb-tag.t-ver { background: var(--nb-bg); color: var(--nb-ink2); }

/* 会员门禁态下载按钮（黑底黄字，提示开通而非可点击下载） */
.nb-btn-dl.nb-btn-locked { background: #000; color: var(--nb-yellow); }
.nb-btn-dl.nb-btn-locked:hover { box-shadow: 10px 10px 0 0 var(--nb-yellow); }

.nb-card-foot {
    margin-top: auto; padding-top: 12px; border-top: 3px solid #000;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.nb-stats { display: flex; gap: 12px; font-size: 11.5px; font-weight: 800; color: var(--nb-ink2); }
.nb-stats span { display: inline-flex; gap: 4px; align-items: center; }

.nb-fav {
    width: 34px; height: 34px; border: 3px solid #000; background: var(--nb-bg);
    font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: box-shadow .15s ease, transform .15s ease;
}
.nb-fav:hover { box-shadow: 4px 4px 0 0 #000; transform: translate(-1px, -1px); }
.nb-fav.on { background: var(--nb-yellow); }

/* ==================== 进入动画 ==================== */
@keyframes neo-fade-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.neo-in { animation: neo-fade-in .45s cubic-bezier(.2,.8,.3,1) both; }

@keyframes neo-pop {
    0% { opacity: 0; transform: scale(.92); }
    100% { opacity: 1; transform: scale(1); }
}

/* ==================== 分页 ==================== */
.nb-pager { display: flex; justify-content: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.nb-pager button {
    font-family: inherit; font-weight: 800; font-size: 13px; cursor: pointer;
    min-width: 38px; padding: 7px 12px; border: 3px solid #000; background: var(--nb-bg);
}
.nb-pager button:hover:not(:disabled) { background: var(--nb-yellow); box-shadow: 4px 4px 0 0 #000; }
.nb-pager button.active { background: #000; color: #fff; }
.nb-pager button:disabled { opacity: .35; cursor: not-allowed; }

/* ==================== 排行榜 ==================== */
.nb-rank-list { display: flex; flex-direction: column; gap: 16px; }
.nb-rank-item {
    display: flex; align-items: center; gap: 16px; padding: 14px 18px;
    border: 4px solid #000; background: var(--nb-bg); cursor: pointer;
    transition: box-shadow .2s ease, transform .2s ease;
}
.nb-rank-item:hover { box-shadow: 10px 10px 0 0 var(--nb-yellow); transform: translate(-2px, -2px); }
.nb-rank-no {
    width: 40px; height: 40px; flex: none; border: 3px solid #000;
    display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px;
}
.nb-rank-no.r1 { background: var(--nb-yellow); }
.nb-rank-no.r2 { background: var(--nb-bg-alt); }
.nb-rank-no.r3 { background: var(--nb-mint); }
.nb-rank-info { flex: 1; min-width: 0; }
.nb-rank-info h3 { margin: 0; font-size: 16px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-rank-info p { margin: 2px 0 0; font-size: 12px; color: var(--nb-ink3); font-weight: 700; }
.nb-rank-dl { text-align: right; font-weight: 900; font-size: 18px; }
.nb-rank-dl small { display: block; font-size: 10.5px; color: var(--nb-ink3); font-weight: 700; }

/* ==================== 详情页 ==================== */
.nb-detail { max-width: 1000px; margin: 0 auto; padding: 40px 20px 70px; }
.nb-back-link { display: inline-block; font-weight: 800; font-size: 13px; text-decoration: none; border: 3px solid #000; padding: 6px 14px; background: var(--nb-bg); margin-bottom: 24px; }
.nb-back-link:hover { background: var(--nb-yellow); box-shadow: 4px 4px 0 0 #000; }

.nb-detail-head { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.nb-detail-icon {
    width: 96px; height: 96px; flex: none; border: 4px solid #000;
    display: flex; align-items: center; justify-content: center;
}
.nb-detail-icon img { width: 52px; height: 52px; }
.nb-detail-icon.c-document { background: var(--nb-mint); }
.nb-detail-icon.c-image { background: var(--nb-cyan); }
.nb-detail-icon.c-archive { background: var(--nb-yellow); }
.nb-detail-icon.c-software { background: var(--nb-red); }
.nb-detail-icon.c-media { background: var(--nb-blue); }
.nb-detail-icon.c-other { background: var(--nb-bg-alt); }

.nb-detail-meta { flex: 1; min-width: 260px; }
.nb-detail-meta h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 900; line-height: 1.15; word-break: break-all; }
.nb-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.nb-meta-row .nb-tag { font-size: 11.5px; padding: 2px 10px; }
.nb-rating-line { margin-top: 10px; font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.nb-stars { color: #000; letter-spacing: 2px; }
.nb-stars .dim { opacity: .25; }

.nb-detail-actions { display: flex; gap: 12px; margin: 26px 0 8px; flex-wrap: wrap; }
.nb-btn-dl {
    font-size: 16px; font-weight: 900; padding: 13px 34px;
    background: var(--nb-red); color: #fff; border: 4px solid #000;
}
.nb-btn-dl:hover { box-shadow: var(--nb-shadow-lg); }

.nb-section { margin-top: 40px; }
.nb-section > h2 {
    font-size: 20px; font-weight: 900; margin: 0 0 16px;
    display: inline-block; background: var(--nb-yellow); border: 3px solid #000; padding: 4px 14px;
}

/* Markdown 正文（阅读优先：黑白稿、清晰层级、等宽代码） */
.nb-md { border: 4px solid #000; padding: 22px 26px; background: var(--nb-bg); overflow-wrap: break-word; }
.nb-md h1, .nb-md h2, .nb-md h3 { margin: 18px 0 8px; line-height: 1.3; font-weight: 900; }
.nb-md h1 { font-size: 22px; border-bottom: 3px solid #000; padding-bottom: 6px; }
.nb-md h2 { font-size: 18px; }
.nb-md h3 { font-size: 16px; }
.nb-md p { margin: 8px 0; }
.nb-md ul, .nb-md ol { margin: 8px 0; padding-left: 24px; }
.nb-md li { margin: 4px 0; }
.nb-md code {
    font-family: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
    background: var(--nb-yellow); border: 1px solid #000; padding: 0 5px; font-size: 13px;
}
.nb-md pre {
    background: #000; color: var(--nb-yellow); border: 3px solid #000;
    padding: 14px 16px; overflow-x: auto; margin: 10px 0;
}
.nb-md pre code { background: none; border: none; color: inherit; padding: 0; }
.nb-md blockquote { border-left: 6px solid var(--nb-yellow); background: var(--nb-bg-alt); margin: 10px 0; padding: 8px 16px; }
.nb-md table { border-collapse: collapse; margin: 10px 0; }
.nb-md th, .nb-md td { border: 2px solid #000; padding: 6px 12px; font-size: 13px; }
.nb-md th { background: var(--nb-bg-alt); }
.nb-md a { color: #000; background: var(--nb-mint); text-decoration: underline; font-weight: 700; }

/* 预览区 */
.nb-preview { border: 4px solid #000; background: var(--nb-bg-alt); position: relative; overflow: hidden; }
.nb-preview img { display: block; max-width: 100%; max-height: 520px; margin: 0 auto; }
.nb-preview .pv-center { display: flex; align-items: center; justify-content: center; min-height: 240px; padding: 30px; flex-direction: column; gap: 10px; }
.nb-preview pre {
    margin: 0; padding: 20px 24px; max-height: 480px; overflow: auto;
    font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; color: #111;
}
.nb-preview iframe { width: 100%; height: 560px; border: none; display: block; }
.nb-preview audio, .nb-preview video { width: 100%; display: block; padding: 20px; }
.nb-preview .trunc-note {
    position: sticky; bottom: 0; background: var(--nb-yellow); border-top: 3px solid #000;
    font-size: 12px; font-weight: 800; padding: 6px 14px;
}

/* 截图画廊 */
.nb-gallery { border: 4px solid #000; background: #000; }
.nb-gallery-main { position: relative; display: flex; align-items: center; justify-content: center; background: #111; min-height: 220px; }
.nb-gallery-main img { max-width: 100%; max-height: 480px; display: block; transition: opacity .18s ease; }
.nb-gal-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border: 3px solid #000; background: var(--nb-yellow);
    font-size: 20px; font-weight: 900; cursor: pointer; font-family: inherit;
}
.nb-gal-nav:hover { background: var(--nb-red); color: #fff; }
.nb-gal-nav.prev { left: 10px; }
.nb-gal-nav.next { right: 10px; }
.nb-gallery-cap {
    background: var(--nb-bg); border-top: 4px solid #000; padding: 8px 16px;
    font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; gap: 10px;
}
.nb-gallery-cap .pos { color: var(--nb-ink3); font-size: 12px; }
.nb-gallery-thumbs { display: flex; gap: 8px; padding: 10px 12px; background: var(--nb-bg); border-top: 3px solid #000; overflow-x: auto; }
.nb-gallery-thumbs img { width: 74px; height: 54px; object-fit: cover; border: 3px solid transparent; cursor: pointer; opacity: .55; flex: none; }
.nb-gallery-thumbs img.on, .nb-gallery-thumbs img:hover { border-color: #000; opacity: 1; }

/* 灯箱 */
.nb-lightbox {
    position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.88);
    display: flex; align-items: center; justify-content: center; cursor: zoom-out;
    animation: neo-fade-in .2s ease both;
}
.nb-lightbox img { max-width: 96vw; max-height: 94vh; border: 4px solid #fff; }

/* ==================== 评论区 ==================== */
.nb-review-form { border: 4px solid #000; padding: 18px 20px; background: var(--nb-bg); }
.nb-star-picker { display: flex; gap: 6px; font-size: 26px; cursor: pointer; margin: 8px 0 12px; user-select: none; }
.nb-star-picker span { color: #000; opacity: .22; transition: opacity .1s ease, transform .1s ease; }
.nb-star-picker span.on { opacity: 1; background: var(--nb-yellow); }
.nb-star-picker span:hover { transform: scale(1.15); }
.nb-review-form textarea {
    width: 100%; min-height: 92px; resize: vertical;
    font-family: inherit; font-size: 14px; padding: 12px 14px;
    border: 3px solid #000; background: var(--nb-bg-alt); outline: none; color: #000;
}
.nb-review-form textarea:focus { background: var(--nb-bg); box-shadow: 5px 5px 0 0 var(--nb-yellow); }

.nb-review-item { border: 3px solid #000; padding: 14px 18px; background: var(--nb-bg); display: flex; gap: 14px; }
.nb-review-item + .nb-review-item { margin-top: 12px; }
.nb-review-user { flex: none; text-align: center; width: 76px; }
.nb-review-user .nb-avatar { margin: 0 auto 6px; }
.nb-review-user .nm { font-size: 12px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-review-user .vip { font-size: 10px; background: #000; color: var(--nb-yellow); padding: 0 5px; font-weight: 800; }
.nb-review-main { flex: 1; min-width: 0; }
.nb-review-head { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--nb-ink3); font-weight: 700; }
.nb-review-head .nb-stars { font-size: 13px; }
.nb-review-text { margin: 6px 0 0; font-size: 14px; color: var(--nb-ink2); word-break: break-word; white-space: pre-wrap; }
.nb-review-del { margin-left: auto; background: none; border: none; color: var(--nb-red); font-weight: 900; cursor: pointer; font-family: inherit; font-size: 12px; }
.nb-review-del:hover { text-decoration: underline; }

/* ==================== 模态框 / Toast ==================== */
.nb-overlay {
    position: fixed; inset: 0; z-index: 1500; background: rgba(0,0,0,.45);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.nb-overlay.show { display: flex; }
.nb-modal {
    background: var(--nb-bg); border: 4px solid #000; box-shadow: var(--nb-shadow-lg);
    width: 100%; max-width: 430px; padding: 30px 30px 26px; position: relative;
    animation: neo-pop .22s cubic-bezier(.2,.8,.3,1) both;
}
.nb-modal.wide { max-width: 780px; }
.nb-modal-close {
    position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
    border: 3px solid #000; background: var(--nb-bg); font-weight: 900; cursor: pointer; font-family: inherit;
}
.nb-modal-close:hover { background: var(--nb-red); color: #fff; }
.nb-modal h3 { margin: 0 0 18px; font-size: 22px; font-weight: 900; }

.nb-tabs { display: flex; border: 3px solid #000; margin-bottom: 20px; }
.nb-tabs button {
    flex: 1; font-family: inherit; font-weight: 900; font-size: 14px; padding: 10px;
    border: none; background: var(--nb-bg); cursor: pointer;
}
.nb-tabs button + button { border-left: 3px solid #000; }
.nb-tabs button.active { background: var(--nb-yellow); }

.nb-field { margin-bottom: 14px; }
.nb-field label { display: block; font-size: 12px; font-weight: 900; margin-bottom: 5px; }
.nb-field input, .nb-field select, .nb-field textarea {
    width: 100%; font-family: inherit; font-size: 14px; padding: 10px 12px;
    border: 3px solid #000; background: var(--nb-bg); outline: none; color: #000;
}
.nb-field input:focus, .nb-field select:focus, .nb-field textarea:focus { box-shadow: 5px 5px 0 0 var(--nb-cyan); }
.nb-form-msg { text-align: center; font-size: 12.5px; font-weight: 800; min-height: 18px; margin-top: 10px; }
.nb-form-msg.ok { color: #0a7d43; }
.nb-form-msg.err { color: var(--nb-red); }

.nb-toast {
    position: fixed; top: 20px; right: 20px; z-index: 3000;
    border: 4px solid #000; box-shadow: var(--nb-shadow);
    background: var(--nb-bg); font-weight: 800; font-size: 13.5px;
    padding: 12px 20px; max-width: 380px;
    transform: translateX(calc(100% + 40px));
    transition: transform .28s cubic-bezier(.2,.9,.3,1);
}
.nb-toast.show { transform: translateX(0); }
.nb-toast.success { background: var(--nb-mint); }
.nb-toast.error { background: var(--nb-red); color: #fff; }
.nb-toast.info { background: var(--nb-yellow); }
.nb-toast.warn { background: var(--nb-blue); }

/* ==================== 空态 / 加载 ==================== */
.nb-empty {
    border: 4px dashed #000; padding: 60px 24px; text-align: center;
    font-weight: 800; color: var(--nb-ink2); background: var(--nb-bg-alt);
}
.nb-empty .big { font-size: 34px; display: block; margin-bottom: 8px; }

.nb-loading { text-align: center; padding: 60px 0; font-weight: 800; color: var(--nb-ink3); }
.nb-spin {
    display: inline-block; width: 34px; height: 34px; border: 5px solid #000;
    border-right-color: transparent; animation: nb-rot .7s linear infinite; margin-bottom: 10px;
}
@keyframes nb-rot { to { transform: rotate(360deg); } }

/* ==================== 页脚 ==================== */
.nb-footer {
    border-top: 4px solid #000; background: var(--nb-bg-alt);
    padding: 28px 20px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--nb-ink2);
}
.nb-footer a { color: #000; font-weight: 900; }

/* ==================== 响应式 ==================== */
@media (max-width: 760px) {
    .nb-nav { padding: 10px 14px; flex-wrap: wrap; }
    .nb-nav-links { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
    .nb-hero { padding-top: 34px; }
    .nb-grid { grid-template-columns: 1fr; gap: 18px; }
    .nb-detail-head { flex-direction: column; }
    .nb-sorts { margin-left: 0; }
    .nb-modal { padding: 22px 18px; }
}

/* ==================== 无障碍：减少动效 ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
}
