/* ===== 客户门户公共样式 — Navy + 品牌绿 ===== */
:root {
  --navy: #1e3a6e;
  --navy-light: #2a5298;
  --green: #00C896;
  --green-light: #5eead4;
  --green-bg: #f0fdf4;
  --blue: #1CB0F6;
  --blue-bg: #F0F7FF;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --bg: #f8f9fc;
  --card: #ffffff;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== 导航栏 ===== */
.navbar {
  background: var(--navy);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(30,58,110,0.15);
}

.navbar__brand {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__brand-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.navbar__brand-text {
  line-height: 1.2;
}

.navbar__brand-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.navbar__brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.navbar__user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__user-name {
  font-size: 14px;
  opacity: 0.9;
}

.navbar__logout {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.navbar__logout:hover {
  background: rgba(255,255,255,0.25);
}

/* ===== 底部导航 ===== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  display: flex;
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}

.tabbar__item {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 12px;
  transition: color 0.2s;
}

.tabbar__item--active {
  color: var(--navy);
  font-weight: 600;
}

.tabbar__icon {
  font-size: 20px;
  display: block;
  margin-bottom: 2px;
}

/* ===== 容器 ===== */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

.container--full {
  max-width: 100%;
}

/* ===== 卡片 ===== */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ===== 统计卡片 ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.stat-card__number {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.stat-card__label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.stat-card--green .stat-card__number { color: var(--green); }
.stat-card--blue .stat-card__number { color: var(--blue); }
.stat-card--warning .stat-card__number { color: var(--warning); }
.stat-card--danger .stat-card__number { color: var(--danger); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}

.btn--green {
  background: var(--green);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.btn--danger {
  background: var(--danger);
  color: #fff;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== 表单 ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: var(--card);
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-input-group {
  display: flex;
  gap: 10px;
}

.form-input-group .form-input {
  flex: 1;
}

/* ===== 徽章 ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge--green { background: var(--green-bg); color: var(--green); }
.badge--blue { background: var(--blue-bg); color: var(--blue); }
.badge--warning { background: #fef3c7; color: var(--warning); }
.badge--danger { background: #fee2e2; color: var(--danger); }
.badge--gray { background: #f3f4f6; color: var(--text-secondary); }

/* ===== 列表 ===== */
.list-item {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.list-item:active {
  box-shadow: var(--shadow-md);
}

.list-item--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.list-item__summary {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.settings-checkbox {
  width: 24px;
  height: 24px;
}

.load-more {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.modal-close-link {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.share-hidden-warning {
  color: #b45309;
}

.list-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.list-item__title {
  font-size: 15px;
  font-weight: 700;
}

.list-item__meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===== 登录页 ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.portal-switch-link {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.portal-switch-link:hover { text-decoration: underline; }

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo__img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(30, 58, 110, 0.12);
}

.login-logo__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.login-logo__subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.login-tabs {
  display: flex;
  margin-bottom: 24px;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 4px;
}

.login-tab {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.login-tab--active {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow);
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state__text {
  font-size: 14px;
}

/* ===== 分享页 ===== */
.share-page {
  min-height: 100vh;
  background: var(--bg);
}

.share-header {
  background: var(--navy);
  color: #fff;
  padding: 24px 20px;
  text-align: center;
}

/* ★ 分享页品牌 Logo */
.share-header__logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.share-header__brand {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.share-header__store {
  font-size: 20px;
  font-weight: 700;
}

/* ===== 申诉时间线 ===== */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
}

.timeline-item__time {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-item__content {
  font-size: 14px;
  color: var(--text);
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.font-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none; }
.text-danger { color: var(--danger); }
.text-blue { color: var(--blue); }
.text-navy { color: var(--navy); }
.card--center { text-align: center; }
.section-link { font-size: 13px; color: var(--blue); text-decoration: none; }
.appeal-filter-row { overflow-x: auto; }
.voucher-group { margin-bottom: 12px; }
.card__title-score { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.review-comment { line-height: 1.6; }
.score-big__suffix { font-size: 16px; color: var(--text-muted); }
.score-big--good { color: var(--green); }
.score-big--warning { color: var(--warning); }
.score-big--danger { color: var(--danger); }
.score-redline-warning { color: var(--danger); font-size: 13px; margin-top: 8px; }
.scorebar__progress {
  flex: 1;
  height: 8px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
}
.scorebar__progress::-webkit-progress-bar { background: var(--bg); border-radius: 4px; }
.scorebar__progress::-webkit-progress-value { background: var(--scorebar-color); border-radius: 4px; }
.scorebar__progress::-moz-progress-bar { background: var(--scorebar-color); border-radius: 4px; }
.scorebar__progress--good { --scorebar-color: var(--green); }
.scorebar__progress--warning { --scorebar-color: var(--warning); }
.scorebar__progress--danger { --scorebar-color: var(--danger); }
.appeal-record { margin: 6px 0; padding: 8px; background: var(--bg); border-radius: 8px; font-size: 13px; }
.appeal-record__reply { margin-top: 4px; }
.appeal-question-summary { margin-bottom: 12px; padding: 10px; background: var(--bg); border-radius: 8px; font-size: 13px; }
.appeal-question-summary__detail { margin-top: 4px; }
.item-original-option { margin: 6px 0; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.toast--show {
  opacity: 1;
}

/* ===== 加载动画 ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== 客户经营洞察桌面壳层 ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -48px; z-index: 1000; padding: 10px 16px; background: #fff; color: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.insight-body { background: #f6f8fc; min-height: 100vh; }
.client-sidebar { position: fixed; inset: 0 auto 0 0; width: 224px; z-index: 200; display: flex; flex-direction: column; color: #fff; background: #17376f; }
.client-brand { display: flex; gap: 12px; align-items: center; padding: 24px 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.client-brand__logo { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.client-brand strong,.client-brand span { display: block; }
.client-brand span { margin-top: 2px; font-size: 12px; color: rgba(255,255,255,.72); }
.client-nav { flex: 1; padding: 16px 10px; overflow-y: auto; }
.client-nav__item { display: block; min-height: 44px; padding: 11px 14px; margin-bottom: 4px; border-radius: 8px; color: rgba(255,255,255,.78); text-decoration: none; font-size: 14px; font-weight: 600; }
.client-nav__item:hover,.client-nav__item:focus-visible { background: rgba(255,255,255,.1); color: #fff; }
.client-nav__item--active { background: rgba(255,255,255,.14); color: #fff; }
.client-sidebar__foot { padding: 16px 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.client-sidebar__foot .client-link-button { display: block; margin-top: 8px; color: #fff; }
.client-workspace { min-width: 0; margin-left: 224px; }
.client-mobile-header { display: none; }
.client-link-button { padding: 3px 0; border: 0; background: transparent; color: #2563c5; font: inherit; font-weight: 600; cursor: pointer; }
.client-icon-button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--navy); font: inherit; cursor: pointer; }
.client-btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 9px 16px; border: 1px solid #d9dfeb; border-radius: 8px; background: #fff; color: var(--navy); font: inherit; font-size: 13px; font-weight: 650; text-decoration: none; cursor: pointer; }
.client-btn--primary { border-color: #18396f; background: #18396f; color: #fff; }
.client-btn:disabled { cursor: not-allowed; opacity: .55; }
.client-text-link { color: #2563c5; text-decoration: none; font-weight: 600; }
.client-btn:focus-visible,.client-link-button:focus-visible,.client-icon-button:focus-visible,.client-nav__item:focus-visible,.client-text-link:focus-visible,.table-scroll:focus-visible { outline: 3px solid #71b7ff; outline-offset: 2px; }
.insight-filter { position: sticky; top: 0; z-index: 100; padding: 14px 20px; border-bottom: 1px solid #dfe4ed; background: rgba(255,255,255,.97); }
.period-tabs { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
.period-tabs label input { position: absolute; opacity: 0; pointer-events: none; }
.period-tabs label span { display: block; min-height: 40px; padding: 9px 14px; border: 1px solid #dfe4ed; border-radius: 7px; color: #586176; cursor: pointer; }
.period-tabs label input:checked + span { border-color: #17376f; background: #17376f; color: #fff; }
.period-tabs label input:focus-visible + span { outline: 3px solid #71b7ff; outline-offset: 2px; }
.filter-fields { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.filter-fields label { font-size: 11px; color: #667085; }
.filter-fields input,.filter-fields select { width: 100%; min-height: 38px; margin-top: 3px; padding: 7px 9px; border: 1px solid #dfe4ed; border-radius: 7px; background: #fff; color: #17223b; font: inherit; }
.filter-fields input:focus,.filter-fields select:focus { outline: 3px solid rgba(37,99,197,.2); border-color: #2563c5; }
.filter-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.insight-main { padding: 0 20px 40px; }
.scope-strip { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 12px 4px; color: #697386; font-size: 12px; }
.scope-strip strong { color: #23304b; }
.insight-state { display: flex; justify-content: center; min-height: 220px; padding: 56px 20px; border: 1px solid #e1e6ef; border-radius: 10px; background: #fff; text-align: center; }
.insight-state[hidden],.insight-view[hidden] { display: none; }
.insight-state--error strong,.insight-state--empty strong { display: block; margin-bottom: 8px; font-size: 18px; }
.insight-state--error p,.insight-state--empty p { margin-bottom: 16px; color: #667085; }
.insight-view { min-width: 0; }
.insight-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 14px 2px 12px; }
.insight-heading h1 { font-size: 22px; line-height: 1.25; color: #101b37; }
.insight-heading h1:focus { outline: none; }
.eyebrow { margin-bottom: 3px; color: #2563c5; font-size: 12px; font-weight: 700; }
.overview-grid { display: grid; grid-template-columns: minmax(210px,.75fr) 1.2fr 1.45fr; border: 1px solid #e1e6ef; border-radius: 10px; background: #fff; }
.metric-card { min-width: 0; padding: 24px; border-right: 1px solid #e1e6ef; }
.metric-card:last-child { border-right: 0; }
.metric-card h2,.data-panel h2 { margin-bottom: 12px; color: #18233d; font-size: 15px; }
.metric-score { margin: 30px 0 22px; color: #17376f; line-height: 1; }
.metric-score span { font-size: clamp(44px, 5vw, 68px); font-weight: 800; letter-spacing: -3px; }
.metric-score small { margin-left: 8px; color: #7b8496; font-size: 13px; letter-spacing: 0; }
.dimension-summary { display: grid; gap: 10px; }
.dimension-row { display: grid; grid-template-columns: 44px 1fr 34px; gap: 8px; align-items: center; font-size: 12px; }
.dimension-row progress { width: 100%; height: 8px; accent-color: #2b62bd; }
.summary-list { display: grid; gap: 10px; margin: 0 0 14px 18px; color: #344054; font-size: 13px; }
.split-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.data-panel { min-width: 0; margin-top: 12px; padding: 16px; border: 1px solid #e1e6ef; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.02); }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-note { color: #7b8496; font-size: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; color: #26324b; font-size: 12px; }
th,td { padding: 10px 8px; border-bottom: 1px solid #e7eaf0; text-align: left; white-space: nowrap; }
th { color: #667085; font-weight: 600; }
tbody tr:hover { background: #f7f9fd; }
.rank-table td:nth-child(4) { color: #184ca0; font-size: 15px; font-weight: 700; }
.insufficient-list { display: flex; flex-wrap: wrap; gap: 8px; color: #697386; font-size: 13px; }
.insufficient-item { padding: 8px 10px; border-radius: 7px; background: #f3f5f8; }
.dimension-ranking { display: grid; gap: 10px; }
.dimension-detail { display: grid; grid-template-columns: 32px 120px 1fr minmax(120px,2fr); gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid #edf0f5; }
.dimension-detail progress { width: 100%; accent-color: #2b62bd; }
.opportunity-list { display: grid; }
.opportunity-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 14px 2px; border-bottom: 1px solid #e7eaf0; }
.opportunity-item__rank { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 5px; background: #17376f; color: #fff; font-weight: 700; }
.opportunity-item p { margin-top: 4px; color: #667085; font-size: 12px; }
.empty-explained { padding: 48px 28px; text-align: center; }
.empty-explained p { max-width: 620px; margin: 0 auto 18px; color: #667085; }
.client-dialog { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(10,20,42,.55); }
.client-dialog[hidden] { display: none; }
.client-dialog__panel { width: min(680px,100%); max-height: 78vh; overflow-y: auto; padding: 22px; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.evidence-row { display: block; padding: 11px 4px; border-bottom: 1px solid #e8ebf1; color: #214f9c; text-decoration: none; }
.legacy-client-page > .navbar,.legacy-client-page > .tabbar { display: none; }
.legacy-client-page > .container { max-width: none; margin: 0 0 0 224px; padding: 24px 24px 48px; }
.legacy-client-mobile-header { display: none; margin-left: 224px; }

@media (max-width: 1120px) {
  .filter-fields { grid-template-columns: repeat(4,minmax(120px,1fr)); }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:last-child { grid-column: 1 / -1; border-top: 1px solid #e1e6ef; }
  .split-panels { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .client-sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 40px rgba(0,0,0,.18); }
  .client-sidebar--open { transform: translateX(0); }
  .client-workspace { margin-left: 0; }
  .client-mobile-header { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #e1e6ef; background: #fff; }
  .insight-filter { position: static; }
  .filter-fields { grid-template-columns: repeat(3,minmax(120px,1fr)); }
  .legacy-client-page > .container { margin-left: 0; }
  .legacy-client-mobile-header { display: flex; margin-left: 0; }
}
@media (max-width: 680px) {
  .filter-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-actions { justify-content: stretch; flex-wrap: wrap; }
  .filter-actions .client-btn { flex: 1; }
  .insight-main { padding-inline: 12px; }
  .overview-grid { grid-template-columns: 1fr; }
  .metric-card { border-right: 0; border-bottom: 1px solid #e1e6ef; }
  .metric-card:last-child { grid-column: auto; border-bottom: 0; }
  .scope-strip { overflow-x: auto; flex-wrap: nowrap; }
  .scope-strip span { flex: 0 0 auto; }
  .dimension-detail { grid-template-columns: 28px 92px 1fr; }
  .dimension-detail progress { grid-column: 2 / -1; }
  .opportunity-item { grid-template-columns: 28px 1fr; }
  .opportunity-item .client-link-button { grid-column: 2; justify-self: start; }
}

/* ===== 图片上传 ===== */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.upload-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
}

.upload-item img,
.upload-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-item__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-add {
  aspect-ratio: 1;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  background: var(--bg);
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-overlay--top {
  align-items: flex-start;
  overflow-y: auto;
}

.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
}

.modal--wide { max-width: 600px; }

.modal__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal__body {
  margin-bottom: 24px;
}

.modal__body--scroll { max-height: 60vh; overflow-y: auto; }
.modal__body--tall-scroll { max-height: 75vh; overflow-y: auto; }

.modal__footer {
  display: flex;
  gap: 12px;
}

.modal__footer .btn {
  flex: 1;
}
