:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #86868b;
  --primary: #0071e3;
  --primary-dark: #0058b0;
  --primary-soft: #e8f1fd;
  --border: #d2d2d7;
  --success: #e8f5e9;
  --success-text: #1b873f;
  --error: #fce8e8;
  --error-text: #de3730;
  --shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: color .2s;
  background: var(--bg);
  color: var(--text);
}
body.admin-page {
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(251,251,253,0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.brand-title { font-weight: 600; font-size: 21px; color: #1d1d1f; letter-spacing: -0.01em; }
.brand-subtitle { font-size: 12px; color: #86868b; margin-top: 2px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  padding: 6px 14px;
  border-radius: 980px;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 400;
  transition: background .2s, color .2s;
}
.nav a:hover {
  background: rgba(0,0,0,0.04);
  color: #0071e3;
}

.container {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px;
}
.admin-container {
  width: min(1760px, calc(100vw - 24px));
  max-width: 1760px;
  padding: 20px 12px 28px;
}

.container.admin-container {
  width: min(1760px, calc(100vw - 24px));
  max-width: 1760px;
  margin: 0 auto;
  padding: 20px 12px 28px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.admin-sidebar {
  position: sticky;
  top: 72px;
  padding: 12px 16px;
  margin-right: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}
.admin-main,
.admin-main.shell-main,
#log-panel,
#log-panel .card,
#log-panel .table-wrap,
#log-panel .data-table,
#log-panel .audit-filter-toolbar,
#log-panel .pagination-bar {
  width: 100%;
  max-width: none;
}

.card {
  background: rgba(255,255,255,0.72);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  padding: 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}
.hero h1 { margin: 8px 0 12px; font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; color: #1d1d1f; }
.hero p { color: #86868b; font-size: 15px; line-height: 1.6; }
.hero-side { display: grid; gap: 14px; }
.mobile-note, .admin-note {
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 20px;
  color: #1d1d1f;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: transparent;
  color: #0071e3;
  font-size: 12px;
  border-radius: 980px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-grid { grid-template-columns: 1fr 1fr; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: rgba(255,255,255,0.72);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.stat-label { color: #86868b; font-size: 12px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.02em; }
.stat-number { font-size: 40px; font-weight: 600; color: #1d1d1f; letter-spacing: -0.03em; }

.feature-list { display: grid; gap: 14px; }
.feature-list.compact-list { gap: 12px; }
.feature-item {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
}
.feature-item h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: #1d1d1f; }
.feature-item p { margin: 0; color: var(--muted); line-height: 1.7; }

.quick-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 20px; }
.quick-link {
  padding: 12px 16px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 980px;
  background: #e8e8ed;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 400;
  transition: background .2s;
}
.btn:hover { background: #dcdce0; }
.btn.primary {
  background: #0071e3;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,113,227,0.3);
}
.btn.primary:hover { background: #0077ed; transform: scale(1.01); }
.btn.full { width: 100%; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.auth-wrapper {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card { max-width: 460px; width: 100%; }

.form-grid { display: grid; gap: 14px; }
label span { display: block; margin-bottom: 4px; font-weight: 600; font-size: 13px; color: #1d1d1f; }
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  font-size: 15px;
  outline: none;
}
select[multiple] {
  min-height: 130px;
}
input:focus, textarea:focus, select:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.alert {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-weight: 700;
}
.alert.success { background: #e8f5e9; color: #1b873f; }
.alert.error { background: #fce8e8; color: #de3730; }

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  
}
.dashboard-head p { color: var(--muted); line-height: 1.7; }

.mobile-first { position: relative; overflow: hidden; }
.mobile-panel {
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  padding: 18px;
}
.status-chip {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f5e9;
  color: #1b873f;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.mobile-panel p, .mobile-panel li { color: #1d1d1f; line-height: 1.8; }

.user-list, .child-mobile-list, .class-card-grid { display: grid; gap: 12px; }
.child-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
}

.child-item-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.user-row-stack { align-items: flex-start; }
.action-col {
  display: grid;
  gap: 10px;
  width: min(360px, 100%);
}
.action-col.compact-actions {
  width: 320px;
}
.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.reset-form input { min-width: 0; }

.class-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
}

.class-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.class-card h3 { margin: 0 0 8px; }
.class-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #424245;
  font-size: 14px;
  margin: 10px 0;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status-badge.ok { background: #e8f5e9; color: #1b873f; }
.status-badge.off { background: #fce8e8; color: #de3730; }
.status-badge.warn { background: #fff8e1; color: #f09300; }
.status-badge.info { background: #e8f1fd; color: #0071e3; }
.vest-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.vest-badge.yellow {
  background: #fff3bf;
  color: #9a6700;
}
.vest-badge.green {
  background: #dcfce7;
  color: #166534;
}
.vest-badge.red {
  background: #fee2e2;
  color: #b91c1c;
}

.table-wrap {
  overflow-x: auto;
  width: 100%;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}
.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
  vertical-align: top;
  background-clip: padding-box;
}


.data-table th {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* ---- 表格行悬停 & 斑马纹 ---- */
.data-table tbody tr:nth-child(even) {
  background: #f9fafb;
}
.data-table tbody tr:hover {
  background: #f3f4f6;
  
}
.checkbox-cell {
  width: 52px;
  text-align: center;
}
.checkbox-cell input {
  width: 18px;
  height: 18px;
}
.empty-state {
  padding: 18px;
  border-radius: 8px;
  background: #fafafa;
  color: #86868b;
  border: 1px dashed #d2d2d7;
}
.muted { color: #86868b; font-size: 14px; margin-top: 4px; }
.no-margin { margin-top: 0; }
.tips { color: var(--muted); line-height: 1.8; }
.tips.compact { margin-top: 16px; font-size: 14px; }
.error-card { max-width: 520px; margin: 40px auto; text-align: center; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolbar-links, .tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stacked-links {
  flex-direction: column;
  align-items: stretch;
}
.import-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed #d2d2d7;
  border-radius: 16px;
  background: #f9fafb;
}
.import-box h3 { margin-top: 0; }
.no-top-margin { margin-top: 0; }
.batch-toolbar {
  display: grid;
  gap: 14px;
}
.batch-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}
.filter-toolbar {
  margin-bottom: 14px;
}
.filter-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) auto auto;
  gap: 10px;
  align-items: center;
}
.filter-row-wide {
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) auto auto;
}
.filter-row-attention {
  grid-template-columns: minmax(260px, 1.6fr) minmax(180px, 1fr) minmax(160px, 1fr) auto auto;
}
.full-row {
  grid-column: 1 / -1;
}
.tag-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  vertical-align: middle;
}
.compact-tag-list {
  gap: 6px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}
.attn-panel-grid {
  display: flex; flex-direction: column; gap: 20px;
}
.attention-editor-card {
  padding: 16px;
  border: 1px solid #e4ebf7;
  border-radius: 16px;
  background: #fff;
}
.attn-ed-header {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f5;
}
.attn-ed-name { font-size: 17px; font-weight: 700; color: #1d1d1f; }
.attn-ed-meta { font-size: 13px; color: #86868b; }
.attn-ed-form {
  display: grid; grid-template-columns: 100px 1fr 1fr; gap: 10px 14px; align-items: end;
}
.attn-ed-wide { grid-column: 1 / -1; }
.attn-ed-row { }
.attn-ed-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.attn-ed-field { display: flex; flex-direction: column; gap: 3px; }
.attn-ed-field > span { font-size: 12px; font-weight: 600; color: #86868b; }
.attn-ed-field input,
.attn-ed-field select,
.attn-ed-field textarea {
  width: 100%; box-sizing: border-box;
  padding: 7px 10px; border: 1px solid #d2d2d7; border-radius: 8px;
  font-size: 13px; background: #f9fafb; transition: border-color .15s;
}
.attn-ed-field input:focus,
.attn-ed-field select:focus,
.attn-ed-field textarea:focus { border-color: #0071e3; outline: none; background: #fff; }
.attn-ed-actions { display: flex; gap: 8px; align-items: end; }
.attention-current-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* tag pills */
.attn-tag-pills {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}
.attn-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; background: #e8f1fd; color: #0071e3;
  border-radius: 980px; font-size: 12px; font-weight: 500;
}
.attn-pill-x {
  cursor: pointer; font-size: 14px; line-height: 1; color: #0071e3; opacity: .6;
}
.attn-pill-x:hover { opacity: 1; }

/* attention panel responsive */
@media (max-width: 900px) {
  .attention-editor-card { position: static !important; }
}
@media (max-width: 640px) {
  .attn-ed-form { grid-template-columns: 1fr 1fr; }
  .attn-ed-actions { grid-column: 1 / -1; }
  .attention-table th:nth-child(5),
  .attention-table td:nth-child(5),
  .attention-table th:nth-child(6),
  .attention-table td:nth-child(6),
  .attention-table th:nth-child(7),
  .attention-table td:nth-child(7) { display: none; }
}
.attention-clear-form {
  margin-top: 12px;
}
.attention-tag-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d7e3fb;
  background: rgba(255,255,255,0.72);
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}
.tag-check input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.attention-row {
  cursor: pointer;
  transition: background-color .2s, box-shadow .2s;
}
.attention-row:hover {
  background: #fafafa;
}
.attention-row.is-selected {
  background: #eef4ff;
  box-shadow: inset 3px 0 0 var(--primary);
}
.attention-row-radio {
  pointer-events: none;
}
.attention-action-grid {
  display: grid;
  gap: 10px;
  min-width: 280px;
}
.attention-edit-form {
  min-width: 260px;
  grid-template-columns: 1fr;
}
.compact-card-form { margin-top: 12px; }
.class-toggle-form { display: none; }
.full-height-card { height: 100%; }

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f5f5f7 0%, #e8f1fd 50%, #f5f5f7 100%);
  border-radius: 20px;
  padding: 32px;
}
.admin-hero h1 {
  margin: 6px 0 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #1d1d1f;
}
.admin-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: none;
}
.admin-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
.sidebar-brand {
  margin-bottom: 14px;
}
.sidebar-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sidebar-menu {
  display: grid;
  gap: 22px;
}
.nav-group {
  display: grid;
  gap: 12px;
}
.nav-group-card {
  display: grid;
  gap: 12px;
}
.main-nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #1d1d1f;
  text-align: left;
  
}
.main-nav-link:hover {
  color: #0071e3;
  background: rgba(0,113,227,0.06);
}
.main-nav-link.active {
  background: rgba(0,113,227,0.08);
  color: #0071e3;
  font-weight: 600;
  border-left: 3px solid #0071e3;
  padding-left: 9px;
}
.main-nav-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}
.nav-submenu {
  display: grid;
  gap: 8px;
  padding: 2px 0 0 14px;
}
.nav-submenu.always-open {
  display: grid;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #424245;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  transition: all .15s;
}
.sidebar-link:hover {
  background: #f3f4f6;
  color: #111827;
}
.sidebar-link.active {
  background: rgba(0,113,227,0.08);
  color: #0071e3;
  font-weight: 600;
  border-left: 3px solid #0071e3;
  padding-left: 9px;
}
.sub-nav-link {
  margin-left: 0;
}
.sub-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d1d5db;
  flex: 0 0 auto;
}
.sidebar-link.active .sub-nav-dot {
  background: #0071e3;
}
.logs-grid {
  display: block;
  width: 100%;
}
.log-card-main {
  min-width: 0;
  width: 100%;
}
.log-card-main.card {
  width: 100%;
}
.log-card-main .table-wrap {
  overflow-x: auto;
  width: 100%;
}
.log-card-main .admin-table {
  width: 100%;
  min-width: 1320px;
}
.audit-time-cell {
  min-width: 190px;
  white-space: normal;
}
.audit-time-text {
  white-space: normal;
  line-height: 1.6;
  color: #1d1d1f;
}
.audit-target-cell {
  min-width: 200px;
}
.audit-target-text {
  white-space: normal;
  line-height: 1.6;
}
.audit-detail-cell {
  min-width: 480px;
}
.audit-detail-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
  font-size: 13px;
  color: #1d1d1f;
  font-family: inherit;
}
.audit-filter-toolbar {
  margin: 12px 0 14px;
}
.audit-filter-row select,
.audit-filter-row input[type='date'] {
  min-width: 180px;
}
.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pagination-link {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.72);
  color: #1d1d1f;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
}
.pagination-link:hover:not(.active) {
  background: #f3f4f6;
  color: #111827;
}
.pagination-link.active {
  background: #0071e3;
  color: #fff;
}
.pagination-nav {
  min-width: 76px;
}
.sidebar-footer {
  margin-top: 16px;
  line-height: 1.7;
}
.admin-main {
  min-width: 0;
  width: 100%;
  max-width: none;
}
.admin-panel {
  display: none;
}
.admin-panel.is-active {
  display: block;
  width: 100%;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.panel-heading h2 {
  margin: 8px 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.panel-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 860px;
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
#log-panel .panel-grid {
  display: block;
}
#log-panel .card {
  width: 100%;
  max-width: none;
}
#log-panel .audit-filter-toolbar,
#log-panel .table-wrap,
#log-panel .pagination-bar {
  width: 100%;
}
.overview-grid {
  align-items: start;
}
.management-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}
.management-side,
.management-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.admin-class-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wide-class-card {
  min-width: 0;
}
.admin-table {
  min-width: 960px;
}
.overview-stats {
  margin-bottom: 20px;
}


/* === Admin mobile layout fixes === */
@media (max-width: 860px) {
  .admin-layout {
    flex-direction: column;
    gap: 0;
  }
  .admin-sidebar {
    width: 100% !important;
    max-width: none !important;
    position: relative;
    border-radius: 16px 16px 0 0;
    padding: 16px;
    margin-bottom: 0;
  }
  .admin-main, .admin-main.shell-main {
    padding: 12px;
    width: 100%;
    max-width: none;
  }
  .fitness-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .fitness-nav-group {
    flex: 1 1 auto;
    min-width: 100px;
  }
  .fitness-nav-root {
    font-size: 13px;
    padding: 6px 10px;
    width: auto;
  }
  .fitness-nav-grade-link {
    font-size: 12px;
  }
  .fitness-nav-grade-title {
    font-size: 12px;
  }
  /* admin 体测导航：手机端保持纵向下拉，不退回横向换行 */
  .fitness-admin-sidebar .fitness-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px;
  }
  .fitness-admin-sidebar .fitness-nav-group {
    flex: none;
    min-width: 0;
    display: block;
  }
  .fitness-admin-sidebar .fitness-nav-root,
  .fitness-admin-sidebar .fitness-nav-grade-link {
    width: 100%;
    font-size: 14px;
    padding: 9px 12px;
    min-height: 40px;
  }
  .fitness-admin-sidebar .fitness-nav-grade-title { font-size: 14px; }
  .fitness-admin-sidebar .fitness-nav-grade-meta { display: inline-flex; }
  .fitness-admin-sidebar .fitness-nav-chevron { display: inline-block; }
  .fitness-admin-sidebar .fitness-nav-class { min-height: 38px; font-size: 13.5px; padding: 9px 11px; }
  .chart-card .visual-grid {
    flex-direction: column;
  }
  .radar-card {
    min-width: auto;
    width: 100%;
  }
  .trend-card {
    width: 100%;
  }
  .wave-chart-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wave-chart-wrap svg {
    max-width: 100%;
    height: auto;
  }
  .admin-hero {
    flex-direction: column;
    gap: 12px;
  }
  .admin-hero-actions {
    width: 100%;
  }
  .data-table {
    font-size: 11px;
  }
  .data-table th, .data-table td {
    padding: 6px 8px;
  }
  .form-grid {
    grid-template-columns: 1fr !important;
  }
  .stats-grid.overview-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .pagination-bar {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
  }
  .pagination-link {
    min-width: 28px;
    height: 28px;
    font-size: 12px;
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  .stats-grid.overview-stats {
    grid-template-columns: 1fr;
  }
  .admin-hero h1 {
    font-size: 18px;
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .collapse-trigger {
    font-size: 13px;
    padding: 8px 12px;
  }
}

@media (max-width: 1280px) {
  .admin-layout {
    grid-template-columns: 200px 1fr;
  }
  .management-layout {
    grid-template-columns: 280px 1fr;
  }
  .admin-class-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .management-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .hero,
  .two-col,
  .admin-grid,
  .stats-grid,
  .dashboard-head,
  .panel-grid,
  .management-layout,
  .admin-layout,
  .admin-hero {
    grid-template-columns: 1fr;
    display: grid;
  }

  .dashboard-head,
  .admin-hero { align-items: start; }
  .batch-row { grid-template-columns: 1fr; }
  .filter-row,
  .filter-row-wide,
  .filter-row-attention { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
  }
  .admin-hero-actions {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-title { font-size: 18px; }
  .container,
  .admin-container {
    width: calc(100vw - 16px);
    padding: 12px 8px 20px;
  }
  .card { padding: 16px; border-radius: 16px; }
  .hero h1,
  .admin-hero h1 { font-size: 28px; }
  .nav { width: 100%; }
  .nav a { padding: 10px 12px; font-size: 14px; }
  .btn, input, textarea, select { font-size: 16px; }
  .inline-form, .tool-row { align-items: flex-start; flex-direction: column; }
  .action-col, .action-col.compact-actions { width: 100%; }
  .data-table,
  .admin-table { min-width: 680px; }
  .main-nav-link {
    min-height: 54px;
    padding: 0 14px;
  }
  .main-nav-title { font-size: 17px; }
  .sidebar-link {
    justify-content: flex-start;
  }
  .logs-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== 场地预约 ========== */
.venue-round-card,
.venue-attention-card,
.venue-attention-manage-card,
.venue-map-shell {
  margin-bottom: 16px;
}
.venue-attention-manage-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(260px, 0.95fr);
  gap: 16px;
}
.venue-attention-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.venue-attention-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}
.venue-attention-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.venue-attention-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.venue-attention-current {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.88);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.venue-attention-current-head,
.venue-attention-current-meta,
.venue-scene-attention-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.venue-attention-current-list,
.venue-scene-attention-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.venue-attention-current-item,
.venue-scene-attention-item {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.venue-attention-vest-tabs,
.venue-attention-child-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.venue-attention-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}
.venue-attention-vest-panel,
.venue-attention-child-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.venue-attention-child-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(241, 245, 249, 0.96);
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.venue-attention-child-btn:hover {
  background: rgba(219, 234, 254, 0.96);
  color: #1d4ed8;
}
.venue-attention-child-btn.is-active {
  background: #1d4ed8;
  color: #fff;
}
.venue-attention-current-empty {
  padding: 16px;
}
.venue-map-shell {
  width: min(1680px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 28px 30px 30px;
}
.venue-countdown-box {
  min-width: 180px;
  text-align: right;
}
.venue-countdown-label {
  color: var(--muted);
  font-size: 13px;
}
.venue-countdown-timer {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.venue-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.venue-view-panel[hidden] {
  display: none;
}
.venue-board-scroll,
.layout-editor-scroll {
  overflow: auto;
  padding-bottom: 4px;
}
.venue-map-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 620px;
  overflow: auto;
  width: 100%;
  max-width: 100%;
  padding: 18px 8px 10px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 26%),
    linear-gradient(180deg, #edf4ff 0%, #e3ecff 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.venue-map-stage-inner {
  position: relative;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.venue-map-board,
.layout-canvas {
  position: relative;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 12%, rgba(29, 78, 216, 0.06), transparent 28%),
    linear-gradient(180deg, #edf3ff 0%, #e5ecfb 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  overflow: visible;
}
.venue-map-board {
  will-change: transform;
  max-width: none;
}
.venue-background-layer {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  border-radius: 20px;
}
.venue-background-layer.is-fixed {
  opacity: 0.96;
}
.venue-background-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 20px;
}
.venue-zone,
.layout-block {
  position: absolute;
  border-radius: 20px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.venue-zone {
  background: #fafafa;
}
.venue-zone.is-mine {
  box-shadow: 0 20px 44px rgba(22, 163, 74, 0.18);
  border-color: rgba(34, 197, 94, 0.36);
}
.venue-zone.is-pool-full {
  filter: saturate(0.9);
}
.venue-zone-bg,
.layout-block-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 20px;
}
.venue-zone-bg {
  cursor: pointer;
}
.venue-zone-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 20px;
}
.venue-zone-overlay,
.layout-block-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}
.venue-zone-head,
.layout-block-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.venue-zone-head {
  padding: 16px 16px 0;
  pointer-events: none;
}
.venue-zone-head h4,
.layout-block-head strong {
  margin: 0;
  font-size: 15px;
}
.venue-zone-meta,
.layout-block-meta {
  font-size: 12px;
  color: #424245;
}
.venue-zone-badge {
  min-width: 46px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.14);
  color: #dc2626;
  font-weight: 700;
  text-align: center;
}
.venue-zone-foot {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}
.venue-map-hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.venue-hotspot-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.venue-hotspot-shape {
  fill: rgba(15, 23, 42, 0.001);
  stroke: transparent;
  stroke-width: 16;
  cursor: pointer;
  pointer-events: all;
}
.venue-hotspot-shape:hover,
.venue-hotspot-shape:focus-visible {
  fill: rgba(15, 23, 42, 0.001);
  stroke: transparent;
  filter: none;
  outline: none;
}
.venue-hotspot-hint {
  --hint-color: #2563eb;
  --hint-label-size: 14px;
  --hint-size: 28px;
  --hint-length: 54px;
  --hint-bounce-ms: 1500ms;
  position: absolute;
  z-index: 4;
  display: block;
  width: calc(var(--hint-size) * 1.45);
  height: calc(var(--hint-length) + var(--hint-size));
  transform: translate(-50%, calc(-100% - 18px));
  transform-origin: 50% 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--hint-color);
  cursor: pointer;
  overflow: visible;
  animation: venue-hotspot-bounce var(--hint-bounce-ms) cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  filter: drop-shadow(0 14px 20px rgba(15, 23, 42, 0.22));
}
.venue-hotspot-hint-label {
  position: absolute;
  left: 50%;
  top: calc(var(--hint-size) * -1.2);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: var(--hint-label-size);
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.24);
}
.venue-hotspot-hint::before,
.venue-hotspot-hint::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.venue-hotspot-hint::before {
  top: 0;
  width: max(4px, calc(var(--hint-size) * 0.18));
  height: var(--hint-length);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, currentColor 26%, currentColor 100%);
}
.venue-hotspot-hint::after {
  top: calc(var(--hint-length) - 1px);
  width: var(--hint-size);
  height: calc(var(--hint-size) * 0.84);
  background: currentColor;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.venue-hotspot-hint:hover,
.venue-hotspot-hint:focus-visible {
  filter: drop-shadow(0 18px 24px rgba(15, 23, 42, 0.28));
  outline: none;
}
@keyframes venue-hotspot-bounce {
  0%, 100% { transform: translate(-50%, calc(-100% - 18px)); }
  45% { transform: translate(-50%, calc(-100% - 2px)); }
  68% { transform: translate(-50%, calc(-100% - 10px)); }
}
.venue-class-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
}
.venue-class-chip,
.venue-class-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.venue-class-chip.is-self {
  background: #dbeafe;
  color: #1d4ed8;
}
.venue-class-empty {
  font-weight: 500;
  color: #86868b;
}
.venue-zone-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.venue-map-caption {
  margin-top: 14px;
  text-align: center;
}
.venue-text-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.venue-text-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 24px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 255, 0.92) 100%);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}
.venue-text-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.venue-text-head h4 {
  margin: 0 0 6px;
  font-size: 20px;
}
.venue-text-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.venue-text-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.venue-text-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.venue-chip-button {
  border: 0;
  cursor: pointer;
}
.venue-chip-button:hover {
  background: #dbeafe;
  color: #1d4ed8;
}
.venue-availability {
  color: #1d1d1f;
  font-size: 13px;
}
.venue-marker,
.layout-pin {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
}
.venue-marker {
  background: rgba(30, 64, 175, 0.94);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.25);
  overflow: hidden;
}
.venue-marker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.venue-marker span,
.layout-pin {
  font-size: 11px;
  font-weight: 700;
}
.layout-canvas {
  min-height: 0;
}
.layout-background-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 4px 14px;
}
.layout-block {
  border: 2px dashed #2563eb;
  background: rgba(255,255,255,0.72);
}
.layout-background-block {
  border-style: dashed;
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(219, 234, 254, 0.16);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12);
}
.layout-background-block .layout-block-head strong {
  color: #1d4ed8;
}
.layout-block.is-active {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14), 0 20px 44px rgba(15, 23, 42, 0.18);
}
.layout-drag-zone {
  position: relative;
  z-index: 2;
  padding: 14px;
  cursor: move;
  user-select: none;
  touch-action: none;
}
.layout-block-action {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  cursor: pointer;
}
.layout-block-action:hover {
  background: #ffffff;
}
.layout-block-meta {
  margin-top: 6px;
}
.layout-handle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 6px;
  background: #0071e3;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
  cursor: nwse-resize;
}
.layout-pin {
  background: rgba(255,255,255,0.72);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.24);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}
.layout-pin.is-disabled {
  opacity: 0.45;
}
.venue-hotspot-field {
  border: 1px dashed rgba(37, 99, 235, 0.28);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(239, 246, 255, 0.72);
}
.venue-hotspot-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.venue-hotspot-summary {
  font-size: 13px;
}
.venue-hotspot-scene-preview {
  margin-top: 10px;
}
.venue-hotspot-scene-preview img {
  width: min(100%, 260px);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  display: block;
}
.venue-hotspot-scene-preview video {
  width: min(100%, 320px);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  display: block;
}
.hotspot-editor-overlay {
  align-items: center;
}
.modal-box.hotspot-editor-modal {
  width: min(98vw, 1440px);
  max-width: 1440px;
  max-height: 96vh;
}
.hotspot-editor-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.hotspot-editor-toolbar,
.hotspot-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hotspot-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hotspot-zoom-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hotspot-editor-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 12px;
}
.hotspot-editor-style-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #475569;
}
.hotspot-editor-style-grid input {
  width: 100%;
}
.hotspot-editor-stage-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(226, 232, 240, 0.55);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  height: min(74vh, 840px);
  max-height: min(74vh, 840px);
}
.hotspot-editor-stage {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  transform-origin: top left;
}
.hotspot-editor-stage .venue-background-image {
  background-size: 100% 100%;
  background-position: left top;
  background-color: rgba(255, 255, 255, 0.72);
}
.hotspot-editor-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}
.hotspot-editor-existing {
  fill: rgba(59, 130, 246, 0.08);
  stroke: rgba(37, 99, 235, 0.35);
  stroke-width: 3;
  stroke-dasharray: 12 10;
}
.hotspot-editor-polygon {
  fill: rgba(16, 185, 129, 0.22);
  stroke: rgba(4, 120, 87, 0.92);
  stroke-width: 4;
}
.hotspot-editor-polyline {
  fill: none;
  stroke: rgba(4, 120, 87, 0.92);
  stroke-width: 3;
  stroke-dasharray: 8 8;
}
.hotspot-editor-handle {
  fill: #fff;
  stroke: #0f766e;
  stroke-width: 3;
  cursor: grab;
}
.hotspot-editor-hint {
  z-index: 5;
}
@media (max-width: 900px) {
  .modal-box.hotspot-editor-modal {
    width: min(100vw - 16px, 1000px);
    max-height: 95vh;
  }
  .hotspot-editor-stage-wrap {
    height: min(60vh, 560px);
    max-height: min(60vh, 560px);
    padding: 10px;
  }
}
.venue-admin-card {
  margin-bottom: 16px;
}
.venue-admin-top {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 18px;
}
.venue-admin-preview {
  min-height: 180px;
  border-radius: 18px;
  background: linear-gradient(180deg, #eef2ff 0%, #e2e8f0 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid var(--border);
}
.venue-admin-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.venue-elements-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.venue-element-position-field {
  border: 1px dashed rgba(37, 99, 235, 0.24);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(239, 246, 255, 0.68);
}
.venue-element-stage {
  position: relative;
  margin-top: 10px;
  width: min(100%, 520px);
  aspect-ratio: var(--stage-width, 280) / var(--stage-height, 180);
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, #eef2ff 0%, #e2e8f0 100%);
}
.venue-element-stage-bg,
.venue-element-stage-empty {
  position: absolute;
  inset: 0;
}
.venue-element-stage-bg {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.venue-element-stage-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}
.venue-element-stage-marker {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  transform: translate(0, 0);
  border: 0;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.94);
  color: #fff;
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.24);
  cursor: grab;
  touch-action: none;
}
.venue-element-stage-marker:active {
  cursor: grabbing;
}
.venue-element-stage-marker span {
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}
.venue-element-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #f9fafb;
}
.venue-element-item.is-new {
  border-style: dashed;
}
.venue-element-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.venue-detail-modal {
  max-width: 680px;
}
.venue-detail-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.venue-detail-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.venue-scene-overlay {
  align-items: stretch;
}
.modal-box.venue-scene-modal {
  width: min(97vw, 1480px);
  max-width: 1480px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.venue-scene-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.venue-scene-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.72fr);
  gap: 18px;
}
.venue-scene-visual {
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.45) 0%, rgba(241, 245, 249, 0.94) 100%);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.venue-scene-switches {
  display: flex;
  gap: 10px;
  padding: 16px 16px 0;
  flex-wrap: wrap;
}
.venue-resource-mode-btn {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.venue-resource-mode-btn.is-active {
  background: #0f766e;
  color: #fff;
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.22);
}
.venue-resource-mode-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.venue-scene-surface {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}
.venue-scene-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--scene-width, 960) / var(--scene-height, 640);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(226, 232, 240, 0.8) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.venue-scene-map {
  position: relative;
  flex: 0 0 auto;
  max-width: 100%;
  max-height: 100%;
}
.venue-scene-map > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.venue-scene-empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 600;
}
.venue-scene-image-actions {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.venue-scene-image-tip {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
}
.venue-scene-image-frame.is-zoomable {
  cursor: zoom-in;
}
.venue-scene-image-frame.is-zoomable::after {
  content: "双击查看整图";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.venue-resource-meta-line {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
}
.venue-scene-map-marker {
  z-index: 3;
  min-width: 20px;
  min-height: 20px;
  box-shadow: 0 12px 20px rgba(30, 64, 175, 0.28);
}
.venue-resource-board {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.venue-resource-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.venue-resource-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.venue-resource-title {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.15;
}
.venue-resource-grade-note {
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}
.venue-resource-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.venue-resource-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.venue-resource-panel-head h4 {
  margin: 4px 0 0;
  font-size: 22px;
}
.venue-resource-panel-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.venue-resource-level-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.venue-resource-level-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.venue-resource-level-panel[hidden],
.venue-resource-panel[hidden],
.venue-scene-surface[hidden] {
  display: none;
}
.venue-resource-level-btn,
.venue-resource-nav-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(226, 232, 240, 0.9);
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.venue-resource-level-btn.is-active,
.venue-resource-nav-btn.is-active {
  background: #1d4ed8;
  color: #fff;
}
.venue-resource-level-btn:disabled,
.venue-resource-nav-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.venue-resource-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.venue-resource-content-grid.is-loop {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.venue-resource-card {
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.venue-resource-card strong {
  color: #0f172a;
}
.venue-resource-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.venue-resource-figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.venue-resource-figure img {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}
.venue-resource-figure figcaption {
  padding: 10px 12px 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}
.venue-resource-video {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.venue-resource-video video {
  width: 100%;
  max-height: 360px;
  border-radius: 14px;
  background: #020617;
}
.venue-resource-empty {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px dashed rgba(148, 163, 184, 0.36);
  color: #64748b;
  font-weight: 600;
  text-align: center;
}
.venue-resource-empty-placeholder {
  text-align: left;
}
.venue-scene-subtitle {
  margin: 0;
  color: #475569;
  font-size: 13px;
}
.venue-scene-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.venue-scene-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
}
.venue-scene-card-booking .venue-scene-actions {
  justify-content: space-between;
}
.venue-scene-card-booking .inline-form,
.venue-scene-card-booking form {
  margin: 0;
}
.venue-resource-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.venue-resource-nav-group {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.venue-resource-nav-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.venue-resource-nav-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.venue-scene-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.venue-scene-title {
  margin: 0 0 8px;
  font-size: 24px;
}
.venue-scene-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.venue-scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.venue-scene-stat {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(239, 246, 255, 0.85);
}
.venue-scene-stat strong {
  display: block;
  font-size: 11px;
  color: #475569;
  margin-bottom: 4px;
}
.venue-scene-text {
  white-space: pre-wrap;
  color: #334155;
  font-size: 14px;
  line-height: 1.6;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body.modal-open {
  overflow: hidden;
  touch-action: none;
}
.modal-box {
  background: rgba(255,255,255,0.72);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 28px 80px rgba(15,23,42,0.24);
  border: 1px solid rgba(226,232,240,0.9);
  
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; }
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  padding: 0 4px;
}
.modal-body {
  padding: 20px;
  line-height: 1.8;
  color: var(--text);
}
.venue-scene-image-overlay {
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(10px);
}
.venue-scene-image-viewer {
  width: min(96vw, 1400px);
  height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.38);
}
.venue-scene-image-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  color: #e2e8f0;
}
.venue-scene-image-toolbar strong {
  display: block;
  font-size: 20px;
}
.venue-scene-image-hint {
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 13px;
}
.venue-scene-image-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.venue-scene-image-toolbar-actions .btn {
  border-color: rgba(148, 163, 184, 0.45);
}
.venue-scene-image-close {
  color: #e2e8f0;
  font-size: 28px;
}
.venue-scene-image-viewport {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.venue-scene-image-full {
  display: block;
  max-width: none;
  width: auto;
  height: auto;
  margin: 0;
  user-select: none;
  cursor: zoom-in;
}

@media (max-width: 900px) {
  .venue-admin-top {
    grid-template-columns: 1fr;
  }
  .venue-countdown-box {
    text-align: left;
  }
  .venue-scene-image-viewer {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    padding: 14px;
  }
  .venue-scene-image-toolbar {
    flex-direction: column;
  }
  .venue-scene-image-toolbar-actions {
    width: 100%;
  }
  .venue-map-shell {
    padding: 20px;
  }
  .venue-map-stage {
    min-height: 500px;
  }
}

@media (min-width: 901px) {
  .venue-map-stage {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .venue-attention-manage-grid,
  .venue-attention-form-row {
    grid-template-columns: 1fr;
  }
  .venue-attention-form-actions,
  .venue-attention-current-meta,
  .venue-scene-attention-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .venue-attention-form-actions .btn {
    width: 100%;
  }
  .venue-view-toolbar {
    width: 100%;
    justify-content: space-between;
  }
  .venue-map-shell {
    padding: 14px 10px;
    border-radius: 16px;
  }
  .venue-map-stage {
    min-height: 240px;
    padding: 8px 0 0;
    border-radius: 18px;
    overflow-x: auto;
    overflow-y: auto;
  }
  .venue-map-stage-inner {
    margin: 0 auto;
  }
  .venue-countdown-box {
    min-width: 0;
    width: 100%;
    text-align: left;
  }
  .venue-countdown-timer {
    font-size: 22px;
    word-break: break-all;
  }
  .venue-text-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .venue-text-card {
    padding: 14px;
    border-radius: 16px;
  }
  .venue-text-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .venue-zone-actions,
  .venue-text-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .venue-text-actions .btn,
  .venue-text-actions form,
  .venue-text-actions .inline-form,
  .venue-zone-actions .btn,
  .venue-zone-actions form,
  .venue-zone-actions .inline-form {
    width: 100%;
  }
  .venue-text-actions .btn,
  .venue-zone-actions .btn {
    min-height: 40px;
  }
  .venue-hotspot-hint {
    transform: translate(-50%, calc(-100% - 12px));
    filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.2));
  }
  .venue-scene-shell {
    grid-template-columns: 1fr;
  }
  .venue-scene-panel {
    order: -1;
  }
  .venue-resource-head {
    flex-direction: column;
  }
  .venue-resource-grade-note {
    max-width: none;
    width: 100%;
  }
  .venue-scene-title {
    font-size: 24px;
  }
  .venue-scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .venue-scene-stat {
    padding: 10px;
    border-radius: 14px;
  }
  .venue-scene-card {
    padding: 14px;
  }
  .venue-scene-card-booking { order: 1; }
  .venue-scene-card-stats { order: 2; }
  .venue-scene-card-nav { order: 3; }
  .venue-scene-card-attention { order: 4; }
  .venue-scene-card-classes { order: 5; }
  .venue-scene-actions,
  .venue-scene-card-booking .venue-scene-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .venue-scene-card-booking .btn,
  .venue-scene-card-booking form,
  .venue-scene-card-booking .inline-form {
    width: 100%;
  }
  .venue-resource-content-grid,
  .venue-resource-content-grid.is-loop,
  .venue-resource-media-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-head > .btn {
    width: 100%;
  }
  .modal-box.venue-detail-modal {
    width: min(94vw, 94vw);
    max-width: 94vw;
    margin: 0 auto;
  }
  .modal-box.venue-scene-modal {
    width: min(96vw, 96vw);
    max-width: 96vw;
  }
  .venue-detail-body {
    padding: 14px;
  }
}



.chart-card {
  overflow: hidden;
}
.visual-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}
.radar-card,
.trend-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  
}
.radar-card {
  position: relative;
  overflow: hidden;
}
.radar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(191, 219, 254, 0.26), transparent 38%);
  pointer-events: none;
}
.radar-svg,
.wave-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}
.radar-ring {
  fill: rgba(59, 130, 246, 0.04);
  stroke: rgba(59, 130, 246, 0.18);
  stroke-width: 1;
}
.radar-axis {
  stroke: rgba(100, 116, 139, 0.32);
  stroke-width: 1;
}
.radar-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 12px;
}
.radar-toggle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.88);
  color: #475569;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.radar-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--radar-toggle-color, #0f172a);
}
.radar-toggle.is-active {
  color: var(--radar-toggle-color, #0f172a);
  border-color: var(--radar-toggle-color, #0f172a);
  box-shadow: inset 0 0 0 1px var(--radar-toggle-color, #0f172a);
}
.radar-toggle-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.radar-series.is-hidden {
  display: none;
}
.radar-series-shape {
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.radar-series-current .radar-series-shape {
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.12));
}
.radar-series-dot {
  stroke: #ffffff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.radar-label {
  fill: #334155;
  font-size: 12px;
  text-anchor: middle;
}
.wave-chart-wrap {
  overflow-x: auto;
}
.wave-grid {
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 1;
}
.wave-line {
  fill: none;
  stroke: #0f766e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wave-point {
  fill: #14b8a6;
  stroke: #ffffff;
  stroke-width: 2;
}
.wave-label {
  fill: #64748b;
  font-size: 11px;
  text-anchor: middle;
}
.wave-value {
  fill: #0f766e;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}
.narrative-list {
  display: grid;
  gap: 12px;
}
.narrative-item {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #1d1d1f;
  line-height: 1.7;
}
.narrative-item strong {
  display: inline-block;
  margin-bottom: 4px;
  color: #1d1d1f;
}
@media (max-width: 900px) {
  .visual-grid {
    grid-template-columns: 1fr;
  }
  .radar-card-head {
    margin-bottom: 10px;
  }
  .radar-toggle-list {
    width: 100%;
  }
  .radar-toggle {
    justify-content: center;
  }
}


.sidebar-group {
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fafafa;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.sidebar-summary-wrap {
  list-style: none;
}
.sidebar-summary-wrap::-webkit-details-marker {
  display: none;
}
.sidebar-summary-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  box-sizing: border-box;
}
.sidebar-count {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #424245;
  font-size: 12px;
  font-weight: 700;
  margin-left: 10px;
  flex-shrink: 0;
}
.sidebar-submenu {
  padding: 0 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-sublink {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  color: #424245;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}
.sidebar-sublink:hover {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.sidebar-sublink.active {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
  font-weight: 700;
}



.fitness-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fitness-nav-root {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  background: transparent;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  border: none;
  transition: background .2s;
}
.fitness-nav-root:hover {
  color: #0071e3;
  background: rgba(0,113,227,0.06);
}
.fitness-nav-root.active {
  background: rgba(0,113,227,0.08);
  color: #0071e3;
  font-weight: 600;
  border-left: 3px solid #0071e3;
  padding-left: 9px;
}
.fitness-nav-group {
  display: grid;
  gap: 10px;
}
.fitness-nav-grade-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 10px;
  text-decoration: none;
  background: transparent;
  color: #1d1d1f;
  border: none;
  transition: background .2s;
}
.fitness-nav-grade-link:hover {
  color: #0071e3;
  background: rgba(0,113,227,0.06);
}
.fitness-nav-grade-link.active {
  background: rgba(0,113,227,0.08);
  color: #0071e3;
  font-weight: 600;
  border-left: 3px solid #0071e3;
  padding-left: 9px;
}
.fitness-nav-grade-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}
.fitness-nav-grade-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fitness-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}
.fitness-nav-chevron {
  font-size: 13px;
  color: inherit;
  opacity: 0.9;
}
.fitness-nav-classes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 0 0 14px;
}
.fitness-nav-class {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #424245;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  transition: all .15s;
}
.fitness-nav-class:hover {
  background: #f3f4f6;
  color: #111827;
}
.fitness-nav-class.active {
  background: rgba(0,113,227,0.08);
  color: #0071e3;
  font-weight: 600;
  border-left: 3px solid #0071e3;
  padding-left: 9px;
}


.inline-editor-card {
  width: 100%;
}
.inline-editor-card summary {
  list-style: none;
  cursor: pointer;
}
.inline-editor-card summary::-webkit-details-marker {
  display: none;
}
.inline-edit-panel {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  background: #fafafa;
}
.inline-edit-panel label {
  margin-bottom: 0;
}
.inline-edit-panel input,
.inline-edit-panel select,
.inline-edit-panel textarea {
  width: 100%;
}
.class-editor-card {
  margin-top: 10px;
}
.compact-actions {
  align-items: flex-start;
}

/* ---- 审美增强 ---- */
/* 占比文字加深 */
.stat-card .muted {
  color: #86868b;
}
/* 按钮层级：退出用灰色 */
.btn.secondary {
  background: rgba(255,255,255,0.72);
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.btn.secondary:hover {
  background: linear-gradient(180deg, #f8fafc 0%, #e9eef5 100%);
  color: #424245;
}


/* ========== RBAC Readonly Mode ========== */
.readonly-mode form[method="post"] button[type="submit"],
.readonly-mode form[method="post"] .btn.primary,
.readonly-mode .inline-edit-panel,
.readonly-mode .batch-actions,
.readonly-mode form[action*="/add"],
.readonly-mode form[action*="/import"],
.readonly-mode form[action*="/batch"],
.readonly-mode form[action*="/edit"],
.readonly-mode form[action*="/toggle"],
.readonly-mode form[action*="/reset"],
.readonly-mode form[action*="/delete"],
.readonly-mode form[action*="/save"],
.readonly-mode form[action*="/settings"],
.readonly-mode form[action*="/content"],
.readonly-mode form[action*="/roles"] {
  display: none !important;
}
.readonly-mode .data-table .checkbox-cell {
  display: none;
}

/* ========== RBAC Role Cards ========== */
.role-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .role-card-grid {
    grid-template-columns: 1fr;
  }
}
.role-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 28px;
  transition: box-shadow .25s, border-color .25s;
  min-height: 120px;
}
.role-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
  border-color: #0071e3;
}
.role-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.role-card-name {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}
.role-card-id {
  font-size: 12px;
  color: #86868b;
  margin-top: 2px;
  font-family: 'SF Mono', Menlo, monospace;
}
.role-card-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.perm-tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  background: rgba(0,113,227,0.08);
  color: #0071e3;
  letter-spacing: 0.01em;
}
.role-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #86868b;
  margin-bottom: 14px;
}
.role-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f0f0f2;
}

/* Permission chip (for create/edit forms) */
.perm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.perm-chip:hover {
  background: #e8f1fd;
  border-color: #0071e3;
}
.perm-chip input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
}
.perm-chip input[type="checkbox"]:checked + span {
  color: #0071e3;
  font-weight: 600;
}

/* ========== Permission Matrix ========== */
.perm-matrix { margin-bottom: 8px; }
.perm-matrix.compact .perm-group { margin-bottom: 8px; }
.perm-matrix.compact .perm-module { margin-bottom: 4px; }
.perm-matrix-title {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 13px;
  color: #1d1d1f;
}
.perm-group {
  margin-bottom: 16px;
  padding: 12px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #f0f0f2;
}
.perm-group-header {
  font-weight: 600;
  font-size: 11px;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e5ea;
}
.perm-module {
  margin-bottom: 8px;
}
.perm-module-name {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 4px;
}
.perm-module-name.small {
  font-size: 12px;
}
.perm-module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ========== Role Section Headers ========== */
.role-section {
  margin-bottom: 24px;
}
.role-section:last-child {
  margin-bottom: 0;
}
.role-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e5ea;
}

/* ========== Role Card Permission Groups ========== */
.role-card-perm-groups {
  margin-bottom: 12px;
}
.perm-group-block {
  margin-bottom: 8px;
}
.perm-group-block:last-child {
  margin-bottom: 0;
}
.perm-group-label {
  font-size: 11px;
  font-weight: 600;
  color: #86868b;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.perm-group-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}


/* ========== Permission Accordion ========== */
.perm-accordion {
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 4px;
}
.perm-accordion[open] {
  border-color: #0071e3;
}
.perm-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  cursor: pointer;
  background: #fafafa;
  transition: background .15s;
  list-style: none;
}
.perm-accordion-toggle::-webkit-details-marker { display: none; }
.perm-accordion-toggle::before {
  content: '▸';
  margin-right: 8px;
  transition: transform .2s;
  font-size: 11px;
  color: #86868b;
}
.perm-accordion[open] > .perm-accordion-toggle::before {
  transform: rotate(90deg);
}
.perm-accordion-toggle:hover {
  background: #f0f0f5;
}
.perm-accordion-count {
  font-size: 11px;
  font-weight: 500;
  color: #0071e3;
  background: rgba(0,113,227,0.08);
  padding: 2px 8px;
  border-radius: 10px;
}
.perm-accordion-body {
  padding: 12px 14px;
  border-top: 1px solid #e5e5ea;
}
/* Role cards spacing refinement */
.role-card {
  padding: 24px 28px;
}

/* ========== Readonly mode: hide write buttons ========== */
.readonly-mode .btn.primary:not(.readonly-keep),
.readonly-mode form[method="post"],
.readonly-mode .batch-bar,
.readonly-mode .import-box,
.readonly-mode .inline-editor-card,
.readonly-mode a[href*="template"],
.readonly-mode a[href*="export"] {
  /* Allow export for readonly if they have export permission */
}
/* Actually readonly should block everything including export */
.readonly-mode form[method="post"] { display: none !important; }
.readonly-mode .import-box { display: none; }
.readonly-mode .batch-bar { display: none; }
.readonly-mode .inline-editor-card { display: none; }
/* Block export links in readonly mode */
.readonly-mode a[href*="/export"] { display: none !important; }
.readonly-mode a[href*="/template"] { display: none; }

/* ========== Inline editor refinements ========== */
.inline-editor-card > summary {
  cursor: pointer;
}
.inline-edit-panel {
  animation: fadeSlideDown .2s ease;
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.compact-inline-form label span {
  font-size: 12px;
}


/* ========== 教师端布局 ========== */
  body:not(.admin-page) .container {
    width: min(1760px, calc(100vw - 24px));
    max-width: 1760px;
    padding: 20px 12px 28px;
  }
  .user-fitness-layout { display:grid; grid-template-columns: 260px minmax(0,1fr); gap:18px; align-items:start; }
  .user-fitness-sidebar { position:sticky; top:72px; align-self:start; display:block !important; }
  .user-fitness-main { min-width:0; width:100%; }
  .user-fitness-nav { display:flex; flex-direction:column; gap:12px; }
  .user-fitness-nav-link { display:block; width:100%; box-sizing:border-box; min-height:42px; padding:14px 16px; border-radius:12px; background:transparent; color:#1d1d1f; text-decoration:none; font-weight:500;  }
  .user-fitness-nav-link:hover { color:#0071e3; background:rgba(0,113,227,0.06); }
  .user-fitness-nav-link.active { background:rgba(0,113,227,0.1); color:#0071e3 !important; }
  .user-fitness-nav-title { display:block; font-size:14px; line-height:1.2; }
  .user-fitness-nav-desc { display:block; margin-top:6px; font-size:12px; color:#86868b; font-weight:600; }
  .user-fitness-main .card { max-width:none; }
  /* 体测明细表 — 紧凑 + 横向滚动（22列太多，不挤压） */
  .user-fitness-main .table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .user-fitness-main .data-table { min-width:1200px !important; width:max-content; table-layout:auto; white-space:nowrap; }
  .user-fitness-main .data-table th,
  .user-fitness-main .data-table td { padding:7px 9px; font-size:12.5px; line-height:1.35; }
  /* 只有姓名列允许换行 */
  .user-fitness-main .data-table td:first-child { white-space:normal; max-width:80px; }
  /* 冻结前三列 — 同原来逻辑 */
  .user-fitness-main .data-table th:nth-child(1), .user-fitness-main .data-table td:nth-child(1) { width:80px; min-width:80px; }
  .user-fitness-main .data-table th:nth-child(2), .user-fitness-main .data-table td:nth-child(2) { width:48px; min-width:48px; }
  .user-fitness-main .data-table th:nth-child(3), .user-fitness-main .data-table td:nth-child(3) { width:92px; min-width:92px; }
  /* 得分数值列紧凑 */
  .user-fitness-main .data-table td { color:#374151; }
  .user-fitness-main .stats-grid.overview-stats { grid-template-columns: repeat(6, minmax(0,1fr)); }
  @media (max-width: 1400px) {
    .user-fitness-main .stats-grid.overview-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .user-fitness-main .data-table th, .user-fitness-main .data-table td { font-size:12px; padding:7px 8px; }
  }
  @media (max-width: 960px) {
    body:not(.admin-page) .container { width:min(100vw - 12px, 100%); padding:16px 6px 24px; }
    .user-fitness-layout { grid-template-columns: 1fr; }
    .user-fitness-sidebar { position: static; }
    .user-fitness-main .table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .user-fitness-main .data-table { min-width:1100px !important; table-layout:auto; white-space:nowrap; }
    .user-fitness-main .stats-grid.overview-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  }


/* ========== 管理端体测导航覆盖 ========== */
  .fitness-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .fitness-nav-root {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    background: transparent;
    color: #1d1d1f !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    border: none;
    
  }
  .fitness-nav-root:hover {
    color: #0071e3 !important;
    background: rgba(0,113,227,0.06);
  }
  .fitness-nav-root.active {
    background: rgba(0,113,227,0.1);
    border-color: transparent;
    color: #0071e3 !important;
    
  }
  .fitness-nav-group {
    display: grid;
    gap: 10px;
  }
  .fitness-nav-grade-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    text-decoration: none;
    background: transparent;
    color: #1d1d1f !important;
    border: none;
    
  }
  .fitness-nav-grade-link:hover {
    color: #0071e3 !important;
    background: rgba(0,113,227,0.06);
  }
  .fitness-nav-grade-link.active {
    background: rgba(0,113,227,0.1);
    border-color: transparent;
    color: #0071e3 !important;
    
  }
  .fitness-nav-grade-title {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.01em;
  }
  .fitness-nav-grade-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .fitness-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 12px;
    font-weight: 700;
  }
  .fitness-nav-chevron {
    font-size: 13px;
    color: inherit;
    opacity: 0.9;
  }
  .fitness-nav-classes {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 2px 0 0 14px;
  }
  .fitness-nav-class {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100% !important;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #475569 !important;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
  }
  .fitness-nav-class:hover {
    background: #f1f5f9;
    color: #1d1d1f !important;
    border-color: #cbd5e1;
  }
  .fitness-nav-class.active {
    background: #eaf2ff;
    color: #1d4ed8 !important;
    border-color: #bfd4ff;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
  }


/* ========== 场地管理面板 ========== */
/* ── 地图居中 ── */
.venue-map-wrapper {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: var(--bg);
  border-radius: 16px;
}
.layout-block { min-width: 100px; min-height: 65px; }
.layout-block-head strong { font-size: 12px; }
.layout-block-head .status-badge { font-size: 10px; padding: 2px 6px; }
.layout-block-meta { font-size: 11px; }
.layout-drag-zone { padding: 10px 12px; }
.layout-handle { width: 16px; height: 16px; }

/* ── 场地卡片网格 ── */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.venue-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
}
.venue-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,113,227,.12);
  transform: translateY(-2px);
}
.venue-card-thumb {
  height: 100px;
  background: var(--bg) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.venue-card-no-img {
  font-size: 28px;
  font-weight: 700;
  color: var(--muted);
  opacity: .4;
}
.venue-card-body {
  padding: 12px 14px 14px;
}
.venue-card-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.venue-card-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 右侧滑出面板 ── */
.venue-editor-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 900;
}
.venue-editor-overlay.open { display: block; }
.venue-editor-drawer {
  position: fixed;
  top: 0;
  right: -640px;
  width: 620px;
  max-width: 96vw;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
  z-index: 901;
  transition: right .3s ease;
  display: flex;
  flex-direction: column;
  border-radius: 20px 0 0 20px;
}
.venue-editor-drawer.open { right: 0; }
.venue-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.venue-editor-header h3 { margin: 0; font-size: 16px; }
.venue-editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 120px;
}
.compact-venue-form {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── 新增面板 ── */
.venue-slide-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  padding: 0 16px;
}
.venue-slide-panel.open {
  max-height: 1600px;
  overflow: auto;
  padding: 16px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

/* ========== Apple-style Homepage ========== */
.apple-hero {
  padding: 88px 24px 64px;
  text-align: center;
}
.apple-hero-inner {
  max-width: 920px;
  margin: 0 auto;
}
.apple-eyebrow {
  margin-bottom: 16px;
  color: #6e6e73;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .01em;
}
.apple-hero-title {
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.apple-hero-desc {
  max-width: 760px;
  margin: 24px auto 0;
  color: #424245;
  font-size: clamp(19px, 2.3vw, 28px);
  line-height: 1.45;
  font-weight: 400;
}
.apple-hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.apple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: all .2s ease;
}
.apple-btn-primary {
  background: #0071e3;
  color: #fff;
}
.apple-btn-primary:hover { background: #0077ed; color: #fff; }
.apple-btn-secondary {
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
}
.apple-btn-secondary:hover { background: #fff; color: #1d1d1f; }

.apple-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 auto 28px;
  padding: 0;
  overflow: hidden;
}
.apple-stat-item {
  padding: 34px 18px;
  text-align: center;
}
.apple-stat-item + .apple-stat-item {
  border-left: 1px solid #e5e5e7;
}
.apple-stat-value {
  color: #1d1d1f;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.apple-stat-label {
  margin-top: 8px;
  color: #6e6e73;
  font-size: 14px;
}

.apple-section {
  padding: 56px 0 24px;
}
.apple-section-head {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
}
.apple-section-kicker {
  color: #6e6e73;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.apple-section-head h2 {
  margin: 10px 0 12px;
  color: #1d1d1f;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.apple-section-head p {
  margin: 0;
  color: #424245;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.apple-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.apple-feature-card {
  padding: 34px 32px;
  border-radius: 28px;
  background: #fbfbfd;
  border: 1px solid #ececf0;
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
}
.apple-feature-card h3 {
  margin: 0 0 12px;
  color: #1d1d1f;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.apple-feature-card p {
  margin: 0;
  color: #424245;
  font-size: 16px;
  line-height: 1.7;
}

.apple-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 12px 0 12px;
}
.apple-panel {
  padding: 36px 32px;
}
.apple-panel h3 {
  margin: 10px 0 12px;
  color: #1d1d1f;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.apple-panel p {
  margin: 0;
  color: #424245;
  font-size: 16px;
  line-height: 1.7;
}

.apple-links-section {
  padding-top: 44px;
}
.apple-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.apple-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e5e5e7;
  color: #1d1d1f;
  text-decoration: none;
  font-size: 19px;
  font-weight: 500;
  transition: all .2s ease;
}
.apple-link-card:hover {
  background: #fbfbfd;
  border-color: #d2d2d7;
  color: #1d1d1f;
  transform: translateY(-1px);
}
.apple-link-arrow {
  color: #0071e3;
  font-size: 22px;
}

@media (max-width: 900px) {
  .apple-stats,
  .apple-feature-grid,
  .apple-split-grid,
  .apple-link-grid {
    grid-template-columns: 1fr 1fr;
  }
  .apple-stat-item:nth-child(3),
  .apple-stat-item:nth-child(4) {
    border-top: 1px solid #e5e5e7;
  }
}
@media (max-width: 640px) {
  .apple-hero { padding: 56px 8px 40px; }
  .apple-hero-desc { font-size: 19px; }
  .apple-stats,
  .apple-feature-grid,
  .apple-split-grid,
  .apple-link-grid {
    grid-template-columns: 1fr;
  }
  .apple-stat-item + .apple-stat-item {
    border-left: none;
    border-top: 1px solid #e5e5e7;
  }
  .apple-feature-card,
  .apple-panel,
  .apple-link-card {
    border-radius: 20px;
  }
}


/* ---- 幼儿纵向对比面板 ---- */
.child-compare-link {
  color: #0f4fa8;
  text-decoration: none;
  border-bottom: 1px dashed #93b3e0;
  transition: color .15s;
}
.child-compare-link:hover {
  color: #1a5fca;
  border-bottom-color: #1a5fca;
}

.compare-panel-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  justify-content: center; align-items: flex-start;
  padding: 20px 12px 40px;
  overflow-y: auto;
}
.compare-panel-overlay.is-open { display: flex; }

.compare-panel {
  width: min(98vw, 1120px);
  background: #fff; border-radius: 16px;
  box-shadow: 0 20px 80px rgba(0,0,0,.28);
  overflow: hidden;
}

.compare-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px;
  background: linear-gradient(135deg, #0f4fa8, #1a5fca);
  color: #fff;
}
.compare-panel-header h3 { margin: 0; font-size: 18px; }
.compare-panel-header .meta { font-size: 13px; opacity: .85; margin-top: 4px; }
.compare-panel-close {
  background: none; border: none; color: #fff; font-size: 28px;
  cursor: pointer; line-height: 1; padding: 0 8px; opacity: .8;
}
.compare-panel-close:hover { opacity: 1; }

.compare-panel-body { padding: 20px 24px 24px; }

.compare-charts-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 800px) {
  .compare-charts-row { grid-template-columns: 1fr; }
}

.compare-chart-card {
  border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 14px 16px;
  background: #f8fafc;
  margin-bottom: 0;
}
.compare-chart-card h4 {
  margin: 0 0 10px; font-size: 14px; color: #334155;
}

.compare-rating-timeline {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 16px; padding: 12px 16px;
  background: #f1f5f9; border-radius: 8px;
}
.compare-rating-timeline .timeline-label {
  font-size: 13px; color: #64748b; margin-right: 6px;
}
.compare-rating-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.compare-rating-pill.rating-excellent { background: #dcfce7; color: #166534; }
.compare-rating-pill.rating-good { background: #e8f1fd; color: #0071e3; }
.compare-rating-pill.rating-pass { background: #fff8e1; color: #f09300; }
.compare-rating-pill.rating-fail { background: #fce8e8; color: #ff3b30; }
.compare-rating-arrow { color: #94a3b8; font-size: 13px; }

.compare-data-table-wrap { overflow-x: auto; }
.compare-data-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.compare-data-table th,
.compare-data-table td {
  padding: 7px 10px; text-align: center;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.compare-data-table th {
  background: #f1f5f9; color: #475569; font-weight: 600;
  position: sticky; top: 0; z-index: 1;
}
.compare-data-table tbody tr:hover { background: #f8fafc; }
.compare-panel-loading {
  text-align: center; padding: 60px 20px; color: #94a3b8;
}

/* Legend helpers */
.compare-growth-legend,
.compare-fitness-legend {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px;
}
.compare-legend-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: #475569;
}
.compare-legend-dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}

/* SVG charts within compare panel */
.compare-growth-chart svg,
.compare-fitness-chart svg {
  display: block; width: 100%;
}


/* ================================================================
   Mobile Pill Tab + Modern Card/Badge Upgrade 2026-06-13
   ================================================================ */

/* ---------- Pill Tab ---------- */
.user-pill-tab-nav { display: none; }

@media (max-width: 960px) {
  .user-fitness-sidebar { display: none !important; }

  .user-pill-tab-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 12px 12px;
    margin: 0 0 14px;
    position: sticky;
    top: 58px;
    z-index: 20;
    background: rgba(245,245,247,0.94);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
  }
  .user-pill-tab-nav::-webkit-scrollbar { display: none; }

  .user-pill-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    color: #3c3c43;
    text-decoration: none;
    background: rgba(120,120,128,0.12);
    transition: background 0.18s, color 0.18s, transform 0.12s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }
  .user-pill-tab:active { transform: scale(0.95); }
  .user-pill-tab.active {
    background: #0071e3;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,113,227,0.28);
  }
  .pill-icon { font-size: 15px; line-height: 1; }
  .pill-label { line-height: 1; }

  .user-fitness-layout { grid-template-columns: 1fr !important; }

  .user-fitness-main .card {
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
  }

  #fitnessEntryForm,
  .user-fitness-main form.form-grid {
    grid-template-columns: 1fr !important;
  }
  #fitnessEntryForm label input,
  #fitnessEntryForm label select,
  .user-fitness-main form.form-grid label input,
  .user-fitness-main form.form-grid label select {
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 10px;
  }
  #fitnessEntrySubmitButton {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 12px;
  }

  .dashboard-head { padding: 16px !important; }
  .dashboard-head h1 { font-size: 20px !important; }
  .dashboard-head > div:last-child { flex-wrap: wrap; margin-top: 10px; }
}

/* ---------- Rating badges ---------- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.5;
}
.rating-badge.excellent { background: #dcfce7; color: #15803d; }
.rating-badge.good      { background: #dbeafe; color: #1d4ed8; }
.rating-badge.pass      { background: #fef9c3; color: #854d0e; }
.rating-badge.fail      { background: #fee2e2; color: #b91c1c; }
.score-hi { color: #15803d; font-weight: 600; }
.score-lo { color: #b91c1c; font-weight: 600; }

/* ---------- Desktop sidebar upgrade ---------- */
@media (min-width: 961px) {
  .user-fitness-sidebar { border-radius: 16px !important; padding: 20px 16px !important; }
  .user-fitness-nav-link { border-radius: 12px; transition: background 0.16s, color 0.16s, box-shadow 0.16s; }
  .user-fitness-nav-link.active {
    background: #0071e3;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0,113,227,0.22);
  }
  .user-fitness-nav-link.active .user-fitness-nav-desc { color: rgba(255,255,255,0.72); }
  .user-fitness-nav-link.active:hover { background: #0058b0; color: #fff !important; }
}

/* ---------- Table row hover ---------- */
.data-table tbody tr { transition: background 0.12s; }
/* ── Collapse / 折叠组件 ── */
.collapse-trigger { cursor:pointer; user-select:none; display:flex; align-items:center; gap:6px; padding:10px 14px; border-radius:8px; background:#f8fafc; font-weight:600; font-size:14px; color:#334155; transition:background 0.15s; }
.collapse-trigger:hover { background:#eef2ff; }
.collapse-trigger .collapse-arrow { display:inline-block; transition:transform 0.2s; font-size:12px; width:16px; text-align:center; }
.collapse-trigger.open .collapse-arrow { transform:rotate(90deg); }
.collapse-body { display:none; }
.collapse-body.open { display:block; }

.data-table tbody tr:hover { background: rgba(0,113,227,0.05) !important; }

/* ---------- Empty state ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  color: #86868b;
  font-size: 14px;
  text-align: center;
  gap: 8px;
}
.empty-state::before { content: attr(data-emoji); font-size: 36px; line-height: 1; }

/* ================================================================ */


/* ========== admin fitness page polish ========== */
.fitness-admin-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.fitness-admin-main { min-width: 0; }
.fitness-admin-sidebar {
  position: sticky;
  top: 72px;
  padding: 18px 16px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(226,232,240,0.92);
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  backdrop-filter: blur(12px);
}
.fitness-admin-sidebar .sidebar-brand { margin-bottom: 16px; }
.fitness-admin-sidebar .sidebar-title {
  margin-bottom: 0;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.08em;
}
.fitness-admin-sidebar .fitness-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fitness-admin-sidebar .fitness-nav-group { gap: 0; display: block; }
.fitness-admin-sidebar .fitness-nav-root,
.fitness-admin-sidebar .fitness-nav-grade-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  border: none;
  box-shadow: none;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.fitness-admin-sidebar .fitness-nav-grade-link { margin-bottom: 0; }
.fitness-admin-sidebar .fitness-nav-root:hover,
.fitness-admin-sidebar .fitness-nav-grade-link:hover {
  background: #f1f5f9;
  color: #2563eb;
}
.fitness-admin-sidebar .fitness-nav-root.active,
.fitness-admin-sidebar .fitness-nav-grade-link.active {
  background: #eff6ff;
  color: #1d4ed8;
  border-left: none;
  padding-left: 10px;
}
.fitness-admin-sidebar .fitness-nav-grade-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
}
.fitness-admin-sidebar .fitness-nav-chevron {
  font-size: 11px;
  opacity: 0.7;
  display: inline-block;
  transition: transform 0.18s ease;
}
.fitness-admin-sidebar .fitness-nav-group.open .fitness-nav-chevron {
  transform: rotate(90deg);
}
/* 班级列表：默认折叠，展开靠 .fitness-nav-group.open */
.fitness-admin-sidebar .fitness-nav-classes {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 2px 12px;
  margin-left: 4px;
  border-left: 1px solid #e8edf3;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.22s ease, opacity 0.18s ease, padding 0.18s ease;
}
.fitness-admin-sidebar .fitness-nav-group.open .fitness-nav-classes {
  max-height: 600px;
  opacity: 1;
  padding-top: 2px;
  padding-bottom: 4px;
}
.fitness-admin-sidebar .fitness-nav-class {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  border: none;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: none;
}
.fitness-admin-sidebar .fitness-nav-class-all {
  background: transparent;
  color: #475569;
  font-weight: 600;
}
.fitness-admin-sidebar .fitness-nav-class:hover {
  background: #f1f5f9;
  color: #1e293b;
}
.fitness-admin-sidebar .fitness-nav-class.active {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
  border-left: none;
  padding-left: 10px;
  box-shadow: none;
}
.fitness-admin-sidebar .fitness-nav-empty {
  padding: 6px 11px;
  font-size: 12px;
  color: #94a3b8;
}

.fitness-batch-overview {
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(226,232,240,0.92);
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
}
.fitness-batch-overview-head {
  margin-bottom: 12px;
  padding-bottom: 0;
}
.fitness-batch-overview-head h3 {
  margin: 0;
  font-size: 16px;
}
.fitness-batch-overview-body {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
}
.fitness-batch-overview-item {
  flex: 1 1 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fitness-batch-overview-divider {
  width: 1px;
  flex: 0 0 1px;
  align-self: stretch;
  background: #e2e8f0;
}
.fitness-batch-overview-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.fitness-batch-overview-value-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.fitness-batch-overview-value {
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  color: #0f172a;
}
.fitness-batch-overview-unit {
  margin-bottom: 4px;
  font-size: 13px;
  color: #64748b;
}
.fitness-batch-overview-meta {
  font-size: 12px;
  color: #94a3b8;
}
.fitness-batch-overview-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.fitness-batch-overview-form select {
  max-width: 150px;
  font-size: 12px;
  padding: 10px 12px;
}
.fitness-batch-overview-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.fitness-batch-overview-rating {
  min-width: 92px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.fitness-batch-overview-rating-number {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.fitness-batch-overview-rating-label {
  margin-top: 6px;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}
.fitness-batch-overview-rating-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 860px) {
  .fitness-admin-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fitness-admin-sidebar {
    position: static;
    padding: 16px;
  }
  .fitness-admin-sidebar .fitness-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .fitness-admin-sidebar .fitness-nav-group {
    flex: none;
    min-width: 0;
    width: 100%;
  }
  .fitness-admin-sidebar .fitness-nav-root,
  .fitness-admin-sidebar .fitness-nav-grade-link {
    min-height: 40px;
    padding: 9px 12px;
  }
  .fitness-admin-sidebar .fitness-nav-grade-title {
    font-size: 13px;
  }
  .fitness-admin-sidebar .fitness-nav-classes {
    padding-left: 10px;
  }
  .fitness-batch-overview {
    padding: 18px 16px;
  }
  .fitness-batch-overview-body {
    gap: 12px;
  }
  .fitness-batch-overview-divider {
    display: none;
  }
  .fitness-batch-overview-item {
    min-width: 100%;
  }
  .fitness-batch-overview-rating {
    flex: 1 1 calc(50% - 12px);
    min-width: calc(50% - 12px);
  }
}

@media (max-width: 480px) {
  .fitness-admin-sidebar .fitness-nav {
    flex-direction: column;
  }
  .fitness-admin-sidebar .fitness-nav-group {
    min-width: 100%;
  }
  .fitness-batch-overview-rating {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* ===== 趋势数据洞察面板 ===== */
.trend-insight {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
}
.trend-insight-title {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 12px;
}
.trend-insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.trend-insight-card {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 12px 14px;
}
.trend-insight-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.trend-insight-metric {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trend-insight-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.trend-insight-now {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.trend-insight-delta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}
.trend-insight-delta.up { color: #16a34a; }
.trend-insight-delta.down { color: #dc2626; }
.trend-insight-delta.flat { color: #94a3b8; }
.trend-insight-grade {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}
.trend-insight-grade.up { color: #16a34a; }
.trend-insight-grade.down { color: #dc2626; }
.trend-insight-grade.flat { color: #94a3b8; }
.trend-insight-cmp {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}
.trend-insight-cmp strong { color: #334155; }
.trend-insight-decline {
  margin-top: 10px;
}
.trend-insight-decline > summary {
  cursor: pointer;
  font-size: 12px;
  color: #dc2626;
  font-weight: 600;
  list-style: none;
  user-select: none;
}
.trend-insight-decline > summary::-webkit-details-marker { display: none; }
.trend-insight-decline > summary::before {
  content: "\25B8";
  display: inline-block;
  margin-right: 4px;
  transition: transform 0.15s ease;
}
.trend-insight-decline[open] > summary::before { transform: rotate(90deg); }
.trend-insight-names {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.trend-decline-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.trend-decline-chip:hover { background: #fee2e2; }
.trend-decline-diff {
  font-weight: 700;
  font-size: 11px;
  opacity: 0.85;
}
.trend-insight-decline-none {
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
}
@media (max-width: 480px) {
  .trend-insight-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ===== 生长趋势 全班/男/女 切换按钮（方案3） ===== */
.growth-gender-switch { display:inline-flex; gap:4px; margin-top:8px; padding:3px; background:#f1f5f9; border-radius:9px; }
.growth-gender-switch .ggs-btn {
  border:none; background:transparent; color:#64748b; font-size:13px; font-weight:600;
  padding:5px 14px; border-radius:7px; cursor:pointer; transition:all .15s ease; line-height:1.2;
}
.growth-gender-switch .ggs-btn:hover { color:#334155; }
.growth-gender-switch .ggs-btn.active { background:#ffffff; color:#2563eb; box-shadow:0 1px 3px rgba(15,23,42,.12); }
/* 洞察面板范围标签 */
.trend-insight-scope-tag {
  display:inline-block; margin-left:8px; padding:1px 9px; font-size:11px; font-weight:600;
  color:#2563eb; background:#eff6ff; border-radius:10px; vertical-align:middle;
}
/* 年级对比：标签 + 男/女值，按当前切换显隐 */
.trend-insight-cmp .cmp-label { margin-right:8px; }
.trend-insight-cmp .cmp-male { margin-right:12px; }
.trend-insight-cmp .cmp-male, .trend-insight-cmp .cmp-female { display:inline; }


/* ========== Lanlan data-first homepage / auth / admin overview ========== */
.data-hero { padding-top: 56px; text-align: left; }
.data-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 34px; align-items: center; max-width: 1180px; margin: 0 auto; }
.data-hero-copy .apple-hero-desc { margin-left: 0; margin-right: 0; }
.data-hero-actions { justify-content: flex-start; }
.hero-chart-card { position: relative; overflow: hidden; border-radius: 34px; padding: 28px; background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(245,248,255,.88)); border: 1px solid rgba(0,113,227,.12); box-shadow: 0 30px 90px rgba(24,55,110,.16); }
.hero-chart-card::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 280px; height: 280px; border-radius: 999px; background: radial-gradient(circle, rgba(0,113,227,.20), transparent 64%); }
.hero-chart-topline { position: relative; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.hero-chart-topline h2 { margin: 6px 0 0; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.03em; }
.hero-live-pill { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; background: rgba(52,199,89,.12); color: #15803d; font-size: 12px; font-weight: 700; }
.hero-trend-svg { position: relative; width: 100%; height: auto; display: block; }
.hero-grid-lines line, .admin-analytics-grid line { stroke: rgba(148,163,184,.28); stroke-width: 1; }
.hero-line-blue, .hero-line-orange, .hero-line-pink { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.hero-line-blue { stroke: #0071e3; } .hero-line-orange { stroke: #ff9f0a; } .hero-line-pink { stroke: #ec4899; stroke-dasharray: 10 8; }
.hero-chart-dots circle { fill: #0071e3; stroke: #fff; stroke-width: 4; }
.hero-axis-labels text { fill: #8e8e93; font-size: 13px; font-weight: 600; }
.hero-chart-legend, .admin-analytics-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; margin-top: 12px; color: #475569; font-size: 13px; }
.hero-chart-legend span, .admin-analytics-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hero-chart-legend i, .admin-analytics-legend i { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.data-stat-strip { margin-top: 8px; }
.home-visual-grid { display: grid; grid-template-columns: 1.25fr .9fr .9fr; gap: 20px; }
.home-visual-card { min-height: 270px; padding: 28px; border-radius: 30px; background: #fbfbfd; border: 1px solid #ececf0; box-shadow: 0 14px 40px rgba(15,23,42,.06); display: flex; flex-direction: column; justify-content: space-between; }
.home-visual-card-large { background: linear-gradient(145deg, #ffffff, #f0f7ff); color: #0f172a; }
.home-visual-head span { display: block; color: #8e8e93; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.home-visual-card-large .home-visual-head span { color: #64748b; }
.home-visual-head strong { display: block; margin-top: 8px; font-size: 24px; letter-spacing: -.02em; }
.home-visual-card p { margin: 18px 0 0; color: #6e6e73; line-height: 1.7; }
.home-visual-card-large p { color: #64748b; }
.mini-bars { height: 136px; display: flex; align-items: end; gap: 14px; padding: 20px 4px 0; }
.mini-bars i { flex: 1; height: var(--h); border-radius: 999px 999px 12px 12px; background: linear-gradient(180deg, var(--c), rgba(255,255,255,.88)); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.mini-sparkline svg { width: 100%; height: auto; margin: 26px 0; }
.mini-sparkline path { fill: none; stroke: #0071e3; stroke-width: 8; stroke-linecap: round; }
.mini-rings { display: flex; gap: 12px; margin: 30px 0; }
.mini-rings span { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #1d1d1f; background: conic-gradient(#0071e3 var(--p), #e5e7eb 0); position: relative; isolation: isolate; font-size: 18px; }
.mini-rings span::before { content: ''; position: absolute; inset: 8px; border-radius: inherit; background: #fbfbfd; z-index: -1; }
.modern-auth-wrapper { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 34px; padding: 44px 0; }
.auth-visual-panel { position: relative; min-height: 520px; border-radius: 36px; overflow: hidden; background: linear-gradient(145deg, #eef6ff, #fff7ed 58%, #fdf2f8); border: 1px solid rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 28px 80px rgba(15,23,42,.12); }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .72; } .auth-orb-blue { width: 240px; height: 240px; background: rgba(0,113,227,.24); left: 8%; top: 12%; } .auth-orb-orange { width: 280px; height: 280px; background: rgba(255,159,10,.22); right: 8%; bottom: 8%; }
.auth-chart-preview { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(78%, 520px); padding: 28px; border-radius: 30px; background: rgba(255,255,255,.76); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 28px 70px rgba(37,99,235,.16); }
.auth-chart-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; color: #6e6e73; } .auth-chart-head strong { color: #1d1d1f; }
.auth-chart-preview svg { width: 100%; height: auto; } .auth-grid { fill: none; stroke: rgba(148,163,184,.28); } .auth-line { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; } .auth-line-a { stroke: #0071e3; } .auth-line-b { stroke: #ff9f0a; stroke-dasharray: 10 8; }
.auth-preview-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; } .auth-preview-metrics span { padding: 8px 10px; border-radius: 999px; background: rgba(0,113,227,.08); color: #2563eb; font-size: 12px; font-weight: 700; }
.modern-auth-card { align-self: center; max-width: none; padding: 34px; border-radius: 30px; box-shadow: 0 24px 70px rgba(15,23,42,.10); }
.modern-auth-card h1 { margin: 8px 0 10px; font-size: 34px; letter-spacing: -.03em; }
.modern-auth-card p { color: #6e6e73; line-height: 1.7; }
.modern-auth-tips { background: #f8fafc; border-color: #e2e8f0; }
.admin-data-stats .stat-card { border: 1px solid rgba(0,113,227,.08); }
.admin-analytics-card { display: grid; grid-template-columns: minmax(0, .86fr) minmax(360px, 1fr); gap: 24px; align-items: center; margin: 0 0 20px; padding: 28px; overflow: hidden; background: linear-gradient(135deg, #f8fbff, #fff7ed); border: 1px solid rgba(0,113,227,.10); }
.admin-analytics-copy h3 { margin: 8px 0 10px; font-size: clamp(22px, 3vw, 34px); line-height: 1.15; letter-spacing: -.03em; }
.admin-analytics-copy p { color: #64748b; line-height: 1.75; margin: 0; }
.admin-analytics-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.admin-analytics-visual { border-radius: 26px; padding: 20px; background: rgba(255,255,255,.78); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 18px 50px rgba(15,23,42,.08); }
.admin-analytics-visual svg { width: 100%; height: auto; display: block; }
.admin-analytics-line { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; } .admin-analytics-line.blue { stroke: #0071e3; } .admin-analytics-line.orange { stroke: #ff9f0a; } .admin-analytics-line.purple { stroke: #8b5cf6; stroke-dasharray: 10 8; }
.admin-analytics-bars rect { fill: rgba(0,113,227,.12); rx: 9; }
.admin-analytics-legend i.blue { background:#0071e3; } .admin-analytics-legend i.orange { background:#ff9f0a; } .admin-analytics-legend i.purple { background:#8b5cf6; }
@media (max-width: 980px) { .data-hero-grid, .modern-auth-wrapper, .admin-analytics-card { grid-template-columns: 1fr; } .home-visual-grid { grid-template-columns: 1fr; } .auth-visual-panel { min-height: 360px; } }
@media (max-width: 640px) { .data-hero { padding-top: 32px; } .hero-chart-card, .home-visual-card, .modern-auth-card, .admin-analytics-card { border-radius: 24px; padding: 22px; } .modern-auth-wrapper { padding: 22px 0; } .auth-visual-panel { display: none; } }

/* ========== Lanlan clean homepage tune ========== */
.clean-home-hero { padding-top: 44px; padding-bottom: 36px; }
.clean-hero-copy .apple-hero-desc { display: none; }
.clean-chart-card { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(240,247,255,.92)); border-color: rgba(59,130,246,.12); box-shadow: 0 32px 90px rgba(37,99,235,.13); }
.clean-chart-card::before { background: radial-gradient(circle, rgba(14,165,233,.18), transparent 64%); }
.clean-chart-card .hero-line-blue { stroke: #3b82f6; }
.clean-chart-card .hero-line-orange { stroke: #06b6d4; }
.clean-chart-card .hero-line-pink { stroke: #8b5cf6; stroke-dasharray: 9 9; }
.clean-chart-card .hero-chart-dots circle { fill: #3b82f6; }
.hero-chart-legend i.legend-blue { background:#3b82f6; }
.hero-chart-legend i.legend-cyan { background:#06b6d4; }
.hero-chart-legend i.legend-violet { background:#8b5cf6; }
.clean-stat-strip { margin-bottom: 8px; }
.clean-visual-section { padding-top: 30px; }
.clean-visual-grid { grid-template-columns: 1.15fr .9fr .9fr; }
.clean-dark-card { background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 54%, #ecfeff 100%); }
.clean-light-card { background: linear-gradient(145deg, #ffffff, #f8fbff); }
.clean-visual-grid .home-visual-card { min-height: 220px; }
.clean-visual-grid .home-visual-card p { display: none; }
.clean-visual-grid .mini-sparkline path { stroke: #3b82f6; }
.clean-visual-grid .mini-rings span { background: conic-gradient(#3b82f6 var(--p), #e0f2fe 0); color: #0f172a; }
.compact-capability-section { padding-top: 28px; }
.compact-feature-grid .apple-feature-card { padding: 24px; min-height: auto; }
.compact-feature-grid .apple-feature-card p { display: none; }
@media (max-width: 980px) { .clean-visual-grid { grid-template-columns: 1fr; } }

/* ========== Lanlan homepage light palette hotfix ========== */
.clean-dark-card,
.home-visual-card-large,
.clean-visual-grid .home-visual-card-large {
  background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 54%, #ecfeff 100%) !important;
  color: #0f172a !important;
  border: 1px solid rgba(59,130,246,.12) !important;
  box-shadow: 0 18px 48px rgba(37,99,235,.10) !important;
}
.clean-dark-card .home-visual-head span,
.home-visual-card-large .home-visual-head span,
.clean-visual-grid .home-visual-card-large .home-visual-head span {
  color: #64748b;
}
.clean-dark-card p,
.home-visual-card-large p,
.clean-visual-grid .home-visual-card-large p {
  color: #64748b;
}
.clean-visual-grid .mini-bars i {
  background: linear-gradient(180deg, var(--c), rgba(255,255,255,.88));
  box-shadow: 0 12px 26px rgba(37,99,235,.12);
}
.clean-chart-card,
.clean-light-card,
.hero-chart-card {
  background: linear-gradient(145deg, #ffffff, #f8fbff 62%, #f0fdfa) !important;
}

/* ========== Lanlan minimal homepage final ========== */
.minimal-home { min-height: calc(100vh - 128px); display: grid; grid-template-columns: minmax(0,.72fr) minmax(420px,1.28fr); align-items: center; gap: 32px; padding: 28px 0 46px; }
.minimal-home-copy h1 { margin: 10px 0 24px; font-size: clamp(42px, 7vw, 86px); line-height: .98; letter-spacing: -.055em; color: #111827; }
.minimal-kicker { color: #64748b; font-size: 17px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.minimal-actions { display:flex; gap: 12px; flex-wrap: wrap; }
.minimal-chart-card { position: relative; overflow: hidden; border-radius: 34px; padding: 28px; background: linear-gradient(145deg, #ffffff 0%, #f8fbff 58%, #eff6ff 100%); border: 1px solid rgba(59,130,246,.12); box-shadow: 0 28px 80px rgba(37,99,235,.12); }
.minimal-chart-card::before { content:''; position:absolute; width:320px; height:320px; border-radius:50%; right:-120px; top:-140px; background: radial-gradient(circle, rgba(34,211,238,.18), transparent 66%); }
.minimal-chart-head { position: relative; display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:10px; }
.minimal-chart-head span { color:#64748b; font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.minimal-chart-head strong { color:#0f172a; font-size:18px; }
.minimal-chart-card svg { position: relative; display:block; width:100%; height:auto; }
.minimal-grid line { stroke: rgba(148,163,184,.22); stroke-width: 1; }
.minimal-line { fill:none; stroke-width:5; stroke-linecap:round; stroke-linejoin:round; }
.minimal-line.line-main { stroke:#3b82f6; }
.minimal-line.line-second { stroke:#06b6d4; }
.minimal-line.line-third { stroke:#8b5cf6; stroke-dasharray:10 10; }
.minimal-dots circle { fill:#3b82f6; stroke:#fff; stroke-width:4; }
.minimal-legend { display:flex; justify-content:center; gap:18px; color:#475569; font-size:13px; font-weight:700; }
.minimal-legend span { display:inline-flex; align-items:center; gap:6px; }
.minimal-legend i { width:10px; height:10px; border-radius:50%; display:inline-block; }
.minimal-legend .a { background:#3b82f6; } .minimal-legend .b { background:#06b6d4; } .minimal-legend .c { background:#8b5cf6; }
@media (max-width: 980px) { .minimal-home { min-height:auto; grid-template-columns:1fr; padding-top:22px; } .minimal-home-copy { text-align:center; } .minimal-actions { justify-content:center; } }
@media (max-width: 640px) { .minimal-home { gap:18px; padding:18px 0 30px; } .minimal-home-copy h1 { font-size: clamp(38px, 14vw, 58px); margin-bottom:18px; } .minimal-chart-card { border-radius:26px; padding:18px; } .minimal-chart-head strong { display:none; } }


/* ========== SVG black-fill safety + insight cards ========== */
.minimal-chart-card svg path.minimal-line { fill: none !important; }
.minimal-insight-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.minimal-insight-row div { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.76); border: 1px solid rgba(59,130,246,.10); box-shadow: 0 10px 24px rgba(37,99,235,.06); }
.minimal-insight-row strong { display:block; color:#0f172a; font-size:18px; margin-bottom:4px; }
.minimal-insight-row span { color:#64748b; font-size:12px; font-weight:700; }
@media (max-width: 640px) { .minimal-insight-row { grid-template-columns: 1fr; } }


/* ========== Integrated homepage legend + capabilities ========== */
.integrated-legend { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.integrated-legend span { justify-content: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.78); border: 1px solid rgba(59,130,246,.10); box-shadow: 0 8px 22px rgba(37,99,235,.05); }
.integrated-legend strong { color: #0f172a; font-size: 14px; }
.integrated-legend em { color: #64748b; font-style: normal; font-size: 12px; font-weight: 700; margin-left: auto; white-space: nowrap; }
.home-capability-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: -22px 0 34px; }
.home-capability-strip a { display: block; padding: 18px 20px; border-radius: 22px; text-decoration: none; background: linear-gradient(145deg, #fff, #f8fbff); border: 1px solid rgba(148,163,184,.18); box-shadow: 0 12px 30px rgba(15,23,42,.05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.home-capability-strip a:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(37,99,235,.10); border-color: rgba(59,130,246,.24); }
.home-capability-strip strong { display: block; color: #0f172a; font-size: 18px; letter-spacing: -.02em; }
.home-capability-strip span { display: block; margin-top: 6px; color: #64748b; font-size: 13px; line-height: 1.45; }
@media (max-width: 980px) { .home-capability-strip { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 0; } }
@media (max-width: 640px) { .integrated-legend, .home-capability-strip { grid-template-columns: 1fr; } .integrated-legend em { margin-left: 0; } }

/* ========== Premium minimal homepage, OpenAI/Claude inspired ========== */
.premium-home { min-height: calc(100vh - 124px); display: grid; grid-template-columns: minmax(0,.82fr) minmax(420px,1.18fr); align-items: center; gap: clamp(24px, 5vw, 64px); padding: clamp(34px, 7vw, 86px) 0 46px; }
.premium-hero { max-width: 620px; }
.premium-kicker { color: #64748b; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.premium-hero h1 { margin: 14px 0 16px; color: #0f172a; font-size: clamp(48px, 8vw, 96px); line-height: .95; letter-spacing: -.07em; font-weight: 800; }
.premium-hero p { margin: 0; max-width: 520px; color: #475569; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.45; letter-spacing: -.02em; }
.premium-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.premium-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-size: 16px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.premium-btn.primary { color: #fff; background: linear-gradient(135deg, #2563eb, #3b82f6); box-shadow: 0 14px 34px rgba(37,99,235,.22); }
.premium-btn.ghost { color: #0f172a; background: rgba(255,255,255,.72); border: 1px solid rgba(148,163,184,.24); }
.premium-btn:hover { transform: translateY(-2px); }
.premium-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.premium-orb { position: absolute; border-radius: 999px; filter: blur(10px); opacity: .7; pointer-events: none; }
.orb-a { width: 330px; height: 330px; left: 2%; top: 7%; background: radial-gradient(circle, rgba(96,165,250,.34), transparent 68%); }
.orb-b { width: 360px; height: 360px; right: 0; bottom: 0; background: radial-gradient(circle, rgba(34,211,238,.28), transparent 68%); }
.orb-c { width: 260px; height: 260px; right: 28%; top: 12%; background: radial-gradient(circle, rgba(167,139,250,.24), transparent 66%); }
.premium-glass-panel { position: relative; width: min(100%, 720px); padding: clamp(18px, 3vw, 30px); border-radius: clamp(28px, 4vw, 42px); background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(248,251,255,.70)); border: 1px solid rgba(255,255,255,.86); box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 36px 100px rgba(37,99,235,.14); backdrop-filter: blur(22px); overflow: hidden; }
.premium-glass-panel::after { content: ''; position: absolute; inset: auto -20% -42% 25%; height: 220px; background: radial-gradient(ellipse, rgba(59,130,246,.16), transparent 70%); pointer-events: none; }
.premium-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #64748b; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.premium-panel-top i { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 6px rgba(34,197,94,.12); }
.premium-glass-panel svg { position: relative; display: block; width: 100%; height: auto; margin: 8px 0 6px; }
.premium-panel-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; position: relative; }
.premium-panel-metrics div { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.74); border: 1px solid rgba(148,163,184,.16); }
.premium-panel-metrics strong { display: block; color: #0f172a; font-size: 22px; line-height: 1; }
.premium-panel-metrics span { display: block; margin-top: 5px; color: #64748b; font-size: 12px; font-weight: 700; }
@media (max-width: 980px) { .premium-home { grid-template-columns: 1fr; min-height: auto; text-align: center; padding-top: 36px; } .premium-hero { max-width: none; margin: 0 auto; } .premium-hero p { margin: 0 auto; } .premium-actions { justify-content: center; } .premium-visual { min-height: auto; } .premium-capabilities { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) { .premium-home { gap: 24px; padding: 28px 0 26px; } .premium-hero h1 { font-size: clamp(44px, 15vw, 68px); } .premium-hero p { font-size: 17px; } .premium-glass-panel { border-radius: 28px; padding: 16px; } .premium-panel-metrics { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .premium-panel-metrics div { padding: 10px; border-radius: 14px; } .premium-panel-metrics strong { font-size: 18px; } .premium-panel-metrics span { font-size: 11px; } .premium-capabilities { grid-template-columns: 1fr; gap: 10px; } .premium-capabilities a { min-height: auto; padding: 18px; border-radius: 22px; } .premium-capabilities strong { margin-top: 14px; } }


.premium-mini-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.premium-mini-pills a { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; height: 38px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: #0f172a; background: rgba(255,255,255,.72); border: 1px solid rgba(148,163,184,.18); font-size: 14px; font-weight: 700; box-shadow: 0 8px 20px rgba(15,23,42,.05); }
@media (max-width: 980px) { .premium-mini-pills { justify-content: center; } }
@media (max-width: 640px) { .premium-mini-pills { gap: 8px; } .premium-mini-pills a { height: 34px; min-width: 64px; font-size: 13px; } }


/* ========== Hide legacy homepage metric text ========== */
.premium-panel-metrics { display: none !important; }
.premium-glass-panel svg { margin-bottom: 0; }

/* ========== Luxe redesign: homepage + login ========== */
:root {
  --lux-bg: #f6f4ef;
  --lux-surface: rgba(255, 255, 255, 0.76);
  --lux-border: rgba(148, 163, 184, 0.18);
  --lux-text: #102033;
  --lux-muted: #5f6b7a;
  --lux-blue: #2563eb;
  --lux-cyan: #06b6d4;
  --lux-coral: #fb7185;
  --lux-gold: #f59e0b;
  --lux-shadow: 0 24px 80px rgba(16, 32, 51, 0.12);
}

body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 26%),
    radial-gradient(circle at 90% 12%, rgba(251, 113, 133, 0.08), transparent 22%),
    linear-gradient(180deg, #f7f5f1 0%, #f3f6fb 100%);
  color: var(--lux-text);
}

.topbar {
  background: rgba(247, 245, 241, 0.82);
  border-bottom-color: rgba(16, 32, 51, 0.08);
}

.brand-title {
  background: linear-gradient(135deg, #2b4cc7, #0f766e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav a {
  font-weight: 600;
  color: #304152;
}

.nav a:hover {
  color: var(--lux-blue);
  background: rgba(37, 99, 235, 0.08);
}

.card {
  background: var(--lux-surface);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--lux-shadow);
  backdrop-filter: blur(22px);
}

.lux-home {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: calc(100vh - 132px);
  padding: clamp(28px, 5vw, 72px) 0 40px;
}

.lux-home-copy h1,
.lux-section-head h2,
.lux-auth-story h1,
.lux-login-card h1 {
  margin: 10px 0 14px;
  color: #102033;
  letter-spacing: -0.05em;
  line-height: 0.96;
  font-weight: 800;
}

.lux-home-copy h1 {
  font-size: clamp(50px, 7vw, 92px);
  max-width: 8ch;
}

.lux-kicker,
.lux-section-kicker,
.lux-auth-badge,
.lux-login-mark {
  color: #5c6b7a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.lux-home-copy p,
.lux-section-head p,
.lux-auth-story p,
.lux-login-card p {
  color: var(--lux-muted);
  line-height: 1.7;
  font-size: 17px;
  max-width: 54ch;
}

.lux-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.lux-btn,
.lux-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.lux-btn.primary,
.lux-submit {
  color: #fff;
  background: linear-gradient(135deg, var(--lux-blue), var(--lux-cyan));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.lux-btn.secondary {
  color: #102033;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--lux-border);
}

.lux-btn:hover,
.lux-submit:hover {
  transform: translateY(-2px);
}

.lux-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.lux-tags span,
.lux-inline-notes span,
.lux-auth-metrics span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #203040;
  font-size: 13px;
  font-weight: 700;
}

.lux-stats-row,
.lux-capability-grid,
.lux-auth-metrics {
  display: grid;
  gap: 12px;
}

.lux-stats-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.lux-stats-row div,
.lux-capability-grid article,
.lux-dashboard-grid article {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 14px 30px rgba(16, 32, 51, 0.05);
}

.lux-stats-row strong,
.lux-dashboard-grid strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: #102033;
}

.lux-stats-row span,
.lux-dashboard-grid span {
  display: block;
  margin-top: 6px;
  color: var(--lux-muted);
  font-size: 12px;
  font-weight: 700;
}

.lux-home-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.lux-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
}

.blob-a { width: 360px; height: 360px; background: radial-gradient(circle, rgba(37,99,235,.24), transparent 66%); left: 4%; top: 6%; }
.blob-b { width: 280px; height: 280px; background: radial-gradient(circle, rgba(6,182,212,.18), transparent 68%); right: 2%; bottom: 2%; }
.blob-c { width: 220px; height: 220px; background: radial-gradient(circle, rgba(251,113,133,.14), transparent 66%); right: 24%; top: 12%; }

.lux-hero-card,
.lux-auth-board {
  position: relative;
  width: min(100%, 760px);
  padding: clamp(20px, 3vw, 30px);
  border-radius: clamp(28px, 4vw, 40px);
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(246,248,252,.72));
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 36px 90px rgba(16, 32, 51, .14);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.lux-hero-card::after,
.lux-auth-board::after {
  content: '';
  position: absolute;
  inset: auto -18% -30% 18%;
  height: 210px;
  background: radial-gradient(ellipse, rgba(37,99,235,.14), transparent 70%);
  pointer-events: none;
}

.lux-card-top,
.lux-auth-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lux-card-top em,
.lux-auth-board-head strong {
  color: var(--lux-blue);
  font-style: normal;
}

.lux-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.lux-hero-card svg,
.lux-auth-board svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.lux-inline-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.lux-section {
  padding: 10px 0 56px;
}

.lux-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.lux-section-head h2 {
  font-size: clamp(28px, 4vw, 48px);
  max-width: 12ch;
}

.lux-capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lux-capability-grid article h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -.03em;
}

.lux-capability-grid article p {
  margin: 0;
  color: var(--lux-muted);
  line-height: 1.65;
  font-size: 14px;
}

.lux-auth-shell {
  min-height: calc(100vh - 132px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 480px;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 72px) 0 40px;
}

.lux-auth-story h1 {
  font-size: clamp(38px, 5vw, 62px);
  max-width: 12ch;
}

.lux-auth-story p { max-width: 42ch; }

.lux-auth-board { width: min(100%, 500px); margin-top: 28px; }
.lux-auth-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }

.lux-login-card {
  max-width: 500px;
  margin-left: auto;
  padding: 34px;
  border-radius: 32px;
}

.lux-login-mark { margin-bottom: 6px; color: var(--lux-blue); }

.lux-login-card h1 {
  font-size: clamp(32px, 4.8vw, 52px);
}

.lux-form { display: grid; gap: 14px; margin-top: 22px; }
.lux-form label span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 800; color: #203040; }
.lux-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(247, 250, 255, .9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}
.lux-form input:focus {
  border-color: rgba(37, 99, 235, .45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.lux-submit { width: 100%; margin-top: 4px; }
.lux-login-tips {
  margin-top: 16px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 1080px) {
  .lux-home,
  .lux-auth-shell,
  .lux-section-head {
    grid-template-columns: 1fr;
  }
  .lux-home,
  .lux-auth-shell {
    min-height: auto;
    text-align: center;
  }
  .lux-home-copy,
  .lux-auth-story {
    margin: 0 auto;
  }
  .lux-actions,
  .lux-tags {
    justify-content: center;
  }
  .lux-home-visual,
  .lux-auth-board,
  .lux-login-card {
    margin-left: auto;
    margin-right: auto;
  }
  .lux-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .lux-home,
  .lux-auth-shell {
    padding: 24px 0 24px;
    gap: 22px;
  }
  .lux-home-copy h1 {
    max-width: none;
  }
  .lux-dashboard-grid,
  .lux-stats-row,
  .lux-inline-notes,
  .lux-auth-metrics,
  .lux-capability-grid {
    grid-template-columns: 1fr;
  }
  .lux-hero-card,
  .lux-auth-board,
  .lux-login-card {
    border-radius: 26px;
    padding: 20px;
  }
  .lux-home-visual {
    min-height: auto;
  }
  .lux-home-copy p,
  .lux-section-head p,
  .lux-auth-story p,
  .lux-login-card p {
    font-size: 16px;
  }
}


/* ========== Luxe V3 safety patch ========== */
.lux-login-card, .lux-hero-card, .lux-auth-board { position: relative; }

/* ========== Luxe V4: centered desktop, mobile auth polish, scroll motion ========== */
html { --lux-scroll: 0; }
.container:not(.admin-container) {
  width: min(1060px, calc(100vw - 44px));
  padding-left: 0;
  padding-right: 0;
}

.lux-auth-shell {
  grid-template-columns: minmax(0, 470px) 400px !important;
  justify-content: center !important;
  gap: clamp(26px, 3.2vw, 44px) !important;
  min-height: calc(100vh - 118px);
  padding: clamp(22px, 3vw, 42px) 0 26px !important;
}

.lux-auth-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14%;
  bottom: 16%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(37,99,235,.14), rgba(6,182,212,.08), transparent);
  transform: translateX(-50%) translateY(calc(var(--lux-scroll) * -18px));
  pointer-events: none;
}

.lux-auth-story {
  max-width: 470px;
  align-self: center;
}

.lux-auth-story h1 {
  max-width: 12ch !important;
  font-size: clamp(26px, 2.65vw, 36px) !important;
  line-height: 1.1 !important;
}

.lux-auth-story p { max-width: 40ch; font-size: 14px !important; }
.lux-auth-board { max-width: 360px !important; margin-top: 18px !important; padding: 18px !important; border-radius: 28px !important; }
.lux-auth-board svg { max-height: 160px !important; }
.lux-auth-metrics { gap: 8px !important; margin-top: 10px !important; }
.lux-auth-metrics span { padding: 8px 9px !important; font-size: 11px !important; }

.lux-login-card {
  justify-self: start !important;
  max-width: 400px !important;
  padding: 28px !important;
  border-radius: 30px !important;
}

.lux-login-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.95) 0 18%, transparent 19%),
    linear-gradient(135deg, rgba(37,99,235,.98), rgba(6,182,212,.9));
  box-shadow: 0 16px 34px rgba(37,99,235,.22), inset 0 1px 0 rgba(255,255,255,.38);
  position: relative;
  overflow: hidden;
}
.lux-login-icon::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 9px;
  bottom: 10px;
  height: 10px;
  border: 2px solid rgba(255,255,255,.86);
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 12px 0;
  transform: rotate(-18deg);
}

.lux-login-mark { letter-spacing: .08em !important; margin-bottom: 4px; }
.lux-login-card .eyebrow { opacity: .72; padding-left: 0; }
.lux-login-card h1 { font-size: clamp(27px, 2.75vw, 36px) !important; line-height: 1.06 !important; }
.lux-login-card p { font-size: 14px !important; line-height: 1.6 !important; }

/* Homepage desktop: same centered rhythm, no fake middle void */
.lux-home {
  grid-template-columns: minmax(0, 450px) minmax(420px, 540px) !important;
  justify-content: center !important;
  gap: clamp(28px, 3.8vw, 48px) !important;
  min-height: calc(100vh - 118px) !important;
}
.lux-home-copy h1 { max-width: 9.4ch !important; font-size: clamp(38px, 4.45vw, 58px) !important; }
.lux-hero-card { max-width: 540px !important; }
.lux-home-visual { min-height: 440px !important; }

/* Scroll-responsive polish */
.lux-auth-board,
.lux-hero-card {
  transform: translate3d(var(--lux-x, 0px), calc(var(--lux-y, 0px) + var(--lux-scroll) * -18px), 0) !important;
}
.lux-login-card {
  transform: translate3d(var(--lux-x, 0px), calc(var(--lux-y, 0px) + var(--lux-scroll) * -8px), 0) !important;
}
.lux-auth-story,
.lux-home-copy {
  transform: translateY(calc(var(--lux-scroll) * 10px));
}

@media (max-width: 980px) {
  .container:not(.admin-container) { width: min(720px, calc(100vw - 32px)); }
  .lux-auth-shell::before { display: none; }
  .lux-auth-shell,
  .lux-home {
    grid-template-columns: 1fr !important;
    justify-content: stretch !important;
    gap: 20px !important;
    min-height: auto !important;
  }
  .lux-login-card,
  .lux-auth-story,
  .lux-auth-board,
  .lux-home-copy,
  .lux-hero-card {
    max-width: none !important;
    width: 100% !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 720px) {
  .topbar { padding: 9px 12px !important; }
  .brand-logo { width: 30px !important; height: 30px !important; border-radius: 11px !important; }
  .brand-title { font-size: 15px !important; }
  .nav a { padding: 6px 8px !important; font-size: 12px !important; }
  .container:not(.admin-container) { width: min(100% - 20px, 430px); padding-top: 10px !important; }

  .lux-auth-shell {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 10px 0 22px !important;
  }
  .lux-login-card {
    order: 1;
    padding: 20px !important;
    border-radius: 24px !important;
  }
  .lux-login-icon {
    display: block;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
  }
  .lux-login-mark { font-size: 10px !important; margin-bottom: 2px !important; }
  .lux-login-card .eyebrow { display: none !important; }
  .lux-login-card h1 { font-size: clamp(24px, 7.2vw, 30px) !important; margin: 4px 0 8px !important; }
  .lux-login-card p { font-size: 12.5px !important; line-height: 1.55 !important; margin-bottom: 12px; }
  .lux-form { gap: 10px !important; margin-top: 12px !important; }
  .lux-form label span { font-size: 12px !important; margin-bottom: 5px !important; }
  .lux-form input { min-height: 43px !important; padding: 10px 12px !important; border-radius: 14px !important; }
  .lux-submit { min-height: 44px !important; }
  .lux-login-tips { font-size: 11.5px !important; margin-top: 10px !important; }

  .lux-auth-story {
    order: 2;
    padding: 0 !important;
  }
  .lux-auth-badge,
  .lux-auth-story h1,
  .lux-auth-story > p { display: none !important; }
  .lux-auth-board {
    display: block !important;
    margin-top: 0 !important;
    padding: 14px !important;
    border-radius: 22px !important;
  }
  .lux-auth-board svg { max-height: 126px !important; }
  .lux-auth-board-head { margin-bottom: 5px !important; font-size: 10px !important; letter-spacing: .1em !important; }
  .lux-auth-metrics { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; margin-top: 8px !important; }
  .lux-auth-metrics span { padding: 7px 3px !important; font-size: 10px !important; text-align: center; }

  .lux-home { padding-top: 12px !important; }
  .lux-home-copy h1 { max-width: 9.2ch !important; font-size: clamp(31px, 9.2vw, 40px) !important; }
  .lux-home-copy p { font-size: 13px !important; }
  .lux-actions { grid-template-columns: 1fr 1fr !important; gap: 9px !important; }
  .lux-tags { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .lux-stats-row { grid-template-columns: repeat(3, 1fr) !important; gap: 7px !important; }
  .lux-stats-row div { padding: 10px 6px !important; text-align: center; }
  .lux-stats-row strong { font-size: 18px !important; }
  .lux-stats-row span { font-size: 10px !important; }
  .lux-hero-card { padding: 14px !important; border-radius: 22px !important; }
  .lux-dashboard-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }
  .lux-dashboard-grid article { padding: 9px 5px !important; text-align: center; }
  .lux-dashboard-grid strong { font-size: 17px !important; }
  .lux-dashboard-grid span { font-size: 10px !important; }
  .lux-hero-card svg { max-height: 176px !important; }
}

@media (max-width: 420px) {
  .brand-title { max-width: 7.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lux-stats-row,
  .lux-dashboard-grid { grid-template-columns: 1fr !important; }
  .lux-actions,
  .lux-tags { grid-template-columns: 1fr !important; }
}

/* ========== Luxe V5: no parallax, clean homepage copy, numeric/status motion only ========== */
.brand { cursor: pointer; text-decoration: none; }
.brand:hover .brand-title { filter: brightness(1.08); }

.lux-actions { grid-template-columns: auto !important; }
.lux-actions .lux-btn.primary { min-width: 132px; }
.lux-section-head h2 {
  font-size: clamp(24px, 3vw, 36px) !important;
  line-height: 1.16 !important;
  letter-spacing: -0.035em !important;
  max-width: 15ch !important;
}
.lux-section { padding-top: 0 !important; }

.lux-auth-board,
.lux-hero-card,
.lux-login-card,
.lux-auth-story,
.lux-home-copy,
[data-lux-parallax] {
  transform: none !important;
  transition-property: opacity, box-shadow, border-color, background !important;
}
.lux-auth-shell::before { transform: translateX(-50%) !important; }
.lux-blob { animation: none !important; opacity: .55; }
.lux-login-card::after,
.lux-hero-card::before,
.lux-auth-board::before { display: none !important; }
.lux-submit,
.lux-btn.primary { animation: none !important; }

@keyframes luxNumberLift {
  0%, 100% { opacity: .96; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.15); }
}
@keyframes luxStatusBlink {
  0%, 100% { opacity: .78; box-shadow: 0 0 0 0 rgba(34,197,94,.18); }
  50% { opacity: 1; box-shadow: 0 0 0 7px rgba(34,197,94,0); }
}
@keyframes luxDashFlow {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

.lux-dashboard-grid strong,
.lux-stats-row strong {
  animation: luxNumberLift 3.4s ease-in-out infinite;
}
.lux-dashboard-grid article:nth-child(2) strong,
.lux-stats-row div:nth-child(2) strong { animation-delay: .45s; }
.lux-dashboard-grid article:nth-child(3) strong,
.lux-stats-row div:nth-child(3) strong { animation-delay: .9s; }
.lux-card-top em::before,
.lux-auth-board-head strong::before {
  animation: luxStatusBlink 1.9s ease-in-out infinite !important;
}
.lux-hero-card svg path[stroke="url(#luxWarm)"],
.lux-auth-board svg path[stroke="url(#authCoral)"] {
  animation: luxDashFlow 1.8s linear infinite !important;
}

@media (max-width: 720px) {
  .lux-section-head h2 { font-size: clamp(22px, 6.4vw, 28px) !important; max-width: none !important; }
  .lux-actions { display: block !important; }
  .lux-actions .lux-btn.primary { width: 100%; }
}

/* ========== Luxe V6: mobile homepage compact + Safari safe area ========== */
@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  body { padding-bottom: env(safe-area-inset-bottom, 0); }
  .container:not(.admin-container) {
    width: min(100% - 22px, 420px) !important;
    padding-top: 8px !important;
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .topbar {
    min-height: 56px !important;
    padding: 8px 12px !important;
  }
  .brand { gap: 8px !important; min-width: 0; }
  .brand-logo { width: 30px !important; height: 30px !important; }
  .brand-title { font-size: 15px !important; max-width: 8em; }
  .nav { gap: 4px !important; }
  .nav a {
    font-size: 12px !important;
    padding: 6px 8px !important;
    border-radius: 999px !important;
  }
  .nav a[href="/login"] {
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
    box-shadow: 0 8px 18px rgba(37,99,235,.18);
  }

  .lux-home {
    padding: 18px 0 18px !important;
    gap: 14px !important;
    text-align: center !important;
  }
  .lux-kicker {
    font-size: 11px !important;
    letter-spacing: .18em !important;
    margin-bottom: 8px !important;
  }
  .lux-home-copy h1 {
    max-width: none !important;
    font-size: clamp(35px, 10vw, 44px) !important;
    line-height: 1.02 !important;
    margin: 4px 0 10px !important;
    letter-spacing: -0.055em !important;
  }
  .lux-home-copy p {
    max-width: 29em !important;
    margin: 0 auto !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
  }
  .lux-actions {
    margin-top: 18px !important;
    display: block !important;
  }
  .lux-actions .lux-btn.primary {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 24px !important;
    font-size: 15px !important;
    box-shadow: 0 12px 26px rgba(37,99,235,.20) !important;
  }

  .lux-tags {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    margin-top: 18px !important;
  }
  .lux-tags span {
    width: 100% !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 18px !important;
    font-size: 13px !important;
    box-shadow: 0 8px 18px rgba(16,32,51,.045) !important;
  }

  .lux-stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }
  .lux-stats-row div {
    min-width: 0 !important;
    padding: 12px 6px !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 18px rgba(16,32,51,.045) !important;
  }
  .lux-stats-row strong { font-size: 20px !important; }
  .lux-stats-row span {
    margin-top: 5px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  .lux-home-visual { min-height: auto !important; margin-top: 8px !important; }
  .lux-hero-card {
    padding: 16px 14px 18px !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 46px rgba(16,32,51,.10) !important;
  }
  .lux-card-top {
    margin-bottom: 12px !important;
    font-size: 10px !important;
    letter-spacing: .28em !important;
  }
  .lux-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
  }
  .lux-dashboard-grid article {
    padding: 11px 4px !important;
    border-radius: 18px !important;
  }
  .lux-dashboard-grid strong { font-size: 19px !important; }
  .lux-dashboard-grid span { font-size: 10px !important; line-height: 1.2 !important; }
  .lux-hero-card svg {
    height: 210px !important;
    max-height: 210px !important;
    margin-top: 2px !important;
  }
  .lux-inline-notes {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 7px !important;
    margin-top: 8px !important;
  }
  .lux-inline-notes span {
    font-size: 10px !important;
    padding: 7px 2px !important;
  }

  .lux-section {
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 390px) {
  .lux-home-copy h1 { font-size: clamp(32px, 9.5vw, 38px) !important; }
  .lux-home-copy p { font-size: 12.5px !important; }
  .lux-dashboard-grid,
  .lux-stats-row { gap: 6px !important; }
  .lux-dashboard-grid strong,
  .lux-stats-row strong { font-size: 17px !important; }
}

/* ========== Luxe V7: clean mobile + CSS-only repeated number/curve motion ========== */
@keyframes luxMetricBreatheV7 {
  0%, 100% { transform: translateY(0) scale(1); color: #102033; filter: brightness(1); }
  40% { transform: translateY(-2px) scale(1.035); color: #2563eb; filter: brightness(1.12); }
  70% { transform: translateY(0) scale(1); color: #0f766e; filter: brightness(1.04); }
}
@keyframes luxCurveRunV7 {
  0% { stroke-dashoffset: 0; filter: drop-shadow(0 0 0 rgba(37,99,235,0)); }
  50% { stroke-dashoffset: -42; filter: drop-shadow(0 0 8px rgba(37,99,235,.22)); }
  100% { stroke-dashoffset: -84; filter: drop-shadow(0 0 0 rgba(37,99,235,0)); }
}
@keyframes luxCurveDashV7 {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -48; }
}
@keyframes luxPointPulseV7 {
  0%,100% { r: 8; opacity: .9; }
  50% { r: 10; opacity: 1; }
}

.lux-dashboard-grid strong,
.lux-stats-row strong,
.lux-auth-board-head strong {
  display: inline-block;
  animation: luxMetricBreatheV7 3.2s ease-in-out infinite !important;
}
.lux-dashboard-grid article:nth-child(2) strong,
.lux-stats-row div:nth-child(2) strong { animation-delay: .45s !important; }
.lux-dashboard-grid article:nth-child(3) strong,
.lux-stats-row div:nth-child(3) strong { animation-delay: .9s !important; }

.lux-hero-card svg path[stroke="url(#luxBlue)"],
.lux-auth-board svg path[stroke="url(#authBlue)"] {
  stroke-dasharray: 28 10 120 10 !important;
  animation: luxCurveRunV7 3.6s linear infinite !important;
}
.lux-hero-card svg path[stroke="url(#luxWarm)"],
.lux-auth-board svg path[stroke="url(#authCoral)"] {
  stroke-dasharray: 10 12 !important;
  animation: luxCurveDashV7 2.2s linear infinite !important;
}
.lux-hero-card svg circle,
.lux-auth-board svg circle {
  animation: luxPointPulseV7 2.4s ease-in-out infinite !important;
}

.lux-login-icon { display: none !important; }

@media (max-width: 720px) {
  /* Mobile homepage: stop cramming many boxes into one screen */
  .lux-home {
    text-align: center !important;
    padding-top: 14px !important;
    gap: 12px !important;
  }
  .lux-home-copy,
  .lux-home-copy h1,
  .lux-home-copy p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .lux-home-copy h1 {
    width: 100% !important;
    max-width: none !important;
    font-size: clamp(34px, 9.4vw, 42px) !important;
    line-height: 1.05 !important;
  }
  .lux-kicker { text-align: center !important; }
  .lux-tags,
  .lux-stats-row {
    display: none !important;
  }
  .lux-actions { margin-top: 16px !important; }
  .lux-actions .lux-btn.primary {
    max-width: 320px !important;
    margin: 0 auto !important;
  }

  .lux-home-visual { margin-top: 14px !important; }
  .lux-hero-card {
    padding: 15px !important;
    border-radius: 24px !important;
  }
  .lux-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  .lux-dashboard-grid article {
    padding: 10px 4px !important;
    box-shadow: none !important;
    background: rgba(255,255,255,.62) !important;
  }
  .lux-dashboard-grid strong { font-size: 20px !important; }
  .lux-hero-card svg {
    height: 190px !important;
    max-height: 190px !important;
  }
  .lux-inline-notes { display: none !important; }

  /* Mobile login: remove decorative icon, keep chart motion as the visual interest */
  .lux-login-card { padding-top: 20px !important; }
  .lux-login-mark { text-align: left !important; }
  .lux-auth-board {
    display: block !important;
    padding: 14px !important;
  }
  .lux-auth-board svg {
    height: 126px !important;
    max-height: 126px !important;
  }
}

/* ========== Luxe V8: cleaner mobile login vertical rhythm ========== */
@media (max-width: 720px) {
  .lux-auth-shell {
    padding-top: clamp(44px, 13vh, 82px) !important;
  }
  .lux-login-card {
    padding: 24px 20px 22px !important;
  }
  .lux-login-card h1 {
    margin: 8px 0 18px !important;
  }
  .lux-form {
    margin-top: 0 !important;
  }
  .lux-auth-story {
    margin-top: 12px !important;
  }
}

/* ========== Luxe V9: restore desktop login presence + add auth stats ========== */
.lux-auth-shell {
  grid-template-columns: minmax(0, 540px) 470px !important;
  gap: clamp(38px, 5vw, 76px) !important;
  min-height: calc(100vh - 104px) !important;
  padding: clamp(44px, 5vw, 74px) 0 44px !important;
}
.lux-auth-story { max-width: 540px !important; }
.lux-auth-story h1 {
  max-width: 12.6ch !important;
  font-size: clamp(34px, 3.6vw, 54px) !important;
  line-height: 1.03 !important;
}
.lux-auth-board {
  max-width: 500px !important;
  padding: 24px !important;
  border-radius: 34px !important;
  margin-top: 24px !important;
}
.lux-auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 8px;
}
.lux-auth-stats article {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(148,163,184,.14);
  box-shadow: 0 10px 24px rgba(16,32,51,.045);
}
.lux-auth-stats strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  color: #102033;
  animation: luxMetricBreatheV7 3.2s ease-in-out infinite !important;
}
.lux-auth-stats article:nth-child(2) strong { animation-delay: .45s !important; }
.lux-auth-stats article:nth-child(3) strong { animation-delay: .9s !important; }
.lux-auth-stats span {
  display: block;
  margin-top: 6px;
  color: #5f6b7a;
  font-size: 11px;
  font-weight: 800;
}
.lux-auth-board svg { max-height: 190px !important; }
.lux-login-card {
  max-width: 470px !important;
  padding: 38px 40px !important;
  border-radius: 34px !important;
}
.lux-login-card h1 {
  font-size: clamp(36px, 3.4vw, 50px) !important;
  margin: 8px 0 22px !important;
}
.lux-form { gap: 18px !important; margin-top: 0 !important; }
.lux-form input {
  min-height: 52px !important;
  border-radius: 18px !important;
}
.lux-submit { min-height: 56px !important; margin-top: 6px !important; }

@media (max-width: 980px) {
  .lux-auth-shell {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding: 22px 0 28px !important;
  }
  .lux-auth-story h1 { font-size: clamp(28px, 7vw, 42px) !important; }
  .lux-auth-board,
  .lux-login-card { max-width: none !important; }
}

@media (max-width: 720px) {
  .lux-login-card {
    max-width: none !important;
    padding: 24px 20px 22px !important;
    border-radius: 24px !important;
  }
  .lux-login-card h1 {
    font-size: clamp(24px, 7.2vw, 30px) !important;
    margin: 8px 0 18px !important;
  }
  .lux-form { gap: 10px !important; }
  .lux-form input { min-height: 43px !important; border-radius: 14px !important; }
  .lux-auth-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 8px 0 4px;
  }
  .lux-auth-stats article {
    padding: 9px 4px;
    border-radius: 14px;
    box-shadow: none;
  }
  .lux-auth-stats strong { font-size: 16px; }
  .lux-auth-stats span { font-size: 9px; line-height: 1.2; }
}

/* ========== Luxe V10: desktop auth headline smaller + mobile gap trim ========== */
@media (min-width: 981px) {
  .lux-auth-story h1 {
    font-size: clamp(28px, 2.8vw, 42px) !important;
    line-height: 1.08 !important;
    max-width: 12.8ch !important;
  }
}

@media (max-width: 720px) {
  .lux-auth-shell {
    padding-top: clamp(20px, 6vh, 38px) !important;
    gap: 8px !important;
  }
  .lux-auth-story {
    margin-top: 4px !important;
  }
  .lux-auth-board {
    margin-top: 0 !important;
  }
}

/* ========== Luxe V11: remove capabilities section spacing fix ========== */
.lux-home {
  padding-bottom: clamp(36px, 5vw, 64px) !important;
}
@media (max-width: 720px) {
  .lux-home {
    padding-top: 18px !important;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .lux-home-visual {
    margin-bottom: 10px !important;
  }
}

/* ========== Luxe V12: mobile header alignment + hero density ========== */
@media (max-width: 720px) {
  .topbar {
    min-height: 52px !important;
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }
  .brand {
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
  }
  .brand-logo {
    width: 30px !important;
    height: 30px !important;
    border-radius: 11px !important;
    flex: 0 0 auto !important;
  }
  .brand-title {
    font-size: 15px !important;
    max-width: none !important;
    white-space: nowrap !important;
  }
  .nav {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    margin: 0 !important;
  }
  .nav a {
    font-size: 12px !important;
    line-height: 1 !important;
    padding: 7px 8px !important;
    border-radius: 999px !important;
    color: #304152 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .nav a[href="/login"] {
    color: #2563eb !important;
    background: rgba(37,99,235,.08) !important;
    box-shadow: none !important;
  }

  .container:not(.admin-container) {
    padding-top: 4px !important;
  }
  .lux-home {
    padding-top: 12px !important;
    gap: 10px !important;
  }
  .lux-kicker {
    margin-bottom: 6px !important;
    font-size: 10.5px !important;
  }
  .lux-home-copy h1 {
    font-size: clamp(31px, 8.8vw, 39px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.045em !important;
    margin: 2px 0 9px !important;
    font-weight: 780 !important;
  }
  .lux-home-copy p {
    font-size: 12.5px !important;
    line-height: 1.62 !important;
  }
  .lux-actions {
    margin-top: 15px !important;
  }
  .lux-actions .lux-btn.primary {
    max-width: 312px !important;
    min-height: 48px !important;
    border-radius: 23px !important;
  }
  .lux-home-visual {
    margin-top: 10px !important;
  }
}

/* ========== Luxe V13: mobile bottom spacing + restore chart labels ========== */
@media (max-width: 720px) {
  .container:not(.admin-container) {
    padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .lux-home {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .lux-section {
    padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .lux-hero-card {
    padding-bottom: 14px !important;
  }
  .lux-inline-notes {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin-top: 8px !important;
  }
  .lux-inline-notes span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
    padding: 6px 4px !important;
    border-radius: 999px !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    background: rgba(255,255,255,.68) !important;
    border: 1px solid rgba(148,163,184,.16) !important;
  }
}

/* ========== Luxe V14: mobile nav back to left + tighter bottom ========== */
@media (max-width: 720px) {
  .topbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    row-gap: 6px !important;
    column-gap: 10px !important;
    min-height: auto !important;
    padding: 8px 12px 7px !important;
  }
  .brand {
    flex: 0 0 100% !important;
    width: 100% !important;
    justify-content: center !important;
  }
  .nav {
    flex: 0 0 auto !important;
    width: auto !important;
    justify-content: flex-start !important;
    margin-left: 2px !important;
    gap: 8px !important;
  }
  .nav a {
    padding: 5px 8px !important;
  }

  .container:not(.admin-container) {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .lux-home {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .lux-home-visual {
    margin-bottom: 0 !important;
  }
  .lux-hero-card {
    margin-bottom: 0 !important;
  }
}

/* ========== Luxe V15: mobile hide nav + tighter bottom + softer shadows ========== */
@media (max-width: 720px) {
  .topbar {
    padding: 8px 12px !important;
    justify-content: center !important;
    row-gap: 0 !important;
  }
  .brand {
    flex: 0 0 auto !important;
    width: auto !important;
    justify-content: center !important;
  }
  .nav {
    display: none !important;
  }

  .container:not(.admin-container) {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .lux-home {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .lux-home-visual,
  .lux-hero-card,
  .lux-auth-board,
  .lux-login-card {
    margin-bottom: 0 !important;
  }

  .lux-hero-card,
  .lux-auth-board,
  .lux-login-card,
  .lux-dashboard-grid article,
  .lux-auth-stats article {
    box-shadow: 0 10px 24px rgba(37, 99, 235, .07) !important;
  }
  .lux-actions .lux-btn.primary {
    box-shadow: 0 10px 22px rgba(37, 99, 235, .16) !important;
  }
}

/* ========== Luxe V16: balance mobile vertical whitespace ========== */
@media (max-width: 720px) {
  .lux-home {
    padding-top: 22px !important;
    padding-bottom: 0 !important;
  }
  .lux-home-visual {
    margin-top: 6px !important;
  }
  .lux-hero-card,
  .lux-auth-board,
  .lux-login-card,
  .lux-dashboard-grid article,
  .lux-auth-stats article {
    box-shadow: 0 8px 18px rgba(37, 99, 235, .05) !important;
  }
  .lux-actions .lux-btn.primary {
    box-shadow: 0 8px 18px rgba(37, 99, 235, .14) !important;
  }
}

/* ========== Luxe V17: remove mobile homepage trailing blank ========== */
@media (max-width: 720px) {
  body:not(.admin-page),
  main.container:not(.admin-container) {
    min-height: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  .lux-home {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  .lux-home-visual,
  .lux-hero-card,
  .lux-inline-notes {
    margin-bottom: 0 !important;
  }
  .lux-hero-card {
    padding-bottom: 10px !important;
  }
}

/* ========== Luxe V18: fill mobile lower viewport with chart card ========== */
@media (max-width: 720px) {
  .lux-home {
    padding-bottom: 0 !important;
  }
  .lux-home-visual {
    margin-top: 12px !important;
  }
  .lux-hero-card {
    min-height: min(54vh, 560px) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 16px 15px 14px !important;
  }
  .lux-hero-card svg {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 260px !important;
    max-height: none !important;
    margin: 4px 0 0 !important;
  }
  .lux-inline-notes {
    flex: 0 0 auto !important;
    margin-top: 8px !important;
  }
}

@media (max-width: 390px) {
  .lux-hero-card {
    min-height: min(52vh, 520px) !important;
  }
  .lux-hero-card svg {
    min-height: 230px !important;
  }
}
/* ================================================================
   小鱼健康平台 v2.0 — 现代化设计系统
   幼儿园体适能平台 · 温暖的专业工具
   ================================================================ */

/* ── Design Tokens ── */
:root {
  /* Palette */
  --bg:        #f0f4ff;
  --bg-alt:    #f8fafc;
  --card:      #ffffff;
  --card-hover:#fafbff;
  --text:      #1e293b;
  --text-dim:  #64748b;
  --muted:     #94a3b8;
  --primary:   #6366f1;
  --primary-l: #818cf8;
  --primary-d: #4f46e5;
  --primary-s: #eef2ff;
  --accent:    #f59e0b;
  --accent-s:  #fffbeb;
  --success:   #10b981;
  --success-s: #ecfdf5;
  --danger:    #ef4444;
  --danger-s:  #fef2f2;
  --warning:   #f59e0b;
  --warning-s: #fffbeb;
  --border:    #e2e8f0;
  --border-l:  #f1f5f9;
  --glass-bg:  rgba(255,255,255,0.72);
  --glass-bd:  rgba(255,255,255,0.85);

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 20px;
  --sp-2xl:24px;
  --sp-3xl:32px;
  --sp-4xl:40px;

  /* Radius — 统一圆角档位(收编 style.css 里 20+ 种散值)
     --r-pill 保留原命名(v2 已在用), 新增 --r-xs 补最小档 */
  --r-xs:   8px;   /* 小元素: 输入框/小标签/badge/scrollbar */
  --r-sm:   8px;   /* 兼容原值: 按钮/小卡片 */
  --r-md:   12px;  /* 兼容原值: 卡片/主容器 */
  --r-lg:   16px;  /* 兼容原值: 大卡片/面板 */
  --r-xl:   20px;  /* 兼容原值: hero/大容器 */
  --r-2xl:  28px;  /* 新增: 更大容器/登录卡 */
  --r-pill: 999px; /* 胶囊按钮/圆标签/头像(保留原命名) */
  /* style.css 里 14/18/22/24/26/30/32/34 等零散值应归并到最近档 */

  /* Breakpoints — 统一断点档位(收编 style.css 里 18 种散值)
     注意: CSS 变量不能用在 @media 查询条件里, 这些 token 仅作设计参考。
     实际媒体查询应只取这 4 档数值, 别再新增 900/860/920/800 等散断点 */
  --bp-sm:  480px; /* 小手机 */
  --bp-md:  640px; /* 大手机/小平板 */
  --bp-lg:  720px; /* 平板(最常用) */
  --bp-xl:  980px; /* 桌面分界 */
  /* style.css 里 900/860/920/800/1024/1080/1280/1400 归并到最近档 */

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(0,0,0,0.04);
  --sh-md: 0 4px 12px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04);
  --sh-lg: 0 12px 32px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.03);
  --sh-xl: 0 20px 60px rgba(0,0,0,0.10);

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ── */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro SC","PingFang SC","Helvetica Neue","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  font-size:15px;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}

/* ── Scrollbar ── */
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:var(--r-xs)}
::-webkit-scrollbar-thumb:hover{background:#94a3b8}

/* ================================================================
   TOPBAR
   ================================================================ */
.topbar{
  position:sticky;top:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  gap:var(--sp-lg);
  padding:14px 24px;
  background:rgba(240,244,255,0.82);
  backdrop-filter:saturate(180%) blur(24px);
  -webkit-backdrop-filter:saturate(180%) blur(24px);
  border-bottom:1px solid rgba(99,102,241,0.08);
}
.topbar::after{
  content:'';position:absolute;bottom:0;left:0;right:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(99,102,241,0.15),transparent);
}
.brand{display:flex;align-items:center;gap:10px}
.brand-logo{
  width:36px;height:36px;
  border-radius:var(--r-md);
  background:linear-gradient(135deg,#6366f1,#818cf8);
  display:flex;align-items:center;justify-content:center;
  font-size:20px;color:#fff;
  box-shadow:0 2px 8px rgba(99,102,241,0.3);
  overflow:hidden;
}
.brand-logo img{
  width:100%;height:100%;
  object-fit:cover;display:block;
}
.brand-title{
  font-weight:700;font-size:18px;
  color:var(--text);
  letter-spacing:-0.02em;
  background:linear-gradient(135deg,#6366f1,#4f46e5);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;
}
.brand-subtitle{font-size:11px;color:var(--muted);margin-top:-2px}

.nav{display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.nav a,.nav span{
  padding:6px 14px;border-radius:var(--r-pill);
  color:var(--text-dim);font-size:13px;font-weight:500;
  transition:all var(--t-fast);
  cursor:pointer;
}
.nav a:hover,.nav span:hover{
  background:rgba(99,102,241,0.08);
  color:var(--primary);
}
.nav a.active,.nav span.active{
  background:var(--primary-s);
  color:var(--primary);
  font-weight:600;
}
.nav .user-pill{
  display:flex;align-items:center;gap:6px;
  padding:5px 14px 5px 5px;
  border-radius:var(--r-pill);
  background:rgba(99,102,241,0.06);
}
.nav .user-avatar{
  width:30px;height:30px;
  border-radius:50%;
  background:linear-gradient(135deg,#818cf8,#6366f1);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:13px;font-weight:600;
}

/* ================================================================
   LAYOUT
   ================================================================ */
.container{
  width:min(1200px,calc(100vw - 32px));
  margin:0 auto;
  padding:var(--sp-2xl) var(--sp-lg);
}

/* Admin sidebar layout */
.admin-layout{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:var(--sp-xl);
  align-items:start;
}
.admin-sidebar{
  position:sticky;top:80px;
  background:var(--card);
  border-radius:var(--r-lg);
  padding:var(--sp-lg);
  box-shadow:var(--sh-md);
}
.admin-sidebar .nav-item{
  display:flex;align-items:center;gap:var(--sp-sm);
  padding:10px 14px;border-radius:var(--r-md);
  color:var(--text-dim);font-size:14px;font-weight:500;
  transition:all var(--t-fast);
  cursor:pointer;
  margin-bottom:2px;
}
.admin-sidebar .nav-item:hover{
  background:var(--primary-s);
  color:var(--primary);
}
.admin-sidebar .nav-item.active{
  background:var(--primary-s);
  color:var(--primary);
  font-weight:600;
}
.admin-sidebar .nav-icon{
  width:20px;text-align:center;font-size:16px;
}

.admin-main{min-width:0}

/* ================================================================
   CARDS
   ================================================================ */
.card{
  background:var(--card);
  border:1px solid var(--border-l);
  border-radius:var(--r-lg);
  padding:var(--sp-2xl);
  box-shadow:var(--sh-sm);
  transition:box-shadow var(--t-base),border-color var(--t-base);
  margin-bottom:var(--sp-xl);
}
.card:hover{
  box-shadow:var(--sh-md);
  border-color:var(--border);
}
.card-header{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:var(--sp-lg);
  padding-bottom:var(--sp-md);
  border-bottom:1px solid var(--border-l);
}
.card-title{
  font-size:16px;font-weight:600;
  color:var(--text);
  display:flex;align-items:center;gap:var(--sp-sm);
}
.card-title .icon{
  width:32px;height:32px;
  border-radius:var(--r-md);
  display:flex;align-items:center;justify-content:center;
  font-size:16px;
}

/* ================================================================
   STATS CARDS (概览卡片)
   ================================================================ */
.stats-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--sp-lg);
  margin-bottom:var(--sp-xl);
}
.stat-card{
  background:var(--card);
  border:1px solid var(--border-l);
  border-radius:var(--r-lg);
  padding:var(--sp-xl) var(--sp-2xl);
  box-shadow:var(--sh-sm);
  display:flex;align-items:center;gap:var(--sp-lg);
  transition:all var(--t-base);
  cursor:default;
}
.stat-card:hover{
  box-shadow:var(--sh-md);
  transform:translateY(-1px);
}
.stat-icon{
  width:48px;height:48px;
  border-radius:var(--r-md);
  display:flex;align-items:center;justify-content:center;
  font-size:22px;
  flex-shrink:0;
}
.stat-icon.blue{background:var(--primary-s);color:var(--primary)}
.stat-icon.amber{background:var(--accent-s);color:var(--accent)}
.stat-icon.green{background:var(--success-s);color:var(--success)}
.stat-icon.red{background:var(--danger-s);color:var(--danger)}
.stat-info{min-width:0}
.stat-number{
  font-size:28px;font-weight:700;
  color:var(--text);
  letter-spacing:-0.02em;
  line-height:1.2;
}
.stat-label{
  font-size:12px;color:var(--muted);
  margin-top:2px;
  text-transform:uppercase;
  letter-spacing:0.04em;
}

/* ================================================================
   TAB NAVIGATION
   ================================================================ */
.tab-bar{
  display:flex;gap:0;
  background:var(--card);
  border-radius:var(--r-lg);
  padding:4px;
  box-shadow:var(--sh-sm);
  margin-bottom:var(--sp-xl);
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.tab-btn{
  flex:1;min-width:0;
  padding:10px 20px;
  border:none;border-radius:var(--r-md);
  background:transparent;
  color:var(--text-dim);
  font-size:14px;font-weight:500;
  cursor:pointer;
  transition:all var(--t-fast);
  white-space:nowrap;
  font-family:inherit;
  display:flex;align-items:center;justify-content:center;
  gap:6px;
}
.tab-btn:hover{color:var(--text)}
.tab-btn.active{
  background:var(--primary);
  color:#fff;
  box-shadow:0 2px 8px rgba(99,102,241,0.3);
}
.tab-panel{display:none}
.tab-panel.active{display:block}
.tab-badge{
  font-size:11px;
  padding:1px 7px;
  border-radius:var(--r-pill);
  background:rgba(255,255,255,0.25);
  font-weight:600;
}

/* ================================================================
   COLLAPSIBLE / ACCORDION
   ================================================================ */
.collapse-trigger{
  display:flex;align-items:center;gap:var(--sp-sm);
  cursor:pointer;
  user-select:none;
  padding:var(--sp-sm) 0;
  transition:color var(--t-fast);
  font-size:15px;font-weight:600;
  color:var(--text);
}
.collapse-trigger:hover{color:var(--primary)}
.collapse-arrow{
  width:20px;height:20px;
  display:flex;align-items:center;justify-content:center;
  transition:transform var(--t-slow);
  font-size:12px;color:var(--muted);
}
.collapse-trigger.open .collapse-arrow{transform:rotate(90deg)}
.collapse-body{
  overflow:hidden;
  max-height:0;
  opacity:0;
  transition:max-height var(--t-slow),opacity var(--t-base),margin var(--t-slow);
  margin-top:0;
}
.collapse-body.open{
  max-height:3000px;
  opacity:1;
  margin-top:var(--sp-md);
}

/* ================================================================
   MODERN TABLE
   ================================================================ */
.table-wrap{
  overflow-x:auto;
  border-radius:var(--r-md);
  border:1px solid var(--border-l);
  -webkit-overflow-scrolling:touch;
  /* Scroll shadow hint */
  background:
    linear-gradient(to right, #fff 30%, transparent),
    linear-gradient(to left, #fff 30%, transparent),
    radial-gradient(at 0 50%, rgba(0,0,0,0.06), transparent 70%),
    radial-gradient(at 100% 50%, rgba(0,0,0,0.06), transparent 70%);
  background-repeat:no-repeat;
  background-size:40px 100%,40px 100%,14px 100%,14px 100%;
  background-attachment:local,local,scroll,scroll;
  background-position:0 0,100% 0,0 0,100% 0;
}
.data-table{
  width:100%;min-width:820px;
  border-collapse:collapse;
  font-size:13px;
  white-space:nowrap;
}
.data-table thead{position:sticky;top:0;z-index:2}
.data-table th{
  background:#f8fafc;
  color:var(--text-dim);
  font-weight:600;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.03em;
  padding:12px 14px;
  text-align:left;
  border-bottom:2px solid var(--border);
  white-space:nowrap;
}
.data-table td{
  padding:10px 14px;
  border-bottom:1px solid var(--border-l);
  color:var(--text);
}
.data-table tbody tr{
  transition:background var(--t-fast);
}
.data-table tbody tr:nth-child(even){background:#f8fafc}
.data-table tbody tr:hover{background:#eef2ff}
/* Frozen first column */
.data-table th:first-child,
.data-table td:first-child{
  position:sticky;left:0;z-index:1;
  background:#fff;
  box-shadow:2px 0 4px rgba(0,0,0,0.03);
}
.data-table thead th:first-child{
  background:#f8fafc;z-index:3;
}
.data-table tbody tr:nth-child(even) td:first-child{background:#f8fafc}
.data-table tbody tr:hover td:first-child{background:#eef2ff}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:6px;
  padding:8px 18px;
  border:none;border-radius:var(--r-md);
  font-size:13px;font-weight:600;
  font-family:inherit;
  cursor:pointer;
  transition:all var(--t-fast);
  white-space:nowrap;
  text-decoration:none;
  line-height:1.4;
}
.btn-primary{
  background:var(--primary);
  color:#fff;
  box-shadow:0 2px 8px rgba(99,102,241,0.25);
}
.btn-primary:hover{
  background:var(--primary-l);
  box-shadow:0 4px 16px rgba(99,102,241,0.35);
  transform:translateY(-1px);
}
.btn-secondary{
  background:var(--primary-s);
  color:var(--primary);
}
.btn-secondary:hover{
  background:#dde4ff;
}
.btn-outline{
  background:transparent;
  border:1.5px solid var(--border);
  color:var(--text-dim);
}
.btn-outline:hover{
  border-color:var(--primary);
  color:var(--primary);
}
.btn-sm{padding:5px 12px;font-size:12px}
.btn-lg{padding:12px 24px;font-size:15px}
.btn-danger{background:var(--danger);color:#fff}
.btn-danger:hover{background:#dc2626}

/* ================================================================
   FORMS
   ================================================================ */
input[type="text"],input[type="number"],input[type="password"],
input[type="email"],input[type="date"],input[type="search"],
select,textarea{
  padding:9px 14px;
  border:1.5px solid var(--border);
  border-radius:var(--r-md);
  font-size:14px;font-family:inherit;
  color:var(--text);
  background:var(--card);
  transition:all var(--t-fast);
  outline:none;
  width:100%;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(99,102,241,0.1);
}
label{
  font-size:13px;font-weight:600;
  color:var(--text-dim);
  margin-bottom:4px;
  display:block;
}

/* ================================================================
   BADGES & TAGS
   ================================================================ */
.badge{
  display:inline-flex;align-items:center;
  padding:2px 10px;
  border-radius:var(--r-pill);
  font-size:11px;font-weight:600;
  letter-spacing:0.02em;
}
.badge-primary{background:var(--primary-s);color:var(--primary)}
.badge-success{background:var(--success-s);color:var(--success)}
.badge-warning{background:var(--warning-s);color:#b45309}
.badge-danger{background:var(--danger-s);color:var(--danger)}

/* ================================================================
   CHART AREA
   ================================================================ */
.chart-card{
  background:var(--card);
  border:1px solid var(--border-l);
  border-radius:var(--r-lg);
  padding:var(--sp-xl) var(--sp-2xl);
  box-shadow:var(--sh-sm);
  margin-bottom:var(--sp-xl);
}
.chart-card svg{display:block;margin:0 auto;max-width:100%;height:auto}

/* ================================================================
   LOGIN PAGE
   ================================================================ */
.auth-page{
  min-height:100vh;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#eef2ff 0%,#e0e7ff 40%,#f0f4ff 100%);
  padding:var(--sp-2xl);
}
.auth-card{
  width:100%;max-width:420px;
  background:var(--card);
  border-radius:var(--r-xl);
  padding:var(--sp-3xl);
  box-shadow:var(--sh-lg);
  text-align:center;
}
.auth-logo{
  width:56px;height:56px;
  border-radius:var(--r-lg);
  background:linear-gradient(135deg,#6366f1,#818cf8);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto var(--sp-lg);
  font-size:28px;
  box-shadow:0 4px 16px rgba(99,102,241,0.3);
}
.auth-card h1{
  font-size:22px;font-weight:700;
  margin:0 0 4px;
  letter-spacing:-0.02em;
}
.auth-card .subtitle{
  color:var(--muted);font-size:13px;
  margin-bottom:var(--sp-2xl);
}

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state{
  text-align:center;
  padding:var(--sp-4xl) var(--sp-2xl);
  color:var(--muted);
}
.empty-state .icon{
  font-size:48px;margin-bottom:var(--sp-md);
  opacity:0.6;
}
.empty-state h4{
  font-size:15px;color:var(--text-dim);
  margin:0 0 var(--sp-sm);
}

/* ================================================================
   SCOPE PILLS (全园/大班/中班/小班)
   ================================================================ */
.scope-pills{
  display:flex;gap:6px;flex-wrap:wrap;
  margin-bottom:var(--sp-lg);
}
.scope-pill{
  padding:6px 16px;
  border-radius:var(--r-pill);
  border:1.5px solid var(--border);
  background:transparent;
  color:var(--text-dim);
  font-size:13px;font-weight:500;
  cursor:pointer;
  transition:all var(--t-fast);
  font-family:inherit;
}
.scope-pill:hover{border-color:var(--primary);color:var(--primary)}
.scope-pill.active{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
}

/* ================================================================
   TOAST / NOTIFICATION
   ================================================================ */
.toast{
  position:fixed;top:20px;right:20px;z-index:9999;
  padding:12px 20px;
  border-radius:var(--r-md);
  background:var(--card);
  box-shadow:var(--sh-lg);
  font-size:14px;
  display:flex;align-items:center;gap:var(--sp-sm);
  animation:slideIn 0.3s ease;
  max-width:380px;
}
@keyframes slideIn{from{transform:translateX(100%);opacity:0}to{transform:translateX(0);opacity:1}}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet & small desktop */
@media (max-width:1024px){
  .admin-layout{
    grid-template-columns:1fr;
  }
  .admin-sidebar{
    position:static;
    display:flex;overflow-x:auto;
    gap:4px;padding:var(--sp-sm);
    -webkit-overflow-scrolling:touch;
  }
  .admin-sidebar .nav-item{
    flex-shrink:0;margin-bottom:0;
  }
  .stats-row{
    grid-template-columns:repeat(3,1fr);
    gap:var(--sp-md);
  }
  .container{padding:var(--sp-lg) var(--sp-md)}
}

/* Mobile */
@media (max-width:640px){
  .topbar{padding:10px 16px}
  .brand-title{font-size:15px}
  .brand-subtitle{display:none}
  .nav a,.nav span{font-size:12px;padding:5px 10px}
  .container{padding:var(--sp-md) var(--sp-sm)}
  .stats-row{
    grid-template-columns:1fr;
    gap:var(--sp-sm);
  }
  .stat-card{padding:var(--sp-md) var(--sp-lg)}
  .stat-number{font-size:24px}
  .card{padding:var(--sp-lg);border-radius:var(--r-md)}
  .tab-bar{border-radius:var(--r-md)}
  .tab-btn{padding:8px 14px;font-size:13px}
  .data-table{min-width:640px;font-size:12px}
  .data-table th,.data-table td{padding:8px 10px}
  .chart-card{padding:var(--sp-md)}
  .auth-card{padding:var(--sp-2xl)}
  .btn{padding:8px 14px;font-size:12px}
  .collapse-trigger{font-size:14px}
}

/* Small mobile */
@media (max-width:380px){
  .nav{display:none}
  .tab-btn{padding:6px 12px;font-size:12px;gap:3px}
  .tab-btn .emoji{display:none}
}

/* ================================================================
   PRINT
   ================================================================ */
@media print{
  .topbar,.nav,.tab-bar,.admin-sidebar,.btn{display:none!important}
  .card{box-shadow:none;border:1px solid #ddd;break-inside:avoid}
  .data-table{font-size:11px}
}

/* ================================================================
   AJAX LOADING OVERLAY — 翻页/筛选时面板加载遮罩
   ================================================================ */
.ajax-loading-overlay{
  position:absolute;inset:0;z-index:50;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  background:rgba(255,255,255,0.6);
  backdrop-filter:blur(2px);
  border-radius:inherit;
  animation:ajax-fade-in .15s ease-out;
}
@keyframes ajax-fade-in{from{opacity:0}to{opacity:1}}
.ajax-spinner{
  width:32px;height:32px;border-radius:50%;
  border:3px solid var(--primary-s,#eef2ff);
  border-top-color:var(--primary,#6366f1);
  animation:ajax-spin .8s linear infinite;
}
@keyframes ajax-spin{to{transform:rotate(360deg)}}
.ajax-loading-text{font-size:13px;color:#64748b;letter-spacing:.02em}

/* ================================================================
   AI REPORT SKELETON — 报告生成前的骨架占位
   ================================================================ */
.ai-body-loading{padding:20px!important}
.ai-skeleton{display:flex;flex-direction:column;gap:10px}
.ai-skel-line{
  height:14px;border-radius:var(--r-xs);
  background:linear-gradient(90deg,#eef2ff 25%,#e0e7ff 37%,#eef2ff 63%);
  background-size:400% 100%;
  animation:ai-skel-shimmer 1.4s ease-in-out infinite;
}
.ai-skel-gap{height:14px}
@keyframes ai-skel-shimmer{
  0%{background-position:100% 50%}
  100%{background-position:-100% 50%}
}
@media (prefers-reduced-motion:reduce){
  .ajax-spinner,.ai-skel-line{animation:none}
  .ai-skel-line{background:#eef2ff}
}

/* ================================================================
   RECORD ACTIONS — 体测记录操作列(横排紧凑, 不再撑高行)
   ================================================================ */
.record-actions{
  display:inline-flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:6px;
  white-space:nowrap;
}
.record-actions .btn.small{
  padding:4px 10px;
  font-size:12px;
  line-height:1.4;
  white-space:nowrap;
}
.record-actions form{
  margin:0;
  display:inline-flex;
}
.data-table th.col-actions,
.data-table td:nth-last-child(1){
  min-width:150px;
  white-space:nowrap;
}
@media (max-width:640px){
  /* 手机端操作列仍允许横排但不固定宽度, 跟随内容 */
  .data-table th.col-actions,
  .data-table td:nth-last-child(1){
    min-width:auto;
  }
  .record-actions{gap:4px}
  .record-actions .btn.small{padding:4px 8px;font-size:11px}
}
/* ===== P2 可访问性修复（2026-09-07 Impeccable 审查后追加）=====
   原则：只提对比度/字号，不改视觉结构。首页 hero 蓝保留。 */
:root {
  --muted-deep: #64748b;   /* 原 #94a3b8 → 提深保证 4.5:1 */
}

/* 1) muted 文本全局提深（#94a3b8 → #64748b） */
.muted, .muted.no-margin,
.sub, .band-card .sub,
.trend-insight .muted,
.stat-card .muted,
.radar-card-head .muted,
.toolbar .muted {
  color: #64748b !important;
}

/* 2) 图表/表格辅助文本 ≥12px */
.wave-chart-wrap svg text,
.radar-svg text {
  font-size: 12px !important;
}
.chart-el, .radar-chart-el {
  font-size: 12px;
}

/* 3) 手环卡 10.5px 功能标签 → 12px */
.band-stat .stat-label,
.band-metric-label,
.band-band-card .m-label {
  font-size: 12px !important;
}

/* 4) 主按钮对比度：白字 #6366f1 → 深字白底 或 深紫底（保证 4.5:1） */
.btn.primary, .btn-primary,
.btn.primary:hover, .btn-primary:hover {
  background: #4f46e5 !important;   /* 深靛紫，白字对比 6.1:1 */
  border-color: #4f46e5 !important;
  color: #fff !important;
}

/* 5) hover 黑字压深底的修复（#000 on #334155 等） */
.btn.secondary:hover, .btn-outline:hover,
.child-compare-link:hover,
.trend-decline-chip:hover {
  color: #1e40af !important;   /* 深蓝，而非黑 */
}

/* 6) 评级色文本对比（#16a34a/#d97706 on 白 仅 3.3:1 → 加深） */
.text-success, .stat-number[style*="#16a34a"],
.rating-green { color: #15803d !important; }
.text-warning, .rating-amber { color: #b45309 !important; }

/* 7) 表格操作列不换行（横向排布避免撑高行） */
.record-actions, .table-wrap td .stacked-links {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

/* 8) 标题层级视觉一致性（h2 卡片标题字号收敛） */
.chart-card h2, .card h2 {
  font-size: 15px !important;
  margin: 0 0 8px !important;
}
/* ================================================================
   COLLAPSIBLE SIDEBAR & RESPONSIVE REFACTOR (2026-09-09)
   ================================================================ */
.main-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #1d1d1f;
  text-align: left;
  cursor: pointer;
  transition: all .2s ease;
}
.main-nav-header:hover {
  background: rgba(0, 113, 227, 0.05);
  color: #0071e3;
}
.main-nav-header.active {
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
  font-weight: 600;
}
.main-nav-header .main-nav-title {
  font-size: 14px;
  font-weight: 600;
  flex: 1 1 auto;
}
.nav-group-count {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: rgba(100, 116, 139, 0.12);
  padding: 2px 7px;
  border-radius: 999px;
  margin-right: 8px;
}
.nav-chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(-45deg);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.nav-group-card.is-expanded .nav-chevron {
  transform: rotate(45deg);
}

/* 默认收起子菜单，展开时平滑展示 */
.nav-group-card .nav-submenu {
  display: none;
  grid-gap: 6px;
  padding: 4px 0 6px 12px;
}
.nav-group-card.is-expanded .nav-submenu {
  display: grid;
  animation: navSubmenuFadeIn .2s ease-out;
}
@keyframes navSubmenuFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sidebar-subtitle-mobile {
  display: none;
  font-size: 11px;
  color: #94a3b8;
}

/* 电脑端优化：紧凑精致，hover反馈 */
@media (min-width: 861px) {
  .admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    padding: 16px 14px;
  }
  .sidebar-link {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 7px;
  }
  .nav-group-card {
    gap: 4px;
  }
}

/* 手机端深度适配：彻底解决目录过长与两边空白 */
@media (max-width: 860px) {
  .sidebar-subtitle-mobile {
    display: inline-block;
  }
  .container.admin-container {
    width: 100% !important;
    padding: 10px 10px 24px !important;
  }
  .admin-hero {
    padding: 16px !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
    gap: 12px !important;
  }
  .admin-hero h1 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin: 4px 0 6px !important;
  }
  .admin-hero p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  .admin-hero-actions {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .admin-hero-actions .btn {
    padding: 6px 14px !important;
    font-size: 13px !important;
  }
  .admin-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .admin-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px !important;
    border-radius: 14px !important;
    margin-bottom: 0 !important;
    display: block !important;
    position: static !important;
    overflow: visible !important;
  }
  .sidebar-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .nav-group-card {
    width: 100% !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 10px !important;
    padding: 2px !important;
    background: #ffffff !important;
  }
  .nav-group-card.active {
    border-color: rgba(0, 113, 227, 0.3) !important;
    background: rgba(248, 250, 252, 0.9) !important;
  }
  .main-nav-header {
    min-height: 44px !important;
    padding: 10px 14px !important;
  }
  .nav-submenu {
    padding: 4px 8px 10px 8px !important;
    gap: 6px !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .sidebar-link {
    min-height: 40px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    justify-content: flex-start !important;
  }
  .admin-main.shell-main {
    padding: 0 !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   2026-09-09 UI Refinement: 彻底解决电脑端碰撞、截断与4大板块布局
   ========================================================================== */

/* 1. 电脑端 (min-width: 861px) */
@media (min-width: 861px) {
  .admin-layout {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) !important;
    gap: 24px !important; /* 彻底拉开间距，杜绝左侧栏与主工作台发生物理碰撞 */
    align-items: start !important;
  }

  .admin-sidebar {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
  }

  .admin-main {
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important; /* 避免任何横向溢出 */
  }

  /* 概览统计卡片：自适应 4 列网格，杜绝溢出屏幕右边界与截断 */
  .stats-grid.overview-stats.admin-data-stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    margin-bottom: 24px !important;
  }

  .stats-grid.overview-stats.admin-data-stats .stat-card {
    min-width: 0 !important;
    padding: 16px 18px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 4px !important;
  }

  .stats-grid.overview-stats.admin-data-stats .stat-card .stat-label {
    font-size: 13px !important;
    color: #475569 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
  }

  .stats-grid.overview-stats.admin-data-stats .stat-card .stat-number {
    font-size: 26px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  .stats-grid.overview-stats.admin-data-stats .stat-card .muted {
    font-size: 12px !important;
    color: #64748b !important;
    white-space: nowrap !important;
  }
}

/* 屏幕适中（861px ~ 1200px）时，4 张统计卡片自动折为 2x2 网格，绝不截断 */
@media (min-width: 861px) and (max-width: 1200px) {
  .stats-grid.overview-stats.admin-data-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 2. 针对 860px 以下的移动端 */
@media (max-width: 860px) {
  .admin-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .admin-sidebar {
    width: 100% !important;
    max-width: 100% !important;
  }

  .stats-grid.overview-stats.admin-data-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .stats-grid.overview-stats.admin-data-stats .stat-card {
    padding: 12px 14px !important;
  }
}


/* ============================================================
   班级管理现代 UI 改造样式 (Apple 简洁现代风格)
   ============================================================ */

/* 顶部标题与操作区 */
.modern-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.heading-sub {
  color: #64748b;
  font-size: 13.5px;
  margin-top: 4px;
}
.add-class-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: all 0.2s ease;
}
.add-class-trigger-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* 顶部概览指标卡 */
.classes-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.classes-metrics-grid .metric-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.classes-metrics-grid .metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.classes-metrics-grid .metric-label {
  display: block;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 4px;
}
.classes-metrics-grid .metric-val {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.5px;
}
.classes-metrics-grid .metric-val small {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  margin-left: 2px;
}
.classes-metrics-grid .metric-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.classes-metrics-grid .tag-blue { background: #eff6ff; color: #2563eb; }
.classes-metrics-grid .tag-green { background: #f0fdf4; color: #16a34a; }
.classes-metrics-grid .tag-orange { background: #fff7ed; color: #ea580c; }
.classes-metrics-grid .tag-purple { background: #faf5ff; color: #9333ea; }

/* 现代数据表格与工具栏卡片 */
.modern-table-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  padding: 0;
  overflow: hidden;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}
.search-input-wrap {
  position: relative;
  min-width: 260px;
  max-width: 360px;
  flex: 1;
}
.search-input-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #94a3b8;
  pointer-events: none;
}
.table-search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
}
.table-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.table-filter-select {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  color: #334155;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.table-filter-select:focus {
  border-color: #3b82f6;
}
.filter-count-badge {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 8px;
}

/* 现代表格样式细节 */
.modern-class-table {
  width: 100%;
  border-collapse: collapse;
}
.modern-class-table th {
  background: #ffffff;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  letter-spacing: 0.3px;
}
.modern-class-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  color: #1e293b;
  vertical-align: middle;
}
.modern-class-table tbody tr:hover {
  background: #f8fafc;
}
.class-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.class-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13.5px;
  flex-shrink: 0;
}
.class-avatar-badge.grade-small { background: #ffedd5; color: #ea580c; }
.class-avatar-badge.grade-middle { background: #ede9fe; color: #7c3aed; }
.class-avatar-badge.grade-large { background: #e0f2fe; color: #0284c7; }

.grade-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.grade-pill.grade-small { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; }
.grade-pill.grade-middle { background: #faf5ff; color: #6b21a8; border: 1px solid #f3e8ff; }
.grade-pill.grade-large { background: #f0f9ff; color: #0369a1; border: 1px solid #e0f2fe; }

.teacher-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.teacher-tag {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.teacher-empty-tag {
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}

.child-count-pill {
  font-weight: 600;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
}
.child-count-pill.has-children {
  background: #f0fdf4;
  color: #15803d;
}
.child-count-pill.no-children {
  background: #f8fafc;
  color: #94a3b8;
}

.capacity-pill {
  font-size: 12.5px;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
}

.class-desc-cell {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #64748b;
  max-width: 220px;
}

.table-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.action-btn-edit {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.action-btn-edit:hover {
  background: #e2e8f0;
  color: #000;
}
.action-btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}
.action-btn-danger:hover {
  background: #fecaca;
}
.action-btn-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}
.action-btn-success:hover {
  background: #bbf7d0;
}

/* 模态框样式增强 */
.class-modal-dialog {
  max-width: 580px;
  width: 92%;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}
.modal-title-wrap h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.modal-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}
.modal-close-btn {
  background: #f1f5f9;
  border: none;
  font-size: 16px;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.modal-form-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.required-star {
  color: #ef4444;
}
.modern-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.modern-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.field-hint {
  font-size: 11.5px;
  color: #94a3b8;
}

/* 教师槽位样式 */
.teacher-slot-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-top: 4px;
}
.slot-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.slot-section-title span:first-child {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}
.slot-hint {
  font-size: 12px;
  color: #64748b;
}
.teacher-slots-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slot-field {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 12px;
}
.slot-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
}
.teacher-slot-select {
  font-size: 13.5px;
}

.modal-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.modern-btn-cancel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 10px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
.modern-btn-cancel:hover {
  background: #f1f5f9;
}
.modern-btn-submit {
  border-radius: 10px;
  padding: 9px 22px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}


/* ============================================================
   班级管理极致紧凑化 & 手机端原生卡片适配
   ============================================================ */

/* 1. 顶部 Hero 在 classes 等具体业务面板下更紧凑，避免大块空白 */
.admin-page[data-panel="classes"] .admin-hero,
.admin-panel.is-active .panel-heading {
  margin-bottom: 12px;
}
.modern-heading {
  margin-bottom: 14px;
}
.modern-heading h2 {
  font-size: 20px;
  margin-bottom: 2px;
}
.heading-sub {
  font-size: 12.5px;
  margin-top: 2px;
}

/* 2. 统计卡片更紧凑精简，单行高度压缩 */
.classes-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.classes-metrics-grid .metric-card {
  padding: 12px 14px;
  border-radius: 12px;
}
.classes-metrics-grid .metric-label {
  font-size: 11.5px;
  margin-bottom: 2px;
}
.classes-metrics-grid .metric-val {
  font-size: 20px;
}
.classes-metrics-grid .metric-tag {
  font-size: 11px;
  padding: 2px 8px;
}

/* 3. 工具栏与表格行高压缩（原先 padding 太大导致纵向拉很长） */
.table-toolbar {
  padding: 10px 14px;
  gap: 10px;
}
.table-search-input {
  padding: 6px 10px 6px 30px;
  font-size: 13px;
  height: 34px;
}
.table-filter-select {
  padding: 6px 10px;
  font-size: 12.5px;
  height: 34px;
}
.modern-class-table th {
  padding: 10px 12px;
  font-size: 12px;
}
.modern-class-table td {
  padding: 10px 12px;
  font-size: 13px;
}
.class-avatar-badge {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

/* 4. 手机端专属移动卡片视图（超流畅自适应，彻底避免横向溢出和过长纵向拉伸） */
@media (max-width: 860px) {
  /* 顶部统计卡片在手机端改为 2x2 紧凑网格 */
  .classes-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
  .classes-metrics-grid .metric-card {
    padding: 10px 12px !important;
  }
  .classes-metrics-grid .metric-val {
    font-size: 18px !important;
  }

  /* 搜索工具栏在手机端垂直流式排布 */
  .table-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 10px !important;
    gap: 8px !important;
  }
  .toolbar-left {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .search-input-wrap {
    min-width: 100% !important;
    max-width: 100% !important;
  }
  .filter-select-wrap {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .table-filter-select {
    width: 100% !important;
  }
  .toolbar-right {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* 手机端将表格行转为原生 App 式精简卡片，手指点选非常舒服 */
  .modern-class-table thead {
    display: none !important;
  }
  .modern-class-table,
  .modern-class-table tbody,
  .modern-class-table tr.class-data-row {
    display: block !important;
    width: 100% !important;
  }
  .modern-class-table tr.class-data-row {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
    padding: 12px 14px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
  }
  .modern-class-table td {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 5px 0 !important;
    border: none !important;
    font-size: 13px !important;
    text-align: left !important;
  }

  /* 首行：班级名与年级徽章紧凑靠拢 */
  .modern-class-table td:nth-child(1) {
    padding-bottom: 8px !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }
  .modern-class-table td:nth-child(2) {
    display: none !important; /* 年级直接内嵌到第一行展示 */
  }
  .mobile-grade-inline {
    display: inline-block !important;
    margin-left: 8px !important;
  }

  /* 其他字段移动端专属前缀标签 */
  .modern-class-table td:nth-child(3)::before { content: "带班教师"; color: #94a3b8; font-size: 12px; font-weight: 500; }
  .modern-class-table td:nth-child(4)::before { content: "在册幼儿"; color: #94a3b8; font-size: 12px; font-weight: 500; }
  .modern-class-table td:nth-child(5)::before { content: "容量上限"; color: #94a3b8; font-size: 12px; font-weight: 500; }
  .modern-class-table td:nth-child(6)::before { content: "班级寄语"; color: #94a3b8; font-size: 12px; font-weight: 500; }
  .modern-class-table td:nth-child(7)::before { content: "班级状态"; color: #94a3b8; font-size: 12px; font-weight: 500; }
  
  /* 操作栏独立一行置底，按钮大且容易点 */
  .modern-class-table td:nth-child(8) {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px dashed #f1f5f9 !important;
    justify-content: flex-end !important;
  }
  .modern-class-table td:nth-child(8) .table-row-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
  }
  .modern-class-table td:nth-child(8) .action-btn-edit,
  .modern-class-table td:nth-child(8) button {
    padding: 6px 16px !important;
    font-size: 13px !important;
  }

  /* 弹窗在手机端全宽底部升起，手感极佳 */
  .class-modal-dialog {
    width: 95% !important;
    max-width: 95% !important;
    margin: 16px auto !important;
    border-radius: 16px !important;
  }
  .modal-form-body {
    padding: 16px !important;
    gap: 12px !important;
  }
  .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .slot-field {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }
}


/* 非概览页时 Hero 区域紧凑化，把垂直高度压缩还给主体内容 */
.admin-hero.admin-hero-compact {
  padding: 14px 20px !important;
  margin-bottom: 14px !important;
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.admin-hero.admin-hero-compact h1 {
  font-size: 18px !important;
  margin: 2px 0 !important;
  display: inline-block !important;
}
.admin-hero.admin-hero-compact .eyebrow {
  margin-bottom: 0 !important;
  font-size: 11.5px !important;
}
.admin-hero.admin-hero-compact p {
  display: none !important; /* 业务面板隐藏大段欢迎废话 */
}
.admin-hero.admin-hero-compact .admin-hero-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.admin-hero.admin-hero-compact .admin-hero-actions .btn {
  padding: 6px 14px !important;
  font-size: 12.5px !important;
}

@media (max-width: 860px) {
  .admin-hero.admin-hero-compact {
    flex-direction: row !important;
    padding: 10px 14px !important;
    gap: 8px !important;
  }
  .admin-hero.admin-hero-compact h1 {
    font-size: 16px !important;
  }
  .admin-hero.admin-hero-compact .admin-hero-actions {
    width: auto !important;
  }
}


@media (max-width: 860px) {
  .table-pagination-bar {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    align-items: center !important;
    text-align: center !important;
  }
  .pagination-controls {
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
  .page-size-selector {
    margin-bottom: 4px !important;
  }
}


/* ================================================================
   Mobile & UI Polish (v3.2 Optimization)
   ================================================================ */

/* 1. 移动端 Topbar 极致轻量化 */
@media (max-width: 640px) {
  .topbar {
    padding: 8px 14px !important;
    min-height: 46px !important;
  }
  .brand-logo {
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
  }
  .brand-title {
    font-size: 15px !important;
  }
  .nav a, .nav span {
    font-size: 12px !important;
    padding: 4px 8px !important;
  }
  .nav .user-avatar {
    width: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
  }
}

/* 2. 状态徽章高对比度强化（保证强光下清晰可辨） */
.status-badge, .status-chip, .badge {
  font-weight: 600 !important;
  letter-spacing: 0.02em;
}
.status-badge.ok, .badge-success {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
}
.status-badge.off, .badge-danger {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}
.status-chip {
  background: rgba(99, 102, 241, 0.1) !important;
  color: #3730a3 !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  font-weight: 600 !important;
}

/* 3. 年级胶囊颜色规范与高辨识度 */
.badge-grade-da, .grade-badge.da {
  background: #eff6ff !important;
  color: #1e40af !important;
  border: 1px solid #bfdbfe !important;
}
.badge-grade-zhong, .grade-badge.zhong {
  background: #fffbeb !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}
.badge-grade-xiao, .grade-badge.xiao {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
}

/* 4. 二级页面顶部 admin-hero-compact 样式确保全覆盖 */
.admin-hero.admin-hero-compact {
  padding: 12px 20px !important;
  margin-bottom: 16px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid var(--border, #e2e8f0) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
}
.admin-hero.admin-hero-compact h1 {
  font-size: 18px !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}
.admin-hero.admin-hero-compact .eyebrow {
  font-size: 11px !important;
  margin-bottom: 2px !important;
  color: var(--primary, #6366f1) !important;
  font-weight: 600 !important;
}
.admin-hero.admin-hero-compact p,
.admin-hero.admin-hero-compact .hero-date {
  display: none !important;
}
.admin-hero.admin-hero-compact .admin-hero-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}
.admin-hero.admin-hero-compact .admin-hero-actions .btn {
  padding: 6px 14px !important;
  font-size: 13px !important;
}

@media (max-width: 640px) {
  .admin-hero.admin-hero-compact {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }
  .admin-hero.admin-hero-compact .admin-hero-actions {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}

/* ================================================================
   Mobile Class Card Full Fix (彻底解决手机端显示不全/排版挤压)
   ================================================================ */

@media (max-width: 860px) {
  /* 破除外部容器水平滚动和表格强制 820px 最小宽度的限制 */
  .classes-table-wrap,
  #class-panel .table-wrap {
    overflow-x: visible !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  table.modern-class-table {
    min-width: 0 !important;
    width: 100% !important;
    display: block !important;
    border: none !important;
  }

  table.modern-class-table thead {
    display: none !important;
  }

  table.modern-class-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  /* 每一行彻底转为独立的立体卡片 */
  table.modern-class-table tr.class-data-row {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 0 !important;
  }

  /* 单元格全部改为块级自适应布局，杜绝任何宽度挤压 */
  table.modern-class-table td {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 7px 0 !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  /* 班级名称与头像栏 */
  table.modern-class-table td:nth-child(1) {
    padding-bottom: 10px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    justify-content: flex-start !important;
    gap: 10px !important;
  }
  table.modern-class-table td:nth-child(1) .class-name-cell {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  table.modern-class-table td:nth-child(1) .mobile-grade-inline {
    display: inline-block !important;
  }

  /* 年级列在卡片内部已经并在第一行，隐去冗余的单独年级行 */
  table.modern-class-table td:nth-child(2) {
    display: none !important;
  }

  /* 带班教师行 */
  table.modern-class-table td:nth-child(3)::before {
    content: "带班教师" !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
    margin-right: 12px !important;
  }
  table.modern-class-table td:nth-child(3) {
    align-items: flex-start !important;
  }
  table.modern-class-table td:nth-child(3) .teacher-tags-group {
    justify-content: flex-end !important;
    max-width: 70% !important;
  }

  /* 幼儿人数行 */
  table.modern-class-table td:nth-child(4)::before {
    content: "在册幼儿" !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
  }

  /* 班级容量行 */
  table.modern-class-table td:nth-child(5)::before {
    content: "容量上限" !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
  }

  /* 班级描述/寄语行 */
  table.modern-class-table td:nth-child(6)::before {
    content: "班级寄语" !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
    margin-right: 12px !important;
  }
  table.modern-class-table td:nth-child(6) {
    align-items: flex-start !important;
  }
  table.modern-class-table td:nth-child(6) .class-desc-cell {
    text-align: right !important;
    max-width: 65% !important;
    word-break: break-word !important;
    white-space: normal !important;
    color: #475569 !important;
  }

  /* 班级状态行 */
  table.modern-class-table td:nth-child(7)::before {
    content: "状态" !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
  }

  /* 操作按钮栏：横向拉伸占满底部，大圆角好点击 */
  table.modern-class-table td:nth-child(8) {
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px dashed #e2e8f0 !important;
    justify-content: flex-end !important;
  }
  table.modern-class-table td:nth-child(8) .table-row-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  table.modern-class-table td:nth-child(8) .table-row-actions .btn,
  table.modern-class-table td:nth-child(8) .table-row-actions button {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
  }
  table.modern-class-table td:nth-child(8) .table-row-actions form.inline-form {
    width: 100% !important;
  }

  /* 分页条在手机端居中对齐、上下紧凑 */
  .pagination-bar {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px !important;
  }
}

/* ============================================================
   小鱼健康 · 智能手环健康感知系统 高级 UI 样式重构
   ============================================================ */

/* 1. 彻底禁用所有劣质机械跳动与跑马灯动画 */
.lux-dashboard-grid strong,
.lux-stats-row strong,
.lux-auth-board-head strong,
.vital-num,
.chip-val {
  animation: none !important;
  transform: none !important;
}

.lux-hero-card svg path,
.lux-auth-board svg path,
.band-waveform-box svg path,
.auth-wave-card svg path {
  animation: none !important;
}

.lux-hero-card svg circle,
.lux-auth-board svg circle {
  animation: none !important;
}

/* 2. 标题与辅助标签微调 */
.lux-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.lux-kicker-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.lux-title-accent {
  background: linear-gradient(135deg, #2563eb, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lux-btn.secondary {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.lux-btn.secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.lux-tags span i.lux-tag-icon.pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

/* 3. 手环健康卡片专属样式 (Hero Visual) */
.band-monitor-card {
  padding: 24px 26px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
  backdrop-filter: blur(20px) !important;
}

.band-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 18px;
}

.band-device-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.device-live-dot {
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.band-gateway-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.gw-signal {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0284c7;
}

.band-vitals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.vital-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.vital-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.vital-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 6px;
}

.vital-hr .vital-icon { color: #ef4444; font-size: 13px; }
.vital-activity .vital-icon { color: #f59e0b; font-size: 13px; }
.vital-devices .vital-icon { color: #2563eb; font-size: 13px; }

.vital-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.vital-num {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.vital-unit {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.vital-status {
  font-size: 11px;
  font-weight: 500;
}

.status-normal { color: #059669; }
.status-active { color: #2563eb; }
.status-good { color: #0284c7; }

/* 波形区 */
.band-waveform-box {
  background: #0f172a;
  border-radius: 16px;
  padding: 14px 16px 10px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2) inset;
}

.waveform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 8px;
}

.stream-fps {
  color: #38bdf8;
  font-family: monospace;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.band-svg-wave {
  width: 100%;
  height: 90px;
  display: block;
}

.band-svg-wave .wave-grid line {
  stroke: rgba(255, 255, 255, 0.08);
}

.band-live-roster {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.roster-pill {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

.roster-pill.active {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
  font-weight: 600;
}

/* 4. 登录页手环面板样式 */
.band-auth-board {
  max-width: 440px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1) !important;
  border-radius: 24px !important;
  padding: 22px !important;
}

.gw-online-tag {
  color: #10b981 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.band-auth-vitals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 16px;
}

.auth-vital-chip {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chip-title {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.chip-val {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.chip-val small {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}

.chip-sub {
  font-size: 10px;
  color: #059669;
  font-weight: 500;
}

.auth-wave-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
}

.auth-wave-title {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 6px;
}

.auth-wave-card svg {
  width: 100%;
  height: 65px;
  display: block;
}

.lux-login-foot-hint {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12px;
  color: #64748b;
}

/* 移动端完美适配 */
@media (max-width: 720px) {
  .band-vitals-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .band-vitals-grid .vital-item:last-child {
    grid-column: span 2;
  }
  .vital-num {
    font-size: 22px;
  }
  .band-waveform-box {
    padding: 10px;
  }
  .band-live-roster {
    justify-content: center;
  }
  .roster-pill {
    font-size: 11px;
  }
}

/* ==========================================================================
   全新 Modern SaaS 规范：彻底重构首页排版与比例，告别拥挤杂乱
   ========================================================================== */

/* 全局主容器放宽，避免强行挤在 1060px 导致双列崩溃 */
.container:not(.admin-container) {
  width: min(1280px, calc(100vw - 48px)) !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.lux-home-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 580px);
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 110px);
  padding: 40px 0 60px;
}

/* --- 左侧 HERO 文本排版 --- */
.lux-v2-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.lux-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.v2-badge-pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.lux-v2-title {
  font-size: clamp(34px, 3.2vw, 46px);
  line-height: 1.22;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  word-break: break-word;
}

.title-gradient {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 50%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lux-v2-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  max-width: 520px;
  margin: 0 0 28px;
}

.lux-v2-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.v2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.v2-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -5px rgba(37, 99, 235, 0.45);
}

.v2-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #ffffff;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  text-decoration: none;
}

.v2-btn-ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a !important;
}

/* 底部指标：单行不折行，宽阔明了 */
.lux-v2-specs {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  width: 100%;
  max-width: 520px;
}

.spec-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-num {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.spec-text {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

/* --- 右侧 BOARD 卡片排版 --- */
.lux-v2-board {
  position: relative;
  width: 100%;
}

.v2-board-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(20px);
}

.board-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 18px;
}

.device-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #0f172a;
}

.device-status-pill .live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.device-status-pill .sub-split {
  color: #cbd5e1;
}

.device-status-pill .sub-text {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.gw-status-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.gw-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0284c7;
}

/* 三联体征卡片 */
.board-vitals-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.vital-card {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vital-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.vital-icon-heart { color: #ef4444; font-size: 13px; }
.vital-icon-load { color: #f59e0b; font-size: 13px; }
.vital-icon-device { color: #2563eb; font-size: 13px; }

.vital-data {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.vital-val {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.vital-unit {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.vital-badge {
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 6px;
  width: fit-content;
}

.badge-green { background: #dcfce7; color: #15803d; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-cyan { background: #cffafe; color: #0e7490; }

/* 波形区 */
.board-ecg-window {
  background: #090d16;
  border-radius: 16px;
  padding: 14px 16px 10px;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) inset;
}

.ecg-window-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 10px;
}

.ecg-filter {
  color: #38bdf8;
  font-size: 10.5px;
  font-family: monospace;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.ecg-svg-container {
  width: 100%;
  height: 85px;
}

.ecg-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 班级标签 */
.board-footer-roster {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.roster-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 11.5px;
  color: #475569;
  font-weight: 500;
}

.roster-tag.is-active {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
  font-weight: 600;
}

.dot-green { width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.dot-blue { width: 6px; height: 6px; border-radius: 50%; background: #0ea5e9; }

/* 响应式平板与移动端 */
@media (max-width: 1024px) {
  .lux-home-v2 {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 30px 0;
  }
  .lux-v2-hero {
    align-items: center;
    text-align: center;
  }
  .lux-v2-desc {
    margin: 0 auto 24px;
  }
  .lux-v2-actions {
    justify-content: center;
  }
  .lux-v2-specs {
    justify-content: center;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .lux-v2-title {
    font-size: 30px;
  }
  .board-vitals-row {
    grid-template-columns: 1fr 1fr;
  }
  .board-vitals-row .vital-card:last-child {
    grid-column: span 2;
  }
  .lux-v2-specs {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   登录页 V2 彻底现代化重构：左右对齐、比例协调、无杂乱错位
   ========================================================================== */

.lux-auth-shell-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 120px);
  padding: 40px 0 60px;
}

.lux-auth-story-v2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.v2-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.v2-auth-title {
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1.25;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
}

.v2-auth-desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 0 24px;
}

.v2-auth-board {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(20px);
}

.v2-auth-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.auth-gw-tag {
  color: #10b981 !important;
  font-size: 11.5px !important;
  font-weight: 600;
}

.v2-auth-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.auth-chip {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.c-title { font-size: 11px; color: #64748b; font-weight: 500; }
.c-val { font-size: 18px; font-weight: 800; color: #0f172a; }
.c-val small { font-size: 11px; font-weight: 600; color: #94a3b8; }
.c-sub { font-size: 10.5px; color: #059669; font-weight: 500; }

.v2-auth-wave {
  background: #090d16;
  border-radius: 14px;
  padding: 12px 14px 8px;
  margin-bottom: 14px;
}

.auth-wave-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.auth-wave-svg {
  width: 100%;
  height: 60px;
  display: block;
}

.v2-auth-features {
  display: flex;
  gap: 8px;
}

.v2-auth-features span {
  flex: 1;
  text-align: center;
  padding: 6px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 11.5px;
  color: #475569;
  font-weight: 500;
}

/* --- 右侧登录面板 --- */
.lux-v2-login-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.12);
  width: 100%;
}

.v2-login-mark {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.v2-login-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.v2-login-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 24px;
  line-height: 1.5;
}

.v2-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v2-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v2-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.v2-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.v2-field input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.v2-submit-btn {
  margin-top: 6px;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 20px -4px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.v2-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -4px rgba(37, 99, 235, 0.45);
}

.v2-login-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: #64748b;
}

@media (max-width: 960px) {
  .lux-auth-shell-v2 {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 0;
  }
  .lux-auth-story-v2 {
    align-items: center;
    text-align: center;
  }
  .v2-auth-desc {
    margin: 0 auto 20px;
  }
  .v2-auth-board {
    margin: 0 auto;
  }
}

/* ==========================================================================
   V3 动效与业务深度体系：真实动态流动心电 Canvas、平滑呼吸与开阔排版
   ========================================================================== */

.lux-home-v3 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(490px, 580px);
  align-items: center;
  gap: 52px;
  min-height: calc(100vh - 110px);
  padding: 40px 0 60px;
}

.lux-v3-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.lux-v3-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.pulse-emerald {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  display: inline-block;
}

.lux-v3-title {
  font-size: clamp(34px, 3.2vw, 44px);
  line-height: 1.22;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

.v3-gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 45%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lux-v3-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  max-width: 560px;
  margin: 0 0 28px;
}

.lux-v3-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.v3-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.v3-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -5px rgba(37, 99, 235, 0.45);
}

.v3-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #ffffff;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  text-decoration: none;
}

.v3-btn-ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a !important;
}

/* 矩阵三维特性 */
.lux-v3-matrix {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  width: 100%;
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
}

.matrix-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.matrix-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.matrix-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.matrix-info strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.matrix-info span {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* --- 右侧看台卡片 --- */
.lux-v3-board {
  width: 100%;
}

.v3-board-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(20px);
}

.v3-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 18px;
}

.v3-pulse-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.live-dot-wave {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.status-main {
  font-weight: 700;
  color: #0f172a;
}

.split {
  color: #cbd5e1;
}

.status-sub {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.v3-time-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.time-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0284c7;
}

/* 核心指标网格：佩戴 107 */
.v3-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.v3-metric-item {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
}

.m-icon.red { color: #ef4444; }
.m-icon.blue { color: #2563eb; }
.m-icon.amber { color: #d97706; }

.metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.metric-num {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.metric-unit {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.metric-badge {
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 6px;
  width: fit-content;
}

.metric-badge.green { background: #dcfce7; color: #15803d; }
.metric-badge.blue { background: #dbeafe; color: #1d4ed8; }
.metric-badge.amber { background: #fef3c7; color: #b45309; }

/* 真正动态流动心电 Canvas 窗口 */
.v3-canvas-wrap {
  background: #090d16;
  border-radius: 16px;
  padding: 14px 16px 12px;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) inset;
}

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

.meta-stream-title {
  font-size: 11.5px;
  color: #cbd5e1;
  font-weight: 600;
  margin-right: 8px;
}

.sampling-rate {
  font-size: 10.5px;
  font-family: monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.live-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.05em;
}

.canvas-container {
  width: 100%;
  height: 95px;
}

.canvas-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* 底部状态微调条 */
.v3-vitals-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
}

.strip-node {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.s-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.s-val {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.s-val small {
  font-size: 11px;
  color: #64748b;
}

.green-tag {
  color: #16a34a !important;
}

.strip-divider {
  width: 1px;
  height: 16px;
  background: #cbd5e1;
}

/* ==========================================================================
   登录页 V3 样式优化
   ========================================================================== */
.lux-auth-shell-v3 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 440px);
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 120px);
  padding: 40px 0 60px;
}

.lux-auth-story-v3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.v3-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.v3-auth-title {
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1.25;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
}

.v3-auth-desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
  max-width: 500px;
  margin: 0 0 24px;
}

.v3-auth-board {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(20px);
}

.v3-auth-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.auth-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.auth-gw-online {
  color: #10b981 !important;
  font-size: 11.5px !important;
  font-weight: 600;
}

.v3-auth-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.v3-auth-wave-box {
  background: #090d16;
  border-radius: 14px;
  padding: 12px 14px 8px;
  margin-bottom: 14px;
}

.auth-wave-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.wave-tag {
  color: #10b981;
  font-weight: 700;
  font-size: 10px;
}

.auth-canvas {
  width: 100%;
  height: 70px;
  display: block;
}

.v3-auth-capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cap-pill {
  text-align: center;
  padding: 7px 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 11.5px;
  color: #334155;
  font-weight: 600;
  white-space: nowrap;
}

/* 登录面板卡片 */
.lux-v3-login-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.12);
  width: 100%;
}

.v3-login-brand {
  font-size: 11.5px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.v3-login-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.v3-login-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 24px;
  line-height: 1.5;
}

.v3-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v3-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v3-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.v3-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.v3-field input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.v3-submit-btn {
  margin-top: 6px;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 20px -4px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.v3-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -4px rgba(37, 99, 235, 0.45);
}

.v3-login-support {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
}

/* 响应式支持 */
@media (max-width: 1024px) {
  .lux-home-v3, .lux-auth-shell-v3 {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 30px 0;
  }
  .lux-v3-hero, .lux-auth-story-v3 {
    align-items: center;
    text-align: center;
  }
  .lux-v3-desc, .v3-auth-desc {
    margin: 0 auto 24px;
  }
  .lux-v3-actions {
    justify-content: center;
  }
  .lux-v3-matrix, .v3-auth-board {
    margin: 0 auto;
  }
}

/* ==========================================================================
   Zen Minimal 规范：彻底删减繁重文字，高端降噪，纯粹洗练
   ========================================================================== */

.zen-home {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 500px);
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 120px);
  padding: 40px 0 60px;
}

.zen-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.zen-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  color: #2563eb;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.zen-pulse {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.zen-title {
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

.zen-gradient {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zen-desc {
  font-size: 15px;
  color: #64748b;
  margin: 0 0 30px;
  font-weight: 500;
}

.zen-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 38px;
}

.zen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.zen-btn.primary {
  background: #2563eb;
  color: #ffffff !important;
  box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.35);
}

.zen-btn.primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.zen-btn.ghost {
  background: #ffffff;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
}

.zen-btn.ghost:hover {
  background: #f8fafc;
  color: #0f172a !important;
}

/* 极简数字行：3 个干净数字 */
.zen-numbers {
  display: flex;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.num-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.num-val {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.num-label {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

/* 右侧科技动态视窗：纯黑医疗级视窗，不塞繁杂文字 */
.zen-visual {
  width: 100%;
}

.zen-card {
  background: #090d16;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 1px solid #1e293b;
}

.zen-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.zen-live-text {
  font-size: 12.5px;
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.zen-tag {
  font-size: 10px;
  color: #10b981;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.zen-canvas-wrap {
  width: 100%;
  height: 110px;
}

.zen-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.zen-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #94a3b8;
}

/* ==========================================================================
   登录页纯粹化重构：居中卡片，告别一切左侧复读内容
   ========================================================================== */
.zen-auth-container {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.zen-login-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 38px 32px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08);
}

.zen-login-header {
  margin-bottom: 26px;
  text-align: center;
}

.zen-login-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 12px;
}

.zen-pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
}

.zen-login-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.zen-login-sub {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

.zen-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zen-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.zen-form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.zen-input-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.zen-input-wrap input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.zen-login-btn {
  margin-top: 6px;
  height: 44px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 16px -3px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.zen-login-btn:hover {
  background: #1d4ed8;
}

@media (max-width: 900px) {
  .zen-home {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 24px 0;
  }
  .zen-hero {
    align-items: center;
    text-align: center;
  }
  .zen-actions {
    justify-content: center;
  }
  .zen-numbers {
    justify-content: center;
  }
}
