@charset "UTF-8";
/* ============ 全链路订单履约智控系统 · 基础设计系统 ============ */
:root {
  --green-950: #062b20;
  --green-900: #07382a;
  --green-850: #0a4433;
  --green-800: #0b4a37;
  --green-700: #0c6248;
  --green-600: #0e7a57;
  --brand: #10a171;
  --brand-2: #24bd87;
  --brand-soft: #e9f8f1;
  --mint-50: #f2fbf7;
  --mint-100: #e1f5ec;
  --mint-200: #c6ecdb;
  --mint-300: #9fdcc3;

  --paper: #f4f8f6;
  --surface: #ffffff;
  --surface-2: #fbfdfc;
  --line: #e4ede8;
  --line-strong: #d2e2da;
  --ink: #102a22;
  --ink-2: #25453b;
  --muted: #6d837b;
  --faint: #91a69e;

  --amber: #c4852a;
  --amber-bg: #fdf5e6;
  --red: #c2493f;
  --red-bg: #fbefed;
  --blue: #356fa8;
  --blue-bg: #edf4fb;
  --violet: #6f5fbf;
  --violet-bg: #f2effc;

  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius: 13px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(10, 60, 44, 0.04);
  --shadow-sm: 0 4px 14px rgba(10, 60, 44, 0.055);
  --shadow: 0 16px 40px rgba(8, 52, 38, 0.075);
  --shadow-lg: 0 30px 80px rgba(7, 42, 31, 0.18);

  --sidebar-w: 258px;
  --topbar-h: 66px;

  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans CN", system-ui, -apple-system, sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "SF Pro Display", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;

  --ease: cubic-bezier(.22, .8, .26, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
table { border-collapse: separate; border-spacing: 0; width: 100%; }
::selection { background: rgba(16, 161, 113, 0.2); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cfded7; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #b6ccc1; }

.ic { width: 18px; height: 18px; flex: none; }
.ic.sm { width: 15px; height: 15px; }
.ic.lg { width: 22px; height: 22px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: 0.2px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.strong { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12.5px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.w-full { width: 100%; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .2px;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, color .18s;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0d7f5b 0%, #12a171 55%, #1cb583 100%);
  box-shadow: 0 8px 20px rgba(14, 143, 99, 0.24), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(14, 143, 99, 0.32), inset 0 1px 0 rgba(255,255,255,.22); transform: translateY(-1px); }
.btn-secondary { background: #fff; border-color: var(--line-strong); color: var(--ink-2); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: var(--mint-300); color: var(--green-700); background: var(--mint-50); }
.btn-ghost { background: rgba(16,161,113,.08); color: var(--green-700); border-color: rgba(16,161,113,.14); }
.btn-ghost:hover { background: rgba(16,161,113,.14); }
.btn-dark { background: var(--green-900); color: #fff; box-shadow: 0 8px 18px rgba(7,56,42,.2); }
.btn-dark:hover { background: var(--green-800); }
.btn-danger { background: var(--red-bg); color: var(--red); border-color: rgba(194,73,63,.18); }
.btn-danger:hover { background: #f7e2df; }
.btn-text { color: var(--green-700); background: transparent; height: 32px; padding: 0 8px; }
.btn-text:hover { background: var(--mint-50); }
.btn-block { width: 100%; }
.btn-lg { height: 46px; border-radius: 12px; font-size: 14.5px; }
.btn-sm { height: 31px; border-radius: 8px; font-size: 12.5px; padding: 0 11px; }
.btn-xs { height: 26px; border-radius: 7px; font-size: 12px; padding: 0 9px; gap: 4px; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; color: var(--ink-2);
  border: 1px solid transparent; transition: .18s var(--ease); position: relative;
}
.icon-btn:hover { background: var(--mint-50); color: var(--green-700); }
.icon-btn.ghost { border-color: var(--line); background: #fff; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.sm .ic { width: 16px; height: 16px; }

/* ---------- 表单 ---------- */
.field { display: block; }
.field-label { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; letter-spacing: .2px; }
.field-label i { color: var(--red); font-style: normal; }
.input-wrap {
  display: flex; align-items: center; gap: 9px; min-height: 40px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 0 12px; transition: border-color .18s, box-shadow .18s, background .18s;
}
.input-wrap > .ic { color: var(--faint); width: 17px; height: 17px; }
.input-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(16,161,113,.12); }
.input-wrap input, .input-wrap select, .input-wrap textarea { border: 0; outline: none; background: transparent; width: 100%; min-width: 0; padding: 9px 0; font-size: 13.5px; }
.input-wrap textarea { resize: vertical; min-height: 80px; padding: 10px 0; }
.input-wrap input::placeholder, .input-wrap textarea::placeholder { color: #a9bab2; }
.input-wrap.is-error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(194,73,63,.1); }
.input-wrap .suffix { font-size: 12px; color: var(--faint); white-space: nowrap; }
.pwd-toggle { color: var(--faint); display: inline-flex; padding: 4px; border-radius: 6px; }
.pwd-toggle:hover { color: var(--green-700); background: var(--mint-50); }

select.input, .input-plain, textarea.input-plain, input.input-plain {
  width: 100%; height: 40px; padding: 0 12px; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 10px; outline: none; font-size: 13.5px; transition: border-color .18s, box-shadow .18s;
}
textarea.input-plain { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.65; }
select.input-plain { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236d837b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
select.input-plain:focus, .input-plain:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(16,161,113,.12); }

.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.switch { position: relative; width: 38px; height: 22px; border-radius: 22px; background: #d9e5df; cursor: pointer; transition: .2s; flex: none; border: 0; }
.switch::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .22s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.switch.on { background: linear-gradient(135deg, #0e8f63, #1cb583); }
.switch.on::after { transform: translateX(16px); }
.switch[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- 状态标签 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
  background: #f0f4f2; color: #5d7269;
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .75; }
.chip.no-dot::before { display: none; }
.chip.success { background: var(--mint-100); color: #0b7a55; }
.chip.warning { background: var(--amber-bg); color: var(--amber); }
.chip.danger { background: var(--red-bg); color: var(--red); }
.chip.info { background: var(--blue-bg); color: var(--blue); }
.chip.violet { background: var(--violet-bg); color: var(--violet); }
.chip.neutral { background: #f0f4f2; color: #687d74; }
.chip.outline { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }
.chip.solid { background: var(--green-800); color: #fff; }
.chip.lg { height: 28px; padding: 0 11px; font-size: 12.5px; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 5px; background: var(--mint-50); color: var(--green-700); font-size: 11.5px; font-weight: 600; border: 1px solid var(--mint-200); }

/* ---------- 动效 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.96) translateY(8px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -420px 0; } 100% { background-position: 420px 0; } }
@keyframes dash { to { stroke-dashoffset: -220; } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.anim-up { animation: fadeUp .5s var(--ease) both; }
.delay-1 { animation-delay: .06s; } .delay-2 { animation-delay: .12s; } .delay-3 { animation-delay: .18s; } .delay-4 { animation-delay: .24s; }

.btn-spin {
  display: inline-block; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .38); border-top-color: #fff;
  animation: spin .7s linear infinite; vertical-align: -2px; margin-right: 6px;
}
.btn-secondary .btn-spin, .btn-ghost .btn-spin, .btn-text .btn-spin {
  border-color: rgba(16, 161, 113, .22); border-top-color: var(--brand);
}

/* 页面内容滚动条 */
.scroll-y { overflow-y: auto; }
.no-scroll { overflow: hidden; }
