/* =====================================================
   悦见无障碍-测评数据库 - 科技美学明亮版
   主题：明亮科技 · 磨砂玻璃 · 霓虹渐变 · 极简未来
   ===================================================== */

:root {
  /* ── 科技明亮背景色 ── */
  --bg-base:          #f6f8fc;
  --bg-card:          rgba(255, 255, 255, 0.72);
  --bg-elevated:      rgba(248, 250, 252, 0.65);
  --bg-hover:         rgba(241, 245, 249, 0.85);

  /* ── 主色彩系 (科技靛蓝 / 霓虹青) ── */
  --primary:          #005fa5; /* 悦尔蓝 */
  --primary-dark:     #00467f;
  --primary-light:    #e6f0f7;
  --primary-dim:      rgba(0, 95, 165, 0.08);
  --primary-glow:     rgba(0, 95, 165, 0.16);

  --accent:           #0d7ec2; /* 悦尔亮蓝 */
  --accent-light:     #ecfeff;
  --accent-dim:       rgba(6, 182, 212, 0.08);

  /* ── 状态语义色 (科技温和版) ── */
  --pass:             #10b981; /* 翡翠绿 */
  --pass-color:       #10b981;
  --pass-bg:          rgba(16, 185, 129, 0.08);
  --pass-border:      rgba(16, 185, 129, 0.22);

  --fail:             #ef4444; /* 珊瑚红 */
  --fail-color:       #ef4444;
  --fail-bg:          rgba(239, 68, 68, 0.08);
  --fail-border:      rgba(239, 68, 68, 0.22);

  --warn:             #f59e0b; /* 琥珀金 */
  --warn-bg:          rgba(245, 158, 11, 0.08);
  --warn-border:      rgba(245, 158, 11, 0.22);

  --na-color:         #9a6700; /* 深琥珀：不适用 */
  --na-bg:            rgba(202, 138, 4, 0.12);
  --na-border:        rgba(161, 98, 7, 0.34);

  /* ── 文本颜色 ── */
  --text-primary:     #0f172a; /* 深黛 */
  --text-secondary:   #334155; /* 铁灰 */
  --text-muted:       #64748b; /* 烟灰 */
  --text-on-primary:  #ffffff;

  /* ── 细腻边框 ── */
  --border:           rgba(226, 232, 240, 0.8);
  --border-strong:    rgba(203, 213, 225, 0.9);
  --border-focus:     var(--primary);

  /* ── 字体设计 ── */
  --font-ui:          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Lantinghei SC", "Microsoft YaHei", sans-serif;
  --font-num:         'Tabular', 'SF Mono', 'Fira Code', monospace;

  /* ── 科技圆角 ── */
  --r-sm:             8px;
  --r-md:             12px;
  --r-lg:             16px;
  --r-xl:             24px;

  /* ── 霓虹光感阴影 ── */
  --shadow-xs:        0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-sm:        0 8px 20px rgba(99, 102, 241, 0.04);
  --shadow-md:        0 12px 30px rgba(99, 102, 241, 0.07);
  --shadow-lg:        0 20px 48px rgba(99, 102, 241, 0.12);

  /* ── 缓动过渡 ── */
  --ease:             cubic-bezier(0.25, 1, 0.5, 1);
  --transition:       all 0.28s var(--ease);
}

/* ════════════════════════
   Reset & Scrollbar
   ════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.15); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.45); }
* { scrollbar-width: thin; scrollbar-color: rgba(99, 102, 241, 0.15) transparent; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ════════════════════════
   Body background & Mesh Gradients
   ════════════════════════ */
body {
  background-color: #f8fafc;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════
   Layout
   ════════════════════════ */
.app-container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 24px 100px;
  position: relative;
  z-index: 10;
}

/* ════════════════════════
   Header (Floating bar)
   ════════════════════════ */
.app-header {
  background: #ffffff;
  margin: 16px 0 24px;
  padding: 16px 28px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.header-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.org-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.02));
}

.header-title {
  flex: 2;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-datetime {
  font-family: var(--font-num);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(226, 232, 240, 0.6);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  white-space: nowrap;
}

/* ════════════════════════
   Section Card (Glassmorphism)
   ════════════════════════ */
.glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}
.glass-card:hover {
  box-shadow: 0 4px 12px rgba(0,95,165,0.08);
  border-color: #cce0ef;
  transform: translateY(-1px);
}

/* ════════════════════════
   Section Title
   ════════════════════════ */
.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border);
  letter-spacing: -0.01em;
}
.section-title i {
  color: var(--primary);
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
  filter: drop-shadow(0 2px 4px var(--primary-glow));
}

/* ════════════════════════
   Upload Panel (Admin)
   ════════════════════════ */
.upload-section { margin-top: 0; }
.upload-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding-bottom: 12px;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.28s;
}
.upload-section-header:hover { opacity: 0.85; }
.upload-section-header[aria-expanded="false"] {
  border-bottom-color: var(--border);
  padding-bottom: 0;
}
.upload-chevron {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}
.upload-section-header[aria-expanded="false"] .upload-chevron {
  transform: rotate(180deg);
}

.upload-panel-body {
  overflow: hidden;
  max-height: 1200px;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 1;
  padding-top: 16px;
}
.upload-panel-body.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 680px) { .upload-grid { grid-template-columns: 1fr; } }

.dropzone-box {
  border: 2px dashed rgba(99, 102, 241, 0.25);
  border-radius: var(--r-md);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: var(--transition);
  user-select: none;
}
.dropzone-box:hover,
.dropzone-box.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.04);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}
.dropzone-box.has-file {
  border-color: var(--pass);
  border-style: solid;
  background: rgba(16, 185, 129, 0.04);
}

.icon-drop {
  font-size: 1.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
  transition: var(--transition);
}
.dropzone-box:hover .icon-drop { color: var(--primary); transform: translateY(-3px); }
.dropzone-box.has-file .icon-drop { color: var(--pass); }

.dropzone-content h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.dropzone-content p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.file-info {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--pass);
  background: white;
  border: 1px solid var(--pass-border);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
  animation: fadeUp 0.3s var(--ease);
  flex-wrap: wrap;
  position: relative;
}

.file-info-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
  position: relative;
  pointer-events: auto;
}
.file-info-toggle {
  color: var(--primary);
  cursor: pointer;
  font-size: 0.85em;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}
.file-info-summary:hover .file-info-toggle { opacity: 1; }

.file-name-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  min-width: 260px;
  max-width: 420px;
  max-height: 280px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--pass-border, #a7f3d0);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  padding: 10px 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
}
.file-name-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.file-name-tooltip.file-name-tooltip-fixed {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
}
.file-name-tooltip-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--pass);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.file-name-tooltip-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.file-name-tooltip-list li {
  font-size: 0.78rem;
  color: var(--text-primary, #0f172a);
  line-height: 1.7;
  padding: 2px 4px;
  border-radius: 4px;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 6px;
}
.file-name-tooltip-list li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pass);
  flex-shrink: 0;
}
.file-name-tooltip-list li:hover {
  background: #f8fafc;
}

/* ════════════════════════
   Meta Form (Admin options)
   ════════════════════════ */
.meta-form-section {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
}
.meta-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
}
.meta-form-header:hover { background: rgba(99, 102, 241, 0.04); color: var(--primary); }
.meta-form-header i { color: var(--primary); margin-right: 4px; }
.meta-form-section.expanded .meta-form-header {
  border-bottom: 1px solid var(--border);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.04);
}
.meta-optional-tag {
  font-size: 0.73rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}
.meta-chevron {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease);
}
.meta-form-section.expanded .meta-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.meta-form-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.meta-form-section.expanded .meta-form-body { max-height: 800px; }

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
}
@media (max-width: 768px) { .meta-grid { grid-template-columns: 1fr; } }

.meta-field { display: flex; flex-direction: column; gap: 8px; }
.meta-field-full { grid-column: 1 / -1; }

.meta-field label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.meta-field input,
.meta-field textarea {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-primary);
  background: rgba(236, 253, 245, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 20px;
  outline: none;
  transition: var(--transition);
  resize: vertical;
}
.meta-field input:focus,
.meta-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
  background: #f7fffb;
}
.meta-field div {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
}

.action-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  gap: 12px;
}

/* ════════════════════════
   Buttons (High tech style)
   ════════════════════════ */
.btn {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.22);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.38);
  transform: translateY(-1.5px);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); box-shadow: var(--shadow-xs); }
.btn-primary:disabled {
  background: #e2e8f0;
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-accent {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.16);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.22);
  transform: translateY(-1.5px);
}

/* ════════════════════════
   Metrics Grid (Frosted tech metrics)
   ════════════════════════ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 1000px) { .metrics-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px)  { .metrics-grid { grid-template-columns: 1fr; } }

.metric-card {
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  min-height: 140px;
}
.metric-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s;
}
.metric-card:hover::after {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.metric-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: calc(100% - 46px);
}
.metric-icon {
  font-size: 1.15rem;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.metric-icon.purple { color: #6366f1; background: rgba(99, 102, 241, 0.08); border: 1px solid rgba(99, 102, 241, 0.15); }
.metric-icon.blue   { color: #0ea5e9; background: rgba(14, 165, 233, 0.08); border: 1px solid rgba(14, 165, 233, 0.15); }
.metric-icon.green  { color: var(--pass); background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.15); }
.metric-icon.gold   { color: #d97706; background: rgba(217, 119, 6, 0.08); border: 1px solid rgba(217, 119, 6, 0.15); }

.metric-value {
  font-family: var(--font-ui);
  font-size: 2.1rem;
  font-weight: 850;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.metric-footer {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ════════════════════════
   Data Leaderboard & Rank Cards
   ════════════════════════ */
.rankings-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* 🏆 无障碍测评数据展示 */
.data-source-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.data-source-overview.many-stations {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .data-source-overview,
  .data-source-overview.many-stations {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ──────────────────────────────────────────────
   Admin 端表格视图
   统一使用表格展示站点数据,列宽均衡、支持排序
   ────────────────────────────────────────────── */
.data-source-overview.list-mode {
  grid-template-columns: 1fr;
  gap: 0;
  display: block;
}
.data-source-overview.list-mode .station-table {
  margin: 0;
  width: 100%;
}

.station-table {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border, #e2e8f0);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.station-table.station-table-visitor table {
  min-width: 980px;
}
.station-table.station-table-visitor .col-name { width: 22%; }
.station-table.station-table-visitor .col-date { width: 14%; }
.station-table.station-table-visitor .col-num  { width: 16%; text-align: center; }
.station-table.station-table-visitor .col-index {
  width: 60px;
  text-align: left;
  padding-left: 16px !important;
}
.station-table.station-table-visitor .col-index .rank-badge {
  margin: 0;
}
.station-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 960px;
}
.station-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  color: var(--text-secondary, #475569);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 13px 10px;
  text-align: left;
  border-bottom: 2px solid var(--border, #e2e8f0);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.station-table tbody td {
  padding: 12px 10px;
  font-size: 0.84rem;
  color: var(--text-primary, #0f172a);
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease;
}
.station-table tbody tr:last-child td {
  border-bottom: none;
}
.station-table tbody tr {
  cursor: pointer;
  animation: rowFadeIn 0.35s ease backwards;
}
.station-table tbody tr:hover td {
  background: #f5f7fb;
}
.station-table tbody tr.top-rank td {
  background: #fbfdff;
}
.station-table tbody tr.top-rank .col-name {
  font-weight: 600;
}

/* 行渐入动画 */
@keyframes rowFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 列宽分配（均衡） */
.station-table .col-checkbox { width: 44px; text-align: center; }
.station-table .col-index    { width: 60px; text-align: center; }
.station-table .col-name     { width: 20%; }
.station-table .col-date     { width: 13%; }

/* 游客端序号列样式已合并到上方 .station-table.station-table-visitor 选择器中
   (此处保留为空以避免重复定义) */
.station-table .col-num      { width: 11%; text-align: center; }
.station-table .col-action   { width: 64px; text-align: center; }

/* 排名徽章 */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted, #94a3b8);
  background: #f1f5f9;
}
.rank-badge.rank-1 { color: #fff; background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35); }
.rank-badge.rank-2 { color: #fff; background: linear-gradient(135deg, #94a3b8, #64748b); box-shadow: 0 2px 8px rgba(100, 116, 139, 0.35); }
.rank-badge.rank-3 { color: #fff; background: linear-gradient(135deg, #d97706, #b45309); box-shadow: 0 2px 8px rgba(180, 83, 9, 0.35); }

/* 达标/不达标计数 pill */
.metric-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.pass-pill { color: #059669; background: #ecfdf5; border: 1px solid #a7f3d0; }
.fail-pill { color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; }

/* 设置率 / 达标率 进度条单元格 */
.rate-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.rate-bar {
  flex: 1;
  max-width: 70px;
  height: 6px;
  border-radius: 3px;
  background: #eef2f7;
  overflow: hidden;
}
.rate-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.rate-bar-fill.bar-full {
  background: linear-gradient(90deg, #10b981, #34d399);
}
.rate-text {
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 42px;
  text-align: left;
}
.rate-text.rate-pass { color: var(--pass, #10b981); }
.rate-text.rate-warn { color: var(--warn, #f59e0b); }

/* 可排序表头 */
.station-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.station-table th.sortable:hover {
  color: var(--primary, #4f46e5);
  background: #eef2ff;
}
.station-table th.sortable .sort-icon-inactive {
  margin-left: 4px;
  opacity: 0.35;
  font-size: 0.7rem;
  transition: opacity 0.15s ease;
}
.station-table th.sortable:hover .sort-icon-inactive {
  opacity: 0.7;
}
.station-table th.sortable .sort-icon-active {
  margin-left: 4px;
  color: var(--primary, #4f46e5);
  font-size: 0.75rem;
}

/* 操作按钮 */
.table-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.18s cubic-bezier(0.25, 1, 0.5, 1);
  background: transparent;
}
.table-btn-pub {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}
.table-btn-pub:hover {
  background: rgba(37, 99, 235, 0.16);
  transform: scale(1.08);
}
.table-btn-pub.published {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  cursor: default;
}
.table-btn-del {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.18);
}
.table-btn-del:hover {
  background: rgba(220, 38, 38, 0.16);
  transform: scale(1.08);
}

.station-table input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--primary, #4f46e5);
}

/* 表格分页控件 */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border, #e2e8f0);
  background: #f8fafc;
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.pagination-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary, #475569);
}
.pagination-total {
  font-weight: 600;
}
.pagination-page-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary, #475569);
}
.pagination-page-size select {
  padding: 4px 8px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  background: #fff;
  font-size: 0.82rem;
  color: var(--text-primary, #0f172a);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}
.pagination-page-size select:hover,
.pagination-page-size select:focus {
  border-color: var(--primary, #4f46e5);
}
.pagination-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pagination-info {
  font-size: 0.82rem;
  color: var(--text-secondary, #475569);
  font-weight: 500;
  min-width: 70px;
  text-align: center;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  color: var(--text-primary, #0f172a);
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.15s ease;
}
.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary, #4f46e5);
  color: var(--primary, #4f46e5);
  background: #eef2ff;
}
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Leaderboard chip */
.overview-chip {
  background: var(--card-custom-bg, rgba(255, 255, 255, 0.45));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid var(--card-custom-border, rgba(255, 255, 255, 0.4));
  border-radius: var(--r-md);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.01),
    0 1px 3px rgba(0, 0, 0, 0.005);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: auto;
}

.overview-chip:hover {
  transform: translateY(-4px);
  background: var(--card-custom-hover-bg, rgba(255, 255, 255, 0.85));
  border-color: var(--card-custom-hover-border, rgba(99, 102, 241, 0.35));
  box-shadow: 
    0 18px 36px rgba(99, 102, 241, 0.08),
    0 0 16px var(--chip-accent-dim, rgba(99, 102, 241, 0.15));
}

.chip-rank-neon {
  font-family: var(--font-num);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-muted);
  text-shadow: 0 0 8px rgba(100, 116, 139, 0.15);
  min-width: 24px;
  text-align: left;
  transition: var(--transition);
}
.overview-chip:hover .chip-rank-neon {
  color: var(--chip-accent);
  text-shadow: 0 0 12px var(--chip-accent);
}
.chip-rank-neon.rank-1 { color: #f97316; font-weight: 700; }  /* 橙色 */
.chip-rank-neon.rank-2 { color: #3b82f6; font-weight: 700; }  /* 蓝色 */
.chip-rank-neon.rank-3 { color: #22c55e; font-weight: 700; }  /* 绿色 */
.chip-rank-neon.rank-4, .chip-rank-neon { color: #6b7280; font-weight: 700; }  /* 灰色及其他 */

.chip-main-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.chip-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.chip-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip-title i {
  color: var(--chip-accent, var(--primary));
  font-size: 0.95rem;
}

.chip-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: 0;
}

/* 游客端无 checkbox,左对齐无空白 */
.visitor-overview .chip-header-row {
  margin-left: 0;
}
.chip-rank-neon {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 24px;
}
.chip-station-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.chip-date {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 400;
}
.chip-stats-row {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.chip-stats-row .text-fail {
  color: #dc2626;
}
.chip-rates-row {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.chip-rates-row .rate-pass { color: var(--pass); font-weight: 700; }
.chip-rates-row .rate-warn { color: var(--warn); font-weight: 700; }
.rate-blue { color: #378ADD; font-weight: 700; }
.rate-green { color: #16a34a; font-weight: 700; }

.stat-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}
.stat-pill.pass {
  background: rgba(5, 150, 105, 0.1);
  color: #065f46;
  border: 1px solid rgba(5, 150, 105, 0.3);
}
.stat-pill.fail {
  background: rgba(185, 28, 28, 0.1);
  color: #991b1b;
  border: 1px solid rgba(185, 28, 28, 0.3);
}

.chip-dual-track {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.track-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.track-label-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  gap: 6px;
}
.track-label-row strong {
  font-family: var(--font-num);
}
.track-label-row:first-child strong {
  color: #378ADD;
}
.track-label-row:last-child strong {
  color: #16a34a;
}
.track-bar-container {
  height: 6px;
  background: rgba(226, 232, 240, 0.8);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.track-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.track-bar-fill.setting-glow {
  background: #1e293b;  /* 黑色 */
}
.track-bar-fill.compliance-glow {
  background: #16a34a;  /* 绿色 */
}

/* 默认只显示前12名 */
.data-source-overview:not(.expanded) .overview-chip:nth-child(n+13) {
  display: none !important;
}

.expand-btn-container {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 6px;
}
.btn-toggle-expand {
  background: white;
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  color: var(--primary);
  border-radius: 20px;
  padding: 8px 24px;
}

/* ════════════════════════
   Single Station Detail View
   ════════════════════════ */
.detail-view-container {
  display: none;
  padding-bottom: 110px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--r-xl);
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.05);
  padding: 36px;
  margin-bottom: 32px;
  animation: slideUp 0.4s var(--ease) forwards;
}
.detail-view-container.show {
  display: block;
}

.detail-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(226, 232, 240, 0.6);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.btn.btn-back-list {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.85rem;
  border-radius: 30px;
  padding: 8px 20px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 
    0 4px 14px rgba(79, 70, 229, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}
.btn.btn-back-list:hover {
  background: linear-gradient(135deg, #6366f1 0%, var(--primary-dark) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-3px) translateY(-1px);
  box-shadow: 
    0 6px 20px rgba(79, 70, 229, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: white;
}
.btn.btn-back-list:active {
  transform: translateX(-1px) translateY(0px);
  box-shadow: 
    0 2px 8px rgba(79, 70, 229, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.detail-station-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: 0.01em;
  text-align: center;
  width: 100%;
  margin: 0;
}

/* 细节网格 layout */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (max-width: 1080px) { .detail-grid { grid-template-columns: 1fr; } }

.glass-select {
  background: white;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 32px 8px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%234f46e5' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  box-shadow: var(--shadow-xs);
}
.glass-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.station-score-strip {
  display: flex;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 16px;
  overflow: hidden;
}
.sub-metric {
  flex: 1;
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sub-metric:last-child { border-right: none; }
.sub-metric span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.sub-metric strong {
  font-family: var(--font-num);
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.sub-metric strong.rate-pass { color: var(--pass); }
.sub-metric strong.rate-fail { color: var(--fail); }
.sub-metric strong.rate-warn { color: var(--warn); }

/* ════════════════════════
   Subjective Results Card
   ════════════════════════ */
.subjective-card {
  padding: 32px;
  text-align: center;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.8), rgba(248,250,252,0.5));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.subjective-card i {
  font-size: 2rem;
  color: var(--text-muted);
  background: rgba(99, 102, 241, 0.06);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 4px 10px rgba(99,102,241,0.03);
}

.detail-chart-wrapper {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 16px;
}
.detail-chart-container {
  height: 540px;
  width: 100%;
}

/* ════════════════════════
   Accordions (Dimension Accordion)
   ════════════════════════ */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
}
.accordion-item:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.03);
}
.accordion-item.active {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.06);
}

.accordion-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.accordion-header:hover { background: rgba(99, 102, 241, 0.03); }
.accordion-item.active .accordion-header {
  background: rgba(99, 102, 241, 0.04);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.accordion-header-left h3 {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-primary);
}
.accordion-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chevron-icon {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease);
}
.accordion-item.active .chevron-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.badge-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-status.set   { background: var(--pass-bg); color: var(--pass); border: 1px solid var(--pass-border); }
.badge-status.unset { background: var(--fail-bg);  color: var(--fail); border: 1px solid var(--fail-border); }
.badge-status.na    { background: var(--na-bg); color: var(--na-color); border: 1px solid var(--na-border); }

.accordion-rate {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.accordion-rate strong { color: var(--text-primary); font-weight: 700; }
.accordion-rate.rate-pass strong { color: var(--pass); }
.accordion-rate.rate-fail strong { color: var(--fail); }
.accordion-rate.rate-na { color: var(--na-color); font-weight: 700; }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.accordion-item.active .accordion-content { max-height: 3000px; }

.accordion-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(248, 250, 252, 0.5);
}

/* ════════════════════════
   Question Rows inside Accordion
   ════════════════════════ */
.q-row {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}
.q-row:hover { box-shadow: var(--shadow-sm); border-color: rgba(99, 102, 241, 0.2); }
.q-row-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.q-title { font-size: 0.95rem; line-height: 1.5; color: var(--text-primary); flex: 1; font-weight: 500; }
.q-title-label {
  display: inline-block;
  margin-right: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
}
.q-title-unified { font-size: 0.95rem; line-height: 1.5; font-weight: 500; }
.q-title-unified .q-title-label { font-size: 0.95rem; font-weight: 500; }
.q-title-unified .q-title-label-pass { color: var(--pass); }
.q-title-unified .q-title-label-fail { color: var(--fail); }
.q-title-unified .q-title-body { color: var(--text-primary); font-size: 0.95rem; font-weight: 500; }

.q-badge {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.q-badge.pass     { background: var(--pass-bg); color: var(--pass); border: 1px solid var(--pass-border); }
.q-badge.fail     { background: var(--fail-bg); color: var(--fail); border: 1px solid var(--fail-border); }
.q-badge.unfilled { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-border); }
.q-badge.na       { background: var(--na-bg); color: var(--na-color); border: 1px solid var(--na-border); }

.q-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  padding-top: 8px;
}
.q-source-record {
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  padding-top: 8px;
}
.q-source-record summary {
  width: fit-content;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}
.q-source-record[open] summary { margin-bottom: 8px; }
.q-source-record .q-details { border-top: 0; padding-top: 0; }
.na-description {
  padding: 12px 16px;
  color: var(--na-color);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.7;
}
.detail-item span {
  color: var(--text-muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.detail-item strong { color: var(--text-secondary); font-weight: 600; }
.detail-item strong.green { color: var(--pass); font-weight: 700; }
.detail-item strong.red   { color: var(--fail); font-weight: 700; }

.q-comment {
  font-size: 0.9rem;
  color: #92400e;
  background: var(--warn-bg);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--warn);
  line-height: 1.5;
}

.q-images { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.media-image-button {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.media-video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--primary);
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
}
.media-video-link:hover { border-color: var(--primary); background: var(--primary-soft); }
.thumbnail-img {
  width: 58px;
  height: 58px;
  border-radius: var(--r-sm);
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.thumbnail-img:hover {
  transform: scale(1.08);
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ════════════════════════
   Key Issues list (Right Side)
   ════════════════════════ */
.key-issues-filter {
  display: flex;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(255,255,255,0.45);
}
.key-issues-filter span {
  flex: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 12px 16px;
  font-size: 0.95rem;
  text-align: center;
  font-weight: 700;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}
.key-issues-filter span:last-child { border-right: none; }
.key-issues-filter span:hover { background: rgba(99, 102, 241, 0.04); color: var(--primary); }
.key-issues-filter span.active-filter {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.issues-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 720px;
  overflow-y: auto;
  padding-right: 4px;
}

.issue-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
  border-left: 4px solid var(--fail);
}
.issue-card:hover {
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.05);
  transform: translateX(3px);
  border-color: rgba(239, 68, 68, 0.25);
}

.issue-tag {
  align-self: flex-start;
  font-size: 0.78rem;
  background: var(--fail-bg);
  color: var(--fail);
  border: 1px solid var(--fail-border);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
}
.issue-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
}
.issue-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}
.issue-images { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.issue-img {
  width: 68px;
  height: 68px;
  border-radius: var(--r-sm);
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.issue-img:hover {
  border-color: var(--primary);
  transform: scale(1.08);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ════════════════════════
   Sticky Action Bar (Footer Panel)
   ════════════════════════ */
.sticky-action-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: auto;
  min-width: 280px;
  animation: barSlideUp 0.45s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes barSlideUp {
  from { transform: translateX(-50%) translateY(80px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.sticky-bar-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sticky-bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.report-time-label {
  font-size: 0.77rem;
  color: var(--text-muted);
  white-space: nowrap;
  border: 1px solid rgba(226, 232, 240, 0.6);
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
}
.report-time-label i { margin-right: 4px; color: var(--primary); }

/* ════════════════════════
   Lightbox Modal
   ════════════════════════ */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-modal.show { display: flex; }
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.8);
  backdrop-filter: blur(8px);
}
/* 通用居中确认弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: modalFadeIn 0.18s ease;
}
.modal-overlay[hidden] {
  display: none;
}
.modal-box {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  max-width: 520px;
  width: calc(100% - 40px);
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.22s cubic-bezier(0.25, 1, 0.5, 1);
}
.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0;
  padding: 18px 22px 12px;
  border-bottom: 1px solid #f1f5f9;
}
.modal-body {
  padding: 14px 22px 6px;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-primary, #0f172a);
}
.modal-body p {
  margin: 0 0 10px;
}
.modal-body ul {
  margin: 0 0 10px;
  padding: 8px 12px;
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.modal-body li {
  font-size: 0.85rem;
  color: #1e293b;
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
}
.modal-body li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary, #4f46e5);
  flex-shrink: 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid #f1f5f9;
  margin-top: 8px;
}
.modal-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.modal-btn-cancel {
  background: #ffffff;
  color: #475569;
  border-color: #cbd5e1;
}
.modal-btn-cancel:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.modal-btn-primary {
  background: var(--primary, #4f46e5);
  color: #ffffff;
}
.modal-btn-primary:hover {
  background: #4338ca;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lightbox-content-box {
  position: relative;
  max-width: 820px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2002;
}
.lightbox-close {
  position: absolute;
  top: -50px; right: 0;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 1.2rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }
.lightbox-image-wrapper {
  background: white;
  border-radius: var(--r-lg);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.lightbox-image-wrapper img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.lightbox-image-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.lightbox-side-nav {
  flex-shrink: 0;
  padding: 8px 12px;
  min-width: 40px;
  justify-content: center;
}
.lightbox-controls {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.btn-ctrl {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: var(--r-sm);
  color: white;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-ctrl:hover { background: rgba(255,255,255,0.28); }
.lightbox-caption {
  margin-top: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-align: center;
}

/* ════════════════════════
   Toast Messages
   ════════════════════════ */
.toast-container {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast-msg {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 14px 20px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 380px;
  color: var(--text-primary);
  animation: toastIn 0.35s cubic-bezier(0.16,1,0.3,1) forwards;
  font-size: 0.88rem;
  font-weight: 500;
  pointer-events: all;
}
@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.toast-msg.success { border-left-color: var(--pass); }
.toast-msg.error   { border-left-color: var(--fail); }
.toast-msg.warning { border-left-color: var(--warn); }
.toast-msg.success i { color: var(--pass); }
.toast-msg.error   i { color: var(--fail); }
.toast-msg.warning i { color: var(--warn); }
.toast-msg:not(.success):not(.error):not(.warning) i { color: var(--primary); }

/* ════════════════════════
   Ambient background glow spheres
   ════════════════════════ */
.glow-sphere {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  -webkit-filter: blur(140px);
  z-index: -1;
  opacity: 0.22;
  pointer-events: none;
  display: block;
}
.sphere-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(99, 102, 241, 0) 70%);
  top: -120px;
  left: -120px;
  animation: float1 24s ease-in-out infinite alternate;
}
.sphere-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(6, 182, 212, 0) 70%);
  bottom: -80px;
  right: -80px;
  animation: float2 28s ease-in-out infinite alternate;
}
.sphere-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.25) 0%, rgba(217, 70, 239, 0) 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float3 32s ease-in-out infinite alternate;
}

@keyframes float1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes float2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -50px) scale(1.08); }
}
@keyframes float3 {
  0% { transform: translate(-50%, -50%) translate(0, 0) scale(1); }
  100% { transform: translate(-50%, -50%) translate(-30px, 40px) scale(1.12); }
}

/* ════════════════════════
   Responsive
   ════════════════════════ */
@media (max-width: 768px) {
  .app-container { padding: 0 14px 28px; }
  .glass-card { padding: 18px; }
  /* 页头移动端：标题独占第二行整行居中，避免三栏挤压导致逐字折行 */
  .app-header {
    flex-wrap: wrap; row-gap: 6px;
    padding: 12px 14px; margin: 10px 0 16px;
  }
  .header-left, .header-right { flex: 1 1 auto; }
  .header-title {
    flex: 1 1 100%; order: 3;
    text-align: center; white-space: nowrap;
    font-size: clamp(0.9rem, 4vw, 1.15rem);
  }
  .sticky-action-bar { min-width: calc(100vw - 20px); padding: 8px 12px; }
  .sticky-bar-right { gap: 6px; }
  .btn { padding: 8px 14px; font-size: 0.8rem; }
  .report-time-label { display: none; }
}

/* ════════════════════════
   Admin Login Panel & Modal
   ════════════════════════ */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(241, 245, 249, 0.35);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.35s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.login-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.02),
    0 30px 70px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
}
@keyframes scaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.login-logo {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.1);
  text-shadow: 0 2px 4px rgba(79, 70, 229, 0.15);
}

.login-title {
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.login-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.login-field {
  margin-bottom: 18px;
  text-align: left;
}
.login-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.login-field input {
  font-family: var(--font-ui);
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  outline: none;
  font-size: 0.88rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.5);
}
.login-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
  background: white;
}

.login-btn {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  border: none;
  color: white;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
  font-weight: 700;
}
.login-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #0891b2 100%);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
  transform: translateY(-1.5px);
}

/* Utility classes */
.hide { display: none !important; }
.text-danger { color: var(--fail) !important; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Compact Upload Row Styles ── */
.upload-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.compact-upload-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px dashed rgba(99, 102, 241, 0.25);
  border-radius: var(--r-md);
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  height: 48px;
  position: relative;
}

.compact-upload-box:hover,
.compact-upload-box.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.04);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.compact-upload-box.has-file {
  border-color: var(--pass);
  border-style: solid;
  background: rgba(16, 185, 129, 0.04);
}

.compact-upload-box .upload-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.compact-upload-box:hover .upload-icon {
  color: var(--primary);
  transform: translateY(-1px);
}

.compact-upload-box.has-file .upload-icon {
  color: var(--pass) !important;
}

.compact-upload-box .file-info {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--pass);
  display: inline;
  animation: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.qr-match-status {
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(245, 158, 11, .25);
  border-radius: 10px;
  background: rgba(245, 158, 11, .07);
  color: var(--text-secondary);
  font-size: .78rem;
  line-height: 1.6;
}
.qr-match-status.ok {
  border-color: rgba(16, 185, 129, .25);
  background: rgba(16, 185, 129, .07);
}
.qr-match-status strong { color: var(--text-primary); }
.qr-match-status .qr-status-line { display: inline-block; margin-right: 18px; }

/* ── Leaderboard Filters Styles ── */
.leaderboard-filters-wrapper {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.filters-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-group.search-group {
  flex: 1 1 calc(50% - 8px);
  min-width: 200px;
}

.filter-group.date-range-group {
  flex: 1 1 calc(50% - 8px);
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group .filter-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.88rem;
  pointer-events: none;
  transition: var(--transition);
  z-index: 2;
}

.filter-group:focus-within .filter-icon {
  color: var(--primary);
}

.glass-input {
  width: 100%;
  padding: 8px 14px 8px 38px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: white;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.glass-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.glass-select-filter {
  width: 100%;
  padding: 8px 32px 8px 38px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: white;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%234f46e5' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  box-shadow: var(--shadow-xs);
}

.glass-select-filter:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.glass-date-input {
  flex: 1;
  min-width: 0;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: white;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}

.glass-date-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

/* ════════════════════════
   Admin Password Modal
   ════════════════════════ */
.password-modal-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.1),
    0 10px 20px rgba(99, 102, 241, 0.05);
  width: 100%;
  max-width: 400px;
  z-index: 2001;
  overflow: hidden;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.password-modal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
  border-top-left-radius: var(--r-xl);
  border-top-right-radius: var(--r-xl);
}
.password-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.password-modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  transform: scale(1.05);
}
.password-modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.password-modal-logo {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: inline-block;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  padding: 12px;
  border-radius: 50%;
}
.password-modal-title {
  font-size: 1.2rem;
  font-weight: 850;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.password-modal-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.password-warning {
  color: var(--fail, #ef4444);
}

/* ============================================================
   二、主观题测评结果样式 (Subjective Results Visual Styling)
   ============================================================ */
.subjective-results-wrapper {
  padding: 12px 4px;
}

.subjective-v2 {
  --subjective-ink: #243b35;
  --subjective-green: #1f5d50;
  --subjective-clay: #d67c44;
  --subjective-paper: #f7f4ed;
  font-family: var(--font-ui);
}

.subjective-match-note {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--subjective-clay);
  background: #fff8ef;
  color: #6f4b31;
  font-size: 0.86rem;
  line-height: 1.7;
}

.cohort-summary .subj-summary-card {
  position: relative;
  overflow: hidden;
  background: var(--subjective-paper);
  border: 1px solid #ded9cd;
  box-shadow: none;
}

.cohort-summary .subj-summary-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--subjective-green);
}

.cohort-summary .cohort-disabled::before {
  background: var(--subjective-clay);
}

.cohort-count {
  color: #6d7773;
  font-size: 0.78rem;
  line-height: 1.5;
}

.subjective-chart-block {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #ded9cd;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(247,244,237,.92)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(31,93,80,.025) 31px 32px);
}

.subjective-chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}

.subjective-chart-heading h3 {
  margin: 3px 0 0;
  color: var(--subjective-ink);
  font-family: var(--font-ui);
  font-size: 1.08rem;
  letter-spacing: .02em;
}

.chart-kicker {
  color: var(--subjective-clay);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.chart-note {
  max-width: 360px;
  color: #6d7773;
  font-size: .76rem;
  line-height: 1.6;
  text-align: right;
}

.subjective-chart {
  width: 100%;
  height: 330px;
}

.awareness-chart {
  height: 300px;
}

@media (max-width: 760px) {
  .subjective-summary-row,
  .cohort-summary {
    grid-template-columns: 1fr;
  }
  .subjective-chart-heading {
    flex-direction: column;
    gap: 6px;
  }
  .chart-note { text-align: left; }
  .subjective-chart { height: 380px; }
}

.subjective-summary-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.subj-summary-card {
  background: var(--bg-elevated, rgba(255, 255, 255, 0.45));
  border: 1px solid var(--border, rgba(226, 232, 240, 0.8));
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subj-card-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.subj-card-val {
  font-size: 1.8rem;
  color: var(--text-primary);
}

.subj-card-val strong {
  font-weight: 850;
  font-family: var(--font-ui);
}

.subj-card-val .max-val {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.subj-card-val.text-cyan {
  color: var(--cyan-main, #06b6d4);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.subjective-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 768px) {
  .subjective-details-grid {
    grid-template-columns: 1fr;
  }
}

.subj-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--border, rgba(226, 232, 240, 0.8));
  border-radius: var(--r-sm);
  padding: 10px 14px;
  transition: all 0.25s ease;
}

.subj-detail-item:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(99, 102, 241, 0.18);
  transform: translateY(-1px);
}

.subj-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subj-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.subj-item-score {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.subj-item-score strong {
  color: var(--primary);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
}

.subj-item-bar-bg {
  height: 8px;
  background: var(--bg-hover, rgba(0, 0, 0, 0.04));
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.subj-item-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--cyan-main, #06b6d4) 100%);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

/* ============================================================
   三、测评基本情况表格样式 (Base Info Table)
   ============================================================ */
.detail-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  border: 1px solid var(--border, rgba(226, 232, 240, 0.8));
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-elevated, rgba(255, 255, 255, 0.45));
  box-shadow: var(--shadow-sm);
}

.detail-meta-table tr {
  border-bottom: 1px solid var(--border, rgba(226, 232, 240, 0.8));
}

.detail-meta-table tr:last-child {
  border-bottom: none;
}

.detail-meta-table td {
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--text-primary);
  vertical-align: middle;
  line-height: 1.6;
}

.detail-meta-table td.label {
  background: rgba(0, 0, 0, 0.02);
  font-weight: 700;
  color: var(--text-muted);
  width: 160px;
  white-space: nowrap;
  border-right: 1px solid var(--border, rgba(226, 232, 240, 0.8));
}

.tool-badge-container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.tool-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tool-badge-item.text-align-left {
  align-items: flex-start;
  gap: 8px;
}

.tool-badge-qr {
  height: 90px;
  width: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.tool-badge-qr:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   四、客观评测维度大类题目分布卡片样式 (Category Cards)
   ============================================================ */
.dim-distribution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.dim-distribution-card {
  display: block;
  padding: 10px 16px;
  background: var(--bg-elevated, rgba(255, 255, 255, 0.45));
  border: 1px solid var(--border, rgba(226, 232, 240, 0.8));
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
  line-height: 1.4;
  word-break: break-all;
}

.dim-distribution-card:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.dim-distribution-card .dot {
  color: var(--primary, #4f46e5);
  margin-right: 6px;
  font-weight: bold;
  display: inline-block;
}

.dim-distribution-card .count {
  margin-left: 6px;
  font-weight: 800;
  color: var(--primary, #4f46e5);
  font-family: var(--font-ui);
  display: inline-block;
  white-space: nowrap;
}

/* ============================================================
   五、多站对比排名与排行榜表格样式 (Comparison Grid & Rankings)
   ============================================================ */
.comparison-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.rankings-table-container {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated, rgba(255, 255, 255, 0.45));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.rankings-table-container h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.rankings-table th,
.rankings-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.rankings-table th {
  font-weight: 800;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.01);
}

.rankings-table tr {
  transition: background 0.2s ease;
}

.rankings-table tr:last-child td {
  border-bottom: none;
}

.rankings-table tr:hover td {
  background: rgba(99, 102, 241, 0.03);
}

.rankings-table td strong {
  font-family: var(--font-num);
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
}

.rankings-table td {
  color: var(--text-secondary);
}

.rankings-table td .text-glow {
  font-family: var(--font-num);
  font-weight: 700;
}

/* ════════ 报告管理与审核发布样式 ════════ */

/* 批量操作控制栏 */
.batch-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  animation: fadeInDown 0.3s ease;
  flex-wrap: wrap;
  gap: 16px;
}
.batch-action-bar[style*="display: none"] {
  display: none !important;
}

.batch-action-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

/* 全选复选框与文字 */
.batch-select-all-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.batch-select-all-label {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
  font-size: 0.95rem;
}

.selected-count-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-left: 1px solid var(--border);
  padding-left: 12px;
  margin-left: 4px;
}

.btn-batch-publish {
  padding: 8px 16px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* 卡片内部复选框与删除按钮 */
.card-select-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--primary);
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.card-select-checkbox:hover {
  opacity: 1;
  transform: scale(1.1);
}

.card-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  font-size: 0.85rem;
}

.card-delete-btn:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

/* 状态徽章 */
.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.status-badge.published {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.unpublished {
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* 卡片内日期旁的发布状态小图标(取代独立行的状态徽章) */
.chip-pub-icon {
  position: absolute;
  top: 14px;
  right: 46px; /* 留出删除按钮(28px) + 8px 间距 */
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.chip-pub-icon:hover {
  background: rgba(99, 102, 241, 0.08);
  transform: scale(1.15);
}
.chip-pub-icon.published {
  color: #10b981;
}
.chip-pub-icon.unpublished {
  color: #f59e0b;
}

/* 与日期括号保持视觉节奏:日期括号样式略调 */
.chip-date-inline {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* 场所类型分页标签(预留扩展) */
.venue-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 4px;
  flex-wrap: wrap;
}
.venue-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--border, rgba(226, 232, 240, 0.6));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-secondary, #64748b);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.venue-tab.active {
  background: var(--primary, #4f46e5);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

/* 场所面板 */
.venue-panel {
  display: none;
}
.venue-panel.active {
  display: block;
}

/* "更多场所"敬请期待样式 */
.venue-coming-soon {
  text-align: center;
  padding: 60px 20px;
}
.venue-coming-soon i {
  font-size: 3rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 16px;
  display: block;
}
.venue-coming-soon h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin-bottom: 8px;
}
.venue-coming-soon p {
  font-size: 0.92rem;
  color: var(--text-secondary, #64748b);
}

/* 动效 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-batch-delete:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35) !important;
}

.btn-batch-pdf {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: white !important;
  border: 1px solid transparent !important;
  padding: 8px 16px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.22);
  transition: all 0.2s ease;
  border-radius: 8px;
}
.btn-batch-pdf:hover:not(:disabled) {
  background: linear-gradient(135deg, #ea580c 0%, #d97706 100%) !important;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.38);
  transform: translateY(-1.5px);
}
.btn-batch-pdf:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.2);
}

.btn-batch-word {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: white !important;
  border: 1px solid transparent !important;
  padding: 8px 16px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.22);
  transition: all 0.2s ease;
  border-radius: 8px;
}
.btn-batch-word:hover:not(:disabled) {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.38);
  transform: translateY(-1.5px);
}
.btn-batch-word:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

.btn-batch-export {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
  border: 1px solid transparent !important;
  padding: 8px 16px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.22);
  transition: all 0.2s ease;
  border-radius: 8px;
}
.btn-batch-export:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.38);
  transform: translateY(-1.5px);
}
.btn-batch-export:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

/* ═══ 概览面板（素养认知柱状图） v20260730 ═══ */
.overview-panel {
  display: block;
  margin-bottom: 18px;
}
.overview-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-block {
  border-radius: 14px;
  padding: 18px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-block:hover { transform: translateY(-2px); }
.stat-blue { background: linear-gradient(135deg, #005fa5, #0d7ec2); box-shadow: 0 4px 12px rgba(0,95,165,0.18); }
.stat-green { background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 4px 12px rgba(22,163,74,0.18); }
.stat-purple { background: linear-gradient(135deg, #7F77DD, #AFA9EC); box-shadow: 0 4px 12px rgba(127,119,221,0.20); }
.stat-orange { background: linear-gradient(135deg, #D85A30, #F0997B); box-shadow: 0 4px 12px rgba(216,90,48,0.20); }
.stat-cyan { background: linear-gradient(135deg, #0d7ec2, #378ADD); box-shadow: 0 4px 12px rgba(13,126,194,0.20); }
.stat-label { font-size: 0.78rem; opacity: 0.88; font-weight: 500; }
.stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; letter-spacing: 1px; }
.stat-value em { font-size: 0.82rem; font-weight: 500; opacity: 0.85; font-style: normal; margin-left: 2px; }
.overview-chart-card {
  background: var(--bg-primary, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 18px;
}
.overview-chart-header {
  display: flex; flex-direction: column; align-items: flex-start;
  margin-bottom: 8px;
}
.overview-chart-title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary, #0f172a); }
.overview-chart-note { font-size: 0.72rem; color: var(--text-muted, #94a3b8); margin-top: 4px; }
.overview-chart-box { width: 100%; height: 240px; }

/* ═══ 特别说明卡片 ═══ */
.special-notice-card {
  background: linear-gradient(135deg, rgba(0,95,165,0.04), rgba(0,95,165,0.01)) !important;
}
.special-notice-title {
  font-size: 0.95rem; font-weight: 700; color: var(--primary, #005fa5);
  margin-bottom: 8px;
}
.special-notice-card p { font-size: 0.82rem; color: var(--text-secondary, #64748b); line-height: 1.9; margin: 0; }
.special-notice-contact { margin-top: 10px; font-size: 0.82rem; color: var(--text-primary, #1e293b); }
.special-notice-contact strong { color: var(--primary, #005fa5); }

/* ═══ 底部通知条 ═══ */
.notice-bar { background: linear-gradient(135deg, rgba(0,95,165,0.05), rgba(0,95,165,0.02)) !important; border: 1px solid rgba(0,95,165,0.15) !important; }

/* ═══ 管理端浏览量统计 ═══ */
.viewstats-panel { margin-top: 16px; }
.viewstats-total {
  text-align: center; border-radius: 12px; padding: 20px; color: #fff;
  background: linear-gradient(135deg, #0d7ec2, #378ADD);
}
.viewstats-total-label { font-size: 0.78rem; opacity: 0.9; }
.viewstats-total-value { font-size: 2.1rem; font-weight: 700; margin-top: 6px; }
.viewstats-row { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; margin: 6px 0; }
.viewstats-row .vs-name { width: 70px; color: var(--text-secondary, #475569); }
.viewstats-row .vs-track { flex: 1; height: 8px; background: var(--bg-tertiary, #f1f5f9); border-radius: 4px; overflow: hidden; }
.viewstats-row .vs-fill { height: 100%; background: linear-gradient(90deg, #005fa5, #378ADD); border-radius: 4px; }
.viewstats-row .vs-val { color: #005fa5; font-weight: 700; min-width: 40px; text-align: right; }

/* v20260731 — 全视觉悦尔蓝重做：隐藏旧背景光球，锐化卡片视觉 */
.glow-sphere { display: none !important; }

/* ══════════════ 全国测评覆盖地图（游客首页） v20260827 ══════════════ */
.map-section {
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
/* 卡片淡光晕装饰：右上冷蓝、左下暖绿，非常克制的透明度 */
.map-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(0, 95, 165, 0.05), transparent 60%),
    radial-gradient(500px 260px at 10% 100%, rgba(16, 185, 129, 0.05), transparent 60%);
  pointer-events: none;
}
.map-section > * { position: relative; }
.map-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 4px;
}
.map-header .section-title { margin: 0; }
.map-badges { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.map-coverage-badge {
  font-size: 0.85rem; font-weight: 700; color: var(--pass, #10b981);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px; padding: 4px 14px; white-space: nowrap;
}
.map-legend {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-muted, #64748b);
  margin: 6px 0 0;
}
/* 地图 tooltip 内的同城多站列表行 */
.map-tooltip-station { padding: 7px 9px; border-radius: 8px; cursor: pointer; }
.map-tooltip-station:hover { background: rgba(0, 95, 165, 0.07); }
.map-tooltip-station + .map-tooltip-station { margin-top: 4px; }
.map-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.map-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.map-dot-on { background: var(--pass, #10b981); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
.map-dot-off { background: #c3cbd9; }
.china-map-container { width: 100%; height: clamp(320px, 56vw, 620px); }
.map-fallback {
  display: flex; align-items: center; justify-content: center;
  height: 220px; color: var(--text-muted, #64748b); font-size: 0.9rem;
}
@media (max-width: 640px) {
  .china-map-container { height: 340px; }
}

/* ══════════════ 访问统计（管理端报表 + 游客端徽章） v20260828 ══════════════ */
.visitstats-section { margin-bottom: 18px; }
.visitstats-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none; padding: 2px 0;
}
.visitstat-chevron { color: var(--text-muted, #64748b); transition: transform 0.25s ease; }
.visitstat-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 14px;
}
.visitstat-card {
  background: var(--bg-tertiary, #f8fafc);
  border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 14px; text-align: center;
}
.visitstat-num { font-size: 1.5rem; font-weight: 800; color: var(--primary, #005fa5); line-height: 1.2; }
.visitstat-label { font-size: 0.8rem; color: var(--text-muted, #64748b); margin-top: 2px; }
.visitstat-charts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 14px;
}
@media (max-width: 1100px) {
  .visitstat-charts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .visitstat-charts { grid-template-columns: 1fr; }
  .visitstat-cards { grid-template-columns: repeat(2, 1fr); }
  .report-upload-row .glass-input,
  .report-upload-row input[type="file"] { flex: 1 1 100%; }
  .report-asset-actions { width: 100%; }
}
.visitstat-chart-box { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; background: #fff; min-width: 0; }
.visitstat-chart-box.visitstat-wide { grid-column: 1 / -1; }
.visitstat-chart-title { font-size: 0.85rem; font-weight: 700; color: var(--text-secondary, #334155); margin: 0 0 6px; }
.visitstat-chart { width: 100%; height: 220px; }
.visitstat-stations { border-top: 1px dashed #e2e8f0; padding-top: 10px; }
/* 游客端徽章变体（蓝色，与点亮数徽章区分） */
.visit-badge {
  color: var(--primary, #005fa5);
  background: rgba(0, 95, 165, 0.07);
  border-color: rgba(0, 95, 165, 0.25);
}

/* ══════════════ 报告资料（管理端上传 + 游客端下载卡片） v20260828 ══════════════ */
.report-upload-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 14px;
}
.report-upload-row .glass-input { flex: 1 1 200px; }
.report-upload-row input[type="file"] {
  flex: 1 1 220px; font-size: 0.85rem; color: var(--text-secondary, #334155);
  border: 1px dashed #c7d2e2; border-radius: 10px; padding: 8px 10px; background: #fff;
}
.report-assets-list { display: flex; flex-direction: column; gap: 10px; }
.report-asset-empty, .report-download-empty {
  padding: 18px; text-align: center; color: var(--text-muted, #64748b); font-size: 0.85rem;
  border: 1px dashed #d8dfeb; border-radius: 10px;
}
.report-asset-row, .report-download-item {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; background: #fff;
}
.report-asset-icon, .report-download-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px;
  background: rgba(0, 95, 165, 0.08); color: var(--primary, #005fa5);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.report-download-icon { background: rgba(16, 185, 129, 0.1); color: #0f8a68; }
.report-asset-info, .report-download-info { flex: 1 1 auto; min-width: 0; }
.report-asset-title, .report-download-title { font-weight: 700; color: var(--text-secondary, #334155); font-size: 0.95rem; }
.report-asset-desc, .report-download-desc { font-size: 0.82rem; color: var(--text-muted, #64748b); margin-top: 2px; }
.report-asset-meta, .report-download-meta { font-size: 0.78rem; color: var(--text-muted, #64748b); margin-top: 3px; }
.report-asset-actions { display: flex; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.report-download-item { flex-wrap: wrap; }
.report-download-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #005fa5, #378ADD); color: #fff;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 0.9rem;
  text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 95, 165, 0.25);
}
.report-download-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 95, 165, 0.32); }
.report-download-list { display: flex; flex-direction: column; gap: 12px; }

/* ══════════════ 站点详情报告·移动端专属视图（≤640px） v20260828.3 ══════════════ */
@media (max-width: 640px) {
  /* 指标卡：单列过长改为 2 列紧凑 */
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
  .metric-card { padding: 14px 12px; min-height: 0; }
  .metric-value { font-size: 1.35rem; }

  /* 手风琴头：徽章+维度名一行可换行，达标率数字收窄 */
  .accordion-header { flex-wrap: wrap; row-gap: 4px; padding: 10px 12px; }
  .accordion-header-left { min-width: 0; flex-wrap: wrap; row-gap: 4px; }
  .accordion-header-left h3 { font-size: 0.95rem; word-break: break-word; }
  .accordion-rate { font-size: 0.78rem; }

  /* 题目行：状态徽章与长话术自然换行 */
  .q-row { padding: 10px; }
  .q-row-top { flex-wrap: wrap; row-gap: 4px; }
  .q-title, .q-title-unified .q-title-body { font-size: 0.88rem; word-break: break-word; }

  /* 现场照片：3 列方形网格（相册式），视频占一格 */
  .q-images, .issue-images {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  }
  .q-images .thumbnail-img, .issue-images .issue-img {
    width: 100%; height: auto; aspect-ratio: 1 / 1;
  }
  .q-images .thumbnail-img:hover, .issue-images .issue-img:hover { transform: none; }
  .q-images .media-video-link, .issue-images .media-video-link {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; aspect-ratio: 1 / 1; padding: 6px; font-size: 0.8rem; text-align: center;
  }

  /* 问题卡与灯箱：防溢出 */
  .issue-card { padding: 12px; }
  .issue-card h4 { font-size: 0.9rem; word-break: break-word; }
  #lightboxImg { max-width: 94vw; max-height: 74vh; object-fit: contain; }
}

/* ══════════════ 移动端浏览建议提示条（仅窄屏，常驻） v20260828.6 ══════════════ */
.mobile-browse-hint {
  display: none; /* JS 判定为窄屏后才以 flex 显示 */
  align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: rgba(0, 95, 165, 0.06);
  border: 1px solid rgba(0, 95, 165, 0.18);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 14px;
  font-size: 0.85rem; color: var(--text-secondary, #334155);
  line-height: 1.5;
}
.mobile-browse-hint > i { color: var(--primary, #005fa5); margin-top: 2px; }
.mobile-browse-hint b { color: var(--primary, #005fa5); }

/* ══════════════ 页脚版权（访客端最底部） v20260828.8 ══════════════ */
.site-footer {
  margin: 28px 0 0;
  padding: 16px 14px 34px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}
.site-footer p {
  margin: 0; font-size: 0.78rem; color: var(--text-muted, #94a3b8); line-height: 1.8;
}
.site-footer a { color: var(--text-muted, #94a3b8); text-decoration: none; }
.site-footer a:hover { color: var(--primary, #005fa5); text-decoration: underline; }
