:root {
  --apple-home-bg: transparent;
  --apple-home-surface: var(--apple-panel);
  --apple-home-surface-soft: var(--apple-panel-strong);
  --apple-home-line: var(--apple-line);
  --apple-home-text: var(--apple-text-1);
  --apple-home-subtle: var(--apple-text-2);
  --apple-home-soft: var(--apple-text-3);
  --apple-home-shadow: var(--apple-shadow);
  --apple-home-shadow-soft: var(--apple-shadow-soft);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--apple-home-text);
  background: var(--apple-home-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.apple-app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--apple-home-bg);
}

.apple-topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.apple-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apple-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.apple-topbar-logo {
  height: 46px !important; /* 强制生效，防止被覆盖 */
  width: auto;
}

.apple-topbar-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--apple-text-1);
}

.apple-home-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  flex: 1;
}

.apple-home-sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  padding: 32px 16px;
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--apple-home-line);
  background: #F5F5F7;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.apple-home-page {
  padding: 32px;
}

.apple-home-sidebar::before {
  display: none;
}

.apple-home-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
}

.apple-home-brand-mark {
  height: 48px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 16px;
}

.apple-home-sidebar-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--apple-text-1);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.apple-home-sidebar-subtitle {
  margin: 4px 0 0;
  color: var(--apple-home-subtle);
  font-size: 12.5px;
  line-height: 1.55;
}

.apple-home-sidebar-meta {
  padding: 0 2px;
  color: var(--apple-home-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.apple-home-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 8px;
  margin-top: -12px; /* 向上移动菜单 */
}

.apple-home-nav-item {
  position: relative;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--apple-text-2);
  display: flex;
  align-items: center; /* 确保垂直居中 */
  gap: 8px; /* 修改前是 14px，缩小间距 */
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.apple-home-nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--apple-text-1);
}

.apple-home-nav-item:active {
  transform: scale(0.97);
  background: rgba(0, 0, 0, 0.08);
}

.apple-home-nav-item.is-active {
  background: rgba(0, 122, 255, 0.1);
  color: #007AFF;
}

.apple-home-nav-item.is-active .apple-home-nav-icon {
  color: #007AFF;
}

.apple-home-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.apple-home-nav-label {
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: -0.2px;
}

.apple-home-nav-item.is-active .apple-home-nav-label {
  font-weight: 600 !important;
}

.apple-home-nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--apple-home-soft);
  transition: all 180ms ease;
}

.apple-home-nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.apple-home-nav-item:hover .apple-home-nav-icon {
  color: var(--apple-home-text);
  transform: translateY(-0.5px);
}

.apple-home-nav-item.is-active .apple-home-nav-icon {
  color: #007AFF; /* 选中状态图标颜色与文字保持一致 */
}

.apple-home-nav-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: row; /* 改为横向排布，防止多行偏离中心 */
  align-items: center; /* 垂直居中 */
  justify-content: flex-start; /* 整体左对齐 */
  gap: 2px;
  padding-top: 0;
  flex-shrink: 1;
}

.apple-home-nav-label {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap; /* 确保文字不折行 */
}

.apple-home-nav-hint {
  font-size: 12px;
  line-height: 1.32;
  color: var(--apple-home-soft);
  letter-spacing: 0.01em;
}

.apple-home-nav-item.is-active .apple-home-nav-hint {
  color: rgba(255, 255, 255, 0.82);
}

.apple-home-sidebar-foot {
  position: relative;
  display: flex;
  align-items: center; /* 恢复垂直居中 */
  gap: 10px;
  padding: 14px;
  border-radius: var(--apple-radius-lg);
  background: var(--apple-home-surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.apple-home-sidebar-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.apple-home-pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #00b42a;
  box-shadow: 0 0 0 6px rgba(0, 180, 42, 0.08);
  flex-shrink: 0;
  margin-left: 6px; /* 向右移动，使其与上方图标视觉对齐 */
}

.apple-home-sidebar-foot strong {
  display: block;
  font-size: 13px;
}

.apple-home-sidebar-foot span {
  display: block;
  margin-top: 2px;
  color: var(--apple-home-soft);
  font-size: 12px;
}

/* ===== 侧边栏高端重设计 (高端 / 大气 / 精致) ===== */
.apple-home-sidebar {
  background: #F5F5F7;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding: 22px 12px;
  gap: 16px;
}


/* 分区标签 */
.apple-side-section-label {
  padding: 0 10px;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--apple-text-3);
}

/* 导航项：图标主导 · 无图标背景 · 精致悬浮/激活 */
.apple-home-nav {
  gap: 8px;
  padding: 0 6px;
}
.apple-home-nav-item {
  position: relative;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  gap: 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--apple-text-2);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  overflow: visible;
  transition: background 0.18s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.18s ease, transform 0.12s ease;
}
.apple-home-nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--apple-text-1);
}
.apple-home-nav-item:active {
  transform: scale(0.98);
  background: rgba(0, 0, 0, 0.06);
}
/* Apple 侧栏选中态：克制的蓝色半透明填充，无白卡、无阴影、无竖条 */
.apple-home-nav-item.is-active {
  background: rgba(0, 113, 227, 0.10);
  color: #0071E3;
}
/* 图标：纯图标，无任何背景容器 */
.apple-home-nav-icon {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: var(--apple-text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.22s ease;
}
.apple-home-nav-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.apple-home-nav-item:hover .apple-home-nav-icon {
  color: var(--apple-text-1);
}
.apple-home-nav-item.is-active .apple-home-nav-icon {
  color: #0071E3;
}
/* 桌面端：图标 + 单一标题（无副标题，更克制、更 Apple） */
.apple-home-nav-copy {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-width: 0;
  flex: 1;
}
.apple-home-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: inherit;
}
/* 选中态：标题略加重，呼应蓝色选中 */
.apple-home-nav-item.is-active .apple-home-nav-label {
  font-weight: 600;
}
/* 开发中指示点 */
.apple-home-nav-item .developing-badge {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--apple-text-3);
  flex-shrink: 0;
}

/* 底部状态卡 */
.apple-home-sidebar-foot {
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 3px rgba(0, 0, 0, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  gap: 12px;
}
.apple-home-sidebar-foot strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-text-1);
  letter-spacing: -0.2px;
}
.apple-home-sidebar-foot span {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--apple-text-3);
  letter-spacing: 0.3px;
}
.apple-side-foot-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.apple-home-pulse {
  animation: appleSidePulse 2.4s ease-in-out infinite;
}
@keyframes appleSidePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 180, 42, 0.14); }
  50% { box-shadow: 0 0 0 7px rgba(0, 180, 42, 0.04); }
}
@media (prefers-reduced-motion: reduce) {
  .apple-home-pulse { animation: none; }
}

@media (max-height: 820px) {
  .apple-home-sidebar {
    gap: 12px;
    padding: 14px;
  }

  .apple-home-sidebar-subtitle,
  .apple-home-sidebar-meta {
    display: none;
  }

  .apple-home-sidebar-foot {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 14px 10px; /* 调整内边距适应变窄的菜单 */
  }

  .apple-home-sidebar-foot::before {
    display: none !important;
  }

  .apple-home-sidebar-top {
    gap: 6px;
  }

  .apple-home-nav-item {
    padding: 8px 10px;
  }
}

.apple-home-page {
  min-width: 0;
}

.apple-home-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.apple-home-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px;
}

.apple-home-toolbar-copy {
  min-width: 0;
}

.apple-home-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--apple-home-soft);
}

.apple-home-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.apple-home-subtitle {
  margin: 6px 0 0;
  color: var(--apple-home-subtle);
  font-size: 14px;
}

.apple-home-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.apple-home-toolbar-actions .arco-btn {
  border-radius: var(--apple-radius-lg);
}

/* ========================================== */
/* Premium Profile Dropdown & Trigger */
/* ========================================== */
.apple-home-profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 44px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.apple-home-profile-trigger:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.apple-home-profile-trigger.is-active {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 0 4px rgba(0, 113, 227, 0.15);
  transform: translateY(0);
}

.apple-home-profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007AFF 0%, #0051a8 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
  flex-shrink: 0;
}

.apple-home-profile-name {
  font-size: 14px;
  font-weight: 600;
  color: #1D1D1F;
  letter-spacing: -0.01em;
}

.apple-home-profile-chevron {
  display: flex;
  align-items: center;
  color: #86868B;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-home-profile-trigger.is-active .apple-home-profile-chevron {
  transform: rotate(180deg);
}

.apple-profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 220px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 6px;
  z-index: 2000;
  animation: appleProfileDropdownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}

@keyframes appleProfileDropdownFade {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.apple-profile-dropdown-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #1D1D1F;
  transition: all 0.2s ease;
}

.apple-profile-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.apple-profile-dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #86868B;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.apple-profile-dropdown-item:hover .apple-profile-dropdown-icon {
  color: #1D1D1F;
}

.apple-profile-dropdown-item.is-destructive {
  color: #FF3B30;
  margin-top: 4px;
  position: relative;
}

.apple-profile-dropdown-item.is-destructive::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 10px;
  right: 10px;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.apple-profile-dropdown-item.is-destructive .apple-profile-dropdown-icon {
  color: #FF3B30;
}

.apple-profile-dropdown-item.is-destructive:hover {
  background: #FFF0F0;
  color: #D92D20;
}

.apple-home-card,
.apple-home-table-card,
.apple-home-side-card,
.apple-home-rank-card {
  border: 1px solid var(--apple-home-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.86));
  box-shadow: var(--apple-home-shadow);
  border-radius: var(--apple-radius-xl);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.apple-home-card .arco-card-header,
.apple-home-table-card .arco-card-header,
.apple-home-side-card .arco-card-header,
.apple-home-rank-card .arco-card-header {
  border-bottom: none;
  padding-bottom: 0;
}

.apple-home-card .arco-card-body,
.apple-home-table-card .arco-card-body,
.apple-home-side-card .arco-card-body,
.apple-home-rank-card .arco-card-body {
  padding: 20px;
}

.apple-home-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.apple-home-summary-title {
  margin: 4px 0 0;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.055em;
  color: #111111;
}

.apple-home-summary-text {
  margin: 10px 0 0;
  color: var(--apple-home-subtle);
  font-size: 15px;
  line-height: 1.75;
  max-width: 760px;
}

.apple-home-summary-tip {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--apple-home-line);
  color: var(--apple-home-soft);
  font-size: 13px;
}

.apple-home-summary-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.apple-home-summary-time {
  color: var(--apple-home-soft);
  font-size: 13px;
}

.apple-home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.apple-home-kpi-card {
  border: 1px solid var(--apple-home-line);
  background: var(--apple-home-surface);
  box-shadow: var(--apple-home-shadow-soft);
  border-radius: var(--apple-radius-lg);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.apple-home-kpi-card .arco-card-body {
  padding: 16px 18px;
}

.apple-home-kpi-card__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.apple-home-kpi-card__copy {
  min-width: 0;
  flex: 1;
}

.apple-home-kpi-label {
  color: var(--apple-home-subtle);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.apple-home-kpi-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
}

.apple-home-kpi-number {
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.055em;
  color: #111111;
}

.apple-home-kpi-unit {
  color: var(--apple-home-text);
  font-size: 14px;
  font-weight: 500;
}

.apple-home-kpi-note {
  margin-top: 8px;
  color: var(--apple-home-subtle);
  font-size: 12px;
  line-height: 1.65;
}

.apple-home-kpi-card__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
  overflow: visible;
}

.apple-home-kpi-card__icon--attendance {
  color: #3f68b6;
}

.apple-home-kpi-card__icon--present {
  color: #3d7d66;
}

.apple-home-kpi-card__icon--leave {
  color: #6e61a7;
}

.apple-home-kpi-card__icon--risk {
  color: #b96e47;
}

.apple-home-main-grid,
.apple-home-bottom-grid {
  display: grid;
  gap: 18px;
}

.apple-home-main-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.apple-home-main-grid > *,
.apple-home-bottom-grid > *,
.apple-home-kpi-grid > * {
  min-width: 0;
}

.apple-home-bottom-grid {
  grid-template-columns: minmax(0, 1fr);
}

.apple-home-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.apple-home-panel-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--apple-home-soft);
}

.apple-home-panel-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.apple-home-panel-note {
  margin: 8px 0 0;
  color: var(--apple-home-subtle);
  font-size: 13px;
}

/* 各业务板块对比卡：标题与副标题强制黑色（仅作用于该卡片） */
.apple-home-biz-compare .apple-home-panel-title,
.apple-home-biz-compare .apple-home-panel-note {
  color: #000;
}

.apple-home-panel-block {
  margin-bottom: 16px;
}

.apple-home-panel-block:last-child {
  margin-bottom: 0;
}

.apple-home-table-card .arco-table {
  margin-top: 16px;
  overflow-x: auto;
}

.apple-home-table-card .arco-table-th {
  background: rgba(248, 250, 252, 0.96);
  color: var(--apple-home-subtle);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--apple-home-line) !important;
  white-space: nowrap !important;
}

.apple-home-table-card .arco-table-td,
.apple-home-table-card .arco-table-th {
  height: 64px !important;
  box-sizing: border-box;
  padding: 0 16px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apple-home-table-card .arco-table-td {
  /* padding top/bottom removed to rely strictly on height */
  border-bottom: 1px solid var(--apple-home-line) !important;
}

.apple-home-table-card .arco-table-th .arco-table-th-item {
  white-space: nowrap !important;
  justify-content: inherit;
}

.apple-home-table-card .arco-table-th:first-child {
  padding-left: 68px !important;
}

.apple-home-table-card .arco-table-td:first-child {
  padding-left: 20px !important;
}

.apple-home-table-card .arco-table-container {
  border-bottom: none !important;
}

.apple-home-table-card .arco-table-tr {
  height: 64px !important;
}

.apple-home-table-card .arco-table-tr:hover .arco-table-td {
  background: rgba(0, 113, 227, 0.035);
}

.apple-home-user-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.apple-home-user-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--apple-radius-lg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #edf3ff;
  color: #165dff;
  font-size: 13px;
  font-weight: 700;
}

.apple-home-user-copy {
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apple-home-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--apple-home-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apple-home-user-sub {
  margin-top: 3px;
  color: var(--apple-home-soft);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apple-home-empno {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  vertical-align: middle;
}

.apple-home-empno--empty {
  padding-right: 10px;
}

.apple-home-empno-value {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--apple-home-subtle);
  white-space: nowrap;
}

.apple-home-empno-copy {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  color: var(--apple-home-soft);
  cursor: pointer;
  transition: transform 120ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.apple-home-empno-copy:hover {
  background: rgba(0, 113, 227, 0.12);
  color: var(--apple-accent);
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.12);
}

.apple-home-empno-copy:active {
  transform: scale(0.96);
}

.apple-home-status-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.apple-home-status-meta {
  color: var(--apple-home-soft);
  font-size: 12px;
}

.apple-home-side-card,
.apple-home-rank-card {
  min-height: 100%;
  overflow: visible;
}

.apple-home-table-card,
.apple-home-side-card,
.apple-home-rank-card {
  display: flex;
  flex-direction: column;
}

.apple-home-table-card .arco-card-body,
.apple-home-side-card .arco-card-body,
.apple-home-rank-card .arco-card-body {
  flex: 1;
}

.apple-home-priority-list {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  height: 448px;
}

.apple-home-priority-item.is-header .apple-home-priority-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-home-subtle);
}

.apple-home-priority-item.is-header .apple-home-priority-desc {
  margin-top: 0;
  font-size: 12px;
  color: var(--apple-home-soft);
}

.apple-home-rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apple-home-priority-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  height: 64px !important;
  box-sizing: border-box;
  border-bottom: 1px solid var(--apple-home-line);
  padding: 0 16px;
}

.apple-home-priority-item:last-child {
  border-bottom: none;
}

.apple-home-rank-row {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.apple-home-rank-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.apple-home-priority-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.apple-home-priority-desc {
  margin-top: 0;
  color: var(--apple-home-subtle);
  font-size: 13px;
  line-height: 1.65;
}

.apple-home-rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.apple-home-rank-main {
  min-width: 0;
}

.apple-home-rank-name {
  font-size: 14px;
  font-weight: 600;
}

.apple-home-rank-sub {
  margin-top: 4px;
  color: var(--apple-home-soft);
  font-size: 12px;
}

.apple-home-rank-value {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
}

.apple-home-empty {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.apple-home-empty-card {
  max-width: 520px;
}

@media (max-width: 1200px) {
  .apple-home-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apple-home-main-grid,
  .apple-home-bottom-grid {
    /* grid-template-columns: 1fr; removed */
  }
}

.apple-mobile-menu-btn-actual {
  display: none !important;
}
.apple-mobile-menu-backdrop {
  display: none;
}

@media (max-width: 768px) {
  .mobile-hide {
    display: none !important;
  }
  .apple-home-nav-item .developing-badge {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  .apple-home-layout {
    display: block !important;
  }
  
  .apple-mobile-menu-btn-actual {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .apple-mobile-menu-backdrop {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }

  /* 左侧导航栏改为抽屉式菜单 */
  .apple-home-sidebar {
    position: fixed !important;
    top: 56px !important; /* 紧贴手机端顶部导航栏下方 */
    bottom: 0 !important;
    left: 0 !important; 
    width: 260px !important;
    height: calc(100vh - 56px) !important;
    flex-direction: column !important;
    padding: 16px !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0,0,0,0.1) !important;
    border-top: none !important;
    justify-content: flex-start !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s, opacity 0.3s !important;
    transform: translateX(-100%) !important;
    display: flex !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important; /* 强制清除任何可能引起间距的margin */
    box-sizing: border-box !important;
  }
  
  .apple-home-sidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .apple-home-sidebar-top, .apple-home-sidebar-foot {
    display: flex !important;
  }

  .apple-home-nav {
    flex-direction: column !important;
    margin: 24px 0 !important;
    padding: 0 !important;
    width: 100%;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow-y: auto;
  }

  .apple-home-nav-item {
    flex-direction: row !important;
    padding: 12px 16px !important;
    gap: 12px !important;
    border-radius: 12px !important;
    width: 100% !important;
    justify-content: flex-start !important; /* 让整个容器左对齐 */
    align-items: center !important;
    height: auto !important;
    margin-bottom: 8px !important;
  }

  .apple-home-nav-item .developing-badge {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-block !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    z-index: 1 !important;
  }

  .apple-home-nav-item.is-active {
    background: rgba(0, 122, 255, 0.1) !important;
  }
  
  .apple-home-nav-item.is-active .apple-home-nav-icon {
    color: #007AFF !important;
  }
  
  .apple-home-nav-item.is-active .apple-home-nav-label {
    color: #007AFF !important;
  }

  .apple-home-nav-icon {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .apple-home-nav-icon svg {
    width: 22px !important;
    height: 22px !important;
  }

  .apple-home-nav-copy {
    display: flex !important;
    opacity: 1 !important;
    max-width: none !important;
    margin-left: 12px !important;
    align-items: center !important; /* 恢复垂直居中 */
    justify-content: flex-start !important; /* 左对齐 */
    flex-shrink: 1 !important;
  }

  .apple-home-nav-label {
    font-size: 16px !important;
    line-height: 1 !important;
    text-align: left !important;
    font-weight: 500 !important;
    display: block !important; /* 确保文字作为块级元素显示 */
    white-space: nowrap !important;
  }

  .apple-home-nav-hint, .apple-home-nav-meta {
    display: block !important;
  }

  .apple-home-page {
    padding: 16px !important;
    padding-bottom: 24px !important;
    margin-left: 0 !important;
    margin-top: 56px !important; /* 给手机端固定的顶部导航栏留出空间 */
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  
  .apple-topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 56px !important; /* 手机端导航栏高度 56px */
    z-index: 1001 !important; /* 确保顶部栏在最上层 */
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    margin: 0 !important;
  }
  
  /* 顶部导航栏调整 */
  .apple-topbar {
    padding: 0 16px !important;
    height: 56px !important; /* 手机端高度 56px */
  }

  .apple-topbar-logo {
    height: 36px !important; /* 手机端Logo高度 36px */
  }

  .apple-topbar-greeting {
    display: none !important; /* 隐藏天气和问候语 */
  }

  .apple-home-profile-trigger {
    padding: 0 !important;
    height: 32px !important;
    width: 32px !important;
    border-radius: 50% !important;
    justify-content: center;
    background: transparent !important;
  }

  .apple-home-profile-name, .apple-home-profile-chevron {
    display: none !important; /* 只保留头像，隐藏名字和下拉箭头 */
  }

  .apple-home-profile-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }

  .apple-home-main-grid {
    grid-template-columns: 1fr !important;
  }

  .apple-home-kpi-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .apple-home-hr-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  .apple-home-hr-grid .apple-home-card {
    height: auto !important;
  }
  
  .apple-home-hr-grid .arco-card-body {
    padding: 12px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    position: relative;
  }
  
  .apple-home-hr-value {
    font-size: 24px !important;
    margin-bottom: 4px !important;
  }
  
  .apple-home-hr-grid > div > div > div:last-child {
    display: none !important; /* 隐藏图表区域，给手机端腾出空间 */
  }

  .apple-home-group-metrics {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  
  .apple-home-group-metrics > div {
    border: none !important;
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
    padding: 12px !important;
    align-items: center;
    text-align: center;
  }

  .apple-home-business-grid {
    grid-template-columns: 1fr !important;
  }

  .apple-home-group-header {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }
  
  .apple-home-group-title {
    font-size: 18px !important;
  }
  
  .apple-home-group-actions {
    width: auto !important;
    justify-content: flex-end;
  }
  
  .apple-home-btn-report {
    display: none !important;
  }
  
  .apple-home-group-date {
    color: #34C759 !important;
    font-size: 13px !important;
  }
  
  .apple-home-btn-report,
  .apple-home-btn-fullscreen {
    display: none !important;
  }

  .apple-home-card .arco-card-body,
  .apple-home-table-card .arco-card-body,
  .apple-home-side-card .arco-card-body,
  .apple-home-rank-card .arco-card-body {
    padding: 16px !important;
  }

  .apple-home-kpi-number {
    font-size: 28px !important;
  }

  .apple-home-metric-value {
    font-size: 26px !important;
  }
  
  .apple-home-dept-stat {
    font-size: 11px !important;
  }

  .apple-home-summary-title {
    font-size: 22px !important;
  }

  .apple-home-summary-text,
  .apple-home-summary-tip {
    display: none !important;
  }
  
  .apple-home-summary-head {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .apple-home-summary-meta {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .apple-home-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
    margin-top: 12px;
  }

  /* Modals */
  .apple-custom-modal {
    width: 90vw !important;
    max-height: 85vh !important;
    height: auto !important;
  }
  
  .apple-custom-modal-inner {
    flex-direction: column !important;
    overflow-y: auto !important;
  }

  .apple-settings-sidebar {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 16px !important;
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    gap: 8px;
  }

  .apple-settings-sidebar > div {
    white-space: nowrap;
    margin-bottom: 0 !important;
    padding: 6px 12px !important;
  }

  .apple-settings-content {
    padding: 16px !important;
  }

  /* Drawers */
  .arco-drawer-wrapper .arco-drawer {
    width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    height: 85vh !important;
    bottom: 0;
    top: auto !important;
  }
}

@media (max-width: 560px) {
  /* This block can be empty as 768px handles everything for mobile now */
}

.apple-home-table-card .arco-table-th,
.apple-home-table-card .arco-table-td {
  height: 64px !important;
  box-sizing: border-box;
  padding: 0 16px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apple-home-table-card .arco-table-th {
  background: var(--apple-home-surface-soft);
  color: var(--apple-home-subtle);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--apple-home-line) !important;
}

.apple-home-table-card .arco-table-td {
  border-bottom: 1px solid var(--apple-home-line) !important;
  font-size: 14px;
}

.apple-home-table-card .arco-table-th .arco-table-th-item {
  justify-content: center !important;
}

.apple-home-table-card .arco-table-td {
  vertical-align: middle !important;
}

.apple-home-table-card .arco-table-td.arco-table-operation,
.apple-home-table-card .arco-table-th.arco-table-operation {
  text-overflow: clip !important;
  overflow: visible !important;
}

/* Apple Segmented Control */
.apple-segmented-control {
  display: inline-flex;
  background: rgba(118, 118, 128, 0.12);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.apple-segmented-item {
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--apple-home-text);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-segmented-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.apple-segmented-item.is-active {
  background: #0071e3;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 113, 227, 0.24), 0 3px 1px rgba(0, 0, 0, 0.04);
}

/* Apple Status Tag */
.apple-status-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Animations for Modals */
@keyframes appleFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes appleScaleUp {
  from { 
    opacity: 0;
    transform: scale(0.95) translateY(10px); 
  }
  to { 
    opacity: 1;
    transform: scale(1) translateY(0); 
  }
}

/* Apple Native Alert Button */
.apple-alert-btn {
  transition: background-color 0.2s ease !important;
}
.apple-alert-btn:active {
  background-color: rgba(60, 60, 67, 0.1) !important;
}

@keyframes appleFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes appleSlideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes appleScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}



/* ========================================== */
/* 响应式：小于 1380px 时的侧边栏与顶部栏收缩效果 */
/* ========================================== */

.apple-home-layout {
  transition: grid-template-columns 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.apple-topbar-left {
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: auto; /* 移除固定宽度限制 */
  overflow: hidden;
  white-space: nowrap;
}

.apple-topbar-logo {
  flex-shrink: 0;
}

.apple-home-sidebar {
  transition: padding 0.4s cubic-bezier(0.25, 1, 0.5, 1), align-items 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.apple-home-sidebar-title {
  transition: font-size 0.3s;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.apple-home-nav-copy {
  transition: opacity 0.3s, max-width 0.3s, margin 0.3s;
  max-width: 200px;
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
}

.apple-home-sidebar-foot > div {
  transition: opacity 0.3s, max-width 0.3s, margin 0.3s;
  max-width: 200px;
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
}


  .apple-home-nav-item .developing-badge {
    position: static !important;
    transition: opacity 0.3s, max-width 0.3s, margin 0.3s;
    max-width: 60px;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
  }

@media (min-width: 769px) and (max-width: 1024px) {
  .apple-home-nav-item .developing-badge {
    display: none !important;
  }
  .apple-home-layout {
    grid-template-columns: 88px minmax(0, 1fr) !important;
  }
  
  .apple-topbar-left {
    width: auto; /* 恢复原宽度，不再强制缩窄为花环大小 */
  }

  .apple-home-sidebar {
    padding: 24px 12px;
    align-items: center;
    position: sticky !important;
    top: 72px !important;
    height: calc(100vh - 72px) !important;
  }
  
  .apple-home-sidebar-top {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 !important;
  }

  .apple-home-sidebar-title {
    font-size: 0 !important;
  }
  
  .apple-home-sidebar-title::after {
    content: "宇龙";
    font-size: 20px;
    display: block;
    text-align: center;
    font-weight: 600;
    color: var(--apple-text-1);
  }

  .apple-home-nav-item {
    justify-content: center;
    padding: 12px;
    gap: 0 !important;
  }
  .apple-home-nav-icon {
    margin: 0 auto;
    flex-shrink: 0;
  }

  .apple-home-nav-copy {
    display: none !important;
  }
  
  .apple-home-sidebar-foot {
    padding: 12px;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .apple-home-sidebar-foot::before {
    display: none !important;
  }

  .apple-home-sidebar-foot > div {
    opacity: 0;
    max-width: 0;
    margin: 0;
  }

  .apple-home-pulse {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .apple-home-nav-item {
    gap: 0 !important;
  }
}

/* ============================================================
   布局 / 导航 / 卡片 质感增强（设计精修 · 不改动 JS 逻辑）
   ============================================================ */

/* 顶栏：更通透的玻璃 + 分层阴影 */
.apple-topbar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 24px rgba(15, 23, 42, 0.05);
}

/* 侧边栏：更通透的玻璃质感 */
.apple-home-sidebar {
  background: rgba(246, 246, 249, 0.66);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border-right: 1px solid rgba(255, 255, 255, 0.6);
}

/* 导航激活态已在上方“导航项”区块统一定义（白卡 + 蓝色图标，无竖条、无图标背景） */
.apple-home-nav-item.is-active::before {
  display: none;
}

/* 导航项：精致的悬浮与按压反馈 */
.apple-home-nav-item {
  transition: background var(--apple-dur-fast) var(--apple-ease),
              color var(--apple-dur-fast) var(--apple-ease),
              transform var(--apple-dur-fast) var(--apple-ease),
              box-shadow var(--apple-dur-fast) var(--apple-ease);
}
.apple-home-nav-item:hover {
  background: rgba(15, 23, 42, 0.045);
  box-shadow: var(--apple-shadow-xs);
}
.apple-home-nav-item:active {
  transform: scale(0.975);
  background: rgba(15, 23, 42, 0.08);
}

/* 共享卡片：更精致的多层阴影 + 悬浮抬升 + 入场 */
.apple-home-card,
.apple-home-side-card,
.apple-home-rank-card {
  box-shadow: var(--apple-shadow);
  transition: transform var(--apple-dur) var(--apple-ease),
              box-shadow var(--apple-dur) var(--apple-ease);
  animation: appleCardEnter 0.55s var(--apple-ease) both;
}
.apple-home-card:hover,
.apple-home-side-card:hover,
.apple-home-rank-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--apple-shadow-lg);
}

/* KPI 网格：错峰入场 + 悬浮抬升 */
.apple-home-kpi-card {
  transition: transform var(--apple-dur) var(--apple-ease),
              box-shadow var(--apple-dur) var(--apple-ease);
  animation: appleCardEnter 0.5s var(--apple-ease) both;
}
.apple-home-kpi-grid > *:nth-child(1) { animation-delay: 0.04s; }
.apple-home-kpi-grid > *:nth-child(2) { animation-delay: 0.10s; }
.apple-home-kpi-grid > *:nth-child(3) { animation-delay: 0.16s; }
.apple-home-kpi-grid > *:nth-child(4) { animation-delay: 0.22s; }
.apple-home-kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--apple-shadow-lg);
}

/* KPI 数字：等宽数字，更紧字距 */
.apple-home-kpi-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
}

/* 侧边栏底部状态卡：更精致的层次 */
.apple-home-sidebar-foot {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), var(--apple-shadow-sm);
}

/* 面板 / 摘要标题：更紧的字距 */
.apple-home-panel-title,
.apple-home-summary-title {
  letter-spacing: -0.045em;
}

/* ============================================================
   第二轮精修：真实数据图表配套质感 + 高端协调
   ============================================================ */

/* 业务对比面板：与卡片体系一致的入场节奏 */
.apple-home-biz-compare {
  animation: appleCardEnter 0.6s var(--apple-ease) both;
}
.apple-home-biz-compare .arco-card-body {
  padding-bottom: 8px;
}

/* 数值统一等宽对齐，避免跳动、更显专业 */
.apple-home-hr-value,
.apple-home-metric-value {
  font-variant-numeric: tabular-nums;
}

/* 大屏 HR 卡片：强化与全局卡片一致的入场错峰与悬浮抬升 */
.apple-home-hr-grid .apple-home-card {
  animation: appleCardEnter 0.5s var(--apple-ease) both;
}
.apple-home-hr-grid > *:nth-child(1) { animation-delay: 0.04s; }
.apple-home-hr-grid > *:nth-child(2) { animation-delay: 0.10s; }
.apple-home-hr-grid > *:nth-child(3) { animation-delay: 0.16s; }
.apple-home-hr-grid > *:nth-child(4) { animation-delay: 0.22s; }

/* HR 重设计：2×2 网格（每张卡含真实部门级图表，精致 / 大气 / 协调） */
.apple-home-hr-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.apple-home-hr-grid2 > .apple-home-card {
  animation: appleCardEnter 0.5s var(--apple-ease) both;
  transition: transform 0.3s var(--apple-ease), box-shadow 0.3s var(--apple-ease);
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}
.apple-home-hr-grid2 > .apple-home-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}
/* 添加微妙的扫光动效 */
.apple-home-hr-grid2 > .apple-home-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: none;
  z-index: 10;
  pointer-events: none;
}
.apple-home-hr-grid2 > .apple-home-card:hover::before {
  animation: shine 1.2s forwards;
}
@keyframes shine {
  100% {
    left: 200%;
  }
}

.apple-home-hr-grid2 > *:nth-child(1) { animation-delay: 0.04s; }
.apple-home-hr-grid2 > *:nth-child(2) { animation-delay: 0.10s; }
.apple-home-hr-grid2 > *:nth-child(3) { animation-delay: 0.16s; }
.apple-home-hr-grid2 > *:nth-child(4) { animation-delay: 0.22s; }
.apple-home-hr-card-val { font-variant-numeric: tabular-nums; transition: color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: left center; }
.apple-home-hr-grid2 > .apple-home-card:hover .apple-home-hr-card-val { color: var(--apple-accent); transform: scale(1.05); }
.apple-home-hr-grid2 > .apple-home-card:hover .hr-card-icon-wrapper { transform: scale(1.1) rotate(5deg); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

@media (min-width: 761px) and (max-width: 1400px) {
  .apple-home-hr-grid2 { 
    grid-template-columns: 1fr !important; 
  }
  
  /* 在一行显示一个的情况下，增加图表的宽度权重，使排版更和谐 */
  .apple-home-hr-grid2 .hr-card-chart-wrapper {
    flex: 1 1 auto !important;
    min-width: 200px !important;
  }
}
@media (max-width: 760px) {
  .apple-home-hr-grid2 { 
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; 
    gap: 12px !important;
  }
  .apple-home-hr-card-val { font-size: 32px !important; }
  
  /* 手机端隐藏右侧的 ECharts 柱状图，让卡片更紧凑清爽 */
  .apple-home-hr-c2 .hr-card-chart-wrapper {
    display: none !important;
  }
  
  /* 手机端重新排列内容：图标居左，信息居右 */
  .apple-home-hr-c2 .arco-card-body {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 16px 14px 16px 42px !important; /* 进一步增加左侧 padding 为 42px */
    gap: 14px !important;
  }
  
  /* 手机端重置内部图标大小，使其更突出 */
  .apple-home-hr-c2 .hr-card-icon-wrapper {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }
  
  .apple-home-hr-c2 .hr-card-icon-wrapper svg {
    width: 22px !important;
    height: 22px !important;
  }

  /* 修复手机端数字放大动效原点，改为左侧对齐 */
  .apple-home-hr-card-val { 
    transform-origin: left center !important; 
    font-size: 32px !important;
  }
  
  .apple-home-hr-c2 .hr-card-info-wrapper {
    align-items: flex-start !important;
    width: auto !important;
    flex: 1 !important;
  }
  
  .apple-home-hr-c2 .hr-card-info-wrapper > div:first-child {
    font-size: 13px !important;
    margin-bottom: 2px !important;
  }

  .apple-home-hr-c2 .hr-card-info-wrapper > div:last-child {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
}

/* 面板 kicker：更克制的品牌强调色，统一视觉语言 */
.apple-home-panel-kicker {
  color: var(--apple-accent);
  letter-spacing: 0.14em;
}

/* ============================================================
   报表弹窗「查看报表」专属精修：精致排版 + 数据表可读性
   说明：仅视觉层打磨，Modal 结构 / 头部 / 表格列 格式不变
   ============================================================ */

/* 弹窗外壳：更克制的抬升阴影，呼应全局卡片质感 */
.apple-modal {
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18), 0 8px 24px rgba(15, 23, 42, 0.10) !important;
}

/* 弹窗头部：与全局面板语言一致，标题更紧的字距 */
.apple-modal .apple-home-panel-title {
  letter-spacing: -0.045em;
}
.apple-modal .apple-home-panel-kicker {
  letter-spacing: 0.14em;
}

/* 表格：统一字号，外层收敛圆角 */
.apple-modal .arco-table {
  font-size: 13.5px;
}
.apple-modal .arco-table-container {
  border-radius: 12px;
  overflow: hidden;
}

/* 表头：弱化底纹 + 紧致字距，明确区别于数据行 */
.apple-modal .arco-table-th {
  background: rgba(15, 23, 42, 0.025) !important;
  color: var(--apple-text-2, #515154) !important;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 13px 16px !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}
.apple-modal .arco-table-th:first-child {
  padding-left: 18px !important;
}

/* 数据单元格：舒适内边距 + 等宽数字（对齐、专业） */
.apple-modal .arco-table-td {
  padding: 12px 16px !important;
  color: var(--apple-text-1, #1D1D1F);
  border-color: rgba(15, 23, 42, 0.05) !important;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.15s var(--apple-ease, ease);
}
.apple-modal .arco-table-td:first-child {
  padding-left: 18px !important;
}

/* 斑马纹：极淡，仅作行级分组提示，不喧宾夺主 */
.apple-modal .arco-table-tr:nth-child(even) .arco-table-td {
  background: rgba(15, 23, 42, 0.018) !important;
}

/* 悬浮高亮：克制的品牌色反馈，提升可扫读性 */
.apple-modal .arco-table-tr:hover .arco-table-td {
  background: rgba(0, 113, 227, 0.05) !important;
}

/* 表格竖向滚动条：更内敛的细滚动条 */
.apple-modal .arco-table-body::-webkit-scrollbar {
  width: 8px;
}
.apple-modal .arco-table-body::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.16);
  border-radius: 8px;
}
.apple-modal .arco-table-body::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.28);
}
