/* ============================================================
 * 智链米仓 · 公共组件样式（前后台统一）
 * 版权所有 (c) 2026 蓝河豚（T128.com）· 首次开发 2026-09-28
 * 依赖 tokens.css。组件类统一 .zm- 前缀；基础元素做最小重置。
 * ============================================================ */

/* ---------- 基础重置 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: var(--zm-fs-base);
  line-height: 1.6;
  background: var(--zm-bg);
  color: var(--zm-text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--zm-brand); text-decoration: none; }
a:hover { color: var(--zm-brand-dark); }

img { max-width: 100%; height: auto; }
pre { white-space: pre-wrap; word-break: break-word; }
hr { border: none; border-top: 1px solid var(--zm-border); margin: var(--zm-sp-5) 0; }

h1,h2,h3,h4,h5 { color: var(--zm-ink); font-weight: 700; line-height: 1.3; }
h1 { font-size: var(--zm-fs-3xl); } h2 { font-size: var(--zm-fs-2xl); }
h3 { font-size: var(--zm-fs-lg); } h4 { font-size: var(--zm-fs-md); }

/* 容器 */
.zm-container { max-width: var(--zm-container); margin: 0 auto; padding: var(--zm-sp-6) var(--zm-sp-5); }
.zm-scroll-x, .zm-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 按钮 ---------- */
.zm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; font-size: var(--zm-fs-base); font-weight: 500;
  border-radius: var(--zm-radius); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: all var(--zm-dur) var(--zm-ease);
  background: var(--zm-surface); color: var(--zm-text);
}
.zm-btn:active { transform: translateY(1px); }
.zm-btn-primary { background: var(--zm-brand); color: #fff; }
.zm-btn-primary:hover { background: var(--zm-brand-dark); color: #fff; }
.zm-btn-outline { background: transparent; border-color: var(--zm-brand); color: var(--zm-brand); }
.zm-btn-outline:hover { background: var(--zm-hover); }
.zm-btn-ghost { background: transparent; color: var(--zm-muted); }
.zm-btn-ghost:hover { background: var(--zm-hover); color: var(--zm-brand); }
.zm-btn-danger { background: var(--zm-danger); color: #fff; }
.zm-btn-danger:hover { filter: brightness(1.08); color: #fff; }
.zm-btn-gray { background: var(--zm-border); color: var(--zm-ink); }
.zm-btn-sm { padding: 6px 12px; font-size: var(--zm-fs-sm); border-radius: var(--zm-radius-sm); }
.zm-btn-lg { padding: 12px 26px; font-size: var(--zm-fs-md); }
.zm-btn[disabled], .zm-btn.is-disabled { opacity: .55; cursor: not-allowed; }
.zm-btn-block { width: 100%; display: flex; }

/* ---------- 卡片 / 面板 ---------- */
.zm-card {
  background: var(--zm-surface); border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius-lg); box-shadow: var(--zm-shadow-sm);
  margin-bottom: var(--zm-sp-5); overflow: hidden;
}
.zm-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--zm-sp-3);
  padding: var(--zm-sp-4) var(--zm-sp-5); border-bottom: 1px solid var(--zm-border);
}
.zm-card-header h3 { font-size: var(--zm-fs-lg); }
.zm-card-body { padding: var(--zm-sp-5); }
.zm-card-footer { padding: var(--zm-sp-4) var(--zm-sp-5); border-top: 1px solid var(--zm-border); background: var(--zm-surface-2); }
.zm-card-flush .zm-card-body { padding: 0; }

/* ---------- 表格 ---------- */
.zm-table { width: 100%; border-collapse: collapse; font-size: var(--zm-fs-base); }
.zm-table th, .zm-table td { padding: 12px 16px; text-align: left; vertical-align: middle; }
.zm-table thead th {
  background: var(--zm-surface-2); color: var(--zm-muted); font-weight: 600;
  font-size: var(--zm-fs-sm); border-bottom: 1px solid var(--zm-border); white-space: nowrap;
}
.zm-table tbody td { border-bottom: 1px solid var(--zm-border); }
.zm-table tbody tr:last-child td { border-bottom: none; }
.zm-table tbody tr { transition: background var(--zm-dur); }
.zm-table tbody tr:hover { background: var(--zm-hover); }
.zm-table-zebra tbody tr:nth-child(even) { background: var(--zm-surface-2); }

/* ---------- 表单 ---------- */
.zm-form-group { margin-bottom: var(--zm-sp-5); }
.zm-form-group > label { display: block; font-size: var(--zm-fs-sm); color: var(--zm-muted); margin-bottom: 7px; font-weight: 500; }
.zm-input, .zm-select, .zm-textarea {
  width: 100%; padding: 10px 13px; font-size: var(--zm-fs-base); font-family: inherit;
  color: var(--zm-ink); background: var(--zm-surface);
  border: 1px solid var(--zm-border-strong); border-radius: var(--zm-radius);
  transition: border-color var(--zm-dur), box-shadow var(--zm-dur);
}
.zm-textarea { min-height: 96px; resize: vertical; }
.zm-input:focus, .zm-select:focus, .zm-textarea:focus {
  outline: none; border-color: var(--zm-brand);
  box-shadow: 0 0 0 3px var(--zm-brand-100);
}
.zm-input::placeholder, .zm-textarea::placeholder { color: var(--zm-muted-2); }
.zm-form-hint { font-size: var(--zm-fs-xs); color: var(--zm-muted-2); margin-top: 6px; }
.zm-form-error { font-size: var(--zm-fs-xs); color: var(--zm-danger); margin-top: 6px; }
.zm-form-row { display: flex; gap: var(--zm-sp-4); flex-wrap: wrap; }
.zm-form-row > .zm-form-group { flex: 1; min-width: 180px; }
.zm-checkbox, .zm-radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--zm-fs-base); }

/* ---------- 徽标 / 状态 ---------- */
.zm-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; font-size: var(--zm-fs-xs); font-weight: 500;
  border-radius: var(--zm-radius-pill); background: var(--zm-surface-2); color: var(--zm-muted);
}
.zm-badge-success { background: var(--zm-success-bg); color: var(--zm-success); }
.zm-badge-danger  { background: var(--zm-danger-bg); color: var(--zm-danger); }
.zm-badge-warning { background: var(--zm-warning-bg); color: var(--zm-warning); }
.zm-badge-info    { background: var(--zm-info-bg); color: var(--zm-brand); }
.zm-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.zm-dot-success { background: var(--zm-success); } .zm-dot-danger { background: var(--zm-danger); }
.zm-dot-warning { background: var(--zm-warning); } .zm-dot-muted { background: var(--zm-muted-2); }

/* ---------- 提示条 alert ---------- */
.zm-alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; border-radius: var(--zm-radius); font-size: var(--zm-fs-sm);
  margin-bottom: var(--zm-sp-4); border: 1px solid transparent;
}
.zm-alert-success { background: var(--zm-success-bg); color: #065f46; border-color: color-mix(in srgb, var(--zm-success) 30%, transparent); }
.zm-alert-danger  { background: var(--zm-danger-bg); color: #991b1b; border-color: color-mix(in srgb, var(--zm-danger) 30%, transparent); }
.zm-alert-warning { background: var(--zm-warning-bg); color: #92400e; border-color: color-mix(in srgb, var(--zm-warning) 30%, transparent); }
.zm-alert-info    { background: var(--zm-info-bg); color: #1e40af; border-color: color-mix(in srgb, var(--zm-brand) 30%, transparent); }
html[data-theme="dark"] .zm-alert-success { color: #6ee7b7; }
html[data-theme="dark"] .zm-alert-danger  { color: #fca5a5; }
html[data-theme="dark"] .zm-alert-warning { color: #fcd34d; }
html[data-theme="dark"] .zm-alert-info    { color: #93c5fd; }

/* ---------- 空状态 ---------- */
.zm-empty { text-align: center; padding: var(--zm-sp-10) var(--zm-sp-5); color: var(--zm-muted); }
.zm-empty-icon { font-size: 40px; margin-bottom: var(--zm-sp-3); opacity: .7; }
.zm-empty-title { font-size: var(--zm-fs-md); color: var(--zm-text); margin-bottom: 6px; }
.zm-empty-desc { font-size: var(--zm-fs-sm); color: var(--zm-muted-2); margin-bottom: var(--zm-sp-4); }

/* ---------- 分页 ---------- */
.zm-pagination { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; margin: var(--zm-sp-5) 0; }
.zm-pagination a, .zm-pagination span {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; border-radius: var(--zm-radius-sm); font-size: var(--zm-fs-sm);
  background: var(--zm-surface); border: 1px solid var(--zm-border); color: var(--zm-muted);
}
.zm-pagination a:hover { border-color: var(--zm-brand); color: var(--zm-brand); }
.zm-pagination .is-current { background: var(--zm-brand); border-color: var(--zm-brand); color: #fff; }
.zm-pagination .is-disabled { opacity: .45; pointer-events: none; }

/* ---------- 弹窗 modal ---------- */
.zm-modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .5);
  display: none; align-items: center; justify-content: center; z-index: var(--zm-z-modal); padding: var(--zm-sp-4);
}
.zm-modal-mask.is-open { display: flex; }
.zm-modal {
  background: var(--zm-surface); border-radius: var(--zm-radius-lg);
  box-shadow: var(--zm-shadow-lg); width: 100%; max-width: 480px; max-height: 90vh;
  display: flex; flex-direction: column;
}
.zm-modal-header { display: flex; align-items: center; justify-content: space-between; padding: var(--zm-sp-4) var(--zm-sp-5); border-bottom: 1px solid var(--zm-border); }
.zm-modal-body { padding: var(--zm-sp-5); overflow-y: auto; }
.zm-modal-footer { padding: var(--zm-sp-4) var(--zm-sp-5); border-top: 1px solid var(--zm-border); display: flex; gap: 10px; justify-content: flex-end; }
.zm-modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--zm-muted); line-height: 1; }

/* ---------- 工具类 ---------- */
.zm-flex { display: flex; } .zm-items-center { align-items: center; } .zm-justify-between { justify-content: space-between; }
.zm-gap-2 { gap: var(--zm-sp-2); } .zm-gap-3 { gap: var(--zm-sp-3); } .zm-gap-4 { gap: var(--zm-sp-4); }
.zm-flex-1 { flex: 1; } .zm-flex-wrap { flex-wrap: wrap; }
.zm-text-sm { font-size: var(--zm-fs-sm); } .zm-text-muted { color: var(--zm-muted); } .zm-text-center { text-align: center; }
.zm-font-bold { font-weight: 700; } .zm-mt-2 { margin-top: var(--zm-sp-2); } .zm-mt-4 { margin-top: var(--zm-sp-4); }
.zm-mb-0 { margin-bottom: 0; } .zm-mb-4 { margin-bottom: var(--zm-sp-4); }
.zm-hidden { display: none !important; }
.zm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- 栅格 ---------- */
.zm-grid { display: grid; gap: var(--zm-sp-4); }
.zm-cols-2 { grid-template-columns: repeat(2, 1fr); }
.zm-cols-3 { grid-template-columns: repeat(3, 1fr); }
.zm-cols-4 { grid-template-columns: repeat(4, 1fr); }
.zm-cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
  .zm-cols-3, .zm-cols-4, .zm-cols-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .zm-cols-2, .zm-cols-3, .zm-cols-4, .zm-cols-5 { grid-template-columns: 1fr; }
}

/* 栅格内整行贯通：用于长文本域（私钥/公钥）、独立开关行等，避免被压进半格 */
.zm-field-full { grid-column: 1 / -1; }
.zm-grid .zm-form-group.zm-field-full { margin-bottom: var(--zm-sp-4); }
/* 子服务标题行：标题居左、启用开关居右，不再把复选框塞进凭证栅格造成错位 */
.zm-subhead {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--zm-sp-3); flex-wrap: wrap; margin: var(--zm-sp-5) 0 var(--zm-sp-3);
}
.zm-subhead:first-child { margin-top: 0; }
.zm-subhead .zm-subhead-title { font-size: var(--zm-fs-base); font-weight: 700; color: var(--zm-ink); }
.zm-subhead .zm-subhead-opt { display: inline-flex; align-items: center; gap: 8px; font-size: var(--zm-fs-sm); color: var(--zm-muted); }

/* ---------- 区块标题 ---------- */
.zm-section-title {
  display: flex; align-items: center; justify-content: space-between; gap: var(--zm-sp-3);
  margin: var(--zm-sp-6) 0 var(--zm-sp-4); font-size: var(--zm-fs-lg); color: var(--zm-ink);
}
.zm-section-title:first-child { margin-top: 0; }
.zm-section-title .zm-section-more { font-size: var(--zm-fs-sm); font-weight: 400; }

/* ---------- 统计瓦片 ---------- */
.zm-stats { display: grid; gap: var(--zm-sp-4); grid-template-columns: repeat(4, 1fr); }
.zm-stat {
  background: var(--zm-surface); border: 1px solid var(--zm-border); border-radius: var(--zm-radius-lg);
  padding: var(--zm-sp-4) var(--zm-sp-5); box-shadow: var(--zm-shadow-sm);
}
.zm-stat .zm-stat-label { font-size: var(--zm-fs-sm); color: var(--zm-muted); }
.zm-stat .zm-stat-value { font-size: var(--zm-fs-3xl); font-weight: 700; color: var(--zm-ink); margin-top: 4px; line-height: 1.2; }
.zm-stat .zm-stat-trend { font-size: var(--zm-fs-xs); margin-top: 4px; }
.zm-stat .zm-stat-trend.is-up { color: var(--zm-success); }
.zm-stat .zm-stat-trend.is-down { color: var(--zm-danger); }
@media (max-width: 900px) { .zm-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .zm-stats { grid-template-columns: 1fr; } }

/* ---------- 价格 ---------- */
.zm-price { font-weight: 700; color: var(--zm-danger); white-space: nowrap; }
.zm-price .zm-price-cur { font-size: .7em; margin-right: 1px; }
.zm-price-sm { font-size: var(--zm-fs-md); }
.zm-price-lg { font-size: var(--zm-fs-2xl); }
.zm-price-original { color: var(--zm-muted-2); font-weight: 400; text-decoration: line-through; margin-left: 8px; font-size: var(--zm-fs-sm); }

/* ---------- 头像 ---------- */
.zm-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--zm-brand-100); color: var(--zm-brand-700); font-weight: 600; overflow: hidden; flex-shrink: 0; }
.zm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.zm-avatar-sm { width: 32px; height: 32px; font-size: var(--zm-fs-sm); }
.zm-avatar-md { width: 40px; height: 40px; font-size: var(--zm-fs-md); }
.zm-avatar-lg { width: 56px; height: 56px; font-size: var(--zm-fs-xl); }

/* ---------- 标签 / 芯片 ---------- */
.zm-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px;
  border-radius: var(--zm-radius-pill); font-size: var(--zm-fs-sm);
  background: var(--zm-surface-2); color: var(--zm-text); border: 1px solid var(--zm-border);
}
.zm-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.zm-tags a, .zm-tag { padding: 4px 11px; border-radius: var(--zm-radius-sm); background: var(--zm-surface-2); color: var(--zm-muted); font-size: var(--zm-fs-sm); border: 1px solid var(--zm-border); }
.zm-tags a:hover { background: var(--zm-hover); color: var(--zm-brand); border-color: var(--zm-brand-300); }

/* ---------- 面包屑 ---------- */
.zm-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--zm-fs-sm); color: var(--zm-muted); margin-bottom: var(--zm-sp-4); }
.zm-breadcrumb .sep { color: var(--zm-muted-2); }
.zm-breadcrumb a { color: var(--zm-muted); }
.zm-breadcrumb a:hover { color: var(--zm-brand); }
.zm-breadcrumb .is-current { color: var(--zm-text); }

/* ---------- 描述列表 ---------- */
.zm-desc-list { display: grid; grid-template-columns: 120px 1fr; gap: var(--zm-sp-3) var(--zm-sp-4); font-size: var(--zm-fs-base); }
.zm-desc-list dt { color: var(--zm-muted); }
.zm-desc-list dd { color: var(--zm-text); word-break: break-word; }
@media (max-width: 600px) { .zm-desc-list { grid-template-columns: 1fr; gap: 2px; } .zm-desc-list dd { margin-bottom: var(--zm-sp-2); } }

/* ---------- 标签页 ---------- */
.zm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--zm-border); margin-bottom: var(--zm-sp-5); overflow-x: auto; }
.zm-tabs a, .zm-tabs button {
  padding: 10px 16px; font-size: var(--zm-fs-base); color: var(--zm-muted); white-space: nowrap;
  border: none; background: none; border-bottom: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.zm-tabs a:hover, .zm-tabs button:hover { color: var(--zm-brand); }
.zm-tabs .is-active { color: var(--zm-brand); border-bottom-color: var(--zm-brand); font-weight: 600; }

/* ---------- 列表（通用） ---------- */
.zm-list { list-style: none; }
.zm-list > li { padding: var(--zm-sp-3) 0; border-bottom: 1px solid var(--zm-border); display: flex; align-items: center; gap: var(--zm-sp-3); }
.zm-list > li:last-child { border-bottom: none; }
.zm-list .zm-list-main { flex: 1; min-width: 0; }
.zm-list .zm-list-title { color: var(--zm-text); font-weight: 500; }
.zm-list .zm-list-sub { font-size: var(--zm-fs-sm); color: var(--zm-muted-2); margin-top: 2px; }

/* ---------- 时间线 ---------- */
.zm-timeline { list-style: none; position: relative; padding-left: 22px; }
.zm-timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--zm-border); }
.zm-timeline > li { position: relative; padding-bottom: var(--zm-sp-5); }
.zm-timeline > li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--zm-brand); border: 2px solid var(--zm-surface); }
.zm-timeline .zm-timeline-time { font-size: var(--zm-fs-xs); color: var(--zm-muted-2); }
.zm-timeline .zm-timeline-body { margin-top: 3px; font-size: var(--zm-fs-sm); }

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 900px) {
  .zm-container { padding: var(--zm-sp-4) var(--zm-sp-3); }
  .zm-card-body, .zm-card-header, .zm-card-footer { padding-left: var(--zm-sp-4); padding-right: var(--zm-sp-4); }
}
@media (max-width: 600px) {
  .zm-container { padding: var(--zm-sp-3) var(--zm-sp-2); }
  h1 { font-size: var(--zm-fs-2xl); } h2 { font-size: var(--zm-fs-xl); }
  .zm-card-body { padding: var(--zm-sp-4); }
  .zm-table { font-size: var(--zm-fs-sm); }
  .zm-table th, .zm-table td { padding: 9px 11px; }
  .zm-form-row { flex-direction: column; }
}

/* ============================================================
 * v12.1 增强组件（令牌驱动，暗黑自动适配）
 * ============================================================ */

/* ---------- 加载 / 旋转 ---------- */
.zm-spinner {
  width: 18px; height: 18px; border: 2px solid var(--zm-border-strong);
  border-top-color: var(--zm-brand); border-radius: 50%;
  display: inline-block; animation: zm-spin .7s linear infinite;
}
.zm-spinner-lg { width: 30px; height: 30px; border-width: 3px; }
.zm-spinner.is-light { border-color: rgba(255,255,255,.4); border-top-color: #fff; }
@keyframes zm-spin { to { transform: rotate(360deg); } }

.zm-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: var(--zm-sp-8); color: var(--zm-muted); font-size: var(--zm-fs-sm); }

/* ---------- 骨架屏 ---------- */
.zm-skeleton { position: relative; overflow: hidden; background: var(--zm-surface-2); border-radius: var(--zm-radius-sm); }
.zm-skeleton::after {
  content: ""; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: zm-shimmer 1.4s infinite;
}
html[data-theme="dark"] .zm-skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); }
@keyframes zm-shimmer { 100% { transform: translateX(100%); } }
.zm-skeleton-text { height: 12px; margin-bottom: 8px; }
.zm-skeleton-title { height: 18px; width: 60%; margin-bottom: 12px; }
.zm-skeleton-avatar { border-radius: 50%; }

/* ---------- Toast 轻提示 ---------- */
.zm-toast-wrap { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: var(--zm-z-toast); display: flex; flex-direction: column; gap: 10px; align-items: center; width: max-content; max-width: calc(100vw - 32px); }
.zm-toast {
  display: flex; align-items: center; gap: 8px; padding: 11px 18px;
  background: var(--zm-ink); color: var(--zm-surface); border-radius: var(--zm-radius-pill);
  box-shadow: var(--zm-shadow-lg); font-size: var(--zm-fs-sm);
  animation: zm-toast-in .22s var(--zm-ease);
}
.zm-toast.zm-toast-success { background: var(--zm-success); color: #fff; }
.zm-toast.zm-toast-danger  { background: var(--zm-danger); color: #fff; }
@keyframes zm-toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- 下拉菜单 ---------- */
.zm-dropdown { position: relative; }
.zm-dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 180px;
  background: var(--zm-surface); border: 1px solid var(--zm-border); border-radius: var(--zm-radius);
  box-shadow: var(--zm-shadow-lg); padding: 6px; z-index: var(--zm-z-dropdown);
  display: none; animation: zm-pop .16s var(--zm-ease);
}
.zm-dropdown.is-open .zm-dropdown-menu { display: block; }
.zm-dropdown-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border-radius: var(--zm-radius-sm); color: var(--zm-text); font-size: var(--zm-fs-sm); background: none; border: none; cursor: pointer; text-align: left; }
.zm-dropdown-item:hover { background: var(--zm-hover); color: var(--zm-brand); }
.zm-dropdown-divider { height: 1px; background: var(--zm-border); margin: 6px 4px; }
@keyframes zm-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 开关 switch ---------- */
.zm-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.zm-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.zm-switch .track { position: absolute; inset: 0; background: var(--zm-border-strong); border-radius: var(--zm-radius-pill); transition: background var(--zm-dur); }
.zm-switch .track::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform var(--zm-dur); box-shadow: var(--zm-shadow-sm); }
.zm-switch input:checked + .track { background: var(--zm-brand); }
.zm-switch input:checked + .track::before { transform: translateX(18px); }

/* ---------- 进度条 ---------- */
.zm-progress { height: 8px; background: var(--zm-surface-2); border-radius: var(--zm-radius-pill); overflow: hidden; }
.zm-progress-bar { height: 100%; background: var(--zm-brand); border-radius: var(--zm-radius-pill); transition: width .3s var(--zm-ease); }
.zm-progress-success .zm-progress-bar { background: var(--zm-success); }
.zm-progress-warning .zm-progress-bar { background: var(--zm-warning); }

/* ---------- 步骤条 stepper ---------- */
.zm-steps { display: flex; align-items: center; gap: 8px; margin-bottom: var(--zm-sp-6); flex-wrap: wrap; }
.zm-step-item { display: flex; align-items: center; gap: 8px; color: var(--zm-muted-2); font-size: var(--zm-fs-sm); }
.zm-step-item .zm-step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--zm-surface-2); border: 1px solid var(--zm-border); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: var(--zm-fs-sm); }
.zm-step-item.is-done { color: var(--zm-success); }
.zm-step-item.is-done .zm-step-dot { background: var(--zm-success-bg); border-color: var(--zm-success); color: var(--zm-success); }
.zm-step-item.is-active { color: var(--zm-brand); font-weight: 600; }
.zm-step-item.is-active .zm-step-dot { background: var(--zm-brand); border-color: var(--zm-brand); color: #fff; }
.zm-step-line { width: 36px; height: 2px; background: var(--zm-border); }

/* ---------- 折叠面板 accordion ---------- */
.zm-accordion-item { border: 1px solid var(--zm-border); border-radius: var(--zm-radius); margin-bottom: 10px; overflow: hidden; background: var(--zm-surface); }
.zm-accordion-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; font-weight: 600; color: var(--zm-ink); background: none; border: none; width: 100%; font-size: var(--zm-fs-base); font-family: inherit; }
.zm-accordion-body { display: none; padding: 0 18px 16px; }
.zm-accordion-item.is-open .zm-accordion-body { display: block; }
.zm-accordion-item.is-open .zm-accordion-head .zm-accordion-icon { transform: rotate(180deg); }
.zm-accordion-icon { transition: transform var(--zm-dur); color: var(--zm-muted); }

/* ---------- 卡片悬浮 / 交互 ---------- */
.zm-card.is-hover { transition: transform var(--zm-dur), box-shadow var(--zm-dur); }
.zm-card.is-hover:hover { transform: translateY(-3px); box-shadow: var(--zm-shadow-md); }
.zm-card-link { display: block; color: inherit; }
.zm-card-link:hover { color: inherit; }

/* ---------- 筛选 / 工具条 ---------- */
.zm-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: var(--zm-sp-4) var(--zm-sp-5); background: var(--zm-surface); border: 1px solid var(--zm-border); border-radius: var(--zm-radius-lg); margin-bottom: var(--zm-sp-5); }
.zm-filter-bar .zm-input, .zm-filter-bar .zm-select { width: auto; min-width: 150px; }

/* ---------- Hero 区 ---------- */
.zm-hero { position: relative; border-radius: var(--zm-radius-xl); overflow: hidden; padding: var(--zm-sp-12) var(--zm-sp-8); color: #fff; background: linear-gradient(135deg, var(--zm-brand-800), var(--zm-brand-600) 60%, var(--zm-brand-500)); box-shadow: var(--zm-shadow-md); }
.zm-hero h1, .zm-hero h2 { color: #fff; }
.zm-hero .zm-input { background: rgba(255,255,255,.96); border-color: transparent; }
.zm-hero-search { display: flex; gap: 10px; max-width: 640px; margin-top: var(--zm-sp-5); }
.zm-hero-search .zm-input { height: 48px; border-radius: var(--zm-radius); font-size: var(--zm-fs-md); }
.zm-hero-search .zm-btn { height: 48px; padding: 0 28px; }
@media (max-width: 600px) { .zm-hero { padding: var(--zm-sp-8) var(--zm-sp-5); } .zm-hero-search { flex-direction: column; } }

/* ---------- 通知 / 列表项 ---------- */
.zm-notice-item { display: flex; gap: 12px; padding: var(--zm-sp-4) 0; border-bottom: 1px solid var(--zm-border); align-items: flex-start; }
.zm-notice-item:last-child { border-bottom: none; }
.zm-notice-item.is-unread .zm-notice-title { font-weight: 700; color: var(--zm-ink); }
.zm-notice-title { color: var(--zm-text); }
.zm-notice-time { font-size: var(--zm-fs-xs); color: var(--zm-muted-2); white-space: nowrap; }

/* ---------- 分隔标题 ---------- */
.zm-divider-label { display: flex; align-items: center; gap: 12px; color: var(--zm-muted); font-size: var(--zm-fs-sm); margin: var(--zm-sp-5) 0; }
.zm-divider-label::before, .zm-divider-label::after { content: ""; flex: 1; height: 1px; background: var(--zm-border); }

/* ---------- 计数圆点 ---------- */
.zm-badge-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--zm-radius-pill); background: var(--zm-danger); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- 回到顶部 ---------- */
.zm-back-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--zm-surface); border: 1px solid var(--zm-border); box-shadow: var(--zm-shadow-md); color: var(--zm-brand); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: var(--zm-z-dropdown); }
.zm-back-top.is-show { display: flex; }

/* ---------- 通用过渡 ---------- */
.zm-fade { animation: zm-fade .25s var(--zm-ease); }
@keyframes zm-fade { from { opacity: 0; } to { opacity: 1; } }
