/* ====== H5 春天打卡助手 — 设计系统 Brand CSS ====== */
/* 主色系：与 Portal 对齐（橙粉渐变基因） */

/* 霞鹜文楷字体（卡片内容） */
@font-face {
  font-family: 'LXGW WenKai';
  src: url('../fonts/lxgw-wenkai-regular.woff2?v=20260726') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'LXGW WenKai';
  src: url('../fonts/lxgw-wenkai-bold.woff2?v=20260726') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* 阿里巴巴普惠体 3.0（UI 界面） */
@font-face {
  font-family: 'Alibaba PuHuiTi 3.0';
  src: url('../fonts/alibaba-puhuiti-regular.woff2?v=20260726') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Alibaba PuHuiTi 3.0';
  src: url('../fonts/alibaba-puhuiti-medium.woff2?v=20260726') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Alibaba PuHuiTi 3.0';
  src: url('../fonts/alibaba-puhuiti-bold.woff2?v=20260726') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* — Primary Color System（Portal 基因） — */
  --primary: #FF7A3A;
  --primary-light: #FF9D6C;
  --primary-dark: #E5652A;
  --primary-pink: #FF4D8A;
  --primary-purple: #7D5BFF;
  --primary-bg: #FFF5F0;
  --primary-bg-deep: #FFE8E0;

  /* — Semantic Colors — */
  --success: #52B788;
  --success-bg: #E8F5E9;
  --warning: #F0A050;
  --warning-bg: #FFF3E0;
  --danger: #E05555;
  --danger-bg: #FFF2F0;
  --info: #6B8FA8;
  --info-bg: #E8F4F8;

  /* — Neutral / Surface — */
  --bg: #F8F6F3;
  --surface: #FFFFFF;
  --card-bg: #FFFFFF;
  --border: #E5E0D8;
  --border-light: #F0EDE8;
  --divider: #F0E8DF;

  /* — Text Hierarchy — */
  --text: #2D2D2D;
  --text-secondary: #2D2D2D;
  --text-muted: #2D2D2D;

  /* — Elevation / Shadow — */
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);

  /* — Radius Scale — */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --radius: 12px;

  /* — Spacing (8-base) — */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;

  /* — Typography — */
  --font-family: 'Alibaba PuHuiTi 3.0', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-content: 'LXGW WenKai', serif;

  /* Type Scale — 强制规范 4 档（16 18 20 24，禁止使用其他字号）*/
  --fs-sm: 1rem;        /* 16px 辅助文字 */
  --fs-base: 1.125rem;  /* 18px 正文基准 */
  --fs-lg: 1.25rem;     /* 20px 小标题 */
  --fs-xl: 1.5rem;      /* 24px 页面标题 */

  /* — Icon Size Scale — */
  --icon-xs: 12px;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --icon-xl: 32px;

  /* — Icon Style Hierarchy System — */
  /* 一级图标：核心功能（首页打卡区） */
  --icon-primary-size: 64px;
  --icon-primary-stroke: #fff;
  --icon-primary-stroke-width: 2;
  --icon-primary-shadow: 0 6px 20px rgba(255,122,58,0.4);

  /* 二级图标：重要功能入口（我的、研修班页面） */
  --icon-secondary-size: 48px;
  --icon-secondary-stroke: #fff;
  --icon-secondary-stroke-width: 2;
  --icon-secondary-shadow: 0 4px 12px rgba(0,0,0,0.35);

  /* 二级图标色系 */
  --icon-gradient-orange: linear-gradient(135deg, #FF7A3A 0%, #E5652A 100%);
  --icon-gradient-blue: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  --icon-gradient-green: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  --icon-gradient-purple: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  --icon-gradient-pink: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
  --icon-gradient-amber: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);

  /* 三级图标：辅助功能（列表项、按钮内、详情页） */
  --icon-tertiary-size: 24px;
  --icon-tertiary-stroke: #9CA3AF;
  --icon-tertiary-stroke-width: 2;

  /* — Component Heights — */
  --btn-height: 48px;
  --input-height: 48px;
  --nav-height: 60px;
  --tab-height: 55px;
  --font-scale: 1;

  /* — Gradient（与 Portal CTA 一致） — */
  --gradient-primary: linear-gradient(135deg, #FF7A3A 0%, #FF4D8A 50%, #7D5BFF 100%);
  --gradient-primary-subtle: linear-gradient(135deg, #FF7A3A, #FF4D8A);
  --gradient-warm: linear-gradient(135deg, #FFF5F0, #FFE8E0);
  --gradient-hero: linear-gradient(135deg, rgba(255,122,58,0.08), rgba(255,77,138,0.06));
}

/* 多主题切换（保留原有功能，基于橙粉渐变微调） */
[data-theme="elegant"] {
  --primary: #FF7A3A;
  --primary-light: #FF9D6C;
  --primary-dark: #E5652A;
  --primary-bg: #FFF5F0;
  --bg: #F8F6F3;
}

[data-theme="warm"] {
  --primary: #E58530;
  --primary-light: #FFA352;
  --primary-dark: #C46A1F;
  --primary-bg: #FFF8F0;
  --bg: #FFF8F0;
}

[data-theme="fresh"] {
  --primary: #3DB5AE;
  --primary-light: #6DD5CE;
  --primary-dark: #2A9E97;
  --primary-bg: #F0FFF0;
  --bg: #F8FFFE;
}

[data-theme="business"] {
  --primary: #4A6FA5;
  --primary-light: #6B8BBF;
  --primary-dark: #3A5A95;
  --primary-bg: #E8EEF5;
  --bg: #F4F6F8;
}

[data-theme="youth"] {
  --primary: #E55555;
  --primary-light: #FF7A7A;
  --primary-dark: #C94040;
  --primary-bg: #FFF5F5;
  --bg: #FFF0F0;
}

[data-fontsize="small"]  { --font-scale: 1.0; }
[data-fontsize="medium"] { --font-scale: 1.1; }
[data-fontsize="large"]  { --font-scale: 1.25; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: calc(16px * var(--font-scale)); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 120px;
}

a { color: var(--primary); text-decoration: none; }

.page-section { padding: var(--space-3); }

/* ===== 按钮系统 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 24px; border: none; border-radius: var(--radius-md);
  font-size: var(--fs-base); font-weight: 600; cursor: pointer;
  transition: all 0.2s; background: var(--surface); color: var(--text);
  font-family: var(--font-family);
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; background: #F0E8DF; color: #9A9A9A; }
.btn:active:not(:disabled) { transform: scale(0.98); }

/* 主要按钮 — 渐变 */
.btn-primary {
  background: var(--gradient-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover:not(:disabled) { box-shadow: var(--shadow-md); }
.btn-primary:active:not(:disabled) { transform: scale(0.98); box-shadow: var(--shadow-sm); }

/* 次要按钮 — 描边 */
.btn-secondary {
  background: var(--surface);
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-secondary:hover:not(:disabled) { background: var(--primary-bg); }

/* 文字按钮 */
.btn-text {
  background: transparent;
  color: var(--primary);
  border: none;
}
.btn-text:hover:not(:disabled) { background: var(--primary-bg); }

.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 14px 28px; font-size: var(--fs-base); border-radius: var(--radius-lg); }

/* ===== 输入框 ===== */
.input {
  width: 100%; height: var(--input-height); padding: 0 16px;
  border: 1.5px solid var(--divider); border-radius: var(--radius-md);
  font-size: var(--fs-base); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--surface); color: var(--text);
  font-family: var(--font-family);
}
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.textarea {
  width: 100%; min-height: 100px; padding: 12px 16px;
  border: 1.5px solid var(--divider); border-radius: var(--radius-lg);
  font-size: var(--fs-base); resize: vertical; outline: none;
  background: var(--surface); color: var(--text);
  font-family: var(--font-family);
  line-height: 1.6;
}
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

/* ===== 卡片 ===== */
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: var(--space-5); box-shadow: var(--shadow-card);
}

.section-title {
  font-size: var(--fs-lg); font-weight: 600; color: var(--text);
  margin-bottom: var(--space-4); display: block;
}

/* ===== 提示 ===== */
.alert {
  padding: 12px 16px; border-radius: var(--radius-md);
  margin-bottom: var(--space-3); font-size: var(--fs-sm);
}
.alert-error   { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(224,85,85,0.3); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(82,183,136,0.3); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(240,160,80,0.3); }

.spinner {
  width: 24px; height: 24px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon { font-size: 3rem; margin-bottom: 12px; }

/* ===== Toast ===== */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; border-radius: var(--radius-md);
  background: rgba(45, 45, 45, 0.88); color: #FFFFFF;
  font-size: var(--fs-sm); font-weight: 600;
  z-index: 1000; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.3s, top 0.3s;
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; top: 40px; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--primary); }

.footer {
  text-align: center; padding: 16px; color: var(--text-muted); font-size: var(--fs-sm);
}
.footer a { color: var(--text-muted); text-decoration: none; }

/* ===== 底部Tab栏 ===== */
.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center;
  background: var(--surface); height: var(--tab-height);
  border-top: 1px solid var(--border-light);
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 100;
}
.tab-item {
  flex: 1;
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px;
  color: var(--text-secondary); font-size: var(--fs-base);
  text-decoration: none; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.3, 0, 0.2, 1);
  height: 100%;
  position: relative;
}
.tab-item .tab-icon { line-height: 1; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease; }
.tab-item .tab-label { font-size: var(--fs-base); font-weight: 600; line-height: 1; }
.tab-item.active {
  color: var(--primary);
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255, 122, 58, 0.08) 0%, rgba(255, 122, 58, 0) 70%);
}
.tab-item.active .tab-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 6px rgba(255, 122, 58, 0.35));
}
.tab-item.active .tab-label { font-size: var(--fs-base); }
/* 底部指示条 */
.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--gradient-primary-subtle);
  border-radius: 1.5px;
}

/* ===== 顶部导航栏（方案A：浅色渐变 + 深色文字） ===== */
.header-bar {
  display: flex; align-items: center; height: var(--nav-height);
  padding: 0 16px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--primary-bg) 100%);
  color: var(--text);
  gap: 12px;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  position: relative; overflow: hidden; flex-wrap: nowrap;
  box-shadow: var(--shadow-sm);
}
.header-bar h1 {
  font-size: var(--fs-base); flex: 1; min-width: 0;
  display: flex; align-items: center; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.2; font-weight: 700;
}
.header-bar h1 svg { width: 20px; height: 20px; flex-shrink: 0; }
.back-btn {
  color: var(--text); text-decoration: none;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,122,58,0.12) 0%, rgba(255,122,58,0.06) 100%);
  transition: all 0.2s;
}
.back-btn svg {
  width: 22px; height: 22px;
  display: block;
  stroke-width: 2;
}
.back-btn:active {
  background: rgba(255,122,58,0.18);
  transform: scale(0.95);
}

.header-date {
  font-size: var(--fs-sm);
  color: var(--primary);
  background: rgba(255,122,58,0.1);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}
.header-date:active { opacity: 0.7; }

.header-submit-btn {
  flex-shrink: 0;
  height: 36px;
  padding: 0 20px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,122,58,0.3);
  transition: transform 0.15s;
}
.header-submit-btn:active { transform: scale(0.96); }
.header-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #F0E8DF;
  color: #9A9A9A;
  box-shadow: none;
}

/* ===== 可点击信息标签样式 ===== */
/* 统一样式：带下划线的点击标签，用于"日期"、"连续N天"等可修改信息 */
.clickable-label {
  position: relative;
  color: var(--primary);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.clickable-label::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.clickable-label:active::after {
  opacity: 0.3;
}
.clickable-label .label-value {
  color: var(--primary);
  font-weight: 700;
}
.clickable-label .label-text {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== 底部sheet弹窗 ===== */
.sheet-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.sheet-overlay.show { opacity: 1; pointer-events: auto; }
.sheet-content {
  background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 30px; width: 100%; max-width: 500px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.sheet-overlay.show .sheet-content { transform: translateY(0); }
.sheet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-5); }
.sheet-title { font-size: var(--fs-lg); font-weight: 600; color: var(--text); }
.sheet-close { font-size: var(--fs-base); color: var(--text-muted); padding: 8px; cursor: pointer; }

/* ===== 日期选择 ===== */
.date-options { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--space-5); }
.date-option {
  padding: 14px 20px; border-radius: var(--radius-md);
  background: var(--primary-bg);
  font-size: var(--fs-sm); color: var(--text); cursor: pointer;
  transition: all 0.2s;
}
.date-option:hover { background: var(--primary-bg-deep); }
.date-option.selected { background: var(--primary); color: #fff; }
.other-date-btn {
  padding: 16px; background: var(--primary-bg); border-radius: var(--radius-md);
  font-size: var(--fs-sm); color: var(--text); text-align: center; cursor: pointer;
}

/* ===== 提交按钮（渐变圆角） ===== */
.submit-btn {
  display: flex; align-items: center; justify-content: center;
  width: 82%; max-width: 340px; min-height: 50px;
  margin: 0 auto; padding: 0 22px;
  border: none; border-radius: var(--radius-full);
  font-size: var(--fs-base); font-weight: 600; color: #fff; cursor: pointer;
  background: var(--gradient-primary);
  transition: all 0.25s;
  box-shadow: 0 8px 22px rgba(255,122,58,0.25);
}
.submit-btn:active:not(:disabled) { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; background: #F0E8DF; color: #9A9A9A; box-shadow: none; }

/* ===== 图片删除按钮 ===== */
.photo-delete-btn {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; background: rgba(0,0,0,0.5);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: var(--fs-base); cursor: pointer; z-index: 5;
}
.photo-delete-btn:hover { background: rgba(0,0,0,0.7); }

/* ===== 录音波浪动画 ===== */
@keyframes pulse-rec {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,79,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(255,77,79,0); }
}
.recording-pulse { animation: pulse-rec 1.5s infinite; }

/* ===== 成功动画全屏覆盖 ===== */
.success-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 300; pointer-events: none;
}

/* ===== 标签/徽章 ===== */
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; font-size: var(--fs-sm); font-weight: 600;
  border-radius: 6px;
}
.tag-primary { background: var(--primary-bg); color: var(--primary); }
.tag-success { background: var(--success-bg); color: var(--success); }
.tag-warning { background: var(--warning-bg); color: var(--warning); }
.tag-danger { background: var(--danger-bg); color: var(--danger); }
.tag-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }

/* ===== 进度环 ===== */
.progress-ring { transform: rotate(-90deg); }
.progress-ring__track { stroke: var(--primary-bg); fill: none; }
.progress-ring__fill {
  stroke: var(--primary); fill: none; stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

/* ===== 进度条 ===== */
.progress-bar {
  width: 100%; height: 6px; background: var(--border-light);
  border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; border-radius: 3px;
  background: var(--gradient-primary-subtle);
  transition: width 0.6s ease;
}

/* ===== 列表项 ===== */
.list-item {
  display: flex; align-items: center; height: 56px;
  padding: 0 16px; background: var(--surface);
  position: relative; cursor: pointer;
  transition: background 0.15s;
}
.list-item:active { background: var(--primary-bg); }
.list-item-icon { width: 22px; height: 22px; margin-right: 12px; flex-shrink: 0; color: var(--primary); }
.list-item-text { flex: 1; font-size: var(--fs-base); color: var(--text); }
.list-item-arrow { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.list-item-divider { position: absolute; bottom: 0; left: 56px; right: 0; height: 0.5px; background: var(--divider); }

/* ===== 日期选择器横向滚动 ===== */
.date-chips-scroll {
  display: flex; gap: var(--space-2); overflow-x: auto;
  padding: 4px 0; -ms-overflow-style: none; scrollbar-width: none;
}
.date-chips-scroll::-webkit-scrollbar { display: none; }
.date-chip {
  flex-shrink: 0; width: 56px; height: 56px;
  border-radius: 20px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; transition: all 0.2s ease;
}
.date-chip--active { background: var(--primary); color: #FFFFFF; }
.date-chip--inactive { background: var(--surface); border: 1.5px solid var(--divider); color: var(--text); }
.date-chip .day { font-size: var(--fs-base); font-weight: 700; }
.date-chip .weekday { font-size: var(--fs-sm); opacity: 0.8; }

/* ===== 折叠区域 ===== */
.collapse-section { margin-top: var(--space-5); }
.collapse-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; padding: 4px 0; user-select: none;
}
.collapse-header:active { opacity: 0.7; }
.collapse-title {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-base); font-weight: 700; color: var(--text);
}
.collapse-arrow {
  font-size: var(--fs-base); color: var(--text-muted);
  transition: transform 0.2s; flex-shrink: 0;
}
.collapse-arrow.expanded { transform: rotate(90deg); }
.collapse-body { overflow: hidden; max-height: 0; transition: max-height 0.25s ease-out; }
.collapse-body.expanded { max-height: 600px; }

/* ===== 导航栏渐变 ===== */
.nav-gradient {
  background: linear-gradient(180deg, var(--surface) 0%, var(--primary-bg) 100%);
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-content {
  width: 80%; max-width: 320px;
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 28px 24px 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  text-align: center;
}
.modal-title { font-size: var(--fs-lg); font-weight: 700; color: var(--text); margin-bottom: 12px; }
.modal-body { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; }
.modal-btn {
  width: 100%; height: var(--btn-height); border: none;
  border-radius: var(--radius-md); background: var(--gradient-primary);
  color: #FFFFFF; font-size: var(--fs-base); font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow-sm);
}

/* ===== 头像 ===== */
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary-bg); border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  font-size: 32px; flex-shrink: 0;
}
.avatar-gradient {
  background: var(--gradient-primary); color: #FFFFFF;
  font-size: 24px; font-weight: 700;
}
.avatar-default { background: var(--border-light); color: var(--text-muted); }

/* ===== 图标系统 ===== */
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
.icon svg { display: block; width: 100%; height: 100%; }

.icon-xs { width: var(--icon-xs); height: var(--icon-xs); }
.icon-sm { width: var(--icon-sm); height: var(--icon-sm); }
.icon-md { width: var(--icon-md); height: var(--icon-md); }
.icon-lg { width: var(--icon-lg); height: var(--icon-lg); }
.icon-xl { width: var(--icon-xl); height: var(--icon-xl); }

.icon-primary { color: var(--primary); }
.icon-success { color: var(--success); }
.icon-warning { color: var(--warning); }
.icon-danger  { color: var(--danger); }
.icon-muted   { color: var(--text-muted); }

.icon-text { display: inline-flex; align-items: center; gap: 6px; }
.icon-text .icon { flex-shrink: 0; }

/* ===== 内容区字体（霞鹜文楷）===== */
.card-render-content,
.card-render-to,
.card-render-footer,
.card-render-inner {
  font-family: var(--font-family-content);
}

/* 日期按钮保持霞鹜文楷 */
.btn-date-body,
.date-pill {
  font-family: var(--font-family-content);
}