/*!
===========================================================================
 Started Design System

 Copyright (c) 2026 Started

 Developed by Started
 WeChat : yumengit

===========================================================================
*/
:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --secondary-bg: #FFFFFF;
  --secondary-border: #E5E7EB;
  --danger: #DC2626;
  --danger-hover: #B91C1C;
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --text: #111827;
  --text-secondary: #4B5563;
  --muted: #6B7280;
  --border: #E5E7EB;
  --sidebar: #0F172A;
  --sidebar-text: #CBD5E1;
  --sidebar-active: #2563EB;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.04);
  --sidebar-width: 200px;
  --topbar-height: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "HarmonyOS Sans", "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--text); }

/* ===== Icons ===== */
.icon { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; vertical-align: -3px; }
.icon-sm { width: 16px; height: 16px; }

/* ===== Buttons: Primary / Secondary / Danger only ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: .15s ease; background: var(--primary); color: #fff;
  font-weight: 500; white-space: nowrap;
}
.btn:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary {
  background: var(--secondary-bg); color: var(--text); border-color: var(--secondary-border);
}
.btn-secondary:hover { border-color: #BFDBFE; color: var(--primary); background: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); color: #fff; }
.btn-block { width: 100%; height: 40px; }
.btn-ghost { /* alias → secondary，兼容旧标记 */ }

/* ===== App Shell: 左导航 + 顶栏 + 内容 ===== */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}
.app-sidebar {
  background: var(--sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.app-brand {
  display: flex; align-items: center; gap: 10px;
  height: var(--topbar-height); padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff; font-weight: 700; font-size: 15px;
}
.app-brand img {
  width: 28px; height: 28px; object-fit: contain; border-radius: 6px; background: #fff;
}
.app-nav {
  flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 10px;
}
.app-nav-label {
  margin: 14px 10px 6px; font-size: 11px; letter-spacing: .04em;
  color: #64748B; text-transform: uppercase;
}
.app-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; color: var(--sidebar-text);
  margin-bottom: 2px; font-size: 14px;
}
.app-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-nav a.active {
  background: var(--sidebar-active); color: #fff; font-weight: 600;
}
.app-nav a.nav-sub {
  font-size: 13px;
  padding: 6px 12px 6px 34px;
  color: #94A3B8;
}
.app-nav a.nav-sub.active { color: #fff; }

.app-main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.app-footer {
  margin-top: auto; padding: 20px 24px; border-top: 1px solid var(--border);
  background: #fff; color: var(--muted); font-size: 13px;
  display: flex; flex-direction: column; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: center; text-align: center;
}
.app-footer .footer-main {
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.app-footer .footer-main strong { color: var(--text); font-size: 14px; }
.app-footer .footer-contact {
  display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 480px;
}
.app-footer .footer-contact img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border);
}
.app-topbar {
  height: var(--topbar-height);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; position: sticky; top: 0; z-index: 30;
}
.app-topbar h1 { font-size: 16px; font-weight: 600; }
.app-topbar-actions {
  display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px;
}
.app-content { flex: 1; padding: 20px; padding-bottom: 8px; }

/* ===== Cards ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.card + .card { margin-top: 14px; }
.card-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.card-title h2, .card-title h3 { font-size: 15px; margin: 0; }

.panel { /* alias */ background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }

/* ===== Forms ===== */
.form-item { margin-bottom: 14px; }
.form-item label { display: block; margin-bottom: 6px; color: var(--text-secondary); font-size: 13px; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; height: 38px; border: 1px solid var(--border); border-radius: 8px;
  padding: 0 12px; outline: none; background: #fff; color: var(--text);
}
.form-item textarea { height: 120px; padding: 10px 12px; resize: vertical; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: end;
}
.filters .form-item { margin: 0; min-width: 128px; }
.filters .grow { flex: 1; min-width: 180px; }

/* 源站风格：标签点选 + 输入，少用下拉 */
.filter-panel { padding: 16px 18px; }
.filter-form { display: flex; flex-direction: column; gap: 12px; }
.filter-row-sub { padding-top: 2px; }
.filter-row-sub .filter-label { color: #94A3B8; }
.filter-row {
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
}
.filter-label {
  width: 64px; flex-shrink: 0; padding-top: 6px;
  color: var(--muted); font-size: 13px; line-height: 1.4;
}
.filter-search {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%;
}
.filter-search input[type="text"] {
  height: 38px; border: 1px solid var(--border); border-radius: 8px;
  padding: 0 12px; outline: none; background: #fff; min-width: 180px; flex: 1;
}
.filter-search input[type="text"]:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.price-range {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1;
}
.price-range input {
  width: 120px; height: 34px; border: 1px solid var(--border); border-radius: 8px;
  padding: 0 10px; outline: none; background: #fff;
}
.price-range input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.price-range .range-sep { color: var(--muted); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.chip-group-sm { gap: 6px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 12px; border-radius: 6px;
  border: 1px solid var(--border); background: #fff;
  color: var(--text-secondary); font-size: 13px; cursor: pointer;
  transition: .12s ease;
}
.chip:hover { border-color: #BFDBFE; color: var(--primary); }
.chip.active {
  background: #EFF6FF; border-color: var(--primary); color: var(--primary); font-weight: 600;
}
.chip-group-sm .chip { height: 28px; padding: 0 10px; font-size: 12px; }

/* ===== Stats ===== */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
}
.stat-card .label { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.stat-card .value { font-size: 26px; font-weight: 700; color: var(--text); }

/* ===== Table ===== */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; font-size: 13px;
}
.table th { background: #F9FAFB; color: var(--text-secondary); font-weight: 600; }

/* ===== Alerts ===== */
.alert { padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-ok { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.alert-danger { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

.logo-upload-box .logo-upload-row {
  display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
}
.logo-preview {
  width: 96px; height: 96px; border: 1px solid var(--border); border-radius: 12px;
  background: #F9FAFB; display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-upload-fields { flex: 1; min-width: 220px; }
.logo-upload-fields input[type="file"] {
  width: 100%; height: auto; padding: 10px 0; border: none; border-radius: 0;
  box-shadow: none; background: transparent;
}

/* ===== Loader ===== */
.page-loader {
  position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center;
  background: rgba(247, 248, 250, .75);
}
.page-loader.show { display: flex; }
.loader-box {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 28px; text-align: center; min-width: 160px;
}
.spinner {
  width: 28px; height: 28px; margin: 0 auto 10px;
  border: 3px solid #DBEAFE; border-top-color: var(--primary);
  border-radius: 50%; animation: spin .7s linear infinite;
}
.loader-text { color: var(--muted); font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Login ===== */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--bg); padding: 24px;
}
.login-card {
  width: min(400px, 100%);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow);
}
.login-card .logo { width: 48px; height: 48px; margin: 0 auto 12px; object-fit: contain; }
.login-card h1 { text-align: center; font-size: 22px; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--muted); margin-bottom: 24px; font-size: 13px; }
.login-foot { margin: 16px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.captcha-row {
  display: flex; align-items: center; gap: 8px;
}
.captcha-row input { flex: 1; min-width: 0; }
.captcha-img {
  width: 120px; height: 40px; border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; background: #F9FAFB; object-fit: cover; flex-shrink: 0;
}
.captcha-img:hover { border-color: #BFDBFE; }

/* ===== Modal ===== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal-panel {
  width: 100%; max-width: 440px; background: #fff; border-radius: 14px;
  border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
  overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-close {
  width: 32px; height: 32px; border: none; background: transparent;
  font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 8px;
}
.modal-close:hover { background: #F3F4F6; color: var(--text); }
.modal-body { padding: 16px; }
.modal-actions {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px;
}

/* ===== Goods grid ===== */
.list-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin: 12px 0; color: var(--text-secondary); font-size: 13px;
}
.goods-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.goods-card {
  background: var(--card); border: none; border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.06);
  overflow: hidden; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}
.goods-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; z-index: 2;
  background: #94A3B8;
}
.goods-card--hot::before { background: linear-gradient(180deg, #F97316, #DC2626); }
.goods-card--good::before { background: linear-gradient(180deg, #38BDF8, #2563EB); }
.goods-card--slow::before { background: #94A3B8; }
.goods-card--zero::before { background: #CBD5E1; }
.goods-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,23,42,.12); }
.goods-card .cover { aspect-ratio: 1; background: #F3F4F6; position: relative; overflow: hidden; }
.goods-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.goods-card .badge {
  position: absolute; left: 10px; top: 10px; color: #fff;
  font-size: 11px; padding: 2px 7px; border-radius: 6px; font-weight: 600; z-index: 1;
}
.goods-card .badge-hot { background: rgba(220,38,38,.92); }
.goods-card .badge-rec { background: rgba(37,99,235,.92); }
.sale-pill {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; backdrop-filter: blur(6px);
}
.sale-pill .icon { width: 13px; height: 13px; }
.sale-pill--hot { background: rgba(254,226,226,.95); color: #B91C1C; }
.sale-pill--good { background: rgba(219,234,254,.95); color: #1D4ED8; }
.sale-pill--slow { background: rgba(241,245,249,.95); color: #475569; }
.sale-pill--zero { background: rgba(255,255,255,.9); color: #94A3B8; }
.goods-card .body { padding: 12px 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.goods-card .title {
  font-size: 13px; line-height: 1.4; height: 36px; overflow: hidden; color: var(--text); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.goods-card .code { color: var(--muted); font-size: 11px; margin-top: -4px; }

.card-kpi {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 6px;
}
.card-kpi-price {
  padding: 8px 10px; border-radius: 10px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}
.card-kpi-freight {
  padding: 8px 10px; border-radius: 10px;
}
.card-kpi-label {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; color: var(--muted); margin-bottom: 2px; font-weight: 500;
}
.card-kpi-label .icon { width: 12px; height: 12px; }
.card-kpi-value {
  display: block; font-size: 20px; font-weight: 800; color: #1D4ED8; line-height: 1.15;
  word-break: break-all;
}
.card-kpi-freight-val {
  display: block; font-size: 13px; font-weight: 700; line-height: 1.25;
  word-break: break-all;
}
.freight--free {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}
.freight--free .card-kpi-label,
.freight--free .card-kpi-freight-val { color: #047857; }
.freight--low {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
}
.freight--low .card-kpi-label,
.freight--low .card-kpi-freight-val { color: #C2410C; }
.freight--mid {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
}
.freight--mid .card-kpi-label,
.freight--mid .card-kpi-freight-val { color: #BE123C; }
.freight--high {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
}
.freight--high .card-kpi-label,
.freight--high .card-kpi-freight-val { color: #991B1B; }
.freight--unk {
  background: #F1F5F9;
}
.freight--unk .card-kpi-label,
.freight--unk .card-kpi-freight-val { color: #64748B; }

.card-sales {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.card-sale {
  padding: 8px 9px; border-radius: 10px;
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.card-sale b {
  font-size: 16px; font-weight: 800; line-height: 1.2;
}
.card-sale span { font-size: 11px; opacity: .85; }
.card-sales--hot .card-sale {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%); color: #9F1239;
}
.card-sales--good .card-sale {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%); color: #1E40AF;
}
.card-sales--slow .card-sale {
  background: #F1F5F9; color: #475569;
}
.card-sales--zero .card-sale {
  background: #F8FAFC; color: #94A3B8;
}

.price { color: #1D4ED8; font-weight: 700; font-size: 18px; }
.price small { font-size: 12px; font-weight: 500; }
.meta { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.tag {
  display: inline-block; padding: 2px 7px; border-radius: 6px; background: #F3F4F6;
  color: #4B5563; font-size: 11px;
}
.tag-blue { background: #EFF6FF; color: #1D4ED8; }

.pager-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0 4px; flex-wrap: wrap;
}
.page-size-form {
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px;
}
.page-size-form select {
  height: 34px; border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; background: #fff;
}
.pager {
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-left: auto;
}
.pager a, .pager span {
  min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border); color: var(--text-secondary);
  padding: 0 10px; background: #fff;
}
.pager .active { background: var(--primary); border-color: var(--primary); color: #fff; }

.empty { padding: 48px 16px; text-align: center; color: var(--muted); }

/* ===== Detail：货盘运营驾驶舱 ===== */
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.ops-async-tip { display: flex; align-items: center; gap: 10px; }

.ops-page { display: flex; flex-direction: column; gap: 14px; }
.ops-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ops-panel-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border-bottom: 1px solid var(--border);
}
.ops-panel-bar h2 {
  margin: 0; font-size: 14px; font-weight: 700; color: #0F172A;
  display: inline-flex; align-items: center; gap: 6px;
}
.ops-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 6px; font-size: 12px; font-weight: 600;
}
.ops-badge-orange { background: #FFF7ED; color: #C2410C; }

.ops-overview { overflow: visible; }
.ops-overview-body {
  display: grid;
  grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
.ops-gallery {
  padding: 18px;
  background: linear-gradient(180deg, #0B1220 0%, #111827 100%);
  border-right: 1px solid #1F2937;
  position: sticky;
  top: calc(var(--topbar-height) + 8px);
  align-self: start;
}
.ops-main-stage {
  position: relative;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.ops-main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  background: #fff;
  min-height: 420px;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.12); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; z-index: 2;
}
.gallery-nav:hover { background: #fff; color: var(--primary); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-nav .icon { width: 18px; height: 18px; }
.ops-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow: auto; }
.ops-thumbs img, .thumbs img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2); cursor: pointer; flex-shrink: 0; background: #fff;
}
.ops-thumbs img.active { border-color: #60A5FA; box-shadow: 0 0 0 2px rgba(96,165,250,.35); }

.ops-decision {
  padding: 16px 18px 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ops-decision-head { min-width: 0; }
.ops-code-line {
  color: var(--muted); font-size: 12px; margin-bottom: 6px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.ops-code-line b { color: var(--text); font-weight: 600; }
.ops-decision h1 {
  font-size: 20px; line-height: 1.35; margin: 0 0 8px; font-weight: 700;
}
.ops-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ops-tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
  border-radius: 6px; font-size: 12px; font-weight: 600;
}
.ops-tag-blue { background: #EFF6FF; color: #1D4ED8; }
.ops-tag-green { background: #ECFDF5; color: #047857; }
.ops-tag-red { background: #FEF2F2; color: #B91C1C; }
.ops-tag-orange { background: #FFF7ED; color: #C2410C; }

.ops-kpi-band {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding: 12px 14px; border-radius: 10px;
  background: #F8FAFC; border: 1px solid #E2E8F0;
}
.ops-kpi-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ops-kpi-value { font-size: 24px; font-weight: 800; line-height: 1.15; color: var(--text); word-break: break-all; }

.ops-stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.ops-stat {
  padding: 10px 12px; border-radius: 10px;
  background: #fff; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.ops-stat b { font-size: 16px; word-break: break-all; }
.ops-stat span { font-size: 12px; color: var(--muted); }

.ops-tone-blue { color: #1D4ED8 !important; }
.ops-tone-green { color: #047857 !important; }
.ops-tone-red { color: #B91C1C !important; }
.ops-tone-orange { color: #C2410C !important; }
.ops-tone-muted { color: var(--muted) !important; }

.ops-side-block {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
}
.ops-side-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; font-weight: 700; color: #0F172A; margin-bottom: 10px;
}
.ops-side-title .icon { vertical-align: -3px; }
.ops-platform-line {
  display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: start;
  margin-bottom: 8px;
}
.ops-side-label { font-size: 12px; color: var(--muted); font-weight: 600; padding-top: 4px; }
.ops-kv { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ops-kv > div { display: grid; grid-template-columns: 40px 1fr; gap: 8px; font-size: 13px; }
.ops-kv dt { margin: 0; color: var(--muted); }
.ops-kv dd { margin: 0; color: var(--text-secondary); line-height: 1.55; word-break: break-all; }
.ops-kv-inline { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #E5E7EB; }

.ops-freight-head-nums {
  font-size: 12px; font-weight: 500; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.ops-freight-head-nums b { font-size: 15px; font-weight: 800; }
.ops-sep { color: #CBD5E1; }
.ops-freight-table { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow: auto; }
.ops-freight-group {
  border-radius: 8px; border: 1px solid #E5E7EB; overflow: hidden;
}
.ops-freight-group-title {
  font-size: 12px; font-weight: 700; padding: 6px 10px;
  background: #F8FAFC; border-bottom: 1px solid #E5E7EB; color: #334155;
}
.ops-freight-blue { border-color: #BFDBFE; }
.ops-freight-blue .ops-freight-group-title { background: #EFF6FF; color: #1D4ED8; }
.ops-freight-green { border-color: #A7F3D0; }
.ops-freight-green .ops-freight-group-title { background: #ECFDF5; color: #047857; }
.ops-freight-red { border-color: #FECACA; }
.ops-freight-red .ops-freight-group-title { background: #FEF2F2; color: #B91C1C; }
.ops-freight-row {
  display: grid; grid-template-columns: 88px 1fr; gap: 10px;
  padding: 8px 10px; border-top: 1px solid #F1F5F9; align-items: start;
}
.ops-freight-row:first-of-type { border-top: none; }
.ops-freight-fee { display: flex; flex-direction: column; gap: 2px; }
.ops-freight-fee b { font-size: 18px; font-weight: 800; line-height: 1.2; }
.ops-freight-continue { font-size: 11px; color: var(--muted); }
.ops-freight-areas { display: flex; flex-wrap: wrap; gap: 5px; }
.ops-freight-empty {
  padding: 12px; border-radius: 8px; background: #FFF7ED; color: #C2410C;
  font-weight: 700; font-size: 15px;
}

.ops-fold { padding: 10px 16px 0; }
.ops-fold summary {
  cursor: pointer; color: var(--primary); font-size: 13px; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; gap: 10px;
}
.ops-fold summary::-webkit-details-marker { display: none; }
.ops-fold-block { padding: 0; }
.ops-fold-block > summary {
  padding: 12px 16px;
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border-bottom: 1px solid var(--border); color: #0F172A;
}
.ops-fold-block[open] > summary { border-bottom: 1px solid var(--border); }
.ops-fold .freight-box, .ops-fold .detail-images-body, .ops-fold .aftersale-text {
  padding: 12px 0 4px;
}
.ops-panel > .aftersale-text { padding: 14px 16px 16px; }

.freight-box { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.freight-box .freight-summary {
  font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px;
}
.freight-box .freight-section { margin-bottom: 12px; }
.freight-box .freight-title { font-weight: 600; color: var(--text); margin-bottom: 6px; }
.freight-box .freight-block { margin: 0 0 8px 0; }
.freight-box .freight-fee { color: var(--danger); font-weight: 600; }
.freight-box .freight-areas { color: var(--text-secondary); word-break: break-all; }

.muted { color: var(--muted); font-size: 12px; }
.aftersale-text {
  margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 13px;
  color: var(--text-secondary); line-height: 1.7;
}
.table-scroll { overflow: auto; padding: 0 0 4px; }
.ops-sku-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.ops-sku-table th, .ops-sku-table td { border-bottom: 1px solid var(--border); padding: 11px 14px; text-align: left; }
.ops-sku-table th { background: #F8FAFC; color: var(--muted); font-weight: 600; }
.ops-sku-table tbody tr:hover { background: #F8FAFC; }
.ops-num { font-weight: 700; }
.stock-badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px;
  border-radius: 6px; font-size: 12px; font-weight: 600;
}
.stock-ok { background: #ECFDF5; color: #047857; }
.stock-muted { background: #F3F4F6; color: #6B7280; }
.stock-empty { background: #FEF2F2; color: #B91C1C; }

.ops-contact {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; color: #1E3A8A; font-size: 13px; line-height: 1.6;
}
.ops-contact img {
  width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); flex-shrink: 0;
}
.detail-images-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 16px; }
.detail-images-body img { margin: 0 auto; max-width: 100%; border-radius: 8px; }

@media (max-width: 1280px) {
  .ops-overview-body { grid-template-columns: minmax(380px, 460px) minmax(0, 1fr); }
  .ops-main-img { min-height: 360px; }
}
@media (max-width: 1200px) {
  .goods-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .ops-overview-body { grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); }
  .ops-main-img { min-height: 320px; }
  .ops-freight-row { grid-template-columns: 72px 1fr; }
}
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: relative; height: auto; max-height: none; }
  .ops-overview-body { grid-template-columns: 1fr; }
  .ops-gallery {
    position: static; border-right: none; border-bottom: 1px solid #1F2937;
  }
  .ops-main-img { min-height: 280px; }
  .ops-kpi-band, .ops-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-freight-table { max-height: none; }
  .goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
