/* Apple Pro White 极简设计体系 - 专为现场大屏演示打造 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --apple-bg: #FBFBFD;
  --apple-surface: #FFFFFF;
  --apple-card-bg: rgba(255, 255, 255, 0.92);
  --apple-border: rgba(0, 0, 0, 0.07);
  --apple-border-strong: rgba(0, 0, 0, 0.12);
  --apple-text-primary: #1D1D1F;
  --apple-text-secondary: #86868B;
  --apple-text-tertiary: #A1A1A6;
  --apple-blue: #0071E3;
  --apple-blue-hover: #0077ED;
  --apple-gold: #C9A253;
  --apple-gold-light: #E3C77F;
  --apple-gold-bg: rgba(201, 162, 83, 0.1);
  --apple-green: #34C759;
  --apple-green-bg: rgba(52, 199, 89, 0.12);
  --apple-red: #FF3B30;
  --apple-red-bg: rgba(255, 59, 48, 0.1);
  --apple-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --apple-shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  --apple-shadow-lg: 0 12px 36px -4px rgba(0, 0, 0, 0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--apple-bg);
  color: var(--apple-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 苹果官网顶级微光环境层 */
.apple-ambient-glow {
  background: 
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(201, 162, 83, 0.07), transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 15%, rgba(0, 113, 227, 0.04), transparent 60%),
    radial-gradient(ellipse 40% 30% at 15% 20%, rgba(52, 199, 89, 0.03), transparent 60%);
}

/* 苹果风微边框与多重景深毛玻璃卡片 */
.apple-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.02),
    0 8px 24px -4px rgba(0, 0, 0, 0.04);
  border-radius: 1.25rem;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.45s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, background 0.4s ease;
}

.apple-card-hover:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(0, 113, 227, 0.18) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 4px 14px rgba(0, 113, 227, 0.04),
    0 16px 36px -6px rgba(0, 0, 0, 0.07) !important;
}

/* 苹果香槟金与科技蓝渐变文字 */
.apple-gold-gradient {
  background: linear-gradient(135deg, #A88126 0%, #C9A253 50%, #946C18 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.apple-blue-gradient {
  background: linear-gradient(135deg, #0071E3 0%, #409CFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 苹果精工微缩功能组件容器 */
.apple-widget-panel {
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0.875rem;
}

.apple-glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--apple-border);
}

/* 按钮规范 */
.apple-btn-primary {
  background: var(--apple-blue);
  color: #FFFFFF;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}
.apple-btn-primary:hover {
  background: var(--apple-blue-hover);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
  transform: translateY(-1px);
}

.apple-btn-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #C9A253 100%);
  color: #FFFFFF;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(201, 162, 83, 0.3);
  transition: all 0.25s ease;
}
.apple-btn-gold:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 162, 83, 0.4);
}

.apple-btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  color: var(--apple-text-primary);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.apple-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

/* 标签样式 */
.badge-gold {
  background: rgba(201, 162, 83, 0.12);
  color: #A37C2C;
  border: 1px solid rgba(201, 162, 83, 0.28);
}

.badge-green {
  background: rgba(52, 199, 89, 0.12);
  color: #248A3D;
  border: 1px solid rgba(52, 199, 89, 0.25);
}

.badge-blue {
  background: rgba(0, 113, 227, 0.1);
  color: #0071E3;
  border: 1px solid rgba(0, 113, 227, 0.2);
}

.badge-red {
  background: rgba(255, 59, 48, 0.1);
  color: #D70015;
  border: 1px solid rgba(255, 59, 48, 0.22);
}

/* 呼吸灯效果 */
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 83, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(201, 162, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 83, 0); }
}

@keyframes pulseRed {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.pulse-green {
  animation: pulseGreen 2s infinite;
}

.pulse-gold {
  animation: pulseGold 1.8s infinite;
}

.pulse-red {
  animation: pulseRed 1.5s infinite;
}

/* 动效弹入 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 苹果顶级聚光微反光与光刃微边框跟随 (Spotlight & Specular Border) */
.apple-spotlight-card {
  position: relative;
  overflow: hidden;
}

.apple-spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(0, 113, 227, 0.06), rgba(255, 255, 255, 0.35) 35%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.apple-spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(0, 113, 227, 0.22), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.apple-spotlight-card:hover::before,
.apple-spotlight-card:hover::after {
  opacity: 1;
}

/* 苹果交错缓动进场 (Stagger Spring) */
@keyframes appleStaggerUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.apple-stagger-1 { animation: appleStaggerUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
.apple-stagger-2 { animation: appleStaggerUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both; }
.apple-stagger-3 { animation: appleStaggerUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.apple-stagger-4 { animation: appleStaggerUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.20s both; }
.apple-stagger-5 { animation: appleStaggerUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
.apple-stagger-6 { animation: appleStaggerUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both; }
.apple-stagger-7 { animation: appleStaggerUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }

/* 优雅滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.28);
}

/* 苹果白系中台侧边栏与二级Tabs规范 */
.apple-sidebar {
  width: 260px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-right: 1px solid var(--apple-border);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-sidebar.collapsed {
  margin-left: -260px;
}

.apple-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #48484A;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.apple-sidebar-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1D1D1F;
}

.apple-sidebar-item.active {
  background: #0071E3;
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.28);
}

.apple-sidebar-item.active i,
.apple-sidebar-item.active span {
  color: #FFFFFF !important;
}

.apple-sidebar-item.active .badge-tag {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
}

/* 顶部二级业务 Sub-Tabs (Apple 原生分段控制器 Segmented Control) */
#module-subtabs {
  background: rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding: 2.5px !important;
  border-radius: 9px !important;
  gap: 2px !important;
}

.apple-subtab-btn {
  padding: 3.5px 12px;
  border-radius: 6.5px;
  font-size: 12px;
  font-weight: 500;
  color: #6E6E73;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  user-select: none;
}

.apple-subtab-btn:hover {
  color: #1D1D1F;
}

.apple-subtab-btn.active {
  background: #FFFFFF !important;
  color: #1D1D1F !important;
  font-weight: 600 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0.5px 1px rgba(0, 0, 0, 0.08) !important;
}

