/* ============================================
   数智邦 · 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;
  scrollbar-gutter: stable;
}

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-wrap > .footer { margin-top: auto; }

.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;
  height: 64px;
  gap: var(--space-3);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  min-width: 0;
}

.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;
  max-width: 280px;
}

.nav-main {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 64px;
  padding: 0 10px;
  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 {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-3);
  margin-left: 0;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 240px;
  padding: 4px;
  min-height: 36px;
}

.user-chip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}

.user-chip-link:hover .user-chip-name {
  color: var(--primary);
}

.user-chip-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #EEF2FF;
}

.user-chip-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4D7CFE, #6E92FF);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.user-chip-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 96px;
}

.user-chip-sep {
  color: #D1D5DB;
  font-size: 12px;
  flex-shrink: 0;
}

.user-chip-logout {
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
  text-decoration: none;
}

.user-chip-logout:hover {
  color: var(--primary);
}

.user-msg { position: relative; }
.user-msg-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-light, #E5E7EB);
  background: #fff;
  color: var(--text-secondary, #4B5563);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .12s, color .12s, background .12s;
}
.user-msg-btn:hover,
.user-msg-btn.is-open {
  border-color: #C7D2FE;
  color: var(--primary, #4D7CFE);
  background: #F8FAFC;
}
.user-msg-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  border: 2px solid #fff;
}
.user-msg-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #EF4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: 2px solid #fff;
}
.user-msg-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  background: #fff;
  border: 1px solid var(--border-light, #E5E7EB);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .14);
  z-index: 80;
  overflow: hidden;
}
.user-msg-panel.is-open { display: block; }
.user-msg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #F3F4F6;
  background: #F9FAFB;
}
.user-msg-head strong { font-size: 13px; color: #111827; }
.user-msg-head a { font-size: 12px; color: var(--primary, #4D7CFE); text-decoration: none; }
.user-msg-list { max-height: 360px; overflow: auto; }
.user-msg-item {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #F3F4F6;
}
.user-msg-item:last-child { border-bottom: 0; }
.user-msg-item:hover { background: #F8FAFC; }
.user-msg-item.is-unread { background: rgba(77, 124, 254, .04); }
.user-msg-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-msg-item-title i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  flex-shrink: 0;
}
.user-msg-item-body {
  margin-top: 4px;
  font-size: 12px;
  color: #6B7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.user-msg-item-time { margin-top: 6px; font-size: 11px; color: #9CA3AF; }
.user-msg-empty { padding: 28px 16px; text-align: center; color: #9CA3AF; font-size: 13px; }

.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: minmax(240px, 1.15fr) minmax(0, 2.4fr);
  gap: 48px;
  margin-bottom: var(--space-10);
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-brand .brand {
  white-space: normal;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.footer-brand .brand-text {
  font-size: 16px;
  white-space: normal;
  max-width: none;
  line-height: 1.35;
  word-break: break-word;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
  padding-left: 0;
}
.footer-links > div { text-align: left; min-width: 0; }

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-left: 0;
  }
  .footer-links > div:nth-child(n) { text-align: left; padding-left: 0; padding-right: 0; }
}

.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 {
  max-width: 30em;
  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;
  align-items: flex-end;
  font-size: 12px;
  color: #64748B;
}

.footer-bottom a { color: #64748B; }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.footer-copy {
  color: #94A3B8;
  line-height: 1.5;
}
.footer-icp {
  color: #64748B;
  line-height: 1.4;
  text-decoration: none;
  width: fit-content;
}
.footer-icp:hover { color: #94A3B8; text-decoration: underline; }

@media (min-width: 769px) {
  #mall-content { padding-bottom: 72px; }
  #mall-content .pagination { margin-top: 36px; margin-bottom: 0; }
  #mall-content .pagination .pagination { margin: 0; }
  .footer-bottom-links { flex-wrap: wrap; align-items: center; }
}

/* ============================================
   通用工具类
   ============================================ */
.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; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 20px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .brand-text { font-size: 14px; }
}

/* ============================================
   移动端汉堡菜单 (手机/小屏 Android)
   ============================================ */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border-light);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  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;
  margin: 0;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
  flex-shrink: 0;
}

.mobile-menu-btn .bar + .bar { margin-top: 0; }

.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: 10048;
}
.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: 10049;
  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; }

/* 手机端基础布局 */
/* 移动端支付宝式门户：PC 隐藏 */
.m-top-tools { display: none; }
.m-home-portal { display: none; }
.m-home-grad-zone { display: contents; }

/* —— 移动端子页公共壳（更多服务等新建页必须复用，见 docs/06） —— */
.m-page {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 14px 28px;
  overflow-x: hidden;
  background: var(--bg-page, #F5F7FB);
}
.m-page *,
.m-page *::before,
.m-page *::after { box-sizing: border-box; }
.m-page-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  min-height: 36px;
}
.m-page-back {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary, #4D7CFE);
  text-decoration: none;
  background: #EEF2FF;
  border: 1.5px solid transparent;
}
.m-page-back:active { opacity: .85; }
.m-page-title {
  flex: 1;
  margin: 0;
  padding-right: 36px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary, #111827);
  line-height: 1.25;
}
.m-page-body { width: 100%; max-width: 720px; margin: 0 auto; }
.m-card {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 4px 8px 14px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(77, 124, 254, .08);
}
.m-svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 4px;
  padding: 8px 2px 4px;
  width: 100%;
}
@media (min-width: 400px) {
  .m-svc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.m-svc-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 0;
  text-decoration: none;
  color: var(--text-primary, #111827);
  -webkit-tap-highlight-color: transparent;
}
.m-svc-item:active { opacity: .85; }
.m-svc-item .m-home-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}
.m-svc-item .m-home-icon-badge svg { width: 22px; height: 22px; }
.m-svc-item .m-home-icon-label {
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  color: #334155;
  word-break: break-all;
}

@media (max-width: 768px) {
  /* 色块顶栏：首页与渐变顶色同蓝，避免滚动时透明→实色跳变 */
  .topbar {
    background: #4A7AFF !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }
  .topbar::before { display: none !important; }
  body.is-m-home .topbar {
    background: #4A7AFF !important;
  }
  body.is-m-home.m-home-scrolled .topbar {
    background: #4A7AFF !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
  }
  .topbar-inner {
    position: relative;
    z-index: 1;
    height: 52px;
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .container { padding-left: 14px; padding-right: 14px; }
  .brand {
    font-size: 16px;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
    overflow: visible;
    background: rgba(255,255,255,.96);
    border-radius: 10px;
    padding: 3px 7px;
    box-shadow: 0 2px 8px rgba(15,23,42,.12);
  }
  .brand-image { height: 34px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-text { display: none !important; }

  .m-top-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  /* 搜索：底色跟按钮同蓝，避免「搜索」下漏白边 */
  .m-top-search {
    display: flex;
    align-items: stretch;
    flex: 0 1 220px;
    width: min(220px, 52vw);
    max-width: 100%;
    height: 34px;
    margin-left: auto;
    background: var(--primary, #4D7CFE);
    border: none;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
  }
  .m-top-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: #fff;
    border-radius: 9px 0 0 9px;
    padding: 0 10px;
    font-size: 12px;
    color: var(--text-primary);
    -webkit-appearance: none;
    appearance: none;
  }
  .m-top-search input::placeholder { color: #94A3B8; }
  .m-top-search button {
    flex: 0 0 auto;
    height: 100%;
    border: 0;
    margin: 0;
    background: var(--primary, #4D7CFE);
    color: #fff;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
  }

  .m-top-plus-wrap { position: relative; flex: 0 0 auto; }
  /* 圆形白色描边镂空 + ：略缩小 */
  .m-top-plus {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1.5px solid rgba(255,255,255,.92);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }
  .m-top-plus svg { width: 13px; height: 13px; }
  .m-top-plus.is-open,
  .m-top-plus:active {
    background: rgba(255,255,255,.12);
    border-color: #fff;
  }
  .m-top-plus-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    min-width: 168px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(15, 23, 42, .94);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .35);
    backdrop-filter: blur(10px);
  }
  .m-top-plus-panel[hidden] { display: none !important; }
  .m-top-plus-panel::before {
    content: "";
    position: absolute;
    top: -6px; right: 10px;
    width: 12px; height: 12px;
    background: rgba(15, 23, 42, .94);
    transform: rotate(45deg);
    border-radius: 2px;
  }
  .m-top-plus-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
  }
  .m-top-plus-item + .m-top-plus-item { margin-top: 2px; }
  .m-top-plus-item:active { background: rgba(255,255,255,.1); }
  .m-top-plus-ico {
    width: 28px; height: 28px;
    display: grid; place-items: center;
    color: #A5B4FC;
  }
  .m-top-plus-ico svg { width: 20px; height: 20px; }

  /* 首页竖向渐变带：蓝→白 + 大楼图叠底，接到征集白底 */
  .m-home-grad-zone {
    display: block;
    position: relative;
    overflow: hidden;
    margin: -52px 0 0;
    padding: 52px 0 12px;
    background: linear-gradient(
      180deg,
      #4A7AFF 0%,
      #5B88FF 28%,
      #8AABFF 55%,
      #C5D6FF 78%,
      #EEF3FF 92%,
      #FFFFFF 100%
    );
  }
  .m-home-grad-zone::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 36px;
    bottom: 48px;
    background: url(/assets/operation-center-2.png) center 35% / cover no-repeat;
    opacity: .42;
    -webkit-mask-image: linear-gradient(
      180deg,
      transparent 0%,
      #000 18%,
      #000 62%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      transparent 0%,
      #000 18%,
      #000 62%,
      transparent 100%
    );
    pointer-events: none;
    z-index: 0;
  }
  .m-home-portal {
    display: block;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 14px 12px 0;
    background: transparent;
  }
  /* 子页：与顶栏/门户同色带，禁止另起亮蓝 */
  .m-page {
    padding: 8px 12px 28px;
    background: linear-gradient(180deg, #4A7AFF 0%, #8AABFF 56px, #F5F7FB 120px, #F5F7FB 100%);
  }
  .m-page-head { color: #fff; margin-bottom: 14px; }
  .m-page-title { color: #fff; }
  .m-page-back {
    width: auto;
    height: auto;
    min-width: 48px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    font-family: inherit;
  }
  .m-page-back:active { background: transparent; opacity: .85; }
  .m-page-title { padding-right: 48px; } /* 与左侧「返回」占位大致对称 */
  .m-home-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 6px 0 16px;
    justify-items: center;
    align-items: start;
  }
  .m-home-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    width: 100%;
    max-width: 84px;
    margin: 0 auto;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }
  .m-home-quick-item:active { opacity: .88; }
  .m-home-quick-ico {
    width: 56px;
    height: 56px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    line-height: 0;
  }
  .m-home-quick-ico svg {
    width: 56px;
    height: 56px;
    display: block;
    margin: 0 auto;
  }
  .m-home-quick-label {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    white-space: nowrap;
    line-height: 1.15;
  }

  .m-home-icons-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 8px 12px;
    box-shadow: 0 8px 24px rgba(77, 124, 254, .08);
  }
  .m-home-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 4px;
  }
  .m-home-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary, #0F172A);
    -webkit-tap-highlight-color: transparent;
    padding: 2px 0;
  }
  .m-home-icon:active { opacity: .85; }
  .m-home-icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
  }
  .m-home-icon-badge svg { width: 22px; height: 22px; }
  .m-home-icon-label {
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    color: #334155;
  }
  .mi-green { background: linear-gradient(135deg, #10B981, #34D399); }
  .mi-cyan { background: linear-gradient(135deg, #06B6D4, #22D3EE); }
  .mi-purple { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
  .mi-orange { background: linear-gradient(135deg, #F59E0B, #F97316); }
  .mi-blue { background: var(--primary-gradient); }
  .mi-teal { background: linear-gradient(135deg, #14B8A6, #2DD4BF); }
  .mi-indigo { background: linear-gradient(135deg, #6366F1, #818CF8); }
  .mi-slate { background: linear-gradient(135deg, #64748B, #94A3B8); }
  .mi-rose { background: linear-gradient(135deg, #F43F5E, #FB7185); }
  .mi-more { background: linear-gradient(135deg, #94A3B8, #CBD5E1); color: #475569; }
  .entry-section-pc { display: none !important; }

  /* 一期：去掉汉堡与抽屉；登录/消息走底栏 */
  .mobile-menu-btn,
  .mobile-drawer-mask,
  .mobile-drawer,
  .topbar-actions { display: none !important; }

  /* 页脚 */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 20px; }
  .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: flex-end; margin-left: 0; }
  .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 区域（非首页压缩由 index 内联补强） */
  .hero-title, .about-title { font-size: 28px !important; line-height: 1.25; }
  .hero-desc, .about-desc { font-size: 14px; }

  /* Section 间距 */
  .section, .matrix-section, .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: flex; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .nav-main::-webkit-scrollbar { height: 0; }
  .nav-link { padding: 0 6px; font-size: 12px; }
  .mobile-menu-btn { 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;
}
/* 移动端公共服务底部主导航 */
.mobile-tabbar{display:none}
@media(max-width:768px){
html,body{max-width:100%;overscroll-behavior-y:none}
/* 关闭网页交互：选中/长按菜单/拖拽保存（输入框除外） */
html,body{
  -webkit-user-select:none;user-select:none;
  -webkit-touch-callout:none;
  -webkit-tap-highlight-color:transparent;
}
input,textarea,select,[contenteditable="true"],.allow-select{
  -webkit-user-select:text!important;user-select:text!important;
  -webkit-touch-callout:default;
}
img,a,svg,video,canvas{
  -webkit-user-drag:none;user-drag:none;
  -webkit-touch-callout:none;
}
/* 避免 overflow-x:hidden 破坏 sticky；横向溢出由单页自行约束 */
body{padding-top:52px;padding-bottom:calc(82px + env(safe-area-inset-bottom))}
.topbar{
  position:fixed;top:0;left:0;right:0;z-index:100;
}
.parent-banner{display:none!important}
.mobile-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:900;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;min-height:76px;padding:0 6px max(6px,env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid #E5E7EB;box-shadow:0 -6px 22px rgba(15,23,42,.08);backdrop-filter:blur(14px)}
.mobile-tabbar-item{position:relative;min-width:0;height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#64748B;text-decoration:none;font-size:12px;line-height:1;-webkit-tap-highlight-color:transparent;box-sizing:border-box}
.mobile-tabbar-item svg{width:26px;height:26px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mobile-tabbar-item.is-active{color:var(--primary);font-weight:700}
.mobile-tabbar-item:active{color:var(--primary);background:rgba(77,124,254,.08);border-radius:12px}
.mobile-tabbar-publish{color:var(--primary);font-weight:700;overflow:visible}
.mobile-tabbar-plus{
  position:absolute;left:50%;top:2px;transform:translate(-50%,-50%);
  width:56px;height:56px;margin:0;padding:0;
  display:flex;align-items:center;justify-content:center;
  border:4px solid #fff;border-radius:50%;
  background:var(--primary-gradient);color:#fff;
  box-shadow:0 6px 16px rgba(77,124,254,.34);
  box-sizing:border-box;pointer-events:none;
}
.mobile-tabbar-plus svg{width:28px;height:28px;stroke:#fff;fill:none}
.mobile-tabbar-plus svg{transition:transform .25s ease}
.mobile-tabbar-publish.is-active .mobile-tabbar-plus svg{transform:rotate(45deg)}
.mobile-tabbar-label{margin-top:22px;line-height:1;font-size:12px}
.parent-right{display:none!important}
.footer-grid,.footer-links,.footer-bottom-links{display:none!important}
.footer{padding:14px 0 18px!important}
.footer-bottom{display:block;margin:0;padding:0;border:0;text-align:center}
.footer-legal{align-items:center;gap:4px;padding:0 12px}
.footer-copy{font-size:11px;line-height:1.5;color:#94A3B8}
.footer-icp{font-size:11px;line-height:1.45;color:#64748B}
.search-bar,.yp-search-bar,.mall-global-search{flex-wrap:wrap}
.search-bar .search-input,.yp-search-bar input,.mall-global-search .search-input{flex:1 1 calc(100% - 58px);min-width:150px}
.search-select,.yp-search-select{flex:1 1 120px;min-width:0!important}
.search-btn,.yp-search-bar button,.mall-global-search .search-btn{min-height:44px}
.m-toast,.uc-toast{bottom:calc(96px + env(safe-area-inset-bottom))!important}
}

.recruit-strip{min-height:34px;padding:6px max(20px,calc((100% - 1200px)/2));display:flex;align-items:center;justify-content:center;gap:20px;background:linear-gradient(90deg,#fff7ed,#ffedd5);border-bottom:1px solid #fed7aa;color:#9a3412;font-size:13px;text-decoration:none}
.recruit-strip b{white-space:nowrap;color:#c2410c}
@media(max-width:768px){.recruit-strip{justify-content:space-between;padding:7px 16px;font-size:12px}.recruit-strip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* 服务超市固定搜索头：不随下方局部页面样式切换 */
.page-banner.mall-search-hero{background:linear-gradient(135deg,#4D7CFE,#6E92FF);color:#fff;padding:56px 0 80px;position:relative;overflow:hidden}
.mall-search-hero .container{position:relative;z-index:1}.mall-search-hero .page-title{font-size:36px;line-height:1.25;font-weight:700;margin:0 0 12px;letter-spacing:-.3px}.mall-search-hero .page-desc{font-size:15px;line-height:1.75;opacity:.92;max-width:720px;min-height:52px;margin:0}
.mall-global-search{margin-top:30px;background:#fff;border-radius:12px;padding:7px;display:flex;align-items:center;gap:8px;box-shadow:var(--shadow-lg);width:min(720px,100%);box-sizing:border-box}.mall-global-search .search-input{flex:1;min-width:0;border:0;padding:0 14px;height:44px;font-size:14px;color:var(--text-primary);background:transparent}.mall-global-search .search-input:focus{outline:0}.mall-camera-btn{width:44px;height:44px;flex:none;border:1px solid #dbe4ff;border-radius:9px;background:#f7f9ff;color:#4D7CFE;display:grid;place-items:center;cursor:pointer;transition:.15s}.mall-camera-btn:hover{background:#eef3ff;border-color:#9db5ff}.mall-camera-btn input{display:none}.mall-global-search .search-btn{height:44px;flex:none;border:0;border-radius:9px;background:#4D7CFE;color:#fff;padding:0 20px;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap}.mall-global-search .search-btn:hover{background:#3b6ceb}.mall-photo-status{width:min(720px,100%);min-height:18px;margin-top:7px;font-size:12px;color:rgba(255,255,255,.9)}
@media(max-width:768px){.page-banner.mall-search-hero,.recruit-strip{display:none!important}.mall-layout,.product-layout,.solution-layout,.dm-layout{margin-top:8px!important}}
[data-mall-results]{transition:opacity .1s ease}.mall-results-fading{opacity:0}
.nav-ai-search{display:flex;align-items:center;height:38px;border:1px solid var(--border-color);border-radius:10px;overflow:hidden;background:#fff}.nav-ai-search input{width:170px;height:100%;border:0;outline:0;padding:0 10px;font-size:12px}.nav-ai-search button{height:100%;border:0;background:var(--primary);color:#fff;padding:0 12px;font-size:12px;font-weight:600;cursor:pointer}@media(max-width:1050px){.nav-ai-search{display:none}}

.mobile-cover-category{display:none}
.mobile-card-price{display:none}
@media(max-width:768px){body.is-uc-page .topbar{display:none!important}}
@media(max-width:768px){
  .m-top-tools{min-width:0!important;flex:1 1 auto!important}
  .m-top-search{flex:0 1 220px!important;width:min(220px,52vw)!important;min-width:0!important;margin-left:auto!important}
  .service-grid,.product-grid,.solution-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .service-card,.product-card,.solution-card{min-width:0;aspect-ratio:1;display:flex;flex-direction:column;border-radius:14px!important}
  .service-banner,.product-banner,.solution-banner{height:auto!important;aspect-ratio:auto;flex:1 1 auto;min-height:0;border-radius:13px 13px 0 0}
  .mobile-cover-category{display:block;position:absolute;left:7px;bottom:7px;max-width:calc(100% - 14px);padding:3px 7px;border-radius:6px;background:rgba(15,23,42,.7);color:#fff;font-size:10px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:1}
  .service-cat,.product-cat,.solution-industry,.service-desc,.product-desc,.solution-desc,.service-vendor,.product-vendor,.solution-provider{display:none!important}
  .service-info,.product-info,.solution-info{padding:8px!important;flex:0 0 48px;min-height:0;box-sizing:border-box}
  .service-title,.product-title,.solution-title{font-size:12px!important;line-height:1.35!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 5px!important}
  .service-meta,.product-meta,.solution-meta{margin:0!important;padding:0!important;border:0!important;font-size:11px!important}
  .service-price .num,.solution-meta span:first-child{font-size:12px!important;font-weight:700;color:#dc2626!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-card-price{display:block;font-size:12px;font-weight:700;color:#dc2626;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .service-meta>div:last-child,.product-meta,.solution-meta span:last-child{display:none!important}
  .solution-banner .s-industry{display:none!important}
}
@media(max-width:768px){
  body:not(.is-m-home) .footer{display:none!important}
  .m-top-tools{flex:1 1 0!important;width:0!important}
  .m-top-search{flex:0 0 min(220px,52vw)!important;width:min(220px,52vw)!important;max-width:min(220px,52vw)!important}
  .mobile-message-badge{position:absolute;top:2px;left:calc(50% + 9px);min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;border-radius:10px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;line-height:18px;text-align:center;box-shadow:0 0 0 2px #fff}
  .mobile-message-badge[hidden]{display:none!important}
  .mobile-message-toast{position:fixed;top:62px;left:16px;right:16px;z-index:1300;display:block;padding:13px 16px;border-radius:12px;background:#17223b;color:#fff;font-size:13px;line-height:1.4;text-decoration:none;box-shadow:0 8px 30px rgba(15,23,42,.24)}
}

@media (min-width: 769px) {
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 20261004：移动端透明标识及页面一致性 */
@media(max-width:768px){.topbar .brand{background:transparent;box-shadow:none;padding:3px 0;border-radius:0}.uc-side-meta,.uc-main-head>div{min-width:0}.uc-side-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uc-shell,.m-page,.contact-grid,.policy-layout{max-width:100%;box-sizing:border-box}.contact-grid>*{min-width:0}}
@media(min-width:769px){.about-hero>.container,.policy-banner>.container,.case-hero>.container,.mall-search-hero>.container{max-width:var(--container-max);margin-left:auto;margin-right:auto;box-sizing:border-box}}
/* 与同一行品牌文字保持协调，页头和页脚分别控制尺寸。 */
.topbar .brand-image{height:26px!important;width:auto!important;object-fit:contain;flex-shrink:0}
.topbar .brand{gap:8px;align-items:center}
.footer-brand .brand{align-items:center;gap:8px}
.footer-brand .brand-image{height:22px;width:auto;object-fit:contain;flex-shrink:0}
@media(max-width:768px){.topbar .brand-image{height:26px!important;width:auto!important}.footer-brand .brand-image{height:20px}}
@media(min-width:769px) and (max-width:1100px){.topbar .brand-image{height:24px!important}}
/* Keep the logged-in controls and the full menu in separate layout cells. */
@media(min-width:769px){
  .topbar-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;max-width:var(--container-max);column-gap:0;height:64px;grid-template-rows:64px}
  .topbar .brand{min-width:0;max-width:320px}
  .topbar .brand-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
  .topbar .nav-main{justify-content:center;min-width:0;overflow:hidden;box-sizing:border-box;grid-column:2;grid-row:1}
  .topbar-actions{min-width:0;max-width:100%;justify-self:end}
  .topbar-actions .user-chip{min-width:0;max-width:190px}
  .topbar-actions .user-chip-name{max-width:80px}
  .topbar .nav-main{gap:var(--menu-spacing,4px);padding-inline:var(--menu-spacing,4px)}
  .topbar .nav-link{padding:0;font-size:12px;height:64px}
  .topbar .nav-link[hidden]{display:none!important}
  .topbar .brand-text{font-size:16px;max-width:210px}
  .topbar-actions{gap:8px}
  .topbar-inner{--search-input-width:161px}
  .nav-ai-search input{width:var(--search-input-width);min-width:80px}
  .nav-ai-search button{padding:0 10px}
}
