* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #f5f5f5; --panel: #ffffff; --panel2: #fafafa;
  --text: #333; --muted: #999999; --accent: #e83a30;
  --border: #ececec; --green: #2ba471; --red: #e83a30;
  --maxw: 1200px;
}
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

.admin-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 230px; background: var(--panel); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 0; position: sticky; top: 0; height: 100vh;
}
.brand { font-size: 22px; font-weight: 700; padding: 0 20px 18px; color: var(--accent); }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar nav a { padding: 11px 20px; color: var(--muted); border-left: 3px solid transparent; }
.sidebar nav a:hover { background: var(--panel2); color: var(--text); }
.sidebar nav a.active { background: var(--panel2); color: var(--accent); border-left-color: var(--accent); }
.side-foot { padding: 14px 16px; border-top: 1px solid var(--border); }
.side-user { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; outline: none; padding: 6px 8px; border-radius: 10px; }
.side-user:hover { background: var(--panel2); }
.side-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.side-user-info { min-width: 0; }
.side-user-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-type { font-size: 12px; color: var(--muted); }
.side-user-menu { position: absolute; bottom: calc(100% + 10px); left: 8px; right: 8px; width: calc(100% - 16px); background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 -6px 28px rgba(0,0,0,0.14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 60; overflow: hidden; }
.side-user:hover .side-user-menu, .side-user:focus-within .side-user-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.side-user-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.side-user-row b { color: var(--text); font-weight: 600; }
.side-user-link { display: block; padding: 10px 14px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); }
.side-user-link:hover { background: #fff6f4; color: var(--accent); }
.side-user-link.sm-logout { color: #d4380d; }
.side-user-link.sm-logout:hover { background: #fff1f0; }

.content { flex: 1; padding: 28px 36px; overflow-x: auto; }
.content.standalone { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
/* 商城前台：内容居中限宽（京东风 1200px 容器） */
.content.shop-content { max-width: var(--maxw); margin: 0 auto; padding: 22px 16px; }

h1 { font-size: 24px; margin-bottom: 18px; }
h2 { font-size: 18px; margin: 22px 0 12px; }
p.muted { color: var(--muted); margin-bottom: 18px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 26px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.card .label { color: var(--muted); font-size: 13px; }
.card .value { font-size: 28px; font-weight: 700; margin-top: 6px; }
.card .value.green { color: var(--green); }
.card .value.red { color: var(--red); }
.card .value.accent { color: var(--accent); }

table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: var(--panel2); color: var(--muted); font-weight: 600; }
tr:hover td { background: var(--panel2); }
td img.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge.green { background: rgba(62,207,142,.15); color: var(--green); }
.badge.red { background: rgba(255,92,92,.15); color: var(--red); }
.badge.amber { background: rgba(255,193,7,.15); color: #ffc107; }
.badge.gray { background: rgba(154,160,166,.15); color: var(--muted); }
.badge.blue { background: rgba(77,171,247,.15); color: #4dabf7; }

.btn { display: inline-block; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel2); color: var(--text); cursor: pointer; font-size: 14px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.actions { display: flex; gap: 8px; }

.form-box { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 24px; max-width: 640px; }
.form-box.wide { max-width: 1100px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 14px; font-family: inherit;
}
.form-row textarea { min-height: 90px; resize: vertical; }
.form-row .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.login-box { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 36px; width: 360px; }
.login-box h1 { text-align: center; }
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert.error { background: rgba(255,92,92,.12); color: var(--red); border: 1px solid rgba(255,92,92,.3); }
.alert.ok { background: rgba(62,207,142,.12); color: var(--green); border: 1px solid rgba(62,207,142,.3); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 50; }
.empty { text-align: center; color: var(--muted); padding: 40px; }

/* 招募名单：状态标签与操作按钮 */
.recruit-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; }
.status-pending  { background: #fff7e6; color: #ad6800; border: 1px solid #ffe1a8; }
.status-approved { background: #e8f7ee; color: #1a7f37; border: 1px solid #b6e8c8; }
.status-rejected { background: #fdecec; color: #cf1322; border: 1px solid #f7c2c2; }
.recruit-actions { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.recruit-act-form { display: inline; }
.recruit-actions button { border: 0; cursor: pointer; font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 6px; }
.btn-approve { background: var(--accent); color: #fff; }
.btn-approve:hover { filter: brightness(.94); }
.btn-reject  { background: #fff; color: #cf1322; border: 1px solid #f7c2c2 !important; }
.btn-reject:hover { background: #fdecec; }
.recruit-pending-hint { color: var(--muted); font-size: 12px; }

/* 首页下载 App 卡片（二维码） */
.sm-app-dl {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  box-sizing: border-box;
}
.sm-app-dl-head { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.sm-app-dl-qr {
  width: 132px; height: 132px;
  display: block; margin: 0 auto 8px;
  background: #fff; border-radius: 8px; padding: 6px;
  box-sizing: border-box; border: 1px solid var(--border);
}
.sm-app-dl-tip { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.sm-app-dl-btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 8px 18px; border-radius: 8px; text-decoration: none;
}
.sm-app-dl-btn:hover { filter: brightness(.94); }

.chart-bar { display: flex; align-items: flex-end; gap: 10px; height: 220px; padding: 10px; background: var(--panel); border-radius: 10px; border: 1px solid var(--border); }
.chart-bar .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.chart-bar .bar .fill { width: 60%; background: var(--accent); border-radius: 6px 6px 0 0; min-height: 4px; transition: height .3s; }
.chart-bar .bar .cap { font-size: 12px; color: var(--muted); }
.chart-bar .bar .val { font-size: 13px; font-weight: 600; }

/* ===== 商城前台 ===== */
.shop-head { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--border); padding-bottom:16px; }
.shop-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.shop-card { background:var(--panel); border:1px solid var(--border); border-radius:8px; overflow:hidden; transition:box-shadow .15s, border-color .15s; }
.shop-card:hover { border-color:var(--accent); box-shadow:0 2px 12px rgba(225,37,27,.12); }
.shop-img { height:180px; background:var(--panel2); display:flex; align-items:center; justify-content:center; }
.shop-img img { width:100%; height:100%; object-fit:cover; }
.shop-img .no-img { color:var(--muted); }
.shop-card-body { padding:14px 16px; }
.shop-cat { font-size:12px; color:var(--muted); }
.shop-name { font-weight:600; margin:4px 0; }
.shop-price { color:var(--accent); font-weight:700; font-size:18px; }
.shop-detail { display:grid; grid-template-columns:360px 1fr; gap:32px; max-width:960px; align-items:start; }

/* ===== 详情页分区（产品介绍 / 规格参数） ===== */
.pd-section { margin-top:22px; }
.pd-section h3 { font-size:16px; margin:0 0 10px; padding-left:10px; border-left:3px solid var(--accent); }
.pd-intro { background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:16px 18px; color:var(--text); line-height:1.8; white-space:pre-wrap; word-break:break-word; }
/* 详情页整宽区块（产品介绍 / 规格参数 / 产品图片），与顶部图片+信息区同宽 */
.pd-row { max-width:960px; }
/* 规格参数表格 */
.spec-table { width:100%; border-collapse:collapse; background:var(--panel); border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.spec-table th, .spec-table td { padding:11px 16px; text-align:left; font-size:14px; border-bottom:1px solid var(--border); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom:none; }
.spec-table th { width:38%; color:var(--muted); font-weight:600; background:var(--panel2); }
.spec-table td { color:var(--text); word-break:break-word; }
/* 产品图片平铺 */
.pd-gallery-bottom { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:12px; }
.pd-gallery-bottom img { width:100%; height:160px; object-fit:cover; border-radius:8px; border:1px solid var(--border); background:var(--panel2); }

/* ===== 首页可配置 Banner 轮播 ===== */
.hf-banner { position:relative; margin:0; border-radius:16px; overflow:hidden; box-shadow:0 6px 20px rgba(0,0,0,.06); }
.hf-slide { display:none; position:relative; aspect-ratio:21/7; }
.hf-slide.show { display:block; }
.hf-slide img { width:100%; height:100%; object-fit:cover; display:block; }
.hf-banner-bg { width:100%; height:100%; background:linear-gradient(135deg,#ff5a4d,#e83a30); }
.hf-banner-mask { position:absolute; left:0; right:0; bottom:0; padding:28px 26px 22px; background:linear-gradient(transparent, rgba(0,0,0,.55)); color:#fff; }
.hf-banner-title { font-size:22px; font-weight:800; text-shadow:0 1px 4px rgba(0,0,0,.4); }
.hf-banner-sub { font-size:14px; margin-top:6px; opacity:.92; }
.hf-dots { position:absolute; right:16px; bottom:14px; display:flex; gap:7px; }
.hf-dots i { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.55); cursor:pointer; }
.hf-dots i.on { background:#fff; width:20px; border-radius:4px; }
/* ===== 产品详情页图片走马灯 ===== */
.pd-gallery { display:flex; flex-direction:column; gap:10px; }
.pd-main { position:relative; background:var(--panel2); border-radius:12px; height:300px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.pd-main img { width:100%; height:100%; object-fit:cover; }
.pd-arrow { position:absolute; top:50%; transform:translateY(-50%); width:34px; height:34px; border:none; border-radius:50%; background:rgba(0,0,0,.45); color:#fff; font-size:22px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.pd-arrow:hover { background:rgba(0,0,0,.7); }
.pd-prev { left:10px; }
.pd-next { right:10px; }
.pd-counter { position:absolute; right:10px; bottom:10px; background:rgba(0,0,0,.55); color:#fff; border-radius:12px; padding:2px 10px; font-size:13px; }
.pd-thumbs { display:flex; gap:8px; flex-wrap:wrap; }
.pd-thumb { width:56px; height:56px; object-fit:cover; border-radius:8px; cursor:pointer; border:2px solid transparent; opacity:.7; }
.pd-thumb:hover { opacity:1; }
.pd-thumb.on { border-color:var(--accent); opacity:1; }
.cart-item { display:flex; align-items:center; gap:16px; background:var(--panel); border:1px solid var(--border); border-radius:10px; padding:14px; margin-bottom:12px; }
.cart-item img { width:64px; height:64px; object-radius:8px; object-fit:cover; border-radius:8px; }
.qty { display:flex; align-items:center; gap:8px; }
.qty input { width:64px; text-align:center; }
.qty button { width:30px; height:30px; }
.tag { display:inline-block; padding:3px 10px; background:var(--panel2); border-radius:20px; font-size:12px; color:var(--muted); margin-right:6px; }

/* 产品标题后「走进瑞马」入口 */
.pd-title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pd-vooma-link { display: inline-flex; align-items: center; gap: 4px; background: #b8322a; color: #fff; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: opacity .15s; }
.pd-vooma-link:hover { opacity: .88; }

/* ===== 商城顶部导航（什么值得买 smzdm 风格） ===== */
.shop-body { background: var(--bg); }
.sm-topbar { background: var(--panel); box-shadow: 0 1px 4px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 50; }
.sm-top-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 14px 16px; }
.sm-logo { font-size: 26px; font-weight: 800; color: var(--accent); white-space: nowrap; letter-spacing: -.5px; }
.sm-logo span { color: #ff7a3d; }
.sm-search { flex: 1; display: flex; max-width: 560px; height: 40px; border: 2px solid var(--accent); border-radius: 22px; overflow: hidden; background: #fff; }
.sm-search input { flex: 1; border: 0; outline: 0; padding: 0 18px; font-size: 14px; background: transparent; color: var(--text); }
.sm-search button { border: 0; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; padding: 0 26px; cursor: pointer; letter-spacing: 2px; }
.sm-top-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.sm-link { color: var(--muted); font-size: 14px; }
.sm-link:hover { color: var(--accent); }
.sm-btn { background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; padding: 8px 18px; border-radius: 20px; }
.sm-btn:hover { background: #c92f26; }

/* 用户头像 + 下拉菜单 */
.sm-user { position: relative; display: inline-flex; align-items: center; cursor: pointer; outline: none; }
.sm-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; user-select: none;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border);
}
.sm-user:hover .sm-avatar, .sm-user:focus .sm-avatar { box-shadow: 0 0 0 2px var(--accent); }
.sm-user-menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 240px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.14);
  padding: 0; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 50; overflow: hidden;
}
.sm-user:hover .sm-user-menu, .sm-user:focus-within .sm-user-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sm-user-head { padding: 16px 16px 12px; background: linear-gradient(135deg, var(--accent), #ff6b50); color: #fff; }
.sm-user-name { font-size: 16px; font-weight: 700; }
.sm-user-phone { font-size: 13px; opacity: .9; margin-top: 2px; }
.sm-user-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }
.sm-user-row b { color: var(--text); font-weight: 600; }
.sm-user-link { display: block; padding: 11px 16px; font-size: 14px; color: var(--text); border-top: 1px solid var(--border); }
.sm-user-link:hover { background: #fff6f4; color: var(--accent); }
.sm-user-link.sm-logout { color: #d4380d; border-top: 1px solid var(--border); margin-top: 4px; }
.sm-user-link.sm-logout:hover { background: #fff1f0; }
.sm-nav { background: var(--panel); border-top: 1px solid var(--border); }
.sm-nav-inner { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 4px; padding: 0 8px; }
.sm-nav-inner a { padding: 11px 18px; font-size: 15px; color: #555; font-weight: 500; }
.sm-nav-inner a:hover { color: var(--accent); }
.sm-nav-inner a.on { color: var(--accent); font-weight: 700; border-bottom: 2px solid var(--accent); }
.shop-content { max-width: var(--maxw); margin: 0 auto; }

/* ===== 商城底部备案栏 ===== */
.sm-foot { background: #23272e; color: #9aa0a8; margin-top: 28px; padding: 22px 16px 26px; }
.sm-foot-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; }
.sm-foot-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.sm-foot-company { color: #c6cbd2; font-weight: 600; letter-spacing: .5px; }
.sm-foot-links a { color: #9aa0a8; text-decoration: none; }
.sm-foot-links a:hover { color: #fff; }
.sm-foot-links i { font-style: normal; color: #4a505a; }
.sm-foot-badges { display: flex; gap: 14px; margin-top: 4px; }
.sm-foot-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 4px; padding: 6px 12px;
  text-decoration: none; transition: opacity .15s;
}
.sm-foot-badge:hover { opacity: .88; }
.sm-foot-badge-ic {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; border-radius: 4px;
  background: #2456a6; color: #fff; font-size: 12px; font-weight: 800; padding: 0 6px;
}
.sm-foot-badge-tx { color: #2456a6; font-size: 12px; font-weight: 700; line-height: 1.35; text-align: left; }

/* ===== 主视觉：左轮播 + 右热门榜（原风格） ===== */
.sm-main { display: grid; grid-template-columns: 1fr 300px; gap: 5px; margin: 1px 0; align-items: start; }
.sm-banner { position: relative; border-radius: 10px; overflow: hidden; background: var(--panel); min-height: 320px; }

/* ===== 主体：左商品流 + 右栏（招人广告） ===== */
.sm-body { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.sm-col-main { min-width: 0; }
.sm-col-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.sm-slide { display: none; position: absolute; inset: 0; }
.sm-slide.show { display: block; }
.sm-slide-bg { position: absolute; inset: 0; }
.sm-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sm-slide-mask { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 26px 24px; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0)); color: #fff; }
.sm-slide-tag { display: inline-block; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 4px; margin-bottom: 8px; }
.sm-slide-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.sm-slide-sub { font-size: 14px; opacity: .92; }
.sm-slide-price { display: inline-block; margin-top: 10px; font-size: 22px; font-weight: 800; color: #ffd24d; }
.sm-dots { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 6px; z-index: 2; }
.sm-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); }
.sm-dots i.on { background: var(--accent); width: 20px; border-radius: 5px; }
.sm-rank { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.sm-rank-head { font-size: 16px; font-weight: 700; color: var(--accent); padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.sm-rank-list { list-style: none; }
.sm-rank-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.sm-rank-list li:last-child { border-bottom: 0; }
.sm-rank-no { width: 20px; height: 20px; line-height: 20px; text-align: center; font-size: 13px; font-weight: 700; color: #fff; background: #c9c9c9; border-radius: 4px; flex-shrink: 0; }
.sm-rank-no.top { background: var(--accent); }
.sm-rank-name { flex: 1; font-size: 14px; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-rank-name:hover { color: var(--accent); }
.sm-rank-price { color: var(--accent); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.sm-rank-empty { color: var(--muted); font-size: 13px; padding: 12px 0; }

/* ===== 招人广告（首页右侧） ===== */
.sm-recruit { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 16px; align-self: start; box-sizing: border-box; }
.sm-recruit-head { font-size: 16px; font-weight: 700; color: var(--accent); padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.sm-recruit-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.sm-recruit-tab { flex: 1; padding: 8px 0; border: 1px solid var(--border); background: var(--panel2); border-radius: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.sm-recruit-tab.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.sm-recruit-form { display: flex; flex-direction: column; gap: 8px; }
.sm-recruit-form[hidden] { display: none !important; }
.sm-recruit-name, .sm-recruit-phone { padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.sm-recruit-name:focus, .sm-recruit-phone:focus { outline: none; border-color: var(--accent); }
.sm-recruit-submit { padding: 9px 0; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.sm-recruit-submit:disabled { opacity: .6; cursor: default; }
.sm-recruit-tip { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ===== 分类金刚区 ===== */
.sm-cats { display: flex; flex-wrap: wrap; gap: 8px 26px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; margin-bottom: 20px; }

/* 瑞马企业介绍页 */
.about-wrap { max-width: 960px; margin: 0 auto; }
.about-hero { background: linear-gradient(135deg, #0f2740 0%, #1e3a5f 60%, #b8322a 130%); border-radius: 16px; padding: 48px 32px; color: #fff; text-align: center; }
.about-hero-brand { font-size: 14px; letter-spacing: 4px; opacity: .85; margin-bottom: 10px; }
.about-hero h1 { font-size: 34px; margin: 0 0 10px; }
.about-hero p { color: rgba(255,255,255,.85); font-size: 15px; margin: 0; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.about-stat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px 8px; text-align: center; }
.about-stat-num { font-size: 22px; font-weight: 700; color: #b8322a; }
.about-stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.about-section { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.about-section h2 { font-size: 18px; margin: 0 0 12px; }
.about-section p { color: var(--muted); line-height: 1.9; font-size: 14px; margin: 0 0 10px; }
.about-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-figure { margin: 0; }
.about-figure img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; display: block; }
.about-figure figcaption { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.about-figure strong { font-size: 14px; }
.about-figure span { font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .about-stats { grid-template-columns: repeat(2, 1fr); } .about-gallery { grid-template-columns: 1fr; } }
.sm-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 72px; color: #555; font-size: 13px; }
.sm-cat:hover { color: var(--accent); }
.sm-cat-ic { width: 52px; height: 52px; border-radius: 50%; background: #fff4f2; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: all .15s; }
.sm-cat:hover .sm-cat-ic { background: var(--accent); box-shadow: 0 4px 12px rgba(232,58,48,.25); }
.sm-cat.on .sm-cat-ic { background: var(--accent); color: #fff; }
.sm-cat.on { color: var(--accent); font-weight: 700; }

/* ===== 好价商品流 ===== */
.sm-feed-head { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 14px; }
.sm-feed-title { font-size: 20px; font-weight: 800; color: var(--text); position: relative; padding-left: 12px; }
.sm-feed-title::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; background: var(--accent); border-radius: 2px; }
.sm-feed-sub { color: var(--muted); font-size: 13px; }
.sm-feed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sm-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow .15s, transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.sm-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.sm-card-badge { position: absolute; left: 0; top: 0; z-index: 2; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-bottom-right-radius: 8px; }
.sm-card-img { position: relative; aspect-ratio: 1/1; background: linear-gradient(180deg, #f3f4f6 0%, #ffffff 92%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sm-card-hot { position: absolute; top: 8px; left: 8px; background: #ff4d4f; color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sm-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px 26px; box-sizing: border-box; }
.sm-card-img .no-img { color: var(--muted); }
.sm-card-body { padding: 14px 16px 16px; }
.sm-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sm-card-name { font-size: 15px; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-card-price { color: var(--accent); font-size: 15px; font-weight: 800; flex-shrink: 0; }
.sm-card-price .from { font-size: 12px; font-style: normal; color: var(--muted); font-weight: 600; margin-left: 2px; }
.sm-card-sub { margin-top: 5px; font-size: 12px; color: #8a8f99; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--muted); }
.sm-zhi { color: var(--accent); font-weight: 700; background: #fff4f2; padding: 2px 8px; border-radius: 10px; }
.sm-cmt { color: #888; }
.sm-search-head { font-size: 16px; color: #444; margin: 18px 0 14px; }
.sm-search-head b { color: var(--accent); }

/* ===== 保修服务页 ===== */
.page-title { font-size: 22px; font-weight: 800; margin: 18px 0 16px; }
.page-sub { font-size: 17px; font-weight: 700; margin: 22px 0 14px; }
.rp-form { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; }
.rp-form h2 { font-size: 16px; margin-bottom: 14px; }
.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.rp-grid .form-row { display: flex; flex-direction: column; gap: 6px; }
.rp-grid .form-row.full { grid-column: 1 / -1; }
.rp-grid label { font-size: 13px; color: #666; }
.rp-grid .ck { flex-direction: row; align-items: center; gap: 6px; }
.rp-grid input, .rp-grid select, .rp-grid textarea { border: 1px solid var(--border); border-radius: 6px; padding: 9px 11px; font-size: 14px; background: #fff; color: var(--text); outline: none; }
.rp-grid input:focus, .rp-grid select:focus, .rp-grid textarea:focus { border-color: var(--accent); }
.rp-grid textarea { min-height: 76px; resize: vertical; }
.rp-list { display: flex; flex-direction: column; gap: 14px; }
.rp-card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.rp-card-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #fafafa; }
.rp-no { font-weight: 700; color: #333; }
.rp-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.rp-prod { display: flex; align-items: center; gap: 12px; }
.rp-prod img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.rp-prod-no { width: 56px; height: 56px; border-radius: 8px; background: var(--panel2); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.rp-prod-name { font-weight: 600; color: #333; }
.rp-brand { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rp-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 13px; color: #555; }
.rp-meta span { color: var(--muted); }
.rp-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-imgs a { width: 64px; height: 64px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.rp-imgs img { width: 100%; height: 100%; object-fit: cover; }
.rp-card-foot { padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; }
.rp-upload-tip { font-size: 12px; color: var(--muted); }
.rp-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.rp-thumb { position: relative; width: 84px; height: 84px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #000; }
.rp-thumb img, .rp-thumb video { width: 100%; height: 100%; object-fit: cover; }
.rp-thumb-x { position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; line-height: 18px; text-align: center; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; cursor: pointer; font-size: 13px; }
/* 商品编辑页图片缩略图 + 删除按钮 */
.img-thumb { position: relative; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #000; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-x, .img-x-new { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; line-height: 20px; text-align: center; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; cursor: pointer; font-size: 15px; transition: background .15s; }
.img-x:hover, .img-x-new:hover { background: rgba(220,38,38,.85); }
/* 产品图 OSS 上传进度条 */
.oss-progress { margin-top: 8px; max-width: 360px; }
.oss-bar { height: 8px; background: var(--panel2); border-radius: 6px; overflow: hidden; }
.oss-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #38bdf8, #0ea5e9); transition: width .15s ease; }
.oss-status { margin-top: 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px){ .rp-grid { grid-template-columns: 1fr; } .rp-meta { grid-template-columns: 1fr; } }
@media (max-width: 1024px){ .sm-feed { grid-template-columns: repeat(3, 1fr); } .sm-main { grid-template-columns: 1fr 260px; } .sm-body { grid-template-columns: 1fr 260px; } }
@media (max-width: 760px){ .sm-feed { grid-template-columns: repeat(2, 1fr); } .sm-main { grid-template-columns: 1fr; } .sm-body { grid-template-columns: 1fr; } .sm-col-side { position: static; } }
/* ===== 产品详情 SKU 选择器 ===== */
.sku-box { margin: 14px 0 6px; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--panel); }
.sku-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.sku-dim { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sku-dim-name { width: 56px; color: var(--muted); font-size: 13px; flex-shrink: 0; }
.sku-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sku-opt {
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--panel2); color: var(--text); cursor: pointer; font-size: 14px;
}
.sku-opt:hover { border-color: var(--accent); }
.sku-opt.on { border-color: var(--accent); background: #fff4f2; color: var(--accent); font-weight: 700; }
.sku-opt.disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; border-style: dashed; }
.sku-stock { font-size: 13px; margin-top: 2px; }
.sku-stock.in { color: var(--green); }
.sku-stock.out { color: var(--red); }

/* ===== 后台 SKU 编辑器 ===== */
.sku-editor { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--panel2); }
.sku-editor-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sku-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1.6fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.sku-row-head { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.sku-row-head span { text-align: center; }
.sku-f { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; background: #fff; color: var(--text); font-family: inherit; }
.sku-row .btn.sm { padding: 6px 10px; }
.ck-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ck { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); }
.ck input { width: auto; }
.sku-note { padding: 6px 10px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; }

/* 产品图完整展示（contain 不裁剪）：详情主图 / 缩略图 / 图集 / 配套服务卡 */
.pd-main img { object-fit: contain; background: linear-gradient(180deg, #f3f4f6 0%, #ffffff 92%); }
.pd-thumb { object-fit: contain; background: linear-gradient(180deg, #f3f4f6 0%, #ffffff 92%); }
.pd-gallery-bottom img { height: 220px; object-fit: contain; padding: 12px 20px; box-sizing: border-box; background: linear-gradient(180deg, #f3f4f6 0%, #ffffff 92%); }
.shop-img img { object-fit: contain; padding: 12px 18px; box-sizing: border-box; }

/* 产品详情 / 首页 Banner 响应式 */
@media (max-width: 760px){
  .shop-detail { grid-template-columns: 1fr; gap:20px; }
  .pd-main { height:240px; }
  .hf-banner { border-radius:12px; margin-bottom:5px; }
  .hf-slide { aspect-ratio:2/1; }
  .hf-banner-title { font-size:17px; }
  .hf-banner-mask { padding:18px 16px 14px; }
  .spec-table th { width:42%; }
}

/* ===== 饼图 ===== */
.donut-wrap { display:flex; align-items:center; gap:24px; background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:20px; }
.donut { width:150px; height:150px; border-radius:50%; position:relative; flex-shrink:0; }
.donut-hole { position:absolute; inset:32px; background:var(--panel); border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.donut-total { font-size:26px; font-weight:700; }
.donut-sub { font-size:12px; color:var(--muted); }
.legend { list-style:none; flex:1; display:flex; flex-direction:column; gap:8px; }
.legend li { display:flex; align-items:center; gap:10px; font-size:14px; }
.legend .dot { width:12px; height:12px; border-radius:3px; flex-shrink:0; }
.legend-label { flex:1; }
.legend-count { font-weight:600; }
.legend-pct { color:var(--muted); width:44px; text-align:right; }
@media (max-width:560px){ .donut-wrap{ flex-direction:column; } }

/* ===== 下载落地页 /download ===== */
.dl-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dl-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 28px; max-width: 380px; width: 100%;
  text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.dl-logo { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.dl-title { font-size: 20px; margin: 6px 0 10px; }
.dl-sub { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.dl-qr-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dl-qr {
  width: 220px; height: 220px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; padding: 10px; box-sizing: border-box;
}
.dl-btn {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 700; padding: 12px 28px; border-radius: 10px; text-decoration: none;
}
.dl-btn:hover { filter: brightness(.94); }
.dl-empty { color: var(--muted); padding: 20px 0; }
.dl-tip { font-size: 12px; color: var(--muted); margin-top: 18px; line-height: 1.6; }

