/* ==============================================================
   补基础 · 我的自主学习角 (广东佛山专属版) - 全套高拟真样式表
   ============================================================== */

:root {
  --bg-primary: #1e3a6c;
  --bg-secondary: #26477e;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --primary-blue: #2563eb;
  --primary-blue-hover: #1d4ed8;
  --gold-color: #f59e0b;
  --gold-bg: #fef3c7;
  --border-color: #e2e8f0;
  --border-card: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.18), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #1c3664 0%, #23437a 35%, #2e518d 100%);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 40px;
}

/* 顶部通知横条 */
.top-banner-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  z-index: 50;
  position: relative;
}

.reward-notification-pill {
  background: #f59e0b;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 5px 18px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: bounceGentle 2.5s infinite;
  cursor: pointer;
}

@keyframes bounceGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* 顶部 Header */
.app-header {
  max-width: 1560px;
  margin: 0 auto;
  padding: 10px 24px 18px 24px;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.brand-section h1 {
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.brand-section p {
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 400;
}

.header-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-restart {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.btn-restart:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* 用户状态栏 (胶囊工具条) */
.user-status-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.user-identity-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}

.pill-btn {
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-btn:hover {
  transform: translateY(-1px);
}

.pill-btn:active {
  transform: translateY(0);
}

.pill-items {
  background: #ffffff;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

.pill-items:hover {
  background: #fef2f2;
}

.pill-achievements {
  background: #ffffff;
  color: #d97706;
  border: 1px solid #fef3c7;
}

.pill-achievements:hover {
  background: #fffbeb;
}

.pill-timer {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 600;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.pill-timer.paused {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.pill-timer.idle {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}

.timer-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseGreen 1.5s infinite;
}

.timer-indicator-dot.paused {
  background: #f59e0b;
  animation: none;
}

.timer-indicator-dot.idle {
  background: #94a3b8;
  animation: none;
}

.btn-clear-backpack {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-clear-backpack:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

.pool-display {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pool-amount {
  color: #facc15;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pill-withdraw {
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #fde047;
}

.pill-withdraw:hover {
  background: #fde047;
}

.pill-details {
  background: rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pill-details:hover {
  background: rgba(255, 255, 255, 0.28);
}

.pill-switch {
  background: #fbbf24;
  color: #78350f;
  margin-left: auto;
}

.pill-switch:hover {
  background: #f59e0b;
  color: #ffffff;
}

/* 主内容容器三栏栅格布局 */
.main-layout-container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 20px;
  align-items: start;
}

/* 侧边栏通用卡片样式 */
.sidebar-panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar-panel::-webkit-scrollbar {
  width: 5px;
}

.sidebar-panel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.sidebar-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin: 12px 0 8px 0;
}

.sidebar-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-item-card {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.sidebar-item-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.sidebar-item-card.completed {
  background: #fffbeb;
  border-color: #fde68a;
}

.sidebar-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}

.item-reward-tag {
  font-size: 12px;
  font-weight: 700;
  color: #d97706;
}

.item-desc {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 6px;
  line-height: 1.35;
}

.item-progress-track {
  width: 100%;
  height: 5px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 4px;
}

.item-progress-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.item-progress-fill.gold {
  background: #f59e0b;
}

.item-progress-meta {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

/* 中央主操作视窗 */
.center-content-view {
  min-height: 600px;
}

/* 首页：科目选择 */
.subject-welcome-box {
  margin-bottom: 18px;
}

.subject-welcome-box h2 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.subject-welcome-box p {
  color: #e2e8f0;
  font-size: 14px;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.subject-entry-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.subject-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-top-icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.subject-badge-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.subject-info-title h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.subject-desc-body {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.subject-meta-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 12.5px;
  color: #64748b;
}

.status-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #fef3c7;
  color: #d97706;
}

.status-badge.done {
  background: #dcfce7;
  color: #15803d;
}

/* ==============================================================
   学科详情学习角 (带4个子选项卡)
   ============================================================== */
.subject-detail-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  min-height: 650px;
}

.subject-top-nav-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.btn-back-home {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-back-home:hover {
  background: #e2e8f0;
}

.current-subject-headline {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-tag-foshan {
  font-size: 12px;
  font-weight: 500;
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #dbeafe;
}

/* 4个子选项卡切换头 */
.subject-subtabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 24px;
}

.subtab-btn {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  padding: 10px 18px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.subtab-btn:hover {
  color: #2563eb;
}

.subtab-btn.active {
  color: #2563eb;
}

.subtab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
}

/* 选项卡 1: 摸底诊断 */
.diagnostics-instruction {
  background: #f8fafc;
  border-left: 4px solid #3b82f6;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 20px;
  line-height: 1.5;
}

.diagnostics-question-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
  background: #ffffff;
  transition: box-shadow 0.2s;
}

.diagnostics-question-card:hover {
  box-shadow: var(--shadow-sm);
}

.diag-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.diag-point-tag {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

.diag-index-tag {
  font-size: 12px;
  color: #94a3b8;
}

.diag-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.5;
}

.diag-input-wrapper input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

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

.diag-choice-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.diag-choice-btn {
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.18s;
}

.diag-choice-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.diag-choice-btn.selected {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 600;
}

.diag-footer-submit {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.btn-submit-diag {
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  transition: all 0.2s;
}

.btn-submit-diag:hover {
  background: #1d4ed8;
}

/* 选项卡 2: 掌握度地图 */
.map-level-group {
  margin-bottom: 24px;
}

.map-level-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.map-points-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.map-point-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 84px;
}

.map-point-card:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.map-point-card.learned {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.map-point-card.need-repair {
  background: #fef2f2;
  border-color: #fecaca;
}

.map-point-code {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.map-point-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  margin: 4px 0 6px 0;
}

.map-point-badge {
  font-size: 11px;
  font-weight: 600;
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
}

.map-point-badge.done {
  background: #10b981;
  color: #ffffff;
}

.map-point-badge.warn {
  background: #ef4444;
  color: #ffffff;
}

/* 选项卡 3: 按断点学习 (视频重点核心展示区) */
.point-study-header {
  margin-bottom: 18px;
}

.point-tag-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.point-study-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.point-why-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  border: 1px solid #e2e8f0;
}

/* 先读懂它：五格网格卡片 */
.section-headline-bar {
  margin: 22px 0 14px 0;
}

.section-headline-bar h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.section-headline-bar p {
  font-size: 12.5px;
  color: #64748b;
}

.five-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.grid-brick-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.brick-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.brick-body {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.55;
}

/* 看老师怎么做例题 */
.example-card-box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: #ffffff;
}

.example-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.btn-toggle-steps {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.example-steps-list {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

.example-answer-bar {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #065f46;
  margin-bottom: 10px;
}

.btn-ask-tutor-link {
  color: #2563eb;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-ask-tutor-link:hover {
  text-decoration: underline;
}

/* 轮到你自己试试 (3题) */
.quiz-exercise-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
  background: #ffffff;
}

.quiz-q-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-diff-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eff6ff;
  color: #2563eb;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option-btn {
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.18s;
}

.quiz-option-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.quiz-option-btn.correct {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  font-weight: 600;
}

.quiz-option-btn.wrong {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.quiz-feedback-box {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}

.quiz-feedback-box.correct {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.quiz-feedback-box.wrong {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* 选项卡 4: 阶段试卷 🏆 */
.exam-banner-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.exam-banner-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exam-banner-card p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
}

.exam-tier-picker {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.exam-tier-option {
  flex: 1;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.exam-tier-option:hover {
  border-color: #f59e0b;
}

.exam-tier-option.selected {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 0 0 2px #fde68a;
}

.tier-score-target {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.tier-bonus-reward {
  font-size: 13px;
  font-weight: 700;
  color: #d97706;
}

.btn-start-exam {
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.btn-start-exam:hover {
  background: #1d4ed8;
}

/* ==============================================================
   右下角悬浮按钮与所有弹窗样式
   ============================================================== */
.floating-assistant-trigger {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1e3a6c;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
}

.floating-assistant-trigger:hover {
  transform: scale(1.1);
  background: #2563eb;
}

/* 模态弹窗遮罩层 */
.modal-overlay-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window-dialog {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay-backdrop.active .modal-window-dialog {
  transform: translateY(0) scale(1);
}

.modal-window-dialog.wide {
  max-width: 820px;
}

.modal-header-bar {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-wrap h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-wrap p {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 22px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}

.btn-close-modal:hover {
  color: #334155;
}

.modal-scrollable-body {
  padding: 20px 22px;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* ================= 我的物品弹窗样式 ================= */
.drop-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-bottom: 20px;
}

.drop-stats-table th {
  text-align: left;
  padding: 8px 10px;
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
}

.drop-stats-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.guarantee-box-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.guarantee-box-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.suit-exchange-card {
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid;
}

.btn-suit-claim {
  background: #10b981;
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-suit-claim:hover {
  background: #059669;
}

.backpack-items-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.backpack-item-cell {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.18s;
}

.backpack-item-cell:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
}

.item-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

.item-cell-icon {
  font-size: 26px;
  margin-bottom: 4px;
}

.item-cell-name {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

.item-cell-sub {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ================= AI 辅导老师对话弹窗 ================= */
.tutor-chat-stream {
  min-height: 280px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 12px;
}

.chat-bubble-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-bubble-row.user {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.chat-avatar.user {
  background: #fef3c7;
  border-color: #fde68a;
}

.chat-bubble-card {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.6;
}

.chat-bubble-card.teacher {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 2px;
}

.chat-bubble-card.user {
  background: #2563eb;
  color: #ffffff;
  border-top-right-radius: 2px;
}

.tutor-quick-prompts {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px 0;
  flex-wrap: wrap;
}

.btn-quick-prompt {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-quick-prompt:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tutor-input-box-row {
  display: flex;
  gap: 10px;
}

.tutor-input-box-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13.5px;
  outline: none;
}

.tutor-input-box-row input:focus {
  border-color: #2563eb;
}

.btn-tutor-send {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s;
}

.btn-tutor-send:hover {
  background: #2563eb;
}

/* 响应式适配 */
@media (max-width: 1280px) {
  .main-layout-container {
    grid-template-columns: 240px 1fr 240px;
    padding: 0 16px;
  }
  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-points-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .main-layout-container {
    grid-template-columns: 1fr;
  }
  .sidebar-panel {
    position: static;
    max-height: none;
  }
}

/* 佛山12年级专属切换器与导航条 */
.btn-grade-picker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 20px;
  padding: 6px 14px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.btn-grade-picker:hover {
  background: rgba(30, 58, 138, 0.85);
  border-color: #60a5fa;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.grade-picker-icon {
  font-size: 16px;
}

.grade-picker-name {
  color: #f8fafc;
  font-weight: 700;
}

.grade-picker-tag {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

.grade-picker-arrow {
  color: #93c5fd;
  font-size: 12px;
  margin-left: 2px;
  transition: transform 0.2s;
}

.btn-grade-picker:hover .grade-picker-arrow {
  transform: translateY(1px);
}

/* 首页快捷学段与年级选择条 */
.grade-quick-bar {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.stage-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.stage-tab-btn {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stage-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.stage-tab-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.stage-view-all-btn {
  margin-left: auto;
  background: transparent;
  color: #2563eb;
  border: 1px dashed #93c5fd;
  font-size: 12.5px;
}

.stage-view-all-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.grade-pills-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.grade-pill {
  flex-shrink: 0;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.grade-pill:hover {
  border-color: #3b82f6;
  color: #1d4ed8;
  background: #f8fafc;
  transform: translateY(-1px);
}

.grade-pill.active {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #1e3a8a;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35);
}

.grade-pill .pill-badge {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 700;
}

.grade-pill.active .pill-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* 12年级选择器弹窗详情卡片布局 */
.grade-modal-dialog {
  max-width: 960px;
}

.grade-stage-section {
  margin-bottom: 24px;
}

.grade-stage-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.grade-stage-header h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.grade-stage-header .stage-curriculum-hint {
  font-size: 12px;
  color: #64748b;
}

.grade-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.grade-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.grade-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.grade-card.active {
  border-color: #2563eb;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.18);
  outline: 2px solid #2563eb;
}

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

.grade-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.grade-card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0369a1;
}

.grade-card.active .grade-card-badge {
  background: #2563eb;
  color: #ffffff;
}

.grade-card-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 10px;
  min-height: 36px;
}

.grade-card-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed #f1f5f9;
}

.subj-tag-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}

.grade-card.active .subj-tag-pill {
  background: #dbeafe;
  color: #1e40af;
}

.grade-card-current-pill {
  position: absolute;
  top: -9px;
  right: 12px;
  background: #10b981;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.btn-network-sync {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn-network-sync:hover {
  background: rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

.pill-parent {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%) !important;
  color: #ffffff !important;
  border: 1px solid #6366f1 !important;
}

/* 双宝切换胶囊栏 */
.child-switcher-group {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  padding: 3px;
  gap: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.btn-child-tab {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 5px 12px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-child-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
}

.btn-child-tab.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.45);
}

.btn-child-tab.active.child-girl {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
  box-shadow: 0 3px 10px rgba(219, 39, 119, 0.45);
}

.child-avatar {
  font-size: 15px;
}

.child-name-text {
  font-size: 12.5px;
}

/* 家庭账号胶囊按钮 */
.pill-family-account {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid #38bdf8 !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.pill-family-account:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  transform: translateY(-1px);
}

/* 账号管理模态弹窗与注册表单 */
.account-modal-dialog {
  max-width: 680px;
}

.account-nav-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  margin: 14px 20px 0 20px;
}

.account-tab-btn {
  flex: 1;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.account-tab-btn:hover {
  color: #0f172a;
}

.account-tab-btn.active {
  background: #ffffff;
  color: #1e40af;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.account-banner-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.banner-fam-icon {
  font-size: 32px;
}

.banner-fam-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1e3a8a;
}

.banner-fam-info p {
  margin: 3px 0 0 0;
  font-size: 12.5px;
  color: #475569;
}

.active-badge-pill {
  margin-left: auto;
  background: #10b981;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.form-section-title {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  margin: 12px 0 8px 0;
}

.dual-child-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.child-edit-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.child-edit-card.card-boy {
  border-color: #93c5fd;
  background: #f8faff;
}

.child-edit-card.card-girl {
  border-color: #fbcfe8;
  background: #fff8fc;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.card-boy .card-head { color: #1d4ed8; }
.card-girl .card-head { color: #be185d; }

.form-group-item {
  margin-bottom: 10px;
}

.form-group-item label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.form-group-item input, .grade-select-dropdown {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  background: #ffffff;
  color: #0f172a;
}

.form-group-item input:focus, .grade-select-dropdown:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.dual-parents-pin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.parent-pin-item {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

.parent-pin-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.parent-pin-item input {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  letter-spacing: 2px;
  font-family: monospace;
}

.pin-hint {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.btn-save-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s;
}

.btn-save-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.register-welcome-hint {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #92400e;
  line-height: 1.5;
  margin-bottom: 14px;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.required {
  color: #ef4444;
}

/* 来自家长的实时悬浮提醒横幅 */
.parent-floating-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border: 2px solid #818cf8;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(99, 102, 241, 0.5);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: bannerSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90vw;
}

@keyframes bannerSlideIn {
  from { opacity: 0; transform: translate(-50%, -30px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.parent-banner-avatar {
  font-size: 28px;
}

.parent-banner-content {
  font-size: 14px;
}

.parent-banner-content strong {
  color: #a5b4fc;
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.btn-close-banner {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  cursor: pointer;
}

/* 二维码与多端连接弹窗 */
.qr-modal-content {
  text-align: center;
  padding: 10px;
}

.qr-code-box {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  display: inline-block;
  margin: 16px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.device-tips-list {
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #334155;
  margin-top: 14px;
  line-height: 1.6;
}

/* 手机端极简适配 (max-width: 768px) */
@media (max-width: 768px) {
  .app-header {
    padding: 10px 12px;
  }
  .header-top-row {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .header-actions-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }
  .user-status-strip {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .main-layout-container {
    padding: 0 10px;
    gap: 16px;
  }
  .subjects-grid {
    grid-template-columns: 1fr;
  }
  .map-points-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-dialog-box {
    width: 95vw;
    padding: 16px;
    max-height: 90vh;
  }
  .stage-tabs-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .stage-tab-btn {
    flex-shrink: 0;
    font-size: 12.5px;
    padding: 6px 12px;
  }
  .grade-cards-grid {
    grid-template-columns: 1fr;
  }
}

