﻿/* ============================================================
   胖丁数码二手网 · 样式
   视觉基调：冷灰蓝 + 轻科技感（细网格 / 玻璃质感 / 克制的高光）
   移动优先：手机底部 Tab 导航 + 卡片列表；桌面（≥900px）侧边栏 + 表格
   ============================================================ */
:root {
  /* 底色：冷调深灰蓝，比纯黑柔和，比纯灰有层次 */
  --bg: #f4f6f9;
  --bg-deep: #eef1f6;
  --card: #ffffff;
  --text: #14181f;
  --muted: #8b93a1;
  --line: #e4e8ef;
  --line-soft: #eef1f6;
  --primary: #1b2430;
  --primary-soft: #eaeef4;
  --brand: #2f6bff;
  --brand-soft: #e8f0ff;
  --green: #0aa06e;
  --orange: #f08a24;
  --red: #e5484d;
  --purple: #7a5af8;
  --radius: 14px;
  /* 双层阴影：近处一层浅、远处一层柔，营造悬浮感 */
  --shadow: 0 1px 2px rgba(20, 30, 50, .05), 0 8px 24px rgba(20, 30, 50, .05);
  --shadow-lg: 0 2px 6px rgba(20, 30, 50, .06), 0 16px 40px rgba(20, 30, 50, .08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* 科技感点缀色 */
  --glow: rgba(47, 107, 255, .10);
  --grid-line: rgba(27, 36, 48, .045);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* 全站字体：<i>/<em> 在本站只作字段名和图标，不作强调，一律正体，杜绝浏览器默认斜体 */
em, i, cite, address, var, dfn { font-style: normal; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text); font-size: 15px; line-height: 1.6;
  font-synthesis: none; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  /* 背景：极淡的网格 + 顶部一抹冷调光晕，整体不花哨 */
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(900px 420px at 50% -8%, #e8eefb 0%, rgba(232, 238, 251, 0) 70%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
  background-attachment: fixed;
}
h1, h2, h3, h4 { margin: 0; font-weight: 650; }
a { color: var(--brand); text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row-flex { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wrap-flex { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------- 启动 / 登录 ---------------- */
.boot { padding: 40px; text-align: center; color: var(--muted); }
.auth-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px; position: relative; overflow: hidden;
  /* 深色冷调底 + 细网格，营造科技感但不刺眼 */
  background-color: #10151d;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px),
    radial-gradient(760px 420px at 18% 6%, rgba(47, 107, 255, .22), transparent 62%),
    radial-gradient(680px 400px at 88% 92%, rgba(122, 90, 248, .16), transparent 62%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
}
.auth-card {
  width: 100%; max-width: 420px; background: rgba(255, 255, 255, .97);
  border-radius: 20px; padding: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  backdrop-filter: blur(12px);
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-brand h1 { font-size: 19px; }
.auth-brand p { margin: 2px 0 0; font-size: 12px; }
.auth-logo {
  width: 46px; height: 46px; border-radius: 13px; color: #fff;
  display: grid; place-items: center; font-size: 22px; font-weight: 700; flex: none;
  /* 深色渐变 + 细高光，像金属铭牌 */
  background: linear-gradient(145deg, #2b3644 0%, #131a24 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 16px rgba(19, 26, 36, .3);
}
.auth-tip { margin-top: 14px; font-size: 12px; line-height: 1.7; }

/* 商城商品图占位 */
.goods-tile {
  width: 100%; height: 116px; border-radius: 12px; display: grid; place-items: center;
  overflow: hidden; font-size: 40px;
}
.goods-tile .emoji { font-size: inherit; line-height: 1; }
.goods-tile.mini { height: 56px; font-size: 26px; }
.goods-tile.big { height: 120px; font-size: 52px; }
.goods-tile img { width: 100%; height: 100%; object-fit: cover; }

/* 表单控件 */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.field > span { color: var(--muted); }
input, select, textarea {
  font: inherit; color: inherit; background: rgba(255, 255, 255, .9); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; width: 100%; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:hover, select:hover, textarea:hover { border-color: #ccd3dd; }
input:focus, select:focus, textarea:focus {
  border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .10);
}
textarea { min-height: 76px; resize: vertical; }
.btn {
  font: inherit; border: 1px solid var(--line); background: rgba(255, 255, 255, .9); color: var(--text);
  padding: 9px 14px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center;
  gap: 6px; justify-content: center; transition: .15s; white-space: nowrap;
}
.btn:hover { background: #fff; border-color: #ccd3dd; }
.btn.primary {
  background: linear-gradient(180deg, #24303e 0%, #16202c 100%); border-color: #16202c; color: #fff;
  box-shadow: 0 2px 8px rgba(22, 32, 44, .2);
}
.btn.primary:hover { background: linear-gradient(180deg, #2b3a4a 0%, #1a2531 100%); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); border-color: #f5c9ca; }
.btn.success { background: var(--green); border-color: var(--green); color: #fff; }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; padding: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
/* 下拉旁边的「＋」就地新建按钮（如入库的收货渠道、出库的销售渠道） */
.inline-field { display: flex; align-items: center; gap: 6px; min-width: 0; }
.inline-field > select { flex: 1; min-width: 0; }
.inline-add { flex: none; width: 34px; padding: 8px 0; text-align: center; font-size: 16px; line-height: 1; border-radius: 8px; }
.inline-add:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
@media (max-width: 480px) { .inline-add { width: 32px; } }

/* 机器照片选择器（入库拍照 / 详情管理） */
.photo-block { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.photo-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.img-item, .img-add { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fafbfc; }
.img-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-add { display: flex; align-items: center; justify-content: center; cursor: pointer; border-style: dashed; color: var(--muted); font-size: 26px; }
.img-add:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.img-del { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .62); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.img-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.img-actions label { cursor: pointer; margin: 0; }
.img-count { margin-left: auto; }

/* 详情页 / 分享页的图片展示 */
.photo-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo-view img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; background: #fafbfc; }
.photo-view .cover-tag { position: relative; }
.photo-view .cover-tag::after { content: '封面'; position: absolute; left: 4px; bottom: 4px; background: rgba(0, 0, 0, .6); color: #fff;
  font-size: 11px; padding: 1px 6px; border-radius: 6px; }
.photo-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 13px;
  border: 1px dashed var(--line); border-radius: 10px; }

/* 客户零售分享页（.retail-page / .retail-hero / .retail-price 等在下方「客户零售商品页」小节统一定义） */
.retail-gallery-main { width: 100%; max-width: 100%; aspect-ratio: 1; border-radius: 14px; object-fit: cover; background: #f1f3f5; display: block; }
.retail-thumbs { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; }
.retail-thumbs img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; border: 2px solid transparent; cursor: pointer; flex: none; }
.retail-thumbs img.on { border-color: var(--primary); }

/* ============ 客户商品目录（价格区间筛选） ============ */
.shop-page { max-width: 1080px; margin: 0 auto; }
.shop-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 4px 10px; }
.shop-name { font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.shop-head .btn { margin-left: auto; }
.shop-search { margin-bottom: 12px; }
.shop-search input { width: 100%; }
.shop-body { display: grid; grid-template-columns: 176px 1fr; gap: 14px; align-items: start; }
.shop-side {
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
  border: 1px solid rgba(228, 232, 239, .85); border-radius: 12px;
  padding: 8px; position: sticky; top: 8px; box-shadow: var(--shadow);
}
.side-title { font-size: 11px; color: var(--muted); padding: 6px 8px 4px; letter-spacing: .5px; text-transform: uppercase; }
.side-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 10px; border-radius: 9px; font-size: 13px; color: var(--text);
  text-decoration: none; transition: .15s;
}
.side-item b { font-size: 12px; color: var(--muted); font-weight: 600; }
.side-item:hover { background: var(--primary-soft); }
.side-item.on { background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(27, 36, 48, .2); }
.side-item.on b { color: rgba(255, 255, 255, .85); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
/* 目录商品卡上的「机器说明」小标记 */
.shop-note { display: inline-block; color: var(--green); font-weight: 600; }.shop-card {
  background: var(--card); border: 1px solid rgba(228, 232, 239, .85); border-radius: 12px;
  overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: .15s;
}
.shop-card:hover { border-color: #d0d8e4; box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.shop-thumb { aspect-ratio: 1; background: #f4f6f8; display: flex; align-items: center; justify-content: center; }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-thumb .ph { font-size: 30px; opacity: .3; }
.shop-info { padding: 9px 10px 11px; }
.shop-t { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.shop-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.shop-p { font-size: 16px; font-weight: 800; color: var(--red); margin-top: 5px; }
@media (max-width: 760px) {
  .shop-body { grid-template-columns: 1fr; }
  .shop-side { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; }
  .side-title { width: 100%; padding: 2px 4px; }
  .side-item { flex: 0 0 auto; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .shop-head { padding: 10px 2px 8px; }
}

/* 详情页照片管理（上方图库 + 下方缩略图管理） */
.pm-manage { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pm-manage-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.pm-manage-head .btn { margin-left: auto; cursor: pointer; }
.photo-view .cover-tag { position: relative; }
.photo-view .cover-tag.on img { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.photo-view .cover-tag img { cursor: pointer; }
.pm-cover-tag { position: absolute; left: 4px; bottom: 4px; background: var(--primary); color: #fff;
  font-size: 11px; padding: 1px 6px; border-radius: 6px; }
.photo-view .img-del { position: absolute; top: 3px; right: 3px; }
#pm-gallery { margin-bottom: 4px; }
#pm-gallery .rg-thumbs { display: none; }   /* 详情页图库不重复缩略图，下方已有管理区 */

/* 电池效率：档位下拉 + 百分比输入 */
.battery-cell { display: flex; align-items: center; gap: 4px; }
.battery-cell > select { flex: 1; min-width: 0; max-width: 110px; }
.battery-cell > input { flex: none; }
.badge-batt { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 999px;
  background: #eef6ff; color: #1a6fc4; border: 1px solid #cfe3f8; }
.badge-batt.low { background: #fff4e5; color: #b9700a; border-color: #f6dfbc; }
.badge-batt.bad { background: #fdecec; color: #c62b2b; border-color: #f6c9c9; }

/* 客户零售商品页 —— 排版与视觉优化 */
.retail-page { max-width: 520px; margin: 0 auto; width: 100%; overflow-x: hidden; }
.retail-page img { max-width: 100%; }
#rg-slot { max-width: 100%; overflow: hidden; border-radius: 14px; }
.retail-hero { background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 16px 18px; box-shadow: 0 2px 14px rgba(15, 23, 42, .05); }
.retail-title-row { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; flex-wrap: wrap; }
.retail-title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: .2px; flex: 1; min-width: 0; }
/* 成色徽标：按品相自动配色 */
.fineness-badge { flex: none; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap; }
.fineness-badge.top { background: #e8f7ef; color: #128a4f; border-color: #bfe6cf; }
.fineness-badge.mid { background: #eef2f7; color: #475569; border-color: #dbe2ea; }
.fineness-badge.bad { background: #fdecec; color: #c62b2b; border-color: #f6c9c9; }
.retail-price-box { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.retail-price { font-size: 32px; font-weight: 800; color: var(--red); line-height: 1.1; letter-spacing: -.5px; }
.retail-price-tag { font-size: 12px; color: var(--muted); background: #f4f6f8; padding: 2px 8px; border-radius: 6px; }

.retail-card { padding: 16px 18px; }
.retail-card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.retail-card-title .bar { width: 3px; height: 15px; border-radius: 2px; background: var(--primary); }
/* 商品参数：图标 + 标签 + 值的分层排版 */
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.spec-item { background: #f8fafc; border: 1px solid #eef1f5; border-radius: 12px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.spec-k { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.spec-k i { font-style: normal; font-size: 13px; }
.spec-v { font-size: 15px; font-weight: 600; color: var(--text); word-break: break-all; line-height: 1.35; }
/* 联系商家：头像 + 名称 + 电话 + 拨号按钮 */
.store-box { display: flex; align-items: center; gap: 12px; }
.store-avatar { width: 44px; height: 44px; border-radius: 12px; flex: none; display: flex; align-items: center;
  justify-content: center; background: linear-gradient(140deg, #2b3440, #4a5568); color: #fff; font-size: 20px; font-weight: 700; }
.store-main { flex: 1; min-width: 0; }
.store-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-tel { display: inline-block; margin-top: 3px; font-size: 13px; color: var(--muted); text-decoration: none; }
.store-tel:hover { color: var(--primary); }
/* 客户页「机器说明」框 */
.note-box {
  background: #f0f7f2; border: 1px solid #cfe6d8; border-left: 3px solid var(--green);
  border-radius: 10px; padding: 11px 13px; font-size: 14px; line-height: 1.6;
  color: #1f6b4f; white-space: pre-wrap; word-break: break-word;
}.retail-foot { text-align: center; font-size: 12px; color: #9aa4b2; padding: 14px 0 18px; letter-spacing: 1px; }
@media (max-width: 420px) {
  .retail-title { font-size: 17px; }
  .retail-price { font-size: 29px; }
  .spec-grid { grid-template-columns: 1fr; }
}

/* 客户页大图：左右滑动切换 */
.rg-stage { position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  max-width: 100%; overflow: hidden; border-radius: 14px; }
.rg-stage .retail-gallery-main { -webkit-user-drag: none; display: block; }
.rg-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .42); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rg-nav:active { background: rgba(0, 0, 0, .65); }
.rg-prev { left: 8px; }
.rg-next { right: 8px; }
.rg-counter { position: absolute; right: 10px; bottom: 10px; z-index: 2; background: rgba(0, 0, 0, .5); color: #fff;
  font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.rg-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: center; gap: 5px;
  pointer-events: none; }
.rg-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.rg-dots span.on { background: #fff; width: 16px; border-radius: 3px; }
@media (max-width: 560px) {
  .rg-nav { width: 30px; height: 30px; font-size: 21px; }
  .rg-prev { left: 6px; } .rg-next { right: 6px; }
}

/* 全屏看图 */
.viewer-mask { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .93);
  display: flex; align-items: center; justify-content: center; }
.viewer-img { max-width: 96vw; max-height: 88vh; object-fit: contain; -webkit-user-drag: none; }
.viewer-close { position: absolute; top: 14px; right: 18px; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.viewer-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 13px; padding: 5px 14px; border-radius: 999px; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.viewer-prev { left: 16px; } .viewer-next { right: 16px; }
@media (max-width: 560px) {
  .viewer-nav { width: 36px; height: 36px; font-size: 24px; }
  .viewer-prev { left: 8px; } .viewer-next { right: 8px; }
}

/* 可搜索的机型选择器（入库页，避免手机上滑几百项） */
.js-model-btn { cursor: pointer; background: #fbfcfd; font-weight: 500; min-width: 150px; }
.js-model-btn:hover { border-color: var(--primary); }
.pick-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; padding: 8px; background: #fcfdfe; }
.pick-item { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 9px 10px;
  font: inherit; font-size: 13px; text-align: left; cursor: pointer; color: var(--text); }
.pick-item:hover { border-color: var(--primary); background: var(--primary-soft); }
.pick-item.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
@media (max-width: 560px) {
  .pick-list { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); max-height: 52vh; }
  .js-model-btn { min-width: 130px; }
}
.tabs {
  display: flex; gap: 4px; background: var(--primary-soft); padding: 4px;
  border-radius: 12px; margin-bottom: 16px; border: 1px solid rgba(228, 232, 239, .7);
}
.tab { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 9px; cursor: pointer; font: inherit; color: var(--muted); transition: .15s; }
.tab:hover { color: var(--text); }
.tab.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(20, 30, 50, .1); font-weight: 600; }

/* ---------------- 布局 ---------------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid var(--line);
}
.topbar-title h2 { font-size: 17px; letter-spacing: .2px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .9); width: 36px; height: 36px; border-radius: 10px;
  cursor: pointer; font-size: 16px; display: grid; place-items: center; position: relative;
  transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: #cfd6e0; background: #fff; }
.icon-btn .dot { position: absolute; top: 5px; right: 6px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
.store-chip {
  font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 10px; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
  background: rgba(255, 255, 255, .8);
}
.view { padding: 14px 14px calc(84px + var(--safe-bottom)); flex: 1; max-width: 1400px; width: 100%; margin: 0 auto; }

/* 底部 Tab（手机）—— 毛玻璃 + 顶部细高光 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, .88);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 16px rgba(20, 30, 50, .05);
  padding-bottom: var(--safe-bottom);
}
.tabbar a {
  padding: 8px 0 10px; text-align: center; color: var(--muted); font-size: 11px; display: block;
}
.tabbar a .ico { display: block; font-size: 19px; line-height: 1.3; }
.tabbar a.active { color: var(--text); font-weight: 600; }

/* 桌面端抽屉（侧边栏隐藏时的二级菜单） */
.drawer { position: fixed; inset: 0; background: rgba(16, 21, 29, .45); backdrop-filter: blur(2px); z-index: 60; }
.drawer .panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: 78vw; max-width: 320px;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px);
  border-right: 1px solid var(--line);
  box-shadow: 12px 0 40px rgba(16, 21, 29, .18);
  padding: 18px 14px; overflow: auto;
}
.drawer .panel h3 { font-size: 14px; margin: 16px 0 8px; color: var(--muted); font-weight: 600; }
.drawer .panel a { display: block; padding: 10px 8px; border-radius: 10px; color: var(--text); }
.drawer .panel a:hover { background: var(--primary-soft); }

@media (min-width: 900px) {
  .only-mobile { display: none !important; }
  .tabbar { display: none; }
  .view { padding: 20px 24px 40px; }
  .sidebar {
    display: flex; flex-direction: column; width: 236px; flex: none;
    background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px);
    border-right: 1px solid var(--line);
    padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow: auto;
  }
  .sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; }
  .sidebar .brand .auth-logo {
    width: 38px; height: 38px; font-size: 18px; border-radius: 11px;
    background: linear-gradient(145deg, #2b3644 0%, #131a24 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 4px 12px rgba(19, 26, 36, .22);
  }
  .sidebar .brand b { font-size: 15px; display: block; letter-spacing: .2px; }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar nav .group {
    margin-top: 16px; padding: 0 8px 5px; font-size: 11px; color: var(--muted);
    letter-spacing: .6px; text-transform: uppercase;
  }
  .sidebar nav a {
    display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px;
    color: var(--text); font-size: 14px; transition: background .15s, color .15s;
  }
  .sidebar nav a:hover { background: var(--primary-soft); }
  /* 选中项：深色底 + 左侧发光条，克制的科技感 */
  .sidebar nav a.active {
    background: var(--primary); color: #fff; font-weight: 600;
    box-shadow: 0 4px 14px rgba(27, 36, 48, .22);
  }
}

/* ---------------- 卡片 / 网格 ---------------- */
/* 卡片：极淡描边 + 双层阴影，顶部一线高光，质感干净不花哨 */
.card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(228, 232, 239, .8);
  box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
  pointer-events: none;
}
.card h3 { font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card .card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card .card-head h3 { margin: 0; }
.grid { display: grid; gap: 10px; }
.grid.c2 { grid-template-columns: minmax(0, 1fr); }
.grid.c3 { grid-template-columns: minmax(0, 1fr); }
.grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
@media (min-width: 700px) {
  .grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) { .grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.stat {
  background: var(--card); border-radius: var(--radius); padding: 12px 14px;
  border: 1px solid rgba(228, 232, 239, .8); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
/* 数据卡片左侧一道淡色强调条 */
.stat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand), rgba(47, 107, 255, .15));
  opacity: .5;
}
.stat .label { font-size: 12px; color: var(--muted); }
.stat .value { font-size: 21px; font-weight: 700; margin-top: 4px; letter-spacing: -.3px; }
.stat .value.small-v { font-size: 17px; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 快捷入口 */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 700px) { .quick { grid-template-columns: repeat(8, 1fr); } }
.quick a {
  background: var(--card); border-radius: 12px; padding: 12px 4px; text-align: center; color: var(--text);
  box-shadow: var(--shadow); font-size: 12px;
}
.quick a .ico { display: block; font-size: 21px; margin-bottom: 4px; }

/* ---------------- 列表 / 表格 ---------------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.item {
  background: var(--card); border-radius: 12px; padding: 12px;
  border: 1px solid rgba(228, 232, 239, .8); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, box-shadow .15s;
}
a.item:hover, .item:hover { border-color: #d5dce6; box-shadow: var(--shadow-lg); }
.item .title { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item .meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; }
.item .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.item .kv { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.item .kv i { color: var(--muted); font-style: normal; }

/* 分享二维码 */
.share-item { display: grid; grid-template-columns: minmax(0, 1fr) 94px; column-gap: 14px; align-items: center; }
.share-item > .title, .share-item > .meta, .share-item > .kv, .share-item > .actions { grid-column: 1; }
.share-item > * { min-width: 0; }
.share-item .meta span { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.share-qr-preview {
  grid-column: 2; grid-row: 1 / span 4; align-self: center; width: 94px; min-height: 94px; padding: 7px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font: inherit; font-size: 11px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.share-qr-preview:hover { border-color: var(--primary); box-shadow: 0 5px 18px rgba(45, 102, 245, .14); }
.share-qr-render, .share-qr-render svg { display: block; width: 72px; height: 72px; }
.share-qr-label { white-space: nowrap; color: var(--muted); }
.qr-code { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; align-items: center; justify-content: center; }
.qr-code svg { display: block; width: 100%; height: auto; }
.qr-code-lg { width: min(248px, 100%); aspect-ratio: 1; }
.qr-dialog { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-dialog-desc { font-size: 13px; line-height: 1.65; color: var(--muted); text-align: center; }
.qr-link-label { align-self: flex-start; font-size: 12px; color: var(--muted); margin-bottom: -6px; }
.qr-dialog input { width: 100%; font-size: 13px; }
.qr-error { font-size: 11px; color: var(--red); text-align: center; }
@media (max-width: 560px) {
  .share-item { grid-template-columns: minmax(0, 1fr) 84px; column-gap: 10px; }
  .share-qr-preview { width: 84px; min-height: 84px; padding: 6px; }
  .share-qr-render, .share-qr-render svg { width: 64px; height: 64px; }
}

.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 7px; border-radius: 999px;
  background: #eef1f6; color: #4d5563; font-weight: 600; border: 1px solid rgba(228, 232, 239, .9);
}
.badge.green { background: #e6f7f0; color: var(--green); }
.badge.orange { background: #fef2e4; color: #b96a12; }
.badge.red { background: #fdecec; color: var(--red); }
.badge.blue { background: #eaf1ff; color: var(--brand); }
.badge.purple { background: #f1ecfe; color: var(--purple); }

.table-wrap {
  overflow-x: auto; background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(228, 232, 239, .8); box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th { background: #f7f9fc; color: var(--muted); font-weight: 600; font-size: 12px; position: sticky; top: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #f8fafd; }
tbody tr:last-child td { border-bottom: 0; }
td.wrap, th.wrap { white-space: normal; }

/* 筛选区 */
.filters {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(228, 232, 239, .8); padding: 12px; margin-bottom: 12px;
}
.filters .frow { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .filters .frow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 0; }

/* 空状态 */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ico { font-size: 34px; display: block; margin-bottom: 8px; opacity: .6; }

/* 迷你柱状图 */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 6px 2px; }
.chart .bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.chart .bars { display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.chart .bar { width: 12px; border-radius: 4px 4px 0 0; background: var(--primary); min-height: 2px; }
.chart .bar.out { background: var(--orange); }
.chart .cap { font-size: 10px; color: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; }

/* ---------------- 弹窗 / 提示 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(16, 21, 29, .48); backdrop-filter: blur(3px);
  z-index: 80; display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
@media (min-width: 700px) { .modal-mask { align-items: center; padding: 20px; } }
.modal {
  background: #fff; width: 100%; max-width: 560px; border-radius: 18px 18px 0 0; padding: 18px;
  max-height: 88vh; overflow: auto;
  box-shadow: 0 -8px 40px rgba(16, 21, 29, .2);
}
@media (min-width: 700px) {
  .modal { border-radius: 18px; box-shadow: 0 24px 60px rgba(16, 21, 29, .22); }
}
.modal h3 { font-size: 16px; margin-bottom: 12px; }
.modal .modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal .modal-actions .btn { flex: 1; }

.toast-root { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(20, 22, 26, .92); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px;
  max-width: 80vw; animation: toast-in .18s ease-out;
}
.toast.err { background: rgba(200, 40, 45, .94); }
.toast.ok { background: rgba(10, 140, 96, .94); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 扫码输入 */
.scan-box { display: flex; gap: 8px; }
.scan-box input { font-size: 16px; letter-spacing: .5px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.chip-select { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.checkbox-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkbox-line input { width: auto; }
/* 入库录入：运行内存与容量分列，后续价格字段保持紧凑。 */
.imei-table { width: max-content; min-width: 1450px; font-size: 13px; }
.imei-table input { padding: 7px 8px; }
.imei-table select { min-width: 112px; padding: 7px 28px 7px 9px; }
.imei-table th:nth-child(1), .imei-table td:nth-child(1) { min-width: 190px !important; width: 190px; }
.imei-table th:nth-child(2), .imei-table td:nth-child(2) { min-width: 158px !important; width: 158px; }
.imei-table th:nth-child(3), .imei-table td:nth-child(3) { min-width: 100px !important; width: 100px; }
.imei-table th:nth-child(4), .imei-table td:nth-child(4) { min-width: 70px !important; width: 70px; }
.imei-table th:nth-child(5), .imei-table td:nth-child(5) { min-width: 116px !important; width: 116px; }
.imei-table th:nth-child(6), .imei-table td:nth-child(6) { min-width: 60px !important; width: 60px; }
.imei-table th:nth-child(7), .imei-table td:nth-child(7) { min-width: 83px !important; width: 83px; }
.imei-table th:nth-child(8), .imei-table td:nth-child(8) { min-width: 86px !important; width: 86px; }
.imei-table th:nth-child(9), .imei-table td:nth-child(9),
.imei-table th:nth-child(10), .imei-table td:nth-child(10),
.imei-table th:nth-child(11), .imei-table td:nth-child(11) { min-width: 46px !important; width: 46px; }
.imei-table td:nth-child(1) input.js-imei { width: 148px; min-width: 0; }
.imei-table td:nth-child(2) .js-model-btn { width: 148px; min-width: 0; }
.imei-table td:nth-child(3) > input { min-width: 0; width: 100px; padding: 7px 5px; }
.imei-table td:nth-child(4) > input { min-width: 0; width: 70px !important; padding: 7px 5px; }
.imei-table td:nth-child(5) > select {
  min-width: 0; width: 116px; padding: 7px 17px 7px 5px;
  overflow: hidden; text-overflow: ellipsis;
}
.imei-table td:nth-child(6) > select { min-width: 0; width: 60px; padding: 7px 17px 7px 5px; }
.imei-table td:nth-child(7) .battery-cell { width: 100%; gap: 2px; }
.imei-table td:nth-child(7) .battery-cell > select {
  min-width: 0; width: 48px; max-width: 48px; padding: 7px 14px 7px 4px;
}
.imei-table td:nth-child(7) .battery-cell > input { width: 31px !important; padding: 7px 3px; }
.imei-table td:nth-child(8) > input { width: 86px !important; min-width: 0; padding: 7px 5px; }
.imei-table td:nth-child(9) > input,
.imei-table td:nth-child(10) > input,
.imei-table td:nth-child(11) > input { width: 46px !important; min-width: 0; padding: 7px 3px; }

/* ============================================================
   客户分享页 · 炫酷科技主题
   仅作用于面向客户的公开页（店铺目录 / 商品详情），
   内部经营系统保持原来的安静配色。
   ============================================================ */
.tech-bg { position: relative; min-height: 100vh; margin: -14px -14px -84px;
  padding: 0 14px 84px; overflow-x: hidden;
  background-color: #070b14;
  background-image:
    /* 两处霓虹光晕：左上蓝紫、右下青蓝 */
    radial-gradient(680px 420px at 12% -4%, rgba(88, 101, 242, .30), transparent 62%),
    radial-gradient(620px 420px at 92% 8%, rgba(34, 211, 238, .18), transparent 60%),
    radial-gradient(700px 500px at 50% 108%, rgba(168, 85, 247, .20), transparent 62%),
    /* 透视网格：横线在上、竖线密，形成纵深 */
    linear-gradient(rgba(120, 160, 255, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .09) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 34px, 34px 100%;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
}
@media (min-width: 900px) { .tech-bg { margin: -20px -24px -40px; padding: 0 24px 40px; } }

/* 顶部一道高光描边，像屏幕边缘 */
.tech-bg::before {
  content: ''; position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 5;
  background: linear-gradient(90deg, transparent, #5865f2 25%, #22d3ee 55%, #a855f7 78%, transparent);
  opacity: .75;
}

/* 卡片改为深色玻璃拟态 */
.tech-bg .shop-page, .tech-bg .retail-page { position: relative; z-index: 1; }
.tech-card {
  background: linear-gradient(160deg, rgba(23, 31, 52, .82), rgba(14, 19, 34, .88));
  border: 1px solid rgba(120, 160, 255, .18);
  border-radius: 18px; padding: 16px 18px; margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 44px rgba(0, 0, 0, .38);
  backdrop-filter: blur(14px); position: relative; overflow: hidden;
}
/* 卡片顶部霓虹描边 */
.tech-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 200, 255, .55), transparent);
}
/* 左侧发光条 */
.tech-card::after {
  content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #5865f2, #22d3ee);
  opacity: .85;
}

/* 标题与文字 */
.tech-title { font-size: 20px; font-weight: 700; letter-spacing: .3px; color: #f2f6ff;
  text-shadow: 0 0 22px rgba(120, 160, 255, .35); }
.tech-sub { font-size: 13px; color: #93a4c4; margin-top: 4px; }
.tech-card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: 15px; font-weight: 700; color: #e8eeff; }
.tech-card-title .bar { width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, #5865f2, #22d3ee); box-shadow: 0 0 10px rgba(88, 101, 242, .7); }

/* 左侧价格区间栏 */
.tech-side {
  background: linear-gradient(170deg, rgba(23, 31, 52, .8), rgba(14, 19, 34, .88));
  border: 1px solid rgba(120, 160, 255, .16); border-radius: 14px; padding: 10px;
  position: sticky; top: 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  backdrop-filter: blur(14px);
}
.tech-side-title { font-size: 11px; color: #7d8db0; padding: 4px 8px 8px; letter-spacing: 1px; }
.tech-side-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 11px; border-radius: 10px; font-size: 13px; color: #d5deef;
  text-decoration: none; transition: .16s; border: 1px solid transparent;
}
.tech-side-item b { font-size: 12px; color: #7d8db0; font-weight: 600; }
.tech-side-item:hover { background: rgba(88, 101, 242, .14); border-color: rgba(120, 160, 255, .25); }
.tech-side-item.on {
  background: linear-gradient(90deg, rgba(88, 101, 242, .35), rgba(34, 211, 238, .16));
  border-color: rgba(120, 160, 255, .5); color: #fff; font-weight: 600;
  box-shadow: 0 0 18px rgba(88, 101, 242, .3);
}
.tech-side-item.on b { color: #cfe0ff; }

/* 商品卡 */
.tech-shop-card {
  background: linear-gradient(165deg, rgba(24, 32, 54, .8), rgba(13, 18, 32, .9));
  border: 1px solid rgba(120, 160, 255, .16); border-radius: 14px; overflow: hidden;
  text-decoration: none; color: #e8eeff; display: flex; flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .28); transition: .18s;
}
.tech-shop-card:hover {
  border-color: rgba(120, 200, 255, .5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35), 0 0 26px rgba(88, 101, 242, .28);
  transform: translateY(-2px);
}
.tech-shop-t { font-size: 14px; font-weight: 600; color: #eaf0ff; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tech-shop-sub { font-size: 12px; color: #8fa0c0; margin-top: 5px; }
.tech-shop-price { font-size: 18px; font-weight: 800; color: #ff7a9c;
  text-shadow: 0 0 16px rgba(255, 122, 156, .35); }

/* 参数网格 */
.tech-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tech-spec-item {
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(120, 160, 255, .13);
  border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.tech-spec-k { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #8fa0c0; }
.tech-spec-k i { font-style: normal; font-size: 13px; }
.tech-spec-v { font-size: 15px; font-weight: 600; color: #eef3ff; word-break: break-all; line-height: 1.35; }

/* 价格区 */
.tech-price { font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -.5px;
  background: linear-gradient(92deg, #ff9db4, #ff6b8b 55%, #ff4d6d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 107, 139, .4)); }
.tech-price-tag { font-size: 12px; color: #8fa0c0; background: rgba(255, 255, 255, .06);
  padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(120, 160, 255, .16); }

/* 成色 / 电池徽标 */
.tech-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.tech-badge.top { background: rgba(16, 185, 129, .16); color: #6ee7b7; border-color: rgba(16, 185, 129, .38); }
.tech-badge.mid { background: rgba(148, 163, 184, .16); color: #cbd5e1; border-color: rgba(148, 163, 184, .34); }
.tech-badge.bad { background: rgba(239, 68, 68, .16); color: #fca5a5; border-color: rgba(239, 68, 68, .38); }
.tech-batt.low { background: rgba(245, 158, 11, .16); color: #fcd34d; border-color: rgba(245, 158, 11, .38); }
.tech-batt.bad { background: rgba(239, 68, 68, .16); color: #fca5a5; border-color: rgba(239, 68, 68, .38); }
.tech-batt { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px; background: rgba(56, 189, 248, .14);
  color: #7dd3fc; border: 1px solid rgba(56, 189, 248, .34); }

/* 机器说明 */
.tech-note {
  background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .28);
  border-left: 3px solid #34d399; border-radius: 10px; padding: 11px 13px;
  font-size: 14px; line-height: 1.6; color: #a7f3d0; white-space: pre-wrap; word-break: break-word;
}

/* 商家卡片 */
.tech-store { display: flex; align-items: center; gap: 12px; }
.tech-avatar { width: 44px; height: 44px; border-radius: 12px; flex: none; display: flex;
  align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, #5865f2, #22d3ee);
  box-shadow: 0 0 18px rgba(88, 101, 242, .45); }
.tech-store-name { font-size: 15px; font-weight: 600; color: #eef3ff; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.tech-store-tel { display: inline-block; margin-top: 3px; font-size: 13px; color: #8fa0c0; text-decoration: none; }
.tech-store-tel:hover { color: #7dd3fc; }

/* 输入框 / 按钮 */
.tech-bg input, .tech-bg select {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(120, 160, 255, .22); color: #eef3ff;
}
.tech-bg input::placeholder { color: #64748b; }
.tech-bg input:focus, .tech-bg select:focus {
  border-color: #5865f2; box-shadow: 0 0 0 3px rgba(88, 101, 242, .22);
}
.tech-btn { font: inherit; border: 1px solid rgba(120, 160, 255, .28); background: rgba(255, 255, 255, .06);
  color: #dbe6fb; padding: 9px 15px; border-radius: 10px; cursor: pointer; display: inline-flex;
  align-items: center; gap: 6px; justify-content: center; transition: .16s; text-decoration: none; }
.tech-btn:hover { background: rgba(88, 101, 242, .2); border-color: rgba(120, 200, 255, .45); }
.tech-btn.primary {
  background: linear-gradient(135deg, #5865f2, #22d3ee); border-color: transparent; color: #04121f; font-weight: 700;
  box-shadow: 0 0 20px rgba(88, 101, 242, .45);
}
.tech-btn.primary:hover { filter: brightness(1.1); }

/* 空状态 */
.tech-empty { text-align: center; padding: 48px 20px; color: #7d8db0; }

/* 页脚 */
.tech-foot { text-align: center; font-size: 12px; color: #55648a; padding: 16px 0 20px; letter-spacing: 1px; }

/* 计数条 */
.tech-count { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; color: #93a4c4;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(120, 160, 255, .16);
  padding: 6px 13px; border-radius: 999px; }
.tech-count b { font-size: 16px; font-weight: 700; color: #7dd3fc; }

@media (max-width: 420px) {
  .tech-title { font-size: 18px; }
  .tech-price { font-size: 30px; }
  .tech-spec-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .tech-bg::after {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(circle at 20% 30%, rgba(120, 160, 255, .06), transparent 45%);
  }
}

/* ============================================================
   2026-10-27 美化收尾（只做加法，不改原有结构）
   全站：去掉背景细网格，长时间看不累眼；卡片阴影更轻，按钮触控更高。
   店内商品卡：图片改成完整展示，不再裁切手机照片，价格字号略大。
   ============================================================ */
body { background-image: none; }
.topbar { box-shadow: 0 1px 10px rgba(20, 30, 50, .06); }
.card { box-shadow: 0 1px 3px rgba(20, 30, 50, .05), 0 6px 18px rgba(20, 30, 50, .04); }
.btn { min-height: 40px; }
.tabbar a { padding: 10px 0 12px; }
.shop-thumb { background: #f2f3f5; }
.shop-thumb img { object-fit: contain; padding: 6px; }
.shop-card .shop-p { font-size: 17px; }

/* ============================================================
   2026-10-27 共享仓详情 · 手机端优化（只做加法，不改业务逻辑）
   痛点：7 列宽表在手机上必须左右滑，勾选框小，顶部信息挤成一行，
   选完机器还要滑回顶部才能点“一键加入”。
   做法：桌面仍是表格；手机上同一张表改成卡片式，勾选框放大，
   顶部信息改成标签/值两列，领取条吸顶，操作按钮加高。
   ============================================================ */
.wh-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin-top: 4px; font-size: 14px; line-height: 1.6; }
.wh-summary > div { display: flex; gap: 8px; min-width: 0; }
.wh-summary i { flex: none; color: var(--muted); font-style: normal; }
.wh-summary span { overflow-wrap: anywhere; }
.wh-top-actions .btn { min-height: 42px; }
/* 吸顶的是一整个“加入按钮 + 已领取/未领取”块，两者一起动，筛选就不会被吸顶的加入条盖住 */
.wh-claim-sticky {
  position: sticky; top: 62px; z-index: 10;
  margin: 10px -2px 12px; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 4px 14px rgba(20, 30, 50, .08);
}
.wh-claim-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none;
}
.wh-claim-bar .btn { min-height: 42px; }
.wh-table input[type="checkbox"][data-claim] { width: 22px; height: 22px; flex: none; accent-color: var(--brand); cursor: pointer; }
@media (max-width: 700px) {
  .wh-summary { grid-template-columns: 1fr; }
  .wh-top-actions { flex-direction: column; }
  .wh-top-actions .btn { width: 100%; }
  .wh-claim-sticky { top: 58px; }
  .wh-claim-bar .btn { width: 100%; }
  /* 表格变卡片：同一 DOM，只改展示方式，勾选/取消共享的逻辑不变 */
  .wh-table { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .wh-table table { min-width: 0; }
  .wh-table thead { display: none; }
  .wh-table tbody, .wh-table tr { display: block; width: 100%; }
  .wh-table tbody tr {
    margin-bottom: 10px; background: var(--card);
    border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow);
  }
  .wh-table tbody tr:hover { background: var(--card); }
  .wh-table td {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 9px 12px; white-space: normal;
    border-bottom: 1px solid var(--line-soft); text-align: right;
  }
  .wh-table td:last-child { border-bottom: 0; }
  .wh-table td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: 12px; text-align: left; }
  .wh-table td[data-label="机型"], .wh-table td[data-label="IMEI"] { flex-direction: column; align-items: flex-start; text-align: left; }
  .wh-table td[data-label="机型"]::before, .wh-table td[data-label="IMEI"]::before { margin-bottom: 2px; }
  .wh-table td[data-label="IMEI"] { font-family: ui-monospace, monospace; word-break: break-all; }
  .wh-table td[data-label="操作"] .btn { min-height: 38px; padding: 8px 14px; }
  .wh-table td[data-label="选择"] input[type="checkbox"][data-claim] { width: 24px; height: 24px; }
}

/* 2026-10-27 共享仓详情 · 已领取/未领取筛选 */
.wh-claim-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; padding-top: 2px; }
.wh-claim-filter .btn { min-height: 38px; }
.wh-claim-filter .btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.wh-filter-empty { padding: 16px; text-align: center; }
