/* ============================================
   数智邦 · PC 端运营中心全局样式
   设计系统：企业级 B2B SaaS
   ============================================ */

:root {
  /* 主色系 - 与移动端保持一致的品牌色 */
  --primary: #4D7CFE;
  --primary-dark: #3B5BDB;
  --primary-light: #EEF2FF;
  --primary-gradient: linear-gradient(135deg, #4D7CFE 0%, #6E92FF 100%);

  /* 功能色 */
  --success: #10B981;
  --success-light: #ECFDF5;
  --warning: #F59E0B;
  --warning-light: #FFFBEB;
  --danger: #EF4444;
  --danger-light: #FEF2F2;
  --info: #06B6D4;
  --info-light: #ECFEFF;

  /* 中性色 */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* 文字 */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #6B7280;
  --text-disabled: #9CA3AF;

  /* 背景 */
  --bg-page: #F5F7FB;
  --bg-card: #FFFFFF;
  --bg-soft: #F9FAFB;

  /* 边框 */
  --border-color: #E5E7EB;
  --border-light: #F3F4F6;

  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 64px -8px rgba(0, 0, 0, 0.12);

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

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

  /* 容器宽度 */
  --container-max: 1280px;
}

/* ============================================
   全局重置
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; outline: none; }

ul, ol { list-style: none; }

/* ============================================
   布局容器
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
  padding: var(--space-8) 0 var(--space-16);
}

/* ============================================
   顶部导航栏
   ============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.topbar-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  height: 64px;
  gap: var(--space-3);
  min-width: 0;
  max-width: 1480px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary-gradient);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(77, 124, 254, 0.28);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-image {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.brand-sub {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-left: 2px;
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  display: inline-block;
  background: linear-gradient(135deg, #1F2937 0%, #3B82F6 60%, #06B6D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.nav-main {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin-left: var(--space-2);
  overflow: visible;
  flex-shrink: 1;
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 64px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--primary); }

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-3);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.icon-btn:hover {
  background: var(--gray-100);
  color: var(--primary);
}

/* ============================================
   按钮
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 var(--space-5);
  height: 38px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-lg { height: 46px; padding: 0 var(--space-6); font-size: 15px; }
.btn-xl { height: 52px; padding: 0 var(--space-8); font-size: 16px; }
.btn-sm { height: 32px; padding: 0 var(--space-4); font-size: 13px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(77, 124, 254, 0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(77, 124, 254, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--text-primary); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }

.btn-link {
  color: var(--primary);
  padding: 0;
  height: auto;
  background: none;
  box-shadow: none;
}
.btn-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ============================================
   卡片
   ============================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.card-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.card-body { padding: var(--space-6); }
.card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title { font-size: 16px; font-weight: 600; }
.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-light);
}

/* ============================================
   徽标 / 标签
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger  { background: var(--danger-light); color: var(--danger); }
.badge-info    { background: var(--info-light); color: var(--info); }
.badge-gray    { background: var(--gray-100); color: var(--text-secondary); }

.tag-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 4px;
}

/* ============================================
   网格栅格
   ============================================ */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   表单
   ============================================ */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-5);
}

.form-row.row-inline {
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label.required::before {
  content: "*";
  color: var(--danger);
  margin-right: 2px;
}

.form-control {
  width: 100%;
  height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: #fff;
  transition: all 0.15s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.12);
}

textarea.form-control {
  height: auto;
  min-height: 96px;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
}

.form-help {
  font-size: 12px;
  color: var(--text-tertiary);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%236B7280' d='M6 9L1 4h10z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* 单/多选 chip */
.chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 var(--space-4);
  background: var(--gray-100);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}

.chip:hover { background: var(--primary-light); color: var(--primary); }
.chip.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 500;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* 复选框 */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
}

.checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }

/* 单选 */
.radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
}

.radio input { width: 16px; height: 16px; accent-color: var(--primary); }

/* ============================================
   头像
   ============================================ */
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.avatar-md { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.avatar-xl { width: 80px; height: 80px; font-size: 24px; }

.avatar.verified::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid #fff;
  bottom: -2px;
  right: -2px;
}

.avatar-wrap { position: relative; display: inline-block; }

/* ============================================
   状态点
   ============================================ */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.status-dot.online::before { background: var(--success); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
.status-dot.busy::before { background: var(--warning); }
.status-dot.offline::before { background: var(--text-tertiary); }

/* ============================================
   步骤条
   ============================================ */
.steps {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) 0;
}

.step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--text-tertiary);
  display: grid;
  place-items: center;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.2s;
}

.step.done .step-num {
  background: var(--success);
  color: #fff;
}

.step.active .step-num {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(77, 124, 254, 0.16);
}

.step-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.step.active .step-label { color: var(--primary); font-weight: 600; }
.step.done .step-label { color: var(--text-primary); }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  border-radius: 1px;
}

.step.done + .step-line,
.step-line.done { background: var(--success); }

/* ============================================
   数据看板
   ============================================ */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0.5;
}

.stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-left: 4px;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  margin-top: var(--space-3);
  padding: 2px 8px;
  border-radius: 999px;
}
.stat-trend.up { background: var(--success-light); color: var(--success); }
.stat-trend.down { background: var(--danger-light); color: var(--danger); }

/* ============================================
   页脚
   ============================================ */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding: var(--space-16) 0 var(--space-6);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.footer h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.footer ul li {
  margin-bottom: var(--space-3);
}

.footer a {
  color: #94A3B8;
  transition: color 0.15s;
}

.footer a:hover { color: #fff; }

.footer-brand p {
  margin-top: var(--space-3);
  line-height: 1.7;
  color: #94A3B8;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: 12px;
  color: #64748B;
}

.footer-bottom a { color: #64748B; }

/* ============================================
   通用工具类
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary-color { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.bg-soft { background: var(--bg-soft); }
.bg-page { background: var(--bg-page); }

.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-xs { font-size: 12px; }
.text-sm { font-size: 13px; }
.text-base { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 22px; }
.text-3xl { font-size: 28px; }
.text-4xl { font-size: 36px; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-5) 0;
}

/* ============================================
   响应式 - 仅基础适配，PC 端以 1280px 设计
   ============================================ */
@media (max-width: 1400px) {
  /* 中宽屏：品牌文字缩小 */
  .brand-text { font-size: 16px; max-width: 220px; }
  .brand-sub { font-size: 16px; }
  .nav-link { padding: 0 8px; font-size: 12px; }
}

@media (max-width: 1200px) {
  /* 中等屏幕：保留全部导航，但更紧凑，允许横向滚动 */
  .nav-link { padding: 0 8px; font-size: 13px; }
  .brand-text { font-size: 16px; max-width: 220px; }
  .brand-sub { display: none; }
  .nav-main { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .nav-main::-webkit-scrollbar { height: 0; }
}

@media (max-width: 1024px) {
  /* 较小屏幕：导航横向滚动，不隐藏 */
  .nav-main { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .nav-main::-webkit-scrollbar { height: 0; }
  .nav-link { padding: 0 6px; font-size: 12px; }
  .brand-text { font-size: 15px; max-width: 180px; }
}

@media (max-width: 768px) {
  .nav-main { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .brand-text { font-size: 14px; }
}

/* ============================================
   移动端汉堡菜单 (手机/小屏 Android)
   ============================================ */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border-light);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover { background: var(--gray-50); }

.mobile-menu-btn .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.mobile-menu-btn .bar + .bar { margin-top: 4px; }

.mobile-menu-btn.is-open .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-menu-btn.is-open .bar:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-open .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 抽屉遮罩 */
.mobile-drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 998;
}
.mobile-drawer-mask.is-open { opacity: 1; pointer-events: auto; }

/* 抽屉主体 */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 80vw;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.16);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-drawer.is-open { transform: translateX(0); }

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.mobile-drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--gray-50);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-secondary);
}
.mobile-drawer-close:hover { background: var(--gray-100); color: var(--text-primary); }

.mobile-drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  -webkit-tap-highlight-color: transparent;
}
.mobile-drawer-nav a:last-child { border-bottom: none; }
.mobile-drawer-nav a:active { background: var(--gray-50); }
.mobile-drawer-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}
.mobile-drawer-nav a svg { color: var(--text-tertiary); }
.mobile-drawer-nav a.active svg { color: var(--primary); }

.mobile-drawer-foot {
  padding: 16px 18px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.mobile-drawer-foot .btn { flex: 1; justify-content: center; }

/* 手机端基础布局 */
@media (max-width: 768px) {
  /* 顶部栏 */
  .topbar-inner { height: 56px; gap: var(--space-2); }
  .container { padding-left: 14px; padding-right: 14px; }

  /* 品牌区：保留 logo，缩短文字 */
  .brand-image { height: 32px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand { font-size: 16px; gap: 8px; flex: 1; min-width: 0; overflow: hidden; }
  .brand-text {
    font-size: 14px !important;
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
  }

  /* 显示汉堡菜单 */
  .mobile-menu-btn { display: flex; }

  /* 顶部操作区：保留搜索/消息图标，登录/注册换成图标按钮 */
  .topbar-actions { gap: 8px; flex-shrink: 0; }
  .topbar-actions .btn-ghost,
  .topbar-actions .btn-primary {
    display: none;
  }
  .topbar-actions .icon-btn { width: 36px; height: 36px; }

  /* 页脚 */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* 父公司横幅在手机上更紧凑 */
  .parent-banner { padding: 10px 0; font-size: 12px; }
  .parent-banner-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .parent-right { width: 100%; justify-content: space-between; }
  .parent-info { gap: 10px; }
  .parent-text { font-size: 12px; line-height: 1.4; }
  .parent-text .badge-cz { display: none; }

  /* 通用网格 */
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }

  /* Hero 区域 */
  .hero-title, .about-title { font-size: 28px !important; line-height: 1.25; }
  .hero-desc, .about-desc { font-size: 14px; }

  /* Section 间距 */
  .section, .matrix-section, .hero, .about-hero { padding: 40px 0 !important; }
  .section-title { font-size: 24px; }
  .section-head { margin-bottom: 28px; }

  /* 卡片 */
  .advantage-grid, .matrix-grid, .pain-grid, .arch-children {
    grid-template-columns: 1fr 1fr !important;
  }
  .adv-card, .matrix-card { padding: 20px 16px; }
  .about-stats { grid-template-columns: repeat(2, 1fr) !important; }

  /* 页脚底部行动按钮 */
  .cta-card { padding: 32px 20px !important; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }
}

/* 超小屏幕（小于 380px，如 iPhone SE） */
@media (max-width: 380px) {
  .brand-text { font-size: 13px !important; }
  .topbar-actions { gap: 4px; }
  .topbar-actions .icon-btn:nth-child(n+2) { display: none; }
  .mobile-drawer { width: 100vw; max-width: 100vw; }
  .advantage-grid, .matrix-grid { grid-template-columns: 1fr !important; }
}

/* 中等屏幕（平板） */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-main { display: none; }
  .mobile-menu-btn { display: flex; }
  .topbar-actions .btn-ghost,
  .topbar-actions .btn-primary { display: none; }
  .brand-text { max-width: 200px; }
}
/* ==================== 分页器（ThinkPHP 默认） ==================== */
.pagination {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}
.pagination li { display: inline-block; }
.pagination li a,
.pagination li span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  min-width: 36px;
  text-align: center;
}
.pagination li a:hover {
  background: #F3F4F6;
  border-color: #4D7CFE;
  color: #4D7CFE;
}
.pagination li.active span,
.pagination li.active a {
  background: #4D7CFE;
  border-color: #4D7CFE;
  color: #fff;
  font-weight: 600;
}
.pagination li.disabled span {
  background: #F9FAFB;
  color: #9CA3AF;
  cursor: not-allowed;
}
