/* ================================================================
   KrBlog — BLUEPRINT EDITION
   技术蓝图 × 瑞士直角排版 × 轻量新粗野主义
   ----------------------------------------------------------------
   设计语言：
   · 蓝图：工程网格纸、绘图罗盘、标注刻度、单色图纸编号
   · 瑞士：严格直角、强对比、左对齐、模块化信息层级
   · 新粗野：2px 墨线描边、硬投影、明黄/电蓝点缀、生猛按压反馈
   ================================================================ */

/* ---------------- 1. 设计令牌 ---------------- */
:root {
    --ink: #0C0C0D;
    --paper: #F2EFE6;
    --surface: #FBF9F3;
    --card: #FFFFFF;
    --blue: #1B4DFF;
    --navy: #0E2A52;
    --yellow: #FFD53D;
    --red: #FF4A36;
    --muted: #6E6A61;
    --line: 1px solid rgba(12, 12, 13, .22);
    --grid: rgba(14, 42, 82, .075);
    --grid-major: rgba(14, 42, 82, .16);
    --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
    --hard-sm: 3px 3px 0 0 var(--ink);
    --hard: 4px 4px 0 0 var(--ink);
    --hard-lg: 6px 6px 0 0 var(--ink);
}

/* ---------------- 2. 图纸底 & 应用外壳 ---------------- */
body.bp {
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        linear-gradient(var(--grid-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
    background-position: -1px -1px;
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.bp ::selection {
    background: var(--yellow);
    color: var(--ink);
}

.bp-shell {
    position: relative;
    background: var(--surface);
    border-left: 2px solid var(--ink);
    border-right: 2px solid var(--ink);
    min-height: 100vh;
}
.bp-main {
    padding-bottom: 104px;
}

/* ---------------- 3. 工具类覆盖（直角/硬影/墨线） ---------------- */
body.bp [class*="rounded"] {
    border-radius: 0 !important;
}
body.bp .shadow-sm {
    box-shadow: var(--hard-sm) !important;
}
body.bp .shadow {
    box-shadow: var(--hard) !important;
}
body.bp .shadow-lg,
body.bp .shadow-xl {
    box-shadow: var(--hard-lg) !important;
}
body.bp .border-gray-100,
body.bp .border-gray-200,
body.bp .border-gray-300 {
    border-color: var(--ink) !important;
}
body.bp .border-indigo-200 {
    border-color: var(--blue) !important;
}
body.bp .text-indigo-500,
body.bp .text-indigo-600,
body.bp .text-indigo-700 {
    color: var(--blue) !important;
}
body.bp .bg-indigo-50 {
    background: #EAF0FF !important;
}
body.bp .bg-gray-50 {
    background: #F6F3EB !important;
}
body.bp .bg-gray-100 {
    background: #EFEBE0 !important;
}
body.bp .text-gray-900,
body.bp .text-gray-800,
body.bp .text-gray-700 {
    color: var(--ink) !important;
}
body.bp .text-gray-500,
body.bp .text-gray-400 {
    color: var(--muted) !important;
}
body.bp main .border-b,
body.bp main .border-t {
    border-color: rgba(12, 12, 13, .22) !important;
}
body.bp img.avatar-img {
    border: 2px solid var(--ink) !important;
    background: #EFEBE0;
    object-fit: cover;
}

/* ---------------- 4. 蓝图加载动画 ---------------- */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        linear-gradient(var(--grid-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
    transition: none;
    opacity: 1;
    animation: bp-ld-auto .55s cubic-bezier(.76, 0, .24, 1) 7s forwards;
}
#page-loader.hide {
    opacity: 1;
    pointer-events: none;
    visibility: visible;
    animation: bp-ld-out .55s cubic-bezier(.76, 0, .24, 1) forwards;
}
@keyframes bp-ld-out {
    to { transform: translate3d(0, -101%, 0); }
}
@keyframes bp-ld-auto {
    to { transform: translate3d(0, -101%, 0); visibility: hidden; }
}

/* 扫描光带 */
#page-loader::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -35%;
    height: 35%;
    background: linear-gradient(to bottom, rgba(27, 77, 255, 0), rgba(27, 77, 255, .05) 35%, rgba(27, 77, 255, .10) 65%, rgba(27, 77, 255, 0));
    animation: bp-ld-scan 2.4s linear infinite;
    pointer-events: none;
}
@keyframes bp-ld-scan {
    to { transform: translateY(390%); }
}

/* 四角图纸标注 */
.ld-meta {
    position: absolute;
    z-index: 3;
    font: 700 8px/1.5 var(--mono);
    letter-spacing: .2em;
    color: var(--muted);
    text-transform: uppercase;
    white-space: nowrap;
}
.ld-meta--tl { top: 16px; left: 16px; }
.ld-meta--tr { top: 16px; right: 16px; text-align: right; }
.ld-meta--bl { bottom: 16px; left: 16px; }
.ld-meta--br { bottom: 16px; right: 16px; text-align: right; }
.ld-meta--tl::before,
.ld-meta--tr::before,
.ld-meta--bl::before,
.ld-meta--br::before {
    content: "+ ";
    color: var(--blue);
}

.ld-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: opacity .25s ease, transform .25s ease;
}
#page-loader.hide .ld-center {
    opacity: 0;
    transform: translateY(-12px);
}

/* 罗盘 */
.ld-compass {
    width: 132px;
    height: 132px;
    overflow: visible;
}
.ld-compass__ring,
.ld-compass__ring2,
.ld-compass__cross line,
.ld-compass__ticks line {
    fill: none;
    stroke: var(--navy);
    stroke-linecap: square;
}
.ld-compass__ring {
    stroke-width: 1.6;
    stroke-dasharray: 366;
    stroke-dashoffset: 366;
    animation: bp-ld-draw 1s ease .05s forwards;
}
.ld-compass__ring2 {
    stroke-width: 1;
    stroke-dasharray: 252;
    stroke-dashoffset: 252;
    opacity: .55;
    animation: bp-ld-draw 1.1s ease .25s forwards;
}
.ld-compass__ticks line {
    stroke-width: 1.6;
    opacity: 0;
    animation: bp-ld-fade .5s ease .5s forwards;
}
.ld-compass__cross {
    transform-origin: 70px 70px;
    animation: bp-ld-rot 9s linear infinite;
}
.ld-compass__cross line {
    stroke-width: 1;
    stroke-dasharray: 6 5;
    opacity: .5;
}
@keyframes bp-ld-draw { to { stroke-dashoffset: 0; } }
@keyframes bp-ld-fade { to { opacity: .85; } }
@keyframes bp-ld-rot { to { transform: rotate(360deg); } }

/* 字标 */
.ld-mark {
    display: flex;
    align-items: baseline;
    gap: 1px;
    font-weight: 800;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -.04em;
}
.ld-mark span {
    display: inline-block;
    opacity: 0;
    transform: translateY(16px);
    animation: bp-ld-rise .5s cubic-bezier(.2, .8, .2, 1) forwards;
}
.ld-mark span:nth-child(1) { animation-delay: .12s; }
.ld-mark span:nth-child(2) { animation-delay: .19s; }
.ld-mark span:nth-child(3) { animation-delay: .26s; color: var(--blue); }
.ld-mark span:nth-child(4) { animation-delay: .33s; }
.ld-mark span:nth-child(5) { animation-delay: .40s; }
.ld-mark span:nth-child(6) { animation-delay: .47s; }
.ld-mark span:nth-child(7) { animation-delay: .54s; }
.ld-mark span:nth-child(8) { animation-delay: .61s; }
@keyframes bp-ld-rise {
    to { opacity: 1; transform: translateY(0); }
}
#page-loader.is-ready .ld-compass__cross { animation-duration: 1.2s; }
#page-loader.is-ready .ld-mark span:nth-child(3) {
    animation: bp-ld-rise .5s .26s cubic-bezier(.2, .8, .2, 1) forwards,
               bp-ld-slash 1s steps(2) 1.2s infinite;
}
@keyframes bp-ld-slash {
    0%, 100% { opacity: 1; }
    50% { opacity: .28; }
}

/* 进度尺 */
.ld-bar {
    position: relative;
    display: flex;
    align-items: center;
    width: 232px;
    height: 16px;
    border: 2px solid var(--ink);
    background: var(--card);
    box-shadow: var(--hard-sm);
}
.ld-bar__fill {
    width: 0;
    height: 100%;
    background: var(--yellow);
    border-right: 2px solid var(--ink);
    transition: width .12s linear;
}
.ld-bar__pct {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    font: 700 11px/1 var(--mono);
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
}
.ld-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 700 9px/1 var(--mono);
    letter-spacing: .24em;
    color: var(--muted);
    text-transform: uppercase;
}
.ld-status__sq {
    width: 7px;
    height: 7px;
    background: var(--blue);
    animation: bp-ld-blink 1s steps(2) infinite;
}
@keyframes bp-ld-blink {
    50% { opacity: .15; }
}

/* ---------------- 5. 顶部图签（Masthead） ---------------- */
.bp-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--surface);
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 3px 0 0 rgba(12, 12, 13, .06);
}
.bp-header__row {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 12px;
}
.bp-logo {
    display: flex;
    align-items: baseline;
    gap: 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1;
}
.bp-logo b {
    font-size: 21px;
}
.bp-logo i {
    font-style: normal;
    font-size: 21px;
    color: var(--blue);
    margin: 0 1px;
}
.bp-logo small {
    margin-left: 9px;
    font: 700 7.5px/1 var(--mono);
    letter-spacing: .18em;
    color: var(--muted);
    transform: translateY(-2px);
    white-space: nowrap;
}
.bp-back {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--card);
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    text-decoration: none;
}
.bp-back:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}
.bp-title {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bp-icon-btn {
    position: relative;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--card);
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    text-decoration: none;
}
.bp-icon-btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}
.bp-guide {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 12px 4px;
    border-top: 1px solid rgba(12, 12, 13, .22);
    font: 700 7.5px/1 var(--mono);
    letter-spacing: .2em;
    color: var(--muted);
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
}
.bp-guide span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.bp-guide span::before {
    content: "";
    width: 4px;
    height: 4px;
    border: 1px solid currentColor;
    display: inline-block;
}
.bp-guide .sp {
    flex: 1;
}

/* ---------------- 6. 底部导航 & 悬浮按钮 ---------------- */
.bp-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 50;
    width: 100%;
    max-width: 28rem;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--card);
    border-top: 2px solid var(--ink);
    padding-bottom: env(safe-area-inset-bottom);
}
.bp-nav--admin {
    grid-template-columns: repeat(7, 1fr);
}
.bp-nav__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 9px 0 8px;
    border-right: 1px solid rgba(12, 12, 13, .16);
    color: var(--ink);
    text-decoration: none;
}
.bp-nav__item:last-child {
    border-right: 0;
}
.bp-nav__item i {
    font-size: 15px;
}
.bp-nav--admin .bp-nav__item i {
    font-size: 13px;
}
.bp-nav__item span {
    font: 700 9px/1 var(--mono);
    letter-spacing: .12em;
}
.bp-nav--admin .bp-nav__item span {
    font-size: 7.5px;
    letter-spacing: .04em;
}
.bp-nav__item.is-active {
    background: var(--ink);
    color: #fff;
}
.bp-nav__item.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--yellow);
}
.bp-dot {
    position: absolute;
    top: 7px;
    right: 50%;
    margin-right: -16px;
    width: 7px;
    height: 7px;
    background: var(--red);
    border: 1.5px solid var(--card);
}

.bp-fab {
    position: fixed;
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 45;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #fff;
    border: 2px solid var(--ink);
    box-shadow: var(--hard);
    font-size: 19px;
    text-decoration: none;
}
.bp-fab:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--ink);
}

/* ---------------- 7. 蓝图版块：Hero / 标注 / 公告 / 板块 ---------------- */
.bp-hero {
    position: relative;
    padding: 22px 16px 18px;
    border-bottom: 2px solid var(--ink);
    background: var(--surface);
    overflow: hidden;
}
.bp-hero::before,
.bp-hero::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
}
.bp-hero::before {
    left: 8px;
    top: 8px;
    border-left: 1px solid rgba(12, 12, 13, .5);
    border-top: 1px solid rgba(12, 12, 13, .5);
}
.bp-hero::after {
    right: 8px;
    bottom: 8px;
    border-right: 1px solid rgba(12, 12, 13, .5);
    border-bottom: 1px solid rgba(12, 12, 13, .5);
}
.bp-kicker {
    display: inline-block;
    font: 700 8px/1 var(--mono);
    letter-spacing: .24em;
    color: var(--blue);
    text-transform: uppercase;
}
.bp-hero__title {
    margin-top: 12px;
    font-size: 32px;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.03em;
}
.bp-hero__title em {
    font-style: normal;
    color: var(--blue);
}
.bp-hero__sub {
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 30ch;
}
.bp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 18px;
    background: var(--card);
    border: 2px solid var(--ink);
    box-shadow: var(--hard);
}
.bp-stat {
    padding: 9px 11px 8px;
    border-right: 1px solid rgba(12, 12, 13, .28);
}
.bp-stat:last-child {
    border-right: 0;
}
.bp-stat b {
    display: block;
    font: 800 20px/1 var(--mono);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.bp-stat span {
    display: block;
    margin-top: 5px;
    font: 700 7.5px/1 var(--mono);
    letter-spacing: .18em;
    color: var(--muted);
}

/* 公告跑马灯 */
.bp-ticker {
    display: flex;
    align-items: stretch;
    margin: 14px 12px 0;
    background: var(--ink);
    color: var(--card);
    border: 2px solid var(--ink);
    box-shadow: var(--hard-sm);
}
.bp-ticker__label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0 9px;
    background: var(--yellow);
    color: var(--ink);
    border-right: 2px solid var(--ink);
    font: 800 8px/1 var(--mono);
    letter-spacing: .16em;
}
.bp-ticker__viewport {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 8px 0;
}
.bp-ticker .marquee-track {
    animation-duration: 26s;
}
.bp-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 26px;
    font: 600 10.5px/1 var(--mono);
    letter-spacing: .04em;
    white-space: nowrap;
}
.bp-ticker__item::before {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--yellow);
    display: inline-block;
}

/* 版块编号标题 */
.bp-sec {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px 11px;
}
.bp-sec__no {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    background: var(--ink);
    color: var(--card);
    font: 800 9px/1 var(--mono);
}
.bp-sec__title {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
}
.bp-sec__rule {
    flex: 1;
    height: 1px;
    background: rgba(12, 12, 13, .3);
    position: relative;
}
.bp-sec__rule::after {
    content: "";
    position: absolute;
    right: 0;
    top: -2px;
    width: 1px;
    height: 5px;
    background: rgba(12, 12, 13, .5);
}
.bp-sec__link {
    flex: 0 0 auto;
    font: 700 9px/1 var(--mono);
    letter-spacing: .1em;
    color: var(--blue);
    text-decoration: none;
    text-transform: uppercase;
}

.bp-block {
    padding: 16px 0 2px;
}

/* 版块横向滑动 */
.bp-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 12px 6px;
}
.bp-tile {
    flex: 0 0 auto;
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.bp-tile__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 16px;
    border: 2px solid var(--ink);
    box-shadow: var(--hard-sm);
}
.bp-tile:active .bp-tile__icon {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
}
.bp-tile__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
}

/* ---------------- 8. 帖子卡片 ---------------- */
.bp-list {
    padding: 0 0 6px;
}
.pcard {
    position: relative;
    display: block;
    margin: 0 12px 14px;
    padding: 12px;
    background: var(--card);
    border: 2px solid var(--ink);
    box-shadow: var(--hard);
    color: var(--ink);
    text-decoration: none;
    transition: transform .1s ease, box-shadow .1s ease;
}
.pcard:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--ink);
}
.pcard__top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.pcard__avatar {
    flex: 0 0 auto;
    display: flex;
    line-height: 0;
}
.pcard__who {
    min-width: 0;
    flex: 1;
}
.pcard__name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    font-size: 12.5px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.pcard__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font: 600 8.5px/1 var(--mono);
    letter-spacing: .12em;
    color: var(--muted);
    text-transform: uppercase;
}
.pcard__idx {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 3px 5px;
    border: 1px solid rgba(12, 12, 13, .35);
    font: 700 8px/1 var(--mono);
    letter-spacing: .08em;
    color: var(--muted);
}
.pcard__title {
    margin-top: 10px;
    font-size: 15.5px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: -.005em;
}
.pcard__desc {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted);
}
.pcard__media {
    margin-top: 10px;
    border: 2px solid var(--ink);
    line-height: 0;
    overflow: hidden;
}
.pcard__media img {
    width: 100%;
    display: block;
}
.pcard__media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 10px;
    border: 2px solid var(--ink);
    background: var(--ink);
}
.pcard__media-grid span {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #EFEBE0;
}
.pcard__media-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pcard__foot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 11px;
    padding-top: 9px;
    border-top: 1px dashed rgba(12, 12, 13, .35);
    font: 700 9px/1 var(--mono);
    letter-spacing: .08em;
    color: var(--muted);
}
.pcard__stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-variant-numeric: tabular-nums;
}
.pcard__stat i {
    font-size: 10px;
    color: var(--blue);
}
.pcard__board {
    margin-left: auto;
    padding: 2px 6px;
    background: var(--yellow);
    border: 1px solid var(--ink);
    color: var(--ink);
    font: 700 8px/1 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pcard--wf {
    margin: 0 0 10px;
    break-inside: avoid;
    padding: 9px;
}
.pcard--wf .pcard__title {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
}
.pcard--wf .pcard__media {
    margin-top: 8px;
}
.pcard--wf .pcard__foot {
    margin-top: 8px;
    padding-top: 7px;
    gap: 10px;
    font-size: 8.5px;
}

/* ---------------- 9. 按钮 / 表单 / 徽标 ---------------- */
body.bp button.grad-bar,
body.bp a.grad-bar,
body.bp label.grad-bar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--blue);
    background-image: none;
    color: #fff;
    border: 2px solid var(--ink);
    box-shadow: var(--hard);
    border-radius: 0;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
    transition: transform .1s ease, box-shadow .1s ease;
}
body.bp button.grad-bar:active,
body.bp a.grad-bar:active,
body.bp label.grad-bar:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--ink);
}
body.bp section.grad-bar,
body.bp div.grad-bar {
    position: relative;
    background-color: var(--navy);
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px;
    color: #fff;
    border-bottom: 2px solid var(--ink);
}
body.bp section.grad-bar::after,
body.bp div.grad-bar::after {
    content: "KR/BLOG · BLUEPRINT NO.01";
    position: absolute;
    right: 12px;
    bottom: 8px;
    font: 700 7px/1 var(--mono);
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .55);
}
body.bp header.grad-bar {
    background: var(--navy);
    background-image: none;
    border-bottom: 2px solid var(--ink);
}

body.bp .input-base {
    width: 100%;
    padding: 11px 12px;
    background: var(--card);
    border: 2px solid var(--ink);
    border-radius: 0;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    transition: box-shadow .12s ease, background .12s ease;
    box-shadow: 2px 2px 0 rgba(12, 12, 13, .12);
}
body.bp .input-base::placeholder {
    color: #A6A092;
}
body.bp .input-base:focus {
    background: #fff;
    border-color: var(--ink);
    box-shadow: var(--hard-sm);
}
body.bp label {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}
body.bp select.input-base,
body.bp textarea.input-base {
    font-family: var(--sans);
    font-size: 14px;
}
body.bp input[type="checkbox"],
body.bp input[type="radio"] {
    accent-color: var(--blue);
}

/* 通用小徽标 */
.bp-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border: 1px solid var(--ink);
    background: var(--card);
    font: 700 8px/1.4 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
}
.bp-chip--yellow {
    background: var(--yellow);
}

/* 空状态 */
.bp-empty {
    margin: 0 12px;
    padding: 42px 16px;
    border: 2px dashed rgba(12, 12, 13, .45);
    background: var(--surface);
    text-align: center;
}
.bp-empty i {
    font-size: 26px;
    color: rgba(12, 12, 13, .45);
}
.bp-empty p {
    margin-top: 10px;
    font: 600 11px/1.6 var(--mono);
    letter-spacing: .06em;
    color: var(--muted);
}

/* 加载更多 */
body.bp [data-loadmore] {
    width: calc(100% - 24px);
    margin: 0 12px 10px;
    padding: 12px;
    background: var(--card);
    border: 2px solid var(--ink);
    box-shadow: var(--hard-sm);
    font: 700 9.5px/1 var(--mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
}
body.bp [data-loadmore]:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

/* 一次性提示 */
body.bp .bg-indigo-50.border-indigo-200 {
    background: #EAF0FF !important;
    border: 2px solid var(--ink) !important;
    border-left-width: 6px !important;
    box-shadow: var(--hard-sm);
    font: 600 10.5px/1.5 var(--mono);
    letter-spacing: .04em;
}

/* ---------------- 10. 页面局部 ---------------- */
/* 个人主页头部 */
body.bp section.grad-bar .ring-2 {
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--ink);
}
body.bp section.grad-bar img.avatar-img {
    border: 2px solid var(--ink) !important;
}

/* 详情页 */
body.bp main h1,
body.bp main h2 {
    letter-spacing: -.01em;
}
body.bp .img-grid-1 img,
body.bp .img-grid-2 img,
body.bp .img-grid-3 img {
    border: 2px solid var(--ink);
    border-radius: 0;
}

/* 聊天气泡 */
body.bp .bubble-me {
    background: var(--blue);
    color: #fff;
    border: 2px solid var(--ink);
    box-shadow: var(--hard-sm);
}
body.bp .bubble-other {
    background: var(--card);
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: var(--hard-sm);
}

/* 图片查看器 */
body.bp .lightbox-mask {
    background: rgba(10, 12, 16, .94);
}
body.bp .lightbox-mask img {
    border: 2px solid #fff;
    border-radius: 0;
}

/* 首页轮播（有 banner 时） */
body.bp .home-swiper {
    border: 2px solid var(--ink);
    box-shadow: var(--hard);
}

/* AJAX 顶部进度条 */
#progress-bar {
    height: 3px;
    background: var(--blue);
    box-shadow: 0 0 0 1px var(--ink);
    z-index: 10000;
}

/* 红点 */
body.bp .dot {
    background: var(--red);
    border: 1.5px solid var(--card);
    border-radius: 0 !important;
}

/* 发现页搜索行 */
body.bp .waterfall {
    column-gap: 12px;
}

/* ---------------- 11. 管理后台 ---------------- */
body.bp .bp-nav--admin {
    grid-template-columns: repeat(7, 1fr);
}

/* ---------------- 12. 响应式细节 ---------------- */
@media (min-width: 600px) {
    body.bp .bp-shell {
        box-shadow: 10px 0 0 -4px rgba(12, 12, 13, .08), -10px 0 0 -4px rgba(12, 12, 13, .08);
    }
}

@media (prefers-reduced-motion: reduce) {
    #page-loader,
    #page-loader::before,
    .ld-compass__cross,
    .ld-compass__ring,
    .ld-compass__ring2,
    .ld-mark span,
    .ld-status__sq,
    .marquee-track {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ---------------- 13. 细节修补 ---------------- */
/* 搜索框内嵌图标时保留左内边距 */
body.bp .input-base.pl-9 {
    padding-left: 2.4rem !important;
}
body.bp .input-base.pl-10 {
    padding-left: 2.8rem !important;
}

/* 公告滚动两侧渐隐 */
.bp-ticker__viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}

/* 缺图兜底 */
body.bp img.img-error {
    display: none !important;
}
body.bp .pcard__media.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 92px;
    border-style: dashed;
    background: var(--surface);
}
body.bp .pcard__media.is-empty::after {
    content: "IMAGE MISSING";
    font: 700 8px/1 var(--mono);
    letter-spacing: .22em;
    color: var(--muted);
}
body.bp .pcard__media-grid span.is-empty {
    background: var(--surface);
    border: 1px dashed rgba(12, 12, 13, .45);
}
body.bp .pcard__media-grid span.is-empty::after {
    content: "×";
    display: grid;
    place-items: center;
    height: 100%;
    font: 700 14px/1 var(--mono);
    color: var(--muted);
}
body.bp .img-grid-1.is-empty,
body.bp .img-grid-2.is-empty,
body.bp .img-grid-3.is-empty {
    display: none !important;
}

/* 详情页操作栏 */
body.bp .bp-actions {
    background: var(--card) !important;
    border: 2px solid var(--ink) !important;
    box-shadow: var(--hard-sm);
}
body.bp .bp-actions > * {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    border-right: 1px solid rgba(12, 12, 13, .2);
}
body.bp .bp-actions > *:last-child {
    border-right: 0;
}

/* 评论登录提示 */
body.bp .bp-note {
    margin-top: 12px;
    padding: 12px;
    border: 2px dashed rgba(12, 12, 13, .45);
    background: var(--surface) !important;
    font: 600 11px/1.5 var(--mono);
    letter-spacing: .04em;
    color: var(--muted);
}

/* 个人主页数据块 */
body.bp section.grad-bar [class*="bg-white"] {
    background: rgba(255, 255, 255, .07) !important;
    border: 1px solid rgba(255, 255, 255, .32);
}

/* 双图宫格 */
body.bp .pcard__media-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ---------------- 14. 细节：文件选择器 / 桌面 FAB ---------------- */
body.bp input[type="file"] {
    width: 100%;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .06em;
    color: var(--muted);
}
body.bp input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 9px 12px;
    border: 2px solid var(--ink);
    background: var(--card);
    box-shadow: var(--hard-sm);
    color: var(--ink);
    font: 700 10px/1 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}
body.bp input[type="file"]::file-selector-button:hover {
    background: var(--yellow);
}

@media (min-width: 600px) {
    body.bp .bp-fab {
        right: calc(50% - 14rem + 16px);
    }
}
