/* ========================================
   员工端 H5 样式
   ======================================== */

.h5-app {
  width: 100%;
  min-height: 100vh;
  max-width: 500px;
  margin: 0 auto;
  background: var(--color-bg-page);
  position: relative;
  overflow-x: hidden;
}

/* === 底部TabBar === */
.h5-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  height: var(--tabbar-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 0.5px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: var(--z-fixed);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* === 顶部导航栏 === */
.h5-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: white;
  border-bottom: 0.5px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-fixed);
  padding: 0 var(--space-base);
  padding-top: env(safe-area-inset-top, 0);
}
.h5-navbar-left {
  position: absolute;
  left: var(--space-base);
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-primary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.h5-navbar-left i {
  font-size: 16px;
}
.h5-navbar-left span {
  font-size: var(--font-size-body);
}
.h5-navbar-title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}
.h5-navbar-right {
  position: absolute;
  right: var(--space-base);
  color: var(--color-text-primary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.h5-navbar-right i {
  font-size: 18px;
}
.h5-navbar-right .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
  background: var(--color-danger);
  color: white;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  border-radius: 8px;
  text-align: center;
}

.h5-tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  height: 100%;
  color: var(--color-text-tertiary);
  transition: color var(--duration-fast);
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.h5-tabbar-item.active {
  color: var(--color-primary);
}
.h5-tabbar-item-icon {
  font-size: 22px;
  line-height: 1;
}
.h5-tabbar-item-label {
  font-size: 10px;
  font-weight: var(--font-weight-medium);
}
.h5-tabbar-item .badge {
  position: absolute;
  top: 2px;
  right: 50%;
  margin-right: -18px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
  background: var(--color-danger);
  color: white;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  border-radius: 8px;
  text-align: center;
}

/* === 页面内容区 === */
.h5-page {
  padding: var(--space-base);
  padding-top: calc(var(--header-height) + var(--space-base));
  padding-bottom: calc(var(--tabbar-height) + var(--space-lg) + env(safe-area-inset-bottom, 0));
  min-height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.h5-page-no-tab {
  padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 34px));
  min-height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 桌面端手机模拟器 */
@media (min-width: 501px) {
  body {
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }
  .h5-app {
    width: 390px;
    height: 844px;
    border-radius: 40px;
    box-shadow: 0 0 0 8px #333, 0 0 0 10px #555, 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    padding-top: 44px;
    padding-bottom: 34px;
  }
  .h5-app::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #333;
    border-radius: 0 0 16px 16px;
    z-index: calc(var(--z-fixed) + 1);
  }
  .h5-app::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 5px;
    background: #555;
    border-radius: 3px;
    z-index: calc(var(--z-fixed) + 1);
  }
  .h5-navbar {
    top: 44px;
    position: absolute;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: white;
    border-bottom: 0.5px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-fixed);
    padding: 0 var(--space-base);
  }
  .h5-tabbar {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 350px;
    margin: 0;
    right: auto;
    border-radius: 25px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid var(--color-border-light);
  }
  .h5-page {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 84px;
    padding: var(--space-base);
    padding-bottom: calc(var(--tabbar-height) + var(--space-xl));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .h5-page-no-tab {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 34px;
    padding: var(--space-base);
    padding-bottom: calc(var(--space-2xl) + 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* AI产品研发页面在桌面端模拟器中的样式 */
  .rnd-app {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    position: relative !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }
  .rnd-page {
    position: absolute !important;
    top: 100px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 34px !important;
    padding-bottom: calc(var(--space-2xl) + 60px) !important;
  }
  .rnd-navbar {
    top: 44px !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    padding-top: 0 !important;
  }

  /* 弹窗在桌面端模拟器中定位修复 */
  .h5-modal-overlay,
  .h5-page [style*="position:fixed"][style*="inset:0"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 84px !important;
    background: rgba(0,0,0,0.5) !important;
    z-index: 3000 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }

  /* 弹窗内容容器样式 */
  .h5-modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* 桌面端模拟器内弹窗宽度限制 */
  @media (min-width: 501px) {
    .h5-modal-content {
      max-width: 390px;
    }
  }

  /* 弹窗内容容器也限制在模拟器内 */
  .h5-page [style*="position:fixed"][style*="inset:0"] > div,
  .h5-modal-overlay > div {
    max-width: 390px !important;
    width: 100% !important;
  }
}

/* === 浮动操作按钮 === */
.h5-fab {
  position: fixed;
  bottom: calc(var(--tabbar-height) + var(--space-lg) + env(safe-area-inset-bottom, 0));
  right: var(--space-lg);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(7, 193, 96, 0.4);
  cursor: pointer;
  z-index: var(--z-overlay);
  transition: all var(--duration-fast) var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.h5-fab:active {
  transform: scale(0.92);
}
.h5-fab.active {
  background: var(--color-text-secondary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: rotate(45deg);
}
@media (min-width: 501px) {
  .h5-fab {
    bottom: calc(var(--tabbar-height) + var(--space-lg) + 34px);
    right: calc(50% - 390px / 2 + var(--space-lg));
  }
}

/* === 首页KPI卡片 v2 === */
.h5-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

/* 新版 KPI 卡片 - 左侧色条 + 装饰圆形 */
.h5-kpi-card {
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  padding-left: calc(var(--space-md) + 3px);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.h5-kpi-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* 左侧色条 */
.h5-kpi-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* 右上角装饰圆形 */
.h5-kpi-card::after {
  content: '';
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  opacity: 0.06;
}

/* 颜色变体 */
.h5-kpi-card.green::before { background: var(--color-primary); }
.h5-kpi-card.green::after { background: var(--color-primary); }
.h5-kpi-card.blue::before { background: var(--color-info); }
.h5-kpi-card.blue::after { background: var(--color-info); }
.h5-kpi-card.orange::before { background: var(--color-warning-orange); }
.h5-kpi-card.orange::after { background: var(--color-warning-orange); }
.h5-kpi-card.red::before { background: var(--color-danger); }
.h5-kpi-card.red::after { background: var(--color-danger); }
.h5-kpi-card.purple::before { background: var(--color-accent); }
.h5-kpi-card.purple::after { background: var(--color-accent); }

/* 新增变体 */
.h5-kpi-card.success::before { background: var(--color-success); }
.h5-kpi-card.success::after { background: var(--color-success); }
.h5-kpi-card.success .h5-kpi-value { color: var(--color-success); }

.h5-kpi-card.warning::before { background: var(--color-warning); }
.h5-kpi-card.warning::after { background: var(--color-warning); }
.h5-kpi-card.warning .h5-kpi-value { color: var(--color-warning); }

.h5-kpi-card.accent::before { background: var(--color-accent); }
.h5-kpi-card.accent::after { background: var(--color-accent); }
.h5-kpi-card.accent .h5-kpi-value { color: var(--color-accent); }

.h5-kpi-label {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-xs);
  font-weight: var(--font-weight-medium);
  position: relative;
  z-index: 1;
}

.h5-kpi-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}

.h5-kpi-card.green .h5-kpi-value { color: var(--color-primary); }
.h5-kpi-card.blue .h5-kpi-value { color: var(--color-info); }
.h5-kpi-card.orange .h5-kpi-value { color: var(--color-warning-orange); }
.h5-kpi-card.red .h5-kpi-value { color: var(--color-danger); }

/* KPI 趋势指示 */
.h5-kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--text-xs);
  margin-top: var(--space-xs);
  position: relative;
  z-index: 1;
}

.h5-kpi-trend.up { color: var(--color-success); }
.h5-kpi-trend.down { color: var(--color-danger); }
.h5-kpi-trend.neutral { color: var(--color-text-tertiary); }

.h5-kpi-trend i {
  font-size: 10px;
}

/* KPI 动画 */
.h5-kpi-card {
  animation: fadeInUp var(--duration-normal) var(--ease-out) both;
}

.h5-kpi-grid .h5-kpi-card:nth-child(1) { animation-delay: 0ms; }
.h5-kpi-grid .h5-kpi-card:nth-child(2) { animation-delay: 50ms; }
.h5-kpi-grid .h5-kpi-card:nth-child(3) { animation-delay: 100ms; }
.h5-kpi-grid .h5-kpi-card:nth-child(4) { animation-delay: 150ms; }

/* === 快捷入口 v2 === */
.h5-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.h5-shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  animation: fadeInUp var(--duration-normal) var(--ease-out) both;
}

.h5-shortcuts .h5-shortcut-item:nth-child(1) { animation-delay: 0ms; }
.h5-shortcuts .h5-shortcut-item:nth-child(2) { animation-delay: 50ms; }
.h5-shortcuts .h5-shortcut-item:nth-child(3) { animation-delay: 100ms; }
.h5-shortcuts .h5-shortcut-item:nth-child(4) { animation-delay: 150ms; }

/* 圆形渐变图标背景 */
.h5-shortcut-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all var(--duration-fast) var(--ease-spring);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.h5-shortcut-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duration-fast);
  border-radius: inherit;
}

.h5-shortcut-item:active .h5-shortcut-icon {
  transform: scale(0.9);
  box-shadow: var(--shadow-xs);
}

/* 绿色系 */
.h5-shortcut-icon.green {
  background: linear-gradient(135deg, rgba(7, 193, 96, 0.15), rgba(7, 193, 96, 0.08));
  color: var(--color-primary);
}
.h5-shortcut-icon.green::before {
  background: linear-gradient(135deg, rgba(7, 193, 96, 0.2), rgba(7, 193, 96, 0.1));
}
.h5-shortcut-item:hover .h5-shortcut-icon.green::before {
  opacity: 1;
}

/* 蓝色系 */
.h5-shortcut-icon.blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
  color: var(--color-info);
}
.h5-shortcut-icon.blue::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
}
.h5-shortcut-item:hover .h5-shortcut-icon.blue::before {
  opacity: 1;
}

/* 紫色系 */
.h5-shortcut-icon.purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.08));
  color: #8B5CF6;
}
.h5-shortcut-icon.purple::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
}
.h5-shortcut-item:hover .h5-shortcut-icon.purple::before {
  opacity: 1;
}

/* 橙色系 */
.h5-shortcut-icon.orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.08));
  color: #F97316;
}
.h5-shortcut-icon.orange::before {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.1));
}
.h5-shortcut-item:hover .h5-shortcut-icon.orange::before {
  opacity: 1;
}

/* 青色系 */
.h5-shortcut-icon.cyan {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(20, 184, 166, 0.08));
  color: #14B8A6;
}
.h5-shortcut-icon.cyan::before {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(20, 184, 166, 0.1));
}
.h5-shortcut-item:hover .h5-shortcut-icon.cyan::before {
  opacity: 1;
}

/* 粉色系 */
.h5-shortcut-icon.pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.08));
  color: #EC4899;
}
.h5-shortcut-icon.pink::before {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.1));
}
.h5-shortcut-item:hover .h5-shortcut-icon.pink::before {
  opacity: 1;
}

/* 灰色系 */
.h5-shortcut-icon.gray {
  background: linear-gradient(135deg, rgba(113, 113, 122, 0.15), rgba(113, 113, 122, 0.08));
  color: #71717A;
}
.h5-shortcut-icon.gray::before {
  background: linear-gradient(135deg, rgba(113, 113, 122, 0.2), rgba(113, 113, 122, 0.1));
}
.h5-shortcut-item:hover .h5-shortcut-icon.gray::before {
  opacity: 1;
}

.h5-shortcut-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  text-align: center;
  transition: color var(--duration-fast);
}

.h5-shortcut-item:hover .h5-shortcut-label {
  color: var(--color-text-primary);
}

/* === 黄金100秒 === */
.gold100-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2xl) var(--space-lg);
  padding-top: calc(var(--header-height) + var(--space-2xl));
  min-height: calc(100vh - var(--header-height));
  padding-bottom: calc(var(--tabbar-height) + var(--space-3xl) + env(safe-area-inset-bottom, 34px));
}

.gold100-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent, rgba(7, 193, 96, 0.03));
  pointer-events: none;
}

.gold100-title {
  font-size: 22px;
  font-weight: var(--font-weight-heavy);
  margin-bottom: var(--space-sm);
}
.gold100-subtitle {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-3xl);
}

.gold100-mic-button {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  cursor: pointer;
  position: relative;
  transition: transform var(--duration-fast) var(--ease-spring);
  box-shadow: 0 8px 32px rgba(7, 193, 96, 0.3);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.gold100-mic-button:active,
.gold100-mic-button.recording {
  transform: scale(1.08);
}
.gold100-mic-button.recording {
  box-shadow: 0 8px 40px rgba(7, 193, 96, 0.5);
}

.gold100-mic-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0;
}
.gold100-mic-button.recording .gold100-mic-ring {
  animation: pulseRing 1.5s infinite;
}

.gold100-mic-ring:nth-child(2) {
  animation-delay: 0.5s;
}

.gold100-timer {
  margin-top: var(--space-lg);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.gold100-hint {
  margin-top: var(--space-md);
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
}

.gold100-scenarios {
  width: 100%;
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.gold100-scenario {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-base);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.gold100-scenario:active {
  transform: scale(0.98);
  background: var(--color-bg-hover);
}

.gold100-scenario-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.gold100-scenario-text {
  flex: 1;
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
}

.gold100-scenario-tag {
  font-size: var(--font-size-mini);
  color: var(--color-text-tertiary);
}

/* === AI结果页 === */
.ai-result-container {
  padding: var(--space-base);
  padding-bottom: var(--space-2xl);
}

.ai-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: var(--space-lg);
}
.ai-processing-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  animation: spin 2s linear infinite;
}
.ai-processing-text {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
}
.ai-processing-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  max-width: 300px;
}
.ai-processing-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  transition: color var(--duration-normal);
}
.ai-processing-step.active {
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}
.ai-processing-step.done {
  color: var(--color-text-secondary);
}

.ai-result-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-md);
  overflow: hidden;
}
.ai-result-card-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: var(--font-weight-semibold);
}
.ai-result-card-body {
  padding: var(--space-lg);
}

/* 打字机效果 */
.typing-effect {
  overflow: hidden;
  white-space: pre-wrap;
}
.typing-cursor::after {
  content: '|';
  animation: pulse 0.8s infinite;
  color: var(--color-primary);
}

/* === 任务列表 v2 === */
.h5-task-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.h5-task-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-base) var(--space-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  border: 1px solid var(--color-border-light);
  animation: fadeInUp var(--duration-normal) var(--ease-out) both;
}

.h5-task-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

.h5-task-card:active {
  transform: scale(0.99);
  box-shadow: var(--shadow-xs);
  background: var(--color-bg-hover);
}

/* 任务卡片交错动画 */
.h5-task-card:nth-child(1) { animation-delay: 0ms; }
.h5-task-card:nth-child(2) { animation-delay: 50ms; }
.h5-task-card:nth-child(3) { animation-delay: 100ms; }
.h5-task-card:nth-child(4) { animation-delay: 150ms; }
.h5-task-card:nth-child(5) { animation-delay: 200ms; }
.h5-task-card:nth-child(6) { animation-delay: 250ms; }

.h5-task-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.h5-task-title {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  flex: 1;
  margin-right: var(--space-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: var(--line-height-snug);
}

.h5-task-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
}

.h5-task-progress {
  margin-top: var(--space-md);
}

/* === 紧凑数据卡片（简报页用） === */
.stat-mini-card {
  padding: 8px 6px;
  border-radius: 8px;
  text-align: center;
}
.stat-mini-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.stat-mini-label {
  font-size: 10px;
  color: #666;
  margin-top: 2px;
}

/* === Section 标题 v2 === */
.h5-section {
  margin-bottom: var(--space-lg);
  animation: fadeInUp var(--duration-normal) var(--ease-out) both;
}

/* Section 交错入场动画 */
.h5-page .h5-section:nth-child(2) { animation-delay: 100ms; }
.h5-page .h5-section:nth-child(3) { animation-delay: 150ms; }
.h5-page .h5-section:nth-child(4) { animation-delay: 200ms; }
.h5-page .h5-section:nth-child(5) { animation-delay: 250ms; }
.h5-page .h5-section:nth-child(6) { animation-delay: 300ms; }
.h5-page .h5-section:nth-child(7) { animation-delay: 350ms; }

.h5-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}
.h5-section-title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}
.h5-section-action {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: color var(--duration-fast);
}
.h5-section-action:hover {
  color: var(--color-primary);
}

/* === 列表项微交互 === */
.h5-list-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-base);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  border: 1px solid var(--color-border-light);
  animation: fadeInUp var(--duration-normal) var(--ease-out) both;
}

.h5-list-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

.h5-list-item:active {
  transform: scale(0.99);
  box-shadow: var(--shadow-xs);
  background: var(--color-bg-hover);
}

/* 列表项左侧色条变体 */
.h5-list-item.primary { border-left: 3px solid var(--color-primary); }
.h5-list-item.info { border-left: 3px solid var(--color-info); }
.h5-list-item.warning { border-left: 3px solid var(--color-warning); }
.h5-list-item.danger { border-left: 3px solid var(--color-danger); }
.h5-list-item.success { border-left: 3px solid var(--color-success); }
.h5-list-item.accent { border-left: 3px solid var(--color-accent); }

/* 列表项交错动画 */
.h5-list-item:nth-child(1) { animation-delay: 50ms; }
.h5-list-item:nth-child(2) { animation-delay: 100ms; }
.h5-list-item:nth-child(3) { animation-delay: 150ms; }
.h5-list-item:nth-child(4) { animation-delay: 200ms; }
.h5-list-item:nth-child(5) { animation-delay: 250ms; }
.h5-list-item:nth-child(6) { animation-delay: 300ms; }

/* 列表项内边距变体 */
.h5-list-item--compact {
  padding: var(--space-md);
}

.h5-list-item--large {
  padding: var(--space-lg);
}

/* 列表项内箭头 */
.h5-list-item__arrow {
  color: var(--color-text-placeholder);
  transition: transform var(--duration-fast) var(--ease-out);
}
.h5-list-item:hover .h5-list-item__arrow {
  transform: translateX(2px);
  color: var(--color-text-tertiary);
}

/* === 骨架屏组件 === */
.h5-skeleton {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-base);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.h5-skeleton__block {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-sm);
}

.h5-skeleton__block:last-child {
  margin-bottom: 0;
}

.h5-skeleton__block--title {
  height: 20px;
  width: 60%;
}

.h5-skeleton__block--short {
  width: 40%;
}

.h5-skeleton__block--circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.h5-skeleton__row {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.h5-skeleton__content {
  flex: 1;
}

/* 骨架屏卡片 */
.h5-skeleton-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeIn var(--duration-normal) var(--ease-out);
}

.h5-skeleton-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.h5-skeleton-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* 骨架屏 KPI */
.h5-skeleton-kpi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.h5-skeleton-kpi__item {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.h5-skeleton-kpi__value {
  height: 28px;
  width: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-xs);
}

.h5-skeleton-kpi__label {
  height: 12px;
  width: 70%;
  background: linear-gradient(90deg, #f5f5f5 25%, #f0f0f0 50%, #f5f5f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-xs);
}

/* === 通知/预警条 v2 === */
.h5-alert-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-base);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  animation: fadeInUp var(--duration-normal) var(--ease-out) both;
}

.h5-alert-bar:active {
  transform: scale(0.98);
}

/* 左侧色条 */
.h5-alert-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

/* 右侧装饰 */
.h5-alert-bar::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  opacity: 0.08;
}

/* 低级预警 - 黄色 */
.h5-alert-bar.low,
.h5-alert-bar.yellow {
  background: var(--color-alert-low-bg);
  color: var(--color-alert-low-text);
  border-color: rgba(245, 158, 11, 0.15);
}
.h5-alert-bar.low::before,
.h5-alert-bar.yellow::before {
  background: var(--color-alert-low);
}
.h5-alert-bar.low::after,
.h5-alert-bar.yellow::after {
  background: var(--color-alert-low);
}

/* 中级预警 - 橙色 */
.h5-alert-bar.medium,
.h5-alert-bar.orange {
  background: var(--color-alert-medium-bg);
  color: var(--color-alert-medium-text);
  border-color: rgba(249, 115, 22, 0.2);
}
.h5-alert-bar.medium::before,
.h5-alert-bar.orange::before {
  background: var(--color-alert-medium);
}
.h5-alert-bar.medium::after,
.h5-alert-bar.orange::after {
  background: var(--color-alert-medium);
}

/* 高级预警 - 红色 */
.h5-alert-bar.high,
.h5-alert-bar.red,
.h5-alert-bar.danger {
  background: var(--color-alert-high-bg);
  color: var(--color-alert-high-text);
  border-color: rgba(239, 68, 68, 0.2);
  animation: fadeInUp var(--duration-normal) var(--ease-out) both, warningGlow 2s infinite;
}
.h5-alert-bar.high::before,
.h5-alert-bar.red::before,
.h5-alert-bar.danger::before {
  background: var(--color-alert-high);
}
.h5-alert-bar.high::after,
.h5-alert-bar.red::after,
.h5-alert-bar.danger::after {
  background: var(--color-alert-high);
}

/* 成功提示 */
.h5-alert-bar.success {
  background: var(--color-success-bg);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.15);
}
.h5-alert-bar.success::before {
  background: var(--color-success);
}
.h5-alert-bar.success::after {
  background: var(--color-success);
}

/* 信息提示 */
.h5-alert-bar.info {
  background: var(--color-info-bg);
  color: #1D4ED8;
  border-color: rgba(59, 130, 246, 0.15);
}
.h5-alert-bar.info::before {
  background: var(--color-info);
}
.h5-alert-bar.info::after {
  background: var(--color-info);
}

.h5-alert-bar i:first-child {
  font-size: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.h5-alert-bar span {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* === 个人中心 === */
.h5-profile-header {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary), #38D97A);
  color: white;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  margin: calc(-1 * var(--space-base));
  margin-bottom: var(--space-lg);
}
.h5-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto var(--space-md);
  border: 3px solid rgba(255,255,255,0.4);
}
.h5-profile-name {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
}
.h5-profile-role {
  font-size: var(--font-size-caption);
  opacity: 0.8;
  margin-top: var(--space-xs);
}

/* === 表单样式 === */
.h5-form-group {
  margin-bottom: var(--space-lg);
}
.h5-form-label {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  display: block;
}
.h5-form-input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-md);
  background: var(--color-bg-page);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--font-size-body);
  transition: all var(--duration-fast);
  color: var(--color-text-primary);
}
.h5-form-input:focus {
  background: white;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-bg);
}
.h5-form-textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--space-md);
  background: var(--color-bg-page);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--font-size-body);
  resize: vertical;
  transition: all var(--duration-fast);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
}
.h5-form-textarea:focus {
  background: white;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-bg);
}

/* === Tab切换 === */
.h5-tabs {
  display: flex;
  gap: var(--space-xs);
  background: var(--color-bg-page);
  border-radius: var(--radius-md);
  padding: 3px;
  margin-bottom: var(--space-lg);
}
.h5-tab {
  flex: 1;
  text-align: center;
  padding: var(--space-sm) 0;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-tertiary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.h5-tab.active {
  background: white;
  color: var(--color-text-primary);
  box-shadow: var(--shadow-sm);
}

/* === 日报评分 === */
.score-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: var(--font-weight-heavy);
  position: relative;
}
.score-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--color-border-light);
}
.score-ring.excellent {
  color: var(--color-primary);
}
.score-ring.excellent::before {
  border-color: var(--color-primary-bg);
  border-top-color: var(--color-primary);
  border-right-color: var(--color-primary);
}
.score-ring.good {
  color: var(--color-info);
}
.score-ring.good::before {
  border-color: rgba(24, 144, 255, 0.1);
  border-top-color: var(--color-info);
  border-right-color: var(--color-info);
}

/* === 预警脉动 === */
.alert-pulse {
  animation: pulse 2s infinite;
}
.alert-pulse.red {
  animation: pulse 1s infinite;
}

/* === 角色选择页 === */
.role-select {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  padding: var(--space-xl);
}
.role-select-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.role-select-logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #07C160, #38D97A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.3);
}
.role-select-title {
  font-size: 28px;
  font-weight: 800;
  color: white;
}
.role-select-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 40px;
}
.role-select-cards {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 400px;
}
.role-select-card {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.role-select-card:active {
  transform: scale(0.97);
}
.role-select-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}
.role-select-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}
.role-select-card:hover::before {
  opacity: 1;
}
.role-select-card.employee::before {
  background: linear-gradient(90deg, #07C160, #38D97A);
}
.role-select-card.manager::before {
  background: linear-gradient(90deg, #576B95, #7089B8);
}
.role-select-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 14px;
}
.role-select-card.employee .role-select-card-icon {
  background: rgba(7,193,96,0.15);
  color: #07C160;
}
.role-select-card.manager .role-select-card-icon {
  background: rgba(87,107,149,0.2);
  color: #8FA4C8;
}
.role-select-card-name {
  font-size: 17px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}
.role-select-card-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}
.role-select-footer {
  margin-top: 36px;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  text-align: center;
}

/* === 通知中心 === */
.h5-notification-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.h5-notification-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-base);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}
.h5-notification-item:active {
  transform: scale(0.98);
}
.h5-notification-item.unread {
  background: #FAFBFF;
}
.h5-notification-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.h5-notification-icon.warning { background: var(--color-alert-orange-bg); color: var(--color-warning-orange); }
.h5-notification-icon.approval { background: rgba(24,144,255,0.08); color: var(--color-info); }
.h5-notification-icon.task { background: var(--color-primary-bg); color: var(--color-primary); }
.h5-notification-icon.daily { background: rgba(108,92,231,0.08); color: var(--color-exec-primary); }
.h5-notification-body {
  flex: 1;
  min-width: 0;
}
.h5-notification-title {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}
.h5-notification-text {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h5-notification-time {
  font-size: var(--font-size-mini);
  color: var(--color-text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.h5-notification-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}
.h5-notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}
.h5-notification-action {
  font-size: var(--font-size-caption);
  color: var(--color-primary);
  cursor: pointer;
  font-weight: var(--font-weight-medium);
}

/* === 反馈时间线 === */
.h5-feedback-timeline {
  position: relative;
  padding-left: 24px;
  margin-bottom: var(--space-lg);
}
.h5-feedback-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--color-border-light);
  border-radius: 1px;
}
.h5-feedback-item {
  position: relative;
  padding: var(--space-md) 0;
  animation: fadeInUp 0.3s ease-out both;
}
.h5-feedback-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--color-primary-bg);
}
.h5-feedback-item-inner {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-base);
  box-shadow: var(--shadow-sm);
}
.h5-feedback-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}
.h5-feedback-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
}
.h5-feedback-name {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}
.h5-feedback-date {
  font-size: var(--font-size-mini);
  color: var(--color-text-tertiary);
  margin-left: auto;
}
.h5-feedback-content {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  line-height: var(--line-height-loose);
  margin-top: var(--space-xs);
}

/* === 进度滑块 === */
.h5-progress-slider {
  width: 100%;
  margin: var(--space-md) 0;
}
.h5-progress-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-xs);
}
.h5-progress-slider-label strong {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}
.h5-progress-slider input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--color-border-light);
  border-radius: 3px;
  outline: none;
}
.h5-progress-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(7,193,96,0.3);
  cursor: pointer;
}

/* === AI建议芯片 === */
.h5-ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}
.h5-ai-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(7,193,96,0.06), rgba(7,193,96,0.1));
  border: 1px solid rgba(7,193,96,0.15);
  border-radius: var(--radius-full);
  font-size: var(--font-size-caption);
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.h5-ai-chip:active {
  transform: scale(0.95);
  background: rgba(7,193,96,0.15);
}
.h5-ai-chip i {
  font-size: 10px;
  opacity: 0.7;
}

/* === 审批步骤条 === */
.h5-approval-stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: var(--space-lg) 0;
}
.h5-step {
  display: flex;
  gap: var(--space-md);
  position: relative;
}
.h5-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.h5-step-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  border: 2px solid var(--color-border);
  background: white;
  color: var(--color-text-tertiary);
  transition: all var(--duration-normal);
  z-index: 1;
}
.h5-step-node.done {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.h5-step-node.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-bg);
}
.h5-step-node.rejected {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}
.h5-step-connector {
  width: 2px;
  min-height: 24px;
  flex: 1;
  background: var(--color-border-light);
  transition: background var(--duration-normal);
}
.h5-step-connector.done {
  background: var(--color-primary);
}
.h5-step-body {
  flex: 1;
  padding-bottom: var(--space-lg);
  min-width: 0;
}
.h5-step-label {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}
.h5-step-desc {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
}
.h5-step-comment {
  margin-top: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-page);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
}
.h5-step-pending {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  font-style: italic;
}

/* === 黄金100秒增强 === */
.gold100-soundwave {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
}
.gold100-soundwave-bar {
  width: 3px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: soundwaveBar 0.5s ease-in-out infinite alternate;
  opacity: 0.6;
}
.gold100-timer-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  pointer-events: none;
}
.gold100-timer-ring circle {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease-out;
}
.gold100-mic-button.glow {
  animation: glowPulse 2s ease-in-out infinite;
}

/* === AI处理增强 === */
.ai-processing-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
.ai-step-item {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.ai-step-node {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  border: 2px solid var(--color-border);
  background: white;
  color: var(--color-text-tertiary);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ai-step-node.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-bg);
  background: white;
}
.ai-step-node.done {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.ai-step-line {
  flex: 1;
  height: 2px;
  background: var(--color-border-light);
  transition: background 0.6s ease-out;
}
.ai-step-line.filled {
  background: var(--color-primary);
}
.ai-step-label-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 340px;
  margin: 8px auto 0;
}
.ai-step-label {
  font-size: var(--font-size-mini);
  color: var(--color-text-tertiary);
  text-align: center;
  flex: 1;
  transition: color var(--duration-fast);
}
.ai-step-label.active {
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}
.ai-step-label.done {
  color: var(--color-text-secondary);
}

/* 粒子效果 */
.ai-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ai-particle {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
  animation: particleFloat 2s var(--delay, 0s) infinite;
}

/* 打字光标 */
.typing-cursor-blink {
  display: inline;
  animation: cursorBlink 1s step-end infinite;
  color: var(--color-primary);
  font-weight: 300;
}

/* 结果揭示动画 */
.ai-result-reveal {
  animation: glowReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* === 管理层手机端 === */
.m-dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.m-stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-base);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.m-stat-card::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  opacity: 0.06;
}
.m-stat-card.blue::after { background: var(--color-info); }
.m-stat-card.green::after { background: var(--color-primary); }
.m-stat-card.orange::after { background: var(--color-warning-orange); }
.m-stat-card.red::after { background: var(--color-danger); }
.m-stat-card.purple::after { background: var(--color-exec-primary); }
.m-stat-label {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-xs);
}
.m-stat-value {
  font-size: 24px;
  font-weight: var(--font-weight-heavy);
}
.m-stat-card.blue .m-stat-value { color: var(--color-info); }
.m-stat-card.green .m-stat-value { color: var(--color-primary); }
.m-stat-card.orange .m-stat-value { color: var(--color-warning-orange); }
.m-stat-card.red .m-stat-value { color: var(--color-danger); }
.m-stat-card.purple .m-stat-value { color: var(--color-exec-primary); }
.m-stat-sub {
  font-size: var(--font-size-mini);
  color: var(--color-text-tertiary);
  margin-top: var(--space-xs);
}

.m-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}
.m-section-title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.m-section-action {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  cursor: pointer;
}

.m-insight-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-base);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
}
.m-insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-exec-primary), var(--color-exec-primary-light));
}
.m-insight-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 2px var(--space-sm);
  background: rgba(108,92,231,0.08);
  color: var(--color-exec-primary);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-mini);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
}
.m-insight-title {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}
.m-insight-summary {
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}
.m-insight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-mini);
  color: var(--color-text-tertiary);
}

.m-approval-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-base);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-md);
  border-left: 3px solid var(--color-warning);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.m-approval-card:active {
  transform: scale(0.98);
}
.m-approval-card.pending { border-left-color: var(--color-warning); }
.m-approval-card.approved { border-left-color: var(--color-primary); }
.m-approval-card.rejected { border-left-color: var(--color-danger); }
.m-approval-title {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}
.m-approval-meta {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-sm);
}
.m-approval-actions {
  display: flex;
  gap: var(--space-sm);
}

.m-daily-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-base);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-md);
}
.m-daily-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.m-daily-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.m-daily-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}
.m-daily-name {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
}
.m-daily-date {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
}
.m-daily-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-light);
}
.m-daily-score-item {
  text-align: center;
}
.m-daily-score-label {
  font-size: var(--font-size-mini);
  color: var(--color-text-tertiary);
}
.m-daily-score-value {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.m-task-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-base);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-md);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.m-task-card:active {
  transform: scale(0.98);
}
.m-task-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.m-task-title {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  flex: 1;
  margin-right: var(--space-sm);
}
.m-task-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-sm);
}

/* === 红色预警增强 === */
.h5-alert-bar.red {
  animation: warningGlow 2s infinite;
}
.h5-screen-flash {
  position: fixed;
  inset: 0;
  background: rgba(255,77,79,0.15);
  pointer-events: none;
  z-index: var(--z-toast);
  animation: screenFlash 0.6s ease-out forwards;
}

/* === 管理层个人中心 === */
.m-profile-header {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(135deg, #576B95, #7089B8);
  color: white;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  margin: calc(-1 * var(--space-base));
  margin-bottom: var(--space-lg);
}
.m-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto var(--space-md);
  border: 3px solid rgba(255,255,255,0.4);
}
.m-profile-name {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
}
.m-profile-role {
  font-size: var(--font-size-caption);
  opacity: 0.8;
  margin-top: var(--space-xs);
}
.m-profile-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-base);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.m-profile-menu-item:active {
  transform: scale(0.98);
  background: var(--color-bg-hover);
}
.m-profile-menu-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.m-profile-menu-label {
  flex: 1;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
}
.m-profile-menu-arrow {
  color: var(--color-text-tertiary);
  font-size: 12px;
}

/* ========================================
   排版优化
   ======================================== */

/* === 文字截断与省略 === */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === 文字层级 === */
.text-title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
}

.text-body {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}

.text-caption {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  line-height: var(--line-height-normal);
}

.text-mini {
  font-size: var(--font-size-mini);
  color: var(--color-text-tertiary);
  line-height: var(--line-height-normal);
}

/* === 行高优化 === */
.line-height-tight {
  line-height: var(--line-height-tight);
}

.line-height-snug {
  line-height: var(--line-height-snug);
}

.line-height-normal {
  line-height: var(--line-height-normal);
}

.line-height-loose {
  line-height: var(--line-height-loose);
}

/* === 间距优化 === */
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* === 列表项优化 === */
.h5-list-item-content {
  flex: 1;
  min-width: 0;
}

.h5-list-item-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.h5-list-item-title {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  line-height: var(--line-height-snug);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h5-list-item-subtitle {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  line-height: var(--line-height-normal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.h5-list-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-sm);
}

.h5-list-item-badge {
  font-size: var(--font-size-mini);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-weight: var(--font-weight-medium);
}

/* === 标签样式优化 === */
.h5-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-mini);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.h5-tag-primary {
  background: var(--color-primary-bg);
  color: var(--color-primary-dark);
}

.h5-tag-accent {
  background: var(--color-accent-bg);
  color: var(--color-accent);
}

.h5-tag-success {
  background: var(--color-success-bg);
  color: #059669;
}

.h5-tag-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning-orange);
}

.h5-tag-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.h5-tag-info {
  background: var(--color-info-bg);
  color: var(--color-info);
}

/* === 头像+文字组合 === */
.h5-avatar-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.h5-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.h5-avatar-sm {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.h5-avatar-lg {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

/* === 分割线优化 === */
.h5-divider {
  height: 1px;
  background: var(--color-border-light);
  margin: var(--space-md) 0;
}

.h5-divider-vertical {
  width: 1px;
  background: var(--color-border-light);
  align-self: stretch;
}

/* === 状态指示器 === */
.h5-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.h5-status-dot.success { background: var(--color-success); }
.h5-status-dot.warning { background: var(--color-warning); }
.h5-status-dot.danger { background: var(--color-danger); }
.h5-status-dot.info { background: var(--color-info); }
.h5-status-dot.pending { background: var(--color-text-placeholder); }

/* === 空状态 === */
.h5-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.h5-empty-state__icon {
  font-size: 48px;
  color: var(--color-text-placeholder);
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.h5-empty-state__title {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.h5-empty-state__desc {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  line-height: var(--line-height-normal);
  max-width: 240px;
}
