/* ==========================================================================
   焱坤云订单系统 · 基础视觉层
   原生 CSS，自研设计令牌与组件，未引用任何第三方样式库。
   ========================================================================== */

:root {
  /* 仅使用操作系统内置字体，不打包、不外链任何字体文件，规避商用授权风险 */
  --font-sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --font-mono: Consolas, "Courier New", ui-monospace, monospace;

  --brand-900: #082238;
  --brand-800: #0b2d47;
  --brand-700: #113b5a;
  --teal: #0fa393;
  --teal-600: #0b8579;
  --teal-700: #086a61;
  --teal-050: #e7f9f6;
  --blue: #1d6fa5;
  --blue-050: #eaf3fa;
  --gold: #d59631;
  --gold-050: #fdf4e4;
  --danger: #cf4444;
  --danger-050: #fdeeee;
  --ok: #21845c;
  --ok-050: #e9f7f0;
  --violet: #7050b5;
  --violet-050: #f1edfa;

  --ink: #0e2439;
  --ink-2: #3d556d;
  --ink-3: #71869b;
  --ink-4: #9aabbb;
  --line: #e1e9f1;
  --line-strong: #d2dde8;
  --surface: #ffffff;
  --surface-soft: #f7fafd;
  --surface-tint: #f1f7fb;
  --canvas: #eef4f9;

  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow-xs: 0 1px 2px rgba(13, 36, 57, 0.05);
  --shadow-sm: 0 2px 8px rgba(13, 36, 57, 0.05), 0 12px 30px rgba(13, 36, 57, 0.05);
  --shadow-md: 0 18px 48px rgba(8, 31, 51, 0.14);
  --shadow-lg: 0 28px 70px rgba(5, 24, 41, 0.24);

  --sidebar-w: 248px;
  --topbar-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

svg {
  display: block;
  flex: none;
}

img {
  max-width: 100%;
  display: block;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

::selection {
  background: rgba(15, 163, 147, 0.22);
}

:focus-visible {
  outline: 2px solid rgba(15, 163, 147, 0.55);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #c8d6e3;
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #aebfce;
  background-clip: padding-box;
  border: 3px solid transparent;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* --------------------------------------------------------------------------
   排版与通用
   -------------------------------------------------------------------------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--ink-3);
}

.dim {
  color: var(--ink-4);
}

.strong {
  font-weight: 700;
}

.nowrap {
  white-space: nowrap;
}

.right {
  text-align: right;
}

.center {
  text-align: center;
}

.amount {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

.text-danger { color: var(--danger); }
.text-warn { color: var(--gold); }
.text-teal { color: var(--teal-600); }

.icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.icon--sm { width: 15px; height: 15px; }
.icon--lg { width: 22px; height: 22px; }

/* 页脚域名：点击跳转工信部 ICP/IP 地址/域名信息备案管理系统 */
.foot-domain {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.2px;
  border-bottom: 1px dashed rgba(15, 163, 147, 0.35);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.foot-domain:hover {
  color: var(--teal-700);
  border-bottom-color: var(--teal-600);
}

.foot-domain::after {
  content: '↗';
  font-size: 9px;
  line-height: 1;
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, border-color 0.18s, opacity 0.18s;
  user-select: none;
}

.btn:hover {
  border-color: #b9c9d8;
  box-shadow: var(--shadow-xs);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--primary {
  --btn-bg: linear-gradient(135deg, #12b5a3 0%, #0b827f 58%, #126b89 100%);
  --btn-fg: #ffffff;
  --btn-border: transparent;
  box-shadow: 0 8px 18px rgba(15, 140, 130, 0.24);
}

.btn--primary:hover {
  box-shadow: 0 12px 24px rgba(15, 140, 130, 0.32);
  border-color: transparent;
}

.btn--dark {
  --btn-bg: var(--brand-800);
  --btn-fg: #ffffff;
  --btn-border: transparent;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-border: var(--line-strong);
  --btn-fg: var(--ink-2);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-fg: var(--ink-3);
}

.btn--ghost:hover {
  --btn-bg: var(--surface-tint);
  --btn-fg: var(--ink);
  border-color: transparent;
}

.btn--danger {
  --btn-bg: transparent;
  --btn-border: rgba(207, 68, 68, 0.35);
  --btn-fg: var(--danger);
}

.btn--danger:hover {
  --btn-bg: var(--danger-050);
  border-color: rgba(207, 68, 68, 0.55);
}

.btn--danger-solid {
  --btn-bg: var(--danger);
  --btn-fg: #fff;
  --btn-border: transparent;
}

.btn--warn {
  --btn-bg: var(--gold-050);
  --btn-fg: #9a6411;
  --btn-border: rgba(213, 150, 49, 0.3);
}

.btn--sm {
  height: 31px;
  padding: 0 11px;
  font-size: 12px;
  gap: 5px;
  border-radius: 8px;
}

.btn--lg {
  height: 46px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 11px;
}

.btn--block {
  width: 100%;
}

.btn--icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn--lg .icon {
  width: 18px;
  height: 18px;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* --------------------------------------------------------------------------
   表单
   -------------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field > label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.2px;
}

.field > label .req {
  color: var(--danger);
  margin-left: 2px;
}

.input,
.select,
.textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

.textarea {
  height: auto;
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.6;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-4);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #bcccdb;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(15, 163, 147, 0.7);
  box-shadow: 0 0 0 3px rgba(15, 163, 147, 0.13);
}

.input[disabled],
.select[disabled],
.textarea[disabled] {
  background: var(--surface-soft);
  color: var(--ink-3);
  cursor: not-allowed;
}

.select {
  appearance: none;
  padding-right: 32px;
  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='%2371869b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  cursor: pointer;
}

.input--sm,
.select--sm {
  height: 34px;
  font-size: 12.5px;
}

.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon .icon {
  position: absolute;
  left: 12px;
  color: var(--ink-4);
  pointer-events: none;
}

.input-icon .input {
  padding-left: 36px;
}

.input-icon .input-action {
  position: absolute;
  right: 7px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  border-radius: 7px;
}

.input-icon .input-action:hover {
  background: var(--surface-tint);
  color: var(--ink);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.form-grid .span-2 {
  grid-column: span 2;
}

.hint {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-2);
  user-select: none;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal-600);
  cursor: pointer;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #c7d4e0;
  transition: background 0.2s;
  cursor: pointer;
  flex: none;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s var(--ease);
}

.switch.is-on {
  background: var(--teal);
}

.switch.is-on::after {
  transform: translateX(16px);
}

/* --------------------------------------------------------------------------
   徽标
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.badge--plain::before {
  display: none;
}

.badge--pending-pay { color: #9b6712; background: var(--gold-050); border-color: rgba(213, 150, 49, 0.2); }
.badge--paid { color: #1f648f; background: var(--blue-050); border-color: rgba(29, 111, 165, 0.16); }
.badge--pending-ship { color: #a46812; background: #fdf1df; border-color: rgba(213, 150, 49, 0.22); }
.badge--shipped { color: #1e63a0; background: #eaf2fb; border-color: rgba(30, 99, 160, 0.18); }
.badge--signed { color: #0b7d7a; background: #e6f7f5; border-color: rgba(11, 125, 122, 0.18); }
.badge--completed { color: #1c7a53; background: var(--ok-050); border-color: rgba(33, 132, 92, 0.16); }
.badge--cancelled { color: #64788b; background: #eef3f7; border-color: rgba(100, 120, 139, 0.16); }
.badge--refunding { color: #6947a9; background: var(--violet-050); border-color: rgba(112, 80, 181, 0.18); }
.badge--refunded { color: #b03939; background: var(--danger-050); border-color: rgba(207, 68, 68, 0.18); }
.badge--pending-audit { color: #9b6712; background: var(--gold-050); border-color: rgba(213, 150, 49, 0.2); }
.badge--approved { color: #1e63a0; background: var(--blue-050); border-color: rgba(29, 111, 165, 0.16); }
.badge--rejected { color: #b03939; background: var(--danger-050); border-color: rgba(207, 68, 68, 0.18); }
.badge--done { color: #1c7a53; background: var(--ok-050); border-color: rgba(33, 132, 92, 0.16); }
.badge--unpaid { color: #64788b; background: #eef3f7; border-color: rgba(100, 120, 139, 0.16); }
.badge--teal { color: var(--teal-700); background: var(--teal-050); border-color: rgba(15, 163, 147, 0.18); }
.badge--neutral { color: var(--ink-3); background: var(--surface-tint); border-color: var(--line); }
.badge--violet { color: var(--violet); background: var(--violet-050); border-color: rgba(112, 80, 181, 0.18); }
.badge--gold { color: #9b6712; background: var(--gold-050); border-color: rgba(213, 150, 49, 0.2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--surface-tint);
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   卡片
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 14px;
}

.card__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.1px;
}

.card__title .icon {
  color: var(--teal-600);
}

.card__sub {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 400;
}

.card__body {
  padding: 0 20px 20px;
}

.card__foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   数据表
   -------------------------------------------------------------------------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  min-width: 100%;
  font-size: 13px;
}

.data-table thead th {
  padding: 11px 12px;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.data-table thead th:first-child { padding-left: 20px; }
.data-table thead th:last-child { padding-right: 20px; }
.data-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
}
.data-table tbody td:first-child { padding-left: 20px; }
.data-table tbody td:last-child { padding-right: 20px; }
.data-table tbody tr {
  transition: background 0.14s;
}
.data-table tbody tr:hover {
  background: #f8fbfd;
}
.data-table tbody tr.is-selected {
  background: #f0fbf9;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table .col-actions {
  white-space: nowrap;
  text-align: right;
}
.data-table .cell-main {
  color: var(--ink);
  font-weight: 600;
}
.data-table .cell-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
}
.data-table .link {
  color: var(--brand-700);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 12.5px;
  border-bottom: 1px dashed rgba(17, 59, 90, 0.35);
  transition: color 0.15s, border-color 0.15s;
}
.data-table .link:hover {
  color: var(--teal-600);
  border-color: var(--teal);
}
.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   分页
   -------------------------------------------------------------------------- */
.pager {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pager__info {
  font-size: 12px;
  color: var(--ink-3);
  margin-right: auto;
}
.pager button {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s;
}
.pager button:hover:not([disabled]) {
  border-color: var(--teal);
  color: var(--teal-700);
  background: var(--teal-050);
}
.pager button.is-active {
  background: var(--brand-800);
  border-color: var(--brand-800);
  color: #fff;
}
.pager button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.pager .pager__ellipsis {
  color: var(--ink-4);
  padding: 0 2px;
}

/* --------------------------------------------------------------------------
   空状态、加载
   -------------------------------------------------------------------------- */
.empty {
  padding: 52px 20px;
  text-align: center;
  color: var(--ink-3);
}
.empty__art {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f1f8fb, #e7f1f7);
  color: #9fb6c7;
  border: 1px solid #e4edf4;
}
.empty__art .icon { width: 30px; height: 30px; }
.empty__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.empty__desc {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--ink-4);
}
.empty .btn { margin-top: 16px; }

.page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48vh;
  color: var(--ink-3);
  font-size: 13px;
}
.loader {
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(15, 163, 147, 0.18);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* --------------------------------------------------------------------------
   模态框
   -------------------------------------------------------------------------- */
.modal-open {
  overflow: hidden;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 20, 34, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.modal-backdrop.is-show {
  opacity: 1;
}
.modal {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
  overflow: hidden;
}
.modal-backdrop.is-show .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal--sm { max-width: 430px; }
.modal--lg { max-width: 760px; }
.modal--xl { max-width: 980px; }
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--line);
}
.modal__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.modal__sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-3);
}
.modal__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transition: background 0.15s, color 0.15s;
  flex: none;
}
.modal__close:hover {
  background: var(--surface-tint);
  color: var(--ink);
}
.modal__body {
  padding: 20px 24px;
  overflow-y: auto;
  min-height: 0;
}
.modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}
.modal-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}
.modal-alert .icon {
  color: var(--teal-600);
  margin-top: 2px;
}
.modal-alert--warn {
  background: var(--gold-050);
  border-color: rgba(213, 150, 49, 0.24);
  color: #8a5c10;
}
.modal-alert--warn .icon { color: var(--gold); }
.modal-alert--danger {
  background: var(--danger-050);
  border-color: rgba(207, 68, 68, 0.2);
  color: #9b3434;
}
.modal-alert--danger .icon { color: var(--danger); }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast-root {
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 240px;
  max-width: 380px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #0d263b;
  color: #eaf5fb;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  line-height: 1.55;
  pointer-events: auto;
  transform: translateX(16px);
  opacity: 0;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.toast.is-show {
  transform: translateX(0);
  opacity: 1;
}
.toast__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 1px;
}
.toast--success .toast__icon { background: rgba(65, 214, 172, 0.16); color: #4fe1b7; }
.toast--error .toast__icon { background: rgba(255, 122, 122, 0.16); color: #ff8f8f; }
.toast--info .toast__icon { background: rgba(99, 179, 255, 0.16); color: #7dc4ff; }
.toast--warn .toast__icon { background: rgba(247, 189, 94, 0.16); color: #ffca76; }

/* --------------------------------------------------------------------------
   工具类
   -------------------------------------------------------------------------- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; min-width: 0; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-8 { margin-bottom: 8px; }
.hide { display: none !important; }

.divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 18px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: span 1; }
  .toast-root { left: 12px; right: 12px; top: 12px; }
  .toast { max-width: none; }
}
