/* ============================================================
   公司服务导航门户 · 样式
   浅色现代风；主色蓝 #2563eb；圆角 12-16px；系统字体栈
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff4ff;
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --success: #22c55e;
  --text: #111827;
  --text-sub: #6b7280;
  --text-mute: #9ca3af;
  --bg: #f5f7fb;
  --card: #ffffff;
  --border: #e5e7eb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
  --shadow-hover: 0 8px 28px rgba(37, 99, 235, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶部 LOGO ---------- */
.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 16px 16px;
}
.logo {
  height: 44px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
}
.topbar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* ---------- 布局 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ---------- 工具栏 ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar-search {
  position: relative;
  flex: 1 1 260px;
  min-width: 200px;
}
.toolbar-search .icon-search {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-mute);
  pointer-events: none;
}
.toolbar-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.toolbar-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.toolbar-filters {
  display: flex;
  gap: 10px;
}
.select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 10px 0 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.select-label {
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
}
.select-wrap select {
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  outline: none;
  cursor: pointer;
  max-width: 130px;
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }

.btn-icon {
  width: 42px;
  padding: 0;
  color: var(--text-sub);
}
.btn-icon:hover { color: var(--primary); border-color: var(--primary); }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-ghost { background: var(--card); color: var(--text-sub); }
.btn-ghost:hover { background: #f9fafb; }

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card.is-disabled { opacity: .62; }

/* 卡片头部：图标块 + 名称 */
.card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.card-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
}
.card-icon .icon { width: 22px; height: 22px; }
/* 分类色调变体 */
.card-icon.tone-test { background: #ecfdf5; color: #10b981; }
.card-icon.tone-tool { background: #fff7ed; color: #f59e0b; }
.card-icon.tone-link { background: var(--primary-soft); color: var(--primary); }

.card-title-wrap { flex: 1; min-width: 0; padding-top: 2px; }
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  word-break: break-word;
}
.card-desc {
  font-size: 12px;
  color: var(--text-sub);
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 卡片右上角操作 */
.card-ops {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .15s;
}
.card:hover .card-ops { opacity: 1; }
.op-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-mute);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.op-btn .icon { width: 16px; height: 16px; }
.op-btn:hover { background: #f3f4f6; color: var(--text); }
.op-btn.op-copyall:hover { background: var(--primary-soft); color: var(--primary); }
.op-btn.op-del:hover { background: var(--danger-soft); color: var(--danger); }

/* 标签行 */
.card-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-sub);
}
.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-mute);
}
.status.on { color: #16a34a; }
.status.on .dot { background: var(--success); }

/* 备注行 */
.card-remark {
  font-size: 12px;
  color: var(--text-sub);
  word-break: break-all;
}

/* 账号 / 密码：可点击复制 + 眼睛切换显隐 */
.card-creds {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-cred {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: #f9fafb;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.card-cred:hover { background: var(--primary-soft); border-color: var(--primary); }
.card-cred .cred-label {
  flex: none;
  font-size: 12px;
  color: var(--text-sub);
}
.card-cred .cred-val {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 眼睛：切换显隐，独立点击区 */
.card-cred .cred-eye {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-mute);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.card-cred .cred-eye:hover { background: #eef2ff; color: var(--primary); }
.card-cred .cred-eye .icon { width: 15px; height: 15px; }
/* 复制图标：跟随行 hover 高亮 */
.card-cred .cred-copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  color: var(--text-mute);
}
.card-cred:hover .cred-copy { color: var(--primary); }
.card-cred .cred-copy .icon-copy { width: 14px; height: 14px; }

/* 地址行 */
.card-url {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #f9fafb;
  border: 1px solid var(--border);
  color: var(--text-sub);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.card-url:hover { background: var(--primary-soft); border-color: var(--primary); }
.card-url .icon-link { flex: none; width: 16px; height: 16px; color: var(--text-mute); }
.card-url .url-text {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-url .icon-open { flex: none; width: 15px; height: 15px; color: var(--primary); }

/* ---------- 空状态 / 骨架 / 错误 ---------- */
.state-block {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  color: var(--text-sub);
}
.state-block .state-icon {
  width: 52px;
  height: 52px;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.state-block .state-title { font-size: 15px; color: var(--text); margin: 0 0 6px; font-weight: 600; }
.state-block .state-sub { font-size: 13px; margin: 0; }

.skeleton {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  height: 190px;
}
.sk-line {
  border-radius: 6px;
  background: linear-gradient(90deg, #eef1f6 25%, #f6f8fb 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: sk 1.3s ease infinite;
  margin-bottom: 12px;
}
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* hidden 属性必须始终生效（避免被 .mask.center 等 display 规则覆盖） */
[hidden] { display: none !important; }

/* ---------- 遮罩 ---------- */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.42);
  z-index: 40;
  animation: fade .18s ease;
}
.mask.center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 抽屉 ---------- */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 440px;
  max-width: 92vw;
  background: var(--card);
  z-index: 50;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(16, 24, 40, 0.14);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-title { font-size: 18px; font-weight: 700; margin: 0; }
.drawer-subtitle { font-size: 12px; color: var(--text-mute); margin: 4px 0 0; letter-spacing: .5px; }
.drawer-close { width: 34px; height: 34px; border: none; }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.field-sort { max-width: 120px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text); }
.field-label .req { color: var(--danger); font-style: normal; }

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.field.has-error input { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.field-error { font-size: 12px; color: var(--danger); margin: 0; min-height: 0; }
.field-error:empty { display: none; }
.field-hint { font-size: 12px; color: var(--text-mute); margin: 2px 0 0; }

/* 开关 */
.switch-field { gap: 4px; }
.switch-line { display: flex; align-items: center; justify-content: space-between; }
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: background .18s;
}
.switch.is-on { background: var(--primary); }
.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .18s;
}
.switch.is-on .switch-thumb { transform: translateX(20px); }

.drawer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* ---------- 确认弹窗 ---------- */
.confirm-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  width: 360px;
  max-width: 100%;
  box-shadow: var(--shadow-hover);
  animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-title { font-size: 16px; margin: 0 0 8px; }
.confirm-text { font-size: 13px; color: var(--text-sub); margin: 0 0 20px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 11px 18px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-hover);
  animation: drop .2s ease;
}
.toast.success { background: #16a34a; }
.toast.error { background: var(--danger); }
.toast.info { background: #374151; }
@keyframes drop { from { transform: translate(-50%, -12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ============================================================
   叠加扩展：Tab 切换 / 登录浮层 / 服务器表单 / 服务器卡片
   （沿用既有变量与类，风格统一）
   ============================================================ */

/* ---------- 顶部 Tab 切换条 ---------- */
.tabbar {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 10px 18px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-sub);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ---------- 登录浮层 ---------- */
.login-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  width: 360px;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 32px 28px;
  animation: pop .18s ease;
}
.login-title { font-size: 20px; font-weight: 700; margin: 0 0 6px; text-align: center; }
.login-sub { font-size: 13px; color: var(--text-sub); text-align: center; margin: 0 0 22px; }
.login-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
.login-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.login-btn { width: 100%; height: 44px; margin-top: 14px; }
.login-error { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: var(--danger); text-align: center; }
.login-error:empty { display: none; }

/* ---------- 服务器表单：认证方式单选 / 私钥导入 ---------- */
.radio-group { display: flex; gap: 10px; }
.radio-chip {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text-sub);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.radio-chip:hover { border-color: var(--primary); }
.radio-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-chip.is-checked { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }

.field-label-row { display: flex; align-items: center; justify-content: space-between; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }

/* ---------- 服务器卡片：图标色调 / 认证徽标 / 私钥下载 ---------- */
.card-icon.tone-server { background: #eef2ff; color: #6366f1; }
.pill.pill-key { background: #ecfdf5; color: #10b981; }

/* 私钥下载小按钮：并入 card-cred 行，风格同眼睛 */
.card-cred .cred-dl {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-mute);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.card-cred .cred-dl:hover { background: #eef2ff; color: var(--primary); }
.card-cred .cred-dl .icon { width: 15px; height: 15px; }

/* ---------- 首页：分类卡片视图 ---------- */
.home-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.home-title { font-size: 18px; font-weight: 700; margin: 0; }
.home-sub { font-size: 13px; color: var(--text-sub); margin: 4px 0 0; }
.home-actions { display: flex; gap: 10px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.cat-card {
  position: relative;
  text-align: left;
  font-family: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.cat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cat-count {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--mono);
  line-height: 1;
}
.cat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  word-break: break-word;
}
.cat-meta { font-size: 12px; color: var(--text-sub); margin: 0; }
.cat-enter {
  margin-top: 8px;
  font-size: 12px;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .15s, transform .15s;
}
.cat-card:hover .cat-enter { opacity: 1; transform: translateX(0); }

/* ============================================================
   服务 Logo：表单上传预览 / 卡片 Logo / 首字兜底色块 / 分类卡片 Logo 网格
   ============================================================ */

/* 卡片图标容器裁剪圆角，容纳图片 / 首字色块 */
.card-icon { overflow: hidden; }
.card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 首字兜底：渐变色块铺满图标，按名称哈希取 6 色之一 */
.logo-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .5px;
}
.card-icon .logo-text { font-size: 20px; }
.lt-0 { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.lt-1 { background: linear-gradient(135deg, #34d399, #10b981); }
.lt-2 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.lt-3 { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.lt-4 { background: linear-gradient(135deg, #fb7185, #e11d48); }
.lt-5 { background: linear-gradient(135deg, #22d3ee, #0891b2); }

/* 表单 Logo 字段 */
.field-optional { font-weight: 400; color: var(--text-mute); font-size: 12px; }
.logo-field { display: flex; align-items: center; gap: 14px; }
.logo-preview {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: #f9fafb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
}
.logo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-preview .logo-text { font-size: 24px; border-radius: 0; }
.logo-field-btns { display: flex; flex-direction: column; gap: 6px; }

/* 分类卡片：成员服务 Logo 小网格 */
.cat-logos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.cat-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--border);
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-logo .logo-text { font-size: 15px; }
.cat-logo-more {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
  background: #f3f4f6;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar-actions { margin-left: 0; }
  .toolbar-search { flex: 1 1 100%; }
  .toolbar-filters { flex: 1 1 100%; }
  .select-wrap { flex: 1; }
  .select-wrap select { max-width: none; flex: 1; }
}
@media (max-width: 380px) {
  .category-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .container { padding: 16px 12px 48px; }
}
