/* FBA 标签处理 —— Electron + Layui 主题（无边框透明窗口，顶部圆角） */

/* ============ 主题色变量（可在设置中切换） ============ */
:root,
html[data-accent="blue"] {
  --brand: #1e9fff; --brand-2: #3da5ff;
  --brand-d0: #0b2a5b; --brand-d1: #0b3f8f; --brand-d2: #1553b8; --brand-d3: #1e63d6;
  --brand-50: #eff6ff; --brand-100: #dbeafe; --brand-200: #bfdbfe;
  --brand-rgb: 30, 159, 255;
}
html[data-accent="cyan"] {
  --brand: #06b6d4; --brand-2: #22d3ee;
  --brand-d0: #083344; --brand-d1: #0e7490; --brand-d2: #0e7490; --brand-d3: #0891b2;
  --brand-50: #ecfeff; --brand-100: #cffafe; --brand-200: #a5f3fc;
  --brand-rgb: 6, 182, 212;
}
html[data-accent="teal"] {
  --brand: #14b8a6; --brand-2: #2dd4bf;
  --brand-d0: #134e4a; --brand-d1: #0f766e; --brand-d2: #0f766e; --brand-d3: #0d9488;
  --brand-50: #f0fdfa; --brand-100: #ccfbf1; --brand-200: #99f6e4;
  --brand-rgb: 20, 184, 166;
}
html[data-accent="green"] {
  --brand: #16b777; --brand-2: #22c98a;
  --brand-d0: #064e3b; --brand-d1: #047857; --brand-d2: #047857; --brand-d3: #059669;
  --brand-50: #ecfdf5; --brand-100: #d1fae5; --brand-200: #a7f3d0;
  --brand-rgb: 22, 183, 119;
}
html[data-accent="indigo"] {
  --brand: #6366f1; --brand-2: #818cf8;
  --brand-d0: #312e81; --brand-d1: #3730a3; --brand-d2: #4338ca; --brand-d3: #4f46e5;
  --brand-50: #eef2ff; --brand-100: #e0e7ff; --brand-200: #c7d2fe;
  --brand-rgb: 99, 102, 241;
}
html[data-accent="purple"] {
  --brand: #8b5cf6; --brand-2: #a78bfa;
  --brand-d0: #4c1d95; --brand-d1: #5b21b6; --brand-d2: #6d28d9; --brand-d3: #7c3aed;
  --brand-50: #f5f3ff; --brand-100: #ede9fe; --brand-200: #ddd6fe;
  --brand-rgb: 139, 92, 246;
}
html[data-accent="orange"] {
  --brand: #f59e0b; --brand-2: #fbbf24;
  --brand-d0: #78350f; --brand-d1: #92400e; --brand-d2: #b45309; --brand-d3: #d97706;
  --brand-50: #fffbeb; --brand-100: #fef3c7; --brand-200: #fde68a;
  --brand-rgb: 245, 158, 11;
}
html[data-accent="rose"] {
  --brand: #f43f5e; --brand-2: #fb7185;
  --brand-d0: #881337; --brand-d1: #9f1239; --brand-d2: #be123c; --brand-d3: #e11d48;
  --brand-50: #fff1f2; --brand-100: #ffe4e6; --brand-200: #fecdd3;
  --brand-rgb: 244, 63, 94;
}
:root {
  --ok: #16b777; --ok-2: #15803d; --ok-50: #f6fef9; --ok-100: #dcfce7; --ok-200: #bbf7d0;
  --ink: #0f172a; --ink-2: #475569; --ink-3: #64748b; --ink-4: #94a3b8;
  --line: #e6edf5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: transparent; height: 100%; overflow: hidden;
  color: #1f2937; font-size: 14px;
}
body.booting { visibility: hidden; }
body { -webkit-user-select: none; user-select: none; display: flex; flex-direction: column; }
.result-path, .status, .todo-list, .a-err { -webkit-user-select: text; user-select: text; }

/* ---------- 圆角外壳（最大化时取消圆角） ---------- */
.shell {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  border-radius: 14px 14px 0 0; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #eef3f9 0%, #f6f9fc 320px, #f8fafc 100%);
}
body.is-max .shell { border-radius: 0; }

/* ---------- 自绘标题栏 ---------- */
.titlebar {
  height: 40px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, var(--brand-d1), var(--brand-d2) 55%, var(--brand-d3));
  -webkit-app-region: drag;
  position: relative; z-index: 10000; /* 登录页上方仍显示窗口控制按钮 */
}
.tb-user { cursor: pointer; border-radius: 8px; height: 32px; margin-right: 4px; transition: background .14s; }
.tb-user:hover { background: rgba(255, 255, 255, .16); }
.tb-right { display: flex; align-items: center; height: 100%; }
.tb-user {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; -webkit-app-region: no-drag;
}
.tb-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .22); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.tb-avatar.big { width: 46px; height: 46px; font-size: 20px; background: var(--brand); }
.tb-uname { color: rgba(255, 255, 255, .92); font-size: 12.5px; font-weight: 600; }
.tb-brand { display: flex; align-items: center; gap: 9px; padding-left: 14px; }
.tb-logo { width: 18px; height: 18px; border-radius: 4px; }
.tb-name { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.tb-controls { display: flex; height: 100%; -webkit-app-region: no-drag; }
.tb-btn {
  width: 46px; height: 100%; border: none; background: transparent;
  color: rgba(255, 255, 255, .85); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
}
.tb-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.tb-btn.tb-close:hover { background: #e81123; color: #fff; }
.tb-btn .ic-restore { display: none; }
body.is-max .tb-btn .ic-max { display: none; }
body.is-max .tb-btn .ic-restore { display: block; }

/* ---------- 整体布局：侧栏 + 内容 ---------- */
.layout { flex: 1; display: flex; min-height: 0; }
.sidebar {
  width: 196px; flex: none;
  background: #fbfdff; border-right: 1px solid #e6edf5;
  display: flex; flex-direction: column; padding: 14px 10px 10px;
}
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: 10px;
  color: #475569; font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}
.nav-item:hover { background: var(--brand-50); color: var(--brand); transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .28);
}
.nav-ico { display: flex; }
.nav-soon {
  margin-left: auto; font-size: 10px; font-weight: 600;
  color: #94a3b8; background: #f1f5f9; border-radius: 20px; padding: 2px 8px;
}
.nav-item.disabled { opacity: .62; cursor: not-allowed; }
.nav-item.disabled:hover { background: #f4f7fb; color: #475569; transform: none; }
.sidebar-foot { margin-top: auto; text-align: center; color: #cbd5e1; font-size: 11px; }

.content { flex: 1; min-width: 0; overflow-y: auto; }
.content::-webkit-scrollbar { width: 9px; }
.content::-webkit-scrollbar-thumb { background: #d5e0ec; border-radius: 6px; }
.content::-webkit-scrollbar-thumb:hover { background: #b9c9dc; }
.view { max-width: 900px; margin: 0 auto; padding: 26px 30px 60px; animation: viewIn .22s ease; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.page { max-width: 900px; margin: 0 auto; padding: 26px 28px 60px; }

/* ---------- 标题 ---------- */
.crumb { display: flex; align-items: center; gap: 6px; color: var(--brand); font-size: 13px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; margin: 8px 0 22px; }
h1 { font-size: 30px; font-weight: 800; color: #0f172a; letter-spacing: .5px; }
.sub { color: #64748b; margin-top: 6px; font-size: 14px; }
.pdf-badge {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--brand-200); background: #fff; color: var(--brand);
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 10px;
  box-shadow: 0 1px 3px rgba(var(--brand-rgb), .08);
}

/* ---------- 卡片 ---------- */
.card {
  background: #fff; border: 1px solid #e6edf5; border-radius: 14px;
  padding: 20px 22px; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.help-card {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(90deg, var(--brand-50), var(--brand-50)); border: 1px solid var(--brand-100);
}
.help-left { display: flex; gap: 12px; align-items: center; }
.help-title { color: var(--brand); font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.help-bold { font-weight: 700; color: #0f172a; font-size: 14.5px; }

.icon-circle {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand-100);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.card-title { font-size: 16px; font-weight: 700; color: #0f172a; }
.card-sub { color: #64748b; font-size: 12.5px; margin-top: 3px; }
.field-label { font-size: 12.5px; color: #475569; margin: 4px 0 8px; font-weight: 600; }

/* ---------- 拖放区（悬浮浮起效果） ---------- */
.dropzone {
  display: flex; justify-content: space-between; align-items: center;
  border: 1.5px dashed var(--brand-200); border-radius: 12px;
  background: var(--brand-50); padding: 18px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease,
              border-color .18s ease, background .18s ease;
}
.dropzone:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  background: var(--brand-50);
  box-shadow: 0 10px 26px rgba(var(--brand-rgb), .16);
}
.dropzone:active { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(var(--brand-rgb), .14); }
.dropzone.drag {
  border-color: var(--brand); background: var(--brand-50);
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 12px 30px rgba(var(--brand-rgb), .22);
}
.dz-left { display: flex; gap: 14px; align-items: center; }
.pdf-chip {
  width: 44px; height: 44px; border-radius: 10px; background: var(--brand-100);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex: none;
}
.dz-main { font-weight: 700; font-size: 15px; color: #0f172a; }
.dz-sub { color: #64748b; font-size: 12px; margin-top: 4px; max-width: 380px; }
.hint { color: #94a3b8; font-size: 12px; margin-top: 10px; line-height: 1.6; }

/* ---------- 文件列表 ---------- */
.file-list { margin-top: 12px; }
.file-item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #e6edf5; border-radius: 10px;
  padding: 9px 12px; margin-bottom: 8px; background: #fbfdff;
}
.file-item .f-name {
  font-weight: 600; color: #1e293b; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-item .f-meta { color: #94a3b8; font-size: 12px; flex: none; }
.file-item .f-del {
  margin-left: auto; border: none; background: none; cursor: pointer;
  color: #cbd5e1; font-size: 14px; padding: 2px 6px; border-radius: 6px;
}
.file-item .f-del:hover { color: #ef4444; background: #fef2f2; }

/* ---------- 设置 ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.sub-card { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 11px; padding: 14px 16px; }
.sub-title { font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 10px; }
.sub-card .layui-input { height: 38px; border-color: #dbe4ee; border-radius: 8px; }
select#mode {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid #dbe4ee;
  border-radius: 8px; background: #fff; font-size: 13.5px; color: #1f2937;
  font-family: inherit; outline: none;
}

.stepper { display: flex; align-items: center; gap: 8px; }
.stepper .layui-btn { height: 34px; line-height: 34px; padding: 0 12px; border-radius: 8px; }
.stepper input { width: 64px; text-align: center; height: 34px; }
.stepper .unit { color: #64748b; font-size: 13px; }

.layui-form .switch-row { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.switch-row .sw-text { line-height: 1.4; }
.sw-title { font-weight: 600; font-size: 13.5px; color: #1f2937; }
.layui-form-switch { margin-top: 0; }

.out-row {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  border-top: 1px solid #eef2f7; padding-top: 16px;
}
.out-path {
  color: #475569; font-size: 13px; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 处理 ---------- */
.action-card { padding: 16px 22px; }
.action-row { display: flex; gap: 16px; align-items: center; }
.action-btn { height: 42px; line-height: 42px; padding: 0 34px; font-size: 14.5px; }
.progress-wrap { flex: 1; display: none; align-items: center; gap: 12px; }
.progress-wrap.show { display: flex; }
.progress-wrap .layui-progress { flex: 1; }
.progress-text { color: #475569; font-size: 12.5px; white-space: nowrap; }
.status { color: #64748b; font-size: 12.5px; margin-top: 10px; min-height: 16px; }

/* ---------- 结果 ---------- */
.result-card { display: flex; gap: 14px; align-items: flex-start; border-color: var(--ok-200); background: var(--ok-50); }
.result-icon {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ok-100);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.result-body { flex: 1; min-width: 0; }
.result-title { font-weight: 700; color: var(--ok-2); font-size: 14.5px; }
.result-path { color: #475569; font-size: 12.5px; margin-top: 5px; word-break: break-all; }
.result-fail { color: #dc2626; font-size: 12.5px; margin-top: 5px; white-space: pre-line; }

/* ---------- 弹窗内容 ---------- */
.md-wrap { padding: 4px 6px; }
.md-label { color: var(--brand); font-size: 12.5px; font-weight: 600; margin: 16px 0 8px; }
.md-label:first-child { margin-top: 0; }
.md-wrap h4 { font-size: 17px; color: #0f172a; margin-bottom: 8px; }
.md-wrap p { color: #475569; font-size: 13px; line-height: 1.7; margin-bottom: 6px; }
.md-note {
  background: var(--brand-50); border: 1px solid var(--brand-100); color: #1d4ed8;
  border-radius: 9px; padding: 10px 14px; font-size: 12.5px; line-height: 1.7; margin: 12px 0;
}
.md-label { display: flex; align-items: center; }
.md-label-row { justify-content: space-between; }
.md-raw { color: var(--brand); font-size: 12px; font-weight: 600; text-decoration: none; }
.md-raw:hover { text-decoration: underline; }
.md-shot { border: 1px solid #e6edf5; border-radius: 10px; overflow: hidden; margin-top: 8px; background: #fff; }
.md-img { display: block; width: 100%; height: auto; }
.md-case-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-top: 6px; }
.md-case-title { font-weight: 700; color: #0f172a; font-size: 13.5px; margin: 16px 0 2px; text-align: center; }

/* Layui 按钮圆角统一 */
.layui-btn { border-radius: 8px; }
.layui-btn-primary:hover { border-color: var(--brand); color: var(--brand); }

/* 卡片悬浮轻微上浮（更灵动） */
.card { transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.help-card:hover, .action-card:hover, .result-card:hover { transform: none; }

/* layer 弹窗头部风格统一 */
.layui-layer-title { font-weight: 700; }
.layui-layer-page .layui-layer-content { overflow: auto; }

/* ============ 登录 / 注册 ============ */
.auth-mask {
  position: absolute; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1000px 500px at 15% 0%, rgba(var(--brand-rgb), .25), transparent 60%),
    radial-gradient(900px 500px at 90% 100%, rgba(var(--brand-rgb), .18), transparent 60%),
    linear-gradient(135deg, var(--brand-d0) 0%, var(--brand-d2) 50%, var(--brand-d3) 100%);
}
.auth-card {
  display: flex; width: 780px; max-width: 92%; height: 480px; max-height: 88%;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(4, 18, 48, .55);
  animation: cardIn .35s cubic-bezier(.2, .8, .3, 1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.auth-side {
  width: 300px; flex: none; padding: 38px 30px;
  background: linear-gradient(160deg, var(--brand-d1), var(--brand-d3) 60%, var(--brand-d3));
  color: #fff; display: flex; flex-direction: column;
}
.auth-logo { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px; }
.auth-side h2 { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.auth-side p { margin-top: 12px; font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.82); }
.auth-dots { margin-top: auto; display: flex; gap: 7px; }
.auth-dots i { width: 26px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); }
.auth-dots i:first-child { background: #fff; }
.auth-main { flex: 1; background: #fff; padding: 34px 40px; overflow-y: auto; }
.auth-tabs { display: flex; gap: 26px; margin-bottom: 24px; }
.auth-tab {
  border: none; background: none; cursor: pointer; font-size: 17px; font-weight: 700;
  color: #94a3b8; padding: 4px 2px; border-bottom: 2.5px solid transparent; transition: all .18s;
}
.auth-tab:hover { color: var(--brand); }
.auth-tab.active { color: #0f172a; border-color: var(--brand); }
.a-field { margin-bottom: 15px; }
.a-field label { display: block; font-size: 12.5px; color: #475569; font-weight: 600; margin-bottom: 6px; }
.a-field .layui-input { height: 42px; border-radius: 9px; border-color: #dbe4ee; transition: box-shadow .15s, border-color .15s; }
.a-field .layui-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.14); }
.a-code { display: flex; flex-direction: column; }
.a-code .layui-input { flex: 1; }
.a-code label + div { display: flex; gap: 10px; }
.a-code .layui-btn { height: 42px; white-space: nowrap; }
.auth-btn {
  width: 100%; height: 44px; font-size: 15px; font-weight: 700;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 10px; margin-top: 4px; letter-spacing: 2px;
}
.auth-btn:hover { opacity: .92; }
.a-err { color: #e5484d; font-size: 12.5px; margin-top: 10px; min-height: 17px; text-align: center; }

/* ============ 首页 ============ */
.home-hero {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; gap: 20px;
}
.hh-greet { font-size: 27px; font-weight: 800; color: #0f172a; letter-spacing: .5px; }
.hh-date { color: #64748b; margin-top: 7px; font-size: 13.5px; }
.hh-tip { color: var(--brand); margin-top: 5px; font-size: 12.5px; font-weight: 600; }
.hh-user {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #e6edf5; border-radius: 14px;
  padding: 14px 18px; box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.hh-user-info { max-width: 220px; }
.hh-uname { font-weight: 700; font-size: 15px; color: #0f172a; }
.hh-sig { color: #94a3b8; font-size: 12px; margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig-edit {
  border: none; background: var(--brand-50); color: var(--brand); cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.sig-edit:hover { background: var(--brand-100); }

.home-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-bottom: 16px; }
.home-grid2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }

/* 时钟 */
.home-clock {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--brand-d1), var(--brand-d3) 70%, var(--brand-2));
  border: none; color: #fff;
}
.hc-label { font-size: 12px; color: rgba(255,255,255,.72); letter-spacing: 1.5px; }
.hc-time {
  font-size: 46px; font-weight: 800; letter-spacing: 3px; margin: 10px 0 4px;
  font-variant-numeric: tabular-nums;
}
.hc-sub { font-size: 13px; color: rgba(255,255,255,.85); }

/* 天气 */
.home-weather {
  margin-bottom: 16px; padding: 14px 18px 12px;
  background: linear-gradient(120deg, #f4f9ff, #eef6ff 55%, #f6fbff);
  border: 1px solid #e2eefb;
}
.hw-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hw-place {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: #3f6b96;
}
.hw-place svg { color: #6d9dc9; }
.hw-refresh {
  border: none; background: #e8f2fd; color: #4b7ba8; cursor: pointer;
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.hw-refresh:hover { background: #d8e9fb; color: #2f6392; }
.hw-refresh.spin svg { animation: hwspin .8s linear infinite; }
@keyframes hwspin { to { transform: rotate(360deg); } }

.hw-body { display: flex; align-items: center; gap: 18px; }
.hw-now { display: flex; align-items: center; gap: 12px; flex: none; padding-right: 18px; border-right: 1px solid #dfeaf6; }
.hw-now-ico { font-size: 38px; line-height: 1; filter: saturate(1.05); }
.hw-now-temp { font-size: 27px; font-weight: 800; color: #14324f; letter-spacing: .5px; line-height: 1.15; }
.hw-now-desc { font-size: 12.5px; color: #6a8299; margin-top: 2px; }

.hw-days {
  display: flex; gap: 6px; overflow-x: auto; flex: 1; padding-bottom: 2px;
  scrollbar-width: thin;
}
.hw-days::-webkit-scrollbar { height: 5px; }
.hw-days::-webkit-scrollbar-thumb { background: #cfe0f1; border-radius: 4px; }
.hw-day {
  flex: 0 0 62px; text-align: center; border-radius: 10px; padding: 7px 4px 6px;
  transition: all .15s;
}
.hw-day:hover { background: #e6f1fd; }
.hw-day.today { background: #fff; box-shadow: 0 2px 8px rgba(30,110,190,.12); }
.hw-day .hd-w { font-size: 12px; color: #55708a; font-weight: 600; }
.hw-day.today .hd-w { color: #1f6fb2; }
.hw-day .hd-d { font-size: 10.5px; color: #9bb0c3; margin-top: 1px; }
.hw-day .hd-i { font-size: 20px; line-height: 1.35; margin: 3px 0 2px; }
.hw-day .hd-t { font-size: 12px; color: #14324f; font-weight: 700; }
.hw-day .hd-t i { font-style: normal; color: #8ea5b9; font-weight: 500; margin-left: 2px; }
.hw-err { font-size: 12.5px; color: #c2410c; display: flex; align-items: center; gap: 8px; }
.hw-err button {
  border: 1px solid #f0c9ad; background: #fff7f1; color: #c2410c; cursor: pointer;
  border-radius: 7px; padding: 3px 10px; font-size: 12px;
}

/* 快捷入口 */
.quick-item {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 12px 12px; border-radius: 11px; transition: all .16s;
}
.quick-item:hover { background: var(--brand-50); transform: translateX(3px); }
.quick-item.disabled { opacity: .6; }
.quick-item.disabled:hover { background: none; transform: none; }
.q-ico {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.q-blue { background: var(--brand-100); color: var(--brand); }
.q-green { background: var(--brand-100); color: var(--brand); }
.q-body { flex: 1; min-width: 0; }
.q-body b { display: block; font-size: 13.5px; color: #0f172a; }
.q-body i { display: block; font-style: normal; color: #94a3b8; font-size: 11.5px; margin-top: 3px; }
.q-arrow { color: #cbd5e1; font-size: 18px; }

/* 日历 */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-nav { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #334155; font-size: 13.5px; }
.cal-btn {
  width: 26px; height: 26px; border: 1px solid #e2e8f0; background: #fff; border-radius: 7px;
  cursor: pointer; color: #475569; font-size: 15px; line-height: 1; transition: all .14s;
}
.cal-btn:hover { border-color: var(--brand); color: var(--brand); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-week span { font-size: 11.5px; color: #94a3b8; padding: 6px 0; font-weight: 600; }
.cal-week span:first-child, .cal-week span:last-child { color: #f87171; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; row-gap: 3px; }
.cal-day {
  height: 32px; margin: 0 3px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-size: 12.5px; color: #334155;
  transition: background .13s; font-variant-numeric: tabular-nums;
}
.cal-day:hover { background: var(--brand-50); }
.cal-day.dim { color: #cbd5e1; }
.cal-day.weekend { color: #f87171; }
.cal-day.today {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700;
  box-shadow: 0 4px 10px rgba(var(--brand-rgb),.35);
}
.cal-lunar { margin-top: 10px; text-align: center; color: #64748b; font-size: 12px; }

/* 日程 */
.todo-add { display: flex; gap: 10px; margin-bottom: 12px; }
.todo-add .layui-input { height: 38px; border-radius: 9px; border-color: #dbe4ee; }
.todo-add .layui-btn { height: 38px; padding: 0 20px; }
.todo-list { max-height: 240px; overflow-y: auto; }
.todo-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px; transition: background .14s;
}
.todo-item:hover { background: #f8fafc; }
.todo-check {
  width: 18px; height: 18px; border: 1.5px solid #cbd5e1; border-radius: 50%;
  cursor: pointer; flex: none; display: flex; align-items: center; justify-content: center;
  color: #fff; transition: all .15s; font-size: 11px;
}
.todo-check:hover { border-color: var(--brand); }
.todo-item.done .todo-check { background: var(--brand); border-color: var(--brand); }
.todo-text { flex: 1; font-size: 13px; color: #1f2937; word-break: break-all; }
.todo-item.done .todo-text { color: #94a3b8; text-decoration: line-through; }
.todo-del { border: none; background: none; color: #cbd5e1; cursor: pointer; font-size: 13px; padding: 2px 6px; border-radius: 6px; }
.todo-del:hover { color: #ef4444; background: #fef2f2; }
.todo-empty { text-align: center; color: #cbd5e1; font-size: 12.5px; padding: 18px 0; }

/* 未选文件的定位提示 */
.card { scroll-margin-top: 16px; }
.card.locate-flash { animation: locateFlash 1.6s ease; }
@keyframes locateFlash {
  0%, 100% { box-shadow: 0 1px 2px rgba(15,23,42,.04); border-color: #e6edf5; }
  25% { box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.22); border-color: var(--brand); }
  60% { box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.22); border-color: var(--brand); }
}

/* 退出登录（醒目大按钮） */
.logout-btn {
  display: block; width: calc(100% - 24px); margin: 0 auto 10px;
  padding: 10px 0; border: none; border-radius: 10px; cursor: pointer;
  background: #ef4444; color: #fff; font-size: 14px; font-weight: 600;
  letter-spacing: 2px; transition: background .15s, transform .1s;
}
.logout-btn:hover { background: #dc2626; }
.logout-btn:active { transform: scale(.98); }

/* ============ 头程物流查价 ============ */
.view-wide { max-width: 1100px; }
.ic-green { background: var(--brand-100); }
.ic-purple { background: #ede9fe; }
.badge-green { border-color: var(--brand-200); color: var(--brand); box-shadow: 0 1px 3px rgba(var(--brand-rgb), .08); }
.lg-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lg-actions .layui-btn { height: 36px; line-height: 36px; padding: 0 18px; }
.prov-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.prov-chip {
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  background: #f1f5f9; color: #475569; cursor: pointer;
  border: 1px solid transparent; transition: all .15s; user-select: none;
}
.prov-chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(var(--brand-rgb),.12); }
.prov-chip.on { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .3); }

.lg-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 14px; }
.lg-field label { display: block; font-size: 12px; color: #475569; font-weight: 600; margin-bottom: 6px; }
.lg-field .layui-input { height: 36px; border-radius: 8px; border-color: #dbe4ee; }
.lg-select {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid #dbe4ee;
  border-radius: 8px; background: #fff; font-size: 13px; color: #1f2937;
  font-family: inherit; outline: none;
}
.lg-select:focus, .lg-field .layui-input:focus { border-color: var(--brand); }
.req { color: #ef4444; font-style: normal; }
.lg-volbox {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap;
  background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: 10px; padding: 12px 16px;
}
.lg-volbox .layui-input { height: 34px; border-radius: 8px; border-color: var(--brand-200); }
.lg-volbox .layui-textarea { border-radius: 8px; border-color: var(--brand-200); min-height: 70px; flex: 1; min-width: 260px; }
.lg-vol-label { font-size: 12.5px; color: var(--brand-d2); font-weight: 600; }
.lg-btnrow { display: flex; gap: 14px; margin-top: 18px; }
.lg-go {
  height: 42px; line-height: 42px; padding: 0 42px; font-size: 15px; font-weight: 700;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); letter-spacing: 3px;
}
.lg-count { color: var(--brand); font-size: 13px; font-weight: 600; }
.col-picks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.col-pick { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #475569; cursor: pointer; }
.tbl-wrap { overflow-x: auto; border: 1px solid #e6edf5; border-radius: 10px; }
.lg-table { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
.lg-table th {
  position: sticky; top: 0; background: var(--brand-50); color: var(--brand-d2); font-weight: 700;
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--brand-200); white-space: nowrap;
}
.lg-table td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.lg-table tbody tr { transition: background .12s; }
.lg-table tbody tr:hover { background: var(--brand-50); }
.lg-table .lg-price { color: var(--brand); font-weight: 700; }
.lg-empty { text-align: center; color: #94a3b8; padding: 34px 0; font-size: 13px; }

/* 导入向导 */
.wz-wrap { padding: 6px 4px; }
.wz-top { display: flex; gap: 16px; margin-bottom: 12px; }
.wz-note {
  background: var(--brand-50); border: 1px solid var(--brand-200); color: var(--brand-d2);
  border-radius: 9px; padding: 9px 14px; font-size: 12.5px; line-height: 1.7; margin-bottom: 12px;
}
.wz-sheets { display: flex; flex-direction: column; gap: 12px; }
.wz-sheet { border: 1px solid #e6edf5; border-radius: 11px; padding: 13px 15px; background: #fbfdff; }
.wz-sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.wz-use { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13.5px; }
.wz-dim { color: #94a3b8; font-size: 12px; font-style: normal; }
.wz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 14px; }
.wz-pl { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.wz-pcol { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #16a34a; background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: 6px; padding: 3px 9px; cursor: pointer; }

/* ============ 个人中心 ============ */
.profile-head-card { display: flex; align-items: center; gap: 18px; }
.pf-info { flex: 1; min-width: 0; }
.pf-uname { font-size: 19px; font-weight: 800; color: #0f172a; }
.pf-email { color: #64748b; font-size: 13px; margin-top: 5px; }
.pf-sig { color: #94a3b8; font-size: 12.5px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 480px; }
.pf-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 14px; margin-bottom: 16px; }
.pf-meta { color: #64748b; font-size: 13px; line-height: 2; }
.q-purple { background: #ede9fe; color: #8b5cf6; }

/* ============ 全局响应式（窗口缩放自适应） ============ */
.settings-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.home-grid, .home-grid2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.md-case-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dropzone { flex-wrap: wrap; gap: 12px; }
.dz-sub { max-width: none; }
.head-row { flex-wrap: wrap; gap: 12px; }
.help-card { flex-wrap: wrap; gap: 12px; }
.profile-head-card { flex-wrap: wrap; }
.out-row { flex-wrap: wrap; }

@media (max-width: 1080px) {
  .sidebar { width: 64px; padding: 14px 7px 10px; }
  .nav-item { flex-direction: column; gap: 5px; padding: 10px 4px; font-size: 11px; text-align: center; }
  .nav-text { font-size: 11px; }
  .nav-soon { display: none; }
  .sidebar-foot .ver { font-size: 10px; }
  .view { padding: 20px 18px 50px; }
  .card { padding: 16px 16px; }
  h1 { font-size: 24px; }
  .hh-greet { font-size: 22px; }
  .hh-user-info { max-width: 150px; }
  .lg-actions { margin-left: 0; }
}
@media (max-width: 780px) {
  .auth-card { flex-direction: column; height: auto; }
  .auth-side { width: 100%; padding: 22px 24px; }
  .auth-side p br { display: none; }
  .tb-uname { display: none; }
}

/* ============ 侧栏：设置入口 ============ */
.sidebar-foot { display: flex; flex-direction: column; gap: 3px; }
.set-link {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 0; border-radius: 9px; color: var(--ink-3);
  font-size: 12.5px; text-decoration: none; transition: all .15s;
}
.set-link:hover { background: var(--brand-50); color: var(--brand); }
.set-link.on { color: var(--brand); background: var(--brand-50); font-weight: 600; }
.set-link.on::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); margin-left: 2px;
}

/* ============ 物流：物流商 / 渠道方向 ============ */
.prov-chip { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.35; }
.prov-meta { font-style: normal; font-size: 10.5px; font-weight: 500; opacity: .72; margin-top: 1px; }
.prov-chip.on .prov-meta { opacity: .92; }
.lg-ghost-btn { color: var(--brand-d2) !important; border-color: var(--brand-200) !important; }
.lg-ghost-btn:hover { background: var(--brand-50) !important; }

.lg-prod-wrap { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.lg-prod-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.lg-prod-title { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.lg-prod-title svg { color: var(--brand); }
.lg-prod-title b { color: var(--brand); }
.lg-prod-tip { font-size: 11.5px; color: var(--ink-4); }
.lg-prod-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.lg-prod-chip {
  display: inline-flex; flex-direction: column; line-height: 1.4;
  padding: 8px 14px; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.lg-prod-chip b { font-size: 12.8px; color: var(--ink-2); font-weight: 700; }
.lg-prod-chip i { font-style: normal; font-size: 10.5px; color: var(--ink-4); margin-top: 2px; }
.lg-prod-chip:hover {
  transform: translateY(-2px); border-color: var(--brand-200);
  box-shadow: 0 6px 16px rgba(var(--brand-rgb), .14);
}
.lg-prod-chip.on {
  background: var(--brand-50); border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(var(--brand-rgb), .18);
}
.lg-prod-chip.on b { color: var(--brand-d2); }
.lg-prod-empty { font-size: 12.5px; color: var(--ink-4); }

/* ============ 物流：结果分组 ============ */
.lg-summary {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: 9px;
  padding: 9px 14px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 12px;
}
.lg-summary b { color: var(--brand-d2); font-size: 13.5px; }
.lg-summary .dim { color: var(--ink-4); font-size: 12px; }
.lg-groups { display: flex; flex-direction: column; gap: 18px; }
.lg-group-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 8px; padding-left: 10px;
  border-left: 3px solid var(--brand); flex-wrap: wrap;
}
.lg-group-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.lg-group-meta { font-size: 12px; color: var(--ink-4); }
.lg-group-meta b { color: var(--brand); font-size: 13px; }
.lg-tag {
  display: inline-block; font-size: 11px; line-height: 1.6; padding: 1px 8px;
  border-radius: 20px; background: var(--brand-50); color: var(--brand-d2);
  border: 1px solid var(--brand-200); white-space: nowrap;
}
.lg-tag.ok { background: var(--brand); color: #fff; border-color: var(--brand); }
.lg-tag.plain { background: #f1f5f9; color: var(--ink-3); border-color: #e2e8f0; }
.col-pick { padding: 3px 9px; border-radius: 7px; border: 1px solid transparent; transition: all .13s; }
.col-pick:hover { background: #f8fafc; }
.col-pick.on { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-d2); }
.col-pick input { accent-color: var(--brand); }

/* ============ 设置面板 ============ */
.set-wrap { padding: 6px 4px 12px; }
.set-sec {
  padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px;
  margin-bottom: 14px; background: #fff;
}
.set-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.set-sec-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.set-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .6px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding: 2px 7px; border-radius: 5px;
}
.set-desc { color: var(--ink-3); font-size: 12.5px; line-height: 1.75; margin-bottom: 12px; }
.set-field label { display: block; font-size: 12px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.set-field .layui-input { height: 36px; border-radius: 8px; border-color: #dbe4ee; }
.set-field .layui-input:focus { border-color: var(--brand); }
.set-key { display: flex; gap: 8px; }
.set-key .layui-input { flex: 1; font-family: Consolas, "Courier New", monospace; font-size: 12.5px; }
.set-eye {
  border: 1px solid #dbe4ee; background: #fff; color: var(--ink-2);
  border-radius: 8px; padding: 0 14px; cursor: pointer; font-size: 12.5px;
}
.set-eye:hover { border-color: var(--brand); color: var(--brand); }
.set-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.set-balance {
  min-height: 52px; padding: 8px 14px; border-radius: 10px;
  background: var(--brand-50); border: 1px solid var(--brand-200);
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.4;
  word-break: break-all;
}
.set-balance b { color: var(--brand-d2); font-size: 17px; }
.set-balance i { font-style: normal; color: var(--ink-4); font-size: 11.5px; }
.set-balance em { font-style: normal; color: var(--ink-4); font-size: 11px; }
.set-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.set-status { font-size: 12px; color: var(--ink-4); }
.set-status.ok { color: var(--ok-2); }
.set-status.err { color: #dc2626; }
.set-tip { margin-top: 10px; font-size: 11.5px; color: var(--ink-4); line-height: 1.7; }
.sw-toggle { position: relative; display: inline-flex; cursor: pointer; flex: none; }
.sw-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw-track {
  display: block; width: 44px; height: 24px; border-radius: 20px;
  background: #cbd5e1; position: relative; transition: background .18s;
}
.sw-track i {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .18s;
  box-shadow: 0 1px 3px rgba(15,23,42,.25);
}
.sw-toggle input:checked + .sw-track { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.sw-toggle input:checked + .sw-track i { transform: translateX(20px); }
.accent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.accent-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  cursor: pointer; transition: all .15s;
}
.accent-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15,23,42,.08); }
.accent-item.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .15); }
.accent-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.accent-name { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.accent-item.on .accent-name { color: var(--brand-d2); }
.set-data-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.set-data-row b { color: var(--brand-d2); }
.set-danger { color: #dc2626 !important; border-color: #fecaca !important; }
.set-danger:hover { background: #fef2f2 !important; }

/* ============ 导入向导（新版） ============ */
.wz-top { align-items: flex-end; }
.wz-ai {
  border-radius: 9px; padding: 9px 14px; font-size: 12.5px; line-height: 1.7;
  margin-bottom: 10px; background: #f8fafc; border: 1px solid var(--line); color: var(--ink-2);
}
.wz-ai.ok { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-d2); }
.wz-ai.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.wz-card {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  margin-bottom: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.wz-card:hover { border-color: var(--brand-200); box-shadow: 0 4px 14px rgba(15,23,42,.05); }
.wz-card.low { opacity: .62; background: #fbfdff; }
.wz-card-head {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 11px 14px; background: #fafcff; border-bottom: 1px solid #f1f5f9;
}
.wz-use { display: flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; }
.wz-badge { font-size: 11px; color: var(--ink-3); background: #f1f5f9; border-radius: 20px; padding: 2px 9px; white-space: nowrap; }
.wz-badge.strong { background: var(--brand-50); color: var(--brand-d2); font-weight: 700; }
.wz-badge.bad { background: #fef2f2; color: #dc2626; font-weight: 700; }
.wz-badge.ai { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; }
.wz-card-body { display: flex; gap: 14px; padding: 12px 14px; flex-wrap: wrap; align-items: flex-start; }
.wz-prod-field { width: 250px; flex: none; }
.wz-prod-field label { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 5px; }
.wz-prod-field .layui-input { height: 34px; border-radius: 8px; border-color: #dbe4ee; font-size: 13px; }
.wz-prod-field .layui-input:focus { border-color: var(--brand); }
.wz-sample { flex: 1; min-width: 280px; overflow: hidden; border: 1px solid #eef2f7; border-radius: 8px; }
.wz-sample table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.wz-sample th { background: #f8fafc; color: var(--ink-3); font-weight: 600; text-align: left; padding: 6px 9px; white-space: nowrap; }
.wz-sample td { padding: 6px 9px; border-top: 1px solid #f4f7fa; color: var(--ink-2); max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-sample td.p { color: var(--brand-d2); font-weight: 700; }
.wz-empty { flex: 1; min-width: 240px; color: #dc2626; font-size: 12px; background: #fef2f2; border-radius: 8px; padding: 10px 12px; line-height: 1.6; }
.wz-skip { margin-top: 4px; font-size: 12px; color: var(--ink-4); }
.wz-skip summary { cursor: pointer; }
.wz-skip div { padding: 3px 0 0 14px; }
.wz-replace { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); align-self: flex-end; padding-bottom: 9px; white-space: nowrap; }
.wz-replace input { accent-color: var(--brand); }

@media (max-width: 1080px) {
  .set-text { display: none; }
  .set-row2 { grid-template-columns: 1fr; }
}

/* ============ 查价结果：按原表结构透视 ============ */
.lg-filter { margin-bottom: 12px; }
.lg-filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lg-kw { width: 320px; max-width: 100%; }
.lg-filter-tip { font-size: 12px; color: var(--ink-4); }
.lg-origins { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lg-origins:empty { margin-top: 0; }
.lg-origin-chip {
  display: inline-flex; align-items: center; height: 27px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--brand-200); background: var(--brand-50);
  color: var(--brand-d2); font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all .15s; user-select: none;
}
.lg-origin-chip:hover { border-color: var(--brand); }
.lg-origin-chip.off {
  background: #f8fafc; border-color: #e2e8f0; color: #94a3b8; text-decoration: line-through;
}
.lg-pv { font-variant-numeric: tabular-nums; }
.lg-pv th { text-align: center; padding: 8px 10px; }
.lg-pv .lg-pv-dest { text-align: left; font-weight: 700; color: #0f172a; position: sticky; left: 110px; z-index: 2; background: #fff; }
.lg-pv thead .lg-pv-dest { background: var(--brand-50); z-index: 3; left: 110px; }
.lg-pv tbody tr:hover .lg-pv-dest { background: var(--brand-50); }
.lg-pv .lg-pv-origin {
  background: var(--brand-100, var(--brand-50)); color: var(--brand-d2);
  font-size: 12.5px; letter-spacing: .2px; border-left: 1px solid #fff;
}
.lg-pv .lg-pv-seg { font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: #f8fbff; }
.lg-pv .lg-pv-seg.plain { color: var(--ink-3); }
.lg-pv .lg-pv-meta { color: #475569; font-size: 12px; text-align: center; }
.lg-pv td.lg-pv-cell { text-align: right; padding: 7px 10px; cursor: text; user-select: text; -webkit-user-select: text; }
.lg-pv td.lg-pv-cell b { font-size: 13.5px; font-weight: 700; color: #0f172a; }
.lg-pv td.lg-pv-cell i { font-style: normal; font-size: 10.5px; color: var(--ink-4); margin-left: 2px; }
.lg-pv td.lg-pv-cell em { display: block; font-style: normal; font-size: 10.5px; color: var(--ink-4); margin-top: 1px; }
.lg-pv td.lg-pv-cell.dim b { color: var(--ink-3); font-weight: 600; }
.lg-pv td.lg-pv-cell.best { background: var(--ok-50); box-shadow: inset 0 0 0 1px var(--ok-200); border-radius: 6px; }
.lg-pv td.lg-pv-cell.best b { color: var(--ok-2); }
.lg-pv td.lg-pv-cell.empty { color: #cbd5e1; text-align: center; }
.lg-pv td { cursor: text; user-select: text; -webkit-user-select: text; }
.lg-pv-hint { font-size: 12px; color: var(--ink-4); padding: 8px 2px 0; }
.lg-pv-clear { color: var(--brand); text-decoration: none; margin-left: 6px; }
.lg-pv-clear:hover { text-decoration: underline; }

/* ============ v1.7.0 物流商多选 / 仓码自动完成 / 结果 Tab / 合并渠道列 ============ */
.lg-ms { position: relative; }
.lg-ms-btn {
  width: 100%; height: 38px; padding: 0 30px 0 12px; text-align: left;
  border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; cursor: pointer;
  font-size: 13px; color: #0f172a;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lg-ms-btn:hover { border-color: var(--brand); }
.lg-ms-panel {
  display: none; position: absolute; top: 42px; left: 0; z-index: 3200;
  min-width: 200px; max-height: 260px; overflow-y: auto;
  background: #fff; border: 1px solid #e6edf5; border-radius: 10px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .14); padding: 6px;
}
.lg-ms-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: 7px; font-size: 13px; color: #334155; cursor: pointer; user-select: none;
}
.lg-ms-item:hover { background: var(--brand-50); }
.lg-ms-item input { accent-color: var(--brand); }
.lg-ac {
  position: fixed; z-index: 3300; max-height: 240px; overflow-y: auto;
  background: #fff; border: 1px solid #e6edf5; border-radius: 10px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .14); padding: 4px;
}
.lg-ac-item { padding: 7px 12px; font-size: 13px; color: #334155; cursor: pointer; border-radius: 6px; }
.lg-ac-item:hover { background: var(--brand-50); color: var(--brand-d2); }
.lg-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.lg-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; cursor: pointer;
  font-size: 13px; font-weight: 600; color: #475569; transition: all .15s;
}
.lg-tab i { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--ink-4); }
.lg-tab:hover { border-color: var(--brand); color: var(--brand-d2); }
.lg-tab.on {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 3px 10px var(--brand-200);
}
.lg-tab.on i { color: rgba(255, 255, 255, .85); }
.lg-pv .lg-pv-chan {
  text-align: left; font-weight: 700; color: var(--brand-d2); font-size: 12.5px;
  background: #fbfdff; border-right: 2px solid var(--brand-100, var(--brand-200));
  vertical-align: middle; cursor: text; user-select: text; -webkit-user-select: text;
  min-width: 110px; max-width: 110px; width: 110px; word-break: break-all; white-space: normal;
  position: sticky; left: 0; z-index: 2;
}
.lg-pv thead .lg-pv-chan { background: var(--brand-50); z-index: 3; }

/* ============ v1.9.0 chips × 删除 / 单点五仓 / 物流商分组卡 / best 整行 / AI 比价 / 退出确认 ============ */
/* chip 右上角 × 删除（物流商 & 渠道方向通用） */
.prov-chip .chip-x, .lg-prod-chip .chip-x {
  font-style: normal; position: absolute; top: 5px; right: 6px;
  width: 18px; height: 18px; line-height: 16px; text-align: center;
  border-radius: 50%; font-size: 12px; color: var(--ink-4);
  opacity: 0; transition: all .15s; cursor: pointer; user-select: none;
  margin-top: 0;
}
.prov-chip .chip-x:hover, .lg-prod-chip .chip-x:hover { background: #fee2e2; color: #dc2626; opacity: 1 !important; }
.prov-chip, .lg-prod-chip { position: relative; padding-right: 26px !important; }
.prov-chip:hover .chip-x, .lg-prod-chip:hover .chip-x { opacity: .8; }
.prov-chip.on .chip-x { color: rgba(255, 255, 255, .85); }
.prov-chip.on .chip-x:hover { background: rgba(255, 255, 255, .25); color: #fff; }

/* 单点 / 五仓查询：分段按钮 + 输入框 */
.lg-seg {
  display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px;
  background: #f1f5f9; border: 1px solid #e2e8f0; width: fit-content;
}
.lg-seg-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 14px;
  border: none; border-radius: 8px; background: transparent; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--ink-3); transition: all .15s;
}
.lg-seg-btn:hover { color: var(--brand-d2); }
.lg-seg-btn.on {
  background: #fff; color: var(--brand-d2);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}
#lgCodeWrap { display: flex; gap: 10px; margin-top: 8px; }
#lgCodeWrap .lg-code-input {
  height: 42px; border-radius: 10px; font-size: 14.5px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; border-color: #e2e8f0;
  transition: all .15s;
}
#lgCodeWrap .lg-code-input:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50);
}
#lgCodeWrap.multi { display: grid; grid-template-columns: repeat(5, minmax(96px, 1fr)); gap: 10px; }
/* 五仓时字段独占一行，5 个输入框不挤压 */
.lg-form .lg-field.code-wide { grid-column: 1 / -1; }

/* 结果头部：摘要 + AI 按钮 */
.lg-headbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.lg-headbar .lg-summary { margin-bottom: 0; flex: 1; min-width: 200px; }
.lg-ai-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px;
  border: 1px solid var(--brand-200); border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--brand-50), #fff);
  color: var(--brand-d2); font-size: 13px; font-weight: 700; transition: all .15s;
  box-shadow: 0 1px 4px rgba(var(--brand-rgb), .1);
}
.lg-ai-btn:hover { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .3); transform: translateY(-1px); }

/* AI 比价结果卡 */
.lg-ai-card {
  margin-bottom: 16px; padding: 14px 18px; border-radius: 12px;
  border: 1px solid var(--brand-100); background: linear-gradient(160deg, var(--brand-50), #fff 55%);
  box-shadow: 0 2px 10px rgba(var(--brand-rgb), .08);
}
.lg-ai-loading { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.lg-ai-loading.err { color: #dc2626; }
.lg-ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lg-ai-tag {
  font-size: 12px; font-weight: 700; color: #fff; background: var(--brand);
  border-radius: 999px; padding: 2px 10px;
}
.lg-ai-model { font-size: 11.5px; color: var(--ink-4); }
.lg-ai-body { font-size: 13px; line-height: 1.75; color: var(--ink-2); word-break: break-word; }
.lg-ai-body b { color: var(--brand-d2); }
.lg-ai-body .lg-ai-h { display: inline-block; margin-top: 2px; font-size: 13.5px; }

/* 物流商分组卡（全部物流商 = 分圈纵排） */
.lg-prov-block {
  border: 1px solid #e6edf5; border-radius: 14px; padding: 12px 14px 14px;
  background: #fff; box-shadow: 0 1px 6px rgba(15, 23, 42, .05);
}
.lg-prov-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lg-prov-name {
  font-size: 14px; font-weight: 700; color: var(--brand-d2);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: 999px; padding: 3px 14px;
}
.lg-prov-min { font-size: 12.5px; color: var(--ink-3); }
.lg-prov-min b { color: var(--ok-2); font-size: 14px; }
.lg-only-btn {
  margin-left: auto; height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--brand-200); background: #fff; cursor: pointer;
  font-size: 12px; color: var(--brand); transition: all .15s;
}
.lg-only-btn:hover { background: var(--brand); color: #fff; }

/* 最低价整行标绿 */
.lg-pv tbody tr.best-row td { background: var(--ok-50); }
.lg-pv tbody tr.best-row td.lg-pv-cell b { color: var(--ok-2); }
.lg-pv tbody tr.best-row td.lg-pv-chan,
.lg-pv tbody tr.best-row td.lg-pv-dest { background: var(--ok-50); }
.lg-pv tbody tr.best-row:hover td { background: var(--ok-100); }

/* 自绘退出确认弹窗 */
.quit-dialog { border-radius: 16px !important; overflow: hidden; }
.quit-wrap { padding: 26px 26px 22px; text-align: center; }
.quit-ico {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand);
}
.quit-title { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.quit-sub { font-size: 12.5px; color: var(--ink-4); margin-top: 6px; }
.quit-btns { display: flex; gap: 12px; margin-top: 20px; }
.quit-btn {
  flex: 1; height: 38px; border-radius: 10px; border: none; cursor: pointer;
  font-size: 13.5px; font-weight: 700; transition: all .15s;
}
.quit-btn.ghost { background: #f1f5f9; color: var(--ink-2); }
.quit-btn.ghost:hover { background: #e2e8f0; }
.quit-btn.danger { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .3); }
.quit-btn.danger:hover { filter: brightness(1.08); }

/* ============ v1.9.1 渠道方向按物流商分大框 ============ */
.lg-prov-group { margin-bottom: 12px; }
.lg-prov-group:last-child { margin-bottom: 0; }
.lg-prov-group-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 13px;
}
.lg-prov-group-head b {
  color: var(--brand-d2); font-size: 13.5px; font-weight: 700;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: 999px; padding: 2px 12px;
}
.lg-prov-group-head i { font-style: normal; font-size: 11.5px; color: var(--ink-4); }
.lg-prov-group-box {
  display: flex; flex-wrap: wrap; gap: 9px;
  border: 1px solid #e6edf5; border-radius: 12px; background: #fbfdff;
  padding: 10px 12px;
}
.lg-prov-group.single .lg-prov-group-box { border-style: dashed; }

/* ============ v1.9.2 AI 比价：报告正文 + 对比明细表 ============ */
.lg-ai-head .lg-ai-close {
  margin-left: auto; width: 22px; height: 22px; line-height: 20px; padding: 0;
  border: none; border-radius: 50%; background: rgba(15, 23, 42, .05);
  color: var(--ink-4); font-size: 14px; cursor: pointer; transition: all .15s;
}
.lg-ai-head .lg-ai-close:hover { background: #fee2e2; color: #dc2626; }

.lg-cmp { margin-top: 14px; }
.lg-cmp-title {
  font-size: 12.5px; font-weight: 700; color: var(--brand-d2);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.lg-cmp-title::before {
  content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--brand);
}
.lg-cmp .tbl-wrap { background: #fff; }
.lg-cmp .lg-table { white-space: normal; }
.lg-cmp .lg-table th { font-size: 11.5px; text-align: center; padding: 8px 10px; }
.lg-cmp .lg-table td {
  text-align: center; vertical-align: middle; padding: 9px 10px;
  font-size: 12.5px; cursor: text; user-select: text; -webkit-user-select: text;
}
.lg-cmp .lg-table td.lg-cmp-rank { color: var(--ink-4); font-weight: 700; width: 34px; }
.lg-cmp .lg-table td.lg-cmp-rank b { color: #f59e0b; font-size: 13px; }
.lg-cmp .lg-table td.lg-cmp-prov { font-weight: 700; color: var(--brand-d2); white-space: nowrap; }
.lg-cmp .lg-table td.lg-cmp-chan { white-space: nowrap; color: #334155; }
.lg-cmp .lg-table td.lg-cmp-price b { font-size: 13.5px; color: #0f172a; }
.lg-cmp .lg-table td.lg-cmp-price i { font-style: normal; font-size: 10.5px; color: var(--ink-4); margin-left: 2px; }
.lg-cmp .lg-table td.lg-cmp-price em {
  display: block; font-style: normal; font-size: 10.5px; color: var(--ink-4); margin-top: 1px;
}
.lg-cmp .lg-table td.lg-cmp-total b { font-size: 14px; color: var(--brand); }
.lg-cmp .lg-table td.lg-cmp-time { white-space: nowrap; color: #475569; }
.lg-cmp .lg-table td.lg-cmp-why {
  text-align: left; min-width: 190px; color: var(--ink-2); line-height: 1.6;
}
.lg-cmp .lg-table tbody tr.best-row td { background: var(--ok-50); }
.lg-cmp .lg-table tbody tr.best-row td.lg-cmp-total b { color: var(--ok-2); }
.lg-cmp .lg-table tbody tr.best-row:hover td { background: var(--ok-100); }
.lg-cmp-note { font-size: 11.5px; color: var(--ink-4); padding: 8px 2px 0; line-height: 1.6; }

/* ============ v2.0.0 五仓独立重量 / 不包税税费 / 多仓标签 ============ */
/* 单点：一个输入框；五仓：仓码 + 该仓重量（上下排列） */
.lg-code-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#lgCodeWrap.multi .lg-code-cell {
  padding: 9px 10px 10px; border: 1px solid #e8eef6; border-radius: 12px; background: #fbfdff;
}
#lgCodeWrap .lg-code-wt {
  height: 34px; border-radius: 9px; font-size: 12.5px; border-color: #e2e8f0;
  padding: 0 10px; color: var(--ink-2); background: #fff;
}
#lgCodeWrap .lg-code-wt:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50);
}
#lgCodeWrap.multi .lg-code-input { height: 38px; font-size: 13.5px; }

/* 不包税税费折算 */
.lg-taxbox {
  margin-top: 12px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid #fde8c8; background: linear-gradient(180deg, #fffdf7, #fffaf0);
}
.lg-tax-head {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px;
  font-weight: 700; color: #b45309; margin-bottom: 10px;
}
.lg-tax-hint {
  font-weight: 600; font-size: 11.5px; color: #92400e;
  background: #fff7e6; border: 1px solid #fde8c8; border-radius: 999px; padding: 2px 9px;
}
.lg-taxbox.muted .lg-tax-hint { color: var(--ink-3); background: #f8fafc; border-color: #e6edf5; }
.lg-taxbox.muted .lg-tax-grid { opacity: .82; }
.lg-tax-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; }
.lg-tax-grid label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; color: var(--ink-3); font-weight: 600;
}
.lg-tax-grid .layui-input { height: 36px; border-radius: 9px; }

/* 五仓结果组头标签 */
.lg-qtag {
  font-size: 11.5px; font-weight: 700; color: var(--brand-d2);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: 999px; padding: 2px 10px; margin-left: 8px;
}

/* 五仓合并表：仓码并排成列 */
.lg-pv-multi .lg-pv-code { text-align: center; white-space: nowrap; }
.lg-pv-multi .lg-pv-code i {
  display: block; font-style: normal; font-size: 10.5px; color: var(--ink-4); font-weight: 500;
}
.lg-pv-multi td.lg-pv-cell s {
  display: block; text-decoration: none; font-size: 10px; color: var(--ink-5, #b6c2d2); margin-top: 1px;
}
.lg-pv-multi td.lg-pv-cell.na {
  text-align: center; color: #cbd5e1; background: #fcfdff;
}
.lg-pv-multi .lg-pv-min { text-align: right; white-space: nowrap; }
.lg-pv-multi .lg-pv-min b { color: var(--ok-2); font-size: 13px; }
.lg-pv tbody tr.best-row td.lg-pv-min { background: var(--ok-50); }
.lg-prov-miss {
  font-size: 11.5px; font-weight: 600; color: #b45309;
  background: #fff7e6; border: 1px solid #fde8c8; border-radius: 999px; padding: 2px 9px;
}

/* 全部物流商：无匹配的物流商提示 */
.lg-miss {
  margin-top: 4px; padding: 10px 14px; border-radius: 10px;
  background: #f8fafc; border: 1px dashed #dbe4ef;
  font-size: 12.5px; color: var(--ink-4); line-height: 1.7;
}

/* AI 对比表：含税标记 */
.lg-cmp .lg-table td.lg-cmp-total em {
  display: block; font-style: normal; font-size: 10.5px; color: #b45309; margin-top: 1px;
}
.lg-cmp .lg-table td.lg-cmp-total em.plain { color: var(--ink-4); }

/* ================= 货件同步台 ================= */
.page-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 14px; }
.page-actions { display: flex; gap: 8px; }
.ship-go { background: linear-gradient(135deg, #f59e0b, #f97316) !important; border: none !important; color: #fff !important; font-weight: 700 !important; }

.ship-tabs {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px;
  background: #f1f5fb; border: 1px solid #e6ecf5; margin-bottom: 14px;
}
.ship-tab {
  display: inline-flex; align-items: center; gap: 5px; border: none; cursor: pointer;
  background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 9px; transition: all .15s;
}
.ship-tab:hover { color: var(--brand); }
.ship-tab.on {
  background: linear-gradient(135deg, var(--brand), var(--brand-d2, #2563eb));
  color: #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, .35);
}
.ship-placeholder { min-height: 200px; }

.ship-headrow { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.ship-title { display: flex; align-items: center; gap: 6px; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.ship-title svg { color: var(--brand); }
.ship-sub { font-size: 12px; color: var(--ink-4); margin-top: 3px; }

.ship-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ship-chip {
  display: inline-flex; align-items: baseline; gap: 5px; font-size: 12px;
  border-radius: 999px; padding: 5px 12px; border: 1px solid transparent;
}
.ship-chip b { font-weight: 700; }
.ship-chip i { font-style: normal; font-size: 10.5px; opacity: .75; }
.ship-chip.c-blue { background: #eff6ff; border-color: #dbeafe; color: #1d4ed8; }
.ship-chip.c-teal { background: #f0fdfa; border-color: #ccfbf1; color: #0f766e; }
.ship-chip.c-green { background: #f0fdf4; border-color: #dcfce7; color: #15803d; }
.ship-chip.c-orange { background: #fff7ed; border-color: #ffedd5; color: #c2410c; }
.ship-chip.c-red { background: #fef2f2; border-color: #fee2e2; color: #b91c1c; }
.ship-chip.c-gray { background: #f8fafc; border-color: #e6edf5; color: var(--ink-3); }

.ship-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.ship-sel { width: auto !important; min-width: 130px; height: 34px !important; border-radius: 9px !important; }
.ship-mini {
  display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px;
  border-radius: 9px; border: 1px solid #e6ecf5; background: #fff; color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.ship-mini:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); }
.ship-mini[disabled] { opacity: .45; cursor: default; }
.ship-kw { width: 250px !important; height: 34px !important; border-radius: 9px !important; }
.ship-act {
  height: 34px; padding: 0 16px; border-radius: 9px; border: none; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: #fff; margin-left: auto;
}
.ship-act.add { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.ship-act.batch { background: linear-gradient(135deg, #0ea5e9, #0284c7); margin-left: 0; }

.ship-usage {
  border: 1px dashed #dbe4ef; border-radius: 10px; margin-bottom: 12px; overflow: hidden;
}
.ship-usage-head {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--ink-3); background: #f8fafc;
}
.ship-usage-body { display: none; padding: 4px 14px 12px; font-size: 12px; color: var(--ink-3); line-height: 1.9; }
.ship-usage.open .ship-usage-body { display: block; }

.ship-table { min-width: 1180px; }
.ship-table th, .ship-table td { white-space: nowrap; }
.ship-table th { position: relative; }
.ship-table th .th-rs {
  position: absolute; right: -3px; top: 0; width: 7px; height: 100%;
  cursor: col-resize; z-index: 3;
}
.ship-table th .th-rs::after {
  content: ''; position: absolute; right: 3px; top: 20%; width: 1px; height: 60%;
  background: transparent; transition: background .15s;
}
.ship-table th:hover .th-rs::after { background: #b9cfe6; }
.ship-table th .th-rs:hover::after { background: var(--brand, #1e6fff); width: 2px; }
body.col-resizing { cursor: col-resize !important; user-select: none; }
body.col-resizing iframe, body.col-resizing .layui-layer { pointer-events: none; }
.ship-table .num { color: var(--ink-4); width: 44px; }
.ship-table th i { font-style: normal; font-weight: 500; color: var(--ink-4); }
.ship-id-cell { display: flex; align-items: center; gap: 5px; font-weight: 600; }
.ship-copy { cursor: pointer; color: var(--ink-4); display: inline-flex; }
.ship-copy:hover { color: var(--brand); }
.wh-cell b { font-weight: 700; }
.rg {
  display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 700;
  border-radius: 5px; padding: 1px 6px; margin-left: 6px;
}
.rg-美西 { background: #eff6ff; color: #1d4ed8; }
.rg-美中 { background: #fef9c3; color: #a16207; }
.rg-美东 { background: #fef2f2; color: #b91c1c; }
.rg-加拿大 { background: #f0fdf4; color: #15803d; }
.rg-欧洲 { background: #f5f3ff; color: #6d28d9; }
.rg-日本 { background: #fdf2f8; color: #be185d; }
.rg-墨西哥 { background: #ecfeff; color: #0e7490; }
.chan-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.st {
  display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2.5px 8px;
}
.st-ok { background: #f0fdf4; color: #15803d; }
.st-bad { background: #fef2f2; color: #b91c1c; }
.st-warn { background: #fff7ed; color: #c2410c; }
.st-info { background: #eff6ff; color: #1d4ed8; }
.st-ship { background: #eef2ff; color: #4f46e5; }
.st-muted { background: #f8fafc; color: var(--ink-3); }
.d-gray { color: var(--ink-4); font-weight: 600; }
.d-orange { color: #ea580c; font-weight: 700; }
.d-red { color: #dc2626; font-weight: 800; }
.eta-chip {
  display: inline-block; cursor: pointer; font-size: 11.5px; font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff;
  border-radius: 6px; padding: 3px 9px;
}
.eta-chip.past { background: #e2e8f0; color: var(--ink-4); }
.op-cell { white-space: nowrap; }
.ship-op {
  border: none; cursor: pointer; color: #fff; font-size: 11.5px; font-weight: 700;
  border-radius: 7px; padding: 4px 10px; margin-right: 5px;
}
.ship-op.op-track { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.ship-op.op-edit { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.ship-op.op-del { background: linear-gradient(135deg, #ef4444, #dc2626); }
.ship-op:hover { filter: brightness(1.08); }

.ship-pager { display: flex; align-items: center; gap: 12px; padding: 12px 2px 2px; font-size: 12.5px; }
.ship-pager .pgnum { font-weight: 700; }
.ship-psize { width: 66px !important; height: 30px !important; }
.pager-btns { display: inline-flex; align-items: center; gap: 8px; }

/* 弹层 */
.ship-modal { border-radius: 14px !important; padding: 0 !important; }
.ship-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 14px 16px 10px; border-bottom: 1px solid #eef2f7;
}
.ship-modal-title { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.6; }
.ship-modal-title i { font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-4); margin-left: 6px; }
.ship-modal-title .sysno { display: block; margin: 2px 0 0; }
.ship-modal-btns { display: flex; gap: 6px; flex-shrink: 0; }
.ship-modal-close {
  border: 1px solid #e6ecf5; background: #fff; border-radius: 8px; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 5px 12px;
}
.ship-modal-close:hover { color: var(--brand); border-color: var(--brand); }

.ship-trk { max-height: 62vh; overflow: auto; padding: 12px 18px 18px; }
.trk-list { position: relative; padding-left: 14px; }
.trk-list::before { content: ''; position: absolute; left: 3.5px; top: 8px; bottom: 8px; width: 2px; background: #e2e8f0; border-radius: 2px; }
.trk-item { position: relative; padding: 7px 0 9px; }
.trk-item::before {
  content: ''; position: absolute; left: -14.5px; top: 13px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-50, #eff6ff);
}
.trk-info { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.65; }
.trk-info .plus {
  font-size: 11px; color: #0e7490; background: #ecfeff; border-radius: 5px;
  padding: 1px 6px; margin-left: 8px; font-weight: 700;
}
.trk-date { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }
.ship-trk-empty, .ship-trk-err { padding: 26px 8px; text-align: center; color: var(--ink-3); font-size: 13px; line-height: 1.9; }
.ship-trk-err { color: #b45309; }

.eta-modal { padding: 14px 18px 18px; }
.eta-row {
  display: flex; align-items: center; gap: 12px; padding: 9px 0;
  border-bottom: 1px dashed #eef2f7; font-size: 13px;
}
.eta-k { width: 120px; color: var(--ink-3); font-size: 12px; flex-shrink: 0; }
.eta-note { font-size: 11.5px; color: var(--ink-4); line-height: 1.8; padding-top: 10px; }

.ship-form { padding: 14px 18px 18px; }
.sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.sf-grid label, .sf-remark {
  display: flex; flex-direction: column; gap: 4px; font-size: 12px;
  font-weight: 600; color: var(--ink-3);
}
.sf-grid label.wide { grid-column: 1 / -1; }
.sf-remark { margin-top: 10px; }
.ship-form .layui-input, .ship-form .layui-textarea { height: 36px; border-radius: 9px; }
.ship-form textarea.layui-textarea { height: auto; min-height: 84px; }
.sf-btns { margin-top: 14px; text-align: right; }

.ship-batch { padding: 14px 18px 18px; }
.ship-batch-tip {
  font-size: 12px; color: var(--ink-3); line-height: 1.9; margin-bottom: 10px;
  background: #f8fafc; border-radius: 9px; padding: 9px 12px;
}
.ship-batch-out { margin-top: 8px; font-size: 12.5px; }

/* 适配器配置 */
.ad-list { max-height: 60vh; overflow: auto; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.ad-item { border: 1px solid #e6ecf5; border-radius: 11px; padding: 11px 13px; background: #fcfdff; }
.ad-item.ad-erp { background: linear-gradient(120deg, #f4f9ff, #eef6ff); border-color: #d8e9fb; margin-bottom: 10px; }
.ad-line1 { display: flex; align-items: center; gap: 8px; }
.ad-line1 b { font-size: 13.5px; color: var(--ink); }
.ad-type {
  font-size: 10.5px; font-weight: 700; color: #4f46e5; background: #eef2ff;
  border-radius: 5px; padding: 1.5px 7px;
}
.ad-line2 { font-size: 12px; color: var(--ink-2); margin-top: 5px; word-break: break-all; }
.ad-line2.dim { color: var(--ink-4); }
.ad-line2 .warn { color: #dc2626; }
.ad-btns { margin-top: 8px; }
.ad-custom.hide { display: none; }

/* 批量导入：粘贴 / Excel 双模式 */
.ship-btabs {
  display: flex; gap: 6px; margin-bottom: 10px;
}
.ship-btabs .bt {
  border: 1px solid var(--line); background: var(--panel-2, #f6f7f9); color: var(--ink-2);
  border-radius: 8px; padding: 6px 16px; font-size: 12.5px; cursor: pointer;
}
.ship-btabs .bt.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.ship-excel-bar { display: flex; align-items: flex-end; gap: 14px; margin: 10px 0; }
.ship-defprov { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--ink-3); flex: 1; }
.ship-defprov .layui-input { height: 30px; }
.ship-excel-info { margin: 6px 0; font-size: 12.5px; }
.ship-map-chips { margin: 6px 0; }
.ship-map-chips .map-title { font-size: 12px; color: var(--ink-3); margin-bottom: 5px; }
.map-chip {
  display: inline-block; margin: 0 6px 6px 0; padding: 3px 9px; border-radius: 999px;
  background: var(--brand-50); border: 1px solid var(--brand-100); font-size: 11.5px; color: var(--ink-2);
}
.map-chip b { color: var(--brand-d2); margin-right: 3px; }
.ship-preview { max-height: 220px; overflow: auto; margin: 6px 0; font-size: 12px; }
.ship-preview table { width: 100%; }
.ship-preview th, .ship-preview td { padding: 4px 7px; white-space: nowrap; }
.ship-preview .warn { color: #dc2626; }
.ship-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 180px; padding: 14px 18px; border: 1.5px dashed var(--line); border-radius: 10px;
  color: var(--ink-2); font-size: 12.5px; cursor: pointer; text-align: center;
  transition: border-color .15s, background .15s;
}
.ship-drop i { font-style: normal; font-size: 11px; color: var(--ink-4); }
.ship-drop b { font-weight: 700; }
.ship-drop.over {
  border-color: var(--brand); background: var(--brand-50); color: var(--brand-d2);
}
.ship-excel-bar { flex-wrap: wrap; }
/* 送达时段四色：绿=一致 红=不一致 橙=待货代时段(默认) 灰=流程结束 */
.eta-chip.eta-ok { background: linear-gradient(135deg, #22c55e, #16a34a); }
.eta-chip.eta-bad { background: linear-gradient(135deg, #ef4444, #dc2626); }
.eta-chip.eta-wait { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.eta-chip.eta-done { background: #e2e8f0; color: var(--ink-4); }
.eta-chip .eta-tag {
  font-style: normal; font-size: 10px; margin-left: 4px; opacity: .9;
  border-left: 1px solid rgba(255,255,255,.45); padding-left: 5px;
}
/* 货件编号：虚线下划线，点击查看送达详情 */
.ship-id-link {
  cursor: pointer; border-bottom: 1px dashed var(--brand); padding-bottom: 1px;
}
.ship-id-link:hover { color: var(--brand); }

/* ================= v2.6.0 ================= */
/* 发货时间排序方向指示 */
.ship-mini .sort-dir { font-style: normal; font-weight: 800; color: var(--brand); margin-left: 2px; }
.ship-mini .sort-dir:empty { display: none; }

/* 亚马逊送达时段表单：测试连通 / 保存 一行布局 */
.sf-btns.sf-flex { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.sf-btns.sf-flex .erp-test {
  margin-right: auto; height: 36px; padding: 0 16px; border-radius: 9px;
  border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.sf-btns.sf-flex .erp-test:hover { background: #dbeafe; border-color: #93c5fd; }
.sf-btns.sf-flex .ship-go { min-width: 96px; }

/* 物流分析（AI） */
.ship-analysis { padding-top: 2px; }
.ai-an-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px dashed #dbe4ef; border-radius: 12px; padding: 14px 16px; background: #f8fafc;
  margin-bottom: 12px;
}
.ai-an-title { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.ai-an-sub { font-size: 12px; color: var(--ink-4); margin-top: 4px; line-height: 1.6; }
.ai-an-card {
  border: 1px solid #e6edf5; border-radius: 12px; padding: 14px 16px;
  background: #fff; box-shadow: 0 1px 6px rgba(15, 23, 42, .05);
}
