:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --danger: #dc2626;
  --border: #e5e7eb;
  --ok-bg: #ecfdf5;
  --bad-bg: #fef2f2;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.site-header { background: #111827; color: white; }
.admin-header { background: #0f172a; }
.nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: white; font-weight: 800; font-size: 20px; }
.nav nav { display: flex; gap: 16px; flex-wrap: wrap; }
.nav nav a { color: #dbeafe; }
.main { padding-top: 28px; padding-bottom: 48px; }
.footer { color: var(--muted); font-size: 14px; padding: 28px 0; border-top: 1px solid var(--border); }
.hero { margin-bottom: 22px; }
.hero h1, .card h1 { margin-top: 0; }
.grid { display: grid; gap: 18px; }
.products { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: 0 8px 24px rgba(15, 23, 42, .04); margin-bottom: 18px; }
.product-card { display: flex; flex-direction: column; gap: 8px; }
.price { color: #b91c1c; font-weight: 800; font-size: 22px; }
.muted { color: var(--muted); }
.btn { display: inline-block; border: none; border-radius: 10px; background: var(--primary); color: white; padding: 10px 16px; cursor: pointer; font-weight: 700; line-height: 1.2; }
.btn:hover { background: var(--primary-dark); }
.btn.secondary { background: #4b5563; }
.btn.danger { background: var(--danger); }
.btn.small { padding: 7px 10px; font-size: 13px; }
.actions, .admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.form-card { max-width: 680px; }
label { display: block; font-weight: 700; margin: 14px 0; }
input, textarea, select { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: white; }
.inline-form { display: grid; grid-template-columns: 1.2fr .7fr .6fr 1.5fr auto; gap: 10px; align-items: center; }
.inline-form input { margin: 0; }
.alert { border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge, .chip { display: inline-flex; align-items: center; border-radius: 999px; background: #eef2ff; color: #3730a3; padding: 5px 10px; font-size: 13px; font-weight: 700; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.chip.active { background: #dbeafe; color: #1e40af; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--border); text-align: left; padding: 10px; vertical-align: middle; }
th { background: #f9fafb; }
.qr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; }
.qr-box { border: 1px dashed var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.qr-box img { max-width: 100%; max-height: 260px; object-fit: contain; }
.qr-placeholder { min-height: 200px; display: flex; align-items: center; justify-content: center; color: var(--muted); background: #f9fafb; border-radius: 10px; padding: 14px; }
.hint { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 12px; margin-top: 12px; }
.proof-img { max-width: 100%; border: 1px solid var(--border); border-radius: 12px; }
.log { border-radius: 10px; padding: 12px; margin: 10px 0; border: 1px solid var(--border); }
.log.ok { background: var(--ok-bg); }
.log.bad { background: var(--bad-bg); }
pre { white-space: pre-wrap; word-break: break-word; background: #111827; color: #e5e7eb; padding: 12px; border-radius: 10px; }
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 18px; }
.login-card { width: min(420px, 100%); }
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .qr-row { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; padding-top: 16px; padding-bottom: 16px; }
}

.product-img{width:100%;height:130px;object-fit:contain;background:#f6f7fb;border:1px solid #e5e7eb;border-radius:10px;margin-bottom:10px;}
.detail-img{width:220px;max-width:100%;height:180px;object-fit:contain;background:#f6f7fb;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:12px;}
.admin-thumb{width:42px;height:42px;object-fit:contain;background:#f6f7fb;border:1px solid #e5e7eb;border-radius:6px;}


/* v6 商品展示优化：参考材料商店式道具卡片，不复制第三方站点代码 */
:root{
  --shop-blue:#2268ff;
  --shop-blue-soft:#eaf1ff;
  --shop-green:#16a34a;
  --shop-red:#dc2626;
  --shop-orange:#f59e0b;
}
.shop-header{background:linear-gradient(135deg,#0f172a,#1e3a8a 58%,#2563eb);box-shadow:0 10px 28px rgba(37,99,235,.18)}
.shop-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;border:none;background:linear-gradient(135deg,#ffffff,#eef5ff);box-shadow:0 12px 36px rgba(15,23,42,.08)}
.shop-hero h1{font-size:34px;margin:.15em 0 .2em;color:#0f172a}.eyebrow{margin:0;color:#2563eb;font-weight:800;letter-spacing:.08em}.shop-search{min-width:280px}.shop-search label{margin:0}.shop-search input{height:44px;border-radius:999px;padding-left:18px}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}.shop-item{background:#fff;border:1px solid #e6eaf2;border-radius:18px;overflow:hidden;box-shadow:0 10px 30px rgba(15,23,42,.06);transition:.18s transform,.18s box-shadow}.shop-item:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(15,23,42,.11)}
.shop-img-wrap{position:relative;display:flex;align-items:center;justify-content:center;height:172px;background:linear-gradient(180deg,#f8fbff,#f3f6fb);border-bottom:1px solid #edf1f7}.shop-img{max-width:86%;max-height:140px;object-fit:contain;display:block}.shop-img-empty{width:86px;height:86px;border-radius:22px;background:#eaf1ff;color:#1e40af;display:flex;align-items:center;justify-content:center;font-size:40px;font-weight:900;border:1px solid #bfdbfe}
.status-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900;white-space:nowrap}.shop-img-wrap .status-pill{position:absolute;right:12px;top:12px}.status-pill.onsale{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}.status-pill.soldout{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}.status-pill.small{margin-top:6px;font-size:11px;padding:3px 8px}
.shop-info{padding:15px}.shop-info h2{font-size:18px;line-height:1.35;margin:0 0 10px;min-height:48px}.shop-info h2 a{color:#111827}.shop-meta{display:flex;justify-content:space-between;gap:10px;color:#64748b;font-size:14px;padding:9px 0;border-top:1px dashed #e5e7eb;border-bottom:1px dashed #e5e7eb}.shop-meta b{color:#111827}.shop-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.shop-bottom .price{font-size:22px;color:#b91c1c;white-space:nowrap}.source-line{font-size:12px;color:#64748b;margin-top:10px}.btn.disabled{background:#cbd5e1;color:#475569;cursor:not-allowed;pointer-events:none}.empty-state{grid-column:1/-1;text-align:center;color:#64748b}
.product-detail-layout{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);gap:18px}.product-photo-card{display:flex;align-items:center;justify-content:center;min-height:360px}.detail-img-large{width:100%;max-width:300px;height:300px;object-fit:contain}.detail-img-empty{border-radius:28px;background:#eaf1ff;color:#1e40af;display:flex;align-items:center;justify-content:center;font-size:88px;font-weight:900}.detail-title-row{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}.detail-title-row h1{margin:0 0 8px}.detail-price{font-size:32px;font-weight:900;color:#b91c1c;margin:12px 0}.detail-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.detail-kv div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:12px}.detail-kv span{display:block;font-size:12px;color:#64748b;margin-bottom:4px}.detail-kv b{font-size:15px}.desc-box pre{white-space:pre-wrap;background:#f8fafc;color:#1f2937;border:1px solid #e5e7eb;line-height:1.7;margin:0;max-height:320px;overflow:auto}.product-admin-table textarea{min-width:240px}.source-cell{min-width:150px;color:#334155}.source-cell span,.mini-muted{font-size:12px;color:#64748b}.empty-thumb{display:inline-flex;align-items:center;justify-content:center;color:#1e40af;font-weight:900}.admin-thumb{width:52px;height:52px}.product-img,.detail-img{object-fit:contain}.card p{white-space:pre-line}
@media (max-width:820px){.shop-hero{flex-direction:column;align-items:stretch}.shop-search{min-width:0}.product-detail-layout{grid-template-columns:1fr}.detail-kv{grid-template-columns:1fr}.shop-bottom{align-items:flex-start;flex-direction:column}.shop-info h2{min-height:auto}}

/* v7 仿游戏材料商店网格展示：图标 + 名称 + 库存 + 价格 + 状态 */
body{background:#d8b665 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.10'/%3E%3C/svg%3E");color:#f8fafc}.main{max-width:1480px;padding-top:14px}.footer{border-color:rgba(75,47,10,.35);color:#4b330c}.shop-header{background:#2a1b0a;border-bottom:3px solid #6b4b16;box-shadow:0 3px 0 #c39a3b}.brand{color:#ffe070}.nav nav a{color:#ffe7a8}.shop-topbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:4px 0 12px;padding:10px 12px;background:rgba(44,27,9,.72);border:2px solid #80602b;box-shadow:inset 0 0 0 1px rgba(255,231,160,.25)}.shop-topbar h1{margin:0;color:#fff1a8;font-size:22px}.shop-topbar p{margin:4px 0 0;color:#f7d882;font-size:13px}.shop-search-compact{width:310px;margin:0;color:#ffe7a8}.shop-search-compact input{margin-top:4px;background:#1f1f1c;color:#f8fafc;border:1px solid #8b6f31;border-radius:3px;height:34px}.game-shop-grid{display:grid;grid-template-columns:repeat(5,minmax(230px,1fr));gap:10px 28px;align-items:start}.game-item-card{display:grid;grid-template-columns:64px minmax(0,1fr);min-height:78px;background:#2b2b24;border:2px solid #4a3b1d;box-shadow:inset 0 0 0 1px #776128,0 1px 0 rgba(255,231,160,.35);position:relative;overflow:hidden}.game-item-card::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:#d9b958}.game-item-icon{width:64px;height:74px;display:flex;align-items:center;justify-content:center;background:#3a3426;border-right:2px solid #8b7335}.game-item-icon img{width:54px;height:54px;object-fit:contain;background:#171714;border:2px solid #7c6b45;box-shadow:inset 0 0 0 1px #111}.game-item-icon span,.game-detail-icon span{display:flex;align-items:center;justify-content:center;width:54px;height:54px;background:#111827;border:2px solid #7c6b45;color:#ffe070;font-size:28px;font-weight:900}.game-item-main{padding:7px 8px 5px;min-width:0}.game-item-name{display:block;color:#d85cff;font-size:14px;font-weight:800;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 0 #000}.game-item-bottom{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-top:18px;font-size:13px;font-weight:900}.game-stock{color:#fff200;text-shadow:0 1px 0 #000;white-space:nowrap}.game-price{color:#00f6ff;text-shadow:0 1px 0 #000;white-space:nowrap}.game-item-actions{position:absolute;right:6px;top:31px;display:flex;align-items:center;gap:5px}.game-status{font-size:12px;font-weight:900}.game-status.onsale{color:#4cff69}.game-status.soldout{color:#ff9a3d}.game-order{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:20px;padding:0 6px;background:#61420f;border:1px solid #c69d3b;color:#fff1a8;font-size:12px;font-weight:900}.game-order:hover{background:#855a17}.game-order.disabled{opacity:.55;color:#cbd5e1}.game-item-card.is-soldout{filter:saturate(.65);opacity:.78}.empty-state{grid-column:1/-1;background:#2b2b24;border-color:#8b7335;color:#ffe7a8}.game-detail-wrap{max-width:980px;margin:0 auto}.game-detail-card{display:grid;grid-template-columns:160px minmax(0,1fr);gap:18px;background:#2b2b24;border:2px solid #6f5525;box-shadow:inset 0 0 0 1px #b08a37;padding:16px}.game-detail-icon{height:160px;display:flex;align-items:center;justify-content:center;background:#3a3426;border:2px solid #8b7335}.game-detail-icon img{width:128px;height:128px;object-fit:contain;background:#171714;border:2px solid #7c6b45}.game-detail-icon span{width:128px;height:128px;font-size:70px}.game-detail-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.game-detail-title-row h1{margin:0;color:#d85cff;font-size:28px;text-shadow:0 2px 0 #000}.game-detail-line{margin:10px 0;color:#f8fafc}.game-detail-line b{color:#fff1a8;margin-left:8px}.game-detail-line b:first-child{margin-left:0}.game-stock.big,.game-price.big{font-size:20px;margin-right:12px}.muted-game{color:#e6c879}.game-desc-box{white-space:pre-wrap;line-height:1.75;background:#1f1f1c;border:1px solid #695425;color:#f8fafc;min-height:110px;max-height:260px;overflow:auto;padding:10px;margin-top:12px}.game-detail-actions{display:flex;gap:10px;margin-top:14px}.game-btn{display:inline-flex;align-items:center;justify-content:center;background:#2858d8;color:#fff;border:1px solid #7aa2ff;box-shadow:inset 0 1px 0 rgba(255,255,255,.25);padding:9px 18px;font-weight:900}.game-btn.secondary{background:#4b3b1b;border-color:#c69d3b;color:#fff1a8}.game-btn.disabled{background:#6b7280;border-color:#9ca3af;color:#e5e7eb}.card{background:#2b2b24;border-color:#6f5525;color:#f8fafc}.price{color:#00f6ff}.muted{color:#e6c879}
@media (max-width:1280px){.game-shop-grid{grid-template-columns:repeat(4,minmax(230px,1fr));gap-right:16px}}@media (max-width:980px){.game-shop-grid{grid-template-columns:repeat(3,minmax(220px,1fr));gap:10px}.shop-topbar{flex-direction:column;align-items:stretch}.shop-search-compact{width:100%}}@media (max-width:720px){.game-shop-grid{grid-template-columns:1fr}.game-detail-card{grid-template-columns:1fr}.game-detail-icon{height:140px}.game-detail-icon img,.game-detail-icon span{width:112px;height:112px}.game-detail-title-row{align-items:flex-start;flex-direction:column}.game-item-card{grid-template-columns:70px minmax(0,1fr)}.game-item-icon{width:70px}}


/* v8 修正：仿材料商店紧凑横条，状态/下单不再遮住价格 */
.game-shop-grid{
  grid-template-columns:repeat(5,minmax(245px,1fr));
  gap:10px 26px;
}
.game-item-card{
  grid-template-columns:64px minmax(0,1fr);
  min-height:84px;
  height:84px;
}
.game-item-icon{
  height:80px;
}
.game-item-main{
  padding:6px 7px 5px;
  display:grid;
  grid-template-rows:18px 22px 20px;
  align-content:stretch;
  gap:1px;
  min-width:0;
}
.game-item-name{
  font-size:14px;
  line-height:18px;
  min-width:0;
}
.game-item-actions{
  position:static;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  height:22px;
  margin:0;
}
.game-status{
  font-size:12px;
  line-height:18px;
}
.game-order{
  height:20px;
  line-height:18px;
  min-width:38px;
  padding:0 7px;
}
.game-item-bottom{
  margin:0;
  align-self:end;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  font-size:13px;
  line-height:18px;
}
.game-stock,.game-price{
  display:inline-block;
  white-space:nowrap;
}
.game-price{
  text-align:right;
  min-width:72px;
}
.game-item-icon img{
  width:56px;
  height:56px;
}
.game-item-icon span{
  width:56px;
  height:56px;
  font-size:30px;
}
.shop-topbar{
  margin-bottom:12px;
}
@media (max-width:1280px){
  .game-shop-grid{grid-template-columns:repeat(4,minmax(245px,1fr));gap-right:16px}
}
@media (max-width:980px){
  .game-shop-grid{grid-template-columns:repeat(3,minmax(235px,1fr));gap:10px}
}
@media (max-width:720px){
  .game-shop-grid{grid-template-columns:1fr}
}

/* v18 组合下单 + 图片悬停描述 */
.cart-panel{
  background:#2b2b24;border:2px solid #6f5525;box-shadow:inset 0 0 0 1px #b08a37;
  padding:10px;margin:0 0 12px;color:#ffe7a8;
}
.cart-title-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}.cart-mini{font-size:13px;color:#f8fafc}.cart-lines{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}.cart-line{display:inline-flex;align-items:center;gap:6px;border:1px solid #8b7335;background:#1f1f1c;color:#fff1a8;padding:4px 8px;font-size:13px}.cart-line button{border:0;background:#7f1d1d;color:#fff;border-radius:3px;cursor:pointer}.cart-checkout-form{display:grid;grid-template-columns:1fr 1fr 1fr 110px 1fr auto auto;gap:6px;align-items:center}.cart-checkout-form input,.cart-checkout-form select{margin:0;height:30px;border-radius:3px;background:#1f1f1c;color:#f8fafc;border:1px solid #8b6f31;padding:4px 8px}.cart-submit{height:30px;min-width:96px}.game-qty-row{display:flex;align-items:center;gap:4px;font-size:12px;color:#ffe7a8;margin-top:1px}.game-qty{width:48px!important;height:18px!important;margin:0!important;padding:0 3px!important;border-radius:2px!important;background:#111!important;color:#fff!important;border:1px solid #8b7335!important;font-size:12px!important}.detail-link{height:18px;min-width:34px;padding:0 5px}.game-icon-hover{position:relative}.item-desc-tooltip{display:none;position:absolute;z-index:80;left:58px;top:4px;width:260px;max-height:240px;overflow:auto;white-space:pre-wrap;line-height:1.55;background:#14120d;color:#fff7cf;border:2px solid #d9b958;box-shadow:0 8px 24px rgba(0,0,0,.45);padding:8px;text-align:left;font-size:13px}.game-icon-hover:hover .item-desc-tooltip{display:block}.order-items-list{margin:6px 0 12px 20px;line-height:1.8}.order-items-list li{margin:2px 0}
@media(max-width:980px){.cart-checkout-form{grid-template-columns:1fr 1fr}.item-desc-tooltip{left:0;top:66px;width:min(300px,80vw)}}
@media(max-width:640px){.cart-checkout-form{grid-template-columns:1fr}.cart-title-row{flex-direction:column;align-items:flex-start}}


/* v20 修正：数量框不再压到图片/名称，去掉数字框原生上下箭头 */
.game-item-card{
  min-height:108px !important;
  height:108px !important;
  grid-template-columns:64px minmax(0,1fr) !important;
  overflow:visible !important;
}
.game-item-icon{
  height:104px !important;
}
.game-item-main{
  padding:6px 7px 5px !important;
  display:grid !important;
  grid-template-rows:20px 24px 20px 22px !important;
  gap:2px !important;
  align-content:stretch !important;
  min-width:0 !important;
  overflow:hidden !important;
}
.game-item-name{
  line-height:20px !important;
  height:20px !important;
}
.game-item-actions{
  grid-row:2 !important;
  position:static !important;
  height:24px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:6px !important;
  margin:0 !important;
}
.game-item-bottom{
  grid-row:3 !important;
  margin:0 !important;
  height:20px !important;
  line-height:20px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
}
.game-qty-row{
  grid-row:4 !important;
  margin:0 !important;
  height:22px !important;
  line-height:22px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:5px !important;
  font-size:12px !important;
  color:#ffe7a8 !important;
  overflow:hidden !important;
}
.game-qty{
  width:44px !important;
  min-width:44px !important;
  max-width:44px !important;
  height:18px !important;
  min-height:18px !important;
  margin:0 !important;
  padding:0 4px !important;
  border-radius:2px !important;
  background:#111 !important;
  color:#fff !important;
  border:1px solid #8b7335 !important;
  font-size:12px !important;
  line-height:18px !important;
  text-align:center !important;
  appearance:textfield !important;
  -moz-appearance:textfield !important;
}
.game-qty::-webkit-outer-spin-button,
.game-qty::-webkit-inner-spin-button{
  -webkit-appearance:none !important;
  margin:0 !important;
}
.detail-link{
  height:18px !important;
  min-width:34px !important;
  padding:0 5px !important;
}
.item-desc-tooltip{
  pointer-events:none;
}
@media (max-width:1280px){.game-shop-grid{grid-template-columns:repeat(4,minmax(245px,1fr)) !important}}
@media (max-width:980px){.game-shop-grid{grid-template-columns:repeat(3,minmax(235px,1fr)) !important}}
@media (max-width:720px){.game-shop-grid{grid-template-columns:1fr !important}.game-item-card{height:108px !important}}


/* v21 修正：取消“详情”点击，改为鼠标放到图片上自动显示物品描述 */
.game-item-icon.game-icon-hover{
  position:relative !important;
  cursor:help !important;
  overflow:visible !important;
}
.game-item-name{
  cursor:default !important;
}
.detail-link{
  display:none !important;
}
.item-desc-tooltip{
  display:none !important;
  position:absolute !important;
  z-index:9999 !important;
  left:62px !important;
  top:-8px !important;
  width:300px !important;
  max-height:260px !important;
  overflow:auto !important;
  white-space:pre-wrap !important;
  line-height:1.6 !important;
  background:#14120d !important;
  color:#fff7cf !important;
  border:2px solid #d9b958 !important;
  box-shadow:0 8px 24px rgba(0,0,0,.55) !important;
  padding:9px 10px !important;
  text-align:left !important;
  font-size:13px !important;
  font-weight:500 !important;
  pointer-events:none !important;
}
.game-icon-hover:hover .item-desc-tooltip,
.game-icon-hover:focus .item-desc-tooltip{
  display:block !important;
}
.game-qty-row{
  justify-content:flex-start !important;
}
.game-item-card{
  overflow:visible !important;
}
.game-shop-grid{
  overflow:visible !important;
}
@media(max-width:980px){
  .item-desc-tooltip{
    left:0 !important;
    top:66px !important;
    width:min(320px,80vw) !important;
  }
}


/* v23：按图标大小压缩商品框 + 悬停描述改为全局浮层 */
.game-shop-grid{
  grid-template-columns:repeat(auto-fill,minmax(228px,1fr)) !important;
  gap:8px 14px !important;
  overflow:visible !important;
}
.game-item-card{
  grid-template-columns:60px minmax(0,1fr) !important;
  min-height:78px !important;
  height:78px !important;
  overflow:visible !important;
  position:relative !important;
}
.game-item-card:hover{
  z-index:50 !important;
}
.game-item-icon{
  width:60px !important;
  height:74px !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
}
.game-item-icon img,
.game-item-icon span{
  width:50px !important;
  height:50px !important;
  object-fit:contain !important;
}
.game-item-icon span{
  font-size:28px !important;
  line-height:50px !important;
}
.game-item-main{
  padding:4px 6px 3px !important;
  display:grid !important;
  grid-template-rows:16px 18px 18px 18px !important;
  gap:1px !important;
  min-width:0 !important;
  overflow:visible !important;
}
.game-item-name{
  height:16px !important;
  line-height:16px !important;
  font-size:13px !important;
  display:block !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.game-item-actions{
  height:18px !important;
  line-height:18px !important;
  gap:5px !important;
  justify-content:flex-end !important;
  overflow:visible !important;
}
.game-status{
  font-size:11px !important;
  line-height:16px !important;
}
.game-order{
  height:17px !important;
  min-width:34px !important;
  line-height:15px !important;
  font-size:11px !important;
  padding:0 5px !important;
}
.game-item-bottom{
  height:18px !important;
  line-height:18px !important;
  font-size:12px !important;
  overflow:hidden !important;
}
.game-price{
  min-width:58px !important;
}
.game-qty-row{
  height:18px !important;
  line-height:18px !important;
  font-size:11px !important;
  justify-content:flex-start !important;
  gap:4px !important;
  overflow:visible !important;
}
.game-qty{
  width:38px !important;
  min-width:38px !important;
  max-width:38px !important;
  height:16px !important;
  min-height:16px !important;
  line-height:16px !important;
  font-size:11px !important;
  padding:0 2px !important;
}
.item-desc-tooltip{
  display:none !important;
}
.global-item-desc-tooltip{
  position:fixed;
  z-index:2147483647;
  width:320px;
  max-height:280px;
  overflow:auto;
  white-space:pre-wrap;
  line-height:1.6;
  background:#14120d;
  color:#fff7cf;
  border:2px solid #d9b958;
  box-shadow:0 8px 24px rgba(0,0,0,.6);
  padding:9px 10px;
  text-align:left;
  font-size:13px;
  font-weight:500;
  pointer-events:none;
}
@media (max-width:1280px){.game-shop-grid{grid-template-columns:repeat(auto-fill,minmax(228px,1fr)) !important}}
@media (max-width:720px){.game-shop-grid{grid-template-columns:1fr !important}.game-item-card{height:78px !important;min-height:78px !important}}


/* v24：物品描述样式加强；商品名紫色；“状态：未绑定”红色显示 */
.game-item-name,
.game-detail-title-row h1{
  color:#c65cff !important;
  text-shadow:0 1px 0 #000, 0 0 6px rgba(198,92,255,.45) !important;
}
.global-item-desc-tooltip{
  width:340px !important;
  max-height:300px !important;
  padding:10px 12px !important;
  background:#120f0a !important;
  color:#fff3c4 !important;
  border:2px solid #d9b958 !important;
  box-shadow:0 10px 28px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,224,112,.18) !important;
  font-size:13px !important;
  line-height:1.55 !important;
  white-space:normal !important;
}
.global-item-desc-tooltip .desc-title-purple{
  color:#c65cff !important;
  font-size:14px !important;
  font-weight:900 !important;
  line-height:1.35 !important;
  padding-bottom:6px !important;
  margin-bottom:6px !important;
  border-bottom:1px solid rgba(217,185,88,.55) !important;
  text-shadow:0 1px 0 #000, 0 0 6px rgba(198,92,255,.35) !important;
}
.global-item-desc-tooltip .desc-line{
  display:block !important;
  margin:2px 0 !important;
  color:#fff3c4 !important;
  white-space:pre-wrap !important;
  word-break:break-word !important;
}
.global-item-desc-tooltip .desc-line.desc-unbound{
  color:#ff3b30 !important;
  font-weight:900 !important;
  text-shadow:0 1px 0 #000, 0 0 6px rgba(255,59,48,.45) !important;
}
.global-item-desc-tooltip .desc-line.desc-bound{
  color:#9ca3af !important;
  font-weight:800 !important;
}
.global-item-desc-tooltip .desc-line.muted{
  color:#c9b36e !important;
}
.game-desc-box{
  color:#fff3c4 !important;
  border-color:#d9b958 !important;
}


/* v25：技能书 / 五行 分类折叠；同名只显示名字，点开看等级和数量 */
.shop-category-section{
  margin:0 0 14px;
}
.category-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:8px 0 8px;
  padding:6px 10px;
  background:rgba(44,27,9,.72);
  border:1px solid #80602b;
  color:#ffe7a8;
}
.category-title-row h2{
  margin:0;
  font-size:18px;
  color:#fff1a8;
  text-shadow:0 1px 0 #000;
}
.category-title-row span{
  font-size:12px;
  color:#e6c879;
}
.grouped-product-card{
  cursor:pointer;
}
.grouped-product-card .group-hint{
  color:#e6c879 !important;
  font-size:11px !important;
}
.variant-panel{
  grid-column:1/-1;
  background:#1f1f1c;
  border:2px solid #80602b;
  box-shadow:inset 0 0 0 1px rgba(255,231,160,.18), 0 4px 12px rgba(0,0,0,.28);
  color:#ffe7a8;
  padding:8px;
  margin:-2px 0 4px;
}
.variant-panel-title{
  color:#c65cff;
  font-weight:900;
  margin-bottom:6px;
  text-shadow:0 1px 0 #000;
}
.variant-table{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:6px;
}
.variant-row{
  display:grid;
  grid-template-columns:54px 74px 72px 42px 42px 38px;
  gap:5px;
  align-items:center;
  background:#2b2b24;
  border:1px solid #6f5525;
  padding:4px 5px;
  min-height:30px;
  font-size:12px;
}
.variant-level{
  color:#fff1a8;
  font-weight:900;
}
.variant-stock{
  color:#fff200;
  font-weight:900;
}
.variant-price{
  color:#00f6ff;
  font-weight:900;
}
.variant-desc{
  color:#e6c879;
  text-decoration:underline dotted;
  cursor:help;
  text-align:center;
}
.variant-row.is-soldout{
  opacity:.6;
  filter:saturate(.65);
}
.product-create-form{
  grid-template-columns:1.1fr .65fr .55fr .7fr .9fr .8fr 1.3fr auto !important;
}
.category-edit-cell{
  min-width:150px;
}
.category-edit-cell input,.category-edit-cell select{
  margin:2px 0 !important;
  height:28px !important;
  padding:3px 6px !important;
  border-radius:4px !important;
  font-size:12px !important;
}
@media(max-width:980px){
  .variant-table{grid-template-columns:1fr;}
  .variant-row{grid-template-columns:54px 74px 72px 42px 42px 38px;}
  .product-create-form{grid-template-columns:1fr !important;}
}


/* v29：五行符按颜色/描述拆分；展开行显示每个款式自己的图片 */
.variant-row{
  grid-template-columns:34px minmax(92px,1.35fr) 74px 72px 42px 38px !important;
  min-height:42px !important;
}
.variant-thumb{
  width:30px !important;
  height:30px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid #8b7335 !important;
  background:#111 !important;
  overflow:hidden !important;
  cursor:help !important;
}
.variant-thumb img{
  width:28px !important;
  height:28px !important;
  object-fit:contain !important;
  display:block !important;
}
.variant-thumb span{
  color:#ffe070 !important;
  font-weight:900 !important;
  font-size:18px !important;
  line-height:1 !important;
}
.variant-level{
  white-space:normal !important;
  word-break:break-word !important;
  line-height:1.25 !important;
}
.variant-panel-title::after{
  content:"（按等级 → 颜色/属性规则排序；红色可区分物理/法术）";
  color:#e6c879;
  font-size:12px;
  font-weight:700;
  margin-left:8px;
}
@media(max-width:980px){.variant-row{grid-template-columns:34px minmax(92px,1.35fr) 74px 72px 42px 38px !important;}}


/* v34：五行符分级排序与单项加购提示 */
.variant-panel-title{color:#6b2fd6;}
.variant-level{font-weight:700;color:#4b247a;}
.variant-row .game-qty{width:42px;}


/* v36：五行符展开小分类单独加购修复。每个小分类卡片内独立显示 数量 + 加入，不再挤到整行最右侧。 */
.variant-table{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(285px,1fr)) !important;
  gap:8px !important;
  align-items:stretch !important;
}
.variant-row{
  display:grid !important;
  grid-template-columns:34px minmax(118px,1fr) 64px 58px !important;
  grid-template-rows:auto auto !important;
  column-gap:6px !important;
  row-gap:4px !important;
  align-items:center !important;
  min-height:64px !important;
  padding:5px 6px !important;
  overflow:visible !important;
}
.variant-thumb{grid-column:1;grid-row:1 / span 2;align-self:center !important;}
.variant-level{grid-column:2;grid-row:1;min-width:0 !important;color:#c65cff !important;font-size:12px !important;}
.variant-stock{grid-column:3;grid-row:1;white-space:nowrap !important;font-size:12px !important;}
.variant-price{grid-column:4;grid-row:1;white-space:nowrap !important;font-size:12px !important;text-align:right !important;}
.variant-buy{
  grid-column:2 / 5 !important;
  grid-row:2 !important;
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  gap:6px !important;
  min-width:0 !important;
}
.variant-qty-label{
  color:#ffe7a8 !important;
  font-size:12px !important;
  display:flex !important;
  align-items:center !important;
  gap:4px !important;
  white-space:nowrap !important;
}
.variant-buy .game-qty{
  width:44px !important;
  height:20px !important;
  line-height:20px !important;
  padding:0 2px !important;
  margin:0 !important;
  text-align:center !important;
  box-sizing:border-box !important;
}
.variant-buy .game-order{
  height:22px !important;
  min-width:42px !important;
  padding:0 8px !important;
  line-height:20px !important;
  margin:0 !important;
}
.variant-panel-title::after{
  content:"（外层不可直接加购；每个展开小分类都有自己的数量和加入按钮）" !important;
}
@media(max-width:980px){
  .variant-table{grid-template-columns:1fr !important;}
  .variant-row{grid-template-columns:34px minmax(118px,1fr) 64px 58px !important;}
}


/* v37：展开面板浮层化。中间分类展开时不再把后面的商品卡片挤到下面；同一时间只展开当前选择的分类。 */
.grouped-shop-grid{
  position:relative !important;
  overflow:visible !important;
}
.variant-panel{
  position:absolute !important;
  z-index:120 !important;
  width:min(980px, calc(100vw - 44px)) !important;
  max-width:calc(100vw - 44px) !important;
  margin:0 !important;
  display:none;
}
.variant-panel.is-floating-open{
  display:block !important;
}
.variant-panel::before{
  content:"";
  position:absolute;
  top:-7px;
  left:22px;
  width:12px;
  height:12px;
  transform:rotate(45deg);
  background:#1f1f1c;
  border-left:2px solid #80602b;
  border-top:2px solid #80602b;
}
@media(max-width:720px){
  .variant-panel{
    left:0 !important;
    width:100% !important;
    max-width:100% !important;
  }
}

/* v39：同款商品合并展示，内部按货主价格批次出售 */
.lot-batch-table{
  grid-template-columns:repeat(auto-fill,minmax(360px,1fr)) !important;
}
.variant-section-row{
  grid-template-columns:34px minmax(130px,1fr) 72px 72px !important;
  grid-template-rows:auto auto !important;
  min-height:92px !important;
}
.lot-price-list{
  grid-column:2 / 5 !important;
  grid-row:2 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:4px !important;
}
.lot-price-row{
  display:grid !important;
  grid-template-columns:58px 62px minmax(56px,1fr) auto auto !important;
  align-items:center !important;
  gap:5px !important;
  background:#161610 !important;
  border:1px solid rgba(217,185,88,.45) !important;
  padding:3px 4px !important;
  border-radius:3px !important;
  min-height:26px !important;
}
.lot-price{color:#00f6ff;font-weight:900;white-space:nowrap;}
.lot-stock{color:#fff200;font-weight:800;white-space:nowrap;font-size:12px;}
.lot-owner{color:#e6c879;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;}
.lot-price-row .variant-qty-label{justify-content:flex-end;}
.lot-price-row .game-order{height:22px!important;line-height:20px!important;padding:0 8px!important;}
.lot-price-row.is-soldout{opacity:.55;filter:saturate(.65);}
.variant-panel-title::after{
  content:"（同价优先指定货主库存，不够自动拆给多个货主；按实际出货数量分账）" !important;
}
@media(max-width:720px){
  .lot-batch-table{grid-template-columns:1fr !important;}
  .lot-price-row{grid-template-columns:52px 58px minmax(40px,1fr) auto auto !important;}
}


/* v42 自定义套餐 */
.package-section .category-title-row h2{color:#facc15}.package-card .game-item-name{color:#f0abfc!important}.package-items-mini{font-size:11px;color:#e9d5ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px;display:inline-block;vertical-align:middle}.package-admin-table textarea{min-width:220px}.compact-product-id-list{max-height:320px;overflow:auto}.compact-product-id-list table{font-size:12px}

/* v46: 技能书按描述心法分类显示 */
.shop-category-section .category-title-row span{color:#fff1a8;}
.grouped-product-card .group-hint{color:#e9d27a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.variant-panel-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* v68 买家订单页/支付页/后台订单页：五行符明确显示颜色款式 */
.order-variant{display:inline-block;margin:0 6px;padding:1px 6px;border:1px solid #8b7335;border-radius:4px;background:#21190d;color:#ffe7a8;font-size:12px;line-height:1.5}
.order-variant.wuxing-color{border-color:#d946ef;background:#2d1238;color:#f5d0fe;font-weight:700}
.order-item-name{font-weight:700;color:#e9d5ff}.order-item-real{font-size:12px;margin-left:6px}.pay-order-items{margin-top:4px}

/* v72：套餐明细搜索点击加入 */
.package-pick-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:10px 0 12px}
.package-pick-toolbar label{display:flex;flex-direction:column;gap:4px;color:#f5e6b0;font-size:12px}
.package-pick-toolbar input{min-width:180px}
.package-pick-toolbar input[type=number]{min-width:82px;width:82px}
.package-product-picker{max-height:420px}
.package-items-text.is-active-package-target{outline:2px solid #facc15;box-shadow:0 0 0 3px rgba(250,204,21,.2)}
.package-product-picker .btn.small{white-space:nowrap}

/* v73：套餐卡片恢复正常排版 + 点击展开具体物品 */
.package-shop-grid{
  grid-template-columns:repeat(auto-fill,minmax(270px,1fr)) !important;
  gap:10px 14px !important;
  align-items:start !important;
}
.package-card{
  height:116px !important;
  min-height:116px !important;
  grid-template-columns:64px minmax(0,1fr) !important;
  overflow:visible !important;
}
.package-card .game-item-icon{
  width:64px !important;
  height:112px !important;
}
.package-card .game-item-icon img,
.package-card .game-item-icon span{
  width:54px !important;
  height:54px !important;
}
.package-card-main{
  padding:5px 7px 4px !important;
  display:grid !important;
  grid-template-rows:19px 19px 24px 34px !important;
  gap:2px !important;
  overflow:hidden !important;
}
.package-title-line,
.package-meta-line,
.package-action-line{
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  min-width:0 !important;
}
.package-title-line{justify-content:space-between !important;}
.package-title-line .game-item-name{
  flex:1 1 auto !important;
  min-width:0 !important;
  height:18px !important;
  line-height:18px !important;
}
.package-title-line .game-status{
  flex:0 0 auto !important;
  position:static !important;
}
.package-meta-line{justify-content:space-between !important;font-size:12px !important;}
.package-action-line{justify-content:flex-start !important;}
.package-action-line .game-order{height:20px !important;line-height:18px !important;}
.package-qty-label{
  display:inline-flex !important;
  align-items:center !important;
  gap:3px !important;
  color:#ffe7a8 !important;
  font-size:11px !important;
  margin:0 !important;
}
.package-summary-line{
  color:#e9d5ff !important;
  font-size:11px !important;
  line-height:16px !important;
  max-height:34px !important;
  overflow:hidden !important;
  white-space:normal !important;
  word-break:break-all !important;
}
.package-card .game-item-actions{position:static !important;}
.package-card .game-item-bottom{margin:0 !important;}
.package-items-mini{display:none !important;}
.package-detail-panel{
  grid-column:1 / -1 !important;
  background:#1c1a13 !important;
  border:2px solid #d9b958 !important;
  box-shadow:inset 0 0 0 1px rgba(255,231,160,.22),0 6px 16px rgba(0,0,0,.28) !important;
  padding:8px !important;
  margin:-2px 0 8px 0 !important;
  color:#fff7cf !important;
}
.package-detail-title{
  font-weight:900 !important;
  color:#facc15 !important;
  margin-bottom:7px !important;
  border-bottom:1px solid rgba(217,185,88,.45) !important;
  padding-bottom:5px !important;
}
.package-detail-list{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr)) !important;
  gap:7px !important;
}
.package-detail-row{
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) !important;
  gap:7px !important;
  align-items:center !important;
  background:#2b2b24 !important;
  border:1px solid rgba(217,185,88,.45) !important;
  padding:5px !important;
  min-height:54px !important;
}
.package-detail-icon{
  width:40px !important;
  height:40px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#171714 !important;
  border:1px solid #7c6b45 !important;
}
.package-detail-icon img,
.package-detail-icon span{
  width:34px !important;
  height:34px !important;
  object-fit:contain !important;
  font-size:18px !important;
  color:#ffe070 !important;
}
.package-detail-name{
  color:#f0abfc !important;
  font-weight:900 !important;
  font-size:12px !important;
  line-height:16px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.package-detail-sub{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:3px 8px !important;
  color:#e6c879 !important;
  font-size:11px !important;
  line-height:15px !important;
}
.package-detail-sub span:first-child{color:#fff200 !important;font-weight:900 !important;}
.package-detail-btn{background:#4b3b1b !important;}
@media(max-width:720px){
  .package-shop-grid{grid-template-columns:1fr !important;}
  .package-detail-list{grid-template-columns:1fr !important;}
}

/* v75：套餐像技能书/五行符一样点击整张卡片浮层展开；卡片不再塞完整明细，避免文字重叠 */
.package-shop-grid{
  position:relative !important;
  overflow:visible !important;
  grid-template-columns:repeat(auto-fill,minmax(270px,1fr)) !important;
  gap:10px 14px !important;
  align-items:start !important;
}
.package-card{
  cursor:pointer !important;
  height:96px !important;
  min-height:96px !important;
  grid-template-columns:64px minmax(0,1fr) !important;
  overflow:visible !important;
  position:relative !important;
}
.package-card:hover{z-index:80 !important;}
.package-card .game-item-icon{width:64px !important;height:92px !important;}
.package-card-main{
  padding:5px 7px 4px !important;
  display:grid !important;
  grid-template-rows:19px 18px 18px 24px !important;
  gap:1px !important;
  overflow:hidden !important;
}
.package-title-line,.package-meta-line,.package-action-line{display:flex !important;align-items:center !important;gap:6px !important;min-width:0 !important;}
.package-title-line{justify-content:space-between !important;}
.package-meta-line{justify-content:space-between !important;font-size:12px !important;}
.package-action-line{justify-content:flex-start !important;}
.package-summary-line{
  color:#e9d5ff !important;
  font-size:11px !important;
  line-height:17px !important;
  height:18px !important;
  max-height:18px !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
  word-break:normal !important;
}
.package-detail-panel{
  position:absolute !important;
  z-index:140 !important;
  grid-column:auto !important;
  width:min(980px, calc(100vw - 44px)) !important;
  max-width:calc(100vw - 44px) !important;
  margin:0 !important;
  display:none;
  background:#1c1a13 !important;
  border:2px solid #d9b958 !important;
  box-shadow:inset 0 0 0 1px rgba(255,231,160,.22),0 6px 16px rgba(0,0,0,.34) !important;
  padding:8px !important;
  color:#fff7cf !important;
}
.package-detail-panel.is-floating-open{display:block !important;}
.package-detail-panel::before{
  content:"";
  position:absolute;
  top:-7px;
  left:22px;
  width:12px;
  height:12px;
  transform:rotate(45deg);
  background:#1c1a13;
  border-left:2px solid #d9b958;
  border-top:2px solid #d9b958;
}
.package-detail-title{white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;}
.package-detail-list{grid-template-columns:repeat(auto-fill,minmax(285px,1fr)) !important;}
.package-detail-row{min-height:58px !important;}
.package-detail-name{white-space:normal !important;max-height:34px !important;overflow:hidden !important;line-height:16px !important;}
.package-detail-btn{background:#4b3b1b !important;}
@media(max-width:720px){
  .package-card{height:96px !important;min-height:96px !important;}
  .package-detail-panel{left:0 !important;width:100% !important;max-width:100% !important;}
  .package-detail-list{grid-template-columns:1fr !important;}
}


/* v79：主页只露普通道具，技能书 / 五行 / 套餐改为道具商场入口点击打开；商品外框缩窄 */
.mall-entry-panel{
  margin:0 0 12px;
  padding:8px 10px;
  background:rgba(44,27,9,.78);
  border:2px solid #80602b;
  box-shadow:inset 0 0 0 1px rgba(255,231,160,.22);
  color:#ffe7a8;
}
.mall-entry-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.mall-entry-title-row h2{
  margin:0;
  color:#fff1a8;
  font-size:18px;
  text-shadow:0 1px 0 #000;
}
.mall-entry-title-row span{
  color:#e6c879;
  font-size:12px;
}
.mall-entry-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.mall-entry-btn{
  min-width:76px;
  height:28px;
  padding:0 12px;
  cursor:pointer;
  background:#3b2c13;
  border:1px solid #c69d3b;
  color:#fff1a8;
  font-size:13px;
  font-weight:900;
  box-shadow:inset 0 1px 0 rgba(255,231,160,.22);
}
.mall-entry-btn:hover,
.mall-entry-btn.is-active{
  background:#855a17;
  color:#fff200;
  border-color:#facc15;
}
.mall-category-panel{
  scroll-margin-top:76px;
}
.game-shop-grid,
.grouped-shop-grid{
  grid-template-columns:repeat(auto-fill, 218px) !important;
  gap:10px 12px !important;
  justify-content:start !important;
  align-items:start !important;
}
.game-item-card,
.grouped-product-card{
  width:218px !important;
  max-width:218px !important;
  grid-template-columns:58px minmax(0,1fr) !important;
  min-height:78px !important;
  height:78px !important;
}
.game-item-icon{
  width:58px !important;
  height:74px !important;
}
.game-item-icon img,
.game-item-icon span{
  width:50px !important;
  height:50px !important;
}
.game-item-icon span{
  font-size:26px !important;
}
.game-item-main{
  padding:5px 6px 4px !important;
  grid-template-rows:18px 20px 18px !important;
}
.game-item-name{
  font-size:13px !important;
  line-height:18px !important;
}
.game-item-actions{
  gap:4px !important;
}
.game-status{
  font-size:11px !important;
}
.game-order{
  min-width:34px !important;
  height:20px !important;
  line-height:18px !important;
  padding:0 6px !important;
  font-size:12px !important;
}
.game-item-bottom{
  gap:4px !important;
  font-size:12px !important;
  line-height:18px !important;
}
.game-price{
  min-width:58px !important;
}
.game-qty-row{
  font-size:11px !important;
}
.game-qty{
  width:42px !important;
  height:20px !important;
  padding:0 2px !important;
}
.package-shop-grid{
  grid-template-columns:repeat(auto-fill, 230px) !important;
  gap:10px 12px !important;
  justify-content:start !important;
}
.package-card{
  width:230px !important;
  max-width:230px !important;
  height:92px !important;
  min-height:92px !important;
  grid-template-columns:58px minmax(0,1fr) !important;
}
.package-card .game-item-icon{
  width:58px !important;
  height:88px !important;
}
.package-card .game-item-icon img,
.package-card .game-item-icon span{
  width:50px !important;
  height:50px !important;
}
.package-card-main{
  padding:4px 6px !important;
  grid-template-rows:18px 17px 16px 22px !important;
}
.package-title-line .game-item-name{
  height:18px !important;
  line-height:18px !important;
}
.package-meta-line{
  font-size:11px !important;
}
.package-summary-line{
  font-size:10px !important;
  line-height:16px !important;
  height:16px !important;
  max-height:16px !important;
}
.package-action-line{
  gap:4px !important;
}
.package-qty-label{
  font-size:10px !important;
  gap:2px !important;
}
.package-qty-label .game-qty{
  width:38px !important;
}
.variant-panel,
.package-detail-panel{
  width:min(980px, calc(100vw - 44px)) !important;
  max-width:calc(100vw - 44px) !important;
}
@media(max-width:720px){
  .mall-entry-title-row{align-items:flex-start;flex-direction:column;}
  .game-shop-grid,
  .grouped-shop-grid,
  .package-shop-grid{grid-template-columns:repeat(auto-fill, minmax(218px,1fr)) !important;}
  .game-item-card,
  .grouped-product-card,
  .package-card{width:100% !important;max-width:100% !important;}
}

/* v80：进一步压缩商品卡高度；三行紧凑排版，所有文字限制在卡片内部 */
.game-shop-grid,
.grouped-shop-grid{
  grid-template-columns:repeat(auto-fill, 218px) !important;
  gap:7px 12px !important;
  justify-content:start !important;
  align-items:start !important;
  overflow:visible !important;
}
.game-item-card,
.grouped-product-card{
  width:218px !important;
  max-width:218px !important;
  min-height:64px !important;
  height:64px !important;
  grid-template-columns:58px minmax(0,1fr) !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
.game-item-icon{
  width:58px !important;
  height:60px !important;
  min-height:60px !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
.game-item-icon img,
.game-item-icon span{
  width:48px !important;
  height:48px !important;
  max-width:48px !important;
  max-height:48px !important;
}
.game-item-icon span{
  font-size:24px !important;
  line-height:48px !important;
}
.game-item-main{
  padding:3px 4px 2px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-rows:16px 18px 18px !important;
  gap:1px 4px !important;
  align-content:start !important;
  min-width:0 !important;
  max-width:100% !important;
  height:60px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
.game-item-name{
  grid-column:1 / -1 !important;
  grid-row:1 !important;
  min-width:0 !important;
  max-width:100% !important;
  height:16px !important;
  line-height:16px !important;
  font-size:12px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.game-item-actions{
  grid-column:2 !important;
  grid-row:2 !important;
  position:static !important;
  justify-self:end !important;
  align-self:center !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:3px !important;
  height:18px !important;
  line-height:18px !important;
  min-width:0 !important;
  overflow:hidden !important;
}
.game-status{
  font-size:10px !important;
  line-height:16px !important;
  white-space:nowrap !important;
}
.game-order{
  min-width:30px !important;
  height:17px !important;
  line-height:15px !important;
  padding:0 4px !important;
  font-size:11px !important;
  white-space:nowrap !important;
  box-sizing:border-box !important;
}
.game-item-bottom{
  grid-column:1 !important;
  grid-row:2 / 4 !important;
  margin:0 !important;
  padding:0 !important;
  height:36px !important;
  min-width:0 !important;
  max-width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:0 !important;
  overflow:hidden !important;
  font-size:11px !important;
  line-height:15px !important;
}
.game-stock,
.game-price{
  display:block !important;
  max-width:100% !important;
  min-width:0 !important;
  height:15px !important;
  line-height:15px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.game-price{
  text-align:left !important;
}
.game-qty-row{
  grid-column:2 !important;
  grid-row:3 !important;
  justify-self:end !important;
  align-self:center !important;
  margin:0 !important;
  height:18px !important;
  line-height:18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:2px !important;
  font-size:10px !important;
  color:#ffe7a8 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  max-width:76px !important;
}
.game-qty{
  width:34px !important;
  min-width:34px !important;
  max-width:34px !important;
  height:16px !important;
  min-height:16px !important;
  line-height:16px !important;
  font-size:10px !important;
  padding:0 1px !important;
  box-sizing:border-box !important;
}
.grouped-product-card .group-hint{
  display:none !important;
}
.grouped-product-card .game-item-bottom{
  grid-row:2 / 4 !important;
}
.variant-panel{
  width:min(980px, calc(100vw - 44px)) !important;
  max-width:calc(100vw - 44px) !important;
}

/* v80：套餐卡也压成紧凑三行，明细仍通过“展开”浮层查看 */
.package-shop-grid{
  grid-template-columns:repeat(auto-fill, 230px) !important;
  gap:7px 12px !important;
  justify-content:start !important;
  align-items:start !important;
  overflow:visible !important;
}
.package-card{
  width:230px !important;
  max-width:230px !important;
  height:68px !important;
  min-height:68px !important;
  grid-template-columns:58px minmax(0,1fr) !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
.package-card .game-item-icon{
  width:58px !important;
  height:64px !important;
  min-height:64px !important;
}
.package-card .game-item-icon img,
.package-card .game-item-icon span{
  width:48px !important;
  height:48px !important;
}
.package-card-main{
  padding:3px 4px 2px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-rows:16px 18px 18px !important;
  gap:1px 4px !important;
  height:64px !important;
  min-width:0 !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
.package-title-line{
  grid-column:1 / -1 !important;
  grid-row:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:4px !important;
  min-width:0 !important;
  overflow:hidden !important;
}
.package-title-line .game-item-name{
  flex:1 1 auto !important;
  min-width:0 !important;
  height:16px !important;
  line-height:16px !important;
  font-size:12px !important;
}
.package-title-line .game-status{
  flex:0 0 auto !important;
  position:static !important;
}
.package-meta-line{
  grid-column:1 / -1 !important;
  grid-row:2 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:4px !important;
  min-width:0 !important;
  max-width:100% !important;
  height:18px !important;
  overflow:hidden !important;
  font-size:11px !important;
  line-height:16px !important;
}
.package-meta-line .game-stock,
.package-meta-line .game-price{
  display:block !important;
  min-width:0 !important;
  max-width:50% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.package-summary-line{
  display:none !important;
}
.package-action-line{
  grid-column:1 / -1 !important;
  grid-row:3 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:3px !important;
  min-width:0 !important;
  height:18px !important;
  overflow:hidden !important;
}
.package-action-line .game-order{
  min-width:30px !important;
  height:17px !important;
  line-height:15px !important;
  padding:0 4px !important;
  font-size:10px !important;
}
.package-qty-label{
  display:inline-flex !important;
  align-items:center !important;
  gap:2px !important;
  font-size:10px !important;
  height:18px !important;
  line-height:18px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  max-width:68px !important;
}
.package-qty-label .game-qty{
  width:32px !important;
  min-width:32px !important;
  max-width:32px !important;
  height:16px !important;
  font-size:10px !important;
}
.package-detail-panel{
  width:min(980px, calc(100vw - 44px)) !important;
  max-width:calc(100vw - 44px) !important;
}
@media(max-width:720px){
  .game-shop-grid,
  .grouped-shop-grid,
  .package-shop-grid{grid-template-columns:repeat(auto-fill, minmax(218px,1fr)) !important;}
  .game-item-card,
  .grouped-product-card,
  .package-card{width:100% !important;max-width:100% !important;}
}

/* v87 套餐组合按分类分组显示 */
.package-category-block{
  margin:10px 0 16px 0 !important;
  padding:10px !important;
  border:1px solid rgba(250,204,21,.18) !important;
  border-radius:12px !important;
  background:rgba(15,23,42,.42) !important;
}
.package-subcategory-title{
  margin:0 0 8px 0 !important;
  padding:0 2px 8px 2px !important;
  border-bottom:1px solid rgba(148,163,184,.16) !important;
}
.package-subcategory-title h3{
  margin:0 !important;
  color:#facc15 !important;
  font-size:16px !important;
  line-height:22px !important;
}
.package-admin-table input[name="package_category"]{
  min-width:120px !important;
}

/* v88 买家订单查询码 / 查询链接 */
.buyer-access-box{
  margin-top:14px;
  padding:12px;
  border:1px solid rgba(96,165,250,.28);
  border-radius:12px;
  background:rgba(15,23,42,.48);
}
.buyer-access-box.compact{margin-top:6px;}
.buyer-access-box h2{margin:0 0 8px 0;font-size:18px;}
.buyer-access-line{
  display:flex;
  align-items:center;
  gap:8px;
  margin:6px 0;
  min-width:0;
  flex-wrap:wrap;
}
.buyer-access-line span{color:#94a3b8;min-width:64px;}
.buyer-access-line strong{
  font-size:16px;
  overflow-wrap:anywhere;
}
.query-code-line strong{
  font-size:24px;
  letter-spacing:3px;
  color:#facc15;
}
.buyer-access-actions,
.order-detail-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.btn.small,
.mini-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  border:1px solid rgba(148,163,184,.28);
  cursor:pointer;
  text-decoration:none;
}
.btn.small{padding:6px 10px;font-size:12px;}
.btn.secondary{background:rgba(30,41,59,.75);}
.mini-btn{padding:4px 8px;font-size:12px;background:rgba(30,41,59,.72);color:#e5e7eb;}
.query-grid .form-card{min-height:280px;}
.my-orders-form{display:grid;gap:10px;}
.my-orders-list .responsive-table{overflow:auto;}
.simple-table{width:100%;border-collapse:collapse;min-width:860px;}
.simple-table th,.simple-table td{padding:8px 10px;border-bottom:1px solid rgba(148,163,184,.16);vertical-align:top;}
.simple-table th{text-align:left;color:#cbd5e1;background:rgba(15,23,42,.54);position:sticky;top:0;}
.order-product-cell{max-width:320px;white-space:normal;overflow-wrap:anywhere;}
.local-query-link{display:inline-flex;}
@media(max-width:720px){
  .buyer-access-actions .btn,.order-detail-actions .btn{width:100%;}
  .buyer-access-line span{min-width:0;width:100%;}
}

/* v89 退款申请 / 后台退款审核 */
.alert.ok{background:#ecfdf5;color:#065f46;border:1px solid #bbf7d0;}
.refund-card .price{font-size:20px;}
.refund-status-box{border:1px solid #fed7aa;background:#fff7ed;border-radius:12px;padding:12px 14px;margin:12px 0;}
.refund-status-box.compact{padding:10px 12px;margin:10px 0;}
.refund-status-box h2{margin:0 0 8px;font-size:18px;}
.refund-status-box p{margin:6px 0;}
.refund-form textarea{min-height:96px;}
.admin-actions form{border:1px dashed rgba(148,163,184,.5);border-radius:12px;padding:10px;margin:0;}
.admin-actions form label{margin:0 0 8px;min-width:240px;}

/* v90 部分发货 / 明细级发货记录 / 未发部分退款 */
.delivery-line-status{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-top:4px;
  font-size:12px;
  line-height:18px;
}
.badge.small{
  display:inline-flex;
  align-items:center;
  min-height:18px;
  padding:2px 6px;
  font-size:11px;
  border-radius:999px;
}
.ok-text{color:#16a34a;font-weight:600;}
.bad-text{color:#dc2626;font-weight:600;}
.admin-line-status{margin:6px 0;}
.inline-actions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:6px;
}
.inline-actions form{
  display:inline-flex;
  margin:0;
  padding:0;
  border:0;
}
.hint{
  color:#64748b;
  font-size:13px;
  line-height:20px;
}

/* v91 发货结果未知/人工确认 */
.unknown-confirm-box {
  margin-top: 8px;
  padding: 8px;
  border: 1px dashed rgba(180, 80, 40, .45);
  border-radius: 8px;
  background: rgba(255, 238, 220, .55);
}
.delivery-snapshot {
  margin-top: 8px;
  font-size: 12px;
}
.delivery-snapshot pre {
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 180px;
  overflow: auto;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0,0,0,.04);
}

/* v97：自定义分类入口数量角标 */
.mall-entry-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:16px;
  height:16px;
  margin-left:6px;
  padding:0 4px;
  border-radius:999px;
  background:rgba(0,0,0,.35);
  color:#fffbe6;
  font-size:11px;
  line-height:16px;
}

/* v102：下单锁库存提示 */
.hint.warning {
  border-color: #f59e0b;
  background: #fff7cc;
  color: #5f3b00;
  font-weight: 700;
}

/* v104：单品多规格与关联套餐 */
.spu-shop-grid{position:relative}
.spu-product-card{cursor:pointer}
.spu-detail-panel{grid-column:1/-1;width:100%;box-sizing:border-box;margin:2px 0 12px;padding:12px;border:1px solid #d8c7a1;border-radius:8px;background:#fffaf0;overflow:hidden}
.spu-spec-list{display:grid;gap:8px;margin-top:8px}
.spu-spec-row{display:grid;grid-template-columns:minmax(150px,1.4fr) minmax(90px,.7fr) minmax(90px,.7fr) auto auto;gap:10px;align-items:center;padding:9px 10px;border:1px solid #e3d6bb;border-radius:7px;background:#fff;min-width:0}
.spu-spec-row.is-soldout{opacity:.65}
.spu-spec-name{display:flex;flex-direction:column;min-width:0}
.spu-spec-name strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spu-spec-name span,.spu-spec-stock{font-size:12px;color:#756b5b}
.spu-spec-price{font-weight:700;color:#b5482d;white-space:nowrap}
.spu-spec-row label{display:flex;align-items:center;gap:5px;white-space:nowrap}
.spu-related-packages{margin-top:14px;padding-top:12px;border-top:1px dashed #cdbb96}
.spu-related-packages h3{margin:0 0 8px}
.spu-related-package-row{display:grid;grid-template-columns:minmax(180px,1fr) auto auto auto;gap:10px;align-items:center;padding:8px 10px;margin-top:7px;border:1px solid #e4d8c1;border-radius:7px;background:#fff;min-width:0}
.spu-related-package-row>div{min-width:0}
.spu-related-package-row .mini-muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:680px}
.spu-related-package-row label{display:flex;align-items:center;gap:5px;white-space:nowrap}
.spu-admin-table textarea{min-width:220px}
.spu-admin-table input[name="name"],.spu-admin-table input[name="image_path"],.spu-admin-table input[name="extra_categories"]{min-width:180px}
.inline-check{display:flex!important;align-items:center;gap:7px}
.inline-check input{width:auto!important}
@media(max-width:900px){
  .spu-spec-row{grid-template-columns:1fr 1fr;align-items:start}
  .spu-related-package-row{grid-template-columns:1fr 1fr}
}

/* v107：简化多规格后台，来源商品与关联套餐支持 ID / 名称搜索 */
.spu-page-head h1{margin-bottom:6px}
.spu-simple-card>details>summary,.spu-existing-card>summary{cursor:pointer;list-style:none}
.spu-simple-card>details>summary::-webkit-details-marker,.spu-existing-card>summary::-webkit-details-marker{display:none}
.spu-simple-card>details>summary{padding:4px 0 12px;font-size:18px}
.spu-simple-form{display:grid;gap:16px;margin-top:10px}
.spu-simple-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px}
.spu-simple-grid.two-col{grid-template-columns:repeat(2,minmax(280px,1fr))}
.spu-simple-grid label,.spu-form-bottom label{display:grid;gap:5px;font-weight:700}
.spu-simple-grid input,.spu-simple-grid textarea,.spu-simple-grid select,.spu-form-bottom select{width:100%;box-sizing:border-box}
.field-title{display:block;margin-bottom:6px;font-weight:700}
.spu-search-picker{border:1px solid #81651d;border-radius:8px;background:#1f201b;padding:10px;min-width:0}
.spu-picker-search{width:100%;box-sizing:border-box;margin-bottom:8px}
.spu-picked-value,.spu-selected-packages{min-height:36px;padding:8px 10px;margin-bottom:8px;border:1px solid #6e5b27;border-radius:6px;background:#2c2d26;color:#fff5c1;font-size:13px;overflow-wrap:anywhere}
.spu-picker-list{max-height:245px;overflow:auto;display:grid;gap:5px;padding-right:3px}
.spu-picker-option{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,1fr) auto;gap:8px;align-items:center;width:100%;padding:8px 10px;border:1px solid #685421;border-radius:6px;background:#272821;color:#f9edbd;text-align:left;cursor:pointer}
.spu-picker-option:hover,.spu-picker-option.selected{border-color:#f6cf47;background:#34331f;box-shadow:inset 0 0 0 1px #f6cf47}
.spu-picker-option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#cfc4a0}
.spu-picker-option small{color:#75ef80;white-space:nowrap}
.spu-package-option{display:flex;gap:9px;align-items:flex-start;padding:8px 10px;border:1px solid #685421;border-radius:6px;background:#272821;color:#f9edbd;cursor:pointer}
.spu-package-option:hover{border-color:#f6cf47}
.spu-package-option input{width:auto;margin-top:3px}
.spu-package-option span{display:grid;gap:2px;min-width:0}
.spu-package-option small{color:#cfc4a0}
.spu-picker-option[hidden],.spu-package-option[hidden]{display:none!important}
.spu-spec-editor{padding:12px;border:1px solid #80651c;border-radius:8px;background:#25261f}
.spu-editor-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}
.spu-spec-edit-head,.spu-spec-edit-row{display:grid;grid-template-columns:minmax(160px,1.5fr) minmax(110px,.7fr) minmax(120px,.8fr) auto;gap:8px;align-items:center}
.spu-spec-edit-head{padding:0 4px 5px;color:#f3df98;font-size:12px}
.spu-spec-edit-rows{display:grid;gap:7px}
.spu-spec-edit-row input{width:100%;box-sizing:border-box}
.spu-form-bottom{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding-top:4px}
.spu-form-bottom .inline-check{margin-right:auto}
.spu-simple-list{display:grid;gap:10px}
.spu-existing-card{border:1px solid #7d6320;border-radius:8px;background:#25261f;overflow:hidden}
.spu-existing-card>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;color:#fff2b7}
.spu-existing-card[open]>summary{border-bottom:1px solid #6d5722;background:#303027}
.spu-existing-card>summary>span:first-child{display:grid;gap:3px}
.spu-existing-card>summary small{color:#c9bd93}
.spu-summary-right{display:flex;align-items:center;gap:10px;min-width:0}
.spu-summary-right em{max-width:460px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d7c993;font-style:normal}
.spu-existing-card .spu-simple-form{padding:14px}
.status-pill{padding:3px 8px;border-radius:999px;font-size:12px;white-space:nowrap}
.status-pill.active{background:#174f23;color:#80ff95}.status-pill.inactive{background:#55261f;color:#ff9f8f}
@media(max-width:1000px){
  .spu-simple-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}
  .spu-simple-grid.two-col{grid-template-columns:1fr}
  .spu-picker-option{grid-template-columns:1fr}
  .spu-picker-option span{white-space:normal}
}
@media(max-width:650px){
  .spu-simple-grid{grid-template-columns:1fr}
  .spu-spec-edit-head{display:none}
  .spu-spec-edit-row{grid-template-columns:1fr 1fr}
  .spu-spec-edit-row [data-spec-name]{grid-column:1/-1}
  .spu-existing-card>summary{align-items:flex-start;flex-direction:column}
  .spu-summary-right{width:100%;justify-content:space-between}
}

/* v109：套餐明细改为行内展开，避免浮层定位后看不到；多规格卡片直接显示具体规格、份数和实际发货个数 */
.package-shop-grid{
  position:relative !important;
  overflow:visible !important;
}
.package-detail-panel,
.package-detail-panel.is-inline-open{
  position:static !important;
  z-index:auto !important;
  grid-column:1 / -1 !important;
  width:100% !important;
  max-width:100% !important;
  left:auto !important;
  top:auto !important;
  box-sizing:border-box !important;
  margin:2px 0 10px !important;
  display:block;
}
.package-detail-panel[style*="display:none"]{display:none !important;}
.package-detail-panel::before{display:none !important;}
.package-detail-title{
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

/* 多规格商品在类目中直接采用可购买卡片，不再只显示价格范围 */
.spu-product-card{
  width:218px !important;
  max-width:218px !important;
  height:124px !important;
  min-height:124px !important;
  grid-template-columns:64px minmax(0,1fr) !important;
  cursor:default !important;
  overflow:hidden !important;
}
.spu-product-card .game-item-icon{
  width:64px !important;
  height:120px !important;
}
.spu-product-card .game-item-icon img,
.spu-product-card .game-item-icon span{
  width:54px !important;
  height:54px !important;
}
.spu-card-main{
  padding:4px 5px !important;
  display:grid !important;
  grid-template-rows:18px 25px 18px 24px !important;
  gap:3px !important;
  overflow:hidden !important;
}
.spu-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-width:0;
  gap:4px;
}
.spu-card-head .game-item-name{
  min-width:0;
  flex:1;
}
.spu-card-head .game-status{
  flex:0 0 auto;
  font-size:10px !important;
}
.spu-card-spec-select{
  width:100% !important;
  min-width:0 !important;
  height:24px !important;
  margin:0 !important;
  padding:1px 3px !important;
  border:1px solid #9f7b28 !important;
  border-radius:2px !important;
  background:#151512 !important;
  color:#fff1a8 !important;
  font-size:10px !important;
  line-height:20px !important;
}
.spu-card-spec-select option{
  background:#1f1f1c;
  color:#fff1a8;
}
.spu-card-info-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-width:0;
  gap:4px;
  font-size:10px;
  line-height:17px;
}
.spu-card-info-line .game-stock,
.spu-card-info-line .game-price{
  font-size:10px !important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.spu-card-info-line b{font-weight:900;}
.spu-card-buy-line{
  display:flex;
  align-items:center;
  gap:3px;
  min-width:0;
  height:24px;
  overflow:hidden;
}
.spu-pack-badge{
  display:inline-flex;
  align-items:center;
  height:18px;
  max-width:66px;
  padding:0 3px;
  border:1px solid #b48b25;
  background:#3f3010;
  color:#fff200;
  font-size:9px;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.spu-card-buy-line label{
  display:inline-flex;
  align-items:center;
  gap:2px;
  margin:0;
  color:#ffe7a8;
  font-size:9px;
  white-space:nowrap;
}
.spu-card-buy-line .game-qty{
  width:30px !important;
  min-width:30px !important;
  max-width:30px !important;
}
.spu-card-buy-line .game-order{
  min-width:28px !important;
  height:18px !important;
  padding:0 3px !important;
  font-size:9px !important;
}
.spu-detail-toggle{background:#4b3b1b !important;}
.spu-card-empty{color:#ff9a3d;font-size:11px;padding-top:8px;}

/* 多规格详情每一行带商品图、完整名称、实际发货数量、价格和可售份数 */
.spu-detail-panel{
  background:#1c1a13 !important;
  color:#fff7cf !important;
  border:2px solid #d9b958 !important;
  border-radius:0 !important;
  padding:8px !important;
}
.spu-detail-panel .variant-panel-title{
  color:#ffe070 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
.spu-spec-row{
  grid-template-columns:44px minmax(150px,1.4fr) minmax(82px,.65fr) minmax(76px,.55fr) auto auto auto !important;
  background:#2b2b24 !important;
  border-color:#75602a !important;
  color:#fff7cf !important;
  border-radius:0 !important;
  padding:6px !important;
}
.spu-spec-thumb,
.spu-related-package-thumb{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #7c6b45;
  background:#171714;
}
.spu-spec-thumb img,
.spu-related-package-thumb img{
  width:34px;
  height:34px;
  object-fit:contain;
}
.spu-spec-thumb span,
.spu-related-package-thumb span{
  color:#ffe070;
  font-weight:900;
}
.spu-spec-name strong{color:#f0abfc;}
.spu-spec-name span,.spu-spec-stock{color:#e6c879 !important;}
.spu-spec-price{color:#00f6ff !important;}
.spu-related-package-row{
  grid-template-columns:44px minmax(180px,1fr) auto auto auto auto !important;
  background:#2b2b24 !important;
  border-color:#75602a !important;
  color:#fff7cf !important;
  border-radius:0 !important;
}
.spu-related-packages h3{color:#facc15;}
.spu-related-package-row .mini-muted{color:#e6c879 !important;}

@media(max-width:900px){
  .spu-spec-row{grid-template-columns:44px 1fr 1fr !important;}
  .spu-related-package-row{grid-template-columns:44px 1fr 1fr !important;}
}


/* v110：多规格卡片只显示摘要；点击“展示”后再显示规格、每份数量与关联套餐 */
.spu-product-card{
  width:218px !important;
  max-width:218px !important;
  height:64px !important;
  min-height:64px !important;
  grid-template-columns:58px minmax(0,1fr) !important;
  overflow:visible !important;
  cursor:default !important;
}
.spu-product-card .game-item-icon{
  width:58px !important;
  height:60px !important;
  min-height:60px !important;
}
.spu-product-card .game-item-icon img,
.spu-product-card .game-item-icon span{
  width:48px !important;
  height:48px !important;
}
.spu-card-main.spu-card-summary{
  padding:3px 4px 2px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-rows:16px 18px 18px !important;
  gap:1px 4px !important;
  align-content:start !important;
  min-width:0 !important;
  max-width:100% !important;
  height:60px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
.spu-card-summary .game-item-name{
  grid-column:1 / -1 !important;
  grid-row:1 !important;
}
.spu-card-summary .game-item-actions{
  grid-column:2 !important;
  grid-row:2 !important;
  position:static !important;
  justify-self:end !important;
  align-self:center !important;
  overflow:visible !important;
}
.spu-card-summary .game-item-bottom{
  grid-column:1 !important;
  grid-row:2 / 4 !important;
  height:36px !important;
  margin:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:0 !important;
  overflow:hidden !important;
}
.spu-card-summary .spu-summary-hint{
  grid-column:2 !important;
  grid-row:3 !important;
  justify-self:end !important;
  align-self:center !important;
  max-width:82px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  color:#ffe7a8 !important;
  font-size:9px !important;
}
.spu-card-summary .spu-detail-toggle{
  min-width:34px !important;
  background:#4b3b1b !important;
}
/* 展示面板必须占满当前网格整行，禁止浮层覆盖商品卡 */
.spu-shop-grid{position:relative !important;overflow:visible !important;}
.spu-detail-panel{
  position:static !important;
  grid-column:1 / -1 !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  margin:2px 0 10px !important;
  z-index:auto !important;
}
.spu-detail-panel[style*="display:none"]{display:none !important;}
@media(max-width:720px){
  .spu-product-card{width:100% !important;max-width:100% !important;}
}

/* v111：多规格“展示”区域改为与普通/技能书/五行商品一致的紧凑商品卡；明确显示1份数量 */
.spu-detail-panel .spu-spec-list{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,218px) !important;
  gap:10px 12px !important;
  align-items:start !important;
  justify-content:start !important;
  margin-top:8px !important;
}
.spu-detail-panel .spu-spec-card{
  display:grid !important;
  grid-template-columns:58px minmax(0,1fr) !important;
  width:218px !important;
  max-width:218px !important;
  min-width:0 !important;
  height:64px !important;
  min-height:64px !important;
  padding:0 !important;
  gap:0 !important;
  align-items:stretch !important;
  overflow:hidden !important;
  background:#2b2b24 !important;
  border:2px solid #4a3b1d !important;
  border-radius:0 !important;
  color:#f8fafc !important;
  box-sizing:border-box !important;
}
.spu-detail-panel .spu-spec-card .game-item-icon{
  width:58px !important;
  height:60px !important;
  min-height:60px !important;
  border-right:2px solid #8b7335 !important;
  background:#3a3426 !important;
}
.spu-detail-panel .spu-spec-card .game-item-icon img,
.spu-detail-panel .spu-spec-card .game-item-icon span{
  width:48px !important;
  height:48px !important;
  object-fit:contain !important;
}
.spu-detail-panel .spu-spec-card .game-item-main{
  position:relative !important;
  display:grid !important;
  grid-template-rows:16px 18px 20px !important;
  gap:1px !important;
  padding:2px 4px !important;
  min-width:0 !important;
  height:60px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
.spu-detail-panel .spu-spec-card .game-item-name{
  display:block !important;
  max-width:100% !important;
  font-size:12px !important;
  line-height:16px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.spu-detail-panel .spu-spec-status-row,
.spu-detail-panel .spu-spec-purchase-row{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:3px !important;
  min-width:0 !important;
  overflow:hidden !important;
}
.spu-detail-panel .spu-spec-card .game-item-actions{
  position:static !important;
  display:flex !important;
  align-items:center !important;
  gap:3px !important;
  flex:0 0 auto !important;
}
.spu-detail-panel .spu-spec-card .game-status{
  font-size:10px !important;
}
.spu-detail-panel .spu-spec-card .game-order{
  min-width:28px !important;
  height:18px !important;
  padding:0 3px !important;
  font-size:9px !important;
}
.spu-detail-panel .spu-spec-card .game-stock,
.spu-detail-panel .spu-spec-card .game-price{
  font-size:10px !important;
  line-height:16px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.spu-detail-panel .spu-spec-pack-count{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:17px !important;
  padding:0 3px !important;
  border:1px solid #b48b25 !important;
  background:#3f3010 !important;
  color:#fff200 !important;
  font-size:9px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
  flex:0 0 auto !important;
}
.spu-detail-panel .spu-spec-card .game-qty-row{
  display:flex !important;
  align-items:center !important;
  gap:2px !important;
  height:18px !important;
  margin:0 !important;
  color:#ffe7a8 !important;
  font-size:9px !important;
  white-space:nowrap !important;
  flex:0 0 auto !important;
}
.spu-detail-panel .spu-spec-card .game-qty{
  width:28px !important;
  min-width:28px !important;
  max-width:28px !important;
  height:17px !important;
  padding:0 2px !important;
  font-size:9px !important;
}
@media(max-width:720px){
  .spu-detail-panel .spu-spec-list{
    grid-template-columns:repeat(auto-fill,218px) !important;
  }
  .spu-detail-panel .spu-spec-card{
    width:218px !important;
    max-width:218px !important;
  }
}

/* v113：多规格展开方式与技能书/五行一致，使用浮动面板，不改变商品网格行高 */
.spu-shop-grid{
  position:relative !important;
  overflow:visible !important;
}
.spu-detail-panel.spu-floating-panel{
  position:absolute !important;
  grid-column:auto !important;
  width:min(980px, calc(100vw - 44px)) !important;
  max-width:calc(100vw - 44px) !important;
  min-width:min(720px, calc(100vw - 44px)) !important;
  box-sizing:border-box !important;
  margin:0 !important;
  z-index:220 !important;
  padding:9px !important;
  border:2px solid #d9b958 !important;
  border-radius:0 !important;
  background:#171713 !important;
  color:#fff7cf !important;
  box-shadow:0 8px 24px rgba(0,0,0,.58) !important;
  max-height:min(72vh,680px) !important;
  overflow:auto !important;
}
.spu-detail-panel.spu-floating-panel[style*="display:none"]{
  display:none !important;
}
.spu-detail-panel.spu-floating-panel::before{
  content:"" !important;
  display:block !important;
  position:absolute !important;
  top:-8px !important;
  left:28px !important;
  width:14px !important;
  height:14px !important;
  background:#171713 !important;
  border-left:2px solid #d9b958 !important;
  border-top:2px solid #d9b958 !important;
  transform:rotate(45deg) !important;
}
.spu-detail-panel .variant-panel-title{
  margin-bottom:7px !important;
  color:#ffe070 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
.spu-spec-list{
  display:grid !important;
  gap:5px !important;
}
.spu-variant-row{
  display:grid !important;
  grid-template-columns:42px minmax(145px,1.35fr) 82px 88px 86px minmax(116px,auto) !important;
  gap:7px !important;
  align-items:center !important;
  min-height:48px !important;
  padding:5px 7px !important;
  background:#2b2b24 !important;
  border:1px solid #75602a !important;
  color:#fff7cf !important;
}
.spu-variant-row .variant-thumb{
  width:38px !important;
  height:38px !important;
}
.spu-variant-row .variant-thumb img,
.spu-variant-row .variant-thumb span{
  width:34px !important;
  height:34px !important;
  object-fit:contain !important;
}
.spu-variant-row .variant-level{
  color:#f0abfc !important;
  font-weight:900 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}
.spu-variant-row .variant-stock{
  color:#fff200 !important;
  white-space:nowrap !important;
}
.spu-variant-row .variant-price{
  color:#00f6ff !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}
.spu-pack-inline{
  color:#ffe070 !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}
.spu-variant-buy{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  gap:6px !important;
  white-space:nowrap !important;
}
.spu-variant-buy label{
  display:flex !important;
  align-items:center !important;
  gap:3px !important;
  color:#ffe7a8 !important;
  font-size:11px !important;
}
.spu-related-packages{
  margin-top:10px !important;
  padding-top:9px !important;
  border-top:1px dashed #c8a947 !important;
}
.spu-related-packages h3{
  margin:0 0 7px !important;
  color:#facc15 !important;
}
.spu-related-package-grid{
  position:relative !important;
  display:grid !important;
  grid-template-columns:repeat(auto-fill,230px) !important;
  gap:7px 12px !important;
  justify-content:start !important;
  align-items:start !important;
  overflow:visible !important;
}
.spu-related-package-grid .package-card{
  margin:0 !important;
}
.spu-related-package-detail,
.spu-related-package-detail.is-inline-open{
  position:static !important;
  grid-column:1 / -1 !important;
  width:100% !important;
  max-width:100% !important;
  margin:2px 0 8px !important;
  z-index:auto !important;
}
.spu-related-package-detail[style*="display:none"]{
  display:none !important;
}

/* 单规格商品始终明确展示每份实际发货数量 */
.single-product-card .game-item-main{
  grid-template-columns:minmax(0,1fr) 88px !important;
}
.single-product-card .game-item-bottom{
  max-width:72px !important;
}
.single-product-buy-row{
  width:88px !important;
  max-width:88px !important;
  overflow:visible !important;
  justify-content:flex-end !important;
  gap:3px !important;
}
.single-pack-count{
  display:inline-block !important;
  color:#fff200 !important;
  font-size:9px !important;
  font-weight:900 !important;
  line-height:16px !important;
  white-space:nowrap !important;
}
.single-product-buy-row .game-qty{
  width:31px !important;
  min-width:31px !important;
  max-width:31px !important;
}

@media(max-width:760px){
  .spu-detail-panel.spu-floating-panel{
    left:0 !important;
    min-width:100% !important;
    width:100% !important;
    max-width:100% !important;
  }
  .spu-variant-row{
    grid-template-columns:42px minmax(120px,1fr) 76px 76px !important;
  }
  .spu-variant-row .spu-pack-inline,
  .spu-variant-row .spu-variant-buy{
    grid-column:2 / -1 !important;
  }
  .spu-related-package-grid{
    grid-template-columns:1fr !important;
  }
  .spu-related-package-grid .package-card{
    width:100% !important;
    max-width:100% !important;
  }
}


/* v114：多规格展开统一使用技能书/五行的价格批次布局；所有展开商品始终显示“1份=N个”。 */
.lot-pack-count{
  color:#ffe070 !important;
  font-weight:900 !important;
  font-size:11px !important;
  line-height:20px !important;
  white-space:nowrap !important;
  text-align:center !important;
}
.lot-price-row{
  grid-template-columns:58px 72px 82px auto auto !important;
}
.spu-detail-panel .spu-spec-list{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(360px,1fr)) !important;
  gap:7px 10px !important;
  align-items:start !important;
}
.spu-detail-panel .spu-spec-choice-row{
  grid-template-columns:34px minmax(130px,1fr) 72px 72px !important;
  grid-template-rows:auto auto !important;
  min-height:92px !important;
  padding:6px 7px !important;
  background:#2b2b24 !important;
  border:1px solid #75602a !important;
  color:#fff7cf !important;
  box-sizing:border-box !important;
}
.spu-detail-panel .spu-spec-choice-row .variant-thumb{
  width:34px !important;
  height:34px !important;
}
.spu-detail-panel .spu-spec-choice-row .variant-thumb img,
.spu-detail-panel .spu-spec-choice-row .variant-thumb span{
  width:30px !important;
  height:30px !important;
  object-fit:contain !important;
}
.spu-detail-panel .spu-spec-choice-row .variant-level{
  color:#f0abfc !important;
  font-weight:900 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.spu-detail-panel .spu-spec-choice-row .variant-stock{
  color:#fff200 !important;
  white-space:nowrap !important;
}
.spu-detail-panel .spu-spec-choice-row .variant-price{
  color:#00f6ff !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}
.spu-detail-panel .spu-spec-choice-row .lot-price-list{
  grid-column:2 / 5 !important;
  grid-row:2 !important;
}
@media(max-width:720px){
  .spu-detail-panel .spu-spec-list{grid-template-columns:1fr !important;}
  .lot-price-row{grid-template-columns:52px 64px 74px auto auto !important;}
}

/* v115：前台商品卡加宽，桌面端由6列缩为5列，完整显示库存与价格 */
@media (min-width:1100px){
  .game-shop-grid,
  .grouped-shop-grid{
    grid-template-columns:repeat(auto-fill, 258px) !important;
    gap:8px 14px !important;
  }
  .game-item-card,
  .grouped-product-card,
  .spu-product-card{
    width:258px !important;
    max-width:258px !important;
  }
  .package-shop-grid,
  .spu-related-package-grid{
    grid-template-columns:repeat(auto-fill, 258px) !important;
    gap:8px 14px !important;
  }
  .package-card{
    width:258px !important;
    max-width:258px !important;
  }
  .spu-detail-panel .spu-spec-list{
    grid-template-columns:repeat(auto-fill, 258px) !important;
    gap:8px 14px !important;
  }
  .spu-detail-panel .spu-spec-card{
    width:258px !important;
    max-width:258px !important;
  }
}

/* 普通单品：左侧库存/价格保留足够宽度，右侧购买区仍固定可见 */
.single-product-card .game-item-main{
  grid-template-columns:minmax(104px,1fr) 96px !important;
  column-gap:5px !important;
}
.single-product-card .game-item-bottom{
  width:100% !important;
  max-width:100% !important;
  overflow:visible !important;
}
.single-product-card .game-stock,
.single-product-card .game-price{
  width:100% !important;
  max-width:none !important;
  overflow:visible !important;
  text-overflow:clip !important;
  font-size:11px !important;
}
.single-product-buy-row{
  width:96px !important;
  max-width:96px !important;
  gap:4px !important;
}
.single-product-buy-row .game-qty{
  width:32px !important;
  min-width:32px !important;
  max-width:32px !important;
}

/* 同名折叠、多规格摘要也完整显示库存与价格 */
.grouped-product-card .game-item-bottom,
.spu-card-summary .game-item-bottom{
  width:100% !important;
  max-width:112px !important;
}
.grouped-product-card .game-stock,
.grouped-product-card .game-price,
.spu-card-summary .game-stock,
.spu-card-summary .game-price{
  max-width:112px !important;
  overflow:visible !important;
  text-overflow:clip !important;
  font-size:11px !important;
}

/* 展开后的规格卡同样不截断价格与库存 */
.spu-detail-panel .spu-spec-card .game-item-main{
  grid-template-columns:minmax(104px,1fr) 96px !important;
  column-gap:5px !important;
}
.spu-detail-panel .spu-spec-card .game-stock,
.spu-detail-panel .spu-spec-card .game-price{
  max-width:none !important;
  overflow:visible !important;
  text-overflow:clip !important;
  font-size:10px !important;
}

/* 中等宽度自动退为4列，小屏仍保持原自适应 */
@media (min-width:760px) and (max-width:1099px){
  .game-shop-grid,
  .grouped-shop-grid,
  .package-shop-grid,
  .spu-related-package-grid,
  .spu-detail-panel .spu-spec-list{
    grid-template-columns:repeat(auto-fill, minmax(238px,1fr)) !important;
  }
  .game-item-card,
  .grouped-product-card,
  .spu-product-card,
  .package-card,
  .spu-detail-panel .spu-spec-card{
    width:100% !important;
    max-width:none !important;
  }
}

/* v116：多规格后台只填写新增规格，默认单品自动继承来源商品 */
.spu-auto-name-box{
  display:grid;
  gap:5px;
  min-height:62px;
  align-content:start;
}
.spu-auto-name-box>span{font-weight:700}
.spu-auto-name-box>b{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 10px;
  box-sizing:border-box;
  border:1px solid #80651c;
  border-radius:7px;
  background:#2a2b24;
  color:#fff1a8;
  overflow-wrap:anywhere;
}
.spu-default-preview{
  display:grid;
  gap:3px;
  padding:9px 10px;
  margin-bottom:8px;
  border:1px solid #a27b17;
  border-radius:6px;
  background:#34301d;
  color:#fff0a0;
}
.spu-default-preview span{color:#86f090;font-size:12px}
.spu-editor-title>div{display:grid;gap:2px}
.spu-editor-title small{color:#d1c393;font-weight:400}
.spu-product-card{cursor:default}

/* v118：前台全宽自适应商品网格，消除固定 258px 卡片造成的右侧留白与操作区裁切 */
.front-store .container{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:14px !important;
  padding-right:14px !important;
}
.front-store .main{
  width:100% !important;
  max-width:none !important;
}
.front-store .game-shop-grid,
.front-store .grouped-shop-grid,
.front-store .package-shop-grid,
.front-store .spu-related-package-grid{
  width:100% !important;
  grid-template-columns:repeat(auto-fill,minmax(245px,1fr)) !important;
  gap:8px 14px !important;
  justify-content:stretch !important;
  align-items:start !important;
}
.front-store .game-item-card,
.front-store .grouped-product-card,
.front-store .spu-product-card,
.front-store .package-card{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
}
.front-store .spu-detail-panel .spu-spec-list{
  width:100% !important;
  grid-template-columns:repeat(auto-fill,minmax(258px,1fr)) !important;
  justify-content:stretch !important;
}
.front-store .spu-detail-panel .spu-spec-card{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
}
.front-store .single-product-card .game-item-main{
  grid-template-columns:minmax(108px,1fr) max-content !important;
  column-gap:6px !important;
  overflow:visible !important;
}
.front-store .single-product-card .game-item-actions{
  min-width:max-content !important;
  max-width:none !important;
  overflow:visible !important;
}
.front-store .single-product-card .game-item-bottom{
  width:100% !important;
  max-width:none !important;
  overflow:visible !important;
}
.front-store .single-product-card .game-stock,
.front-store .single-product-card .game-price{
  width:auto !important;
  max-width:none !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
.front-store .single-product-buy-row{
  width:auto !important;
  min-width:96px !important;
  max-width:none !important;
  overflow:visible !important;
}
.front-store .single-related-toggle{
  min-width:34px !important;
}
@media (min-width:760px) and (max-width:1099px){
  .front-store .game-shop-grid,
  .front-store .grouped-shop-grid,
  .front-store .package-shop-grid,
  .front-store .spu-related-package-grid{
    grid-template-columns:repeat(auto-fill,minmax(238px,1fr)) !important;
  }
}
@media (max-width:759px){
  .front-store .container{
    padding-left:8px !important;
    padding-right:8px !important;
  }
  .front-store .game-shop-grid,
  .front-store .grouped-shop-grid,
  .front-store .package-shop-grid,
  .front-store .spu-related-package-grid,
  .front-store .spu-detail-panel .spu-spec-list{
    grid-template-columns:1fr !important;
  }
}


/* v118 补充：在 245~260px 卡片宽度下，三操作项也必须完整留在卡片内部 */
.front-store .single-product-card .game-item-main{
  grid-template-columns:minmax(88px,1fr) max-content !important;
  column-gap:3px !important;
}
.front-store .single-product-card .game-item-actions{
  gap:2px !important;
}
.front-store .single-product-card .game-status{
  font-size:9px !important;
}
.front-store .single-product-card .game-order{
  min-width:28px !important;
  padding-left:3px !important;
  padding-right:3px !important;
  font-size:10px !important;
}
.front-store .single-product-card .single-related-toggle{
  min-width:28px !important;
}
.front-store .single-product-buy-row{
  min-width:88px !important;
}


/* v119：多规格展开显示全部规格，补回默认单品规格 */
.spu-spec-choice-row.is-default-spec{border-color:#d2a63b;background:rgba(210,166,59,.08)}
.default-spec-tip{display:inline-block;margin-left:6px;padding:1px 6px;border:1px solid #d2a63b;border-radius:999px;font-size:11px;color:#d2a63b;vertical-align:middle}


/* v121：多规格展开与关联套餐明细防溢出修复 */
.spu-detail-panel .variant-panel-title,
.spu-related-package-detail .package-detail-title{
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  word-break:break-word !important;
}
.spu-detail-panel .spu-spec-list{
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr)) !important;
  gap:8px 10px !important;
}
.spu-detail-panel .spu-spec-choice-row{
  grid-template-columns:34px minmax(0,1fr) auto auto !important;
  min-width:0 !important;
  overflow:hidden !important;
}
.spu-detail-panel .spu-spec-choice-row .variant-level{
  min-width:0 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  line-height:14px !important;
  word-break:break-word !important;
}
.spu-detail-panel .spu-spec-choice-row .variant-stock,
.spu-detail-panel .spu-spec-choice-row .variant-price{
  font-size:11px !important;
}
.spu-detail-panel .spu-spec-choice-row .lot-price-list{
  min-width:0 !important;
}
.spu-detail-panel .spu-spec-choice-row .lot-price-row{
  grid-template-columns:minmax(52px,auto) minmax(62px,auto) minmax(70px,1fr) auto auto !important;
  min-width:0 !important;
}
.spu-detail-panel .spu-spec-choice-row .lot-price,
.spu-detail-panel .spu-spec-choice-row .lot-stock,
.spu-detail-panel .spu-spec-choice-row .lot-pack-count,
.spu-detail-panel .spu-spec-choice-row .variant-qty-label{
  font-size:11px !important;
}
.spu-detail-panel .spu-spec-choice-row .game-qty{
  width:30px !important;
  min-width:30px !important;
  max-width:30px !important;
}
.spu-related-package-grid{
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr)) !important;
}
.spu-related-package-detail,
.package-detail-panel{
  overflow:hidden !important;
}
.package-detail-list{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr)) !important;
  gap:8px !important;
}
.package-detail-row{
  min-width:0 !important;
  overflow:hidden !important;
}
.package-detail-name{
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  word-break:break-word !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
}
.package-detail-sub{
  min-width:0 !important;
}
@media(max-width:980px){
  .spu-detail-panel .spu-spec-list{
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr)) !important;
  }
  .spu-detail-panel .spu-spec-choice-row .lot-price-row{
    grid-template-columns:1fr 1fr 1fr auto auto !important;
  }
}
@media(max-width:720px){
  .spu-detail-panel .spu-spec-list,
  .package-detail-list,
  .spu-related-package-grid{
    grid-template-columns:1fr !important;
  }
  .spu-detail-panel .spu-spec-choice-row{
    grid-template-columns:34px minmax(0,1fr) auto !important;
    grid-template-rows:auto auto auto !important;
  }
  .spu-detail-panel .spu-spec-choice-row .variant-price{
    grid-column:3 !important;
    grid-row:1 !important;
  }
  .spu-detail-panel .spu-spec-choice-row .variant-stock{
    grid-column:2 / 4 !important;
    grid-row:2 !important;
  }
  .spu-detail-panel .spu-spec-choice-row .lot-price-list{
    grid-column:2 / 4 !important;
    grid-row:3 !important;
  }
  .spu-detail-panel .spu-spec-choice-row .lot-price-row{
    grid-template-columns:1fr 1fr !important;
    row-gap:4px !important;
  }
  .spu-detail-panel .spu-spec-choice-row .lot-price,
  .spu-detail-panel .spu-spec-choice-row .lot-stock,
  .spu-detail-panel .spu-spec-choice-row .lot-pack-count{
    text-align:left !important;
  }
  .spu-detail-panel .spu-spec-choice-row .variant-qty-label,
  .spu-detail-panel .spu-spec-choice-row .game-order{
    justify-self:start !important;
  }
}


/* v122：多规格与关联套餐展开区紧凑三列版 */
.spu-detail-panel{
  padding:8px 10px !important;
  margin-bottom:8px !important;
}
.spu-detail-panel .variant-panel-title{
  margin:0 0 6px !important;
  padding:0 0 5px !important;
  line-height:18px !important;
  font-size:14px !important;
}
.spu-detail-panel .spu-spec-list{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:6px 8px !important;
  margin-top:5px !important;
}
.spu-detail-panel .spu-spec-choice-row{
  min-height:76px !important;
  padding:4px 5px !important;
  row-gap:2px !important;
  column-gap:5px !important;
}
.spu-detail-panel .spu-spec-choice-row .variant-thumb{
  width:32px !important;
  height:32px !important;
}
.spu-detail-panel .spu-spec-choice-row .variant-thumb img,
.spu-detail-panel .spu-spec-choice-row .variant-thumb span{
  width:28px !important;
  height:28px !important;
}
.spu-detail-panel .spu-spec-choice-row .variant-level{
  font-size:11px !important;
  line-height:13px !important;
}
.spu-detail-panel .spu-spec-choice-row .variant-stock,
.spu-detail-panel .spu-spec-choice-row .variant-price{
  font-size:10px !important;
}
.default-spec-tip{
  margin-left:3px !important;
  padding:0 4px !important;
  font-size:9px !important;
  line-height:14px !important;
}
.spu-detail-panel .spu-spec-choice-row .lot-price-row{
  grid-template-columns:auto auto minmax(62px,1fr) auto auto !important;
  gap:3px !important;
  min-height:23px !important;
  padding:2px 3px !important;
}
.spu-detail-panel .spu-spec-choice-row .lot-price,
.spu-detail-panel .spu-spec-choice-row .lot-stock,
.spu-detail-panel .spu-spec-choice-row .lot-pack-count,
.spu-detail-panel .spu-spec-choice-row .variant-qty-label{
  font-size:10px !important;
}
.spu-detail-panel .spu-spec-choice-row .game-order{
  min-width:34px !important;
  padding:0 5px !important;
  font-size:10px !important;
}
.spu-related-packages{
  margin-top:8px !important;
  padding-top:7px !important;
}
.spu-related-packages h3{
  margin:0 0 5px !important;
  font-size:18px !important;
}
.spu-related-package-grid{
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr)) !important;
  gap:6px 8px !important;
}
.spu-related-package-detail,
.package-detail-panel{
  padding:7px !important;
  margin:1px 0 6px !important;
}
.package-detail-title{
  margin-bottom:5px !important;
  padding-bottom:4px !important;
  font-size:16px !important;
  line-height:20px !important;
}
.package-detail-list{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:6px !important;
}
.package-detail-row{
  grid-template-columns:36px minmax(0,1fr) !important;
  gap:5px !important;
  min-height:46px !important;
  padding:4px !important;
}
.package-detail-icon{
  width:34px !important;
  height:34px !important;
}
.package-detail-icon img,
.package-detail-icon span{
  width:29px !important;
  height:29px !important;
  font-size:15px !important;
}
.package-detail-name{
  font-size:11px !important;
  line-height:14px !important;
}
.package-detail-sub{
  gap:2px 6px !important;
  font-size:10px !important;
  line-height:13px !important;
}
@media(max-width:1199px){
  .spu-detail-panel .spu-spec-list,
  .package-detail-list{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:759px){
  .spu-detail-panel .spu-spec-list,
  .package-detail-list,
  .spu-related-package-grid{
    grid-template-columns:1fr !important;
  }
  .spu-detail-panel{
    padding:7px !important;
  }
}


/* v123：单品关联套餐按钮防溢出修复 */
.single-title-row{
  display:flex !important;
  align-items:center !important;
  gap:4px !important;
  min-width:0 !important;
}
.single-title-row .game-item-name{
  flex:1 1 auto !important;
  min-width:0 !important;
}
.single-related-badge{
  flex:0 0 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  max-width:52px !important;
  height:16px !important;
  padding:0 4px !important;
  border:1px solid #c69d3b !important;
  background:#3b2b10 !important;
  color:#ffe070 !important;
  font-size:9px !important;
  font-weight:900 !important;
  line-height:14px !important;
  white-space:nowrap !important;
}
.front-store .single-product-card.has-related-packages .game-item-main{
  grid-template-columns:minmax(82px,1fr) 82px !important;
  column-gap:2px !important;
}
.front-store .single-product-card.has-related-packages .game-item-actions{
  gap:1px !important;
  min-width:82px !important;
  justify-content:flex-end !important;
}
.front-store .single-product-card.has-related-packages .game-status{
  font-size:8px !important;
  letter-spacing:0 !important;
}
.front-store .single-product-card.has-related-packages .game-order{
  min-width:24px !important;
  padding-left:2px !important;
  padding-right:2px !important;
  font-size:9px !important;
}
.front-store .single-product-card.has-related-packages .single-related-toggle{
  min-width:24px !important;
}
.front-store .single-product-card.has-related-packages .single-product-buy-row{
  min-width:82px !important;
}
.front-store .single-product-card.has-related-packages .single-pack-count{
  max-width:50px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}


/* v124：多规格和单品关联套餐支持点击卡片任意位置展开 */
.card-anywhere-expandable{
  cursor:pointer !important;
}
.card-anywhere-expandable:hover{
  border-color:#d2a63b !important;
  box-shadow:inset 0 0 0 1px #a98633,0 0 0 1px rgba(255,224,112,.22) !important;
}
.card-anywhere-expandable button,
.card-anywhere-expandable input,
.card-anywhere-expandable label,
.card-anywhere-expandable a{
  cursor:auto;
}
.card-anywhere-expandable button,
.card-anywhere-expandable a{
  cursor:pointer;
}


/* v125：移除顶部道具商城框，搜索下移至商场入口右下角 */
.mall-entry-bottom-row{
  display:flex !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  gap:14px !important;
  min-width:0 !important;
}
.mall-entry-bottom-row .mall-entry-buttons{
  flex:1 1 auto !important;
  min-width:0 !important;
}
.mall-entry-search{
  flex:0 0 280px !important;
  width:280px !important;
  margin:0 !important;
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) !important;
  align-items:center !important;
  gap:6px !important;
  color:#ffe7a8 !important;
  font-size:12px !important;
  font-weight:900 !important;
}
.mall-entry-search input{
  width:100% !important;
  min-width:0 !important;
  height:28px !important;
  margin:0 !important;
  padding:2px 8px !important;
  box-sizing:border-box !important;
  background:#1f1f1c !important;
  color:#f8fafc !important;
  border:1px solid #8b6f31 !important;
  border-radius:3px !important;
}
@media(max-width:900px){
  .mall-entry-bottom-row{
    align-items:stretch !important;
    flex-direction:column !important;
    gap:8px !important;
  }
  .mall-entry-search{
    align-self:flex-end !important;
    flex-basis:auto !important;
    width:min(100%,360px) !important;
  }
}
@media(max-width:560px){
  .mall-entry-search{
    width:100% !important;
  }
}


/* v126：组合下单本地记忆 */
.cart-checkout-form .cart-memory-clear{
  height:30px !important;
  min-width:72px !important;
  background:#3d321b !important;
}
.cart-memory-status{
  grid-column:1 / -1;
  min-height:16px;
  color:#ffe070;
  font-size:11px;
  line-height:16px;
  text-align:right;
}
@media(min-width:981px){
  .cart-checkout-form{
    grid-template-columns:minmax(135px,1fr) minmax(125px,1fr) minmax(125px,1fr) 92px minmax(130px,1fr) auto auto auto !important;
  }
}

/* v127：银子邮件与淘宝行金子自动发货 */
.market-order-fields{
  grid-column:1 / -1;
  grid-template-columns:repeat(4,minmax(130px,1fr));
  gap:6px;
  padding:8px;
  border:1px solid #c69d3b;
  background:rgba(70,48,14,.72);
  color:#fff1a8;
}
.market-order-fields strong,.market-order-fields small{grid-column:1 / -1;}
.market-order-fields input{min-width:0;width:100%;box-sizing:border-box;}
.delivery-mode-badge{flex:0 0 auto;padding:0 4px;border-radius:3px;font-size:9px;font-weight:900;line-height:15px;white-space:nowrap;}
.delivery-mode-badge.silver{border:1px solid #cbd5e1;background:#374151;color:#f8fafc;}
.delivery-mode-badge.market{border:1px solid #f59e0b;background:#4b2e0b;color:#fde68a;}
@media(max-width:900px){.market-order-fields{grid-template-columns:repeat(2,minmax(130px,1fr));}}
@media(max-width:600px){.market-order-fields{grid-template-columns:1fr;}}


/* v129：邮件服务费原因提示 */
.mail-service-fee-reason{margin:8px 0 !important;line-height:1.65 !important;}
.mail-service-fee-reason strong{color:#b45309 !important;}


/* v130：50封后由买家选择继续邮寄或当面交易 */
.mail-limit-choice{
  display:grid;
  gap:6px;
  padding:9px 10px;
  border:1px solid #8b7335;
  background:rgba(43,43,36,.78);
  color:#fff1a8;
}
.mail-limit-choice strong,.mail-limit-choice legend{color:#facc15;font-weight:900;}
.mail-limit-choice label{display:flex;align-items:flex-start;gap:6px;margin:0;color:#fff7cf;font-weight:700;}
.mail-limit-choice input[type="radio"]{width:auto;flex:0 0 auto;margin-top:3px;}
.mail-limit-choice small{color:#e6c879;line-height:1.5;}
.face-trade-notice{line-height:1.7;}

/* v136 银子/金子自动商品设置 */
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: end;
}
.admin-form-grid > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-form-grid > label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
}


/* v148：满50封时才显示的下单确认页 */
.mail-limit-confirm-page{max-width:760px;margin:28px auto;}
.mail-limit-confirm-form{display:flex;flex-direction:column;gap:14px;}
.mail-limit-confirm-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.mail-limit-confirm-options .btn{min-height:48px;white-space:normal;}
@media (max-width:720px){.mail-limit-confirm-options{grid-template-columns:1fr;}}

/* v151：淘宝行金子和银子恢复为普通商品相同尺寸。 */
.front-store .currency-product-card{
  grid-column:auto !important;
  width:auto !important;
  max-width:none !important;
}

/* v151：角色名与联系方式使用真正的多记忆下拉，不受当前输入内容过滤。 */
.cart-memory-combobox{
  position:relative;
  min-width:0;
  width:100%;
}
.cart-memory-combobox > input{
  width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  padding-right:30px !important;
}
.cart-memory-toggle{
  position:absolute;
  top:1px;
  right:1px;
  z-index:3;
  width:28px;
  height:28px;
  padding:0;
  border:0;
  border-left:1px solid #8b6f31;
  border-radius:0 3px 3px 0;
  background:#2b2b24;
  color:#f8fafc;
  cursor:pointer;
  font-size:13px;
  line-height:28px;
}
.cart-memory-toggle:hover,
.cart-memory-toggle[aria-expanded="true"]{
  background:#4b3515;
  color:#ffe070;
}
.cart-memory-menu{
  display:none;
  position:absolute;
  z-index:300;
  left:0;
  right:0;
  top:calc(100% + 2px);
  max-height:220px;
  overflow:auto;
  padding:4px;
  border:1px solid #8b6f31;
  border-radius:3px;
  background:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,.35);
}
.cart-memory-combobox.is-open .cart-memory-menu{display:block;}
.cart-memory-option{
  display:block;
  width:100%;
  min-height:30px;
  padding:5px 8px;
  border:0;
  border-radius:2px;
  background:#fff;
  color:#111827;
  text-align:left;
  cursor:pointer;
  white-space:normal;
  overflow-wrap:anywhere;
}
.cart-memory-option:hover,
.cart-memory-option:focus{
  outline:none;
  background:#f2e1b7;
  color:#3f2b08;
}
.cart-memory-empty{
  padding:7px 8px;
  color:#6b7280;
  font-size:12px;
}
@media(max-width:980px){
  .cart-memory-menu{max-height:180px;}
}


/* v152：货币卡片严格恢复为普通商品单列尺寸；覆盖 v150 的跨两列规则。 */
.front-store .grouped-shop-grid .currency-product-card,
.front-store .spu-shop-grid .currency-product-card,
.front-store .game-shop-grid .currency-product-card,
.front-store .currency-product-card{
  grid-column:span 1 !important;
  grid-row:auto !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}

/* v152：下拉箭头固定嵌入输入框右侧，不再另占一行。 */
.cart-checkout-form .cart-memory-combobox{
  position:relative !important;
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  height:30px !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
}
.cart-checkout-form .cart-memory-combobox > input{
  position:relative !important;
  z-index:1 !important;
  display:block !important;
  width:100% !important;
  height:30px !important;
  min-width:0 !important;
  margin:0 !important;
  padding:4px 34px 4px 8px !important;
  box-sizing:border-box !important;
}
.cart-checkout-form .cart-memory-combobox > .cart-memory-toggle{
  position:absolute !important;
  z-index:5 !important;
  top:1px !important;
  right:1px !important;
  bottom:auto !important;
  left:auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  float:none !important;
  width:29px !important;
  min-width:29px !important;
  max-width:29px !important;
  height:28px !important;
  min-height:28px !important;
  max-height:28px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-left:1px solid #8b6f31 !important;
  border-radius:0 3px 3px 0 !important;
  background:#2b2b24 !important;
  color:#f8fafc !important;
  line-height:28px !important;
  box-sizing:border-box !important;
}
.cart-checkout-form .cart-memory-combobox > .cart-memory-menu{
  position:absolute !important;
  z-index:500 !important;
  top:32px !important;
  left:0 !important;
  right:0 !important;
  width:auto !important;
  margin:0 !important;
  box-sizing:border-box !important;
}


/* v153：记忆下拉每一项右侧增加删除 X 按钮。 */
.cart-memory-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 28px;
  align-items:stretch;
  gap:4px;
}
.cart-memory-row + .cart-memory-row{margin-top:4px;}
.cart-memory-row .cart-memory-option{
  min-width:0;
  padding-right:6px;
}
.cart-memory-delete{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  min-width:28px;
  height:30px;
  padding:0;
  border:0;
  border-radius:2px;
  background:#fff0f0;
  color:#b91c1c;
  cursor:pointer;
  font-size:18px;
  font-weight:900;
  line-height:1;
}
.cart-memory-delete:hover,
.cart-memory-delete:focus{
  outline:none;
  background:#fee2e2;
  color:#7f1d1d;
}

/* v153：淘宝行金子和银子彻底按普通商品单卡渲染，不再使用特殊宽卡样式。 */
.front-store .single-product-card{
  grid-column:span 1 !important;
}
.front-store .spu-shop-grid > .single-product-card{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
}
.front-store .spu-shop-grid > .single-product-card .game-item-main,
.front-store .spu-shop-grid > .single-product-card .single-title-row,
.front-store .spu-shop-grid > .single-product-card .game-item-bottom,
.front-store .spu-shop-grid > .single-product-card .single-product-buy-row{
  width:100% !important;
  max-width:none !important;
}


/* v154：删除按钮悬停提示；角色名和联系方式共用。 */
.cart-memory-delete{
  position:relative;
  overflow:visible;
}
.cart-memory-delete::after{
  content:attr(data-tooltip);
  position:absolute;
  z-index:800;
  right:0;
  bottom:calc(100% + 7px);
  display:none;
  width:max-content;
  max-width:160px;
  padding:5px 8px;
  border:1px solid #8b6f31;
  border-radius:3px;
  background:#20170b;
  color:#ffe7a8;
  box-shadow:0 4px 12px rgba(0,0,0,.35);
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
  pointer-events:none;
}
.cart-memory-delete::before{
  content:"";
  position:absolute;
  z-index:801;
  right:8px;
  bottom:calc(100% + 2px);
  display:none;
  width:8px;
  height:8px;
  transform:rotate(45deg);
  border-right:1px solid #8b6f31;
  border-bottom:1px solid #8b6f31;
  background:#20170b;
  pointer-events:none;
}
.cart-memory-delete:hover::after,
.cart-memory-delete:hover::before,
.cart-memory-delete:focus-visible::after,
.cart-memory-delete:focus-visible::before{
  display:block;
}


/* v155：单品标题占满整行，宠物卡名称缩小后完整显示。 */
.front-store .single-product-card .single-title-row{
  grid-column:1 / -1 !important;
  grid-row:1 !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
}
.front-store .single-product-card .single-title-row .game-item-name{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
}
.front-store .pet-card-name-card .single-title-row .game-item-name{
  font-size:10px !important;
  letter-spacing:-0.25px !important;
  text-overflow:clip !important;
}

/* v155：银子/淘宝行标识放到“加入”按钮正上方，标题行不再被标识占宽。 */
.front-store .currency-layout-card .single-title-row{
  padding-right:0 !important;
}
.front-store .currency-layout-card .currency-game-actions{
  overflow:visible !important;
}
.front-store .currency-layout-card .currency-action-stack{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:30px !important;
  height:17px !important;
  overflow:visible !important;
}
.front-store .currency-layout-card .currency-action-stack > .delivery-mode-badge{
  position:absolute !important;
  right:0 !important;
  bottom:19px !important;
  z-index:4 !important;
  height:14px !important;
  line-height:12px !important;
  padding:0 3px !important;
  font-size:8px !important;
  pointer-events:none !important;
}
.front-store .currency-layout-card .currency-action-stack > .game-order{
  margin:0 !important;
}


/* v156：绑定/特殊商品人工发货标识。 */
.delivery-mode-badge.manual{border:1px solid #fb7185;background:#4c101d;color:#ffe4e6;}
.front-store .manual-layout-card .single-title-row{padding-right:0!important;}
.front-store .manual-layout-card .currency-game-actions{overflow:visible!important;}
.front-store .manual-layout-card .currency-action-stack{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:30px!important;height:17px!important;overflow:visible!important;}
.front-store .manual-layout-card .currency-action-stack>.delivery-mode-badge{position:absolute!important;right:0!important;bottom:19px!important;z-index:4!important;height:14px!important;line-height:12px!important;padding:0 3px!important;font-size:8px!important;pointer-events:none!important;}
.manual-delivery-notice{border-color:#fb7185!important;background:rgba(76,16,29,.35)!important;}


/* v158：自定义商品描述里的任意“状态”行统一红色显示。 */
.global-item-desc-tooltip .desc-line.desc-status-red{
  color:#ff3b30 !important;
  font-weight:900 !important;
  text-shadow:0 1px 0 #000, 0 0 6px rgba(255,59,48,.45) !important;
}


/* v160：自定义商品描述支持回车分行与空行分段。 */
.global-item-desc-tip .desc-paragraph-gap,
.item-desc-tooltip .desc-paragraph-gap{
  height:9px;
}
.product-create-description::placeholder{
  white-space:pre-line;
}


/* v162：技能书、五行、多规格及其他分类的展开说明文字全部隐藏，展开后直接显示商品选项。 */
.front-store .variant-panel-title{
  display:none !important;
}


/* v164：原商品内联新增规格。 */
.inline-extra-spec-row{border-top:1px dashed rgba(198,157,59,.55);margin-top:3px;padding-top:3px;}
.inline-extra-spec-row .lot-pack-count{color:#ffe070;font-weight:900;}
.inline-source-spec-list{margin-bottom:8px;}


/* v168：大商品目录性能优化 */
.game-item-card,
.product-admin-card{
  content-visibility:auto;
  contain-intrinsic-size:0 90px;
}
.variant-panel,
.package-detail-panel,
.product-detail-panel{
  contain:layout style paint;
}
.mall-entry-btn{text-decoration:none;}
.catalog-search-form{display:flex !important;align-items:center;gap:6px;}
.catalog-search-form input{min-width:190px;}
.catalog-pager,
.admin-product-pager{
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;
  margin:16px 0;padding:10px;border:1px solid #6f5525;background:#25251f;color:#ffe7a8;
}
.catalog-pager .game-order.disabled{pointer-events:none;opacity:1;background:#855a17;color:#fff;}
.catalog-empty{margin-top:12px;}
.admin-product-pager .btn{min-width:34px;text-align:center;}
.page-size-filter{display:flex;align-items:center;gap:4px;}
@media(max-width:720px){
  .catalog-search-form{width:100%;}
  .catalog-search-form input{min-width:0;flex:1;}
}


/* v171：同名库存仅来自多个角色/槽位，但最终只有一个有效款式和一个价格时，按普通单品直接加入。 */
.front-store .simple-direct-group{cursor:default !important;}
.front-store .simple-direct-group .game-item-name{padding-right:0 !important;}
.front-store .simple-direct-group .single-product-buy-row{width:auto !important;min-width:96px !important;}


/* v174：普通同名库存合并后，单一价格/单一款式直接显示完整单品卡。 */
.front-store .grouped-product-card .game-item-main{
  grid-template-columns:minmax(108px,1fr) minmax(62px,max-content) !important;
  overflow:visible !important;
}
.front-store .grouped-product-card .game-item-bottom{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  overflow:visible !important;
}
.front-store .grouped-product-card .game-stock,
.front-store .grouped-product-card .game-price{
  max-width:none !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
.front-store .grouped-product-card .game-item-actions{
  min-width:max-content !important;
  overflow:visible !important;
}
.front-store .simple-direct-group .game-qty-row{
  max-width:none !important;
  overflow:visible !important;
}
.front-store .simple-direct-group .single-pack-count{
  max-width:76px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.front-store .game-item-name{padding-right:2px !important;}


/* v175：普通单品、同名合并卡、技能书/五行摘要卡统一为同一套紧凑样式。 */
.front-store .game-shop-grid > .game-item-card,
.front-store .grouped-shop-grid > .game-item-card{
  height:68px !important;
  min-height:68px !important;
  grid-template-columns:58px minmax(0,1fr) !important;
  box-sizing:border-box !important;
}
.front-store .game-shop-grid > .game-item-card > .game-item-icon,
.front-store .grouped-shop-grid > .game-item-card > .game-item-icon{
  width:58px !important;
  height:64px !important;
  min-height:64px !important;
}
.front-store .game-shop-grid > .game-item-card > .game-item-main,
.front-store .grouped-shop-grid > .game-item-card > .game-item-main{
  height:64px !important;
  padding:3px 5px 2px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) max-content !important;
  grid-template-rows:17px 21px 20px !important;
  gap:1px 4px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
.front-store .grouped-product-card .game-item-name,
.front-store .single-product-card .single-title-row{
  grid-column:1 / -1 !important;
  grid-row:1 !important;
  width:100% !important;
  min-width:0 !important;
  height:17px !important;
  line-height:17px !important;
}
.front-store .single-product-card .single-title-row{
  display:flex !important;
  align-items:center !important;
  gap:3px !important;
  overflow:hidden !important;
}
.front-store .grouped-product-card .game-item-name,
.front-store .single-product-card .game-item-name{
  min-width:0 !important;
  max-width:100% !important;
  height:17px !important;
  line-height:17px !important;
  font-size:12px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.front-store .grouped-product-card .game-item-actions,
.front-store .single-product-card .game-item-actions{
  grid-column:2 !important;
  grid-row:2 !important;
  position:static !important;
  justify-self:end !important;
  align-self:center !important;
  height:20px !important;
  min-width:max-content !important;
  overflow:visible !important;
  gap:2px !important;
}
.front-store .grouped-product-card .game-item-bottom,
.front-store .single-product-card .game-item-bottom{
  grid-column:1 !important;
  grid-row:2 / 4 !important;
  width:100% !important;
  max-width:none !important;
  height:40px !important;
  margin:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:0 !important;
  overflow:hidden !important;
}
.front-store .grouped-product-card .game-stock,
.front-store .grouped-product-card .game-price,
.front-store .single-product-card .game-stock,
.front-store .single-product-card .game-price{
  width:100% !important;
  max-width:100% !important;
  height:16px !important;
  line-height:16px !important;
  font-size:11px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.front-store .grouped-product-card .game-qty-row,
.front-store .single-product-card .game-qty-row{
  grid-column:2 !important;
  grid-row:3 !important;
  justify-self:end !important;
  align-self:center !important;
  height:19px !important;
  min-width:max-content !important;
  max-width:104px !important;
  overflow:visible !important;
}
.front-store .grouped-product-card .group-hint{display:none !important;}
.front-store .grouped-product-card .game-order,
.front-store .single-product-card .game-order{
  min-width:30px !important;
  height:18px !important;
  padding:0 4px !important;
  font-size:10px !important;
}


/* v176：同一主分类内的同名合并商品、多规格商品和普通单品使用同一个网格。
   修复前一个子列表数量不足整行时，中间留下整段空白的问题。 */
.front-store .unified-category-grid{
  position:relative !important;
  width:100% !important;
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(245px,1fr)) !important;
  grid-auto-flow:row dense !important;
  align-items:start !important;
  gap:8px 14px !important;
}
.front-store .unified-category-grid > .game-item-card{
  grid-column:span 1 !important;
  margin:0 !important;
}
@media (min-width:760px) and (max-width:1099px){
  .front-store .unified-category-grid{
    grid-template-columns:repeat(auto-fill,minmax(238px,1fr)) !important;
  }
}
@media (max-width:759px){
  .front-store .unified-category-grid{
    grid-template-columns:1fr !important;
  }
}


/* v178：前台固定响应式列数，避免最后一列被窗口边缘裁切；宽屏每页56项=7列×8行。 */
html,body{max-width:100%;overflow-x:hidden;}
.front-store .container,.front-store .main,.front-store .unified-category-grid{box-sizing:border-box!important;max-width:100%!important;min-width:0!important;}
.front-store .unified-category-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important;}
.front-store .unified-category-grid>.game-item-card{min-width:0!important;max-width:100%!important;overflow:hidden!important;}
@media(max-width:1699px){.front-store .unified-category-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;}}
@media(max-width:1399px){.front-store .unified-category-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;}}
@media(max-width:1099px){.front-store .unified-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:759px){.front-store .unified-category-grid{grid-template-columns:1fr!important;}}

/* v181：货币卡片保持与普通商品相同高度，仅解除文字宽度截断。
   淘宝金“单笔最多”与银子库存说明沿当前行显示到可用区域末端。 */
.front-store .currency-product-card,
.front-store .currency-product-card > .game-item-main{
  height:68px !important;
  min-height:68px !important;
}
.front-store .currency-product-card > .game-item-main{
  overflow:hidden !important;
}
.front-store .currency-product-card .game-item-bottom{
  min-width:0 !important;
  width:100% !important;
  max-width:none !important;
  overflow:visible !important;
}
.front-store .currency-product-card .game-stock{
  display:block !important;
  width:max-content !important;
  min-width:0 !important;
  max-width:none !important;
  overflow:visible !important;
  text-overflow:clip !important;
  white-space:nowrap !important;
  letter-spacing:-0.35px !important;
}
/* 淘宝金说明比普通库存文字稍长，横向压缩而不改变字号和卡片高度。 */
.front-store .currency-gold-card .game-stock{
  transform:scaleX(.88) !important;
  transform-origin:left center !important;
}
.front-store .currency-product-card .single-pack-count{
  max-width:none !important;
  overflow:visible !important;
  text-overflow:clip !important;
  white-space:nowrap !important;
  letter-spacing:-0.25px !important;
  transform:scaleX(.92) !important;
  transform-origin:right center !important;
}


/* v183：仅调整银子/淘宝金的份量描述。
   份量说明放到标题行右上角；卡片高度与普通商品保持一致，其他商品布局不变。 */
.front-store .currency-layout-card .currency-title-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  column-gap:4px !important;
  padding-right:0 !important;
}
.front-store .currency-layout-card .currency-title-row .game-item-name{
  min-width:0 !important;
  width:auto !important;
  max-width:100% !important;
}
.front-store .currency-layout-card .currency-pack-top{
  display:block !important;
  justify-self:end !important;
  align-self:center !important;
  color:#fff200 !important;
  font-size:10px !important;
  font-weight:900 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  text-shadow:0 1px 0 #000 !important;
  letter-spacing:-0.2px !important;
}
/* 原本压在“加入”上方的货币标识改为与按钮同一行，给右上角份量说明腾出空间。 */
.front-store .currency-layout-card .currency-action-stack{
  gap:2px !important;
  min-width:0 !important;
  height:20px !important;
}
.front-store .currency-layout-card .currency-action-stack > .delivery-mode-badge{
  position:static !important;
  right:auto !important;
  bottom:auto !important;
  flex:0 0 auto !important;
  height:16px !important;
  line-height:14px !important;
  padding:0 3px !important;
  font-size:8px !important;
}
.front-store .currency-layout-card .currency-qty-only{
  justify-content:flex-end !important;
}


/* v184：淘宝金/银子不显示小标识；份量说明固定显示在右上角，卡片高度不变。 */
.front-store .currency-layout-card .currency-title-row{
  position:relative !important;
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  height:17px !important;
  padding:0 96px 0 0 !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
.front-store .currency-layout-card .currency-title-row .game-item-name{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.front-store .currency-layout-card .currency-pack-top{
  position:absolute !important;
  top:3px !important;
  right:0 !important;
  z-index:6 !important;
  display:block !important;
  width:auto !important;
  max-width:94px !important;
  height:13px !important;
  line-height:13px !important;
  overflow:visible !important;
  color:#fff200 !important;
  font-size:9px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
  text-overflow:clip !important;
  letter-spacing:-0.25px !important;
  text-shadow:0 1px 0 #000 !important;
  pointer-events:none !important;
}
/* 银子、淘宝金的小标识彻底隐藏；人工商品标识保持原样。 */
.front-store .currency-layout-card .delivery-mode-badge.silver,
.front-store .currency-layout-card .delivery-mode-badge.market{
  display:none !important;
}
.front-store .currency-layout-card .currency-action-stack{
  min-width:30px !important;
  width:auto !important;
  height:20px !important;
  gap:0 !important;
}

/* v185：货主库存数量与可售价值概览 */
.owner-overview-section{overflow:hidden}
.owner-overview-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}
.owner-overview-head h2{margin:0 0 5px;color:#fff1a8}
.owner-overview-head p{margin:0}
.owner-overview-filter{display:flex;align-items:end;gap:8px;flex-wrap:wrap;min-width:min(100%,430px)}
.owner-overview-filter label{margin:0;color:#ffe7a8;white-space:nowrap}
.owner-overview-filter select{width:210px;margin:0;background:#171714;color:#fff1a8;border:1px solid #8b6f31;border-radius:6px}
.owner-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(135px,1fr));gap:12px}
.owner-summary-card{min-height:86px;padding:13px 16px;border:1px solid #725225;border-radius:8px;background:#3b2817;box-shadow:inset 0 1px 0 rgba(255,235,170,.14),0 3px 8px rgba(0,0,0,.18);display:flex;flex-direction:column;justify-content:center}
.owner-summary-card span{color:#cbb78f;font-size:14px;line-height:1.2;margin-bottom:4px}
.owner-summary-card strong{font-size:29px;line-height:1;color:#ffd42a;white-space:nowrap}
.owner-summary-card.value strong{font-size:24px;color:#ffe05d}
.owner-summary-card.active strong{color:#61ef75}
.owner-summary-card.soldout strong{color:#ff9c57}
.owner-summary-card.inactive strong{color:#77b7ff}
.owner-summary-card.stock strong{color:#f4d56d}
.owner-summary-note{margin:12px 0 0;color:#e6c879;font-size:12px}
.owner-table{min-width:1280px}
.owner-table td input{min-width:115px;margin:0;padding:7px 8px}
.owner-mini-stats{min-width:235px;white-space:normal}
.owner-mini-stats span{display:inline-block;margin:1px 8px 3px 0;color:#ffe070;font-weight:800}
.owner-mini-stats small{display:block;color:#e6c879;line-height:1.45}
.owner-row-actions{min-width:170px}
.owner-row-actions .btn{margin:2px 2px 2px 0}
@media (max-width:1200px){.owner-summary-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}}
@media (max-width:760px){.owner-overview-head{align-items:stretch;flex-direction:column}.owner-overview-filter{min-width:0}.owner-overview-filter select{width:100%}.owner-summary-grid{grid-template-columns:repeat(2,minmax(130px,1fr))}.owner-summary-card strong{font-size:24px}}

/* v187：货主每日销量统计 */
.owner-sales-section{overflow:hidden}
.owner-sales-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}
.owner-sales-head h2{margin:0 0 5px;color:#fff1a8}
.owner-sales-head p{margin:0}
.owner-sales-filter{display:flex;align-items:end;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.owner-sales-filter label{margin:0;color:#ffe7a8;white-space:nowrap}
.owner-sales-filter select,.owner-sales-filter input[type=date]{width:auto;min-width:132px;margin:0;background:#171714;color:#fff1a8;border:1px solid #8b6f31;border-radius:6px}
.owner-sales-filter select{min-width:110px}
.owner-sales-date-sep{padding-bottom:10px;color:#d9c58c}
.owner-sales-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(135px,1fr));gap:12px;margin-bottom:16px}
.owner-sales-card{min-height:92px;padding:13px 15px;border:1px solid #725225;border-radius:8px;background:#2e2418;box-shadow:inset 0 1px 0 rgba(255,235,170,.12),0 3px 8px rgba(0,0,0,.18);display:flex;flex-direction:column;justify-content:center}
.owner-sales-card span{color:#cbb78f;font-size:14px;line-height:1.2;margin-bottom:4px}
.owner-sales-card strong{font-size:27px;line-height:1;color:#ffd42a;white-space:nowrap}
.owner-sales-card small{display:block;margin-top:7px;color:#bba77d;font-size:11px;line-height:1.25}
.owner-sales-card.orders strong{color:#ffe05d}
.owner-sales-card.units strong{color:#9be87a}
.owner-sales-card.items strong{color:#78c6ff}
.owner-sales-card.sales strong{font-size:23px;color:#55f2db}
.owner-sales-card.settle strong{font-size:23px;color:#8df28a}
.owner-sales-card.fee strong{font-size:23px;color:#ffb16f}
.owner-sales-columns{display:grid;grid-template-columns:minmax(420px,.8fr) minmax(620px,1.2fr);gap:14px;align-items:start}
.owner-sales-panel{min-width:0;border:1px solid #6b5124;border-radius:8px;background:#181713;padding:12px}
.owner-sales-panel h3{margin:0 0 10px;color:#ffe79b}
.owner-sales-table-wrap{max-height:430px;overflow:auto}
.owner-sales-table{width:100%;min-width:630px;border-collapse:collapse}
.owner-sales-table th{position:sticky;top:0;z-index:1;background:#302617;color:#ffe79b}
.owner-sales-table th,.owner-sales-table td{padding:8px 9px;border-bottom:1px solid #4f4023;text-align:right;white-space:nowrap}
.owner-sales-table th:first-child,.owner-sales-table td:first-child{text-align:left}
.owner-sales-table.product-rank th:nth-child(2),.owner-sales-table.product-rank td:nth-child(2){text-align:left}
.owner-sales-product-name{max-width:300px;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1450px){.owner-sales-summary-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}.owner-sales-columns{grid-template-columns:1fr}}
@media (max-width:800px){.owner-sales-head{align-items:stretch;flex-direction:column}.owner-sales-filter{justify-content:flex-start}.owner-sales-summary-grid{grid-template-columns:repeat(2,minmax(130px,1fr))}.owner-sales-filter select,.owner-sales-filter input[type=date]{min-width:0;flex:1 1 130px}}


/* v187 发货安全中心 */
.safety-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.safety-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:12px;margin-top:16px}
.safety-stat{display:flex;flex-direction:column;gap:5px;padding:14px;border:1px solid #71562d;border-radius:10px;background:#171714;text-decoration:none;color:inherit}
.safety-stat strong{font-size:28px;color:#f7d270}.safety-stat span{color:#bbb}.safety-stat.critical strong{color:#ff6868}
.safety-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(210px,1fr));gap:10px}.safety-toggle{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #5d513a;border-radius:8px;background:#191916}.danger-toggle{border-color:#8d3232;background:#2a1717}
.safety-event-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}.safety-event{border:1px solid #665537;border-left-width:5px;border-radius:9px;padding:12px;background:#171715}.safety-event.severity-critical{border-left-color:#ef4444}.safety-event.severity-high{border-left-color:#f97316}.safety-event.severity-medium{border-left-color:#eab308}.safety-event-head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.safety-event pre{max-height:260px;overflow:auto;white-space:pre-wrap;word-break:break-word}.safety-critical,.safety-critical.badge{background:#7f1d1d!important;color:#fff!important;border-color:#ef4444!important}.safety-high{background:#7c2d12!important;color:#fff!important}.safety-medium{background:#713f12!important;color:#fff!important}.badge.danger{background:#7f1d1d;color:#fff}
@media(max-width:900px){.safety-stat-grid,.safety-settings-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.safety-stat-grid,.safety-settings-grid{grid-template-columns:1fr}}


/* v190 发货异常信息层级优化 */
.failure-cell{min-width:270px;max-width:460px;vertical-align:top}
.failure-brief{display:flex;flex-direction:column;gap:7px;padding:10px 11px;border:1px solid #65533a;border-left:4px solid #dc2626;border-radius:8px;background:#211b16;color:#f3e7d4;white-space:normal;word-break:break-word}
.failure-brief.tone-unknown{border-left-color:#f59e0b}.failure-brief.tone-partial{border-left-color:#eab308}.failure-brief.tone-manual{border-left-color:#a78bfa}.failure-brief.tone-blocked{border-left-color:#ef4444}
.failure-brief-head{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.failure-brief-head>span{padding:2px 7px;border-radius:999px;background:#762424;color:#ffdede;font-size:12px;font-weight:800;white-space:nowrap}.failure-brief.tone-unknown .failure-brief-head>span{background:#71420a;color:#ffe0a3}.failure-brief.tone-partial .failure-brief-head>span{background:#62500b;color:#fff2a8}.failure-brief.tone-manual .failure-brief-head>span{background:#493477;color:#eee4ff}
.failure-brief strong{color:#fff;font-size:14px;line-height:1.45}.failure-brief p{margin:0;color:#d7c9b7;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.failure-brief a{font-size:13px;color:#f3c96a;text-decoration:none}.failure-brief a:hover{text-decoration:underline}.failure-brief details{margin-top:2px}.failure-brief pre{max-width:560px;max-height:220px;overflow:auto;white-space:pre-wrap;word-break:break-word}
.delivery-failure-panel{--failure-accent:#dc2626;--failure-soft:#3a1b1b;margin:14px 0 18px;padding:17px 18px;border:1px solid color-mix(in srgb,var(--failure-accent) 75%,#3c3026);border-left:5px solid var(--failure-accent);border-radius:12px;background:linear-gradient(135deg,var(--failure-soft),#211a16 72%);color:#f7eee4;box-shadow:0 8px 22px rgba(0,0,0,.18)}
.delivery-failure-panel.tone-unknown{--failure-accent:#f59e0b;--failure-soft:#36280f}.delivery-failure-panel.tone-partial{--failure-accent:#eab308;--failure-soft:#302a12}.delivery-failure-panel.tone-manual{--failure-accent:#a78bfa;--failure-soft:#28203a}.delivery-failure-panel.tone-blocked{--failure-accent:#ef4444;--failure-soft:#35191b}
.delivery-failure-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:13px}.delivery-failure-eyebrow{font-size:12px;letter-spacing:.08em;color:#bfae99}.delivery-failure-header h2{margin:2px 0 0;font-size:20px;color:#fff}.delivery-failure-state{padding:4px 10px;border:1px solid color-mix(in srgb,var(--failure-accent) 70%,#fff);border-radius:999px;background:color-mix(in srgb,var(--failure-accent) 32%,transparent);color:#fff;font-size:13px;font-weight:800;white-space:nowrap}
.delivery-failure-reason{padding:12px 13px;border-radius:9px;background:rgba(0,0,0,.18)}.delivery-failure-reason strong{display:block;color:#fff;font-size:17px;margin-bottom:5px}.delivery-failure-reason p{margin:0;color:#eadfd2;line-height:1.58}
.delivery-failure-advice{display:grid;grid-template-columns:82px 1fr;gap:10px;margin-top:10px;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:rgba(255,255,255,.035)}.delivery-failure-advice span{color:#f2c96f;font-weight:800}.delivery-failure-advice p{margin:0;line-height:1.55;color:#ddd0c0}
.delivery-failure-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}.delivery-failure-time{color:#aa9d8e;font-size:13px}
.delivery-technical-details{margin-top:12px;border-top:1px solid rgba(255,255,255,.09);padding-top:10px}.delivery-technical-details summary{cursor:pointer;color:#d9cbbb;font-weight:700}.delivery-tech-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:8px;margin-top:11px}.delivery-tech-grid span{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:7px;background:rgba(0,0,0,.16);color:#dfd3c6}.delivery-tech-grid b{font-size:12px;color:#a99b8d}.delivery-raw-report{margin-top:10px}.delivery-raw-report>b{display:block;margin-bottom:6px;color:#cdbda9}.delivery-raw-report pre{max-height:280px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:#120f0d;padding:10px;border-radius:7px;color:#e9ddd1}
.delivery-item-reason{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:6px;background:#321919;color:#ffb8b8;line-height:1.35}.delivery-item-reason strong{color:#ff8080}.failure-action-cell{min-width:220px;line-height:1.5;color:#d7cab9}
.manual-failure-form{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.manual-failure-form input{min-width:280px;flex:1 1 300px}
@media(max-width:720px){.failure-cell{min-width:240px}.manual-failure-form input{min-width:210px}.delivery-failure-panel{padding:13px}.delivery-failure-header{align-items:center}.delivery-failure-advice{grid-template-columns:1fr}.delivery-tech-grid{grid-template-columns:1fr}.delivery-failure-footer{align-items:flex-start;flex-direction:column}}


/* v192：展开内容使用 body 顶层浮层，彻底避免被商品网格、分类区块和 contain 裁切。 */
.front-store .variant-panel.is-global-expanded-panel,
.front-store .spu-detail-panel.spu-floating-panel.is-global-expanded-panel{
  position:absolute !important;
  z-index:2147483000 !important;
  contain:none !important;
  box-sizing:border-box !important;
  margin:0 !important;
  min-width:0 !important;
  overflow:auto !important;
  overscroll-behavior:contain;
  isolation:isolate;
}
.front-store .variant-panel.is-global-expanded-panel.is-floating-open,
.front-store .spu-detail-panel.spu-floating-panel.is-global-expanded-panel.is-floating-open{
  display:block !important;
}
.front-store .variant-panel.is-global-expanded-panel.opens-above::before,
.front-store .spu-detail-panel.spu-floating-panel.is-global-expanded-panel.opens-above::before{
  top:auto !important;
  bottom:-8px !important;
  transform:rotate(225deg) !important;
}
@media(max-width:720px){
  .front-store .variant-panel.is-global-expanded-panel,
  .front-store .spu-detail-panel.spu-floating-panel.is-global-expanded-panel{
    min-width:0 !important;
  }
}

/* =====================================================================
   v195 正式版：全屏商城框架 + 原商品卡片 + 材料查询 + 展示商品
   ===================================================================== */
body.front-store,
body.front-site{
  background:#f3f6fb !important;
  color:#172033 !important;
  min-height:100vh;
}
.modern-shop-header{
  position:sticky;
  top:0;
  z-index:5000;
  background:linear-gradient(110deg,#071b3a 0%,#0b2a55 52%,#071b3a 100%) !important;
  border:0 !important;
  box-shadow:0 8px 28px rgba(4,20,45,.22) !important;
}
.front-nav-shell{
  width:100%;
  min-height:82px;
  padding:10px clamp(16px,2.2vw,42px);
  display:grid;
  grid-template-columns:auto minmax(420px,1fr) minmax(220px,320px) auto;
  align-items:center;
  gap:22px;
}
.modern-brand{display:flex;flex-direction:column;line-height:1;color:#fff!important;min-width:150px}
.modern-brand-main{font-size:29px;font-weight:900;letter-spacing:-1px;white-space:nowrap}
.modern-brand-main b{display:inline-flex;font-size:13px;letter-spacing:0;background:#ff3f67;border-radius:5px;padding:6px 7px;vertical-align:5px;margin-left:3px}
.modern-brand small{font-size:12px;color:#bed3ef;margin-top:7px;letter-spacing:.08em}
.modern-top-nav{display:flex;align-items:center;gap:clamp(14px,2vw,32px);min-width:0}
.modern-top-nav a{color:#eef6ff!important;font-size:15px;font-weight:700;white-space:nowrap;position:relative;padding:28px 0 24px}
.modern-top-nav a:hover{color:#ffb12d!important}
.modern-top-nav a:first-child::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px;background:#ff9f1a}
.modern-top-search{height:42px;display:grid;grid-template-columns:1fr 42px;border-radius:22px;overflow:hidden;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.08)}
.modern-top-search input{margin:0!important;height:40px!important;background:transparent!important;border:0!important;color:#fff!important;padding:0 5px 0 18px!important;border-radius:0!important;outline:none}
.modern-top-search input::placeholder{color:#abc0dc}
.modern-top-search button{border:0;background:transparent;color:#dbeafe;font-size:23px;cursor:pointer}
.modern-top-cart{height:42px;display:flex;align-items:center;gap:7px;border-radius:22px;padding:0 15px;color:#fff!important;background:rgba(255,255,255,.07);font-weight:800;white-space:nowrap}
.modern-top-cart strong{display:inline-flex;min-width:20px;height:20px;padding:0 5px;align-items:center;justify-content:center;border-radius:10px;background:#ff3f67;color:#fff;font-size:12px}
.front-main{width:100%;min-height:calc(100vh - 130px)}
.front-main.page-main{max-width:1220px;margin:0 auto;padding:30px 22px 50px}
.full-store-main{max-width:none!important;margin:0!important;padding:18px clamp(12px,2vw,34px) 40px!important}
.modern-footer{border:0!important;background:#edf2f8!important;color:#718096!important;text-align:center;padding:20px!important}
.modern-footer>div{max-width:1400px;margin:auto}
.store-app-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;width:100%;align-items:start}
.store-sidebar{position:sticky;top:100px;background:#fff;border:1px solid #e6ebf3;border-radius:14px;padding:12px;box-shadow:0 10px 30px rgba(15,30,55,.07);min-height:320px}
.store-sidebar-title{font-size:18px;font-weight:900;padding:10px 11px 15px;border-bottom:1px solid #eef1f6;margin-bottom:6px}
.store-side-link{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:5px;min-height:50px;padding:0 10px;border-radius:10px;color:#1f2937!important;font-weight:700;margin:3px 0}
.store-side-link:hover{background:#f3efff;color:#7246e8!important}
.store-side-link.is-active{background:linear-gradient(90deg,#eee7ff,#f5f0ff);color:#7141e5!important}
.store-side-link em{font-style:normal;font-size:11px;color:#7a4bea;background:#eee7ff;padding:2px 6px;border-radius:12px}
.store-side-note{margin:15px 5px 4px;padding:11px;border-radius:9px;background:#f7f4ff;color:#756692;font-size:12px;line-height:1.65}
.store-workspace{background:#fff;border:1px solid #e6ebf3;border-radius:14px;box-shadow:0 10px 32px rgba(15,30,55,.07);padding:18px;min-width:0;min-height:650px}
.store-page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:0 4px}
.store-page-head h1{margin:0 0 5px;font-size:22px;color:#182235}
.store-page-head p{margin:0;color:#7a8699;font-size:13px}
.store-head-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.store-head-badges span{border-radius:16px;padding:7px 11px;color:#7952e9;background:#f4efff;border:1px solid #e8ddff;font-size:12px;font-weight:800}
.production-cart-panel{border:2px solid #6e5524!important;border-radius:5px!important;background:#26231c!important;margin-bottom:12px!important;box-shadow:inset 0 0 0 1px #aa8536!important}
.production-cart-panel .cart-title-row>div{display:flex;align-items:baseline;gap:11px}.production-cart-panel .cart-title-row strong{color:#ffdf77}.production-cart-panel .cart-title-row small{color:#d8ca9a}
.production-checkout-form{display:grid!important;grid-template-columns:minmax(200px,1.15fr) minmax(200px,1.15fr) minmax(130px,.65fr) minmax(180px,1fr) auto!important;gap:9px!important;align-items:end!important}
.checkout-field{margin:0!important;min-width:0;color:#f5df9d;font-size:12px;font-weight:800}
.checkout-field>span{display:block;margin:0 0 4px 2px}.checkout-field>span b{color:#ff5e70}
.checkout-field input,.checkout-field select{height:34px!important;margin:0!important;width:100%!important;border:1px solid #866c31!important;border-radius:5px!important;background:#161612!important;color:#fff!important;padding:5px 10px!important}
.checkout-field .cart-memory-combobox{width:100%}
.checkout-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-height:34px}.checkout-actions .game-order{height:34px!important;padding:0 11px!important}.checkout-actions .cart-submit{background:#c78411!important;border-color:#f1bd4d!important;color:#fff!important}.checkout-actions .secondary-action{background:#443b28!important}
.shop-catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0 12px;padding:0 2px}
.catalog-quick-tabs{display:flex;gap:7px;flex-wrap:wrap}.catalog-quick-tabs a{padding:7px 13px;border:1px solid #e2e7ef;border-radius:18px;color:#556274!important;background:#fff;font-size:13px}.catalog-quick-tabs a.is-active{color:#e98413!important;border-color:#ffbb68;background:#fff8ef}
.catalog-search-form{display:flex;gap:6px;min-width:min(360px,100%)}.catalog-search-form input{height:34px;margin:0;border-radius:17px;padding:0 14px}.catalog-search-form .game-order{height:34px;min-width:80px}
.catalog-products-anchor{position:relative;top:-100px}
.front-store .shop-category-section{background:#fbfcfe!important;border:1px solid #edf0f5!important;border-radius:10px!important;padding:10px!important;margin:0 0 13px!important;color:#273246!important;overflow:visible!important}
.front-store .category-title-row{color:#182235!important}.front-store .category-title-row h2,.front-store .category-title-row h3{color:#182235!important}.front-store .category-title-row span{color:#8a94a5!important}
.front-store .game-shop-grid{grid-template-columns:repeat(auto-fill,minmax(228px,1fr))!important;gap:9px 14px!important;width:100%!important}
.front-store .game-item-card{max-width:none!important}
.catalog-pager{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;color:#657287;margin:18px 0 4px}

/* 材料计算中心 */
.material-workspace{min-height:720px}.material-tool-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:10px;background:#f6f8fc;border:1px solid #e7ebf2;border-radius:11px;margin-bottom:14px}.material-tool-tabs button{border:1px solid #dde3ed;background:#fff;color:#4f5d72;border-radius:8px;padding:9px 16px;font-weight:800;cursor:pointer}.material-tool-tabs button.is-active{background:#7046e8;color:#fff;border-color:#7046e8;box-shadow:0 6px 16px rgba(112,70,232,.22)}
.material-tool-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:16px;align-items:start}.material-tool-panel{display:none;background:#fff;border:1px solid #e7ebf2;border-radius:12px;padding:20px;min-height:310px}.material-tool-panel.is-active{display:block}.material-tool-panel h2{margin:0 0 7px;color:#1d293b}.material-tool-panel>p{margin:0 0 18px;color:#7a8699}.tool-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tool-form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.tool-form-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.tool-form-grid.single{grid-template-columns:minmax(220px,420px)}.tool-form-grid label{margin:0;color:#4a576b;font-size:13px}.tool-form-grid input,.tool-form-grid select{margin-top:6px;background:#fff;color:#1f2937;border:1px solid #dfe5ee}.material-calc-btn{margin-top:18px;border:0;border-radius:8px;background:linear-gradient(90deg,#6f47e7,#885df0);color:#fff;padding:11px 22px;font-weight:900;cursor:pointer}.material-result-card{background:linear-gradient(160deg,#151a27,#222a3d);color:#fff;border-radius:12px;overflow:hidden;box-shadow:0 12px 28px rgba(23,32,52,.18);position:sticky;top:102px}.material-result-title{padding:14px 17px;border-bottom:1px solid rgba(255,255,255,.1);color:#cbbdff;font-weight:900}.material-result-empty,.material-result-error{padding:22px;color:#aeb9cb;line-height:1.7}.material-result-error{color:#ffb5b5}.material-result-content{padding:17px}.material-result-content h3{margin:0 0 12px;color:#f3eaff}.material-result-content dl{margin:0}.material-result-content dl div{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px dashed rgba(255,255,255,.12)}.material-result-content dt{color:#aeb9cb}.material-result-content dd{margin:0;text-align:right;font-weight:800;color:#fff}.material-result-note{margin:14px 0 0;padding:10px;border-radius:8px;background:rgba(124,88,226,.16);color:#d9cff8;font-size:12px;line-height:1.6}

/* 展示商品 */
.display-category-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.display-category-tabs a{padding:8px 14px;border:1px solid #e1e6ef;border-radius:18px;color:#5b6779!important}.display-category-tabs a.is-active{background:#7047e8;color:#fff!important;border-color:#7047e8}.display-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:16px}.display-product-card{background:#fff;border:1px solid #e4e9f1;border-radius:13px;overflow:hidden;box-shadow:0 7px 20px rgba(20,35,60,.07)}.display-product-image{height:170px;position:relative;background:linear-gradient(145deg,#11284c,#0d1e38);display:flex;align-items:center;justify-content:center}.display-product-image img{width:100%;height:100%;object-fit:cover}.display-product-image>span{font-size:58px;color:#9d78ff}.display-product-image>b{position:absolute;right:0;top:0;background:#7849ed;color:#fff;padding:7px 10px;border-radius:0 0 0 9px;font-size:12px}.display-product-body{padding:16px}.display-card-category{color:#7a54e9;font-size:12px;font-weight:900}.display-product-body h2{margin:5px 0 8px;font-size:20px;color:#1d293b}.display-product-body>p{min-height:48px;color:#697588;line-height:1.6;margin:0 0 13px;white-space:pre-line}.display-info-row{display:flex;justify-content:space-between;gap:12px;border-top:1px dashed #e3e7ee;padding:11px 0;color:#657184}.display-info-row strong{color:#313d50;text-align:right}.display-info-row.price-row strong{color:#7a46e8;font-size:17px}.display-contact-btn{width:100%;height:40px;border:1px solid #8c67ec;border-radius:8px;background:#fff;color:#7047e8;font-weight:900;cursor:pointer}.display-contact-btn:hover{background:#f4efff}.display-warning{margin-top:18px;padding:15px 18px;border:1px solid #f0d493;background:#fff9e9;border-radius:10px;color:#6e5a2b;line-height:1.7}.display-empty-card{grid-column:1/-1;padding:55px;text-align:center;border:1px dashed #d7deea;border-radius:12px;color:#7f8a9c;background:#fbfcfe}

/* 普通前台页面 */
.modern-page-card{background:#fff;border:1px solid #e4e9f1;border-radius:14px;padding:26px;box-shadow:0 10px 30px rgba(15,30,55,.07)}.modern-page-card h1{margin-top:0}.notice-list,.help-steps{display:grid;gap:14px}.notice-list article{background:#f7f9fc;border:1px solid #e7ebf2;border-radius:10px;padding:16px}.notice-list h2{margin:0 0 7px;font-size:17px}.notice-list p{margin:0;color:#657184;line-height:1.7}.help-steps article{display:grid;grid-template-columns:42px 1fr;gap:13px;align-items:start;padding:15px;border:1px solid #e7ebf2;border-radius:10px}.help-steps article>b{width:36px;height:36px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:#7047e8;color:#fff}.help-steps h2{margin:0 0 5px;font-size:16px}.help-steps p{margin:0;color:#697588}
.display-admin-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:end}.display-admin-form label{margin:0}.display-admin-form .wide{grid-column:1/-1}.display-admin-form .btn{height:42px}

@media(max-width:1380px){.front-nav-shell{grid-template-columns:auto 1fr minmax(190px,260px) auto}.modern-top-nav{gap:14px}.modern-top-nav a{font-size:14px}.store-app-shell{grid-template-columns:195px minmax(0,1fr)}}
@media(max-width:1080px){.front-nav-shell{grid-template-columns:auto 1fr auto}.modern-top-search{display:none}.modern-top-nav{justify-content:center}.store-app-shell{grid-template-columns:1fr}.store-sidebar{position:static;display:flex;align-items:center;gap:5px;min-height:0;overflow:auto}.store-sidebar-title,.store-side-note{display:none}.store-side-link{min-width:max-content}.production-checkout-form{grid-template-columns:1fr 1fr!important}.checkout-actions{grid-column:1/-1}.material-tool-layout{grid-template-columns:1fr}.material-result-card{position:static}.tool-form-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.front-nav-shell{grid-template-columns:1fr auto;min-height:70px}.modern-top-nav{grid-column:1/-1;order:3;overflow:auto;justify-content:flex-start}.modern-top-nav a{padding:8px 0 12px}.modern-top-nav a::after{display:none}.modern-top-cart{height:36px}.modern-brand-main{font-size:24px}.full-store-main{padding:10px!important}.store-workspace{padding:10px}.store-page-head{align-items:flex-start;flex-direction:column}.production-checkout-form{grid-template-columns:1fr!important}.checkout-actions{grid-column:auto}.shop-catalog-toolbar{align-items:stretch;flex-direction:column}.catalog-search-form{min-width:0;width:100%}.tool-form-grid,.tool-form-grid-3,.tool-form-grid-4{grid-template-columns:1fr}.display-product-grid{grid-template-columns:1fr}.display-admin-form{grid-template-columns:1fr}.front-store .game-shop-grid{grid-template-columns:1fr!important}}


/* v196：商品分类按需切换，仅渲染当前分类 */
.catalog-tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;margin-left:6px;padding:0 5px;border-radius:10px;background:#f2f4f8;color:#7b8492;font-size:11px;font-weight:700}
.catalog-quick-tabs a.is-active .catalog-tab-count{background:#ffe9cd;color:#d87508}
.catalog-empty{margin-top:14px}


/* v197：我的订单联系方式与查询码记忆 */
.buyer-memory-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 12px;padding:10px 12px;border:1px solid #e5e9f1;border-radius:9px;background:#f8f9fc}
.buyer-memory-check{display:inline-flex!important;align-items:center;gap:7px;margin:0!important;font-weight:700;color:#374151}
.buyer-memory-check input{width:16px!important;height:16px!important;margin:0!important;accent-color:#7047e8}
.buyer-memory-status{font-size:12px;color:#8a94a5}.buyer-memory-status.has-memory{color:#5f3fd3;font-weight:800}
.buyer-memory-clear{margin-left:auto}.buyer-memory-note{margin-top:9px!important;line-height:1.6}
@media(max-width:760px){.buyer-memory-tools{align-items:flex-start;flex-direction:column}.buyer-memory-clear{margin-left:0}}


/* v199：商品详情游戏物品ID可复制；银子/淘宝金专用多规格。 */
.global-item-desc-tooltip{pointer-events:auto!important;}
.global-item-desc-tooltip .desc-item-id-copy{
  display:flex;align-items:center;gap:6px;width:100%;margin:0 0 7px;padding:6px 8px;
  border:1px solid rgba(96,165,250,.8);border-radius:5px;background:rgba(30,64,175,.26);
  color:#dbeafe;text-align:left;cursor:pointer;font:inherit;
}
.global-item-desc-tooltip .desc-item-id-copy strong{color:#7dd3fc;word-break:break-all;}
.global-item-desc-tooltip .desc-item-id-copy em{margin-left:auto;color:#fbbf24;font-style:normal;font-size:11px;white-space:nowrap;}
.global-item-desc-tooltip .desc-item-id-copy:hover{background:rgba(30,64,175,.48);border-color:#93c5fd;}
.global-item-desc-tooltip .desc-item-id-copy.copied{border-color:#34d399;background:rgba(6,95,70,.38);}
.game-item-id-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.copy-item-id-btn{border:1px solid #60a5fa;border-radius:5px;background:#102a52;color:#bfdbfe;padding:5px 9px;cursor:pointer;font-weight:800;}
.copy-item-id-btn:hover{background:#173a70;color:#fff;}
.admin-form-grid textarea[name$="_specs_text"]{min-height:112px;font-family:Consolas,"Microsoft YaHei",sans-serif;line-height:1.55;}

/* v201：买家端隐藏后台自动生成的“规格2/规格3/规格4...”文字。 */
.auto-spec-hidden{
  display:none !important;
}

/* v202 多货主/供货商中心 */
.vendor-header .brand::after{content:" v202";font-size:12px;opacity:.65;margin-left:4px}.vendor-account-table input.token-input{min-width:260px;font-size:12px}.checkline{font-size:12px;color:#475569}.form-grid .wide{grid-column:1/-1}.owner-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.owner-summary-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:12px}.owner-summary-card span{display:block;color:#64748b;font-size:13px}.owner-summary-card strong{font-size:24px}.table-wrap table small{color:#64748b}


/* V204 表头可见性与字段标注修复：后台/供货商中心所有表格表头统一高亮，避免白底白字看不见 */
.table-wrap table thead th,
table thead th {
  background:#3b3121 !important;
  color:#ffe070 !important;
  border-bottom:2px solid #d9b958 !important;
  font-weight:900 !important;
  white-space:nowrap !important;
  text-shadow:0 1px 0 #000;
}
.table-wrap table thead th small,
table thead th small { color:#fff1a8 !important; }
.owner-table thead th,
.product-admin-table thead th,
.package-admin-table thead th,
.simple-table thead th,
.owner-sales-table thead th {
  background:#3b3121 !important;
  color:#ffe070 !important;
}
.owner-table input,
.owner-table select,
.product-admin-table input,
.product-admin-table select,
.product-admin-table textarea,
.package-admin-table input,
.package-admin-table select,
.package-admin-table textarea,
.simple-table input,
.simple-table select,
.simple-table textarea {
  min-height:34px;
}
.owner-table input::placeholder,
.product-admin-table input::placeholder,
.package-admin-table input::placeholder,
.simple-table input::placeholder,
.simple-table textarea::placeholder {
  color:#64748b;
  opacity:1;
}
.field-hint{display:block;font-size:12px;color:#e6c879;margin-top:4px;line-height:1.35;}
.table-field-label{display:none;font-size:12px;color:#ffe070;font-weight:900;margin-bottom:4px;}
@media(max-width:720px){
  .table-field-label{display:block;}
}


/* v206：淘宝金按供货商独立展开。前台只展示商家名称、价格、库存和购买数量，不显示账号在线状态。 */
.gold-supplier-row{
  grid-template-columns:minmax(140px,1.35fr) 68px 82px minmax(145px,1.25fr) auto auto !important;
  align-items:center !important;
}
.gold-supplier-row .lot-supplier{
  color:#ffe6a1 !important;
  font-weight:900 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
/* 旧版本说明是“自动拆库存”；淘宝金新版禁止跨供货商拆单。 */
.variant-panel[data-name*="淘宝"] .variant-panel-title::after,
.variant-panel[data-name*="金子"] .variant-panel-title::after{
  content:"" !important;
}
@media(max-width:720px){
  .gold-supplier-row{
    grid-template-columns:minmax(118px,1fr) 62px 76px !important;
    gap:5px 7px !important;
  }
  .gold-supplier-row .lot-pack-count{
    grid-column:1 / 4 !important;
    text-align:left !important;
  }
  .gold-supplier-row .variant-qty-label{
    grid-column:1 / 3 !important;
    justify-content:flex-start !important;
  }
  .gold-supplier-row .game-order{
    grid-column:3 !important;
  }
}
