/* ============================================================
   MirAI·骑士智能 — 资源商城页面共享样式
   资源详情 / 购物车 / 发布者中心 / 列表分页
   ============================================================ */

/* ---------- 通用徽标 / 标签 ---------- */
.hbadge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.03em;
  border: 1px solid var(--line-soft); color: var(--muted);
  background: rgba(148, 163, 184, 0.06);
  white-space: nowrap;
}
.hbadge.cyan  { color: var(--cyan);  border-color: rgba(34, 211, 238, 0.35);  background: rgba(34, 211, 238, 0.08); }
.hbadge.green { color: var(--green); border-color: rgba(52, 211, 153, 0.35);  background: rgba(52, 211, 153, 0.08); }
.hbadge.red   { color: var(--red);   border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.08); }
.hbadge.gold  { color: var(--gold);  border-color: rgba(245, 185, 66, 0.35);  background: rgba(245, 185, 66, 0.08); }
.hbadge.violet{ color: var(--violet);border-color: rgba(139, 92, 246, 0.4);   background: rgba(139, 92, 246, 0.1); }

/* ---------- 资源详情页 ---------- */
.res-neighbor-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.res-neighbor-nav span { color: var(--muted); font-size: 12px; }
.res-neighbor-disabled { opacity: .4; pointer-events: none; }
.res-editor-mask[hidden] { display: none; }
.res-editor-mask { position: fixed; inset: 0; z-index: 1100; display: flex; justify-content: flex-end; }
.res-editor-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .58); }
.res-editor-panel { position: relative; width: min(760px, 72vw); height: 100%; display: flex; flex-direction: column; background: #0b1220; border-left: 1px solid var(--line-soft); box-shadow: -20px 0 60px rgba(0,0,0,.4); }
.res-editor-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.res-editor-head button { border: 0; background: transparent; color: var(--text); font-size: 20px; cursor: pointer; }
.res-editor-panel iframe { flex: 1; width: 100%; border: 0; background: transparent; }
.publisher-embed .nav, .publisher-embed .footer, .publisher-embed .page-head,
.publisher-embed .pub-side, .publisher-embed #resetFormBtn { display: none; }
.publisher-embed .page-main { max-width: none; min-height: 0; padding: 12px; }
.publisher-embed .pub-layout { display: block; }
.publisher-embed .pub-main { min-height: 0; padding: 20px; }
.publisher-embed .hform { grid-template-columns: 1fr; }
.res-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px;
  align-items: start;
}
.res-gallery { overflow: hidden; }
.res-main-img {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.96));
}
.res-main-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; image-rendering: pixelated; display: block; }
.res-main-img.res-map-preview img { image-rendering: auto; }
.res-main-img.res-preview-zoomable { cursor: zoom-in; }
.res-main-img.res-preview-zoomable img { cursor: zoom-in; }
.res-main-img.res-preview-zoomable::after {
  content: "点击放大"; position: absolute; right: 12px; top: 12px; z-index: 2;
  padding: 5px 9px; border: 1px solid rgba(34, 211, 238, 0.34); border-radius: 6px;
  color: #dbeafe; font-size: 12px; background: rgba(5, 10, 20, 0.78);
  opacity: 0; pointer-events: none; transition: opacity 0.18s ease;
}
.res-main-img.res-preview-zoomable:hover::after,
.res-main-img.res-preview-zoomable:focus-visible::after { opacity: 1; }
@media (hover: none) {
  .res-main-img.res-preview-zoomable::after { opacity: 1; }
}
.res-main-img.res-preview-zoomable:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
.res-image-lightbox[hidden] { display: none; }
.res-image-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 52px 24px 44px; background: rgba(2, 6, 23, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: zoom-out; overflow: hidden; touch-action: none;
}
.res-image-lightbox img {
  position: absolute; left: 50%; top: 50%; max-width: none; max-height: none;
  object-fit: fill; image-rendering: pixelated; cursor: grab;
  transform-origin: center; user-select: none; touch-action: none;
}
.res-image-lightbox.is-map-preview img { image-rendering: auto; }
.res-image-lightbox.is-dragging img { cursor: grabbing; }
.res-image-lightbox-tools { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.res-image-lightbox-tools button { padding: 7px 12px; border: 1px solid rgba(148,163,184,.4); border-radius: 6px; background: #0f172a; color: #e2e8f0; cursor: pointer; }
.res-image-lightbox-tools button:hover { border-color: var(--cyan); }
@media (max-width: 480px) { .res-image-lightbox-tools { top: 64px; white-space: nowrap; } }
.res-image-lightbox-close {
  position: absolute; top: 14px; right: 18px; z-index: 1;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.3); border-radius: 50%;
  color: #e2e8f0; font-size: 20px; background: rgba(15, 23, 42, 0.8); cursor: pointer;
}
.res-image-lightbox-close:hover { border-color: var(--cyan); color: var(--cyan); }
.res-image-lightbox-hint {
  position: absolute; bottom: 14px; color: rgba(226, 232, 240, 0.72);
  font-size: 12px; pointer-events: none; max-width: calc(100% - 24px); text-align: center;
  background: rgba(2,6,23,.8); padding: 5px 8px; border-radius: 5px;
}
body.res-image-lightbox-open { overflow: hidden; }
@media (max-width: 600px) {
  .res-main-img .res-scale-reference { bottom: 52px; }
}
.res-main-img.res-sprite-stage {
  background-color: #080e1a;
  background-image: linear-gradient(rgba(100, 129, 160, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 129, 160, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}
.res-main-img.res-sprite-stage img {
  position: absolute; left: 50%; top: calc(50% - 16px); transform: translate(-50%, -50%);
  max-width: calc(100% - 48px); max-height: calc(100% - 80px); object-fit: contain;
}
.res-scale-reference {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  display: flex; align-items: center; gap: 8px; padding: 5px 8px;
  color: #dbeafe; font-size: 11px; border-radius: 5px;
  background: rgba(5, 10, 20, 0.82); pointer-events: none;
}
.res-main-img .res-noimg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 14px; letter-spacing: 0.1em;
}
.res-thumbs {
  display: flex; gap: 10px; padding: 14px;
  border-top: 1px solid var(--line-soft); overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 211, 238, 0.5) rgba(148, 163, 184, 0.08);
}
.res-thumbs::-webkit-scrollbar { height: 7px; }
.res-thumbs::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.08); border-radius: 999px;
}
.res-thumbs::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.42), rgba(139, 92, 246, 0.52));
  border-radius: 999px; border: 1px solid rgba(2, 6, 23, 0.72);
}
.res-thumbs::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.72), rgba(139, 92, 246, 0.78));
}
.res-thumbs button {
  flex: none; width: 84px; aspect-ratio: 4 / 3; padding: 0;
  border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden;
  background: var(--bg-3); cursor: pointer; opacity: 0.6;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}
.res-thumbs button img { width: 100%; height: 100%; object-fit: contain; object-position: center; image-rendering: pixelated; display: block; }
.res-thumbs button.active { opacity: 1; border-color: var(--cyan); }

.res-info { padding: 28px 28px 30px; }
.res-cat-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.res-title { font-size: 24px; font-weight: 900; letter-spacing: 0.02em; line-height: 1.4; }
.res-subtitle { color: var(--muted); font-size: 14px; margin-top: 8px; font-weight: 300; }
.res-author {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 10px;
  background: rgba(148, 163, 184, 0.04);
}
.res-author .nav-avatar { width: 34px; height: 34px; font-size: 14px; }
.res-author-name { font-weight: 700; font-size: 14px; }
.res-author-meta { color: var(--dim); font-size: 12px; }

.res-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 18px; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.res-stat { text-align: center; }
.res-stat b { display: block; font-size: 17px; font-weight: 900; color: var(--text); font-family: var(--tech); }
.res-stat span { font-size: 11.5px; color: var(--dim); }

.res-price-row { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; }
.res-price { font-size: 32px; font-weight: 900; color: var(--gold); font-family: var(--tech); }
.res-price small { font-size: 15px; margin-right: 2px; }
.res-price-free { font-size: 26px; font-weight: 900; color: var(--green); }
.res-price-orig { color: var(--dim); text-decoration: line-through; font-size: 14px; }
.res-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.res-actions .btn { flex: 1; min-width: 140px; }
.res-meta-table { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.res-meta-table p { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.res-meta-table span { color: var(--dim); flex: none; }
.res-meta-table b { color: var(--text); font-weight: 500; text-align: right; word-break: break-all; }

/* 详情主体标签页 */
.res-body { margin-top: 26px; }
.res-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); padding: 0 26px; flex-wrap: wrap; }
.res-tab {
  padding: 14px 20px; border: none; background: none; cursor: pointer;
  color: var(--muted); font-size: 14.5px; font-weight: 500; font-family: var(--sans);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.res-tab:hover { color: var(--text); }
.res-tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.res-pane { display: none; padding: 28px; }
.res-pane.active { display: block; }
.res-detail-html { color: var(--muted); font-size: 14.5px; font-weight: 300; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.res-detail-html h1, .res-detail-html h2, .res-detail-html h3 { color: var(--text); margin: 18px 0 10px; }

/* 版本列表 */
.ver-item {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 12px;
  margin-bottom: 12px; background: rgba(148, 163, 184, 0.03);
}
.ver-item .ver-num { font-family: var(--tech); font-weight: 700; color: var(--cyan); font-size: 15px; }
.ver-item .ver-name { font-weight: 700; font-size: 14px; }
.ver-item .ver-log { flex: 1 1 100%; color: var(--muted); font-size: 13px; font-weight: 300; }
.ver-item .ver-meta { color: var(--dim); font-size: 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.ver-item .btn { flex: none; }

/* 评论区 */
.cmt-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.cmt-form textarea {
  width: 100%; min-height: 90px; resize: vertical;
  background: rgba(5, 7, 13, 0.6); border: 1px solid var(--line-soft); border-radius: 10px;
  color: var(--text); padding: 12px 14px; font-family: var(--sans); font-size: 14px; line-height: 1.7;
  outline: none; transition: border-color 0.25s ease;
}
.cmt-form textarea:focus { border-color: var(--line-strong); }
.cmt-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cmt-rating { display: flex; gap: 4px; align-items: center; }
.cmt-rating button {
  border: none; background: none; cursor: pointer; padding: 2px;
  color: var(--dim); transition: color 0.2s ease, transform 0.2s ease;
}
.cmt-rating button:hover { transform: scale(1.15); }
.cmt-rating button.on { color: var(--gold); }
.cmt-item { display: flex; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.cmt-item .nav-avatar { flex: none; width: 38px; height: 38px; font-size: 15px; }
.cmt-main { flex: 1; min-width: 0; }
.cmt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmt-user { font-weight: 700; font-size: 13.5px; }
.cmt-time { color: var(--dim); font-size: 12px; }
.cmt-stars { color: var(--gold); font-size: 12px; letter-spacing: 2px; }
.cmt-text { margin-top: 8px; color: var(--muted); font-size: 14px; font-weight: 300; word-break: break-word; }
.cmt-ops { margin-top: 8px; display: flex; gap: 14px; }
.cmt-ops button {
  border: none; background: none; color: var(--dim); font-size: 12px; cursor: pointer; font-family: var(--sans);
}
.cmt-ops button:hover { color: var(--cyan); }
.cmt-replies { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--line-soft); }
.cmt-replies .cmt-item { padding: 12px 0; border-top: none; }

/* 相似资源 */
.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.pager button {
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(15, 22, 38, 0.5);
  color: var(--muted); font-size: 13.5px; cursor: pointer; font-family: var(--sans);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.pager button:hover:not(:disabled) { border-color: var(--line-strong); color: var(--text); }
.pager button.active { border-color: var(--cyan); color: var(--cyan); font-weight: 700; }
.pager button:disabled { opacity: 0.35; cursor: not-allowed; }
.pager .pager-info { color: var(--dim); font-size: 12.5px; margin: 0 6px; }
.pager-ellipsis { color: var(--dim); padding: 0 2px; }
.pager-size,
.pager-jump {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--dim); font-size: 12.5px;
}
.pager-size select,
.pager-jump input {
  height: 34px; border: 1px solid var(--line-soft); border-radius: 8px;
  background: rgba(15, 22, 38, 0.72); color: var(--text); font-family: var(--sans);
}
.pager-size select { padding: 0 24px 0 9px; }
.pager-jump input { width: 62px; padding: 0 8px; text-align: center; }
.pager-jump button { height: 34px; min-width: 48px; padding: 0 10px; }

/* ---------- 购物车 ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.cart-list { padding: 10px 26px; }
.cart-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
}
.cart-row:last-child { border-bottom: none; }
.cart-row.invalid { opacity: 0.55; }
.cart-check {
  width: 18px; height: 18px; accent-color: var(--cyan); cursor: pointer; flex: none;
}
.cart-cover {
  width: 108px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: var(--bg-3); flex: none; border: 1px solid var(--line-soft);
}
.cart-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-info { flex: 1; min-width: 0; }
.cart-title { font-weight: 700; font-size: 15px; }
.cart-title a { color: var(--text); text-decoration: none; }
.cart-title a:hover { color: var(--cyan); }
.cart-sub { color: var(--dim); font-size: 12.5px; margin-top: 4px; }
.cart-price { font-family: var(--tech); font-weight: 700; color: var(--gold); font-size: 17px; white-space: nowrap; }
.cart-price small { font-size: 12px; }
.cart-remove {
  border: none; background: none; color: var(--dim); cursor: pointer; padding: 6px;
  transition: color 0.25s ease; flex: none;
}
.cart-remove:hover { color: var(--red); }
.cart-summary { padding: 26px; position: sticky; top: 100px; }
.cart-summary h3 { font-size: 16px; font-weight: 900; margin-bottom: 18px; }
.cart-sum-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); padding: 6px 0; }
.cart-sum-row.total { border-top: 1px solid var(--line-soft); margin-top: 12px; padding-top: 14px; font-size: 15px; color: var(--text); font-weight: 700; }
.cart-sum-row.total b { color: var(--gold); font-family: var(--tech); font-size: 22px; }
.cart-note { color: var(--dim); font-size: 12px; margin-top: 12px; }

/* ---------- 发布者中心 ---------- */
.pub-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.pub-side { padding: 18px 12px; position: sticky; top: 100px; }
.pub-side button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 14px; border: none; border-radius: 10px; background: none;
  color: var(--muted); font-size: 14px; cursor: pointer; font-family: var(--sans);
  transition: background 0.25s ease, color 0.25s ease; text-align: left;
}
.pub-side button:hover { color: var(--text); background: rgba(148, 163, 184, 0.06); }
.pub-side button.active { color: var(--cyan); background: rgba(34, 211, 238, 0.08); }
.pub-main { padding: 30px 32px; min-height: 480px; }
.pub-pane { display: none; }
.pub-pane.active { display: block; }
.pub-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.pub-pane-head h2 { font-size: 19px; font-weight: 900; }

.pub-res-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.pub-res-row:last-child { border-bottom: none; }
.pub-res-cover {
  width: 96px; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden;
  background: var(--bg-3); flex: none; border: 1px solid var(--line-soft);
}
.pub-res-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-res-info { flex: 1; min-width: 0; }
.pub-res-title { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pub-res-meta { color: var(--dim); font-size: 12px; margin-top: 5px; display: flex; gap: 12px; flex-wrap: wrap; }
.pub-res-ops { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
.pub-res-ops .btn { padding: 6px 14px; font-size: 12.5px; }

/* 表单 */
.hform { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; max-width: 860px; }
.hform .form-item.full { grid-column: 1 / -1; }
.hform label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.hform label b { color: var(--red); font-weight: 400; margin-left: 2px; }
.hform textarea.form-input { min-height: 110px; resize: vertical; line-height: 1.7; font-family: var(--sans); }
.hform select.form-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.hform .form-hint { font-size: 12px; color: var(--dim); margin-top: 6px; }
.hform-check { display: flex; align-items: center; gap: 8px; padding-top: 26px; }
.hform-check input { width: 16px; height: 16px; accent-color: var(--cyan); }
.hform-check span { font-size: 13.5px; color: var(--muted); }
.hform-actions { grid-column: 1 / -1; display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

.upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upload-preview {
  width: 132px; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden;
  border: 1px dashed var(--line-soft); background: var(--bg-3);
  display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 12px;
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.upload-file-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 9px;
  font-size: 13px; color: var(--muted); background: rgba(148, 163, 184, 0.04);
}
.upload-file-item b { color: var(--text); font-weight: 500; }
.upload-file-item .hbadge { margin-left: auto; }

/* 标签选择器 */
.tag-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-picker button {
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--line-soft); background: none; color: var(--muted); font-family: var(--sans);
  transition: all 0.2s ease;
}
.tag-picker button.on { border-color: var(--cyan); color: var(--cyan); background: rgba(34, 211, 238, 0.08); }

/* 传奇素材八方向预览 */
.atlas-preview {
  display: grid; grid-template-columns: 320px 1fr; gap: 22px;
  padding: 18px; border: 1px solid var(--line-soft); border-radius: 14px;
  background: rgba(148, 163, 184, 0.04);
}
.atlas-img {
  width: 320px; height: 320px; border-radius: 10px; object-fit: contain;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.95));
  image-rendering: pixelated;
}
.res-atlas-controls {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px; border-top: 1px solid var(--line-soft);
}
.atlas-controls { display: flex; flex-direction: column; gap: 14px; }
.atlas-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.atlas-row button {
  padding: 6px 12px; border-radius: 8px; font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--line-soft); background: none; color: var(--muted); font-family: var(--sans);
}
.atlas-row button.active { border-color: var(--cyan); color: var(--cyan); background: rgba(34, 211, 238, 0.08); }
.atlas-row .form-hint { margin: 0; }
.atlas-view-row { padding-bottom: 9px; border-bottom: 1px solid var(--line-soft); }
.atlas-view-row button { font-weight: 700; }

/* 申请发布者 */
.apply-box { max-width: 560px; }
.apply-box textarea { width: 100%; min-height: 120px; }

/* 骨架屏 */
.skeleton {
  position: relative; overflow: hidden; background: rgba(148, 163, 184, 0.07); border-radius: 8px;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.12), transparent);
  animation: sk-shine 1.4s infinite;
}
@keyframes sk-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .res-grid, .cart-layout, .pub-layout { grid-template-columns: 1fr; }
  .cart-summary, .pub-side { position: static; }
  .pub-side { display: flex; overflow-x: auto; padding: 10px; }
  .pub-side button { width: auto; flex: none; white-space: nowrap; }
  .similar-grid { grid-template-columns: repeat(2, 1fr); }
  .hform { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .res-editor-panel { width: 100vw; }
  .similar-grid { grid-template-columns: 1fr; }
  .res-stats { grid-template-columns: repeat(2, 1fr); }
  .res-meta-table { grid-template-columns: 1fr; }
  .cart-cover { width: 84px; }
}
