/* SOHO 家具图片库 */
.g-main { padding-top: 22px; padding-bottom: 60px; }
.g-title { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.g-gate { text-align: center; padding: 80px 20px; }
.g-gate h2 { margin-bottom: 10px; }
.g-gate p { color: #666; margin-bottom: 18px; }
.g-gate .btn { display: inline-block; background: #1a1a1a; color: #fff; padding: 10px 24px; border-radius: 8px; }

/* 横线下面的分类 */
.g-cats { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; }
.g-cats button { border: none; background: transparent; padding: 8px 18px; border-radius: 20px; font-size: 15px; cursor: pointer; color: #444; font-family: inherit; }
.g-cats button:hover { background: var(--light); }
.g-cats button.active { background: #1a1a1a; color: #fff; }
.g-cats button .n { font-size: 12px; opacity: .6; margin-left: 4px; }

/* 分类下一行靠右的按钮 */
.g-bar { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; gap: 10px; flex-wrap: wrap; }
.g-info { color: #888; font-size: 13px; }
.g-btns { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.g-btn { border: 1px solid var(--border); background: #fff; padding: 7px 16px; border-radius: 8px; font-size: 14px; cursor: pointer; font-family: inherit; }
.g-btn:hover { border-color: var(--accent); }
.g-btn.primary { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.g-btn.danger { color: #c0392b; border-color: #e8c4c0; }
.g-btn.danger:hover { background: #c0392b; color: #fff; }
.g-btn:disabled { opacity: .5; cursor: not-allowed; }

/* 3:4 图片网格 */
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.g-item { position: relative; aspect-ratio: 3 / 4; background: #f3f3f3; border-radius: 10px; overflow: hidden; cursor: grab; user-select: none; border: 2px solid #d9d9d9; }
.g-item img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; pointer-events: none; }
.g-item.dragging { opacity: .35; }
.g-item.over { border-color: var(--accent); }
.g-item .no { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 10px; }
.g-item .ck { display: none; position: absolute; right: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.9); border: 2px solid #999; align-items: center; justify-content: center; font-size: 14px; color: #fff; }
.del-mode .g-item { cursor: pointer; }
.del-mode .g-item .ck { display: flex; }
.del-mode .g-item.sel { border-color: #c0392b; }
.del-mode .g-item.sel .ck { background: #c0392b; border-color: #c0392b; }
.g-tip { color: #999; font-size: 12px; margin-top: 14px; }
.g-empty { grid-column: 1 / -1; text-align: center; color: #999; padding: 60px 0; }

/* 弹窗 */
.g-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; z-index: 300; padding: 16px; }
.g-mask.show { display: flex; }
.g-modal { background: #fff; border-radius: 14px; padding: 22px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; }
.g-modal h3 { margin-bottom: 14px; }
.g-modal label { display: block; font-size: 13px; color: #666; margin-bottom: 5px; }
.g-modal select { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; margin-bottom: 12px; font-family: inherit; }
.g-drop { border: 2px dashed #ccc; border-radius: 12px; padding: 26px 14px; text-align: center; color: #777; cursor: pointer; background: #fafafa; transition: all .15s; }
.g-drop small { display: block; margin-top: 6px; color: #aaa; }
.g-drop.over { border-color: var(--accent); background: #fbf6ee; }
.g-prev { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.g-prev .p { width: 72px; height: 96px; border-radius: 6px; overflow: hidden; position: relative; background: #eee; }
.g-prev .p img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.g-prev .p .x { position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #c0392b; color: #fff; border: none; font-size: 12px; line-height: 1; cursor: pointer; }
.g-prog { font-size: 13px; color: #666; margin-top: 10px; min-height: 18px; }

@media (max-width: 860px) {
  .g-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .g-title { font-size: 22px; }
  .g-cats button { padding: 7px 13px; font-size: 14px; }
}

/* ---- 灯箱：点击图片放大看全图 ---- */
.g-item { cursor: zoom-in; }
.g-grid.del-mode .g-item { cursor: pointer; }
.g-lb { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; }
.g-lb.show { display: flex; }
.g-lb img { max-width: 94vw; max-height: 90vh; object-fit: contain; border-radius: 4px; box-shadow: 0 6px 30px rgba(0,0,0,.5); background: #fff; mix-blend-mode: normal; }
.g-lb .lb-x { position: absolute; right: 16px; top: 12px; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.18); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.g-lb .lb-n { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0,0,0,.5); padding: 3px 12px; border-radius: 12px; }
.g-lb .lb-a { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; cursor: pointer; border-radius: 6px; }
.g-lb .lb-a:hover, .g-lb .lb-x:hover { background: rgba(255,255,255,.3); }
.g-lb .lb-prev { left: 12px; }
.g-lb .lb-next { right: 12px; }
@media (max-width: 860px) { .g-lb .lb-a { width: 38px; height: 54px; font-size: 24px; } }

/* 分页栏（2026-11-05） */
.g-pgn { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; align-items:center; margin:22px 0 6px; }
.g-pgn a, .g-pgn span.cur { display:inline-block; min-width:38px; padding:8px 12px; text-align:center; border:1px solid #ddd; border-radius:8px; color:#333; font-size:14px; text-decoration:none; background:#fff; cursor:pointer; }
.g-pgn a:hover { border-color:var(--accent,#c0392b); color:var(--accent,#c0392b); }
.g-pgn span.cur { background:var(--accent,#c0392b); border-color:var(--accent,#c0392b); color:#fff; font-weight:700; }
.g-pgn span.gap { border:none; background:none; color:#999; min-width:auto; padding:8px 4px; }
.g-pgn a.disabled, .g-pgn a.dis { opacity:.4; pointer-events:none; }
