/**
 * 七彩护陪护平台 - 护工端 HTML 原型样式
 * 基于《UI交互设计规范.md》
 * 版本: V1.0
 * 日期: 2026-04-21
 */

/* ==================== 变量定义 ==================== */
:root {
  /* 主色板 */
  --primary: #0891B2;          /* 医疗青 */
  --secondary: #22D3EE;        /* 亮青 */
  --cta: #22C55E;              /* 健康绿 */
  --bg-base: #F0FDFA;          /* 暖青白 - 页面背景 */
  --bg-card: #FFFFFF;          /* 纯白 - 卡片背景 */
  --text-primary: #134E4A;     /* 深墨绿 - 正文 */
  
  /* 语义色 */
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  
  /* 中性色 */
  --text-secondary: #475569;   /* 文字辅 */
  --text-tertiary: #94A3B8;    /* 文字弱 */
  --border: #E2E8F0;           /* 分割线 */
  --bg-gray: #F8F9FA;          /* 浅灰背景 */
  
  /* 间距系统 (2px基准) */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  
  /* 圆角 */
  --radius-sm: 4px;    /* 标签 */
  --radius-md: 8px;    /* 按钮、输入框 */
  --radius-lg: 12px;   /* 卡片 */
  --radius-xl: 16px;   /* 弹窗 */
  
  /* 阴影 */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-float: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-modal: 0 8px 24px rgba(0,0,0,0.15);
  
  /* 字体 */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  
  /* 字号 */
  --text-xl: 22px;     /* 大标题 */
  --text-lg: 18px;     /* 中标题 */
  --text-base: 16px;   /* 正文大 */
  --text-sm: 14px;     /* 正文 */
  --text-xs: 12px;     /* 辅助文本 */
  --text-xxs: 10px;    /* 超小文本 */
  
  /* 行高 */
  --leading-xl: 30px;
  --leading-lg: 26px;
  --leading-base: 24px;
  --leading-sm: 22px;
  --leading-xs: 20px;
}

/* ==================== 基础重置 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100vh;
}

/* ==================== 布局容器 ==================== */
.page-container {
  max-width: 430px;  /* iPhone 14 Pro Max 宽度 */
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--bg-base);
  position: relative;
  padding-bottom: 84px;  /* TabBar高度 + 安全区 */
}

/* ==================== 导航栏 ==================== */
.navbar {
  background-color: var(--primary);
  color: white;
  padding: var(--space-md);
  padding-top: 44px;  /* 状态栏高度 */
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-title {
  font-size: var(--text-lg);
  font-weight: 600;
  text-align: center;
  line-height: var(--leading-lg);
}

.navbar-with-back {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-back {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.navbar-placeholder {
  width: 24px;
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease-out;
  text-decoration: none;
}

.btn:active {
  opacity: 0.85;
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-secondary {
  background-color: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-text {
  background-color: transparent;
  color: var(--primary);
  padding: 0;
  height: auto;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  height: 32px;
  padding: 0 var(--space-sm);
  font-size: var(--text-xs);
}

.btn:disabled,
.btn-disabled {
  background-color: var(--border);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

/* ==================== 卡片 ==================== */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
}

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

.card-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ==================== 标签 ==================== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
}

.tag-success {
  background-color: #DCFCE7;
  color: #15803D;
}

.tag-warning {
  background-color: #FEF3C7;
  color: #B45309;
}

.tag-danger {
  background-color: #FEE2E2;
  color: #DC2626;
}

.tag-info {
  background-color: #DBEAFE;
  color: #1D4ED8;
}

.tag-primary {
  background-color: #E0F2FE;
  color: #0369A1;
}

.tag-skill {
  background-color: var(--bg-base);
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* ==================== 列表项 ==================== */
.list-item {
  background-color: var(--bg-card);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-content {
  flex: 1;
}

.list-item-title {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.list-item-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.list-item-arrow {
  color: var(--text-tertiary);
  font-size: 18px;
  margin-left: var(--space-sm);
}

/* ==================== 输入框 ==================== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-sm);
  background-color: var(--bg-gray);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  background-color: white;
  box-shadow: 0 0 0 2px var(--primary);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-input-error {
  background-color: #FFF5F5;
  box-shadow: 0 0 0 1px var(--danger);
}

textarea.form-input {
  height: auto;
  min-height: 100px;
  padding: var(--space-sm);
  resize: vertical;
}

/* ==================== Tab 筛选 ==================== */
.tab-bar {
  display: flex;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-item {
  flex: 1;
  min-width: 80px;
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.tab-item.active {
  color: var(--primary);
  font-weight: 600;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background-color: var(--primary);
}

/* ==================== 底部 TabBar ==================== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 50px;
  background-color: white;
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tabbar-icon {
  width: 24px;
  height: 24px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  color: var(--text-tertiary);
}

.tabbar-text {
  font-size: var(--text-xxs);
  color: var(--text-tertiary);
}

.tabbar-item.active .tabbar-icon,
.tabbar-item.active .tabbar-text {
  color: var(--primary);
}

.tabbar-item.active .tabbar-icon {
  transform: scale(1.1);
}

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

.empty-icon {
  width: 80px;
  height: 80px;
  background-color: var(--bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.empty-title {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.empty-desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background-color: var(--text-primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  z-index: 200;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-success {
  background-color: var(--success);
}

.toast-error {
  background-color: var(--danger);
}

/* ==================== 提醒卡片 ==================== */
.alert-card {
  background-color: #E0F2FE;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.alert-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.alert-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ==================== 数据展示 ==================== */
.stat-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  color: white;
  text-align: center;
  margin: var(--space-md);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: var(--text-sm);
  opacity: 0.9;
}

.stat-row {
  display: flex;
  gap: var(--space-md);
  margin: var(--space-md);
}

.stat-item {
  flex: 1;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.stat-item-value {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-item-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ==================== 头像 ==================== */
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-tertiary);
  overflow: hidden;
}

.avatar-sm {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 32px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.divider-vertical {
  width: 1px;
  height: 100%;
  background-color: var(--border);
}

/* ==================== 页面内容区 ==================== */
.page-content {
  padding: var(--space-md);
}

.section-title {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: var(--space-md) var(--space-md) var(--space-sm);
  font-weight: 500;
}

/* ==================== 响应式 ==================== */
@media (max-width: 375px) {
  :root {
    --space-md: 12px;
    --space-lg: 20px;
  }
}

/* ==================== 用户端组件 ==================== */

/* 星级评分组件 - 交互式星星，可点击选择 */
.star-rating {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.star-rating-item {
  font-size: 20px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.star-rating-item:hover,
.star-rating-item.active {
  color: var(--warning);
}

.star-rating-item:hover {
  transform: scale(1.2);
}

.star-rating-value {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-left: var(--space-xs);
}

/* 宣传横幅 - 首页轮播区样式 */
.promo-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-md);
  color: white;
  position: relative;
  overflow: hidden;
}

.promo-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.promo-banner-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}

.promo-banner-desc {
  font-size: var(--text-sm);
  opacity: 0.9;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.promo-banner-action {
  background-color: white;
  color: var(--primary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  display: inline-block;
  position: relative;
  z-index: 1;
}

/* 快捷入口网格 - 4宫格快捷入口 */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: var(--bg-card);
  margin: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: var(--radius-md);
}

.quick-action-item:active {
  background-color: var(--bg-base);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.quick-action-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* 服务卡片 - 热门服务展示 */
.service-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin: var(--space-sm) var(--space-md);
  box-shadow: var(--shadow-card);
  display: flex;
  gap: var(--space-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.service-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-float);
}

.service-card-image {
  width: 80px;
  height: 80px;
  background-color: var(--bg-base);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 32px;
}

.service-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.service-card-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-xs);
}

.service-card-price {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--danger);
}

.service-card-unit {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: 400;
}

/* 护工卡片 - 用户端变体，含头像、评分、技能标签 */
.caregiver-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin: var(--space-sm) var(--space-md);
  box-shadow: var(--shadow-card);
}

.caregiver-card-header {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.caregiver-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--bg-gray);
  overflow: hidden;
  flex-shrink: 0;
}

.caregiver-card-info {
  flex: 1;
}

.caregiver-card-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.caregiver-card-badges {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.caregiver-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--warning);
}

.caregiver-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: var(--space-sm);
}

.caregiver-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  margin-top: var(--space-sm);
}

.caregiver-card-price {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.caregiver-card-price-value {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--danger);
}

/* 时间线组件 - 订单状态时间线 */
.timeline {
  padding: var(--space-md);
}

.timeline-item {
  display: flex;
  gap: var(--space-md);
  position: relative;
  padding-bottom: var(--space-lg);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background-color: var(--border);
}

.timeline-item.completed:not(:last-child)::before {
  background-color: var(--success);
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--border);
  border: 2px solid white;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-item.completed .timeline-dot {
  background-color: var(--success);
}

.timeline-item.active .timeline-dot {
  background-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.2);
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-time {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.timeline-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 4px;
}

/* 搜索栏 - 搜索输入框样式 */
.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md);
  box-shadow: var(--shadow-card);
}

.search-bar-icon {
  color: var(--text-tertiary);
  font-size: 18px;
  margin-right: var(--space-sm);
}

.search-bar-input {
  flex: 1;
  border: none;
  background: none;
  font-size: var(--text-sm);
  color: var(--text-primary);
  outline: none;
}

.search-bar-input::placeholder {
  color: var(--text-tertiary);
}

.search-bar-action {
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  padding-left: var(--space-sm);
  border-left: 1px solid var(--border);
  margin-left: var(--space-sm);
}

/* ==================== 主管端组件 ==================== */

/* 仪表盘网格 - 数据卡片网格布局 */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  padding: var(--space-md);
}

.dashboard-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

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

.dashboard-card-icon.primary {
  background-color: #E0F2FE;
  color: var(--primary);
}

.dashboard-card-icon.success {
  background-color: #DCFCE7;
  color: var(--success);
}

.dashboard-card-icon.warning {
  background-color: #FEF3C7;
  color: var(--warning);
}

.dashboard-card-icon.danger {
  background-color: #FEE2E2;
  color: var(--danger);
}

.dashboard-card-title {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.dashboard-card-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-xs);
}

.dashboard-card-trend {
  font-size: var(--text-xs);
  margin-top: 4px;
}

.dashboard-card-trend.up {
  color: var(--success);
}

.dashboard-card-trend.down {
  color: var(--danger);
}

/* 管理表格 - 高密度数据表格 */
.admin-table {
  width: 100%;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: var(--space-md);
  font-size: var(--text-sm);
}

.admin-table-header {
  display: grid;
  background-color: var(--bg-gray);
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: var(--text-xs);
}

.admin-table-row {
  display: grid;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.admin-table-row:last-child {
  border-bottom: none;
}

.admin-table-row:hover {
  background-color: var(--bg-gray);
}

.admin-table-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-cell.primary {
  font-weight: 500;
  color: var(--text-primary);
}

.admin-table-cell.secondary {
  color: var(--text-secondary);
}

/* 状态下拉 - 状态选择下拉 */
.status-dropdown {
  position: relative;
  display: inline-block;
}

.status-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--bg-gray);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.status-dropdown-trigger:hover {
  background-color: var(--border);
}

.status-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  min-width: 120px;
  z-index: 100;
  overflow: hidden;
  display: none;
}

.status-dropdown.open .status-dropdown-menu {
  display: block;
}

.status-dropdown-option {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.status-dropdown-option:hover {
  background-color: var(--bg-gray);
}

.status-dropdown-option.active {
  color: var(--primary);
  font-weight: 500;
}

/* 简单图表 - CSS 实现的简单柱状图 */
.chart-bar {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin: var(--space-md);
  box-shadow: var(--shadow-card);
}

.chart-bar-header {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.chart-bar-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 120px;
  gap: var(--space-sm);
}

.chart-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
}

.chart-bar-column {
  width: 100%;
  max-width: 40px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  min-height: 8px;
  transition: all 0.3s ease;
}

.chart-bar-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.chart-bar-value {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: 500;
}

/* 日志条目 - 操作日志条目 */
.log-entry {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}

.log-entry:last-child {
  border-bottom: none;
}

.log-entry-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--info);
  margin-top: 6px;
  flex-shrink: 0;
}

.log-entry-indicator.success {
  background-color: var(--success);
}

.log-entry-indicator.warning {
  background-color: var(--warning);
}

.log-entry-indicator.danger {
  background-color: var(--danger);
}

.log-entry-content {
  flex: 1;
}

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

.log-entry-action {
  font-weight: 500;
  color: var(--text-primary);
}

.log-entry-time {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.log-entry-detail {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-xs);
}

/* 高密度布局变体 - 更紧凑的间距，用于管理端 */
.dense-mode .card,
.dense-mode .list-item {
  padding: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.dense-mode .form-group {
  margin-bottom: var(--space-sm);
}

.dense-mode .section-title {
  margin: var(--space-sm) var(--space-md) var(--space-xs);
}

.dense-mode .admin-table-row,
.dense-mode .admin-table-header {
  padding: var(--space-xs) var(--space-md);
}

.dense-mode .log-entry {
  padding: var(--space-sm) var(--space-md);
}

.dense-mode .dashboard-card {
  padding: var(--space-sm);
}
