/**
 * C&D ClotheWear 梦衣服饰 - FlClash 现代化 UI 风格引擎 (MD3 + Apple 连续曲率)
 * 移植自 FlClash 设计规范：三层表面景深、24px 连续大圆角、三重弥散阴影与呼吸脉冲
 */

/* FlClash 表面与弥散阴影规范 (DashboardShadows.e1) */
.fl-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.75);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02),
              0 6px 18px rgba(15, 23, 42, 0.04),
              0 20px 40px -8px rgba(15, 23, 42, 0.05);
  padding: 24px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.fl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03),
              0 10px 24px rgba(15, 23, 42, 0.06),
              0 28px 56px -12px rgba(15, 23, 42, 0.08);
}

/* FlClash 内嵌沉浸块 (SurfaceLevel.block) */
.fl-block {
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #edf2f7;
  padding: 16px;
  transition: all 0.18s ease;
}

.fl-block:hover {
  background: #f1f5f9;
}

/* FlClash 呼吸状态指示灯动效 */
.fl-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.fl-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
}

.fl-pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.45);
  animation: fl-pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes fl-pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(2.0); opacity: 0; }
  100% { transform: scale(2.0); opacity: 0; }
}

/* FlClash 等宽数字排版与标题规范 (Tabular Figures) */
.fl-figure {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.1;
}

.fl-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* FlClash 现代波形曲线容器 */
.fl-waveform-box {
  width: 100%;
  height: 64px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0.00) 100%);
}

.fl-waveform-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* FlClash 现代侧边栏选中胶囊优化 */
.sidebar-item {
  border-radius: 14px !important;
  margin-bottom: 4px !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sidebar-item.active {
  background: #2563eb !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

/* ========================================================
 * FlClash 核心美学规范注入 · 顶部多态智能服务中枢胶囊 (CoreStatusButton)
 * ======================================================== */
.fl-status-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.16s ease;
}

.fl-status-hub-btn:hover {
  background: #dcfce7;
  border-color: #86efac;
  box-shadow: 0 3px 10px rgba(22, 101, 52, 0.12);
}

.fl-status-hub-btn .status-hub-arrow {
  font-size: 9px;
  opacity: 0.6;
  margin-left: 2px;
}

/* 侧边栏动态徽标 (Sidebar NavigationRail Badges) */
.sidebar-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  line-height: 1.25;
  margin-left: auto;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
}

.sidebar-badge-warn {
  background: #f1f5f9;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  margin-left: auto;
}

.sidebar-badge-dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  margin-left: auto;
}

/* 分段式胶囊单选磁贴 (Segmented Tonal Chips) */
.fl-segmented-wrap {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
  border: 1px solid #e2e8f0;
}

.fl-segmented-item {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.14s ease;
  user-select: none;
}

.fl-segmented-item:hover {
  color: #1e293b;
}

.fl-segmented-item.is-active {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 手机高保真联动预览 · 快讯跑马灯 */
@keyframes pvMarqueeScroll {
  0%, 18% {
    transform: translateX(0);
  }
  82%, 100% {
    transform: translateX(calc(-100% + 170px));
  }
}

.pv-marquee {
  display: inline-block;
  white-space: nowrap;
  animation: pvMarqueeScroll var(--pv-scroll-dur, 6s) ease-in-out infinite alternate;
}
