/* ============================================================
   韧性领导力行为训练 - 前端样式 v1.2.0
   完全重写，统一设计语言，消除样式冲突
   ============================================================ */

/* ---- 全局重置 ---- */
.xlbt-container, .xlbt-container *,
.xlbt-home-container, .xlbt-home-container *,
.xlbt-practice, .xlbt-practice *,
.xlbt-report, .xlbt-report *,
.xlbt-auth-overlay, .xlbt-auth-overlay * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---- 通用变量/基调 ---- */
:root {
  --xlbt-green: #2c5f2d;
  --xlbt-green-light: #e8f5e9;
  --xlbt-accent: #c8956c;
  --xlbt-bg: #f4f6f4;
  --xlbt-text: #3a3a3a;
  --xlbt-text-light: #777;
  --xlbt-border: #e0e0e0;
  --xlbt-radius: 12px;
  --xlbt-shadow: 0 2px 10px rgba(0,0,0,0.06);
  --xlbt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---- 主容器 ---- */
.xlbt-home-container,
.xlbt-practice {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px;
  font-family: var(--xlbt-font);
  color: var(--xlbt-text);
  line-height: 1.7;
  background: var(--xlbt-bg);
  min-height: 100vh;
}

.xlbt-practice {
  background: #fff;
}

/* ---- 通用按钮 ---- */
.xlbt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--xlbt-font);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  gap: 6px;
  line-height: 1.4;
}
.xlbt-btn:active { transform: scale(0.97); }
.xlbt-btn-primary {
  background: var(--xlbt-green);
  color: #fff;
}
.xlbt-btn-primary:hover { background: #1e4a1f; }
.xlbt-btn-outline {
  background: transparent;
  border: 1px solid var(--xlbt-green);
  color: var(--xlbt-green);
}
.xlbt-btn-outline:hover { background: var(--xlbt-green-light); }
.xlbt-btn-block { display: flex; width: 100%; }
.xlbt-btn-text {
  background: none;
  border: none;
  color: #95a5a6;
  font-size: 13px;
  cursor: pointer;
  padding: 8px;
}
.xlbt-btn-text:hover { color: #e74c3c; }

/* ============================================================
   认证模态框
   ============================================================ */
.xlbt-auth-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.xlbt-auth-modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.xlbt-auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}
.xlbt-auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: none;
  border: none;
  font-size: 14px;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: var(--xlbt-font);
}
.xlbt-auth-tab.active {
  color: var(--xlbt-green);
  border-bottom-color: var(--xlbt-green);
  font-weight: 600;
}
.xlbt-auth-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: #333;
}
.xlbt-auth-form { display: block; }
.xlbt-auth-form[style*="none"] { display: none !important; }
.xlbt-field { margin-bottom: 12px; }
.xlbt-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--xlbt-font);
  -webkit-appearance: none;
}
.xlbt-field input:focus { border-color: var(--xlbt-green); outline: none; }
.xlbt-auth-error { color: #e74c3c; font-size: 13px; min-height: 20px; margin-bottom: 6px; }
.xlbt-auth-hint { font-size: 12px; color: #999; text-align: center; margin-bottom: 6px; }
.xlbt-privacy-notice {
  background: #f9f9f6;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.5;
}
.xlbt-auth-brand { margin-top: 20px; text-align: center; }
.xlbt-auth-brand-qrs { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; }
.xlbt-auth-brand-qr-item { text-align: center; }
.xlbt-auth-brand-qr-img { width: 72px; height: 72px; border-radius: 6px; border: 1px solid #eee; }
.xlbt-auth-brand-qr-label { display: block; font-size: 10px; color: #999; margin-top: 2px; }
.xlbt-auth-brand-credit { font-size: 10px; color: #bbb; letter-spacing: 1px; }

/* ============================================================
   主页 - Hero
   ============================================================ */
.xlbt-hero {
  background: linear-gradient(135deg, #2c5f2d 0%, #1e4a1f 100%);
  border-radius: 16px;
  padding: 28px 20px;
  color: #fff;
  text-align: center;
  margin-bottom: 16px;
}
.xlbt-hero-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  margin-bottom: 8px;
}
.xlbt-hero-top h1 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}
.xlbt-btn-history {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  color: #fff;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s;
}
.xlbt-btn-history:hover { background: rgba(255,255,255,0.25); }
.xlbt-btn-history svg { display: block; }
.xlbt-hero-sub {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 16px;
  line-height: 1.5;
}
.xlbt-hero-stats {
  display: flex;
  justify-content: center;
  gap: 28px;
}
.xlbt-stat-item { text-align: center; }
.xlbt-stat-value {
  display: block;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
.xlbt-stat-label {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 2px;
}
.xlbt-hero-report {
  text-align: center;
  margin-top: 12px;
}
.xlbt-btn-report {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s;
}
.xlbt-btn-report:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  text-decoration: none;
}
.xlbt-hero-assessment-tip {
  margin-top: 12px;
}
.xlbt-btn-report-tip {
  background: rgba(255,255,255,0.1);
  border: 1px dashed rgba(255,255,255,0.4);
  animation: xlbt-pulse 2s infinite;
}
@keyframes xlbt-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.75; }
  100% { opacity: 1; }
}

/* ============================================================
   主页 - 本周提示
   ============================================================ */
.xlbt-week-hint {
  background: #fefcf9;
  border: 1px solid #e8dcc8;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  text-align: center;
  font-size: 13px;
  color: #666;
}
.xlbt-week-icon { margin-right: 2px; }
.xlbt-week-chosen strong { color: var(--xlbt-green); }
.xlbt-week-note { font-size: 11px; color: #bbb; margin-left: 6px; }
.xlbt-week-pick { color: var(--xlbt-accent); font-weight: 500; }

/* ============================================================
   主页 - 九宫格
   ============================================================ */
.xlbt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.xlbt-cell {
  background: #fff;
  border-radius: 12px;
  padding: 14px 6px;
  text-align: center;
  border: 1px solid #e6e6e6;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: visible;
}
.xlbt-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  z-index: 5;
}
.xlbt-cell-active {
  border: 2px solid var(--xlbt-green);
  box-shadow: 0 3px 10px rgba(44,95,45,0.15);
}
.xlbt-cell-started {
  border: 1px solid #a5d6a7;
  background: #fafcfa;
}
.xlbt-cell-new {
  border: 1px dashed #d0d0d0;
}
.xlbt-cell-new:hover {
  border-style: solid;
  border-color: var(--xlbt-green);
}
.xlbt-cell-locked {
  border: 1px solid #e0e0e0;
  background: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.55;
}
.xlbt-cell-locked:hover {
  transform: none;
  box-shadow: none;
}
.xlbt-cell-locked .xlbt-cell-name { color: #999; }
.xlbt-cell-locked .xlbt-cell-status { color: #ccc; }
.xlbt-cell-icon {
  font-size: 26px;
  margin-bottom: 2px;
}
.xlbt-cell-ring {
  width: 52px;
  height: 52px;
  margin: 2px 0;
}
.xlbt-ring-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.xlbt-cell-name {
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
  color: #333;
}
.xlbt-cell-status {
  font-size: 10px;
  margin-top: 1px;
  opacity: 0.75;
  color: #666;
}

/* ---- 场景 Tooltip ---- */
.xlbt-cell-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #3a3a3a;
  color: #f0f0f0;
  padding: 10px 12px;
  border-radius: 8px;
  width: 220px;
  z-index: 100;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  pointer-events: auto;
}
.xlbt-cell:hover .xlbt-cell-tooltip { display: block; }
.xlbt-tooltip-loading { color: #aaa; text-align: center; padding: 6px; }
.xlbt-tooltip-homework { border-top: 1px solid #555; margin-top: 6px; padding-top: 6px; }
.xlbt-tooltip-homework-title { font-size: 11px; color: #aaa; margin-bottom: 3px; }
.xlbt-tooltip-homework-item {
  font-size: 12px;
  color: #ddd;
  margin-bottom: 3px;
  cursor: pointer;
  padding: 2px 0;
}
.xlbt-tooltip-homework-item:hover { color: #a5d6a7; text-decoration: underline; }

/* ============================================================
   主页 - 品牌底部 + 退出
   ============================================================ */
.xlbt-brand-footer { text-align: center; margin-top: 4px; }
.xlbt-brand-qrs { display: flex; justify-content: center; gap: 24px; margin-bottom: 8px; }
.xlbt-brand-qr-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.xlbt-brand-qr-img { width: 64px; height: 64px; border-radius: 6px; border: 1px solid #eee; }
.xlbt-brand-qr-label { font-size: 10px; color: #999; }
.xlbt-brand-credit { font-size: 10px; color: #bbb; letter-spacing: 1px; }
.xlbt-logout-wrap { text-align: center; margin-top: 2px; }

/* ============================================================
   历史记录抽屉
   ============================================================ */
.xlbt-drawer-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
}
.xlbt-drawer-overlay.active { display: block; }
.xlbt-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 400px;
  max-width: 92vw;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.xlbt-drawer.active { right: 0; }
.xlbt-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}
.xlbt-drawer-header h2 {
  font-size: 17px;
  font-weight: 600;
  color: #333;
}
.xlbt-drawer-close {
  background: none;
  border: none;
  font-size: 26px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.xlbt-drawer-close:hover { color: #333; }
.xlbt-drawer-period {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.xlbt-period-btn {
  flex: 1;
  padding: 7px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  color: #666;
  font-family: var(--xlbt-font);
  transition: all 0.15s;
}
.xlbt-period-btn.active {
  background: var(--xlbt-green);
  color: #fff;
  border-color: var(--xlbt-green);
}
.xlbt-chart-container {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.xlbt-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}
.xlbt-timeline { padding: 12px 20px 20px; }
.xlbt-timeline-loading { text-align: center; color: #999; padding: 24px; font-size: 13px; }
.xlbt-timeline-empty { text-align: center; color: #ccc; padding: 24px; font-size: 13px; }
.xlbt-timeline-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  align-items: center;
}
.xlbt-timeline-item:hover { background: #f9faf9; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.xlbt-timeline-date { font-size: 11px; color: #aaa; width: 55px; flex-shrink: 0; }
.xlbt-timeline-content { flex: 1; min-width: 0; }
.xlbt-timeline-scene { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 1px; }
.xlbt-timeline-day { font-size: 11px; color: #999; }
.xlbt-timeline-energy { font-size: 16px; font-weight: 700; color: var(--xlbt-green); width: 36px; text-align: right; flex-shrink: 0; }

/* ============================================================
   回顾 + 编辑 模态框
   ============================================================ */
.xlbt-review-overlay,
.xlbt-edit-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.xlbt-review-overlay.active,
.xlbt-edit-overlay.active { display: flex; }
.xlbt-review-modal,
.xlbt-edit-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  max-height: 82vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.xlbt-review-close,
.xlbt-edit-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  padding: 4px;
}
.xlbt-review-close:hover,
.xlbt-edit-close:hover { color: #333; }
.xlbt-review-body { padding: 20px; }
.xlbt-review-loading { text-align: center; color: #999; padding: 32px; font-size: 13px; }
.xlbt-review-section { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
.xlbt-review-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.xlbt-edit-header { padding: 18px 20px 0; }
.xlbt-edit-header h3 { font-size: 16px; font-weight: 600; color: #333; }
.xlbt-edit-textarea {
  width: calc(100% - 40px);
  margin: 14px 20px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  min-height: 100px;
  font-family: var(--xlbt-font);
  -webkit-appearance: none;
}
.xlbt-edit-textarea:focus { border-color: var(--xlbt-green); outline: none; }
.xlbt-edit-hint { font-size: 11px; color: #999; margin: 0 20px 14px; }
.xlbt-edit-actions { display: flex; gap: 10px; padding: 0 20px 18px; justify-content: flex-end; }

/* ============================================================
   训练页 (Practice)
   ============================================================ */
.xlbt-practice-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.xlbt-nav-back {
  font-size: 14px;
  color: var(--xlbt-green);
  text-decoration: none;
  font-weight: 500;
}
.xlbt-nav-back:hover { text-decoration: underline; }
.xlbt-nav-info { display: flex; gap: 6px; align-items: center; }
.xlbt-nav-scene { font-size: 14px; font-weight: 600; color: #333; }
.xlbt-nav-day { font-size: 12px; color: #999; }

.xlbt-section {
  background: #fff;
  border-radius: var(--xlbt-radius);
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--xlbt-shadow);
}
.xlbt-section h3 { font-size: 16px; color: #333; margin-bottom: 10px; font-weight: 600; }

/* 技能焦点 */
.xlbt-skill-focus {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e8f5e9;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
}
.xlbt-focus-label { color: var(--xlbt-green); font-weight: 600; flex-shrink: 0; }
.xlbt-focus-text { color: #444; }

/* 阅读 */
.xlbt-reading-content { font-size: 14px; line-height: 1.8; color: #444; }
.xlbt-reading-content p { margin-bottom: 8px; }

/* 提问列表（参考无为心力训练样式） */
.xlbt-questions { }
.xlbt-questions-list { display: flex; flex-direction: column; }
.xlbt-question-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid #E8E0D0;
  transition: background 0.15s;
}
.xlbt-question-item:last-child {
  border-bottom: none;
}
.xlbt-question-item:hover { background: #faf9f6; margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: 8px; }
.xlbt-question-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--xlbt-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.xlbt-question-text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.7;
  flex: 1;
}

/* 行动 */
.xlbt-action-content { font-size: 14px; line-height: 1.8; color: #444; }

/* 履诺评估 */
.xlbt-commitment-review {
  background: #fffdf5;
  border: 1px solid #ffe082;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.xlbt-commitment-review h3 { font-size: 15px; margin-bottom: 6px; }
.xlbt-prev-commit-text { font-style: italic; color: #555; margin-bottom: 10px; font-size: 14px; }
.xlbt-commitment-question { font-size: 13px; margin-bottom: 10px; color: #666; }
.xlbt-commitment-options { display: flex; gap: 8px; flex-wrap: wrap; }
.xlbt-commit-btn {
  flex: 1;
  min-width: 90px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--xlbt-font);
  transition: all 0.15s;
}
.xlbt-commit-btn:hover { border-color: var(--xlbt-green); background: #e8f5e9; }

/* 日记 */
.xlbt-textarea {
  width: 100%;
  min-height: 90px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  font-family: var(--xlbt-font);
  -webkit-appearance: none;
}
.xlbt-textarea:focus { border-color: var(--xlbt-green); outline: none; }
.xlbt-textarea:disabled { background: #f5f5f5; color: #999; }
.xlbt-commit-input { min-height: 56px; border-color: #a5d6a7; background: #f9fdf9; }
.xlbt-journal-input { margin-bottom: 14px; }
.xlbt-journal-input label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; color: #555; }

/* 情绪 + 精力 */
.xlbt-mood-energy { margin: 12px 0; }
.xlbt-mood-select label,
.xlbt-energy-select label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #555; }
.xlbt-mood-options { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.xlbt-mood-btn {
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  background: #fff;
  color: #555;
  font-family: var(--xlbt-font);
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}
.xlbt-mood-btn:hover { border-color: var(--xlbt-green); }
.xlbt-mood-btn.xlbt-mood-selected { background: var(--xlbt-green); color: #fff; border-color: var(--xlbt-green); }
.xlbt-energy-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #999;
}
.xlbt-range { flex: 1; -webkit-appearance: none; height: 4px; background: #ddd; border-radius: 2px; outline: none; }
.xlbt-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--xlbt-green); border-radius: 50%; cursor: pointer; }
#xlbt-energy-display { font-weight: 700; font-size: 18px; color: var(--xlbt-green); min-width: 22px; text-align: center; }

/* 行为承诺 */
.xlbt-behavior-commit { margin: 14px 0; }
.xlbt-behavior-commit label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 2px; color: #333; }
.xlbt-commit-hint { font-size: 12px; color: #999; margin-bottom: 6px; }

.xlbt-checkin-btn { margin-top: 12px; padding: 12px; font-size: 15px; }
.xlbt-checked-in {
  text-align: center;
  padding: 14px;
  background: #e8f5e9;
  border-radius: 8px;
  color: var(--xlbt-green);
  font-weight: 600;
  margin-top: 12px;
  font-size: 14px;
}
.xlbt-day-nav { display: flex; justify-content: space-between; margin-top: 20px; gap: 10px; }
.xlbt-day-nav .xlbt-btn { flex: 1; }

/* 超级会员天数切换Tab */
.xlbt-day-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 8px;
  background: #f4f6f4;
  border-radius: 10px;
}
.xlbt-day-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  transition: all 0.15s;
  font-family: var(--xlbt-font);
}
.xlbt-day-tab:hover {
  border-color: var(--xlbt-green);
  color: var(--xlbt-green);
  text-decoration: none;
}
.xlbt-day-tab-active {
  background: var(--xlbt-green);
  color: #fff;
  border-color: var(--xlbt-green);
}
.xlbt-day-tab-active:hover {
  background: #1e4a1f;
  color: #fff;
}

/* ============================================================
   预览确认模态框
   ============================================================ */
.xlbt-preview-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.xlbt-preview-overlay.active { display: flex; }
.xlbt-preview-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.xlbt-preview-header {
  padding: 18px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.xlbt-preview-header h3 { font-size: 16px; font-weight: 600; color: #333; }
.xlbt-preview-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  padding: 4px;
}
.xlbt-preview-close:hover { color: #333; }
.xlbt-preview-body { padding: 14px 20px; }
.xlbt-preview-section { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.xlbt-preview-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.xlbt-preview-section-title { font-size: 13px; font-weight: 600; color: #666; margin-bottom: 6px; }
.xlbt-preview-row { font-size: 14px; color: #333; margin-bottom: 4px; line-height: 1.5; }
.xlbt-preview-mood-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #e8f5e9;
  border-radius: 12px;
  font-size: 12px;
  color: var(--xlbt-green);
  margin-right: 3px;
  margin-bottom: 3px;
}
.xlbt-preview-actions { display: flex; gap: 10px; padding: 0 20px 18px; }
.xlbt-preview-actions .xlbt-btn { flex: 1; }
.xlbt-confirm-empty { color: #bbb; font-style: italic; }

/* ============================================================
   错误 / 提示
   ============================================================ */
.xlbt-error {
  text-align: center;
  padding: 40px 20px;
  color: #e74c3c;
  font-size: 14px;
}

/* ============================================================
   响应式：移动端
   ============================================================ */
@media (max-width: 480px) {
  .xlbt-home-container,
  .xlbt-practice { padding: 12px; }
  .xlbt-hero { padding: 22px 14px; }
  .xlbt-hero-top h1 { font-size: 19px; }
  .xlbt-hero-stats { gap: 16px; }
  .xlbt-stat-value { font-size: 22px; }
  .xlbt-grid { gap: 8px; }
  .xlbt-cell { padding: 10px 4px; min-height: 96px; }
  .xlbt-cell-icon { font-size: 22px; }
  .xlbt-cell-ring { width: 44px; height: 44px; }
  .xlbt-cell-name { font-size: 11px; }
  .xlbt-drawer { width: 100%; right: -100%; max-width: 100vw; }
  .xlbt-day-tabs { gap: 4px; padding: 6px; }
  .xlbt-day-tab { padding: 6px 0; font-size: 13px; }
}
