/* =========================================
   globals.css - 函泽声智能学习平台 · Linear Pastel 风
========================================= */

:root {
  --bg-base: #f7f2ea;
  --sidebar-bg: linear-gradient(180deg, rgba(224, 238, 255, 0.78) 0%, rgba(248, 250, 252, 0.72) 42%, rgba(255, 250, 242, 0.82) 100%);
  --content-bg: rgba(255, 255, 255, 0.78);
  --card-bg: rgba(255, 255, 255, 0.86);

  --text-main: #1a1a2e;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;

  --border-light: rgba(92, 74, 51, 0.075);
  --border-hover: rgba(92, 74, 51, 0.16);

  /* 主按钮 - 深色 */
  --primary: #0f172a;
  --primary-fg: #ffffff;

  /* 柔和马卡龙色（卡片背景） */
  --pastel-purple: #e9e5ff;
  --pastel-blue: #dbeafe;
  --pastel-green: #d1fae5;
  --pastel-yellow: #fef3c7;
  --pastel-pink: #fce7f3;
  --pastel-orange: #ffedd5;
  --pastel-mint: #ccfbf1;
  --pastel-lavender: #ede9fe;

  /* 强调色（文字/图标） */
  --accent-purple: #7c3aed;
  --accent-blue: #2563eb;
  --accent-green: #059669;
  --accent-yellow: #d97706;
  --accent-pink: #db2777;
  --accent-orange: #ea580c;

  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 8px;

  --sidebar-width: 240px;
}

[data-theme="dark"] {
  --bg-base: #0a0a0f;
  --sidebar-bg: rgba(20, 20, 28, 0.55);
  --content-bg: rgba(24, 24, 32, 0.7);
  --card-bg: #18181f;

  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;

  --border-light: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --primary: #fafafa;
  --primary-fg: #0a0a0f;

  --pastel-purple: rgba(124, 58, 237, 0.15);
  --pastel-blue: rgba(37, 99, 235, 0.15);
  --pastel-green: rgba(5, 150, 105, 0.15);
  --pastel-yellow: rgba(217, 119, 6, 0.15);
  --pastel-pink: rgba(219, 39, 119, 0.15);
  --pastel-orange: rgba(234, 88, 12, 0.15);
  --pastel-mint: rgba(20, 184, 166, 0.15);
  --pastel-lavender: rgba(139, 92, 246, 0.15);

  --accent-purple: #a78bfa;
  --accent-blue: #60a5fa;
  --accent-green: #34d399;
  --accent-yellow: #fbbf24;
  --accent-pink: #f472b6;
  --accent-orange: #fb923c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", sans-serif;
  font-size: 14px;
  color: var(--text-main);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(191, 219, 254, 0.42), transparent 34%),
    radial-gradient(circle at 92% 6%, rgba(216, 180, 254, 0.24), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(245, 202, 153, 0.28), transparent 42%),
    linear-gradient(180deg, #f8fbff 0%, #faf7f1 48%, #f5efe6 100%);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ========== 布局骨架 ========== */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 20px 16px;
  background: var(--sidebar-bg);
  backdrop-filter: blur(28px) saturate(1.12);
  -webkit-backdrop-filter: blur(28px) saturate(1.12);
  border-right: 1px solid rgba(255,255,255,0.72);
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.55), 10px 0 34px rgba(96, 165, 250, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.main {
  padding: 24px 32px 48px;
  min-width: 0;
}

/* ========== 侧边栏组件 ========== */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 20px;
}
.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.62), transparent 34%),
    linear-gradient(135deg, #4f46e5 0%, #7c3aed 52%, #c084fc 100%);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.24), inset 0 1px 0 rgba(255,255,255,0.42);
}
.sidebar-logo-text {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.sidebar-section-label {
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 10px 6px;
  font-weight: 500;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-main);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62);
}
.nav-item.active {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-main);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06), inset 0 0 0 1px rgba(255,255,255,0.78);
}
.nav-item svg {
  width: 17px;
  height: 17px;
  stroke-width: 2px;
  flex-shrink: 0;
}
.nav-badge {
  margin-left: auto;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-user:hover { background: rgba(255, 255, 255, 0.56); }
.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; flex: 1; }
.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 1px;
}

/* ========== 面包屑 ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-subtle);
  font-size: 13px;
  margin-bottom: 20px;
}
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text-main); font-weight: 500; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  height: 36px;
  padding: 0 14px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 15px; height: 15px; stroke-width: 2; }

.btn-primary {
  background: linear-gradient(180deg, #111827 0%, #020617 100%);
  color: var(--primary-fg);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255,255,255,0.14);
}

.btn-outline {
  background: rgba(255,255,255,0.72);
  border-color: rgba(92, 74, 51, 0.10);
  color: var(--text-main);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}
.btn-outline:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.90);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { background: rgba(15, 23, 42, 0.05); color: var(--text-main); }

.btn-icon {
  width: 36px;
  padding: 0;
}

/* ========== 页面标题 ========== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

/* ========== 柔和彩色卡片 ========== */
.pastel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.pastel-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.70);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.90) 0%, rgba(255,250,242,0.78) 100%);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.pastel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.88);
  box-shadow: 0 18px 42px rgba(92, 74, 51, 0.10), 0 6px 18px rgba(96, 165, 250, 0.08);
}
.pastel-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pastel-card.disabled:hover { transform: none; }

.pastel-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pastel-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pastel-icon svg { width: 20px; height: 20px; stroke-width: 2; }

/* 配色组合 */
.pc-purple .pastel-icon { background: var(--pastel-purple); color: var(--accent-purple); }
.pc-blue   .pastel-icon { background: var(--pastel-blue);   color: var(--accent-blue); }
.pc-green  .pastel-icon { background: var(--pastel-green);  color: var(--accent-green); }
.pc-yellow .pastel-icon { background: var(--pastel-yellow); color: var(--accent-yellow); }
.pc-pink   .pastel-icon { background: var(--pastel-pink);   color: var(--accent-pink); }
.pc-orange .pastel-icon { background: var(--pastel-orange); color: var(--accent-orange); }
.pc-mint   .pastel-icon { background: var(--pastel-mint);   color: var(--accent-green); }
.pc-lavender .pastel-icon { background: var(--pastel-lavender); color: var(--accent-purple); }

.pastel-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pastel-card .card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pastel-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-subtle);
}
.pastel-card-foot .go-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.76);
  color: var(--text-main);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.78);
  transition: all 0.2s;
}
.pastel-card:hover .go-arrow {
  background: var(--primary);
  color: var(--primary-fg);
  transform: translateX(2px);
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  :root { --sidebar-width: 72px; }
  .sidebar-logo-text,
  .sidebar-section-label,
  .nav-item span:not(.nav-badge),
  .sidebar-user-info { display: none; }
  .sidebar { padding: 20px 10px; align-items: center; }
  .sidebar-logo { padding: 4px 0 20px; justify-content: center; }
  .nav-item { justify-content: center; padding: 10px; }
  .main { padding: 20px; }
  .sidebar-user { justify-content: center; padding: 4px; }
}

@media (max-width: 600px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: auto;
    flex-direction: row;
    padding: 10px 14px;
    z-index: 100;
    gap: 4px;
    overflow-x: auto;
  }
  .sidebar-footer, .sidebar-section-label { display: none; }
  .sidebar-logo { padding: 0; }
  .nav-item { padding: 8px; }
  .main { padding: 72px 16px 32px; }
  .page-title { font-size: 22px; }
}

/* 加载动画 */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

.hidden { display: none !important; }

/* ========== 第 2 批新增：表单 ========== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all 0.15s;
  outline: none;
}
.form-input:focus {
  border-color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}
.form-input::placeholder { color: var(--text-subtle); }

textarea.form-input {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-muted);
}
.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--secondary, #f1f5f9);
  color: var(--text-subtle);
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
}
.empty-state-icon svg { width: 24px; height: 24px; }
.empty-state-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}
.empty-state-desc { font-size: 13px; }

/* ========== 区块标题 ========== */
.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 24px 0 12px;
  text-transform: none;
  letter-spacing: 0;
}

/* ========== 统计块（小型 KPI） ========== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat-card {
  padding: 16px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-label svg { width: 13px; height: 13px; }
.stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-suffix {
  font-size: 12px;
  color: var(--text-subtle);
  font-weight: 500;
  margin-left: 4px;
}

/* ========== 列表项 ========== */
.list-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
  cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: rgba(15, 23, 42, 0.025); }
.list-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  color: white;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.list-item-main { flex: 1; min-width: 0; }
.list-item-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.list-item-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.list-item-action {
  font-size: 12px;
  color: var(--text-subtle);
}

/* ========== 标签徽章 ========== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
}
.tag-purple { background: var(--pastel-purple); color: var(--accent-purple); }
.tag-blue   { background: var(--pastel-blue);   color: var(--accent-blue); }
.tag-green  { background: var(--pastel-green);  color: var(--accent-green); }
.tag-yellow { background: var(--pastel-yellow); color: var(--accent-yellow); }
.tag-pink   { background: var(--pastel-pink);   color: var(--accent-pink); }
.tag-gray   { background: var(--secondary, #f1f5f9); color: var(--text-muted); }

/* ========== 登录页专用 ========== */
.auth-shell {
  display: grid;
  grid-template-columns: 5fr 6fr;
  min-height: 100vh;
}
.auth-brand {
  position: relative;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 20% 20%, rgba(167, 139, 250, 0.35), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.3), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(253, 186, 116, 0.18), transparent 60%),
    #f0f2f7;
  overflow: hidden;
}
.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-main);
}
.auth-brand-logo .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}
.auth-brand-tagline {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 460px;
  color: var(--text-main);
}
.auth-brand-sub {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.6;
}
.auth-brand-meta {
  font-size: 12px;
  color: var(--text-subtle);
}
.auth-form-area {
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: var(--bg-base);
}
.auth-form {
  width: 100%;
  max-width: 360px;
}
.auth-form-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.auth-form-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.auth-msg {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-msg.error { background: var(--pastel-pink); color: var(--accent-pink); }
.auth-msg.success { background: var(--pastel-green); color: var(--accent-green); }
.auth-msg.info { background: var(--pastel-blue); color: var(--accent-blue); }
.auth-msg svg { width: 14px; height: 14px; flex-shrink: 0; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { padding: 32px; min-height: 240px; }
  .auth-brand-tagline { font-size: 26px; }
  .auth-form-area { padding: 32px 24px; }
}

/* 响应式补丁：手机端 stat-row 改 2 列 */
@media (max-width: 600px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 第 3 批新增 ========== */
/* 复合内容卡片 */
.panel {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 20px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.panel-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* 两列布局 */
.layout-2col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
@media (max-width: 1100px) { .layout-2col { grid-template-columns: 1fr; } }

/* 复选框（自定义样式） */
.checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-hover);
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  background: var(--card-bg);
}
.checkbox.checked {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}
.checkbox.checked::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 1.7px solid var(--primary-fg);
  border-bottom: 1.7px solid var(--primary-fg);
  transform: rotate(-45deg) translate(1px, -1px);
}

/* 选中态行 */
.list-item.selected {
  background: var(--pastel-purple);
}

/* 模板卡 */
.template-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.template-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.template-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.template-card-content {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.template-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}
.template-card-actions .btn { height: 28px; padding: 0 10px; font-size: 12px; }

/* 模态框 */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 20px;
}
.modal {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  border: 1px solid var(--border-light);
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-main);
  color: var(--bg-base);
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  z-index: 2000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ========== 第 4 批新增：表格 ========== */
.table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table thead th {
  text-align: left;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 12px 16px;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
.table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(15, 23, 42, 0.02); }

.table-actions {
  display: flex;
  gap: 4px;
}
.table-actions .btn { height: 26px; padding: 0 10px; font-size: 11.5px; }

/* 表格里的小头像 */
.cell-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cell-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  color: white;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}
.cell-user-name { font-weight: 500; }
.cell-sub { font-size: 11.5px; color: var(--text-subtle); margin-top: 1px; }

/* ========== 标签页 ========== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
  overflow-x: auto;
}
.tab {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
}
.tab:hover { color: var(--text-main); }
.tab.active {
  color: var(--text-main);
  border-bottom-color: var(--text-main);
}

/* ========== 搜索框 ========== */
.search-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.search-box svg {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  color: var(--text-subtle);
  pointer-events: none;
}
.search-box .form-input {
  width: 240px;
  padding-left: 34px;
  height: 36px;
}

/* 开关 */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}
.switch input { display: none; }
.switch-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 99px;
  cursor: pointer;
  transition: 0.2s;
}
.switch-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.switch input:checked + .switch-slider { background: var(--primary); }
.switch input:checked + .switch-slider::before { transform: translateX(16px); }

/* 进度条 */
.progress {
  height: 6px;
  background: var(--secondary, #f1f5f9);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #818cf8, #c084fc);
  transition: width 0.3s;
}

/* select 下拉 */
.form-select {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background: var(--card-bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  appearance: none;
  cursor: pointer;
  outline: none;
}
.form-select:focus {
  border-color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

/* 危险按钮 */
.btn-danger {
  background: #ef4444;
  color: white;
}
.btn-danger:hover { opacity: 0.9; }

/* 大数字仪表盘卡片 */
.dash-stat {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.dash-stat-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.dash-stat-icon svg { width: 18px; height: 18px; }
.dash-stat-label { font-size: 12.5px; color: var(--text-muted); margin-bottom: 8px; }
.dash-stat-value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.dash-stat-trend {
  font-size: 11.5px;
  color: var(--accent-green);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.dash-stat-trend.down { color: var(--accent-pink); }
.dash-stat-trend svg { width: 12px; height: 12px; }

/* ========== 第 5 批新增：报告页 ========== */
.report-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.report-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(167, 139, 250, 0.12), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(96, 165, 250, 0.08), transparent 40%);
  pointer-events: none;
}
.report-hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  color: white;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.report-hero-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.report-hero-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.report-hero-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.report-hero-meta svg { width: 13px; height: 13px; }
.report-hero-meta .dot { color: var(--text-subtle); }

/* 时间段切换 */
.range-tabs {
  display: inline-flex;
  background: var(--secondary, #f1f5f9);
  padding: 3px;
  border-radius: 99px;
  gap: 2px;
}
.range-tab {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s;
}
.range-tab.active {
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* 进度环 (纯 CSS) */
.ring {
  --pct: 0;
  --size: 80px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--accent-purple) calc(var(--pct) * 1%), var(--secondary, #f1f5f9) 0);
  position: relative;
}
.ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: var(--card-bg);
  border-radius: 50%;
}
.ring-text {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 时间线（点评流） */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-light);
}
.timeline-item {
  position: relative;
  padding-bottom: 18px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--accent-purple);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-date {
  font-size: 11px;
  color: var(--text-subtle);
  margin-bottom: 4px;
  font-weight: 500;
}
.timeline-title {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.timeline-content {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 简易柱状条（学习活跃） */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 130px;
  padding: 12px 0;
}
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar-bar {
  width: 100%;
  background: linear-gradient(180deg, #818cf8, #c084fc);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: all 0.3s;
}
.bar-label { font-size: 11px; color: var(--text-subtle); }
.bar-val { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* 周报样式 */
.week-summary {
  background: linear-gradient(135deg, var(--pastel-purple), var(--pastel-blue));
  padding: 24px;
  border-radius: var(--radius-xl);
  margin-bottom: 18px;
}
.week-summary-label {
  font-size: 12px;
  color: var(--accent-purple);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.week-summary-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  margin-top: 8px;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

/* ========== 第 5 批新增：报告页 ========== */
.report-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.report-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(167, 139, 250, 0.12), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(96, 165, 250, 0.08), transparent 40%);
  pointer-events: none;
}
.report-hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  color: white;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.report-hero-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.report-hero-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.report-hero-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.report-hero-meta svg { width: 13px; height: 13px; }
.report-hero-meta .dot { color: var(--text-subtle); }

/* 时间段切换 */
.range-tabs {
  display: inline-flex;
  background: var(--secondary, #f1f5f9);
  padding: 3px;
  border-radius: 99px;
  gap: 2px;
}
.range-tab {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s;
}
.range-tab.active {
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* 进度环 (纯 CSS) */
.ring {
  --pct: 0;
  --size: 80px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--accent-purple) calc(var(--pct) * 1%), var(--secondary, #f1f5f9) 0);
  position: relative;
}
.ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: var(--card-bg);
  border-radius: 50%;
}
.ring-text {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 时间线（点评流） */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-light);
}
.timeline-item {
  position: relative;
  padding-bottom: 18px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--accent-purple);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-date {
  font-size: 11px;
  color: var(--text-subtle);
  margin-bottom: 4px;
  font-weight: 500;
}
.timeline-title {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.timeline-content {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 简易柱状条（学习活跃） */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 130px;
  padding: 12px 0;
}
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar-bar {
  width: 100%;
  background: linear-gradient(180deg, #818cf8, #c084fc);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: all 0.3s;
}
.bar-label { font-size: 11px; color: var(--text-subtle); }
.bar-val { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* 周报样式 */
.week-summary {
  background: linear-gradient(135deg, var(--pastel-purple), var(--pastel-blue));
  padding: 24px;
  border-radius: var(--radius-xl);
  margin-bottom: 18px;
}
.week-summary-label {
  font-size: 12px;
  color: var(--accent-purple);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.week-summary-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  margin-top: 8px;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

/* ========== 第 6 批新增：品牌门面页 ========== */
.brand-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.brand-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(167, 139, 250, 0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.15), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(253, 186, 116, 0.10), transparent 60%);
  pointer-events: none;
}
.brand-nav {
  position: relative;
  z-index: 2;
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}
.brand-hero-inner { max-width: 720px; }
.brand-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 99px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.brand-hero-pill svg { width: 13px; height: 13px; color: var(--accent-purple); }
.brand-hero-title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 18px;
}
.brand-hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 32px;
}
.brand-hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.brand-foot {
  position: relative;
  z-index: 2;
  padding: 24px 36px;
  font-size: 12px;
  color: var(--text-subtle);
  text-align: center;
}

@media (max-width: 700px) {
  .brand-nav { padding: 18px 20px; }
  .brand-hero-title { font-size: 38px; }
  .brand-hero-sub { font-size: 14px; }
}

/* 占位页（course / video-room） */
.placeholder-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  text-align: center;
  max-width: 560px;
  margin: 40px auto;
}
.placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--pastel-purple);
  color: var(--accent-purple);
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
}
.placeholder-icon svg { width: 28px; height: 28px; }
.placeholder-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.placeholder-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}


/* UI_FINAL_COMPONENTS_START */
/* 第 11 批：最终 UI 组件质感收口（奶油蓝玻璃风） */

/* 统一交互节奏 */
.btn,
.pastel-card,
.panel,
.dash-stat,
.stat-card,
.table-wrap,
.modal,
.empty-state,
.form-input,
.form-select {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

/* ========== 按钮：黑色高级胶囊 + 奶油描边按钮 ========== */
.btn {
  border-radius: 999px;
  height: 38px;
  padding: 0 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(180deg, #111827 0%, #020617 100%);
  color: #ffffff;
  border-color: rgba(255,255,255,0.10);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.20),
    inset 0 1px 0 rgba(255,255,255,0.14);
}
.btn-primary:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.16);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,250,242,0.76) 100%);
  border-color: rgba(92, 74, 51, 0.12);
  color: var(--text-main);
  box-shadow:
    0 8px 20px rgba(92, 74, 51, 0.045),
    inset 0 1px 0 rgba(255,255,255,0.78);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.94);
  border-color: rgba(92, 74, 51, 0.18);
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(92, 74, 51, 0.075),
    inset 0 1px 0 rgba(255,255,255,0.86);
}

.btn-ghost {
  border-color: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.60);
  color: var(--text-main);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.70);
}

.btn-danger {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
  color: #ffffff;
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.18), inset 0 1px 0 rgba(255,255,255,0.16);
}
.btn-danger:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(239, 68, 68, 0.24), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-icon {
  width: 38px;
  padding: 0;
}

/* ========== 柔和彩色卡片：奶油玻璃卡片 ========== */
.pastel-grid {
  gap: 16px;
}

.pastel-card {
  border: 1px solid rgba(255,255,255,0.72);
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,0.80), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.90) 0%, rgba(255,250,242,0.78) 100%);
  box-shadow:
    0 12px 34px rgba(92, 74, 51, 0.055),
    inset 0 1px 0 rgba(255,255,255,0.76);
}

.pastel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.45), transparent 36%),
    radial-gradient(circle at 86% 12%, rgba(191, 219, 254, 0.20), transparent 28%);
  opacity: 0.85;
}

.pastel-card > * {
  position: relative;
  z-index: 1;
}

.pastel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.92);
  box-shadow:
    0 22px 52px rgba(92, 74, 51, 0.12),
    0 8px 22px rgba(96, 165, 250, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.86);
}

.pastel-card.disabled {
  opacity: 0.50;
  filter: saturate(0.82);
}

.pastel-card.disabled:hover {
  transform: none;
  box-shadow:
    0 12px 34px rgba(92, 74, 51, 0.055),
    inset 0 1px 0 rgba(255,255,255,0.76);
}

.pastel-icon {
  border-radius: 15px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 8px 18px rgba(15, 23, 42, 0.045);
}

.pastel-card-foot {
  border-top-color: rgba(92, 74, 51, 0.08);
}

.pastel-card-foot .go-arrow {
  background: rgba(255,255,255,0.78);
  color: var(--text-main);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.82),
    0 6px 14px rgba(15, 23, 42, 0.045);
}

.pastel-card:hover .go-arrow {
  background: linear-gradient(180deg, #111827 0%, #020617 100%);
  color: #ffffff;
  transform: translateX(3px);
}

/* ========== 普通面板：从白块升级为奶油玻璃面板 ========== */
.panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,250,242,0.76) 100%);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow:
    0 14px 36px rgba(92, 74, 51, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.76);
}

.panel-header {
  margin-bottom: 18px;
}

.panel-title {
  font-size: 15.5px;
  font-weight: 700;
}

/* ========== KPI 大数字卡片 ========== */
.dash-stat {
  background:
    radial-gradient(circle at 100% 0%, rgba(191, 219, 254, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.90), rgba(255,250,242,0.78));
  border: 1px solid rgba(255,255,255,0.74);
  box-shadow:
    0 14px 36px rgba(92, 74, 51, 0.065),
    inset 0 1px 0 rgba(255,255,255,0.80);
}

.dash-stat:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 46px rgba(92, 74, 51, 0.10),
    0 8px 22px rgba(96, 165, 250, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.86);
}

.dash-stat-icon {
  background: rgba(255,255,255,0.68);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.80), 0 8px 18px rgba(15,23,42,0.045);
}

.dash-stat-label {
  font-weight: 600;
}

.dash-stat-value {
  font-size: 30px;
}

/* ========== 小统计卡片 ========== */
.stat-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,250,242,0.72));
  border: 1px solid rgba(255,255,255,0.70);
  border-radius: var(--radius-lg);
  box-shadow:
    0 10px 26px rgba(92, 74, 51, 0.05),
    inset 0 1px 0 rgba(255,255,255,0.74);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(92, 74, 51, 0.085),
    inset 0 1px 0 rgba(255,255,255,0.82);
}

.stat-label {
  font-weight: 600;
}

.stat-value {
  font-size: 23px;
}

/* ========== 表单：奶油白输入框 ========== */
.form-label {
  font-weight: 600;
  color: var(--text-muted);
}

.form-input,
.form-select {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,250,242,0.76));
  border-color: rgba(92, 74, 51, 0.12);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    0 6px 16px rgba(92, 74, 51, 0.035);
}

.form-input:hover,
.form-select:hover {
  border-color: rgba(92, 74, 51, 0.18);
}

.form-input:focus,
.form-select:focus {
  border-color: rgba(15, 23, 42, 0.72);
  background: rgba(255,255,255,0.94);
  box-shadow:
    0 0 0 4px rgba(191, 219, 254, 0.42),
    0 8px 20px rgba(92, 74, 51, 0.055),
    inset 0 1px 0 rgba(255,255,255,0.86);
}

.search-box .form-input {
  border-radius: 999px;
}

/* ========== 表格：后台页面统一玻璃容器 ========== */
.table-wrap {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,250,242,0.74));
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: var(--radius-xl);
  box-shadow:
    0 14px 36px rgba(92, 74, 51, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.76);
}

.table thead th {
  background: rgba(255,255,255,0.48);
  color: var(--text-muted);
  font-weight: 700;
  border-bottom-color: rgba(92, 74, 51, 0.08);
}

.table tbody td {
  border-bottom-color: rgba(92, 74, 51, 0.065);
}

.table tbody tr:hover {
  background: rgba(255,255,255,0.52);
}

.cell-user-avatar {
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.55), transparent 34%),
    linear-gradient(135deg, #6366f1, #c084fc);
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.14);
}

/* ========== 空状态：更像产品里的温柔提示卡 ========== */
.empty-state {
  border-radius: var(--radius-xl);
}

.empty-state-icon {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,250,242,0.74));
  color: var(--accent-blue);
  box-shadow:
    0 12px 28px rgba(96, 165, 250, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.82);
}

.empty-state-title {
  font-weight: 700;
}

.empty-state-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== 标签：增加玻璃边框和高光 ========== */
.tag {
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.52);
  font-weight: 600;
}

.tag-gray {
  background: rgba(255,255,255,0.58);
  color: var(--text-muted);
}

/* ========== 弹窗：奶油玻璃弹窗 ========== */
.modal-mask {
  background:
    radial-gradient(circle at 50% 10%, rgba(191, 219, 254, 0.24), transparent 36%),
    rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,250,242,0.84));
  border: 1px solid rgba(255,255,255,0.76);
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.20),
    0 12px 30px rgba(92, 74, 51, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.86);
}

.modal-title {
  font-size: 19px;
  font-weight: 800;
}

.modal-desc {
  line-height: 1.6;
}

/* 暗色模式保护：避免浅色覆盖把暗色模式弄脏 */
[data-theme="dark"] .pastel-card,
[data-theme="dark"] .panel,
[data-theme="dark"] .dash-stat,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .modal,
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select {
  background: var(--card-bg);
  border-color: var(--border-light);
  box-shadow: none;
}

[data-theme="dark"] .table thead th {
  background: rgba(255,255,255,0.04);
}

[data-theme="dark"] .table tbody tr:hover {
  background: rgba(255,255,255,0.04);
}

[data-theme="dark"] .btn-outline {
  background: var(--card-bg);
  border-color: var(--border-light);
}

[data-theme="dark"] .btn-ghost:hover {
  background: rgba(255,255,255,0.06);
}

[data-theme="dark"] .empty-state-icon {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  box-shadow: none;
}
/* UI_FINAL_COMPONENTS_END */


/* UI_FINAL_PAGES_START */
/* 第 12 批：重点页面逐页 UI 收口 */

/* ========== 页面顶部：更舒展的完成品标题区 ========== */
.breadcrumb {
  margin-bottom: 18px;
  padding: 4px 2px;
}

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

.breadcrumb a:hover {
  color: var(--text-main);
}

.page-header {
  margin-bottom: 26px;
  padding-bottom: 2px;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.page-subtitle {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
}

/* 分区标题：让“我的孩子 / 服务功能 / 学习功能”更像模块标题 */
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.section-title::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(135deg, #6366f1, #c084fc);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.10);
}

/* ========== 统一报告/周报 KPI 网格 ========== */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

/* ========== 报告顶部 Hero：奶油蓝玻璃风完成版 ========== */
.report-hero {
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.76);
  background:
    radial-gradient(circle at 96% 0%, rgba(191, 219, 254, 0.34), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(245, 202, 153, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.90), rgba(255,250,242,0.78));
  box-shadow:
    0 18px 44px rgba(92, 74, 51, 0.075),
    0 8px 22px rgba(96, 165, 250, 0.07),
    inset 0 1px 0 rgba(255,255,255,0.82);
}

.report-hero::before {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.48), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(216,180,254,0.20), transparent 30%);
}

.report-hero-avatar {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 32% 20%, rgba(255,255,255,0.58), transparent 34%),
    linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #c084fc 100%);
  box-shadow:
    0 14px 30px rgba(99,102,241,0.20),
    inset 0 1px 0 rgba(255,255,255,0.30);
}

.report-hero-name {
  font-size: 22px;
  font-weight: 850;
}

.report-hero-meta {
  line-height: 1.6;
}

/* 报告范围切换：白色胶囊 */
.range-tabs {
  background: rgba(255,255,255,0.54);
  border: 1px solid rgba(255,255,255,0.70);
  border-radius: 999px;
  padding: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 8px 20px rgba(92,74,51,0.045);
}

.range-tab {
  border-radius: 999px;
  font-weight: 700;
}

.range-tab.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow:
    0 8px 18px rgba(15,23,42,0.07),
    inset 0 1px 0 rgba(255,255,255,0.84);
}

/* ========== 周报一句话：加入图一偏爱的浅棕奶油渐变 ========== */
.week-summary {
  border: 1px solid rgba(255,255,255,0.76);
  background:
    radial-gradient(circle at 100% 0%, rgba(191,219,254,0.26), transparent 34%),
    linear-gradient(135deg, #fff7ed 0%, #eef2ff 48%, #dbeafe 100%);
  box-shadow:
    0 18px 42px rgba(92, 74, 51, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.82);
}

.week-summary-label {
  color: #7c3aed;
  font-weight: 800;
}

.week-summary-text {
  font-size: 19px;
  font-weight: 800;
}

/* ========== 柱状图：更柔和的蓝紫渐变柱 ========== */
.bar-chart {
  height: 142px;
  gap: 10px;
  padding: 16px 4px 10px;
}

.bar-col {
  min-width: 0;
}

.bar-bar {
  border-radius: 999px 999px 6px 6px;
  background:
    linear-gradient(180deg, #8b5cf6 0%, #818cf8 46%, #93c5fd 100%);
  box-shadow:
    0 8px 16px rgba(99,102,241,0.12),
    inset 0 1px 0 rgba(255,255,255,0.36);
}

.bar-val {
  font-weight: 700;
}

/* ========== 时间线：点评记录更像温柔记录卡 ========== */
.timeline {
  padding-left: 24px;
}

.timeline::before {
  left: 7px;
  background: linear-gradient(180deg, rgba(99,102,241,0.38), rgba(191,219,254,0.16));
  border-radius: 99px;
}

.timeline-item {
  padding-bottom: 20px;
}

.timeline-item::before {
  left: -23px;
  width: 13px;
  height: 13px;
  background: #ffffff;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139,92,246,0.10);
}

.timeline-date {
  font-weight: 700;
}

.timeline-title {
  font-size: 14px;
  font-weight: 800;
}

.timeline-content {
  line-height: 1.75;
}

/* ========== 列表卡片与面板间距微调 ========== */
.layout-2col {
  gap: 20px;
}

.stat-row {
  gap: 14px;
  margin-bottom: 20px;
}

/* 重点页面里的空状态放进网格时横跨整行 */
.pastel-grid > .empty-state {
  grid-column: 1 / -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,250,242,0.72));
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow:
    0 12px 30px rgba(92,74,51,0.055),
    inset 0 1px 0 rgba(255,255,255,0.76);
}

/* 独立空周报区域 */
#emptyState .empty-state {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,250,242,0.74)) !important;
  border: 1px solid rgba(255,255,255,0.74) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow:
    0 16px 38px rgba(92,74,51,0.07),
    inset 0 1px 0 rgba(255,255,255,0.80);
}

/* 暗色保护 */
[data-theme="dark"] .report-hero,
[data-theme="dark"] .week-summary,
[data-theme="dark"] .range-tabs,
[data-theme="dark"] .pastel-grid > .empty-state,
[data-theme="dark"] #emptyState .empty-state {
  background: var(--card-bg) !important;
  border-color: var(--border-light) !important;
  box-shadow: none !important;
}

[data-theme="dark"] .range-tab.active {
  background: rgba(255,255,255,0.10);
  color: var(--text-main);
}

/* 响应式收口 */
@media (max-width: 900px) {
  .dash-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .report-hero {
    align-items: flex-start;
  }

  .page-title {
    font-size: 25px;
  }
}

@media (max-width: 600px) {
  .page-header {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .page-header > div:last-child {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .page-title {
    font-size: 23px;
  }

  .page-subtitle {
    font-size: 13px;
  }

  .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .report-hero {
    flex-direction: column;
    gap: 14px;
  }

  .range-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .range-tab {
    flex: 1;
    text-align: center;
  }

  .bar-chart {
    height: 126px;
    gap: 7px;
  }
}
/* UI_FINAL_PAGES_END */

/* FLASHCARD_MOBILE_ONLY_UI_POLISH_START */
/*
 * 手机端专用 UI 优化 v2：
 * 只在 max-width: 640px 生效，不影响电脑和平板。
 * 逻辑：
 * - 电脑/平板：左侧菜单保持默认展开
 * - 手机：左侧菜单默认收起，点击右上角按钮或左侧滑动打开
 */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
  }

  body {
    background:
      radial-gradient(circle at 20% 0%, rgba(219,234,254,.72), transparent 34%),
      radial-gradient(circle at 95% 10%, rgba(237,233,254,.60), transparent 32%),
      linear-gradient(180deg, #f8fafc 0%, #fff7ed 100%) !important;
  }

  .app-shell {
    display: block !important;
    width: 100% !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
  }

  /*
   * 手机端侧栏：默认隐藏在左边，打开时滑出。
   */
  .sidebar {
    position: fixed !important;
    top: max(10px, env(safe-area-inset-top)) !important;
    left: 10px !important;
    bottom: 10px !important;
    width: min(82vw, 310px) !important;
    max-width: 310px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 20px - env(safe-area-inset-top)) !important;
    margin: 0 !important;
    padding: 14px 12px !important;
    border-radius: 26px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    z-index: 2200 !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(219,234,254,.78), transparent 36%),
      linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,250,242,.88)) !important;
    border: 1px solid rgba(255,255,255,.78) !important;
    box-shadow: 0 28px 90px rgba(15,23,42,.22) !important;
    backdrop-filter: blur(22px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.08) !important;
    transform: translateX(calc(-100% - 28px)) !important;
    transition: transform .22s ease !important;
  }

  body.flashcard-mobile-sidebar-open .sidebar {
    transform: translateX(0) !important;
  }

  /*
   * 还原上一批被隐藏的菜单：手机抽屉打开后要完整显示。
   */
  .sidebar .sidebar-section-label,
  .sidebar nav,
  .sidebar #sideNav,
  .sidebar #sideQuick {
    display: flex !important;
  }

  .sidebar nav,
  .sidebar #sideNav,
  .sidebar #sideQuick {
    flex-direction: column !important;
    gap: 2px !important;
  }

  .sidebar-section-label {
    display: block !important;
    font-size: 11px !important;
    margin: 10px 8px 6px !important;
    color: var(--text-subtle) !important;
  }

  .sidebar-logo {
    height: auto !important;
    min-height: 46px !important;
    margin: 0 0 4px !important;
    padding: 4px 6px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  .sidebar-logo-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 14px !important;
    flex: 0 0 auto !important;
    font-size: 16px !important;
  }

  .sidebar-logo-text {
    display: block !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .nav-item {
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    min-height: 40px !important;
  }

  .nav-item span:not(.nav-badge) {
    display: inline !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .nav-item svg,
  .nav-item i {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 auto !important;
  }

  .sidebar-footer {
    position: static !important;
    margin: auto 0 0 !important;
    padding: 10px 0 0 !important;
    border-top: 1px solid rgba(148,163,184,.18) !important;
  }

  .sidebar-user {
    justify-content: flex-start !important;
    padding: 9px 10px !important;
    border-radius: 16px !important;
    min-height: 46px !important;
  }

  .sidebar-user-avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
  }

  .sidebar-user-info {
    display: block !important;
  }

  .sidebar-user-name {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  .sidebar-user-role {
    font-size: 11px !important;
  }

  /*
   * 手机右上角菜单按钮 + 遮罩。
   */
  .flashcard-mobile-menu-btn {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    z-index: 2300;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background:
      radial-gradient(circle at 30% 15%, rgba(255,255,255,.92), transparent 40%),
      linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,250,242,.82));
    border: 1px solid rgba(255,255,255,.80);
    box-shadow: 0 14px 38px rgba(15,23,42,.14);
    color: #0f172a;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .flashcard-mobile-menu-btn svg {
    width: 20px;
    height: 20px;
  }

  .flashcard-mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(15,23,42,.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  body.flashcard-mobile-sidebar-open .flashcard-mobile-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /*
   * 手机主体内容：让顶部不再出现巨大空白品牌条。
   */
  .main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: calc(58px + env(safe-area-inset-top)) 12px 86px !important;
    overflow-x: hidden !important;
  }

  .breadcrumb {
    display: none !important;
  }

  .page-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 4px 0 14px !important;
    padding: 0 2px !important;
  }

  .page-title {
    font-size: 24px !important;
    line-height: 1.18 !important;
    letter-spacing: -0.04em !important;
    margin: 0 !important;
  }

  .page-subtitle {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-top: 6px !important;
  }

  .page-header .btn-icon,
  .btn.btn-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 999px !important;
  }

  /*
   * 工作台卡片：手机端更紧凑。
   */
  .pastel-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .pastel-card {
    width: 100% !important;
    min-height: 136px !important;
    border-radius: 24px !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    box-shadow: 0 16px 42px rgba(15,23,42,.075) !important;
  }

  .pastel-card-head {
    margin-bottom: 10px !important;
  }

  .pastel-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 15px !important;
  }

  .pastel-icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  .pastel-card h3 {
    font-size: 17px !important;
    line-height: 1.25 !important;
    margin: 8px 0 5px !important;
  }

  .card-desc,
  .pastel-card .card-desc {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }

  .pastel-card-foot {
    margin-top: 12px !important;
    padding-top: 10px !important;
    font-size: 12px !important;
  }

  .go-arrow,
  .pastel-card-foot .go-arrow {
    width: 32px !important;
    height: 32px !important;
  }

  /*
   * permissions.html / 其他两栏页面：手机端上下布局。
   */
  .layout-2col {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .panel {
    border-radius: 22px !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  .panel-header {
    padding: 14px !important;
    margin-bottom: 0 !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  .panel-title {
    font-size: 16px !important;
  }

  .search-box {
    margin: 10px 12px !important;
  }

  .list-card {
    max-height: none !important;
    overflow: visible !important;
  }

  .list-item {
    padding: 12px !important;
    gap: 10px !important;
  }

  .list-item-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 14px !important;
  }

  .list-item-title {
    font-size: 14px !important;
  }

  .list-item-sub {
    font-size: 12px !important;
  }

  .form-select,
  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  .btn {
    min-height: 42px !important;
    border-radius: 14px !important;
  }

  .toast {
    max-width: calc(100vw - 28px) !important;
    left: 14px !important;
    right: 14px !important;
    bottom: 18px !important;
  }

  /*
   * 手机端 PWA 安装按钮：默认收起时只显示图标，避免挡卡片。
   */
  #flashcard-pwa-dashboard-entry {
    right: 12px !important;
    bottom: 12px !important;
  }
}
/* FLASHCARD_MOBILE_ONLY_UI_POLISH_END */

