/* BLG·世界冠军 空间装扮（2026-11 BLG S16 夺冠活动，见 docs/theme/space-and-wallet.md「BLG·世界冠军」）。
 * 前半段照 xy-space-starrail.css 的结构换成 BLG 配色（去掉流星和星穹专属贴图），后半段「BLG overrides」是专属覆盖。
 * 星穹皮肤以后改了布局，这里要对照着同步；两份 CSS 所有前台页面都加载（游客也要看到评论作者的装扮）。 */
/* BLG: viewer surfaces and author surfaces have separate, explicit scopes. */
body.xy-space-site.xy-space-blg,
[data-space-selected="blg"],
.xy-space-comment.xy-space-blg,
.xy-space-card.xy-space-blg {
    --blg-ink: #26384e;
    --blg-muted: #60718a;
    --blg-paper: #f8fafd;
    --blg-soft: #eaf0f8;
    --blg-line: #cbd5e3;
    --blg-accent: #2f62e3;
    --blg-gold: #ea74a1;
    --blg-profile: url('../img/space-themes/blg/head_myself_squared_bg.webp');
    --blg-head: url('../img/space-themes/blg/head_bg.webp');
    --blg-tail: url('../img/space-themes/blg/tail_bg.webp');
    --xs-accent: var(--blg-accent);
    --xs-ink: var(--blg-ink);
    --xs-muted: var(--blg-muted);
    --xs-line: var(--blg-line);
    --xs-paper: var(--blg-paper);
    --xs-soft: var(--blg-soft);
}
body.xy-space-site.xy-space-blg {
    background-color: #eaf0f7;
    /* Character-free sky: keep the tail artwork's shaped upper edge above the viewport. */
    background-image: linear-gradient(90deg, #eaf0f7c2, #eaf0f7f2 25%, #eaf0f7f2 75%, #eaf0f7c2), var(--blg-tail);
    background-size: cover, max(100vw, 700vh) auto;
    background-position: center, center bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--blg-ink);
}
body.xy-space-site.xy-space-blg .site-header {
    /* 末层底色：换页时星空图解码前顶栏已是深色，不透出浅色页面背景闪一下 */
    background: linear-gradient(90deg, rgba(14,23,51,.76), rgba(14,23,51,.15) 65%, rgba(14,23,51,.6)), var(--blg-head) center 46% / cover, #101a3d;
    border-bottom: 0;
    box-shadow: 0 4px 18px #0a123024;
}
body.xy-space-site.xy-space-blg .navbar .nav-list > .menu-item > a,
body.xy-space-site.xy-space-blg .navbar .actions .mx-display-name,
body.xy-space-site.xy-space-blg .navbar .navbar-button { color: #f0f5ff; }
body.xy-space-site.xy-space-blg .navbar .navbar-button:not(.aff-bell) { background-color: #27408f; }
body.xy-space-site.xy-space-blg .navbar .navbar-button:not(.aff-bell):hover { background-color: #2f62e3; }
body.xy-space-site.xy-space-blg .navbar .nav-list > .menu-item:is(.current-menu-item,.current-menu-ancestor,.current-menu-parent,.current_page_item,.current_page_parent) > a,
body.xy-space-site.xy-space-blg .navbar .nav-list > .menu-item > a:hover {
    color: #ffb3cf; background: #ffffff16; box-shadow: none; border-radius: 7px;
}
body.xy-space-site.xy-space-blg .burger::before,
body.xy-space-site.xy-space-blg .burger::after { background: #f0f5ff; }
/* 顶栏搜索：半透明玻璃，透出页头星空（用户要求）。页头在亮/暗两种模式下都是深色星空图，
   所以玻璃与浅色字两种模式共用，暗色段不再单独覆盖输入框/筛选的字色。
   尺寸与对齐沿用 xy-brand.css 通用规则；展开的原生下拉列表无法透明，给实底深蓝。 */
body.xy-space-site.xy-space-blg .xy-navsearch-box {
    background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 4px 16px rgba(6,12,34,.18);
    -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
}
body.xy-space-site.xy-space-blg .xy-navsearch-box:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.34); }
body.xy-space-site.xy-space-blg .xy-navsearch.is-open .xy-navsearch-box {
    background: rgba(255,255,255,.18); border-color: rgba(255,179,207,.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 3px rgba(255,179,207,.16);
}
body.xy-space-site.xy-space-blg .xy-navsearch-input { color: #f0f5ff; }
body.xy-space-site.xy-space-blg .xy-navsearch-input::-webkit-input-placeholder { color: rgba(240,245,255,.6); }
body.xy-space-site.xy-space-blg .xy-navsearch-input::placeholder { color: rgba(240,245,255,.6); }
body.xy-space-site.xy-space-blg .xy-navsearch-ico { color: rgba(240,245,255,.7); }
body.xy-space-site.xy-space-blg .xy-navsearch.is-open .xy-navsearch-ico { color: #ffb3cf; }
body.xy-space-site.xy-space-blg .xy-navsearch-cat {
    color: rgba(240,245,255,.72); border-right-color: rgba(255,255,255,.22);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4'%3E%3Cpath d='M0 0l3.5 4 3.5-4z' fill='%23c9d6e8'/%3E%3C/svg%3E");
}
body.xy-space-site.xy-space-blg .xy-navsearch-cat:hover,
body.xy-space-site.xy-space-blg .xy-navsearch-cat:focus { color: #f0f5ff; }
body.xy-space-site.xy-space-blg .xy-navsearch-cat option { background-color: #121d3b; color: #f0f5ff; }
body.xy-space-site.xy-space-blg .xy-navcat-menu {
    /* 菜单在已有 backdrop-filter 的搜索框里面，自己的模糊只能看到框内，伸出框外的部分透不出页面，
       所以底色要够实，落在页面浅色内容上也读得清 */
    border-color: rgba(255,255,255,.18); background: rgba(14,23,51,.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 12px 30px rgba(6,12,34,.35);
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
body.xy-space-site.xy-space-blg .xy-navcat-menu li { color: rgba(240,245,255,.82); }
body.xy-space-site.xy-space-blg .xy-navcat-menu li.is-active { background: rgba(255,255,255,.12); color: #fff; }
body.xy-space-site.xy-space-blg .xy-navcat-menu li[aria-selected="true"] { color: #ffb3cf; }
body.xy-space-site.xy-space-blg .xy-navsearch-kbd { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.26); color: rgba(240,245,255,.75); }
body.xy-space-site.xy-space-blg .xy-navsearch-go,
body.xy-space-site.xy-space-blg .xy-ptabs-tab.active,
body.xy-space-site.xy-space-blg .nav-pills .nav-link.active,
body.xy-space-site.xy-space-blg .pagination .current { background: var(--blg-accent); color: #fff; border-color: var(--blg-accent); }
body.xy-space-site.xy-space-blg .btn-primary { background: var(--blg-accent); border-color: var(--blg-accent); color: #fff; }
body.xy-space-site.xy-space-blg .posts-wrapper .post-grid,
body.xy-space-site.xy-space-blg .widget-area .widget {
    background-color: var(--blg-paper); border: 1px solid var(--blg-line); box-shadow: 0 6px 24px #12245c10;
}
body.xy-space-site.xy-space-blg .posts-wrapper .post-grid:hover { border-color: #5f86ee; box-shadow: 0 8px 28px #12245c20; }
body.xy-space-site.xy-space-blg .posts-wrapper .post-grid:hover .entry-title a,
body.xy-space-site.xy-space-blg .xy-ptabs-title { color: var(--blg-accent); }

/* Let carousel previews fade into the actual artwork, rather than a solid white mask. */
body.xy-space-site.xy-space-blg .xy-featured-peek::after { background: none; }
body.xy-space-site.xy-space-blg .xy-featured-peek img {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 72%);
    mask-image: linear-gradient(to right, transparent, #000 72%);
}
body.xy-space-site.xy-space-blg .xy-featured-peek-next img {
    -webkit-mask-image: linear-gradient(to left, transparent, #000 72%);
    mask-image: linear-gradient(to left, transparent, #000 72%);
}
body.xy-space-site.xy-space-blg .xy-featured-dots button { background: #879bb3; }
body.xy-space-site.xy-space-blg .xy-featured-dots button.is-active { background: #2f62e3; }
body.xy-space-site.xy-space-blg .xy-featured-search { background: #121d3bcc; border-color: #b3c7e178; }
body.xy-space-site.xy-space-blg .xy-featured-search button { background: #ea74a1; color: #121d3b; }
body.xy-space-site.xy-space-blg .xy-featured-search button:hover { background: #f392b7; }
body.xy-space-site.xy-space-blg .xy-ptabs-tab { color: var(--blg-ink); background: var(--blg-soft); }
body.xy-space-site.xy-space-blg .xy-ptabs-tab.active { color: #fff; background: #2f62e3; box-shadow: 0 3px 10px #121d3b20; }
body.xy-space-site.xy-space-blg .xy-ptabs-tab:not(.active):hover { background: var(--blg-line); }
body.xy-space-site.xy-space-blg :is(.xy-ptabs-more,.xy-ptabs-tags,.xy-ptabs-notice) { color: var(--blg-muted); }
body.xy-space-site.xy-space-blg .xy-ptabs-all { background: var(--blg-paper); color: var(--blg-ink); border: 1px solid var(--blg-line); }
body.xy-space-site.xy-space-blg .xy-ptabs-all:hover { background: var(--blg-soft); color: var(--blg-accent); }
body.xy-space-site.xy-space-blg .site-footer {
    background: linear-gradient(90deg, #121d3bf2, #121d3bc9, #121d3bf2), var(--blg-head) center / cover, #121d3b;
    border: 0; color: #d4e0f1;
}
body.xy-space-site.xy-space-blg .site-footer .footer-copyright { background: transparent; border: 0; padding-top: 38px; padding-bottom: 38px; }
body.xy-space-site.xy-space-blg .site-footer :is(a,p,h3,h4,.text-muted) { color: #d4e0f1 !important; }
body.xy-space-site.xy-space-blg .site-footer a:hover { color: #ffb3cf !important; }
body.xy-space-site.xy-space-blg .rollbar { background: transparent; box-shadow: none; }
body.xy-space-site.xy-space-blg .rollbar :is(.rollbar-item,.actions a) { background: var(--blg-paper); color: var(--blg-accent); border: 1px solid var(--blg-line); border-radius: 10px; }
body.xy-space-site.xy-space-blg .rollbar .back-to-top::before { display: none; }

/* Profile: a large character cover and a readable lower information strip. */
body.xy-space-site.xy-space-blg .xy-utop { padding-top: 30px; }
body.xy-space-site.xy-space-blg .xy-utop-card {
    position: relative; isolation: isolate; display: grid;
    grid-template-columns: minmax(200px,.9fr) minmax(0,1.45fr);
    gap: 26px 24px; padding: 120px 30px 26px; min-height: 340px;
    background-color: #121d3b;
    background-image: linear-gradient(90deg, #0e1733 20%, rgba(14,23,51,.98) 30%, rgba(14,23,51,.70) 46%, rgba(14,23,51,.10) 76%), var(--blg-profile);
    background-size: auto, max(760px, 78%) auto; background-position: center, right 27%; background-repeat: no-repeat;
    border: 1px solid #7d9cf0; border-radius: 16px; box-shadow: 0 14px 36px #0c163824;
}
body.xy-space-site.xy-space-blg .xy-utop-card::before {
    content: none;
}
body.xy-space-site.xy-space-blg .xy-utop-id { grid-column: 1; align-self: end; min-height: 100px; }
body.xy-space-site.xy-space-blg .xy-utop-name { color: #fff; font-size: 24px; line-height: 1.5; overflow-wrap: anywhere; }
body.xy-space-site.xy-space-blg .xy-utop-mail { color: #c7d5e9; }
body.xy-space-site.xy-space-blg .xy-utop-avatar { margin-right: 22px; }
body.xy-space-site.xy-space-blg .xy-utop-medal {
    grid-column: 1; grid-row: 2; min-width: 0; margin: 0;
    background: #0d1532e8; border: 1px solid #69809c; border-radius: 10px; padding: 17px;
}
body.xy-space-site.xy-space-blg .xy-utop-medal-txt b { color: #ffc4da; }
body.xy-space-site.xy-space-blg .xy-utop-medal-txt em { color: #bacbe0; }
body.xy-space-site.xy-space-blg .xy-utop-medal-face { background: transparent; padding: 0; gap: 6px; }
body.xy-space-site.xy-space-blg .xy-utop-medal-face.is-empty { color: #ffc4da; background: #2b4296; }
body.xy-space-site.xy-space-blg .xy-utop-side { grid-column: 2; grid-row: 2; gap: 12px; }
body.xy-space-site.xy-space-blg .xy-utop-stat {
    background: #0d1532e8; border: 1px solid #69809c; padding: 14px 18px; color: #fff !important;
    border-radius: 10px; backdrop-filter: blur(10px);
}
body.xy-space-site.xy-space-blg .xy-utop-stat:hover { background: #1d2f74f5; border-color: #ea74a1; }
body.xy-space-site.xy-space-blg .xy-utop-stat-label,
body.xy-space-site.xy-space-blg .xy-utop-stat-lv > em,
body.xy-space-site.xy-space-blg .xy-utop-stat-sub { color: #c6d5e8; }
body.xy-space-site.xy-space-blg .xy-utop-stat-num { color: #ffb3cf; font-size: 29px; }
body.xy-space-site.xy-space-blg .xy-utop-bar { background: #ffffff25; }
body.xy-space-site.xy-space-blg .xy-utop-act { position: absolute; right: 20px; top: 20px; }
body.xy-space-site.xy-space-blg .xy-utop-logout { background: #131f45e8; color: #ffd6e5 !important; border-color: #8590a0; }
body.xy-space-site.xy-space-blg .xy-utop-act .navbar-toggler { color: #ffb3cf; background: #131f45; border: 1px solid #8590a0; }

/* Personal center panels and functional icons; original links and events are retained. */
body.xy-space-site.xy-space-blg .user-top-container .card {
    background-color: var(--blg-paper); border: 1px solid var(--blg-line); border-radius: 12px; color: var(--blg-ink);
}
body.xy-space-site.xy-space-blg .user-top-container .card-title,
body.xy-space-site.xy-space-blg .user-top-container .card-body > h5 { color: var(--blg-ink); }
/* The sticky sidebar inserts a wrapper; never depend on a direct-child card. */
body.xy-space-site.xy-space-blg .menu-column .xy-space-wallet-panel {
    background: linear-gradient(110deg, #121d3bed, #121d3bb8), var(--blg-head) center / cover, #121d3b;
    color: #eaf2ff; border-color: #8794a6;
}
body.xy-space-site.xy-space-blg .menu-column .xy-space-wallet-panel .card-body { padding: 22px 20px; }
body.xy-space-site.xy-space-blg .menu-column .xy-space-wallet-panel .text-muted { color: #d4e0f1 !important; }
body.xy-space-site.xy-space-blg .menu-column .author-fields { color: #dbe7f6; }
body.xy-space-site.xy-space-blg .menu-column .author-fields .badge { background: #27408f; color: #ffb3cf; padding: 8px; font-size: 14px; }
body.xy-space-site.xy-space-blg .menu-column .author-fields .d-block { color: #dbe7f6; font-size: 12px; margin-top: 9px; }
body.xy-space-site.xy-space-blg .go-user-qiandao {
    border: 1px solid #f392b7; background: #ea74a1; color: #121d3b; min-height: 42px;
    box-shadow: 0 4px 16px #0002; border-radius: 7px;
}
body.xy-space-site.xy-space-blg .go-user-qiandao:disabled { opacity: .7; }
body.xy-space-site.xy-space-blg #sidebarNav .card { background-image: var(--blg-tail); background-size: 100% auto; background-position: bottom; background-repeat: no-repeat; }
body.xy-space-site.xy-space-blg #sidebarNav .card-body { padding: 24px 16px 68px; }
body.xy-space-site.xy-space-blg #sidebarNav .nav-link:not(.nav-aff-glow) { color: var(--blg-ink); border-radius: 7px; border: 1px solid transparent; min-height: 45px; margin-bottom: 4px; }
body.xy-space-site.xy-space-blg #sidebarNav .nav-link:not(.nav-aff-glow).active,
body.xy-space-site.xy-space-blg #sidebarNav .nav-link:not(.nav-aff-glow):hover { color: var(--blg-accent); background: var(--blg-soft); border-color: var(--blg-line); box-shadow: none; }
/* Use each entry's existing functional glyph, including entries without themed artwork. */
body.xy-space-site.xy-space-blg #sidebarNav .nav-link:not(.nav-aff-glow) > i {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px;
    width: 24px; height: 24px; margin-right: 10px; vertical-align: middle;
    font-size: 17px; color: inherit;
}
body.xy-space-site.xy-space-blg .user-coin-card .card {
    background: linear-gradient(90deg, #121d3bf5 18%, #121d3bb3 80%), var(--blg-head) right center / cover !important; border: 1px solid #7d9cf0; color: #eff4ff;
}
body.xy-space-site.xy-space-blg .user-coin-card h3 { color: #ffb3cf; font-size: 21px; overflow-wrap: anywhere; }
body.xy-space-site.xy-space-blg .user-coin-card .media { position: relative; padding-bottom: 14px; }
body.xy-space-site.xy-space-blg .user-coin-card .media > .d-inline-block { position: absolute; right: 0; bottom: -12px; opacity: .6; }
body.xy-space-site.xy-space-blg .user-coin-card p { color: #d9e5f5; }
body.xy-space-site.xy-space-blg .user-coin-card .stat { color: #ffb3cf; background: #121d3bd9; }
body.xy-space-site.xy-space-blg .xy-level-hero { padding: 25px; border-radius: 10px; background: linear-gradient(90deg, #121d3bed, #121d3baa), var(--blg-head) right center / cover, #121d3b; color: #fff; }
body.xy-space-site.xy-space-blg .xy-level-exp,
body.xy-space-site.xy-space-blg .xy-level-exp b { color: #ffc4da; }
body.xy-space-site.xy-space-blg .xy-level-hero .text-muted { color: #c6d5e8 !important; }
body.xy-space-site.xy-space-blg .xy-level-progress { height: 9px; background: var(--blg-line); border-radius: 20px; }
body.xy-space-site.xy-space-blg .xy-level-task { border-color: var(--blg-line); background-color: var(--blg-soft); }
body.xy-space-site.xy-space-blg .pay_coin_box:hover { border-color: #5f86ee; }
body.xy-space-site.xy-space-blg .pay_coin_box .text-warning { color: #c2437a !important; }
body.xy-space-site.xy-space-blg .navbar .dropdown-menu[aria-labelledby="dropdownUserProfile"] {
    background: linear-gradient(180deg, #ffffff00, var(--blg-paper) 100px), var(--blg-head) center top / auto 120px no-repeat, var(--blg-paper);
    border: 1px solid var(--blg-line); padding-top: 70px; border-radius: 12px; box-shadow: 0 16px 40px #0a164030;
}
body.xy-space-site.xy-space-blg .navbar .xy-udrop-tile { background: var(--blg-soft); border-color: var(--blg-line); }
body.xy-space-site.xy-space-blg .xy-space-entry { color: var(--blg-accent); background: var(--blg-soft); }
body.xy-space-site.xy-space-blg #respond .comment-form-comment { padding: 14px; border: 1px solid var(--blg-line); border-radius: 10px; background: var(--blg-paper); }
body.xy-space-site.xy-space-blg #respond textarea { color: var(--blg-ink); background: var(--blg-paper); border-color: var(--blg-line); }
body.xy-space-site.xy-space-blg #respond #submit { background: var(--blg-accent); color: #fff; }
.comments-list .xy-space-comment.xy-space-blg > .comment-body { margin-left: 60px; }
.comments-list .xy-space-comment.xy-space-blg .nickname { color: #3d5372; line-height: 1.65; }
.comments-list .xy-space-comment.xy-space-blg .comment-time { color: #61748d; }
.comments-list .xy-space-comment.xy-space-blg .comment-text { overflow-wrap: anywhere; }
.comments-list .xy-space-comment.xy-space-blg .comment-text p { color: #2e4057; }
.comments-list .xy-space-comment.xy-space-blg > .reply { top: 8px; right: 12px; }
.comments-list .xy-space-comment.xy-space-blg .comment-awaiting-moderation { position: static; }
.simple-ulike-user-card.xy-space-card.xy-space-blg {
    box-sizing: border-box; position: relative; min-width: 280px; max-width: min(350px, calc(100vw - 24px));
    padding: 85px 20px 20px; border: 1px solid #9b8b68; border-radius: 13px;
    background-color: var(--blg-paper); color: var(--blg-ink);
    background-image: linear-gradient(180deg, transparent 38px, var(--blg-paper) 100px), var(--blg-head);
    background-size: auto, auto 105px; background-position: center top; background-repeat: no-repeat;
    box-shadow: 0 14px 38px #081d3b38;
}
.xy-space-card.xy-space-blg .simple-ulike-card-header { margin-bottom: 20px; }
.xy-space-card.xy-space-blg .simple-ulike-card-name { color: var(--blg-ink); }
.xy-space-card.xy-space-blg .simple-ulike-card-stats { border-top: 1px solid var(--blg-line); padding-top: 14px; }

/* Wardrobe details retain their selected theme even before the viewer tries it on. */
[data-space-selected="blg"] .xy-space-product { border-color: #aebbd0; border-radius: 14px; }
[data-space-selected="blg"] .xy-space-cover { min-height: 335px; background: #101a3d; }
[data-space-selected="blg"] .xy-space-cover > img { width: 82%; object-position: center 25%; }
[data-space-selected="blg"] .xy-space-cover::before { background: linear-gradient(90deg, #101a3d 4%, #101a3df0 29%, #101a3d45 65%, transparent); }
[data-space-selected="blg"] .xy-space-cover-copy { position: relative; z-index: 1; padding: 58px 35px; max-width: 62%; }
[data-space-selected="blg"] .xy-space-edition { color: #ffb3cf; letter-spacing: .15em; }
[data-space-selected="blg"] .xy-space-cover-copy h3 { color: #fff; letter-spacing: .06em; }
[data-space-selected="blg"] .xy-space-cover-copy p { color: #d1e0f3; }
[data-space-selected="blg"] .xy-space-cover-tag { background: #071a3299; color: #ffc4da; border-color: #c7ac7c88; }
[data-space-selected="blg"] .xy-space-btn:hover { background: #25476e; box-shadow: 0 5px 14px #102e5426; }
[data-space-selected="blg"] .xy-space-btn.is-secondary:hover { background: var(--blg-soft); }
[data-space-selected="blg"] .xy-space-profile-demo {
    position: relative; isolation: isolate;
    min-height: 210px; border-color: #72869f; padding: 38px 44px; color: #fff;
    overflow: hidden;
    background: radial-gradient(ellipse at 22% 55%, #193a58, transparent 65%), #101a3d;
}
[data-space-selected="blg"] .xy-space-profile-demo::before { content: ''; position: absolute; inset: 0 0 0 auto; width: 75%; max-width: 800px; background: var(--blg-profile) center 22% / cover no-repeat; opacity: .86; -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%); mask-image: linear-gradient(90deg, transparent, #000 42%); pointer-events: none; z-index: -1; }
[data-space-selected="blg"] .xy-space-demo-identity { display: flex; align-items: center; gap: 34px; min-width: 0; max-width: 65%; }
[data-space-selected="blg"] .xy-space-demo-framed-avatar { flex: 0 0 72px; width: 72px; height: 72px; margin: 0 8px; }
[data-space-selected="blg"] .xy-space-demo-framed-avatar .xy-af { width: 72px; height: 72px; }
[data-space-selected="blg"] .xy-space-demo-framed-avatar img { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
[data-space-selected="blg"] .xy-space-demo-profile-copy { min-width: 0; text-shadow: 0 2px 10px #06132788; }
[data-space-selected="blg"] .xy-space-demo-profile-copy b { font-size: 21px; line-height: 1.4; }
[data-space-selected="blg"] .xy-space-demo-profile-copy small { margin-top: 8px; font-size: 12px; }
[data-space-selected="blg"] .xy-space-demo-frame-caption { display: block; margin-top: 16px; font-size: 11px; color: #ffc4da; line-height: 1.6; }
[data-space-selected="blg"] .xy-space-profile-demo small { color: #cbdaec; }
[data-space-selected="blg"] .xy-space-demo-avatar { color: #f392b7; background: #122e51; border-color: #ea74a1; }
[data-space-selected="blg"] .xy-space-demo-avatar > i { font-size: 22px; }
[data-space-selected="blg"] .xy-space-demo-pill { background: #132b49dd; border-color: #ac9770; color: #ffb3cf; }
.xy-space-feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.xy-space-feature-grid > div { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; gap: 6px; background: var(--blg-soft); border: 1px solid var(--blg-line); border-radius: 8px; font-size: 11px; color: var(--blg-ink); }
.xy-space-feature-grid > div > i { display: flex; align-items: center; justify-content: center; width: 48px; height: 40px; font-size: 23px; color: var(--blg-accent); }
.xy-space-comment-demo.xy-space-blg { margin: 0; padding: 24px 84px 22px 18px; min-height: 210px; background-size: 680px auto, auto; background-position: right -95px bottom, center; }
.xy-space-comment-demo.xy-space-blg b,
.xy-space-comment-demo.xy-space-blg p { color: var(--blg-ink); }
.xy-space-comment-demo.xy-space-blg small { color: var(--blg-muted); }
.simple-ulike-user-card.xy-space-card-demo.xy-space-blg { width: 100%; min-width: 0; max-width: none; padding: 78px 18px 20px; min-height: 210px; box-shadow: none; }
.xy-space-card-demo.xy-space-blg b { color: var(--blg-ink); }
.xy-space-card-demo.xy-space-blg small,
.xy-space-card-demo.xy-space-blg .xy-space-demo-stats { color: var(--blg-muted); }
.xy-space-card-demo.xy-space-blg .xy-space-demo-stats { border-color: var(--blg-line); }

/* Dark mode preserves semantic LV/medal/like colors; only content surfaces change. */
body.dark-open.xy-space-site.xy-space-blg,
.dark-open [data-space-selected="blg"],
.dark-open .xy-space-comment.xy-space-blg,
.dark-open .xy-space-card.xy-space-blg {
    --blg-paper: #141d3d; --blg-soft: #1e3552; --blg-line: #405574;
    --blg-ink: #e7effb; --blg-muted: #b0c1d8; --blg-accent: #a5c8f5;
}
body.dark-open.xy-space-site.xy-space-blg { background-color: #091526; background-image: linear-gradient(90deg, #09152655, #091526e6 25%, #091526e6 75%, #09152655), var(--blg-tail); }
.dark-open [data-space-selected="blg"] .xy-space-btn:not(.is-secondary),
body.dark-open.xy-space-site.xy-space-blg .btn-primary,
body.dark-open.xy-space-site.xy-space-blg #respond #submit,
body.dark-open.xy-space-site.xy-space-blg .xy-ptabs-tab.active,
body.dark-open.xy-space-site.xy-space-blg .nav-pills .nav-link.active,
body.dark-open.xy-space-site.xy-space-blg .pagination .current { background: #2f62e3; color: #fff; border-color: #7895bb; }
body.dark-open.xy-space-site.xy-space-blg .user-top-container .text-muted { color: var(--blg-muted) !important; }
body.dark-open.xy-space-site.xy-space-blg .pay_coin_box .text-warning { color: #ffb3cf !important; }
body.dark-open.xy-space-site.xy-space-blg .xy-featured-dots button.is-active { background: #ffb3cf; }
body.dark-open.xy-space-site.xy-space-blg .user-top-container :is(.text-body,.text-dark) { color: var(--blg-ink) !important; }
body.dark-open.xy-space-site.xy-space-blg .user-top-container :is(.form-control,.form-control:focus) {
    background: #0c1c30; color: #e7effb; border-color: #617a9b;
}
body.dark-open.xy-space-site.xy-space-blg .user-top-container .form-control::placeholder { color: #b0c1d8; opacity: 1; }
body.dark-open.xy-space-site.xy-space-blg .user-top-container :is(.table,.card-body > p,.card-body > label) { color: var(--blg-ink); }
body.dark-open.xy-space-site.xy-space-blg .user-top-container .btn-outline-primary { color: #c9ddfa; border-color: #7895bb; }
body.dark-open.xy-space-site.xy-space-blg .user-top-container .btn-outline-danger { color: #ffb3b3; border-color: #d78085; }
body.dark-open.xy-space-site.xy-space-blg .user-top-container .btn-outline-danger:hover { color: #fff; background: #8e3543; }
body.dark-open.xy-space-site.xy-space-blg .navbar .xy-navsearch-go { background: #2f62e3; color: #fff; }
body.dark-open.xy-space-site.xy-space-blg .navbar .dropdown-menu[aria-labelledby="dropdownUserProfile"] :is(.xy-udrop-tile,.dropdown-item) { color: var(--blg-ink); }
.dark-open .xy-space-card.xy-space-blg .simple-ulike-card-loading { color: var(--blg-muted); }
.dark-open .xy-space-card.xy-space-blg .simple-ulike-stat-item:hover { background: var(--blg-soft); }
.dark-open .comments-list .xy-space-comment.xy-space-blg :is(.reply a,.xy-cdel) { color: #c9ddfa; }
.dark-open .comments-list .xy-space-comment.xy-space-blg .nickname,
.dark-open .comments-list .xy-space-comment.xy-space-blg .comment-text p { color: #e7effb; }
.dark-open .comments-list .xy-space-comment.xy-space-blg .comment-time { color: #b0c1d8; }
.dark-open [data-space-selected="blg"] .xy-space-status.is-error { color: #ffb3b3; }

[data-space-selected="blg"] .xy-space-frame-gift { display: flex; align-items: center; gap: 26px; margin: 0 28px 22px; padding: 20px 24px; border: 1px solid var(--blg-line); border-radius: 12px; background: var(--blg-soft); color: var(--blg-ink); }
[data-space-selected="blg"] .xy-space-frame-gift > img { flex: 0 0 112px; width: 112px; height: 112px; object-fit: contain; }
[data-space-selected="blg"] .xy-space-frame-gift h4 { margin: 8px 0; font-size: 19px; color: var(--blg-ink); }
[data-space-selected="blg"] .xy-space-frame-gift .xy-space-edition { color: var(--blg-accent); letter-spacing: .06em; }
[data-space-selected="blg"] .xy-space-frame-gift p { margin: 0 0 8px; font-size: 14px; line-height: 1.8; color: var(--blg-muted); }
[data-space-selected="blg"] .xy-space-frame-gift a { font-size: 14px; color: var(--blg-accent); }
@media (max-width: 991px) {
    body.xy-space-site.xy-space-blg .xy-utop-card { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); padding: 105px 24px 22px; gap: 18px; }
    body.xy-space-site.xy-space-blg .xy-utop-id { grid-column: 1 / -1; max-width: 55%; }
    body.xy-space-site.xy-space-blg .xy-utop-stat { padding: 12px; }
    body.xy-space-site.xy-space-blg .xy-utop-side { flex-wrap: nowrap; }
    body.xy-space-site.xy-space-blg .xy-utop-stat { flex: 1 1 0; }}
@media (max-width: 767px) {
    [data-space-selected="blg"] .xy-space-frame-gift { flex-direction: column; align-items: flex-start; gap: 12px; margin: 0 18px 18px; padding: 18px; }
    body.xy-space-site.xy-space-blg .xy-utop { padding-top: 16px; }
    body.xy-space-site.xy-space-blg .xy-utop-card { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 210px 18px 18px; background-image: linear-gradient(180deg, #0e173310 100px, #0e1733 295px), var(--blg-profile); background-size: auto, 100% auto; background-position: center, right top; border-radius: 12px; }
    body.xy-space-site.xy-space-blg .xy-utop-id { max-width: none; width: 100%; align-self: auto; min-height: 80px; }
    body.xy-space-site.xy-space-blg .xy-utop-name { font-size: 21px; }
    body.xy-space-site.xy-space-blg .xy-utop-medal { flex: 0 0 auto; padding: 12px 14px; }
    body.xy-space-site.xy-space-blg .xy-utop-side { flex: 0 0 auto; flex-wrap: wrap; }
    body.xy-space-site.xy-space-blg .xy-utop-stat { flex: 1 1 120px; }
    body.xy-space-site.xy-space-blg .xy-utop-stat-sub { white-space: normal; line-height: 1.6; }
    body.xy-space-site.xy-space-blg .xy-utop-act { top: 16px; right: 14px; }
    body.xy-space-site.xy-space-blg .xy-utop-logout { display: none; }
    body.xy-space-site.xy-space-blg #sidebarNav .card-body { padding-bottom: 70px; }
    [data-space-selected="blg"] .xy-space-cover { min-height: 350px; }
    [data-space-selected="blg"] .xy-space-cover > img { width: 100%; object-position: center top; }
    [data-space-selected="blg"] .xy-space-cover::before { background: linear-gradient(180deg, #101a3d05 10%, #101a3d66 48%, #101a3d 90%); }
    [data-space-selected="blg"] .xy-space-cover-copy { max-width: 100%; padding: 205px 22px 26px; }
    [data-space-selected="blg"] .xy-space-cover-copy h3 { margin: 10px 0; font-size: 32px; }
    [data-space-selected="blg"] .xy-space-cover-copy p { max-width: none; margin-bottom: 18px; }
    [data-space-selected="blg"] .xy-space-profile-demo { padding: 54px 24px 30px; min-height: 210px; }
    [data-space-selected="blg"] .xy-space-profile-demo::before { width: 100%; max-width: none; background-position: 65% 20%; opacity: .48; }
    [data-space-selected="blg"] .xy-space-demo-identity { max-width: 100%; gap: 24px; }
    [data-space-selected="blg"] .xy-space-demo-framed-avatar { flex-basis: 56px; width: 56px; height: 56px; margin: 0 2px; }
    [data-space-selected="blg"] .xy-space-demo-framed-avatar .xy-af,
    [data-space-selected="blg"] .xy-space-demo-framed-avatar img { width: 56px; height: 56px; }
    [data-space-selected="blg"] .xy-space-demo-profile-copy b { font-size: 18px; }
    [data-space-selected="blg"] .xy-space-demo-frame-caption { margin-top: 10px; }
    .xy-space-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .comments-list .comment-inner.xy-space-comment.xy-space-blg { padding: 36px 16px 80px; background-size: 650px auto, auto; background-position: right -90px bottom, center; }
    .comments-list .xy-space-comment.xy-space-blg > .comment-body { margin-left: 0; }
    .comments-list .xy-space-comment.xy-space-blg .nickname { padding-left: 56px; min-height: 48px; }
    .comments-list .xy-space-comment.xy-space-blg .comment-text { clear: both; margin-top: 12px; }
    .dark-open .comments-list .comment-inner.xy-space-comment.xy-space-blg { background-size: 120px auto, auto; background-position: right 2px bottom, center; }
    .simple-ulike-user-card.xy-space-card.xy-space-blg { min-width: min(280px, calc(100vw - 24px)); }
    .simple-ulike-user-card.xy-space-card-demo.xy-space-blg { min-width: 0; }}

/* ===== BLG overrides（手写） ===== */
@font-face {
    font-family: 'XY Fanno';
    src: url('../fonts/xy-fanno.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}
body.xy-space-site.xy-space-blg,
[data-space-selected="blg"],
.xy-space-comment.xy-space-blg,
.xy-space-card.xy-space-blg {
    --blg-blue: #2f62e3; --blg-pink: #ea74a1; --blg-navy: #121d3b;
    --blg-ink: #1c2a4d; --blg-muted: #5b6b8f; --blg-paper: #fbfcff; --blg-soft: #e9effd; --blg-line: #c5d2f3;
    --blg-accent: #2f62e3; --blg-gold: #ea74a1;
}

/* 页面：纸白底，撕纸条固定在视口底部 */
body.xy-space-site.xy-space-blg {
    background-color: #eef2fb;
    /* 中间内容列压一层纸白，撕纸只在两侧露出来，滚动时不会垫在文字下面（和星穹同一做法） */
    background-image: linear-gradient(90deg, #eef2fb00 3%, #eef2fbfa 12%, #eef2fbfa 88%, #eef2fb00 97%), var(--blg-tail);
    background-size: auto, max(100vw, 1242px) auto;
    background-position: center, center bottom;
    background-repeat: no-repeat; background-attachment: fixed;
    color: var(--blg-ink);
}
body.dark-open.xy-space-site.xy-space-blg {
    background-color: #0a1024;
    background-image: linear-gradient(90deg, #0a102433 3%, #0a1024f5 12%, #0a1024f5 88%, #0a102433 97%), var(--blg-tail);
}

/* 顶栏：BLG 蓝撕纸头图，左右压一点深蓝保证导航文字可读 */
body.xy-space-site.xy-space-blg .site-header {
    background: linear-gradient(90deg, rgba(18,29,59,.62), rgba(18,29,59,.2) 55%, rgba(18,29,59,.5)), var(--blg-head) center 58% / cover, #2f62e3;
    border-bottom: 0; box-shadow: 0 4px 18px #12245c33;
}
body.xy-space-site.xy-space-blg .navbar .nav-list > .menu-item:is(.current-menu-item,.current-menu-ancestor,.current-menu-parent,.current_page_item,.current_page_parent) > a,
body.xy-space-site.xy-space-blg .navbar .nav-list > .menu-item > a:hover {
    color: #fff; background: #ffffff24; box-shadow: none; border-radius: 7px;
}
body.xy-space-site.xy-space-blg .navbar .navbar-button:not(.aff-bell) { background-color: #1d2f74cc; }
body.xy-space-site.xy-space-blg .navbar .navbar-button:not(.aff-bell):hover { background-color: #2f62e3; }
body.xy-space-site.xy-space-blg .xy-navsearch.is-open .xy-navsearch-box { border-color: rgba(255,255,255,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 3px rgba(255,255,255,.16); }

/* 个人中心封面：全员照靠右，左侧压深蓝放资料 */
body.xy-space-site.xy-space-blg .xy-utop-card {
    background-color: #121d3b;
    background-image: linear-gradient(90deg, #0e1733 30%, rgba(14,23,51,.9) 42%, rgba(14,23,51,.35) 60%, rgba(14,23,51,0) 80%), var(--blg-profile);
    background-size: auto, auto 150%; background-position: center, right -10px top -24px;
    border-color: #5f86ee;
}
body.xy-space-site.xy-space-blg .xy-utop-stat-num { color: #fff; }
body.xy-space-site.xy-space-blg .go-user-qiandao { color: #fff; border-color: #f392b7; }
body.xy-space-site.xy-space-blg .user-top-container .card-header { background: linear-gradient(90deg, #f3f6ff, #fbfcff); border-bottom: 1px solid var(--blg-line); color: var(--blg-ink); }
body.dark-open.xy-space-site.xy-space-blg .user-top-container .card-header { background: linear-gradient(90deg, #17224a, #141d3d); }
body.dark-open.xy-space-site.xy-space-blg,
.dark-open [data-space-selected="blg"],
.dark-open .xy-space-comment.xy-space-blg,
.dark-open .xy-space-card.xy-space-blg {
    --blg-paper: #141d3d; --blg-soft: #1d2a59; --blg-line: #3a4c8c;
    --blg-ink: #e8eeff; --blg-muted: #aebbe0; --blg-accent: #9db7ff;
}

/* ---------- 评论：作者戴着 BLG 装扮时（游客也看得到） ---------- */
.comments-list .comment-inner.xy-space-comment.xy-space-blg,
.xy-space-comment-demo.xy-space-blg {
    position: relative; display: flow-root; box-sizing: border-box; min-height: 104px;
    margin: 8px 0 16px; padding: 20px 20px 18px 22px;
    border: 1px solid #c5d2f3; border-radius: 10px; overflow: hidden;
    background: linear-gradient(120deg, #fbfcff, #eaf0fe);
    box-shadow: 0 4px 15px #12245c12;
}
/* 左侧蓝粉色条 + 右上半调网点（BLG 主视觉里的元素），都不挡字 */
.comments-list .comment-inner.xy-space-comment.xy-space-blg::before,
.xy-space-comment-demo.xy-space-blg::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, #2f62e3 0 62%, #ea74a1 62%);
}
.comments-list .comment-inner.xy-space-comment.xy-space-blg::after,
.xy-space-comment-demo.xy-space-blg::after {
    content: ''; position: absolute; right: 0; top: 0; width: 300px; height: 100%; pointer-events: none;
    background: radial-gradient(circle, #2f62e33d 1.3px, transparent 1.7px) 0 0 / 9px 9px;
    -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent);
}
/* 头像列宽沿用主题原规则（顶层 62px / 楼中楼 38px），这里不改 margin-left */
.comments-list .xy-space-comment.xy-space-blg > .comment-body { position: relative; z-index: 1; }
.comments-list .xy-space-comment.xy-space-blg .nickname { color: #2a3c6e; line-height: 1.65; padding-right: 178px; min-height: 38px; }
.comments-list .xy-space-comment.xy-space-blg .comment-time { color: #63739a; }
.comments-list .xy-space-comment.xy-space-blg .comment-text { overflow-wrap: anywhere; }
.comments-list .xy-space-comment.xy-space-blg .comment-text p { color: #22315a; }
.comments-list .xy-space-comment.xy-space-blg .comment-awaiting-moderation { position: static; }
.dark-open .comments-list .comment-inner.xy-space-comment.xy-space-blg,
.dark-open .xy-space-comment-demo.xy-space-blg { border-color: #3a4c8c; background: linear-gradient(120deg, #141d3d, #1b2856); }
.dark-open .comments-list .xy-space-comment.xy-space-blg .nickname,
.dark-open .comments-list .xy-space-comment.xy-space-blg .comment-text p { color: #e8eeff; }
.dark-open .comments-list .xy-space-comment.xy-space-blg .comment-time { color: #aebbe0; }
.dark-open .comments-list .xy-space-comment.xy-space-blg :is(.reply a,.xy-cdel) { color: #c3d3ff; }
.dark-open .comments-list .comment-inner.xy-space-comment.xy-space-blg::after { background-image: radial-gradient(circle, #9db7ff38 1.3px, transparent 1.7px); }
.xy-space-comment-demo.xy-space-blg { margin: 0; padding: 22px 18px; min-height: 150px; }
.xy-space-comment-demo.xy-space-blg b, .xy-space-comment-demo.xy-space-blg p { color: var(--blg-ink); position: relative; z-index: 1; }
.xy-space-comment-demo.xy-space-blg small { color: var(--blg-muted); }

/* ---------- 编号牌 ---------- */
.xy-fanno {
    position: absolute; top: 12px; right: 14px; z-index: 2;
    display: inline-flex; align-items: center; gap: 8px;
    -webkit-user-select: none; user-select: none; cursor: default;
}
.xy-fanno-logo {
    flex: 0 0 auto; width: 78px; height: 46px;
    background: url('../img/space-themes/blg/fanno.webp') center / contain no-repeat;
    transform: rotate(-3deg); filter: drop-shadow(0 2px 3px #12245c2e);
}
.xy-fanno-num { display: flex; flex-direction: column; font-family: 'XY Fanno', ui-monospace, 'Courier New', monospace; font-weight: 700; line-height: 1; }
.xy-fanno-num em { font-style: normal; font-size: 13px; letter-spacing: .04em; color: #ea74a1; }
.xy-fanno-num b { margin-top: 5px; font-size: 17px; letter-spacing: .06em; color: #2f62e3; font-weight: 700; }
.dark-open .xy-fanno-num b { color: #9db7ff; }
.xy-fanno.is-rare .xy-fanno-num b {
    background: linear-gradient(90deg, #d6336c, #e08a00, #2f62e3, #d6336c, #e08a00); background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: xy-fanno-shine 3.2s linear infinite;
}
@keyframes xy-fanno-shine { to { background-position: -300% 0; } }
/* 楼中楼：头像小、行窄，只留数字 */
.comments-list .comment-children .xy-fanno { top: 10px; right: 12px; }
.comments-list .comment-children .xy-fanno-logo { display: none; }
.comments-list .comment-children .xy-fanno-num { flex-direction: row; align-items: baseline; gap: 5px; }
.comments-list .comment-children .xy-fanno-num em { font-size: 11px; }
.comments-list .comment-children .xy-fanno-num b { margin: 0; font-size: 13px; }
/* 楼中楼的昵称和正文在同一行，整块正文让出编号的位置 */
.comments-list .comment-children .xy-space-comment.xy-space-blg > .comment-body { padding-right: 112px; }
.comments-list .comment-children .xy-space-comment.xy-space-blg .nickname { padding-right: 0; min-height: 0; }
.comments-list .comment-children .comment-inner.xy-space-comment.xy-space-blg { min-height: 0; padding: 16px 16px 14px 18px; }

/* ---------- 顶栏限时入口（全站所有人可见，与是否佩戴无关） ---------- */
.navbar .nav-list > .menu-item.xy-nav-blg > a {
    position: relative; display: inline-flex; align-items: center; gap: 6px; overflow: hidden;
    padding: 0 12px; color: #fff !important; font-weight: 700;
    background: linear-gradient(110deg, #2f62e3 0, #3d7bff 58%, #ea74a1 130%) !important;
    box-shadow: 0 4px 14px #2f62e355;
}
.navbar .nav-list > .menu-item.xy-nav-blg > a > i { margin: 0; color: #ffd866; }
.navbar .nav-list > .menu-item.xy-nav-blg > a > em {
    font-style: normal; font-size: 10px; line-height: 16px; padding: 0 5px; border-radius: 5px;
    background: #fff; color: #2f62e3; font-weight: 700;
}
.navbar .nav-list > .menu-item.xy-nav-blg > a::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, #ffffff73, transparent); transform: skewX(-20deg);
    animation: xy-nav-blg-shine 3.4s ease-in-out infinite;
}
.navbar .nav-list > .menu-item.xy-nav-blg > a:hover { filter: brightness(1.08); box-shadow: 0 6px 18px #2f62e370; }
@keyframes xy-nav-blg-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.slicknav_nav li.xy-nav-blg > a { color: #2f62e3; font-weight: 700; }
.slicknav_nav li.xy-nav-blg > a > i { margin-right: 6px; color: #e9a400; }
.slicknav_nav li.xy-nav-blg > a > em { margin-left: 6px; font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 5px; background: #2f62e3; color: #fff; }

/* ---------- 「空间装扮」页：我的装扮切换条 ---------- */
.xy-space-switch { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0 0 22px; }
.xy-space-switch-item {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--xs-line, #d5dcea); background: var(--xs-paper, #fff); color: var(--xs-ink, #26384e);
}
.xy-space-switch-item.is-on { border-color: var(--xs-accent, #345c89); box-shadow: 0 0 0 2px color-mix(in srgb, var(--xs-accent, #345c89) 22%, transparent); }
.xy-space-switch-item > img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 9px; object-fit: cover; object-position: center 18%; }
.xy-space-switch-item > div { flex: 1 1 auto; min-width: 0; }
.xy-space-switch-item b { display: block; font-size: 15px; }
.xy-space-switch-item small { display: block; margin-top: 3px; opacity: .72; font-size: 12px; }
.xy-space-switch-item .xy-space-btn { flex: 0 0 auto; min-height: 34px; padding: 0 14px; font-size: 13px; }
.xy-space-switch-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 5px; font-size: 11px; line-height: 17px; vertical-align: 1px; background: #2f62e3; color: #fff; font-weight: 400; }

@media (max-width: 767px) {
    /* 手机：编号缩成一行放在评论卡片最上面，昵称和正文从它下面开始，互不遮挡 */
    .xy-fanno, .comments-list .comment-children .xy-fanno { top: 6px; right: 10px; gap: 5px; }
    .xy-fanno-logo, .comments-list .comment-children .xy-fanno-logo { display: block; width: 38px; height: 23px; }
    .xy-fanno-num { flex-direction: row; align-items: baseline; gap: 5px; }
    .xy-fanno-num em { font-size: 10px; }
    .xy-fanno-num b { margin: 0; font-size: 13px; }
    .comments-list .comment-inner.xy-space-comment.xy-space-blg,
    .comments-list .comment-children .comment-inner.xy-space-comment.xy-space-blg { padding: 32px 12px 14px 16px; }
    .comments-list .comment-children .xy-space-comment.xy-space-blg > .comment-body { padding-right: 0; }
    .comments-list .xy-space-comment.xy-space-blg .nickname { padding-right: 0; min-height: 0; }
    body.xy-space-site.xy-space-blg .xy-utop-card { background-size: auto, auto 62%; background-position: center, right top; }
}

.dark-open .xy-fanno.is-rare .xy-fanno-num b { background-image: linear-gradient(90deg, #ff8fb8, #ffd866, #9db7ff, #ff8fb8, #ffd866); }

/* 个人中心封面上的「我的等级 / 金币」卡：半透明玻璃，不挡选手的脸（用户 2026-11-15 要求） */
body.xy-space-site.xy-space-blg .xy-utop-stat {
    background: linear-gradient(180deg, rgba(14,23,51,.08), rgba(14,23,51,.42));
    border-color: rgba(255,255,255,.32);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
    text-shadow: 0 1px 3px rgba(6,12,34,.9), 0 0 10px rgba(6,12,34,.65);
}
body.xy-space-site.xy-space-blg .xy-utop-stat:hover { background: linear-gradient(180deg, rgba(14,23,51,.22), rgba(14,23,51,.6)); border-color: #ffb3cf; }
body.xy-space-site.xy-space-blg .xy-utop-stat :is(.xy-utop-stat-label,.xy-utop-stat-sub,.xy-utop-stat-lv > em) { color: #fff; }
body.xy-space-site.xy-space-blg .xy-utop-bar { background: rgba(255,255,255,.35); box-shadow: 0 1px 3px rgba(6,12,34,.5); }

/* ---------- 个人中心封面：左栏撕纸拼贴 + 回形针编号名牌（2026-11-15） ----------
 * 原来左栏是一整块纯藏青，和右边亮色拼贴的选手照不搭，照片左缘还有一道硬接缝。
 * 现在：::after = 品牌蓝拼贴底（方格纸纹 + 斜光），右缘撕纸；::before = 比它宽一点的白纸，
 * 撕口露出一道白边，像把蓝纸贴在照片上，顺带盖住照片左缘。.xy-utop-meteors（星穹的流星容器）
 * 在 BLG 下改放左上网点和左缘粉色棋盘格。都在卡片 isolation 内的底层，不挡文字和点击。
 * 撕口是 28×240 的 SVG 竖向平铺（手机横向），四条存成变量免得 -webkit- 前缀再抄一遍。 */
body.xy-space-site.xy-space-blg .xy-utop-card {
    --blg-tear-w: 41%;
    --blg-tear-v1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 240' preserveAspectRatio='none'%3E%3Cpath d='M0 0L11.9 0 8.7 3 5.9 6 5 9 5.4 12 5.8 15 6.7 18 5 21 5 24 5.4 27 5 30 5.5 33 5 36 5 39 5 42 6.8 45 9.5 48 7.9 51 14.2 54 16.6 57 15.3 60 12.8 63 14.5 66 9.1 69 9.6 72 8.4 75 9 78 8.7 81 11.6 84 17.6 87 20.7 90 19.3 93 21 96 21 99 19.2 102 20.7 105 21 108 18.9 111 17.4 114 17 117 18.3 120 19.5 123 14.1 126 12.4 129 12.9 132 9.8 135 8.9 138 11.8 141 11.9 144 17.2 147 16.6 150 15.9 153 19 156 16.5 159 14 162 14.2 165 10.1 168 7.9 171 6.9 174 5 177 8.2 180 5 183 6.5 186 7.8 189 5.9 192 5 195 7.7 198 6.4 201 5 204 5.1 207 5 210 5.3 213 6.7 216 8.9 219 8 222 8.3 225 8.8 228 10.1 231 11.1 234 11.3 237 11.9 240L0 240Z'/%3E%3C/svg%3E");
    --blg-tear-v2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 240' preserveAspectRatio='none'%3E%3Cpath d='M0 0L15.7 0 21 3 21 6 19 9 17.2 12 18.5 15 18.5 18 12.9 21 13.9 24 16.9 27 18.6 30 19 33 21 36 20.9 39 21 42 21 45 21 48 21 51 19.6 54 21 57 20.2 60 18.9 63 19.2 66 16.7 69 18 72 16.4 75 19 78 21 81 21 84 18.8 87 15.7 90 21 93 20 96 19.2 99 16.5 102 14.6 105 17.5 108 14.9 111 12.8 114 14.8 117 14.3 120 14 123 16.5 126 19 129 18.4 132 20.5 135 18.9 138 18.3 141 18.7 144 16.7 147 17.1 150 15.5 153 12.8 156 13.1 159 13.5 162 13.2 165 10 168 11.8 171 14.2 174 15.3 177 15 180 12.3 183 12.2 186 12.4 189 12.6 192 9.6 195 9.6 198 10.7 201 9.3 204 8.4 207 11.3 210 10.6 213 12.9 216 13.6 219 9.2 222 12 225 12.4 228 14.2 231 14.3 234 15.2 237 15.7 240L0 240Z'/%3E%3C/svg%3E");
    --blg-tear-h1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28' preserveAspectRatio='none'%3E%3Cpath d='M0 28L0 16.1 3 19.3 6 22.1 9 23 12 22.6 15 22.2 18 21.3 21 23 24 23 27 22.6 30 23 33 22.5 36 23 39 23 42 23 45 21.2 48 18.5 51 20.1 54 13.8 57 11.4 60 12.7 63 15.2 66 13.5 69 18.9 72 18.4 75 19.6 78 19 81 19.3 84 16.4 87 10.4 90 7.3 93 8.7 96 7 99 7 102 8.8 105 7.3 108 7 111 9.1 114 10.6 117 11 120 9.7 123 8.5 126 13.9 129 15.6 132 15.1 135 18.2 138 19.1 141 16.2 144 16.1 147 10.8 150 11.4 153 12.1 156 9 159 11.5 162 14 165 13.8 168 17.9 171 20.1 174 21.1 177 23 180 19.8 183 23 186 21.5 189 20.2 192 22.1 195 23 198 20.3 201 21.6 204 23 207 22.9 210 23 213 22.7 216 21.3 219 19.1 222 20 225 19.7 228 19.2 231 17.9 234 16.9 237 16.7 240 16.1L240 28Z'/%3E%3C/svg%3E");
    --blg-tear-h2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28' preserveAspectRatio='none'%3E%3Cpath d='M0 28L0 12.3 3 7 6 7 9 9 12 10.8 15 9.5 18 9.5 21 15.1 24 14.1 27 11.1 30 9.4 33 9 36 7 39 7.1 42 7 45 7 48 7 51 7 54 8.4 57 7 60 7.8 63 9.1 66 8.8 69 11.3 72 10 75 11.6 78 9 81 7 84 7 87 9.2 90 12.3 93 7 96 8 99 8.8 102 11.5 105 13.4 108 10.5 111 13.1 114 15.2 117 13.2 120 13.7 123 14 126 11.5 129 9 132 9.6 135 7.5 138 9.1 141 9.7 144 9.3 147 11.3 150 10.9 153 12.5 156 15.2 159 14.9 162 14.5 165 14.8 168 18 171 16.2 174 13.8 177 12.7 180 13 183 15.7 186 15.8 189 15.6 192 15.4 195 18.4 198 18.4 201 17.3 204 18.7 207 19.6 210 16.7 213 17.4 216 15.1 219 14.4 222 18.8 225 16 228 15.6 231 13.8 234 13.7 237 12.8 240 12.3L240 28Z'/%3E%3C/svg%3E");
    background-image: linear-gradient(90deg, rgba(14,23,51,.55) 36%, rgba(14,23,51,0) 56%), var(--blg-profile);
}
body.xy-space-site.xy-space-blg .xy-utop-card::before,
body.xy-space-site.xy-space-blg .xy-utop-card::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; z-index: -1; pointer-events: none;
    border-radius: 15px 0 0 15px;
    -webkit-mask-repeat: no-repeat, repeat-y; mask-repeat: no-repeat, repeat-y;
    -webkit-mask-position: 0 0, 100% 0; mask-position: 0 0, 100% 0;
    -webkit-mask-size: calc(100% - 27px) 100%, 28px 240px; mask-size: calc(100% - 27px) 100%, 28px 240px;
}
body.xy-space-site.xy-space-blg .xy-utop-card::before {
    width: calc(var(--blg-tear-w) + 9px);
    background: repeating-linear-gradient(0deg, #d9dfe9 0 1px, transparent 1px 12px), #f4f3ef;
    -webkit-mask-image: linear-gradient(#000, #000), var(--blg-tear-v2); mask-image: linear-gradient(#000, #000), var(--blg-tear-v2);
}
body.xy-space-site.xy-space-blg .xy-utop-card::after {
    width: var(--blg-tear-w);
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,.055) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 24px),
        linear-gradient(200deg, rgba(255,255,255,.10), transparent 40%),
        linear-gradient(160deg, #3463e6 0%, #2647b8 34%, #18297a 68%, #101a45 100%);
    -webkit-mask-image: linear-gradient(#000, #000), var(--blg-tear-v1); mask-image: linear-gradient(#000, #000), var(--blg-tear-v1);
}
body.xy-space-site.xy-space-blg .xy-utop-meteors {
    display: block; position: absolute; left: 0; top: 0; bottom: 0; width: var(--blg-tear-w);
    z-index: 0; pointer-events: none; overflow: hidden; border-radius: 15px 0 0 15px;
}
body.xy-space-site.xy-space-blg .xy-utop-meteors > i { position: absolute; display: block; }
body.xy-space-site.xy-space-blg .xy-utop-meteors > i:nth-child(1) {
    left: 0; top: 0; width: 320px; height: 190px;
    background: radial-gradient(circle, rgba(255,255,255,.28) 1.2px, transparent 1.8px) 0 0 / 8px 8px;
    -webkit-mask-image: radial-gradient(farthest-side at 0 0, #000 15%, transparent);
    mask-image: radial-gradient(farthest-side at 0 0, #000 15%, transparent);
}
body.xy-space-site.xy-space-blg .xy-utop-meteors > i:nth-child(2) {
    left: 0; bottom: 14px; width: 18px; height: 72px; opacity: .9;
    background: conic-gradient(#f07aa8 25%, transparent 0 50%, #f07aa8 0 75%, transparent 0) 0 0 / 18px 18px;
}
body.xy-space-site.xy-space-blg .xy-utop-meteors > i:nth-child(n+3) { display: none; }
body.xy-space-site.xy-space-blg .xy-utop-medal { background: rgba(10,18,52,.55); border-color: rgba(255,255,255,.28); }

/* 回形针编号名牌：照海报上「BLG. XUN」的纸片名牌，左上空白处斜贴。只给本人看，号码只读凭证。 */
.xy-utop-fanno {
    position: absolute; left: 34px; top: 26px; z-index: 2;
    display: inline-flex; flex-direction: column; padding: 9px 16px 8px 20px;
    background: repeating-linear-gradient(0deg, #dfe4ec 0 1px, transparent 1px 11px), #f6f4ef;
    box-shadow: 0 6px 14px rgba(6,12,34,.35); transform: rotate(-4deg);
    font-family: 'XY Fanno', ui-monospace, 'Courier New', monospace; font-weight: 700; line-height: 1;
    -webkit-user-select: none; user-select: none; cursor: default;
}
.xy-utop-fanno em { font-style: normal; font-size: 13px; letter-spacing: .04em; color: #1c2f86; }
.xy-utop-fanno b { margin-top: 5px; font-size: 21px; letter-spacing: .06em; color: #e5679a; font-weight: 700; }
.xy-utop-fanno small { margin-top: 6px; font-family: var(--bs-font-sans-serif, system-ui, sans-serif); font-size: 11px; font-weight: 700; color: #1c2f86; letter-spacing: .12em; }
.xy-utop-fanno.is-rare b {
    background: linear-gradient(90deg, #d6336c, #e08a00, #2f62e3, #d6336c, #e08a00); background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: xy-fanno-shine 3.2s linear infinite;
}
.xy-utop-fanno-clip {
    position: absolute; left: 4px; top: -13px; width: 13px; height: 34px; transform: rotate(8deg);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 34' fill='none' stroke='%23a9b3c2' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M9.5 10v17a3 3 0 0 1-6 0V6a4.5 4.5 0 0 1 9 0v20'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 1px 1px rgba(6,12,34,.4));
}

@media (min-width: 992px) {
    /* 宽屏：照片按卡片高度缩放（auto 150%，上排脸完整、下排露上半），宽度约 1.74 × 卡片高。
     * 卡片比本地 1110px 宽时（线上实测），多出的宽度全给左栏：撕口放在「照片左缘再往右一点」，
     * 右侧等级 / 金币卡那一列跟着撕口走，宽度封顶 600px；列间距 50px，让左边勋章框停在撕口锯齿之前、
     *   右列从白纸边之后开始（撕口向内最深约 21px、白纸边向外 9px）。
     * - 撕口 = max(41%, 100% - 650px)；照片左缘 ≈ 100% - 1.74 × 高 + 10px，min-height 400px 保证它 ≤ 100% - 684px，
     *   总在撕纸下面。卡片更高只会让照片更宽、左缘更靠左，不会露缝。
     * - 别改成按宽度缩放照片：卡片一宽照片就被放大，选手脸被裁掉（2026-11-15 线上先露缝、改完又裁脸，两次都是宽容器）。 */
    body.xy-space-site.xy-space-blg .xy-utop-card {
        --blg-tear-w: max(41%, calc(100% - 650px));
        min-height: 400px;
        background-size: auto, auto 150%;
        grid-template-columns: minmax(0,1fr) min(57%, 600px); column-gap: 50px;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    /* 平板：资料独占一行、卡片更高，照片宽度从撕口算起保证盖满（不小于 700px） */
    body.xy-space-site.xy-space-blg .xy-utop-card { background-size: auto, max(calc(100% - var(--blg-tear-w) + 48px), 700px) auto; }
}
@media (max-width: 991px) {
    body.xy-space-site.xy-space-blg .xy-utop-card { --blg-tear-w: 44%; }
}
@media (max-width: 767px) {
    /* 手机：照片在上、资料在下，撕口改在蓝纸上缘 */
    /* 保持两层，和上面 background-size: auto, auto 62% 对得上 */
    body.xy-space-site.xy-space-blg .xy-utop-card { background-image: linear-gradient(transparent, transparent), var(--blg-profile); }
    body.xy-space-site.xy-space-blg .xy-utop-card::before,
    body.xy-space-site.xy-space-blg .xy-utop-card::after {
        width: auto; right: 0; border-radius: 0 0 11px 11px;
        -webkit-mask-repeat: no-repeat, repeat-x; mask-repeat: no-repeat, repeat-x;
        -webkit-mask-position: 0 100%, 0 0; mask-position: 0 100%, 0 0;
        -webkit-mask-size: 100% calc(100% - 27px), 240px 28px; mask-size: 100% calc(100% - 27px), 240px 28px;
    }
    body.xy-space-site.xy-space-blg .xy-utop-card::before { top: 170px; -webkit-mask-image: linear-gradient(#000, #000), var(--blg-tear-h2); mask-image: linear-gradient(#000, #000), var(--blg-tear-h2); }
    body.xy-space-site.xy-space-blg .xy-utop-card::after { top: 178px; -webkit-mask-image: linear-gradient(#000, #000), var(--blg-tear-h1); mask-image: linear-gradient(#000, #000), var(--blg-tear-h1); }
    body.xy-space-site.xy-space-blg .xy-utop-meteors { display: none; }
    /* 手机照片矮，左上角是选手的脸：名牌改单行，斜贴在撕口右侧 */
    .xy-utop-fanno { left: auto; right: 16px; top: 150px; flex-flow: row wrap; align-items: baseline; justify-content: flex-end; column-gap: 6px; max-width: 70%; padding: 7px 12px 6px 18px; transform: rotate(-3deg); }
    .xy-utop-fanno em { font-size: 11px; }
    .xy-utop-fanno b { font-size: 16px; margin-top: 0; }
    .xy-utop-fanno small { flex-basis: 100%; margin-top: 4px; text-align: right; font-size: 10px; }
}
