/* 灵机易动前端样式 */
.ljyi-wrap { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text-primary); }
.ljyi-toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ljyi-toolbar input, .ljyi-toolbar select, .ljyi-recycle-form label select, .ljyi-recycle-form label input {
  padding: 8px 10px; border: 1px solid var(--border-primary); border-radius: 8px; font-size: 14px;
}
.ljyi-search { flex: 1; min-width: 200px; }
.ljyi-list { display: flex; flex-direction: column; gap: 10px; }
.ljyi-card {
  border: 1px solid var(--border-primary); border-radius: 12px; padding: 14px 16px; background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0,0,0,.05); transition: .2s;
}
.ljyi-card:hover { box-shadow: 0 6px 16px rgba(59,130,246,.15); transform: translateY(-1px); }
.ljyi-card h3 { margin: 0 0 6px; font-size: 16px; }
.ljyi-meta { color: var(--text-secondary); font-size: 13px; }
.ljyi-price { color: #ef4444; font-weight: 700; font-size: 15px; }
.ljyi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ljyi-grid .ljyi-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.ljyi-builder-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 16px; }
.ljyi-builder-cats label { display: flex; flex-direction: column; font-size: 13px; color: var(--text-secondary); gap: 4px; }
.ljyi-builder-cats select { padding: 8px; border: 1px solid var(--border-primary); border-radius: 8px; }
.ljyi-builder-summary { border-top: 1px solid var(--border-primary); padding-top: 12px; }
.ljyi-builder-items { min-height: 60px; margin-bottom: 10px; }
.ljyi-builder-items div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--border-primary); font-size: 14px; }
.ljyi-builder-total { font-size: 18px; font-weight: 700; margin: 10px 0; }
.ljyi-builder-actions input { padding: 8px; border: 1px solid var(--border-primary); border-radius: 8px; margin-right: 8px; }
.ljyi-builder-actions button, .ljyi-recycle-form button {
  padding: 8px 16px; border: 0; border-radius: 8px; background: #3b82f6; color: #fff; cursor: pointer; font-size: 14px;
}
.ljyi-builder-actions button:hover, .ljyi-recycle-form button:hover { background: #2563eb; }
.ljyi-recycle-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.ljyi-recycle-form label { display: flex; flex-direction: column; font-size: 13px; gap: 4px; }
.ljyi-recycle-result { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--bg-hover); font-size: 15px; }
.ljyi-recycle-lead { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.ljyi-recycle-lead input { padding: 8px; border: 1px solid var(--border-primary); border-radius: 8px; }
.ljyi-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--bg-hover); color: #2563eb; font-size: 12px; margin-right: 6px; }
.ljyi-loading { color: var(--text-secondary); padding: 20px; }

/* ===== 配件报价表（复刻原 IT工作台「报价查询」） ===== */
.ljyi-wrap .toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.ljyi-wrap .search-box { position: relative; flex: 1; min-width: 200px; }
.ljyi-wrap .search-box input { width: 100%; padding: 8px 12px; border: 1px solid var(--border-primary); border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.ljyi-wrap .search-box input:focus { outline: none; border-color: #3b82f6; }
.ljyi-wrap .filter-bar-select { padding: 8px 12px; background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: 4px; color: var(--text-primary); font-size: 13px; min-width: 120px; }
.ljyi-wrap .filter-bar-select:focus { outline: none; border-color: #3b82f6; }
.ljyi-wrap .card { background: var(--bg-card); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.03); margin-bottom: 14px; }
.ljyi-wrap .card-title { font-size: 16px; font-weight: 700; color: #3b82f6; padding: 12px 14px; border-bottom: 1px solid var(--border-primary); display: flex; align-items: center; gap: 8px; }
.ljyi-wrap .card-title small { font-weight: 400; color: var(--text-secondary); font-size: 13px; margin-left: auto; }
.ljyi-wrap .data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ljyi-wrap .data-table th { background: #3b82f6; color: white; padding: 3px 14px; font-weight: 600; text-align: left; font-size: 12px; height: 22px; line-height: 22px; }
.ljyi-wrap .data-table td { padding: 2px 14px; border-bottom: 1px solid var(--border-primary); vertical-align: middle; font-size: 13px; height: 24px; line-height: 28px; }
.ljyi-wrap .data-table tr:last-child td { border-bottom: none; }
.ljyi-wrap .data-table tbody tr:hover { background: var(--bg-hover); }
.ljyi-wrap .pricing-actions { display: flex; gap: 4px; align-items: center; white-space: nowrap; }
/* 成本价默认锁定隐藏（仅成本列，按锁定切换） */
.ljyi-wrap .cost-locked .cost-col { display: none !important; }
/* 操作列仅对管理员显示（访客隐藏，避免空列） */
.ljyi-wrap .data-table:not(.is-admin) .action-col { display: none !important; }
.ljyi-wrap .cost-lock-btn { background: none; border: 1px solid rgba(26,115,232,0.3); border-radius: 4px; padding: 2px 8px; cursor: pointer; font-size: 14px; color: #3b82f6; transition: all .2s; margin-left: auto; }
.ljyi-wrap .cost-lock-btn:hover { background: rgba(59,130,246,0.25); }
/* 分类彩色标签 */
.ljyi-wrap .tag { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 12px; line-height: 18px; }
.ljyi-wrap .tag-cpu { background: rgba(198,40,40,0.15); color: #ef4444; }
.ljyi-wrap .tag-motherboard { background: rgba(49,108,244,0.15); color: var(--text-primary); }
.ljyi-wrap .tag-memory { background: rgba(46,125,50,0.15); color: #10b981; }
.ljyi-wrap .tag-storage { background: rgba(124,77,255,0.15); color: #7c4dff; }
.ljyi-wrap .tag-gpu { background: rgba(255,111,0,0.15); color: #f59e0b; }
.ljyi-wrap .tag-cooler { background: rgba(0,150,199,0.15); color: #0096c7; }
.ljyi-wrap .tag-psu { background: rgba(255,160,0,0.15); color: #ff9800; }
.ljyi-wrap .tag-case { background: rgba(93,64,55,0.15); color: #5d4037; }
.ljyi-wrap .tag-display { background: rgba(0,150,199,0.15); color: #0096c7; }
.ljyi-wrap .tag-other { background: var(--bg-hover); color: var(--text-secondary); }
/* 文字按钮 */
.ljyi-wrap .btn-txt { background: none; border: none; color: #3b82f6; cursor: pointer; font-size: 13px; padding: 2px 6px; }
.ljyi-wrap .btn-txt:hover { color: #3b82f6; text-decoration: underline; }
.ljyi-wrap .btn-txt.danger { color: #ef4444; }
.ljyi-wrap .btn-txt.danger:hover { color: #dc2626; }

/* ===== 页面内「添加配件」弹窗 ===== */
.ljyi-wrap .ljyi-btn-primary {
  padding: 8px 16px; border: 0; border-radius: 8px; background: #3b82f6; color: #fff;
  cursor: pointer; font-size: 14px; margin-bottom: 14px;
}
.ljyi-wrap .ljyi-btn-primary:hover { background: #2563eb; }
.ljyi-wrap .ljyi-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.ljyi-wrap .ljyi-modal.open { display: flex; align-items: center; justify-content: center; }
.ljyi-wrap .ljyi-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); }
.ljyi-wrap .ljyi-modal-box {
  position: relative; z-index: 1; background: var(--bg-card); width: min(560px, 92vw);
  max-height: 84vh; overflow-y: auto; border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,.22);
}
.ljyi-wrap .ljyi-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border-primary);
  position: sticky; top: 0; background: var(--bg-card); border-radius: 12px 12px 0 0; z-index: 2;
}
.ljyi-wrap .ljyi-modal-head h3 { margin: 0; font-size: 14px; color: var(--text-primary); }
.ljyi-wrap .ljyi-modal-close {
  border: none; background: none; font-size: 16px; line-height: 1; color: var(--text-secondary);
  cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.ljyi-wrap .ljyi-modal-close:hover { background: var(--bg-hover); color: var(--text-secondary); }
.ljyi-wrap .pricing-add-form { padding: 14px 16px 16px; }
.ljyi-wrap .ljyi-modal .ljyi-btn-ghost {
  padding: 6px 14px; border: 1px solid var(--border-primary); border-radius: 6px; background: var(--bg-card); color: var(--text-secondary);
  cursor: pointer; font-size: 13px;
}
.ljyi-wrap .ljyi-modal .ljyi-btn-ghost:hover { background: var(--bg-hover); }

/* 弹窗表单网格 */
.ljyi-wrap .paf-grid { display: grid; gap: 10px; margin-bottom: 10px; }
.ljyi-wrap .paf-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ljyi-wrap .paf-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ljyi-wrap .paf-grid label, .ljyi-wrap .paf-full {
  display: flex; flex-direction: column; font-size: 12px; color: var(--text-secondary); gap: 4px;
}
.ljyi-wrap .paf-full { width: 100%; margin-bottom: 10px; }
.ljyi-wrap .pricing-add-form input, .ljyi-wrap .pricing-add-form select, .ljyi-wrap .pricing-add-form textarea {
  padding: 6px 10px; border: 1px solid var(--border-primary); border-radius: 6px; font-size: 12px;
  box-sizing: border-box; width: 100%; font-family: inherit; background: var(--bg-card);
}
.ljyi-wrap .pricing-add-form input:focus, .ljyi-wrap .pricing-add-form select:focus, .ljyi-wrap .pricing-add-form textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,.08); }

/* 品牌输入 + 自动识别 */
.ljyi-wrap .paf-input-wrap { display: flex; gap: 6px; }
.ljyi-wrap .paf-input-wrap input { flex: 1; }
.ljyi-wrap .ljyi-btn-text {
  padding: 0 8px; border: 1px solid #3b82f6; border-radius: 6px; background: var(--bg-hover);
  color: #3b82f6; font-size: 11px; cursor: pointer; white-space: nowrap;
}
.ljyi-wrap .ljyi-btn-text:hover { background: var(--bg-hover); }

/* 结构化参数区 */
.ljyi-wrap .paf-spec-section { margin-bottom: 10px; }
.ljyi-wrap .paf-spec-title {
  font-size: 12px; font-weight: 600; color: #3b82f6; margin-bottom: 8px; padding-bottom: 5px;
  border-bottom: 1px solid var(--border-primary);
}

/* 图片上传 */
.ljyi-wrap .paf-images-section { margin-bottom: 10px; }
.ljyi-wrap .paf-images-section > label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; display: block; }
.ljyi-wrap .paf-images-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ljyi-wrap .paf-image-add {
  aspect-ratio: 1; border: 1px dashed var(--border-input); border-radius: 6px; background: var(--bg-hover);
  color: var(--text-secondary); font-size: 12px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; min-height: 68px;
}
.ljyi-wrap .paf-image-add:hover { border-color: #3b82f6; color: #3b82f6; background: var(--bg-hover); }
.ljyi-wrap .paf-image-item {
  position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--border-primary); background: var(--bg-hover); min-height: 68px;
}
.ljyi-wrap .paf-image-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ljyi-wrap .paf-image-del {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ljyi-wrap .paf-image-del:hover { background: rgba(239,68,68,.9); }
.ljyi-wrap .paf-images-tip { font-size: 10px; color: var(--text-secondary); margin: 4px 0 0; }

.ljyi-wrap .paf-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.ljyi-wrap .paf-actions button {
  padding: 6px 14px; border: 0; border-radius: 6px; background: #3b82f6; color: #fff; cursor: pointer; font-size: 13px;
}
.ljyi-wrap .paf-actions button:hover { background: #2563eb; }
.ljyi-wrap .paf-actions button:disabled { opacity: .6; cursor: default; }
.ljyi-wrap .paf-msg { font-size: 12px; margin-right: auto; }

@media (max-width: 640px) {
  .ljyi-wrap .paf-grid-2, .ljyi-wrap .paf-grid-3 { grid-template-columns: 1fr; }
  .ljyi-wrap .paf-images-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 装机配置器（复刻原 IT工作台「写配置」） ========== */
.ljyi-configurator .builder-wrap {
  display: flex;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.ljyi-configurator .builder-left {
  width: 130px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-radius: 0;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  box-shadow: inset -1px 0 0 0 var(--border-primary);
}
.ljyi-configurator .builder-main {
  flex: 4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 0;
  box-shadow: inset -1px 0 0 0 var(--border-primary);
}
.ljyi-configurator .builder-right {
  flex: 2.2;
  min-width: 360px;
  max-width: 640px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  background: var(--bg-card);
}
.ljyi-configurator .current-config-panel {
  width: 100%;
  background: var(--bg-card);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  box-shadow: inset 0 -1px 0 0 var(--border-primary);
}
.ljyi-configurator .saved-config-panel {
  width: 100%;
  background: var(--bg-card);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-left: 0;
  height: 260px;
}
.ljyi-configurator .saved-config-panel > .card {
  border: none;
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}
.ljyi-configurator .saved-config-panel .saved-config-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 10px;
}
.ljyi-configurator .saved-config-panel .card-title {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-primary);
  font-size: 14px;
  font-weight: 700;
  color: #3b82f6;
}
.ljyi-configurator .builder-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.ljyi-configurator .builder-cat:hover { background: var(--bg-hover); color: #3b82f6; }
.ljyi-configurator .builder-cat.active {
  background: rgba(13,71,161,0.08);
  color: #3b82f6;
  border-left-color: #3b82f6;
  font-weight: 600;
}
.ljyi-configurator .builder-cat-icon { font-size: 16px; width: 20px; text-align: center; }
.ljyi-configurator .builder-cat-check { margin-left: auto; font-size: 14px; }
.ljyi-configurator .builder-search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-primary);
}
.ljyi-configurator .builder-search input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
}
.ljyi-configurator .builder-search input:focus { outline: none; border-color: #3b82f6; }
.ljyi-configurator .builder-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  max-height: calc(100vh - 240px);
}
.ljyi-configurator .builder-item {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 6px;
  border: 1px solid var(--border-primary);
  transition: all 0.15s;
}
.ljyi-configurator .builder-item:hover { border-color: #3b82f6; background: var(--bg-hover); }
.ljyi-configurator .builder-item.selected { border-color: #3b82f6; background: rgba(13,71,161,0.06); }
.ljyi-configurator .builder-item.low-stock { background: var(--color-danger-bg) !important; border-color: #ffcdd2 !important; }
.ljyi-configurator .builder-item.low-stock .builder-item-name { color: #ef4444; }
.ljyi-configurator .builder-item-name { font-size: 13px; font-weight: 600; color: #3b82f6; margin-bottom: 2px; }
.ljyi-configurator .builder-item-price { font-size: 12px; color: #10b981; font-weight: 600; }
.ljyi-configurator .builder-item-cost { font-size: 11px; color: var(--text-secondary); }
.ljyi-configurator .builder-item-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 12px;
}

/* 右侧配置面板 */
.ljyi-configurator .config-panel-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.ljyi-configurator .config-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #3b82f6;
}
.ljyi-configurator .config-panel-meta {
  font-size: 12px;
  color: var(--text-secondary);
}
.ljyi-configurator .ljyi-btn-pricing {
  flex-shrink: 0;
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #3b82f6;
  background: var(--bg-card);
  color: #3b82f6;
  cursor: pointer;
  transition: all .15s;
}
.ljyi-configurator .ljyi-btn-pricing:hover {
  background: #3b82f6;
  color: #fff;
}
.ljyi-configurator .config-panel-body {
  flex: 0 0 auto;
  overflow-y: visible;
  padding: 8px 12px;
}
.ljyi-configurator .config-row {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 6px;
  border: 1px solid var(--border-primary);
  transition: all 0.15s;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 10px;
}
.ljyi-configurator .config-row:hover { background: var(--bg-hover); }
.ljyi-configurator .config-row.has-item { background: rgba(46,125,50,0.06); border-color: rgba(46,125,50,0.2); }
.ljyi-configurator .config-row-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.ljyi-configurator .config-row-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ljyi-configurator .config-row-empty { font-size: 12px; color: var(--text-secondary); }
.ljyi-configurator .config-row-price { font-size: 13px; color: #10b981; font-weight: 600; }
.ljyi-configurator .config-warn {
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 5px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ljyi-configurator .config-warn-item { display: flex; align-items: flex-start; gap: 5px; line-height: 1.5; }
.ljyi-configurator .config-warn-item.compat-error { color: #ef4444; }
.ljyi-configurator .config-warn-item.compat-warn { color: #b8860b; }
.ljyi-configurator .config-warn-item.compat-ok { color: #10b981; }
.ljyi-configurator .config-warn.error-mode { background: var(--color-danger-bg); }
.ljyi-configurator .config-warn.warn-mode { background: var(--color-warning-bg); }
.ljyi-configurator .config-warn.ok-mode { background: var(--color-success-bg); }
.ljyi-configurator .config-warn-icon { flex-shrink: 0; font-size: 12px; }
.ljyi-configurator .config-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-primary);
  background: var(--bg-hover) !important;
}
.ljyi-configurator .config-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.ljyi-configurator .config-total-label { font-size: 16px; color: #3b82f6; font-weight: 700; }
.ljyi-configurator .config-total-price {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ljyi-configurator .config-power { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; }
.ljyi-configurator .config-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ljyi-configurator .config-actions .btn {
  padding: 8px 4px;
  font-size: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity .15s, transform .1s;
}
.ljyi-configurator .config-actions .btn:hover { opacity: .9; }
.ljyi-configurator .config-actions .btn:active { transform: translateY(1px); }

/* 已保存方案 */
.ljyi-configurator .saved-config-container {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 4px 10px;
  flex: 1;
}
.ljyi-configurator .saved-config-container::-webkit-scrollbar { width: 5px; }
.ljyi-configurator .saved-config-container::-webkit-scrollbar-track { background: transparent; }
.ljyi-configurator .saved-config-container::-webkit-scrollbar-thumb { background: var(--border-input); border-radius: 3px; }
.ljyi-configurator .saved-card {
  position: relative;
  padding: 10px 34px 10px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.ljyi-configurator .saved-card:hover { border-color: #3b82f6; background: var(--bg-hover); }
.ljyi-configurator .saved-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ljyi-configurator .saved-card-parts {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 5px;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ljyi-configurator .saved-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ljyi-configurator .saved-card-date { font-size: 11px; color: var(--text-secondary); }
.ljyi-configurator .saved-card-price { font-size: 12px; color: #10b981; font-weight: 600; }
.ljyi-configurator .saved-card-del {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  font-size: 11px;
  color: #ef4444;
  background: var(--bg-card);
  border: 1px solid #ffcdd2;
  border-radius: 4px;
  cursor: pointer;
}
.ljyi-configurator .saved-card-del:hover { background: var(--color-danger-bg); }

/* 配件库管理页面（内嵌视图，非弹窗） */
.ljyi-pricing-page {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ljyi-pricing-page-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-primary);
  flex-shrink: 0;
}
.ljyi-pricing-searchbar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ljyi-pricing-searchbar .search-box {
  flex: 1;
  min-width: 120px;
}
.ljyi-pricing-page-body {
  padding: 16px 18px 30px;
}

/* 配件库页面头部元素统一高度/字号/圆角/对齐 */
.ljyi-pricing-page-head .ljyi-add-part-btn,
.ljyi-pricing-page-head #ljyi-pricing-page-back,
.ljyi-pricing-searchbar .search-box input,
.ljyi-pricing-searchbar .filter-bar-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 6px;
  box-sizing: border-box;
  height: 28px;
  line-height: 1;
}

.ljyi-add-part-btn {
  margin-bottom: 0;
  border: 1px solid var(--border-input);
  background: var(--bg-hover);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .15s;
}
.ljyi-add-part-btn:hover {
  background: var(--bg-hover);
}

#ljyi-pricing-page-back {
  border: 1px solid var(--border-primary);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
#ljyi-pricing-page-back:hover { background: var(--bg-hover); }

.ljyi-pricing-searchbar .search-box input,
.ljyi-pricing-searchbar .filter-bar-select {
  border: 1px solid var(--border-primary);
}
.ljyi-pricing-searchbar .search-box input:focus,
.ljyi-pricing-searchbar .filter-bar-select:focus { outline: none; border-color: #3b82f6; }

/* 配件库页面：报价表字体整体缩小，与页面协调 */
.ljyi-pricing-page-body .card-title {
  font-size: 14px;
  padding: 10px 14px;
}
.ljyi-pricing-page-body .card-title small {
  font-size: 11px;
}
.ljyi-pricing-page-body .data-table {
  font-size: 12px;
}
.ljyi-pricing-page-body .data-table th {
  font-size: 11px;
  height: 20px;
  line-height: 20px;
  padding: 2px 12px;
}
.ljyi-pricing-page-body .data-table td {
  font-size: 12px;
  height: 22px;
  line-height: 24px;
  padding: 2px 12px;
}
.ljyi-pricing-page-body .data-table .tag {
  font-size: 11px;
  line-height: 16px;
}

@media (max-width: 768px) {
  .ljyi-pricing-page-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .ljyi-pricing-searchbar {
    width: 100%;
    order: 3;
  }
  .ljyi-pricing-page-head #ljyi-pricing-page-back {
    order: 2;
    margin-left: auto;
  }
}

/* 响应式：小屏上下堆叠 */
@media (max-width: 1024px) {
  .ljyi-configurator .builder-wrap { flex-direction: column; border-radius: 8px; }
  .ljyi-configurator .builder-left {
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    box-shadow: inset 0 -1px 0 0 var(--border-primary);
  }
  .ljyi-configurator .builder-left .builder-cat { flex: 1; min-width: 80px; }
  .ljyi-configurator .builder-main {
    box-shadow: inset 0 -1px 0 0 var(--border-primary);
  }
  .ljyi-configurator .builder-right {
    flex: none;
    max-width: none;
    min-width: auto;
    flex-direction: column;
  }
  .ljyi-configurator .current-config-panel,
  .ljyi-configurator .saved-config-panel { width: auto; margin-left: 0; }
  .ljyi-configurator .saved-config-panel { margin-top: 0; max-height: 240px; }
}

/* 导出配置单预览弹窗（卡片式） */
.ljyi-wrap .ljyi-export-box { width: 470px; max-height: 78vh; overflow: visible; }
.ljyi-wrap .ljyi-export-box .ljyi-modal-head { padding: 8px 10px; }
.ljyi-wrap .ljyi-export-box .ljyi-modal-head h3 { font-size: 12px; }
.ljyi-wrap .ljyi-export-body { padding: 0; }
.ljyi-wrap .ljyi-export-canvas-wrap {
  background: transparent; border-radius: 0; padding: 0; overflow: hidden; max-height: calc(78vh - 82px);
  box-shadow: none;
  display: flex; justify-content: center; align-items: flex-start;
}
.ljyi-wrap .ljyi-export-doc { display: block; width: 100%; text-align: center; }
.ljyi-wrap .ljyi-export-scaler {
  display: inline-block; transform-origin: top center; will-change: transform;
}
.ljyi-wrap .ljyi-export-actions { display: flex; gap: 3px; margin-top: 2px; padding: 0 1px; justify-content: center; }
.ljyi-wrap .ljyi-export-btn {
  flex: 0 0 auto; padding: 2px 10px; border: none; border-radius: 9999px; cursor: pointer;
  font-size: 9px; font-weight: 600; color: #fff; transition: transform .06s ease, filter .15s ease;
}
.ljyi-wrap .ljyi-export-btn:active { transform: translateY(1px); }
.ljyi-wrap .ljyi-export-download { background: #3b82f6; }
.ljyi-wrap .ljyi-export-share { background: var(--bg-hover); color: var(--text-secondary); }
.ljyi-wrap .ljyi-export-btn:hover { filter: brightness(1.03); }
.ljyi-wrap .ljyi-export-msg { margin-top: 2px; min-height: 12px; font-size: 10px; color: #16a34a; text-align: center; }
@media (max-width: 480px) {
  .ljyi-wrap .ljyi-export-box .ljyi-modal-head { padding: 7px 8px; }
  .ljyi-wrap .ljyi-export-btn { font-size: 9px; padding: 2px 10px; }
}

/* 分享视图：打开 #cfg= 链接时只展示配置单，全屏覆盖主题头部/底部 */
.ljyi-wrap .ljyi-share-view { display: none; }
.ljyi-wrap .ljyi-share-view.open {
  display: flex; position: fixed; inset: 0; z-index: 99999;
  flex-direction: column; align-items: center; overflow: auto;
  background: var(--bg-hover); padding: 0; margin: 0;
}
.ljyi-wrap .ljyi-share-top {
  width: 100%; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; box-sizing: border-box;
}
.ljyi-wrap .ljyi-share-brand { font-weight: 700; color: #3b82f6; font-size: 15px; }
.ljyi-wrap .ljyi-share-open { font-size: 12px; color: var(--text-secondary); text-decoration: none; white-space: nowrap; }
.ljyi-wrap .ljyi-share-open:hover { text-decoration: underline; }
.ljyi-wrap .ljyi-share-canvas-wrap {
  width: 100%; flex: 1 1 auto; min-height: 0;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 4px 12px 0; box-sizing: border-box; overflow: hidden;
}
.ljyi-wrap .ljyi-share-actions {
  width: 100%; flex: none; display: flex; gap: 10px; justify-content: center;
  padding: 14px 16px 22px; box-sizing: border-box;
}
.ljyi-wrap .ljyi-share-actions .ljyi-export-btn { max-width: 200px; }

/* ========== 软件工具导航（[ljyi_tools] 短代码，复刻官网直达） ========== */
/* 以 14px 为基准字号，与主题头部菜单栏协调；标题/卡片名略大，辅助文字 13px */
.ljyi-wrap .ljyi-tools { max-width: 1100px; margin: 0 auto; padding: 20px 0 40px; font-size: 14px; line-height: 1.6; }
.ljyi-wrap .ljyi-tools-edit { flex: none; }
.ljyi-wrap .ljyi-tools-edit-link { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 9999px; border: none; cursor: pointer; font-family: inherit; background: var(--bg-hover); color: #3b82f6; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s ease; }
.ljyi-wrap .ljyi-tools-edit-link:hover { background: var(--border-primary); }
/* 管理视图：点击「管理」后切换为主视图（替换搜索/tabs/卡片网格，而非下方追加） */
.ljyi-wrap .ljyi-tools-admin { display: none; padding: 2px 0 0; }
/* 管理面板顶部：左「工具列表 + 添加」，右「共N个工具 + 收起」 */
.ljyi-wrap .ljyi-tools-admin-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.ljyi-wrap .ljyi-tools-admin-bar-left { display: flex; align-items: center; gap: 12px; }
.ljyi-wrap .ljyi-tools-admin-bar-right { display: flex; align-items: center; gap: 12px; }
.ljyi-wrap .ljyi-tools-admin-title { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.ljyi-wrap .ljyi-tools-admin-count { font-size: 14px; color: var(--text-secondary); }
.ljyi-wrap .ljyi-tools-admin-add { border: none; cursor: pointer; background: #3b82f6; color: #fff; padding: 7px 16px; border-radius: 6px; font-size: 14px; font-weight: 600; font-family: inherit; transition: filter .15s; }
.ljyi-wrap .ljyi-tools-admin-add:hover { filter: brightness(.95); }
.ljyi-wrap .ljyi-tools-admin-cat-btn { border: 1px solid var(--border-input); cursor: pointer; background: var(--bg-card); color: var(--text-secondary); padding: 6px 15px; border-radius: 6px; font-size: 14px; font-weight: 600; font-family: inherit; transition: background .15s; }
.ljyi-wrap .ljyi-tools-admin-cat-btn:hover { background: var(--bg-hover); }
.ljyi-wrap .ljyi-tools-admin-close { border: none; cursor: pointer; background: var(--border-primary); color: var(--text-secondary); padding: 6px 16px; border-radius: 9999px; font-size: 14px; font-weight: 600; }
.ljyi-wrap .ljyi-tools-admin-loading, .ljyi-wrap .ljyi-tools-admin-msg { padding: 20px; text-align: center; color: var(--text-secondary); font-size: 14px; }
.ljyi-wrap .ljyi-tools-admin-close:hover { background: var(--border-input); }
.ljyi-wrap .ljyi-tools-admin-section { margin-bottom: 18px; }
.ljyi-wrap .ljyi-tools-admin-sec-title { font-size: 14px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.ljyi-wrap .ljyi-tools-admin-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ljyi-wrap .ljyi-tools-admin-cat { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: 8px; font-size: 14px; }
.ljyi-wrap .ljyi-tools-admin-cat-name em { color: var(--text-secondary); font-style: normal; font-size: 12px; }
.ljyi-wrap .ljyi-tools-admin-catgroup { margin-bottom: 12px; }
.ljyi-wrap .ljyi-tools-admin-catgroup-title { font-size: 13px; font-weight: 700; color: #3b82f6; margin-bottom: 6px; }
.ljyi-wrap .ljyi-tools-admin-links { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; max-height: 360px; overflow-y: auto; }
.ljyi-wrap .ljyi-tools-admin-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: 8px; font-size: 14px; }
.ljyi-wrap .ljyi-tools-admin-link-name { font-weight: 600; color: var(--text-primary); min-width: 120px; }
.ljyi-wrap .ljyi-tools-admin-link-url { color: var(--text-secondary); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ljyi-wrap .ljyi-tools-admin-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ljyi-wrap .ljyi-tools-admin-form input, .ljyi-wrap .ljyi-tools-admin-form select { padding: 8px 12px; border: 1px solid var(--border-input); border-radius: 8px; font-size: 14px; font-family: inherit; }
.ljyi-wrap .ljyi-tools-admin-form input[type="text"] { min-width: 160px; }
.ljyi-wrap .ljyi-tools-admin-form button { border: none; cursor: pointer; background: #3b82f6; color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.ljyi-wrap .ljyi-tools-admin-form button:hover { filter: brightness(.95); }
.ljyi-wrap .ljyi-tools-admin-del { border: none; cursor: pointer; background: var(--color-danger-bg); color: #dc2626; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.ljyi-wrap .ljyi-tools-admin-del:hover { background: var(--color-danger-bg); }
.ljyi-wrap .ljyi-tools-admin-edit { border: none; cursor: pointer; background: var(--bg-hover); color: #0284c7; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.ljyi-wrap .ljyi-tools-admin-edit:hover { background: var(--bg-hover); }
.ljyi-wrap .ljyi-tools-admin-empty { color: var(--text-secondary); font-size: 13px; padding: 2px 4px; }
.ljyi-wrap .ljyi-tools-search { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ljyi-wrap .ljyi-tools-search input {
  flex: 1 1 auto; min-width: 180px; max-width: 360px; padding: 10px 16px;
  border: 1px solid var(--border-primary); border-radius: 9999px; background: var(--bg-card);
  font-size: 14px; color: var(--text-primary); outline: none; transition: border-color .2s, box-shadow .2s;
}
.ljyi-wrap .ljyi-tools-search input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.ljyi-wrap .ljyi-tools-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 0 14px; }
.ljyi-wrap .ljyi-tools-tab {
  padding: 6px 14px; border-radius: 9999px; font-size: 14px; color: var(--text-secondary);
  background: var(--bg-hover); border: 1px solid var(--border-primary); cursor: pointer;
  white-space: nowrap; transition: all .2s; user-select: none;
}
.ljyi-wrap .ljyi-tools-tab:hover { background: var(--border-primary); color: var(--text-primary); }
.ljyi-wrap .ljyi-tools-tab.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.ljyi-wrap .ljyi-tools-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: start;
}
.ljyi-wrap .ljyi-tools-card {
  display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden;
  padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: 10px;
  cursor: pointer; transition: all .2s;
}
.ljyi-wrap .ljyi-tools-card:hover {
  border-color: #3b82f6; background: var(--bg-hover); transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25,118,210,.12);
}
.ljyi-wrap .ljyi-tools-badge {
  position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 600; color: #fff;
  padding: 1px 6px; border-radius: 4px;
  background: linear-gradient(135deg, #d4a017, #f0c040);
  box-shadow: 0 1px 2px rgba(212,160,23,.3); letter-spacing: .3px;
}
.ljyi-wrap .ljyi-tools-icon {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 19px; font-weight: 700;
}
/* 真实网站图标（favicon）：白底圆角卡片 + 完整显示，避免透明图在灰底上发虚 */
.ljyi-wrap .ljyi-tools-favicon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  object-fit: contain; background: var(--bg-card);
  border: 1px solid var(--border-primary); box-shadow: 0 1px 3px rgba(15,23,42,.08);
  padding: 5px; display: inline-flex;
}
.ljyi-wrap .ljyi-tools-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ljyi-wrap .ljyi-tools-name {
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ljyi-wrap .ljyi-tools-desc {
  font-size: 13px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ljyi-wrap .ljyi-tools-empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: var(--text-secondary); font-size: 14px; }
@media (max-width: 900px) { .ljyi-wrap .ljyi-tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ljyi-wrap .ljyi-tools-grid { grid-template-columns: 1fr; } }

/* 管理面板：表格形式（仿截图工具列表） */
.ljyi-wrap .ljyi-tools-admin-toolbar { display: flex; align-items: center; margin-bottom: 12px; }
.ljyi-wrap .ljyi-tools-admin-filter { padding: 8px 14px; border: 1px solid var(--border-input); border-radius: 8px; font-size: 14px; font-family: inherit; background: var(--bg-card); }
.ljyi-wrap .ljyi-tools-admin-tablewrap { overflow-x: auto; border: 1px solid var(--border-primary); border-radius: 10px; min-height: 320px; background: var(--bg-card); }
.ljyi-wrap .ljyi-tools-admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ljyi-wrap .ljyi-tools-admin-table thead th { background: #2563eb; color: #fff; font-weight: 600; text-align: left; padding: 11px 16px; font-size: 14px; white-space: nowrap; }
.ljyi-wrap .ljyi-tools-admin-table thead th:first-child { border-top-left-radius: 10px; }
.ljyi-wrap .ljyi-tools-admin-table thead th:last-child { border-top-right-radius: 10px; }
.ljyi-wrap .ljyi-tools-admin-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border-primary); vertical-align: middle; }
.ljyi-wrap .ljyi-tools-admin-table tbody tr:last-child td { border-bottom: none; }
.ljyi-wrap .ljyi-tools-admin-table tbody tr:hover { background: var(--bg-hover); }
.ljyi-wrap .ljyi-tools-admin-table .ljyi-tools-favicon { width: 34px; height: 34px; border-radius: 8px; padding: 4px; }
.ljyi-wrap .ljyi-tools-admin-table .col-rec,
.ljyi-wrap .ljyi-tools-admin-table .col-icon,
.ljyi-wrap .ljyi-tools-admin-table .col-free,
.ljyi-wrap .ljyi-tools-admin-table .col-cat,
.ljyi-wrap .ljyi-tools-admin-table .col-act { white-space: nowrap; text-align: center; }
.ljyi-wrap .ljyi-tools-admin-table .col-name { text-align: left; }
.ljyi-wrap .ljyi-tools-official-tag { display: inline-block; vertical-align: middle; margin-right: 6px; font-size: 11px; font-weight: 600; color: #8a6d1a; background: linear-gradient(135deg, #f0c040, #d4a017); padding: 1px 7px; border-radius: 4px; letter-spacing: .3px; box-shadow: 0 1px 2px rgba(212,160,23,.3); }
.ljyi-wrap .ljyi-tools-rec-text { display: inline-block; color: #22c55e; font-size: 14px; font-weight: 600; cursor: pointer; }
.ljyi-wrap .ljyi-tools-rec-off { display: inline-block; color: var(--text-secondary); cursor: pointer; font-size: 14px; padding: 2px 6px; }
.ljyi-wrap .ljyi-tools-icon { display: inline-flex; width: 36px; height: 36px; border-radius: 8px; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 700; }
.ljyi-wrap .ljyi-tools-row-name { font-weight: 600; color: var(--text-primary); font-size: 15px; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.ljyi-wrap .ljyi-tools-row-name:hover { color: #2563eb; }
.ljyi-wrap .ljyi-tools-link-icon { color: var(--text-secondary); flex-shrink: 0; }
.ljyi-wrap .ljyi-tools-row-name:hover .ljyi-tools-link-icon { color: #2563eb; }
.ljyi-wrap .ljyi-tools-row-desc { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }
.ljyi-wrap .ljyi-tools-free-badge { display: inline-block; background: var(--color-success-bg); color: #16a34a; font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.ljyi-wrap .ljyi-tools-cat-tag { display: inline-block; font-size: 13px; padding: 3px 10px; border-radius: 999px; line-height: 1.5; }
.ljyi-wrap .ljyi-tools-admin-table .col-act { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ljyi-wrap .ljyi-tools-admin-table .ljyi-tools-admin-edit { border: none; cursor: pointer; background: #3b82f6; color: #fff; padding: 5px 14px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.ljyi-wrap .ljyi-tools-admin-table .ljyi-tools-admin-edit:hover { filter: brightness(.95); }

/* 添加 / 编辑网址弹窗（居中对话框，不覆盖整页管理视图） */
.ljyi-tools-modal-backdrop {
  position: fixed; inset: 0; z-index: 99995;
  display: none; align-items: center; justify-content: center;
  background: rgba(15,23,42,.45); padding: 20px; box-sizing: border-box;
}
.ljyi-tools-modal {
  width: 100%; max-width: 460px; background: var(--bg-card); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(15,23,42,.30); overflow: hidden;
  animation: ljyi-modal-in .18s ease;
}
@keyframes ljyi-modal-in { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ljyi-tools-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border-primary); }
.ljyi-tools-modal-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.ljyi-tools-modal-close { border: none; background: none; cursor: pointer; font-size: 22px; line-height: 1; color: var(--text-secondary); padding: 0 4px; }
.ljyi-tools-modal-close:hover { color: var(--text-secondary); }
.ljyi-tools-modal-form { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.ljyi-tools-modal-field { display: flex; flex-direction: column; gap: 6px; }
.ljyi-tools-modal-field > span { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.ljyi-tools-modal-field input, .ljyi-tools-modal-field select { padding: 10px 14px; border: 1px solid var(--border-input); border-radius: 8px; font-size: 14px; font-family: inherit; width: 100%; box-sizing: border-box; }
.ljyi-tools-modal-field input:focus, .ljyi-tools-modal-field select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); outline: none; }
.ljyi-tools-modal-rec { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.ljyi-tools-modal-rec input { width: auto; }
.ljyi-tools-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.ljyi-tools-modal-cancel { border: 1px solid var(--border-input); background: var(--bg-card); color: var(--text-secondary); padding: 9px 20px; border-radius: 8px; font-size: 14px; cursor: pointer; font-family: inherit; }
.ljyi-tools-modal-cancel:hover { background: var(--bg-hover); }
.ljyi-tools-modal-save { border: none; background: #3b82f6; color: #fff; padding: 9px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ljyi-tools-modal-save:hover { filter: brightness(.95); }
.ljyi-tools-modal-save:disabled { opacity: .6; cursor: default; }
/* 自定义图标选择 */
.ljyi-tools-icon-field { gap: 8px; }
.ljyi-tools-icon-pick { display: flex; align-items: center; gap: 8px; }
.ljyi-tools-icon-preview { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.ljyi-tools-modal-icon-btn, .ljyi-tools-modal-icon-clear { border: 1px solid var(--border-input); background: var(--bg-card); color: var(--text-secondary); padding: 8px 14px; border-radius: 8px; font-size: 13px; cursor: pointer; font-family: inherit; }
.ljyi-tools-modal-icon-btn:hover, .ljyi-tools-modal-icon-clear:hover { background: var(--bg-hover); }
.ljyi-tools-modal-hint { font-size: 12px; color: var(--text-secondary); }
/* 分类管理弹窗 */
.ljyi-tools-cat-list { max-height: 280px; overflow-y: auto; padding: 10px 22px 0; }
.ljyi-tools-cat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-primary); }
.ljyi-tools-cat-row:last-child { border-bottom: none; }
.ljyi-tools-cat-info { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ljyi-tools-cat-info .ljyi-tools-cat-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.ljyi-tools-cat-info code { font-size: 13px; color: var(--text-secondary); background: var(--bg-hover); padding: 2px 6px; border-radius: 4px; }
.ljyi-tools-cat-empty { padding: 26px 20px; text-align: center; color: var(--text-secondary); font-size: 14px; }

/* 配件列表右键菜单（京东查价 / 详细参数） */
.ljyi-part-menu { position: fixed; z-index: 999999; min-width: 160px; background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: 8px; box-shadow: 0 8px 24px rgba(15,23,42,.18); padding: 4px; display: none; }
.ljyi-part-menu.open { display: block; }
.ljyi-part-menu-item { padding: 9px 14px; font-size: 13px; color: var(--text-primary); border-radius: 6px; cursor: pointer; white-space: nowrap; user-select: none; }
.ljyi-part-menu-item:hover { background: var(--bg-hover); }

/* 配件库管理表格：建议售价行内改价输入框 */
.ljyi-suggest-edit {
  width: 92px; padding: 4px 6px; font-size: 13px; text-align: center;
  color: var(--text-primary); background: var(--bg-card);
  border: 1px solid var(--border-input); border-radius: 6px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ljyi-suggest-edit:focus { border-color: var(--color-link); box-shadow: 0 0 0 2px var(--color-link-bg); }
.ljyi-suggest-edit:disabled { opacity: .6; cursor: not-allowed; }

/* 配件库管理表格：建议售价单元格（默认绿色文本，管理员可双击编辑） */
.ljyi-suggest-cell { cursor: default; }
.ljyi-suggest-editable { cursor: pointer; }
.ljyi-suggest-editable:hover .ljyi-suggest-text { text-decoration: underline dotted var(--border-primary); }

/* 核对修改 居中弹窗 */
.ljyi-price-confirm-mask {
  position: fixed; inset: 0; z-index: 99998; display: none;
  align-items: center; justify-content: center;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.ljyi-price-confirm-mask.open { display: flex; }
.ljyi-price-confirm {
  width: 320px; max-width: 90vw; background: var(--bg-card);
  border: 1px solid var(--border-primary); border-radius: 10px;
  box-shadow: 0 12px 40px rgba(15,23,42,.28); padding: 18px 18px 14px;
}
.ljyi-price-confirm-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.ljyi-price-confirm-body { font-size: 13px; line-height: 1.9; color: var(--text-primary); margin-bottom: 16px; }
.ljyi-price-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
#ljyi-tools-cat-form { border-top: 1px solid var(--border-primary); margin-top: 4px; }
