/* 皮肤站：只补官网没有的部件。尺寸、颜色、圆角都照官网 —— 卡片 8px、小件 4~5px、边框 #e2eaf4 */
main { min-height: 60vh; }
.sk-sec { padding: 4px 0 56px; }
.sk-sec + .sk-sec { padding-top: 0; }
.sk-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.sk-h:first-child { margin-top: 0; }
.sk-h h2 { margin: 0; font-size: 1.15rem; font-weight: 700; color: #0b1730; }
.sk-h h2 small { margin-left: 8px; font-size: .8rem; font-weight: 500; color: var(--text-tertiary); }
.sk-h a { font-size: .85rem; font-weight: 600; color: #1769e8; text-decoration: none; }
.sk-h a:hover { text-decoration: underline; }
.ffilter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ffilter-space { flex: 1; }
.sk-filter-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -4px 0 16px; font-size: .8rem; color: var(--text-tertiary); }
.sk-filter-row > span { flex: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn { gap: 6px; }

/* 颜色筛选 */
.sk-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.sk-swatch { width: 22px; height: 22px; border-radius: 4px; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(11, 23, 48, .12); transition: transform .12s ease; }
.sk-swatch:hover { transform: scale(1.12); }
.sk-swatch.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1769e8; }

/* ---- 材质卡片：和论坛的板块卡同一套边框、阴影、悬停 ---- */
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.forum-main .sk-grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); }
.sk-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #e2eaf4; border-radius: 8px; box-shadow: 0 10px 28px rgba(42, 86, 140, .06); text-decoration: none; color: inherit; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.sk-card:hover { border-color: #b6d1f4; box-shadow: 0 14px 30px rgba(42, 86, 140, .1); transform: translateY(-2px); }
.sk-pv { position: relative; aspect-ratio: 1 / 1.1; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #f3f7fd, #e8eff8); border-bottom: 1px solid #e2eaf4; }
/* 缩略图脱离文档流、按预览区高度定尺寸：高清贴图画出来的画布有几百像素高，留在流里会把卡片撑高 */
.sk-pv { overflow: hidden; }
.sk-pv > .sk-thumb { position: absolute; top: 11%; left: 50%; height: 78%; width: auto; max-width: none; transform: translateX(-50%); image-rendering: pixelated; transition: opacity .28s ease; }
.sk-pv > .sk-thumb.flat { top: 19%; height: 62%; }
/* 悬停时 3D 叠在平面图上方淡入；平面图和 3D 首帧都是正面、同样大小，换过去看不出跳 */
.sk-pv canvas.sk-live { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .28s ease; }
.sk-card.live .sk-pv canvas.sk-live { opacity: 1; }
.sk-card.live .sk-pv > .sk-thumb { opacity: 0; }
.sk-pv-tags { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; gap: 4px; flex-wrap: wrap; }
.sk-fav { position: absolute; top: 6px; right: 6px; z-index: 2; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 1px solid #e2eaf4; border-radius: 6px; background: #fff; color: #8a99ad; cursor: pointer; opacity: 0; transition: opacity .15s ease, color .15s ease; }
.sk-fav svg { width: 15px; height: 15px; }
.sk-card:hover .sk-fav, .sk-fav.on { opacity: 1; }
.sk-fav.on { color: #e5484d; border-color: #f5c6c7; }
.sk-fav.on svg { fill: currentColor; }
.sk-body { padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 5px; }
.sk-name { font-size: .9rem; font-weight: 700; color: #0b1730; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; font-size: .74rem; color: var(--text-tertiary); }
.sk-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: #5f6f87; text-decoration: none; }
.sk-who :is(img, canvas) { width: 18px; height: 18px; border-radius: 50%; flex: none; image-rendering: pixelated; background: #e8eff8; }
.sk-who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-nums { display: inline-flex; gap: 9px; flex: none; }
.sk-nums i { font-style: normal; display: inline-flex; align-items: center; gap: 3px; }
.sk-nums svg { width: 12px; height: 12px; }

.fbadge.green { background: #e6f5ec; color: #0f7a45; border-color: #c3e6d1; }
.fbadge.amber { background: #fff3e0; color: #c2600a; border-color: #ffe0b2; }
.fbadge.gray { background: #eef1f5; color: #6b7a8d; border-color: #dde3ea; }
.fbadge.white { background: rgba(255, 255, 255, .94); color: #5f6f87; border-color: #e2eaf4; }

/* ---- 首页精选 ---- */
.sk-feature { display: grid; grid-template-columns: 300px minmax(0, 1fr); background: #fff; border: 1px solid #e2eaf4; border-radius: 8px; box-shadow: 0 10px 28px rgba(42, 86, 140, .06); overflow: hidden; }
.sk-stage { position: relative; min-height: 340px; background: #061a38; }
.sk-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.sk-feature-main { padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sk-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: #1769e8; }
.sk-feature-main h2 { margin: 0; font-size: 1.7rem; color: #0b1730; }
.sk-feature-main p { margin: 0; font-size: .92rem; }
.sk-feature-stats { display: flex; gap: 28px; }
.sk-feature-stats b { display: block; font-size: 1.2rem; font-weight: 800; color: #1769e8; }
.sk-feature-stats span { font-size: .74rem; color: var(--text-tertiary); }
.sk-feature-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.sk-feature-pick { display: flex; gap: 8px; border-top: 1px solid #e2eaf4; padding-top: 14px; }
.sk-feature-pick button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border: 1px solid #e2eaf4; border-radius: 6px; background: #f7faff; cursor: pointer; font-size: .72rem; color: #5f6f87; transition: border-color .15s ease; }
.sk-feature-pick button:hover { border-color: #b6d1f4; }
.sk-feature-pick button.on { border-color: #1769e8; color: #1769e8; background: #eef5ff; }
.sk-feature-pick :is(img, canvas) { height: 46px; image-rendering: pixelated; }
.sk-feature-pick span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-who-big { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: #0b1730; text-decoration: none; }
.sk-who-big :is(img, canvas) { width: 34px; height: 34px; border-radius: 50%; image-rendering: pixelated; background: #e8eff8; }
.sk-who-big small { display: block; color: var(--text-tertiary); font-size: .74rem; }
.fhot-item :is(img, canvas).px { width: 26px; height: 32px; object-fit: contain; image-rendering: pixelated; flex: none; }
.sk-tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- 详情 ---- */
.sk-crumbs { font-size: .84rem; color: var(--text-tertiary); margin-bottom: 12px; }
.sk-crumbs a { color: #5f6f87; text-decoration: none; }
.sk-crumbs a:hover { color: #1769e8; }
.sk-viewer { position: relative; height: 520px; border-radius: 8px; overflow: hidden; border: 1px solid #0e2a52; transition: background .3s ease; }
.sk-viewer canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.sk-viewer.split { display: grid; grid-template-columns: 1fr 1fr; }
.sk-viewer.split > .sk-half { position: relative; min-width: 0; }
.sk-viewer.split > .sk-half + .sk-half { border-left: 1px solid rgba(255, 255, 255, .12); }
.sk-half-label { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 8px; border-radius: 4px; background: rgba(6, 26, 56, .7); color: #fff; font-size: .74rem; font-weight: 600; }
.bg-navy { background: radial-gradient(90% 70% at 50% 30%, #1d3f72, #061a38); }
.bg-light { background: linear-gradient(180deg, #f7faff, #dfe8f4); }
.bg-grass { background: linear-gradient(180deg, #9cc9f2 0%, #d6ebfb 60%, #6aa84f 60%, #4c8738 100%); }
.bg-dark { background: #14161b; }
.sk-vbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.sk-vbar .ftabs a { cursor: pointer; }
.sk-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sk-tool { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border: 1px solid #e2eaf4; border-radius: 5px; background: #fff; color: #5f6f87; font-size: .8rem; font-weight: 600; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.sk-tool svg { width: 15px; height: 15px; }
.sk-tool:hover { border-color: #1769e8; color: #1769e8; }
.sk-tool.on { background: #eef5ff; border-color: #9cc2f5; color: #1769e8; }
.sk-bgdot { width: 18px; height: 18px; border-radius: 4px; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(11, 23, 48, .15); }
.sk-bgdot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #1769e8; }
.sk-panel { background: #fff; border: 1px solid #e2eaf4; border-radius: 8px; box-shadow: 0 10px 28px rgba(42, 86, 140, .06); padding: 18px 20px; }
.sk-panel + .sk-panel { margin-top: 14px; }
.sk-panel > h3 { margin: 0 0 12px; font-size: 1rem; color: #0b1730; }
.sk-panel > h3 small { margin-left: 6px; font-weight: 500; font-size: .8rem; color: var(--text-tertiary); }
.sk-title { margin: 0 0 8px; font-size: 1.35rem; color: #0b1730; line-height: 1.3; }
.sk-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.sk-author-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; margin: 12px 0; border-top: 1px solid #e2eaf4; border-bottom: 1px solid #e2eaf4; }
.sk-stack { display: flex; flex-direction: column; gap: 8px; }
.sk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sk-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.sk-row2 .btn, .sk-row3 .btn, .sk-stack > .btn { width: 100%; padding-left: 8px; padding-right: 8px; }
.btn.on { background: #eef5ff !important; border-color: #9cc2f5 !important; color: #1769e8 !important; }
.btn.on svg { fill: currentColor; }
.sk-kv { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 9px 10px; margin: 0; font-size: .84rem; }
.sk-kv dt { color: var(--text-tertiary); }
.sk-kv dd { margin: 0; color: #0b1730; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.sk-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(11, 23, 48, .12); margin-right: 2px; }
.sk-menu { position: relative; }
.sk-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; padding: 5px; background: #fff; border: 1px solid #dfe8f3; border-radius: 8px; box-shadow: 0 14px 34px rgba(15, 40, 80, .16); }
.sk-pop button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 5px; background: none; font-size: .86rem; font-weight: 600; color: #0b1730; cursor: pointer; text-align: left; }
.sk-pop button:hover { background: #eef5ff; color: #1769e8; }
.sk-pop button small { font-weight: 500; font-size: .76rem; color: var(--text-tertiary); }
.sk-pop-h { padding: 6px 10px 4px; font-size: .74rem; color: var(--text-tertiary); }
.sk-cmt { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid #e2eaf4; }
.sk-cmt:first-child { border-top: 0; padding-top: 0; }
.sk-cmt :is(img, canvas) { width: 32px; height: 32px; border-radius: 50%; image-rendering: pixelated; background: #e8eff8; }
.sk-cmt-h { display: flex; gap: 8px; align-items: baseline; font-size: .82rem; }
.sk-cmt-h b { color: #0b1730; }
.sk-cmt-h small { color: var(--text-tertiary); }
.sk-cmt p { margin: 3px 0 0; font-size: .9rem; color: #0b1730; }
.sk-cmt-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.sk-cmt-form textarea { width: 100%; min-height: 72px; padding: 10px 12px; border: 1px solid #dfe8f3; border-radius: 8px; resize: vertical; font: inherit; font-size: .9rem; background: #f8fbff; }
.sk-cmt-form textarea:focus { outline: none; border-color: #1769e8; background: #fff; }
.sk-cmt-form .btn { align-self: flex-end; }
.sk-input { width: 100%; min-height: 38px; padding: 0 12px; border: 1px solid #dfe8f3; border-radius: 8px; background: #f8fbff; font: inherit; font-size: .88rem; color: #0b1730; }
.sk-input:focus { outline: none; border-color: #1769e8; background: #fff; }
select.sk-input { padding-right: 28px; cursor: pointer; }
.sk-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 6px; background: #eef2f8; }
.sk-seg button { border: 0; background: none; padding: 5px 12px; border-radius: 4px; font-size: .8rem; font-weight: 600; color: #5f6f87; cursor: pointer; }
.sk-seg button.on { background: #fff; color: #0b1730; box-shadow: 0 1px 3px rgba(11, 23, 48, .12); }

/* ---- 列表行（排行、下载）沿用 board-row ---- */
.board-list { display: flex; flex-direction: column; gap: 10px; }
.board-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; text-decoration: none; color: inherit; }
.sk-rank-no { width: 30px; flex: none; text-align: center; font-size: 1.15rem; font-weight: 800; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.sk-rank-no.top1 { color: #d39b1c; }
.sk-rank-no.top2 { color: #8a99ad; }
.sk-rank-no.top3 { color: #c0703c; }
.sk-rank-pv { width: 56px; height: 64px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: linear-gradient(180deg, #f3f7fd, #e8eff8); }
.sk-rank-pv :is(img, canvas) { height: 54px; width: auto; image-rendering: pixelated; }
.sk-rank-pv :is(img, canvas).round { width: 36px; height: 36px; border-radius: 50%; }
.sk-bar { width: 160px; flex: none; height: 6px; border-radius: 3px; background: #edf2f8; overflow: hidden; }
.sk-bar i { display: block; height: 100%; background: #1769e8; border-radius: 3px; }
.sk-up { color: #0f7a45; font-weight: 700; }

/* ---- 我的角色 ---- */
.sk-chars { display: flex; flex-direction: column; gap: 14px; }
.sk-char { display: grid; grid-template-columns: 200px minmax(0, 1fr); background: #fff; border: 1px solid #e2eaf4; border-radius: 8px; box-shadow: 0 10px 28px rgba(42, 86, 140, .06); overflow: hidden; }
.sk-char-3d { position: relative; min-height: 270px; background: radial-gradient(90% 70% at 50% 30%, #1d3f72, #061a38); }
.sk-char-3d canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.sk-char-3d .fbadge { position: absolute; left: 10px; bottom: 10px; }
.sk-char-main { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sk-char-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sk-char-head h3 { margin: 0; font-size: 1.1rem; color: #0b1730; }
.sk-uuid { font-family: ui-monospace, Menlo, monospace; font-size: .7rem; color: var(--text-tertiary); word-break: break-all; }
.sk-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sk-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; border: 1px solid #e2eaf4; border-radius: 6px; background: #f7faff; cursor: pointer; text-align: center; min-width: 0; font: inherit; transition: border-color .15s ease, background .15s ease; }
.sk-slot:hover { border-color: #b6d1f4; background: #eef5ff; }
.sk-slot-pv { height: 52px; display: flex; align-items: center; justify-content: center; color: #8a99ad; font-size: 1.3rem; }
.sk-slot-pv :is(img, canvas) { max-height: 50px; max-width: 44px; image-rendering: pixelated; }
.sk-slot small { font-size: .7rem; color: var(--text-tertiary); }
.sk-slot b { max-width: 100%; font-size: .8rem; color: #0b1730; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-slot b.none { color: var(--text-tertiary); font-weight: 500; }
.sk-char-foot { display: flex; gap: 8px; align-items: center; margin-top: auto; }
.sk-char-foot select { flex: 1; min-width: 0; }
.sk-link-danger { border: 0; background: none; padding: 0; color: var(--text-tertiary); font-size: .78rem; cursor: pointer; }
.sk-link-danger:hover { color: #d13438; }
.sk-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.sk-code input { min-width: 0; min-height: 42px; text-align: center; font-size: 1.15rem; font-weight: 700; border: 1px solid #dfe8f3; border-radius: 6px; background: #f8fbff; color: #0b1730; }
.sk-code input:focus { outline: none; border-color: #1769e8; background: #fff; }
.sk-note { margin: 8px 0 0; font-size: .76rem; color: var(--text-tertiary); line-height: 1.6; }
.fside-box .btn { width: 100%; }
.sk-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 8px; }
.sk-steps li { counter-increment: s; display: flex; gap: 8px; font-size: .82rem; color: #5f6f87; line-height: 1.55; }
.sk-steps li::before { content: counter(s); flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 4px; background: #eef5ff; color: #1769e8; font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sk-look-pv { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 120px; padding: 12px; background: radial-gradient(90% 70% at 50% 30%, #1d3f72, #061a38); border-bottom: 1px solid #e2eaf4; }
.sk-look-pv :is(img, canvas) { height: 100%; image-rendering: pixelated; }
.sk-look-pv :is(img, canvas).sm { height: 60%; }
.sk-timeline { display: flex; flex-direction: column; }
.sk-tl { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #e2eaf4; }
.sk-tl:first-child { border-top: 0; }
.sk-tl time { width: 84px; flex: none; font-size: .78rem; color: var(--text-tertiary); }
.sk-tl :is(img, canvas) { height: 40px; width: 32px; object-fit: contain; image-rendering: pixelated; flex: none; }
.sk-tl-main { flex: 1; min-width: 0; font-size: .88rem; color: #0b1730; }
.sk-tl-main small { display: block; color: var(--text-tertiary); font-size: .76rem; }
.sk-chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 8px 4px 22px; }
.sk-chart i { position: relative; flex: 1; border-radius: 3px 3px 0 0; background: #1769e8; opacity: .85; }
.sk-chart i span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: .66rem; font-style: normal; color: var(--text-tertiary); white-space: nowrap; }

/* ---- 上传 ---- */
.sk-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; padding: 18px; border: 1.5px dashed #b9cfee; border-radius: 8px; background: #f8fbff; color: #5f6f87; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.sk-drop:hover, .sk-drop.over { border-color: #1769e8; background: #eef5ff; }
.sk-drop svg { width: 26px; height: 26px; color: #1769e8; }
.sk-drop b { color: #0b1730; font-size: .95rem; }
.sk-drop span { font-size: .78rem; color: var(--text-tertiary); }
.sk-up-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sk-up { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1px solid #e2eaf4; border-radius: 6px; background: #fff; }
.sk-up-pv { height: 62px; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #f3f7fd, #e8eff8); }
.sk-up-pv :is(img, canvas) { height: 54px; width: auto; image-rendering: pixelated; }
.sk-up-f { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sk-up-f .r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sk-up-f .sk-input { min-height: 32px; flex: 1; min-width: 120px; width: auto; }
.sk-up-f select.sk-input { flex: none; }
.sk-hint { font-size: .76rem; color: #0f7a45; }
.sk-hint.err { color: #d13438; }
.sk-prog { height: 4px; border-radius: 2px; background: #e6eef9; overflow: hidden; }
.sk-prog i { display: block; height: 100%; background: #1769e8; transition: width .15s linear; }
.sk-check { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: #5f6f87; cursor: pointer; }

/* ---- 下载 ---- */
.sk-dl-filter { display: grid; grid-template-columns: 200px 1fr auto; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.sk-dl-ico { width: 44px; height: 44px; flex: none; border-radius: 8px; background: #eef5ff; color: #1769e8; display: flex; align-items: center; justify-content: center; }
.sk-dl-ico svg { width: 22px; height: 22px; }
.sk-dl-main { flex: 1; min-width: 0; }
.sk-dl-main b { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .98rem; color: #0b1730; }
.sk-dl-main span { display: block; margin-top: 3px; font-size: .78rem; color: var(--text-tertiary); }
.sk-dl-main details { margin-top: 6px; font-size: .8rem; }
.sk-dl-main summary { cursor: pointer; color: #1769e8; font-weight: 600; list-style: none; }
.sk-dl-main summary::-webkit-details-marker { display: none; }
.sk-dl-main ul { margin: 6px 0 0; padding-left: 18px; color: #5f6f87; line-height: 1.7; }
.sk-dl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.sk-dl-side small { font-size: .72rem; color: var(--text-tertiary); }
.sk-cmp { width: 100%; border-collapse: collapse; font-size: .8rem; }
.sk-cmp th, .sk-cmp td { padding: 7px 4px; text-align: left; border-bottom: 1px solid #e2eaf4; }
.sk-cmp th { color: var(--text-tertiary); font-weight: 600; font-size: .72rem; }
.sk-cmp tr:last-child td { border: 0; }
.sk-yes { color: #0f7a45; font-weight: 700; }
.sk-no { color: var(--text-tertiary); }
pre.sk-code-block { margin: 8px 0 0; padding: 10px 12px; border-radius: 6px; background: #061a38; color: #cfe0ff; font-size: .76rem; white-space: pre-wrap; word-break: break-all; }
code { padding: 1px 6px; border-radius: 4px; background: #eef2f8; font-size: .86em; }

/* ---- 帮助 ---- */
.sk-faq { background: #fff; border: 1px solid #e2eaf4; border-radius: 8px; box-shadow: 0 10px 28px rgba(42, 86, 140, .06); }
.sk-faq details { border-top: 1px solid #e2eaf4; }
.sk-faq details:first-child { border-top: 0; }
.sk-faq summary { padding: 15px 18px; cursor: pointer; font-weight: 600; font-size: .95rem; color: #0b1730; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.sk-faq summary::-webkit-details-marker { display: none; }
.sk-faq summary::after { content: "+"; color: var(--text-tertiary); font-weight: 400; }
.sk-faq details[open] summary::after { content: "−"; }
.sk-faq details > div { padding: 0 18px 16px; font-size: .9rem; color: #5f6f87; line-height: 1.75; }

/* ---- 作者 ---- */
.sk-author-hero { display: flex; align-items: center; gap: 18px; }
.sk-author-hero :is(img, canvas) { width: 76px; height: 76px; border-radius: 8px; image-rendering: pixelated; background: #e8eff8; border: 1px solid #e2eaf4; }
.sk-author-hero .hero-title { margin: 0; }
.sk-author-stats { display: flex; gap: 24px; margin-top: 8px; font-size: .84rem; color: #5f6f87; }
.sk-author-stats b { color: #0b1730; margin-right: 3px; }

/* ---- 弹窗 / 提示 ---- */
.sk-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; pointer-events: none; }
.sk-modal-mask { position: absolute; inset: 0; background: rgba(6, 26, 56, .4); opacity: 0; transition: opacity .18s ease; }
.sk-modal-box { position: relative; width: min(var(--w, 560px), 100%); max-height: min(86vh, 720px); display: flex; flex-direction: column; background: #fff; border-radius: 8px; box-shadow: 0 24px 60px rgba(6, 26, 56, .22); opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.sk-modal.open { pointer-events: auto; }
.sk-modal.open .sk-modal-mask { opacity: 1; }
.sk-modal.open .sk-modal-box { opacity: 1; transform: none; }
.sk-m-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #e2eaf4; }
.sk-m-h h3 { margin: 0; font-size: 1.02rem; color: #0b1730; }
.sk-m-x { width: 30px; height: 30px; border: 0; border-radius: 5px; background: none; color: #8a99ad; font-size: 1.1rem; cursor: pointer; }
.sk-m-x:hover { background: #eef2f8; color: #0b1730; }
.sk-m-b { padding: 16px 18px; overflow-y: auto; }
.sk-m-f { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid #e2eaf4; }
.sk-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 14px; }
.sk-pick { padding: 0; border: 1px solid #e2eaf4; border-radius: 6px; background: #fff; overflow: hidden; cursor: pointer; text-align: center; font: inherit; }
.sk-pick:hover { border-color: #b6d1f4; }
.sk-pick.on { border-color: #1769e8; box-shadow: 0 0 0 1px #1769e8; }
.sk-pick div { height: 88px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #f3f7fd, #e8eff8); }
.sk-pick :is(img, canvas) { height: 72px; width: auto; image-rendering: pixelated; }
.sk-pick :is(img, canvas).flat { height: 56px; }
.sk-pick span { display: block; padding: 5px 6px; font-size: .76rem; font-weight: 600; color: #0b1730; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-pick-h { margin: 0 0 8px; font-size: .78rem; color: var(--text-tertiary); font-weight: 600; }
.sk-tip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.sk-tip button { min-height: 50px; border: 1px solid #dfe8f3; border-radius: 6px; background: #fff; font-weight: 700; font-size: 1rem; color: #0b1730; cursor: pointer; }
.sk-tip button small { display: block; font-size: .7rem; font-weight: 500; color: var(--text-tertiary); }
.sk-tip button.on { border-color: #1769e8; background: #eef5ff; color: #1769e8; }
.sk-toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.sk-toast { padding: 10px 16px; border-radius: 6px; background: #0b1730; color: #fff; font-size: .86rem; box-shadow: 0 12px 30px rgba(6, 26, 56, .25); animation: sk-toast .2s ease; }
@keyframes sk-toast { from { opacity: 0; transform: translateY(6px); } }
.nav-upload { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px !important; border-radius: 6px; background: #1769e8; color: #fff !important; font-size: .86rem !important; font-weight: 600 !important; }
.nav-upload::after { display: none !important; }
.nav-upload:hover { background: #0d58cd; }
.nav-upload svg { width: 15px; height: 15px; }

/* ---- 我的角色：一次编辑一个角色 ---- */
.sk-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sk-switch > * { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 14px 4px 5px; border: 1px solid #e2eaf4; border-radius: 8px; background: #fff; font: inherit; font-size: .9rem; font-weight: 600; color: #5f6f87; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.sk-switch > *:hover { border-color: #b6d1f4; color: #0b1730; }
.sk-switch > .on { border-color: #1769e8; color: #1769e8; box-shadow: 0 0 0 1px #1769e8; }
.sk-switch :is(img, canvas), .sk-switch i { width: 32px; height: 32px; border-radius: 5px; image-rendering: pixelated; background: #e8eff8; flex: none; }
.sk-switch .sk-switch-add { padding-left: 12px; border-style: dashed; color: #1769e8; }
.sk-switch-add svg { width: 16px; height: 16px; }
.sk-editor { display: grid; grid-template-columns: 340px minmax(0, 1fr); background: #fff; border: 1px solid #e2eaf4; border-radius: 8px; box-shadow: 0 10px 28px rgba(42, 86, 140, .06); overflow: hidden; }
.sk-editor-3d { position: relative; min-height: 460px; background: radial-gradient(90% 70% at 50% 30%, #1d3f72, #061a38); }
.sk-editor-3d canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.sk-editor-3d .fbadge { position: absolute; left: 12px; bottom: 12px; }
.sk-editor-main { padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sk-editor-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #e2eaf4; }
.sk-editor-head h2 { margin: 0; font-size: 1.35rem; color: #0b1730; }
.sk-slot-list { display: flex; flex-direction: column; }
.sk-slot-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #e2eaf4; }
.sk-slot-thumb { width: 52px; height: 62px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: linear-gradient(180deg, #f3f7fd, #e8eff8); border: 1px dashed #cfdbea; }
.sk-slot-thumb:has(:is(img, canvas)) { border-style: solid; border-color: #e2eaf4; }
.sk-slot-thumb :is(img, canvas) { height: 52px; width: auto; image-rendering: pixelated; }
.sk-slot-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sk-slot-info small { font-size: .74rem; color: var(--text-tertiary); }
.sk-slot-info a { font-size: .95rem; font-weight: 700; color: #0b1730; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-slot-info a:hover { color: #1769e8; }
.sk-slot-info span { font-size: .76rem; color: #5f6f87; }
.sk-slot-info b { font-size: .92rem; font-weight: 500; color: var(--text-tertiary); }
.sk-slot-act { display: flex; gap: 6px; flex: none; }
.sk-editor-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; font-size: .84rem; color: var(--text-tertiary); }
.sk-editor-foot select { flex: 1; min-width: 0; min-height: 34px; }
.sk-editor-note { margin: 12px 2px 0; font-size: .8rem; color: var(--text-tertiary); }
.sk-editor-note a { color: #1769e8; font-weight: 600; text-decoration: none; }
.sk-bind-first { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: center; padding: 28px; }
.sk-bind-first h3 { margin: 0 0 14px; font-size: 1.2rem; color: #0b1730; }

@media (max-width: 980px) {
    .sk-feature { grid-template-columns: minmax(0, 1fr); }
    .sk-stage { min-height: 300px; }
    .sk-bar { display: none; }
    .sk-dl-filter { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
    .sk-toasts { bottom: 86px; }
    .nav-upload span { display: none; }
}
@media (max-width: 860px) {
    .sk-editor { grid-template-columns: minmax(0, 1fr); }
    .sk-editor-3d { min-height: 300px; }
    .sk-bind-first { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .sk-editor-main { padding: 14px 16px; }
    .sk-slot-row { gap: 10px; flex-wrap: wrap; }
    .sk-slot-act { width: 100%; justify-content: flex-end; }
    .sk-editor-foot { flex-wrap: wrap; }
    .sk-grid, .forum-main .sk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sk-char { grid-template-columns: minmax(0, 1fr); }
    .sk-char-3d { min-height: 230px; }
    .sk-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sk-viewer { height: 400px; }
    .board-row { gap: 10px; padding: 12px; }
    .sk-tl time { width: 56px; }
    .sk-tl .btn { display: none; }
}

/* ---- 新版页面补充 ---- */
.sk-toast.bad { background: #b42318; }
.sk-empty-h { font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.sk-row-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .86rem; color: #5f6f87; }
.sk-dl-label { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; color: var(--text-tertiary); }
.sk-up-tags { gap: 4px !important; }
.nav-avatar-toggle canvas.nav-avatar { image-rendering: pixelated; background: #24497e; }
.nav-user-head canvas { width: 40px; height: 40px; border-radius: 50%; image-rendering: pixelated; flex: none; background: #e8eff8; }
.nav-user-logout { display: block; text-decoration: none; text-align: center; }
.sk-switch > * { text-decoration: none; }
.sk-tl-main a { color: inherit; font-weight: 600; text-decoration: none; }
.sk-tl-main a:hover { color: #1769e8; }
.sk-cmt-h .sk-link-danger { margin-left: auto; }
.sk-up-pv canvas.flat { height: 40px; }
.sk-row2 .btn, .sk-row3 .btn { white-space: nowrap; padding-left: 6px; padding-right: 6px; font-size: .84rem; }
/* 玩家起的名字常是一长串没有空格的英文（skin_minecraft_xxx），不强制断行会撑出卡片 */
.sk-title, .sk-crumbs, .sk-kv dd, .sk-cmt p, .sk-feature-main h2, .sk-editor-head h2, .sk-author-hero .hero-title { overflow-wrap: anywhere; word-break: break-word; }
.forum-side, .forum-main, .sk-panel { min-width: 0; }
.fhot-item > div { min-width: 0; }
.fhot-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
