/* ==========================================================================
   泵易联 bengyilian2026 —— 设计系统 Design System v1.0
   所有端共用：PC 管理后台 / H5 移动端
   ========================================================================== */

:root {
  /* ---- 品牌 ---- */
  --brand-red: #E1251B;
  --brand-red-dark: #C41E15;
  --brand-red-soft: #FEF2F1;

  /* ---- 主色（水蓝）---- */
  --primary-50:  #EFF6FF;
  --primary-100: #DBEAFE;
  --primary-200: #BFDBFE;
  --primary-500: #1668E3;
  --primary-600: #0F58C9;
  --primary-700: #0B47A6;

  /* ---- 辅助色 ---- */
  --teal-500: #0FA3A3;
  --teal-50:  #ECFDFB;
  --violet-500: #7C5CFC;
  --violet-50: #F4F1FF;

  /* ---- 语义色 ---- */
  --success-500: #12B76A;
  --success-50:  #ECFDF3;
  --warning-500: #F79009;
  --warning-50:  #FFFAEB;
  --danger-500:  #E5484D;
  --danger-50:   #FEF3F2;
  --info-500:    #1668E3;

  /* ---- 中性 ---- */
  --ink-900: #0E1420;
  --ink-800: #1A2230;
  --ink-700: #2C3646;
  --gray-600: #475467;
  --gray-500: #667085;
  --gray-400: #98A2B3;
  --gray-300: #D0D5DD;
  --gray-200: #E8EDF3;
  --gray-100: #F2F5F9;
  --gray-50:  #F7F9FC;
  --white: #FFFFFF;

  /* ---- 背景 ---- */
  --bg-app: #F5F7FA;
  --bg-card: #FFFFFF;
  --bg-sidebar: #0E1420;
  --bg-sidebar-hover: #1A2230;
  --bg-hover: #F2F5F9;

  /* ---- 文字 ---- */
  --text-primary: #101828;
  --text-secondary: #475467;
  --text-tertiary: #98A2B3;
  --text-inverse: #FFFFFF;
  --text-link: #1668E3;

  /* ---- 边框 ---- */
  --border: #E8EDF3;
  --border-strong: #D0D5DD;

  /* ---- 圆角 ---- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 14px;
  --r-2xl: 18px;
  --r-full: 999px;

  /* ---- 阴影 ---- */
  --shadow-xs: 0 1px 2px rgba(16,24,40,.05);
  --shadow-sm: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
  --shadow-md: 0 4px 8px -2px rgba(16,24,40,.08), 0 2px 4px -2px rgba(16,24,40,.04);
  --shadow-lg: 0 12px 24px -6px rgba(16,24,40,.10), 0 4px 8px -4px rgba(16,24,40,.05);
  --shadow-xl: 0 24px 48px -12px rgba(16,24,40,.16);
  --shadow-focus: 0 0 0 3px rgba(22,104,227,.14);

  /* ---- 间距 ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;

  /* ---- 字号 ---- */
  --fs-xs: 12px; --fs-sm: 13px; --fs-base: 14px; --fs-md: 15px;
  --fs-lg: 16px; --fs-xl: 18px; --fs-2xl: 22px; --fs-3xl: 28px; --fs-4xl: 34px;

  /* ---- 动效 ---- */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: .15s;
  --dur: .22s;

  /* ---- 布局 ---- */
  --sidebar-w: 232px;
  --sidebar-w-collapsed: 68px;
  --header-h: 60px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-num: "SF Mono", "DIN Alternate", "Roboto Mono", ui-monospace, Menlo, monospace;
}

/* ========================== Reset ========================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3,h4,h5,h6,p,figure,blockquote,dl,dd { margin: 0; }
ul,ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--text-link); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; background-clip: content-box; }

/* ========================== 按钮 ========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  font-size: var(--fs-base); font-weight: 500; white-space: nowrap;
  border-radius: var(--r-md); border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform .08s;
  user-select: none;
}
.btn:active { transform: translateY(.5px); }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.btn-primary { background: var(--primary-500); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover:not(:disabled) { background: var(--primary-600); }

.btn-brand { background: var(--brand-red); color: #fff; box-shadow: var(--shadow-xs); }
.btn-brand:hover:not(:disabled) { background: var(--brand-red-dark); }

.btn-default { background: #fff; color: var(--text-primary); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-default:hover:not(:disabled) { background: var(--gray-50); border-color: #B6C0CE; }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-hover); color: var(--text-primary); }

.btn-danger { background: var(--danger-500); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #D13B40; }

.btn-danger-ghost { background: var(--danger-50); color: var(--danger-500); }
.btn-danger-ghost:hover:not(:disabled) { background: #FCE7E7; }

.btn-success { background: var(--success-500); color: #fff; }
.btn-success:hover:not(:disabled) { background: #0E9F5C; }

.btn-sm { height: 30px; padding: 0 10px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn-lg { height: 42px; padding: 0 20px; font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn-icon { width: 36px; padding: 0; }
.btn-icon.btn-sm { width: 30px; }

.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.btn-group .btn:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }

/* 文字按钮 */
.link-btn { color: var(--primary-500); font-size: var(--fs-sm); font-weight: 500; padding: 2px 4px; border-radius: var(--r-xs); }
.link-btn:hover { background: var(--primary-50); }
.link-btn.is-danger { color: var(--danger-500); }
.link-btn.is-danger:hover { background: var(--danger-50); }

/* ========================== 表单控件 ========================== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
.field-label .req { color: var(--danger-500); }
.field-hint { font-size: var(--fs-xs); color: var(--text-tertiary); }
.field-error { font-size: var(--fs-xs); color: var(--danger-500); }

.input, .select, .textarea {
  width: 100%; height: 36px; padding: 0 11px;
  background: #fff; color: var(--text-primary);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }
.input:hover, .select:hover, .textarea:hover { border-color: #B6C0CE; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary-500); box-shadow: var(--shadow-focus);
}
.input:disabled, .select:disabled, .textarea:disabled { background: var(--gray-100); color: var(--text-tertiary); cursor: not-allowed; }
.input.is-error, .select.is-error, .textarea.is-error { border-color: var(--danger-500); }
.textarea { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 1.6; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%2398A2B3' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px;
}
.input-sm { height: 30px; font-size: var(--fs-sm); padding: 0 9px; }

.input-affix { position: relative; }
.input-affix .input { padding-left: 34px; }
.input-affix .affix { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 44px; }
.input-suffix .suffix { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: var(--fs-xs); color: var(--text-tertiary); }

/* 开关 */
.switch { position: relative; display: inline-flex; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .track {
  width: 100%; height: 100%; background: var(--gray-300); border-radius: var(--r-full);
  transition: background var(--dur) var(--ease); cursor: pointer;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease);
}
.switch input:checked + .track { background: var(--primary-500); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:disabled + .track { opacity: .5; cursor: not-allowed; }

/* 单选 / 复选 */
.radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chip, .check-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px; font-size: var(--fs-base);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: #fff; color: var(--text-secondary); cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.radio-chip:hover, .check-chip:hover { border-color: var(--primary-200); background: var(--primary-50); }
.radio-chip.is-active, .check-chip.is-active {
  border-color: var(--primary-500); background: var(--primary-50);
  color: var(--primary-600); font-weight: 500;
}
.radio-chip .dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--gray-300); flex: none; position: relative; }
.radio-chip.is-active .dot { border-color: var(--primary-500); }
.radio-chip.is-active .dot::after {
  content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--primary-500);
}
.check-chip .box {
  width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--gray-300);
  flex: none; position: relative; transition: all var(--dur-fast);
}
.check-chip.is-active .box { background: var(--primary-500); border-color: var(--primary-500); }
.check-chip.is-active .box::after {
  content: ""; position: absolute; left: 3.5px; top: 1px; width: 4px; height: 7px;
  border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}

/* ========================== 卡片 ========================== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-xs);
}
.card-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.card-hd h3 { font-size: var(--fs-md); font-weight: 600; letter-spacing: -.01em; }
.card-bd { padding: 20px; }
.card-ft { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ========================== 状态标签 ========================== */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; font-size: var(--fs-xs); font-weight: 500;
  border-radius: var(--r-sm); white-space: nowrap; line-height: 1;
}
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag-gray    { background: var(--gray-100);   color: var(--gray-600); }
.tag-blue    { background: var(--primary-50); color: var(--primary-600); }
.tag-teal    { background: var(--teal-50);    color: #0B7F7F; }
.tag-green   { background: var(--success-50); color: #0B8A50; }
.tag-orange  { background: var(--warning-50); color: #B45309; }
.tag-red     { background: var(--danger-50);  color: var(--danger-500); }
.tag-violet  { background: var(--violet-50);  color: #5B3FD1; }
.tag-solid-red { background: var(--brand-red); color: #fff; }

/* ========================== 表格 ========================== */
.table-wrap { overflow-x: auto; }
.table { font-size: var(--fs-base); }
.table thead th {
  padding: 11px 14px; text-align: left; font-size: var(--fs-xs); font-weight: 600;
  color: var(--gray-500); text-transform: none; letter-spacing: .02em;
  background: var(--gray-50); border-bottom: 1px solid var(--border);
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.table thead th:first-child { border-top-left-radius: var(--r-md); }
.table thead th:last-child  { border-top-right-radius: var(--r-md); }
.table tbody td {
  padding: 13px 14px; border-bottom: 1px solid var(--border);
  color: var(--text-secondary); vertical-align: middle;
}
.table tbody tr { transition: background var(--dur-fast); }
.table tbody tr:hover { background: var(--gray-50); }
.table tbody tr:last-child td { border-bottom: none; }
.table .td-strong { color: var(--text-primary); font-weight: 500; }
.table .td-mono { font-family: var(--font-num); font-size: var(--fs-sm); letter-spacing: -.02em; }
.table .td-actions { white-space: nowrap; }
.table-compact tbody td { padding: 9px 12px; }

/* ========================== 分页 ========================== */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; flex-wrap: wrap; }
.pager-info { font-size: var(--fs-sm); color: var(--text-tertiary); }
.pager-btns { display: flex; align-items: center; gap: 4px; }
.pager-btn {
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); color: var(--text-secondary); border: 1px solid transparent;
  transition: all var(--dur-fast);
}
.pager-btn:hover:not(:disabled) { background: var(--gray-100); color: var(--text-primary); }
.pager-btn.is-active { background: var(--primary-500); color: #fff; font-weight: 500; }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ========================== 弹层 ========================== */
.overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(16, 24, 40, .45); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn var(--dur) var(--ease);
}
.modal {
  background: #fff; border-radius: var(--r-2xl); box-shadow: var(--shadow-xl);
  width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column;
  animation: modalIn var(--dur) var(--ease);
}
.modal.modal-lg { max-width: 820px; }
.modal.modal-xl { max-width: 1080px; }
.modal.modal-sm { max-width: 400px; }
.modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border); flex: none;
}
.modal-hd h3 { font-size: var(--fs-lg); font-weight: 600; }
.modal-bd { padding: 22px; overflow-y: auto; flex: 1; }
.modal-ft {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 22px; border-top: 1px solid var(--border); flex: none;
}
.icon-close {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: var(--r-sm); color: var(--gray-400); transition: all var(--dur-fast);
}
.icon-close:hover { background: var(--gray-100); color: var(--text-primary); }

/* 抽屉 */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1000;
  width: 100%; max-width: 520px; background: #fff; box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; animation: drawerIn var(--dur) var(--ease);
}
.drawer.drawer-lg { max-width: 720px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }

/* ========================== Toast ========================== */
.toast-layer {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  font-size: var(--fs-base); color: var(--text-primary);
  animation: toastIn var(--dur) var(--ease); pointer-events: auto;
  max-width: 480px;
}
.toast .ico { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-size: 11px; font-weight: 700; }
.toast.is-success .ico { background: var(--success-500); }
.toast.is-error .ico { background: var(--danger-500); }
.toast.is-warning .ico { background: var(--warning-500); }
.toast.is-info .ico { background: var(--primary-500); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ========================== 空态 / 加载 ========================== */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 56px 24px; color: var(--text-tertiary); text-align: center;
}
.empty .empty-ico {
  width: 64px; height: 64px; border-radius: 50%; background: var(--gray-100);
  display: grid; place-items: center; color: var(--gray-300); margin-bottom: 4px;
}
.empty .empty-title { font-size: var(--fs-base); color: var(--text-secondary); font-weight: 500; }
.empty .empty-desc { font-size: var(--fs-sm); max-width: 320px; }

.spinner {
  width: 16px; height: 16px; border: 2px solid var(--primary-100);
  border-top-color: var(--primary-500); border-radius: 50%;
  animation: spin .7s linear infinite; flex: none;
}
.spinner.spinner-lg { width: 28px; height: 28px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-block { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px; color: var(--text-tertiary); font-size: var(--fs-sm); }

.skeleton {
  background: linear-gradient(90deg, #EEF2F7 25%, #F7F9FC 37%, #EEF2F7 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-sm);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ========================== 头像 ========================== */
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: var(--fs-sm); font-weight: 600;
  background: var(--primary-100); color: var(--primary-600); overflow: hidden;
  text-transform: uppercase;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.avatar-sm { width: 26px; height: 26px; font-size: 11px; }
.avatar.avatar-lg { width: 44px; height: 44px; font-size: var(--fs-lg); }

/* ========================== 工具类 ========================== */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; min-width: 0; }
.flex-none { flex: none; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; }  .gap-2 { gap: 8px; }  .gap-3 { gap: 12px; }
.gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; }
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-5{margin-top:20px}.mt-6{margin-top:24px}
.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.mb-5{margin-bottom:20px}.mb-6{margin-bottom:24px}
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: var(--font-num); }
.muted { color: var(--text-tertiary); }
.secondary { color: var(--text-secondary); }
.strong { font-weight: 600; color: var(--text-primary); }
.fs-xs{font-size:var(--fs-xs)}.fs-sm{font-size:var(--fs-sm)}.fs-lg{font-size:var(--fs-lg)}
.text-danger { color: var(--danger-500); }
.text-success { color: var(--success-500); }
.text-primary-c { color: var(--primary-500); }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.divider-v { width: 1px; background: var(--border); align-self: stretch; }

/* 金额 */
.money { font-family: var(--font-num); font-weight: 600; color: var(--text-primary); letter-spacing: -.01em; }
.money.is-danger { color: var(--danger-500); }
.money.is-success { color: var(--success-500); }
.money::before { content: "¥"; font-size: .82em; opacity: .55; margin-right: 1px; }

/* ========================== 栅格 ========================== */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1280px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ========================== 移动端 ========================== */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .input, .select { height: 44px; font-size: 16px; } /* 防 iOS 缩放 */
  .textarea { font-size: 16px; min-height: 96px; }
  .btn { height: 42px; }
  .btn-sm { height: 34px; }
  .card { border-radius: var(--r-lg); }
  .modal { border-radius: var(--r-xl); max-height: 92vh; }
  .overlay { padding: 12px; align-items: flex-end; }
  .modal { animation: sheetUp var(--dur) var(--ease); }
  @keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: minmax(0, 1fr); }
  .hide-mobile { display: none !important; }
}
@media (min-width: 641px) { .hide-desktop { display: none !important; } }
