/* ==================== 基础重置 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #8a6d3b;
  --primary-light: rgba(200, 160, 120, 0.1);
  --primary-hover: #6b5430;
  --bg: #f5f3f0;
  --card-bg: #ffffff;
  --text: #2a2a2a;
  --text-secondary: #888;
  --border: #e8e4df;
  --danger: #d4534e;
  --success: #5a8a5a;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 8px;
  --topbar-h: 56px;
  --bottomnav-h: 60px;
}
html, body { height: 100%; }
.admin-login-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: #f5f3f0; }
.admin-login-box { width: min(360px, calc(100% - 40px)); padding: 32px 28px; background: #fff; border: 1px solid var(--border); border-radius: 12px; text-align: center; box-shadow: var(--shadow-lg); }
.admin-login-title { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.admin-login-sub { color: var(--text-secondary); font-size: 13px; margin-bottom: 22px; }
.admin-login-input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px; text-align: center; }
.admin-login-btn { width: 100%; height: 42px; margin-top: 14px; border: 0; border-radius: 6px; background: var(--primary); color: #fff; font-size: 15px; cursor: pointer; }
.admin-login-error { min-height: 20px; margin-top: 10px; color: var(--danger); font-size: 13px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==================== 顶部导航 ==================== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; z-index: 100;
}
.logo { display: flex; align-items: baseline; gap: 8px; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--primary); }
.logo-sub { font-size: 12px; color: var(--text-secondary); }
.nav-desktop { display: flex; gap: 4px; }
.nav-btn {
  padding: 8px 16px; border: none; background: transparent;
  color: var(--text-secondary); font-size: 14px; cursor: pointer;
  border-radius: 6px; transition: all 0.2s; white-space: nowrap;
}
.nav-btn:hover { background: var(--primary-light); color: var(--primary); }
.nav-btn.active { background: var(--primary); color: #fff; }

/* ==================== 内容区域 ==================== */
.content {
  padding: calc(var(--topbar-h) + 16px) 20px calc(var(--bottomnav-h) + 24px);
  max-width: 1200px; margin: 0 auto; min-height: 100vh;
}

/* ==================== 页面标题 ==================== */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.page-title { font-size: 18px; font-weight: 600; }
.header-actions { display: flex; gap: 8px; align-items: center; }

/* ==================== 批量编辑 ==================== */
.batch-menu { display: flex; flex-direction: column; gap: 12px; }
.batch-menu-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; background: transparent; transition: all 0.2s; text-align: left;
}
.batch-menu-item:hover { border-color: var(--primary); background: var(--primary-light); }
.batch-menu-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px; font-size: 20px;
  background: var(--primary-light); color: var(--primary); font-weight: 700;
}
.batch-menu-title { font-size: 15px; font-weight: 600; }
.batch-menu-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.batch-discount-body { display: flex; flex-direction: column; gap: 12px; }
.batch-discount-input-row { display: flex; align-items: center; gap: 8px; }
.batch-discount-label { font-size: 14px; font-weight: 600; white-space: nowrap; }
.batch-discount-input {
  width: 100px; padding: 6px 10px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 16px; font-weight: 700;
}
.batch-discount-input:focus { border-color: var(--primary); outline: none; }
.batch-discount-hint { font-size: 12px; color: var(--danger); }
.batch-discount-actions { display: flex; align-items: center; gap: 8px; }
.batch-count { margin-left: auto; font-size: 13px; color: var(--text-secondary); }
.batch-product-list {
  max-height: 400px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.batch-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; transition: all 0.15s;
}
.batch-item:hover { background: var(--primary-light); }
.batch-checkbox { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.batch-thumb {
  width: 40px; height: 40px; border-radius: 4px; overflow: hidden; flex-shrink: 0;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--text-secondary);
}
.batch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.batch-info { flex: 1; min-width: 0; }
.batch-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.batch-meta { display: flex; gap: 6px; font-size: 11px; color: var(--text-secondary); margin-top: 2px; align-items: center; }
.batch-itemno { background: var(--primary-light); color: var(--primary); padding: 1px 5px; border-radius: 3px; }
.batch-price { color: var(--primary); font-weight: 600; }

/* ==================== 按钮 ==================== */
.btn {
  padding: 8px 16px; border: none; border-radius: 6px;
  font-size: 14px; cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 4px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-icon {
  width: 32px; height: 32px; padding: 0; justify-content: center;
  border: none; background: var(--primary-light); color: var(--primary);
  border-radius: 6px; cursor: pointer; font-size: 16px; transition: all 0.2s;
}
.btn-icon:hover { background: var(--primary); color: #fff; }
.btn-icon.danger { background: rgba(212,83,78,0.1); color: var(--danger); }
.btn-icon.danger:hover { background: var(--danger); color: #fff; }

/* ==================== 商品列表 ==================== */
.toolbar {
  display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center;
}
.search-input {
  flex: 1; min-width: 160px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 6px; font-size: 14px;
  background: var(--card-bg); outline: none;
}
.search-input:focus { border-color: var(--primary); }
.filter-select {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; background: var(--card-bg); outline: none; cursor: pointer;
}

/* 筛选面板 */
.filter-panel {
  background: var(--card-bg); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.filter-panel-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.filter-panel-item { display: flex; flex-direction: column; gap: 4px; }
.filter-panel-item label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.filter-count { color: var(--primary); font-weight: 700; }
.multiselect-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-height: 160px; overflow-y: auto; padding: 4px;
  border: 1px solid var(--border); border-radius: 6px; background: #fafafa;
}
.multiselect-tag {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  font-size: 13px; cursor: pointer; user-select: none;
  background: #fff; border: 1px solid var(--border); color: var(--text);
  transition: all 0.15s; white-space: nowrap;
}
.multiselect-tag:hover { border-color: var(--primary); }
.multiselect-tag.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.multiselect-tag.sub { font-size: 12px; padding: 3px 8px; }
.multiselect-tag.sub2 { font-size: 12px; padding: 3px 8px; opacity: 0.85; }
.filter-panel-footer {
  margin-top: 12px; display: flex; justify-content: flex-end; gap: 8px;
}
/* 筛选按钮：未选择时使用主色，选择/展开后切换为未选中的浅色样式 */
#filterToggleBtn { background: var(--primary); color: #fff; border-color: var(--primary); }
#filterToggleBtn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
#filterToggleBtn.active { background: transparent; color: var(--text); border-color: var(--border); }
#filterToggleBtn.active:hover { border-color: var(--primary); color: var(--primary); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: box-shadow 0.2s; position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-card.off { opacity: 0.55; }
.product-thumb {
  width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-secondary);
  font-size: 12px;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 10px 12px; }
.product-name { font-weight: 600; font-size: 13px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-meta { display: flex; gap: 8px; font-size: 11px; color: var(--text-secondary); }
.product-price { color: var(--primary); font-weight: 600; }
.product-price .price-original { text-decoration: line-through; color: var(--text-secondary); font-weight: 400; font-size: 11px; }
.product-price .price-discounted { color: var(--danger); font-weight: 700; }
.product-badges { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; z-index: 2; }
.product-badge {
  padding: 2px 8px; border-radius: 10px; font-size: 10px; color: #fff; line-height: 1.4;
}
.product-badge.consignment { background: var(--success); }
.product-badge.defect { background: var(--danger); }
.product-badge.off { background: var(--text-secondary); }
.product-actions {
  display: flex; gap: 4px; padding: 0 12px 12px;
}
.product-actions .btn-icon { flex: 1; }

/* ==================== 视图切换 ==================== */
.view-toggle { display: flex; gap: 2px; margin-left: auto; }
.view-btn {
  width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--card-bg); cursor: pointer; font-size: 16px; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.view-btn:hover { border-color: var(--primary); color: var(--primary); }
.view-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==================== 列表视图 ==================== */
.product-grid.view-list {
  display: flex; flex-direction: column; gap: 8px;
}
.product-grid.view-list .list-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  box-shadow: var(--shadow); border-radius: var(--radius); background: var(--card-bg);
}
.product-grid.view-list .list-thumb {
  width: 80px; height: 80px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
  background: var(--border);
}
.product-grid.view-list .list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-grid.view-list .list-info { flex: 1; min-width: 0; }
.product-grid.view-list .list-name {
  font-weight: 600; font-size: 14px; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-grid.view-list .list-tags {
  display: flex; gap: 4px; margin-bottom: 4px; flex-wrap: wrap;
}
.product-grid.view-list .list-meta {
  display: flex; gap: 8px; font-size: 12px; color: var(--text-secondary);
  flex-wrap: wrap;
}
.product-grid.view-list .list-actions { display: flex; gap: 4px; flex-shrink: 0; }
.mini-tag {
  display: inline-block; padding: 1px 6px; border-radius: 8px; font-size: 10px; color: #fff;
  font-weight: normal; flex-shrink: 0;
}
.mini-tag.consignment { background: var(--success); }
.mini-tag.defect { background: #e8923c; }
.mini-tag.off { background: var(--text-secondary); }
.mini-tag.sold { background: #6c5ce7; }
.mini-tag.channel { background: #0984e3; }
.mini-tag.itemno { background: #f0f0f0; color: #555; font-family: monospace; }
.product-itemno { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; font-family: monospace; }

/* ==================== 商品子标签 ==================== */
.product-tabs {
  display: flex; gap: 0; margin-bottom: 16px; border-bottom: 2px solid var(--border);
}
.product-tab {
  padding: 10px 24px; border: none; background: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--text-secondary);
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s;
}
.product-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.product-tab:hover { color: var(--primary); }

/* 下架区域子标签 */
.off-sub-tabs { display: flex; gap: 0; margin-bottom: 14px; border-bottom: 2px solid var(--border); }
.off-sub-tab {
  padding: 8px 20px; border: none; background: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s;
}
.off-sub-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.off-sub-tab:hover { color: var(--primary); }
.off-sub-tab.wash.active { color: #e67e22; border-bottom-color: #e67e22; }
.off-sub-tab.wash:hover { color: #e67e22; }

/* 送洗按键：点亮=需要清洁 */
.btn-icon.wash { background: rgba(230,126,34,0.08); color: #e67e22; font-weight: 700; }
.btn-icon.wash:hover { background: #e67e22; color: #fff; }
.btn-icon.wash.active { background: #e67e22; color: #fff; box-shadow: 0 2px 8px rgba(230,126,34,0.5); }

/* 编辑按钮醒目样式（商品卡片） */
.btn-icon.edit { background: var(--primary); color: #fff; font-weight: 700; font-size: 17px; box-shadow: 0 2px 6px rgba(138,109,59,0.4); }
.btn-icon.edit:hover { filter: brightness(1.1); background: var(--primary); color: #fff; }
.mini-tag.wash { background: #e67e22; }

/* ==================== 已售统计栏 ==================== */
.sold-stats-bar {
  display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.sold-stat-card {
  flex: 1; min-width: 140px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--card-bg); box-shadow: var(--shadow); text-align: center;
}
.sold-stat-card.main { background: var(--primary); }
.sold-stat-card.main .sold-stat-label, .sold-stat-card.main .sold-stat-value, .sold-stat-card.main .sold-stat-sub { color: #fff; }
.sold-stat-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.sold-stat-value { font-size: 24px; font-weight: 700; color: var(--text); }
.sold-stat-sub { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ==================== 已售筛选栏 ==================== */
.sold-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px;
  padding: 12px 16px; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow);
}
.sold-filter-group { display: flex; align-items: center; gap: 4px; }
.sold-filter-label { font-size: 13px; color: var(--text-secondary); margin-right: 4px; font-weight: 600; }

/* ==================== 已售筛选按钮 ==================== */
.sold-time-btn {
  padding: 6px 16px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--card-bg); cursor: pointer; font-size: 13px; color: var(--text-secondary);
  transition: all 0.2s;
}
.sold-time-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.sold-time-btn:hover { color: var(--primary); }
.sold-time-btn.active:hover { color: #fff; }
.custom-date-picker { display: flex; align-items: center; gap: 8px; }
.custom-date-picker input[type="date"] {
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; background: var(--card-bg); outline: none;
}
.custom-date-picker span { font-size: 13px; color: var(--text-secondary); }


/* ==================== 表单 ==================== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-label .required { color: var(--danger); }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 14px; background: #fff; outline: none;
  font-family: inherit;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--primary); }
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* Toggle switch */
.toggle { display: flex; align-items: center; gap: 8px; }
.toggle-switch {
  position: relative; width: 44px; height: 24px;
  background: #ddd; border-radius: 12px; cursor: pointer; transition: background 0.2s;
}
.toggle-switch.on { background: var(--success); }
.toggle-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch.on::after { transform: translateX(20px); }
.toggle-label { font-size: 13px; color: var(--text-secondary); }

/* ==================== 图片上传 ==================== */
.image-uploader {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px; margin-top: 8px;
}
.image-item { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--border); touch-action: none; -webkit-touch-callout: none; }
.image-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.image-item.dragging { z-index: 20; opacity: 0.9; box-shadow: 0 6px 16px rgba(0,0,0,.35);
  transition: transform 0s; cursor: grabbing; }
.image-item.drag-over { outline: 2px dashed var(--primary); outline-offset: -2px; }
body.img-dragging { user-select: none; -webkit-user-select: none; }
.image-item .remove-img {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
  background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 50%;
  cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.image-item .move-img {
  position: absolute; bottom: 2px; width: 20px; height: 20px;
  background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 4px;
  cursor: pointer; font-size: 10px; display: flex; align-items: center; justify-content: center;
}
.image-item .move-img.left { left: 2px; }
.image-item .move-img.right { right: 2px; }
.upload-btn {
  aspect-ratio: 1; border: 2px dashed var(--border); border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary); font-size: 24px; transition: all 0.2s;
}
.upload-btn:hover { border-color: var(--primary); color: var(--primary); }
.upload-btn span { font-size: 10px; margin-top: 4px; }

/* Video upload */
.video-uploader { margin-top: 8px; }
.video-preview { margin-top: 8px; }
.video-preview video { width: 100%; max-height: 200px; border-radius: 6px; }

/* ==================== 品牌管理 ==================== */
.brand-list { display: flex; flex-direction: column; gap: 8px; }
.brand-group-title {
  font-size: 16px; font-weight: 700; color: var(--primary);
  padding: 12px 0 4px; border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.brand-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--card-bg); border-radius: 6px;
  box-shadow: var(--shadow);
}
.brand-item-info { flex: 1; min-width: 0; }
.brand-item-name { font-weight: 600; font-size: 14px; }
.brand-item-intro {
  font-size: 12px; color: var(--text-secondary); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-item-actions { display: flex; gap: 4px; margin-left: 12px; }

/* ==================== 颜色管理 ==================== */
.color-list { display: flex; flex-wrap: wrap; gap: 12px; }
.color-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px;
  background: var(--card-bg); border-radius: 24px; box-shadow: var(--shadow);
}
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border);
}
.color-name { font-size: 13px; font-weight: 500; }
.color-remove {
  width: 20px; height: 20px; border: none; background: transparent;
  color: var(--danger); cursor: pointer; font-size: 16px; margin-left: 4px;
}

/* ==================== 类型管理 (树形) ==================== */
.type-tree { background: var(--card-bg); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.type-tree-node { margin-left: 20px; }
.type-tree-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.type-tree-row:last-child { border-bottom: none; }
.type-tree-name { flex: 1; font-size: 14px; }
.type-tree-level-1 .type-tree-name { font-weight: 700; font-size: 15px; }
.type-tree-level-2 .type-tree-name { font-weight: 500; }
.type-tree-level-3 .type-tree-name { color: var(--text-secondary); }
.type-tree-toggle { cursor: pointer; font-size: 12px; color: var(--text-secondary); width: 16px; }
.type-tree-children { margin-left: 20px; }

/* ==================== Banner管理 ==================== */
.banner-list { display: flex; flex-direction: column; gap: 12px; }
.banner-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow);
}
.banner-thumb { width: 120px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--border); }
.banner-info { flex: 1; }
.banner-order { font-size: 12px; color: var(--text-secondary); }

/* ==================== 待办事项 ==================== */
.todo-section { margin-bottom: 24px; }
.todo-section-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  padding: 8px 0; margin-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.todo-section-title.done-title { color: var(--text-secondary); border-bottom-color: var(--border); }
.todo-list { display: flex; flex-direction: column; gap: 8px; }
.todo-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px;
  background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.todo-card:hover { box-shadow: var(--shadow-lg); }
.todo-card.done { opacity: 0.6; }
.todo-info { flex: 1; min-width: 0; }
.todo-product-name {
  font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer;
  margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.todo-product-name:hover { text-decoration: underline; }
.todo-itemno { font-weight: 400; color: var(--text-secondary); font-size: 12px; }
.todo-remark {
  font-size: 14px; color: var(--text); line-height: 1.5; word-break: break-word;
  margin-bottom: 6px;
}
.todo-remark.strike { text-decoration: line-through; color: var(--text-secondary); }
.todo-meta {
  display: flex; gap: 12px; font-size: 12px; color: var(--text-secondary); flex-wrap: wrap;
}
/* 醒目的打勾按钮：绿色大按钮 */
.todo-check-btn {
  padding: 8px 18px; border: none; border-radius: 20px;
  background: linear-gradient(135deg, #2ecc71, #27ae60); color: #fff;
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.4);
  transition: all 0.15s;
}
.todo-check-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(46, 204, 113, 0.55); }
.todo-check-btn:active { transform: scale(0.97); }
.todo-check-btn.reopen {
  background: linear-gradient(135deg, #95a5a6, #7f8c8d);
  box-shadow: 0 2px 6px rgba(127, 140, 141, 0.35);
}
/* 待办子标签样式（绿色下划线，与其他栏区分） */
.product-tab.todo.active { color: #27ae60; border-bottom-color: #27ae60; }
.product-tab.todo:hover { color: #27ae60; }
.todo-actions { display: flex; gap: 4px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
/* 指派员工名字：显示在操作按钮下方 */
.todo-assignee { width: 100%; text-align: center; font-size: 12px; color: var(--text-secondary); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 96px; }

/* 待处理/已完成切换栏 */
.todo-view-tabs { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.todo-view-tab {
  padding: 7px 20px; border: 1px solid var(--border); background: var(--card-bg);
  border-radius: 20px; font-size: 13.5px; color: var(--text-secondary);
  cursor: pointer; transition: all 0.15s;
}
.todo-view-tab:hover { border-color: var(--primary); color: var(--primary); }
.todo-view-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

/* 紧急程度星级：3星红/2星橙/1星灰蓝 */
.todo-stars { font-size: 14px; letter-spacing: 2px; margin-right: 6px; }
.todo-stars.u3 { color: #e74c3c; }
.todo-stars.u2 { color: #f39c12; }
.todo-stars.u1 { color: #95a5b8; }
.todo-card.urg-3 { border-left: 4px solid #e74c3c; }
.todo-card.urg-2 { border-left: 4px solid #f39c12; }
.todo-card.urg-1 { border-left: 4px solid #c3cbd9; }
/* 已完成卡片：灰色调 */
.todo-card.done {
  border-left: 4px solid #c3cbd9;
  background: #f4f5f7;
}
/* 状态徽标（老板端颜色区分完成/未完成） */
.todo-done-badge { color: #27ae60; font-weight: 700; }
.todo-open-badge { color: #e67e22; font-weight: 700; }

/* 待办置顶按钮 */
.todo-pin-btn { color: var(--primary); font-size: 15px; }
.todo-pin-btn:hover { opacity: 0.8; }

/* 待办附图：卡片内缩略图行 */
.todo-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.todo-imgs img {
  width: 52px; height: 52px; object-fit: cover; border-radius: 6px;
  cursor: pointer; flex-shrink: 0; border: 1px solid var(--border);
  transition: transform 0.15s;
}
.todo-imgs img:active { transform: scale(1.05); }

/* 新增/编辑待办弹窗的图片选择器 */
.todo-img-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.todo-img-pick-item { position: relative; width: 64px; height: 64px; }
.todo-img-pick-item img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border); cursor: pointer;
}
.todo-img-del {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border: none; border-radius: 50%; background: var(--danger); color: #fff;
  font-size: 11px; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.todo-img-add {
  width: 64px; height: 64px; border: 1px dashed var(--border); border-radius: 6px;
  background: var(--bg, #f7f7f8); font-size: 24px; cursor: pointer;
  color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s;
}
.todo-img-add:hover { border-color: var(--primary); color: var(--primary); }

/* 创建待办时的星级选择器 */
.todo-star-pick { display: flex; align-items: center; gap: 6px; }
.pick-star {
  font-size: 30px; line-height: 1; color: #d4d7dd; cursor: pointer;
  transition: color 0.15s, transform 0.1s;
}
.pick-star:hover { transform: scale(1.2); }
.pick-star.on { color: #f39c12; }
.todo-urg-label { font-size: 13px; color: var(--text-secondary); margin-left: 4px; }

/* 待办弹窗内的商品预览 */
.todo-add-product {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  background: var(--bg); border-radius: var(--radius);
}
.todo-add-product-info { flex: 1; }
.todo-add-product-info > div:first-child { font-size: 14px; margin-bottom: 2px; }

/* ==================== 导出页面 ==================== */
.export-box {
  background: var(--card-bg); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); text-align: center; max-width: 500px; margin: 40px auto;
}
.export-icon { font-size: 48px; margin-bottom: 16px; }
.export-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.export-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.8; }
.export-stats {
  display: flex; justify-content: center; gap: 24px; margin-bottom: 24px;
  padding: 16px; background: var(--bg); border-radius: var(--radius);
}
.export-stat { text-align: center; }
.export-stat-num { font-size: 24px; font-weight: 700; color: var(--primary); }
.export-stat-label { font-size: 12px; color: var(--text-secondary); }

/* ==================== 模态弹窗 ==================== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 200;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.modal-box {
  background: #fff; border-radius: var(--radius); width: 100%; max-width: 640px;
  margin-top: 40px; margin-bottom: 40px; box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #fff; border-radius: var(--radius) var(--radius) 0 0; z-index: 1;
}
.modal-title { font-size: 16px; font-weight: 600; }
.modal-close {
  width: 32px; height: 32px; border: none; background: transparent;
  font-size: 20px; cursor: pointer; color: var(--text-secondary); border-radius: 6px;
}
.modal-close:hover { background: var(--bg); }
.modal-body { padding: 20px; max-height: calc(100vh - 200px); overflow-y: auto; }
.modal-footer {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 16px 20px; border-top: 1px solid var(--border);
  position: sticky; bottom: 0; background: #fff; border-radius: 0 0 var(--radius) var(--radius);
}

/* ==================== Toast ==================== */
.toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  padding: 10px 24px; background: var(--text); color: #fff;
  border-radius: 6px; font-size: 14px; z-index: 300;
  animation: toastIn 0.3s;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ==================== 尺码分项输入 ==================== */
.size-input-wrap { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.size-input-section { border-bottom: 1px solid var(--border); }
.size-input-section:last-child { border-bottom: none; }
.size-input-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--bg); cursor: pointer;
  user-select: none;
}
.size-input-header .toggle-switch { width: 40px; height: 22px; }
.size-input-header .toggle-switch::after { width: 18px; height: 18px; }
.size-input-header .toggle-switch.on::after { transform: translateX(18px); }
.size-input-header-label { font-weight: 600; font-size: 14px; }
.size-input-body { padding: 12px 14px; display: none; }
.size-input-body.show { display: block; }
.size-input-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.size-input-row:last-child { margin-bottom: 0; }
.size-input-row label {
  width: 56px; font-size: 13px; color: var(--text); flex-shrink: 0;
}
.size-input-row input {
  flex: 1; padding: 6px 10px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; outline: none; min-width: 0;
}
.size-input-row input:focus { border-color: var(--primary); }
.size-input-unit { font-size: 12px; color: var(--text-secondary); flex-shrink: 0; }
.size-input-extra {
  margin-top: 10px; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; width: 100%; resize: vertical;
  min-height: 60px; font-family: inherit; outline: none;
}
.size-input-extra:focus { border-color: var(--primary); }

/* ==================== 空状态 ==================== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.empty-state-icon { font-size: 40px; margin-bottom: 12px; }

/* ==================== 分页 ==================== */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 24px 0 8px; flex-wrap: wrap;
}
.page-btn {
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--card-bg); color: var(--text); font-size: 14px;
  cursor: pointer; transition: all 0.15s;
  display: inline-flex; align-items: center; justify-content: center;
}
.page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--primary); color: var(--primary);
}
.page-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.page-btn.disabled {
  opacity: 0.4; cursor: default;
}
.page-ellipsis {
  padding: 0 4px; color: var(--text-secondary); font-size: 14px;
}
.page-info {
  margin-left: 12px; font-size: 13px; color: var(--text-secondary);
}

/* ==================== 一键回顶 ==================== */
.back-to-top {
  position: fixed; right: 32px; bottom: 80px;
  width: 48px; height: 48px; border-radius: 50%;
  border: none; background: var(--primary); color: #fff;
  cursor: pointer; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
}
.back-to-top.show {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-hover);
}

/* ==================== 加载中 ==================== */
.loading { text-align: center; padding: 40px; color: var(--text-secondary); }

/* ==================== 移动端导航 ==================== */
.nav-mobile { display: none; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nav-mobile::-webkit-scrollbar { display: none; }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-mobile {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--bottomnav-h); background: var(--card-bg);
    border-top: 1px solid var(--border); z-index: 100;
  }
  .nav-mob-btn {
    flex: 1; border: none; background: transparent; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; color: var(--text-secondary); font-size: 10px; padding: 4px 0;
  }
  .nav-mob-btn.active { color: var(--primary); }
  .nav-icon { font-size: 18px; }
  .content { padding: calc(var(--topbar-h) + 12px) 12px calc(var(--bottomnav-h) + 16px); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .modal-box { margin-top: 10px; margin-bottom: 10px; }
  .modal-body { max-height: calc(100vh - 160px); }
  .form-row { flex-direction: column; gap: 0; }
  .page-title { font-size: 16px; }
  .logo-sub { display: none; }
  .back-to-top { right: 16px; bottom: 72px; }
}

@media (min-width: 769px) {
  .content { padding-top: calc(var(--topbar-h) + 24px); }
}

/* ==================== 图片查看器（点击缩略图看大图，左右滑动切换） ==================== */
.image-viewer {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999; background: rgba(0, 0, 0, 0.95);
  display: flex; align-items: center; justify-content: center;
}
.image-viewer .iv-track {
  display: flex; width: 100%; height: 100%;
  transition: transform 0.2s ease; will-change: transform;
}
.image-viewer .iv-slide {
  flex: 0 0 100%; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 0; box-sizing: border-box;
}
.image-viewer .iv-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.image-viewer .iv-slide video { max-width: 100%; max-height: calc(100% - 58px); background: #000; }
.image-viewer .iv-media-stack { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; max-width: 100%; max-height: 100%; }
.image-viewer .iv-video-download { min-width: 150px; height: 42px; padding: 0 18px; border: 0; border-radius: 22px; background: #fff; color: #111; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.45); }
.image-viewer .iv-video-download:active { transform: scale(.97); }
.image-viewer .iv-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 36px; height: 36px; line-height: 36px; text-align: center;
  color: #fff; font-size: 20px; cursor: pointer;
  background: rgba(255, 255, 255, 0.18); border-radius: 50%;
}
.image-viewer .iv-download {
  position: absolute; left: 50%; bottom: 28px; top: auto; right: auto; z-index: 20;
  min-width: 116px; height: 42px; padding: 0 16px; line-height: 42px; text-align: center;
  color: #111; font-size: 15px; font-weight: 700; cursor: pointer;
  background: #fff; border: 2px solid #fff; border-radius: 22px;
  box-sizing: border-box; box-shadow: 0 2px 12px rgba(0,0,0,.45);
  transform: translateX(-50%); user-select: none;
}
.image-viewer .iv-download:hover { background: #f0f0f0; }
.pv-download-actions { display: flex; gap: 8px; width: 100%; margin: 4px 0 14px; }
.pv-download-actions button { flex: 1; min-height: 44px; padding: 10px 8px; border: 0; border-radius: 7px; font-size: 14px; font-weight: 700; cursor: pointer; text-align: center; }
.discount-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.discount-picker-grid .btn { min-height: 38px; }

.pv-download-all { color: #fff; background: #111; }
.pv-download-all:hover { background: #333; }
.pv-download-video { color: #fff; background: #b5543c; }
.pv-download-video:hover { background: #943f2b; }
@media (max-width: 420px) {
  .pv-download-actions { gap: 6px; }
  .pv-download-actions button { font-size: 13px; padding-left: 4px; padding-right: 4px; }
}
.image-viewer .iv-counter {
  position: absolute; top: 18px; left: 0; right: 0; z-index: 2;
  text-align: center; color: #fff; font-size: 13px; letter-spacing: 1px;
}
.image-viewer .iv-btn {
  position: absolute; top: 50%; margin-top: -32px; z-index: 2;
  width: 40px; height: 64px; line-height: 64px; text-align: center;
  color: #fff; font-size: 30px; cursor: pointer; user-select: none;
  background: rgba(255, 255, 255, 0.12); border-radius: 8px;
}
.image-viewer .iv-prev { left: 6px; }
.image-viewer .iv-next { right: 6px; }

/* ==================== 商品详情查看弹窗（点击名称打开） ==================== */
.product-name.clickable, .list-name.clickable { cursor: pointer; }
.product-name.clickable:hover, .list-name.clickable:hover { color: var(--primary); }
.pv-img-strip { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 10px; margin-bottom: 12px; }
.pv-thumb { position: relative; width: 72px; height: 72px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #f5f5f5; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--border); }
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-thumb .pv-video { font-size: 22px; color: #999; }
.pv-thumb .pv-idx { position: absolute; right: 2px; bottom: 2px; background: rgba(0,0,0,0.5); color: #fff; font-size: 10px; line-height: 1.4; border-radius: 4px; padding: 0 4px; }
.pv-info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pv-info-table th, .pv-info-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.pv-info-table tr:last-child th, .pv-info-table tr:last-child td { border-bottom: none; }
.pv-info-table th { width: 86px; color: var(--text-secondary); font-weight: 500; white-space: nowrap; }

/* ==================== 活动专区 ==================== */
.act-hint { font-size: 12px; color: var(--text-secondary); }
.act-zones { display: flex; flex-direction: column; gap: 18px; }
.act-zone { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.act-zone-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg); flex-wrap: wrap; cursor: pointer; user-select: none; transition: background 0.15s; }
.act-zone-head:hover { background: rgba(74,108,212,0.05); }
.act-zone-head.collapsed { border-bottom: 1px solid var(--border); }
.act-zone-head.expanded { border-bottom: none; }
.act-zone-toggle { font-size: 14px; color: var(--text-secondary); width: 16px; text-align: center; }
.act-zone-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.act-zone-icon { font-size: 20px; }
.act-zone-count { font-size: 12px; background: var(--primary); color: #fff; border-radius: 10px; padding: 1px 8px; font-weight: 600; }
.act-zone-desc { font-size: 12px; color: var(--text-secondary); flex: 1; min-width: 80px; }
.act-zone-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.act-batch-btn, .act-sort-btn { font-size: 12px; }
.act-sort-btn { white-space: nowrap; }
.act-add-btn { }
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 14px; }
.act-empty { grid-column: 1 / -1; text-align: center; color: var(--text-secondary); font-size: 13px; padding: 28px 0; }
.act-card { position: relative; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--card-bg); display: flex; flex-direction: column; }
.act-card:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.act-thumb { width: 100%; aspect-ratio: 1 / 1; background: var(--bg); overflow: hidden; position: relative; }
.act-thumb img { width: 100%; height: 100%; object-fit: cover; }
.act-badges { position: absolute; top: 5px; right: 5px; display: flex; gap: 4px; z-index: 2; }
.act-badge { padding: 1px 6px; border-radius: 8px; font-size: 10px; color: #fff; line-height: 1.5; }
.act-badge.consignment { background: var(--success); }
.act-badge.defect { background: var(--danger); }
.act-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #bbb; font-size: 12px; }
.act-card-info { padding: 6px 8px 2px; }
.act-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-itemno { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
.act-prices { display: flex; align-items: center; gap: 5px; padding: 6px 8px 10px; flex-wrap: wrap; }
.act-orig { font-size: 12px; color: var(--text-secondary); text-decoration: line-through; }
.act-orig-only { font-size: 16px; font-weight: 700; color: var(--primary); }
.act-cost { font-size: 11px; color: #888; background: #f0f0f0; border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.act-actprice { font-size: 15px; font-weight: 700; color: var(--danger); }
.act-margin { font-size: 11px; font-weight: 600; color: #fff; background: #27ae60; border-radius: 8px; padding: 1px 6px; margin-left: auto; }
.act-readonly { opacity: 0.98; }
.act-readonly .act-card-info { padding-bottom: 4px; }
/* 排序菜单选中态 */
.batch-menu-item.active { background: rgba(74,108,212,0.08); border-color: var(--primary); }
/* 选择栏内联排序选项 */
.act-sort-options { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 4px; }
.act-filter-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 4px; }
.act-filter-opt { padding: 4px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg); font-size: 13px; color: var(--text-secondary); cursor: pointer; line-height: 1.4; transition: all 0.15s; }
.act-filter-opt:hover { border-color: var(--primary); color: var(--primary); }
.act-filter-opt.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 500; }
.act-sort-opt { padding: 4px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg); font-size: 12px; color: var(--text-secondary); cursor: pointer; line-height: 1.4; transition: all 0.15s; }
.act-sort-opt:hover { border-color: var(--primary); color: var(--primary); }
.act-sort-opt.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 500; }
.act-sep { font-size: 11px; color: var(--text-secondary); }
.act-price-wrap { display: flex; align-items: center; border: 1px solid var(--danger); border-radius: 6px; overflow: hidden; }
.act-yen { color: var(--danger); font-weight: 700; font-size: 13px; padding: 0 2px 0 6px; }
.act-price-input { width: 58px; border: none; padding: 5px 6px 5px 2px; font-size: 14px; font-weight: 700; color: var(--danger); background: transparent; outline: none; }
.act-price-input::placeholder { color: #ccc; font-weight: 400; font-size: 12px; }
/* 隐藏 number input 上下箭头，保持整洁 */
.act-price-input::-webkit-outer-spin-button, .act-price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.act-price-input { -moz-appearance: textfield; }
.act-remove { position: absolute; bottom: 4px; right: 4px; width: 22px; height: 22px; border: none; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }
.act-remove:hover { background: var(--danger); }
@media (max-width: 768px) {
  .act-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .act-zone-head { padding: 12px; }
  .act-zone-actions { margin-left: 0; width: 100%; }
}
