/* ==========================================================================
   天府智能绿化系统 — Apple Official Motion & Aesthetic Upgrade (apple-motion.css)
   汲取苹果官方网站 (apple.com) 与 macOS Sequoia / iOS 18 旗舰设计语言：
   1. 苹果阻尼弹性曲线群 (Apple Spring & Easing Physics)
   2. 卡片悬浮微动与双层漫射光晕 (Magnetic Hover Lift & Diffuse Shadow)
   3. 流体触感按压与流光反射 (Fluid Spring Button Press & Light Sheen)
   4. 生命体征同心脉冲雷达 (Breathing Life Status Radar)
   5. 视网膜级流光微渐变文字 (Apple Shimmer Gradient Typography)
   6. 图像景深悬停微缩放 (Image Depth Zoom)
   7. 表格聚光灯聚焦交互 (Table Spotlight Focus)
   8. Bento Box 便当盒非对称网格矩阵 (Apple Bento Matrix System)
   9. Apple 原生分段控制器 (Segmented Controls)
   10. 植物图鉴卡片流与双模视图 (Plant Gallery Card Flow)
   11. 极速侧边抽屉检视器 (Slide-over Quick Inspector)
   12. 交互式手风琴实景画廊 (Expanding Accordion Showcase)
   13. 灵动微胶囊状态流 (Dynamic Island Toast System)
   14. macOS 级超高斯毛玻璃 Sheet 模态 (Frosted Sheet Modal)
   ========================================================================== */

:root {
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-fluid: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-apple-ambient: 0 16px 36px -8px rgba(0, 0, 0, 0.07), 0 3px 12px -2px rgba(0, 0, 0, 0.03);
  --shadow-apple-hover: 0 24px 48px -12px rgba(0, 0, 0, 0.1), 0 6px 18px -3px rgba(0, 0, 0, 0.04);
  --shadow-apple-sheet: 0 30px 60px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --glass-ultra: rgba(255, 255, 255, 0.78);
  --glass-border: 1px solid rgba(0, 0, 0, 0.07);
  --glass-specular: inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
}

/* ---------- 1. 标题流光渐变质感 (Apple Event Style) ---------- */
.page-head-titles h1,
.screen-title h1,
.detail-name {
  background: linear-gradient(135deg, #1d1d1f 65%, #0066cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

/* ---------- 2. 页面背景柔光漫射光晕 (Ambient Glow) ---------- */
.page-head {
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 260px;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(0, 102, 204, 0.06), rgba(52, 199, 89, 0.04) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.page-head-inner {
  position: relative;
  z-index: 1;
}

/* ---------- 3. 卡片悬浮磁感微动 (Magnetic Hover Lift) ---------- */
.card,
.stat,
.detail-photo-card,
.detail-info-card,
.timeline-card,
.auth-card,
.bento-card,
.plant-card {
  transition: transform 0.45s var(--ease-apple),
              box-shadow 0.45s var(--ease-apple),
              border-color 0.35s ease,
              background-color 0.35s ease;
  will-change: transform, box-shadow;
}

.card:hover,
.stat:hover,
.detail-photo-card:hover,
.detail-info-card:hover,
.timeline-card:hover,
.auth-card:hover,
.bento-card:hover,
.plant-card:hover {
  transform: translateY(-4px) scale(1.003);
  box-shadow: var(--shadow-apple-ambient);
  border-color: rgba(0, 102, 204, 0.22);
}

/* 数据看板小卡片悬浮高亮 */
.stat,
.bento-card {
  position: relative;
  overflow: hidden;
}

.stat::after,
.bento-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat:hover::after,
.bento-card:hover::after {
  opacity: 1;
}

/* ---------- 4. 流体触感按压与光流扫过效果 (Fluid Button Interaction) ---------- */
.btn,
.btn-secondary,
.btn-pearl,
.page-btn,
.file-choose-btn,
.auth-btn-full,
.segmented-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-apple),
              box-shadow 0.3s var(--ease-apple),
              background-color 0.25s ease,
              color 0.2s ease,
              border-color 0.25s ease;
  will-change: transform;
}

.btn:hover,
.auth-btn-full:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(0, 102, 204, 0.25);
}

.btn-secondary:hover,
.btn-pearl:hover,
.file-choose-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* 按压瞬间回弹手感（还原 iOS / macOS 原生物理阻尼） */
.btn:active,
.btn-secondary:active,
.btn-pearl:active,
.page-btn:active:not(.disabled),
.file-choose-btn:active,
.auth-btn-full:active,
.segmented-btn:active {
  transform: scale(0.965);
  transition-duration: 0.12s;
}

/* 主按钮流光掠过 (Apple Light Sheen) */
.btn::after,
.auth-btn-full::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -80%;
  width: 45%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(28deg);
  pointer-events: none;
  opacity: 0;
}

.btn:hover::after,
.auth-btn-full:hover::after {
  left: 150%;
  opacity: 1;
  transition: left 0.85s ease-in-out, opacity 0.3s ease;
}

/* ---------- 5. 状态点雷达脉冲呼吸光波 (Breathing Life Pulse) ---------- */
.dot-leaf {
  position: relative;
  background: #34c759 !important;
}

.dot-leaf::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.5);
  animation: appleRadarPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes appleRadarPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  65% {
    transform: scale(2.6);
    opacity: 0;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* 琥珀金警示脉冲 */
.dot-warn-pulse {
  position: relative;
}
.dot-warn-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(255, 149, 0, 0.5);
  animation: appleWarnPulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}
@keyframes appleWarnPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  65% { transform: scale(2.5); opacity: 0; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ---------- 6. 图像景深微缩放 (Image Parallax Depth Zoom) ---------- */
.detail-photo-card,
.img-preview-box,
.plant-card-cover {
  overflow: hidden;
}

.detail-photo-img,
.img-preview-thumb,
.plant-card-cover img,
.data tbody tr td img {
  transition: transform 0.6s var(--ease-apple), filter 0.4s ease;
  will-change: transform;
}

.detail-photo-card:hover .detail-photo-img,
.plant-card:hover .plant-card-cover img {
  transform: scale(1.05);
}

.data tbody tr td img:hover {
  transform: scale(1.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

/* ---------- 7. 数据表格悬浮聚光灯效果 (Table Spotlight Focus) ---------- */
.data tbody tr {
  transition: background-color 0.2s ease, transform 0.2s var(--ease-apple);
}

.data tbody tr:hover {
  background-color: rgba(0, 102, 204, 0.038) !important;
}

/* ---------- 8. 养护时间轴呼吸节点与卡片动效 ---------- */
.timeline li::before {
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.timeline li:hover::before {
  transform: scale(1.5);
  box-shadow: 0 0 12px rgba(0, 113, 227, 0.65);
}

.timeline-tag {
  transition: transform 0.25s var(--ease-apple), filter 0.25s ease;
}

.timeline li:hover .timeline-tag {
  transform: translateY(-1.5px);
  filter: brightness(1.06);
}

/* ---------- 9. 滚动毛玻璃自适应导航加深 (Sticky Nav Tint) ---------- */
.sub-nav.is-stuck {
  background: rgba(245, 245, 247, 0.88) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.35s var(--ease-apple);
}

/* ==========================================================================
   全新核心架构扩展：BENTO MATRIX / SEGMENTED CONTROL / INSPECTOR / ACCORDION
   ========================================================================== */

/* ---------- 10. Apple Bento Matrix (便当盒非对称运营数据矩阵) ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-lg, 24px);
  margin-bottom: var(--sp-xl, 32px);
}

.bento-card {
  background: var(--canvas, #ffffff);
  border: var(--glass-border);
  box-shadow: var(--glass-specular), var(--shadow-sm);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

/* 响应式跨列 */
.bento-hero {
  grid-column: span 7;
  background: linear-gradient(145deg, #ffffff 60%, rgba(240, 248, 255, 0.8) 100%);
}

.bento-stat-crew {
  grid-column: span 5;
}

.bento-stat-log {
  grid-column: span 5;
}

.bento-alert {
  grid-column: span 7;
  background: linear-gradient(145deg, #ffffff 70%, rgba(255, 248, 235, 0.7) 100%);
}

.bento-weather {
  grid-column: span 6;
  background: linear-gradient(145deg, #ffffff 60%, rgba(230, 244, 255, 0.7) 100%);
}

.bento-phenology {
  grid-column: span 6;
  background: linear-gradient(145deg, #ffffff 60%, rgba(255, 250, 240, 0.8) 100%);
}

[data-theme="dark"] .bento-weather {
  background: linear-gradient(145deg, #1c1c1e 60%, rgba(0, 102, 204, 0.15) 100%) !important;
}

[data-theme="dark"] .bento-phenology {
  background: linear-gradient(145deg, #1c1c1e 60%, rgba(255, 149, 0, 0.12) 100%) !important;
}

@media (max-width: 960px) {
  .bento-hero,
  .bento-stat-crew,
  .bento-stat-log,
  .bento-alert,
  .bento-weather,
  .bento-phenology {
    grid-column: span 12;
  }
}

.bento-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bento-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted-48, #6a6a6f);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bento-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--surface-pearl, #fafafc);
  border: 1px solid var(--hairline, #e0e0e0);
  color: var(--ink-muted-48);
}

.bento-badge-success {
  background: rgba(52, 199, 89, 0.12);
  color: #1a7d38;
  border-color: rgba(52, 199, 89, 0.25);
}

.bento-badge-warn {
  background: rgba(255, 149, 0, 0.12);
  color: #b25000;
  border-color: rgba(255, 149, 0, 0.25);
}

.bento-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.bento-num-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.bento-num {
  font-family: var(--font-display, "SF Pro Display", sans-serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink, #1d1d1f);
}

.bento-unit {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-muted-48);
}

.bento-foot {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-muted-48);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 生态雷达微视觉环 (Live Health Radar Wave) */
.bento-radar {
  width: 72px;
  height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-radar svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.radar-circle-bg {
  fill: none;
  stroke: rgba(0, 102, 204, 0.1);
  stroke-width: 6;
}

.radar-circle-fill {
  fill: none;
  stroke: var(--primary, #0066cc);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 188;
  stroke-dashoffset: 28;
  transition: stroke-dashoffset 1.5s var(--ease-apple);
}

.bento-radar-icon {
  position: absolute;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
}

/* 头像叠堆与微动 (Avatars Stack) */
.avatar-stack {
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.avatar-item {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, #0066cc 0%, #34c759 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s var(--ease-spring), z-index 0.3s;
  cursor: default;
}

.avatar-item:hover {
  transform: translateY(-4px) scale(1.15);
  z-index: 10;
}

/* 标签云胶囊 (Pill Cloud) */
.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pill-item {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--surface-pearl, #fafafc);
  border: 1px solid var(--hairline, #e0e0e0);
  color: var(--ink-muted-80, #333333);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.pill-item:hover {
  background: rgba(0, 102, 204, 0.08);
  border-color: rgba(0, 102, 204, 0.3);
  transform: translateY(-1px);
}

/* ---------- 11. Apple 原生分段控制器 (Segmented Control) ---------- */
.segmented-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.segmented-control {
  display: inline-flex;
  position: relative;
  background: rgba(118, 118, 128, 0.12);
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  user-select: none;
  -webkit-user-select: none;
}

.segmented-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted-48, #6e6e73);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 9px;
  transition: color 0.25s ease, transform 0.15s ease;
}

.segmented-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.segmented-btn:hover {
  color: var(--ink, #1d1d1f);
}

.segmented-btn:hover svg {
  opacity: 1;
}

.segmented-btn.is-active {
  color: var(--ink, #1d1d1f);
  font-weight: 600;
}

.segmented-btn.is-active svg {
  opacity: 1;
  fill: var(--primary, #0066cc);
}

/* 滑动胶囊白色高亮背景指示块 (Apple Spring Glider) */
.segmented-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  z-index: 1;
  background: #ffffff;
  border-radius: 9px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 0.5px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* ---------- 12. 植物图鉴卡片流 (Plant Gallery Card Flow) ---------- */
.plant-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.plant-card {
  background: var(--canvas, #ffffff);
  border: 1px solid var(--hairline, #e0e0e0);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.plant-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--canvas-parchment, #f5f5f7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plant-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plant-card-cover-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted-48);
  font-size: 13px;
  gap: 6px;
}

.plant-tag-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink, #1d1d1f);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.plant-price-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.plant-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.plant-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink, #1d1d1f);
  margin-bottom: 6px;
}

.plant-card-meta {
  font-size: 12px;
  color: var(--ink-muted-48);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plant-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted-80);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.plant-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--divider-soft, #f0f0f0);
}

.plant-card-actions .actions-left {
  display: flex;
  gap: 8px;
}

.plant-card-actions .actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

/* 视图显示与隐藏控制 */
.view-mode-table .plant-gallery-grid {
  display: none !important;
}

.view-mode-gallery .table-card,
.view-mode-gallery .card:has(.table-wrap) {
  display: none !important;
}

.care-timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04) !important;
}

/* ---------- 13. 极速侧边抽屉检视器 (Slide-over Quick Inspector) ---------- */
.inspector-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-apple), visibility 0.35s;
}

.inspector-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.quick-inspector {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 460px;
  max-width: 92vw;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transform: translateX(105%);
  transition: transform 0.45s var(--ease-apple);
  display: flex;
  flex-direction: column;
}

.quick-inspector.is-open {
  transform: translateX(0);
}

.inspector-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
}

.inspector-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.inspector-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted-80);
  font-size: 18px;
  transition: background-color 0.2s, transform 0.2s;
}

.inspector-close:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: scale(1.08);
}

.inspector-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.inspector-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--canvas-parchment);
  margin-bottom: 20px;
  border: 1px solid var(--hairline);
}

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

.inspector-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.inspector-meta-item {
  background: var(--surface-pearl);
  border: 1px solid var(--hairline);
  padding: 12px;
  border-radius: 12px;
}

.inspector-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink-muted-48);
  margin-bottom: 4px;
}

.inspector-meta-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.inspector-desc-box {
  background: var(--surface-pearl);
  border: 1px solid var(--hairline);
  padding: 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted-80);
  margin-bottom: 24px;
}

.inspector-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* ---------- 14. 交互式手风琴园区实景画廊 (Expanding Accordion Showcase) ---------- */
.campus-accordion {
  display: flex;
  gap: 16px;
  width: 100%;
  height: 380px;
  margin-top: 24px;
}

.accordion-card {
  position: relative;
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.65s var(--ease-apple), box-shadow 0.45s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.accordion-card.is-active,
.accordion-card:hover {
  flex: 3.2;
  box-shadow: var(--shadow-apple-hover);
}

.accordion-card picture,
.accordion-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease-apple);
}

.accordion-card:hover img {
  transform: scale(1.05);
}

.accordion-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
  pointer-events: none;
}

.accordion-caption {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.accordion-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-apple), transform 0.4s var(--ease-apple);
  white-space: nowrap;
}

.accordion-card.is-active .accordion-desc,
.accordion-card:hover .accordion-desc {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .campus-accordion {
    flex-direction: column;
    height: auto;
  }
  .accordion-card {
    height: 160px;
    flex: none !important;
  }
  .accordion-desc {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 15. 灵动微胶囊状态流 2.0 (Dynamic Island Toast 2.0 with Spring) ---------- */
.dynamic-island-container {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dynamic-island-toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: scale(0.65, 0.5) translateY(-14px);
  transform-origin: center top;
  transition: opacity 0.35s ease,
              transform 0.46s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform, opacity;
}

.dynamic-island-toast.is-show {
  opacity: 1;
  transform: scale(1, 1) translateY(0);
}

.dynamic-island-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.dynamic-island-icon.success {
  background: #34c759;
  box-shadow: 0 0 10px rgba(52, 199, 89, 0.5);
}

.dynamic-island-icon.info {
  background: #0071e3;
  box-shadow: 0 0 10px rgba(0, 113, 227, 0.5);
}

.dynamic-island-icon.warn {
  background: #ff9500;
  box-shadow: 0 0 10px rgba(255, 149, 0, 0.5);
}

.dynamic-island-icon.danger {
  background: #ff3b30;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
}

.dynamic-island-text {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------- 16. macOS 风格超高斯毛玻璃 Sheet 模态 ---------- */
.confirm-backdrop {
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s var(--ease-apple);
}

.confirm-card {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(36px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: var(--shadow-apple-sheet) !important;
  border-radius: 20px !important;
  padding: 28px !important;
  width: 400px !important;
  max-width: 90vw !important;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-spring), opacity 0.25s ease;
}

.confirm-backdrop:not(.is-closing) .confirm-card {
  transform: scale(1);
}

.confirm-card h2 {
  font-size: 19px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  margin-bottom: 8px !important;
}

.confirm-card p {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--ink-muted-80) !important;
  margin-bottom: 24px !important;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-danger-solid {
  background: #ff3b30 !important;
  color: #ffffff !important;
  border: none !important;
}
.btn-danger-solid:hover {
  background: #e02d23 !important;
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.35) !important;
}

/* ---------- 17. 灵动返回顶部微胶囊 (Apple Back-to-Top Capsule) ---------- */
.apple-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  color: var(--ink, #1d1d1f);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 850;
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-apple),
              transform 0.35s var(--ease-spring),
              background-color 0.2s ease,
              box-shadow 0.25s ease;
  will-change: transform, opacity;
}

.apple-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.apple-back-to-top:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.06);
  color: var(--primary, #0066cc);
  transform: translateY(-2px) scale(1.04);
}

.apple-back-to-top svg {
  stroke: currentColor;
  transition: transform 0.25s var(--ease-spring);
}

.apple-back-to-top:hover svg {
  transform: translateY(-2px);
}

.apple-back-to-top:active {
  transform: translateY(0) scale(0.92);
  transition-duration: 0.12s;
}

@media (max-width: 640px) {
  .apple-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ---------- 全局导航项活跃高亮与深层毛玻璃 (Global Nav Active & Blur) ---------- */
.global-nav a.is-active {
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 12px !important;
  border-radius: 9999px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.22), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.global-nav.is-scrolled {
  background: rgba(22, 22, 23, 0.85) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.25);
}

.sub-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 0 0 var(--hairline);
}

/* ==========================================================================
   第二期精细化扩展：ACTIVITY RINGS / FILTER CHIPS / TEAM CARDS / GROUPED INSET / SPOTLIGHT
   ========================================================================== */

/* ---------- 18. Apple Watch Activity Rings (活动能量环) ---------- */
.apple-activity-card {
  background: var(--canvas, #ffffff);
  border: var(--glass-border);
  box-shadow: var(--glass-specular), var(--shadow-sm);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.rings-container {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.rings-svg-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.activity-rings-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke-width: 10;
  opacity: 0.18;
}

.ring-bar {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.6s var(--ease-apple);
}

/* 环 1：绿植健康率 (Emerald Green) */
.ring-outer-bg { stroke: #34c759; }
.ring-outer-bar {
  stroke: #34c759;
  stroke-dasharray: 301.6;
  stroke-dashoffset: 301.6;
}

/* 环 2：养护覆盖率 (Action Blue) */
.ring-mid-bg { stroke: #0066cc; }
.ring-mid-bar {
  stroke: #0071e3;
  stroke-dasharray: 226.2;
  stroke-dashoffset: 226.2;
}

/* 环 3：巡检达标率 (Amber Orange) */
.ring-inner-bg { stroke: #ff9500; }
.ring-inner-bar {
  stroke: #ff9500;
  stroke-dasharray: 150.8;
  stroke-dashoffset: 150.8;
}

.rings-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.ring-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-muted-80);
}

.ring-legend-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ring-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-ring-green { background: #34c759; box-shadow: 0 0 8px rgba(52, 199, 89, 0.4); }
.dot-ring-blue { background: #0071e3; box-shadow: 0 0 8px rgba(0, 113, 227, 0.4); }
.dot-ring-orange { background: #ff9500; box-shadow: 0 0 8px rgba(255, 149, 0, 0.4); }

/* ---------- 19. Apple Filter Chips (语义化微芯片筛选栏) ---------- */
.filter-chips-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.filter-chips-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  color: var(--ink-muted-80);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease-apple);
}

.filter-chip:hover {
  background: rgba(0, 0, 0, 0.09);
  color: var(--ink);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  background: var(--ink, #1d1d1f);
  color: #ffffff;
  border-color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.filter-chip-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  font-weight: 600;
}
.filter-chip:not(.is-active) .filter-chip-badge {
  background: rgba(0, 0, 0, 0.08);
}

/* ---------- 20. Apple Contacts Team Card Grid (员工团队花名册) ---------- */
.emp-card {
  background: var(--canvas, #ffffff);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-apple), box-shadow 0.4s ease, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.emp-card:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--shadow-apple-ambient);
  border-color: rgba(0, 102, 204, 0.25);
}

.emp-avatar-gradient {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s var(--ease-spring);
}

.emp-card:hover .emp-avatar-gradient {
  transform: scale(1.03);
}

.emp-card-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px 0;
}

.emp-card-id {
  font-size: 12px;
  color: var(--ink-muted-48);
  margin-bottom: 12px;
  font-family: var(--font-text);
}

.emp-card-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.emp-card-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--divider-soft);
  justify-content: center;
}

/* ---------- 21. macOS Settings Grouped Inset Forms (分组内嵌表单) ---------- */
.grouped-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted-48);
  margin: 24px 0 8px 12px;
}

.grouped-inset-card {
  background: var(--canvas, #ffffff);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.inset-row {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--divider-soft);
  gap: 16px;
  transition: background-color 0.2s ease;
}

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

.inset-row:focus-within {
  background-color: rgba(0, 102, 204, 0.025);
}

.inset-label {
  width: 110px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
}

.inset-control {
  flex-grow: 1;
}

.inset-control input[type="text"],
.inset-control input[type="search"],
.inset-control select,
.inset-control textarea {
  width: 100%;
  border: none !important;
  background: transparent !important;
  padding: 6px 0 !important;
  font-size: 14.5px !important;
  color: var(--ink) !important;
  outline: none !important;
  box-shadow: none !important;
}

.inset-control input::placeholder,
.inset-control textarea::placeholder {
  color: #a1a1a6;
}

.demo-fill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(0, 102, 204, 0.08);
  color: var(--primary);
  border: 1px solid rgba(0, 102, 204, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-fill-btn:hover {
  background: rgba(0, 102, 204, 0.15);
  transform: translateY(-1px);
}

/* ---------- 22. Apple Maps HUD Floating Panel (地图浮动高透舱) ---------- */
.map-hud-wrap {
  position: relative;
  width: 100%;
  height: calc(100vh - 120px);
  min-height: 580px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-apple-ambient);
  border: 1px solid var(--hairline);
}

.map-hud-panel {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 100;
  width: 320px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  padding: 18px;
}

.map-hud-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.map-hud-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.map-hud-stat-pill {
  flex: 1;
  background: rgba(0, 0, 0, 0.04);
  padding: 8px 10px;
  border-radius: 12px;
  text-align: center;
}

.map-hud-stat-pill strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
}

.map-hud-stat-pill span {
  font-size: 11px;
  color: var(--ink-muted-48);
}

/* ---------- 23. Apple ID Passkey Card (系统登录通行证) ---------- */
.apple-id-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  padding: 36px 32px;
}

.apple-id-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0066cc 0%, #34c759 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 26px;
  margin: 0 auto 18px auto;
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.28);
}

.apple-password-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-muted-48);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.apple-password-toggle:hover {
  color: var(--ink);
}

/* ---------- 24. Apple Spotlight Global Search (全局聚焦搜索) ---------- */
.spotlight-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-apple), visibility 0.25s;
}

.spotlight-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.spotlight-modal {
  width: 580px;
  max-width: 92vw;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
  border-radius: 20px;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease-spring);
}

.spotlight-backdrop.is-open .spotlight-modal {
  transform: scale(1);
}

.spotlight-search-bar {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  gap: 12px;
}

.spotlight-search-bar svg {
  color: var(--ink-muted-48);
  flex-shrink: 0;
}

.spotlight-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
}

.spotlight-shortcut-hint {
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink-muted-48);
  font-family: monospace;
}

.spotlight-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

.spotlight-group-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-muted-48);
  padding: 8px 12px 4px 12px;
  letter-spacing: 0.05em;
}

.spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.spotlight-item:hover,
.spotlight-item.is-selected {
  background: rgba(0, 102, 204, 0.08);
  color: var(--primary);
}

.spotlight-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spotlight-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  font-size: 12px;
}

.spotlight-item-name {
  font-size: 14.5px;
  font-weight: 500;
}

.spotlight-item-type {
  font-size: 12px;
  color: var(--ink-muted-48);
}

.spotlight-footer {
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--divider-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted-48);
}

/* 导航栏 Spotlight 胶囊按钮 */
.nav-spotlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.nav-spotlight-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.02);
}

.nav-spotlight-btn kbd {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  font-family: inherit;
}

/* ==========================================================================
   第三期细节修缮与动效升级：3D PARALLAX / FROSTED STICKY TABLE / WAVE SHIMMER / DEPTH RECESSION
   ========================================================================== */

/* ---------- 23. Apple 3D 物理微视差与漫射光斑跟随 (3D Parallax Tilt & Specular Sheen) ---------- */
.bento-card,
.plant-card,
.team-card,
.detail-photo-card {
  transform-style: preserve-3d;
  position: relative;
}

.bento-card::before,
.plant-card::before,
.team-card::before,
.detail-photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 280px at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(255, 255, 255, 0.4),
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.35s ease;
}

.bento-card:hover::before,
.plant-card:hover::before,
.team-card:hover::before,
.detail-photo-card:hover::before {
  opacity: 1;
}

.bento-card > *,
.plant-card-body,
.plant-card-cover {
  position: relative;
  z-index: 1;
}

/* ---------- 24. 数据表格细节修缮 (Sticky Frosted Header & Apple Action Pills) ---------- */
.table-wrap {
  position: relative;
  overflow-x: auto;
}

.data thead th {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  z-index: 5;
  box-shadow: inset 0 -1px 0 var(--hairline, rgba(0, 0, 0, 0.08));
}

.apple-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  min-height: 26px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary, #0066cc);
  background: rgba(0, 102, 204, 0.08);
  border-radius: 9999px;
  text-decoration: none !important;
  transition: all 0.22s var(--ease-apple);
  border: 1px solid transparent;
  line-height: 1.4;
}

.apple-action-pill:hover {
  background: var(--primary, #0066cc);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 102, 204, 0.25);
}

.apple-action-pill.danger {
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.08);
}

.apple-action-pill.danger:hover {
  background: #ff3b30;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(255, 59, 48, 0.25);
}

@media (max-width: 640px) {
  .plant-card-actions {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .plant-card-actions .actions-left,
  .plant-card-actions .actions-right {
    width: 100%;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
  }
  .plant-card-actions .btn {
    flex: 1;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
  }
  .table-wrap .actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  .apple-action-pill {
    padding: 6px 12px;
    min-height: 32px;
    font-size: 12px;
  }
}

/* ---------- 25. 一键填入教学演示数据波浪流光 (Data Wave Shimmer) ---------- */
.apple-shimmer-active {
  animation: appleFieldShimmer 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

@keyframes appleFieldShimmer {
  0% {
    background-color: rgba(0, 102, 204, 0.22);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.3);
    transform: scale(1.008);
  }
  50% {
    background-color: rgba(52, 199, 89, 0.15);
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.25);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
    transform: scale(1);
  }
}

/* 表单输入框聚焦光环强化 */
.inset-row input:focus,
.inset-row select:focus,
.inset-row textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary, #0066cc) !important;
  box-shadow: 0 0 0 3.5px rgba(0, 102, 204, 0.22) !important;
}

/* ---------- 26. 抽屉开启背景景深阻尼 (Modal Depth Recession) ---------- */
body.drawer-open #main,
body.drawer-open .page-head,
body.drawer-open .global-nav,
body.drawer-open .sub-nav {
  filter: blur(0.6px) brightness(0.97);
  transform: scale(0.992);
  transition: transform 0.4s var(--ease-apple), filter 0.4s ease;
}

/* ==========================================================================
   第四期极限体验与交互升华：DARK MODE / FLUID LIGHTBOX / INSTANT SEARCH / PRINT / SKELETON
   ========================================================================== */

/* ---------- 27. Apple 原生深色模式体系 (Native Dark Mode Theme Engine) ---------- */
[data-theme="dark"] {
  --canvas: #000000;
  --canvas-subtle: #0d0d0e;
  --canvas-parchment: #161618;
  --surface-card: #1c1c1e;
  --surface-pearl: #252528;
  --ink: #f5f5f7;
  --ink-muted-80: #e5e5ea;
  --ink-muted-48: #98989d;
  --hairline: rgba(255, 255, 255, 0.12);
  --divider-soft: rgba(255, 255, 255, 0.08);
  --shadow-apple-ambient: 0 16px 36px -8px rgba(0, 0, 0, 0.7);
  --shadow-apple-hover: 0 24px 48px -12px rgba(0, 0, 0, 0.85);
  --glass-ultra: rgba(28, 28, 30, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --surface-black: #121214;
}

[data-theme="dark"] body {
  background-color: #000000 !important;
  color: #f5f5f7 !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .detail-info-card,
[data-theme="dark"] .timeline-card,
[data-theme="dark"] .grouped-inset-card,
[data-theme="dark"] .plant-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .emp-card,
[data-theme="dark"] .care-timeline-card,
[data-theme="dark"] .bento-card,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .apple-id-card,
[data-theme="dark"] .detail-photo-card,
[data-theme="dark"] .panel,
[data-theme="dark"] .kpi,
[data-theme="dark"] .map-hud-panel {
  background: #1c1c1e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f5f5f7 !important;
}

[data-theme="dark"] .bento-num {
  color: #ffffff !important;
}

[data-theme="dark"] .segmented-control {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .segmented-indicator {
  background: #2c2c2e !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .segmented-btn {
  color: #a1a1a6 !important;
}

[data-theme="dark"] .segmented-btn.is-active {
  color: #ffffff !important;
}

[data-theme="dark"] .data thead th {
  background: rgba(28, 28, 30, 0.95) !important;
  color: #f5f5f7 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .data tbody tr td {
  color: #e5e5ea !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .data tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

[data-theme="dark"] .inset-row label {
  color: #a1a1a6 !important;
}

[data-theme="dark"] .inset-row input,
[data-theme="dark"] .inset-row select,
[data-theme="dark"] .inset-row textarea {
  color: #ffffff !important;
  background: #2c2c2e !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

[data-theme="dark"] .search-input {
  background: #1c1c1e !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

[data-theme="dark"] .spotlight-modal {
  background: rgba(28, 28, 30, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .spotlight-input {
  color: #ffffff !important;
}

[data-theme="dark"] .spotlight-item:hover,
[data-theme="dark"] .spotlight-item.is-selected {
  background: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .apple-back-to-top {
  background: rgba(44, 44, 46, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .sub-nav {
  background: rgba(28, 28, 30, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .sub-nav-title {
  color: #f5f5f7 !important;
}

[data-theme="dark"] .sub-nav-links a {
  color: #a1a1a6 !important;
}

[data-theme="dark"] .sub-nav-links a:hover,
[data-theme="dark"] .sub-nav-links a.is-active {
  color: #ffffff !important;
}

[data-theme="dark"] .spec-bento-item {
  background: #252528 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .health-pulse-card {
  background: #1c1c1e !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 导航栏主题切换微按钮 */
.nav-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s var(--ease-apple), background-color 0.2s ease;
}

.nav-theme-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.03);
}

.theme-icon-sun {
  display: none;
}
.theme-icon-moon {
  display: block;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}
[data-theme="dark"] .theme-icon-moon {
  display: none;
}

/* ---------- 28. 视网膜流体画廊 (Apple Fluid Image Lightbox) ---------- */
.apple-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-apple);
  padding: 24px;
}

.apple-lightbox-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.apple-lightbox-modal {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-lightbox-backdrop.is-open .apple-lightbox-modal {
  transform: scale(1);
}

.apple-lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 32px 72px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.apple-lightbox-caption {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}

.apple-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.apple-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.03);
}

.detail-photo-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 9999px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 5;
}

.detail-photo-card:hover .detail-photo-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 29. 搜索高亮与关键词标记 (Search Highlight Mark) ---------- */
.apple-highlight {
  background: rgba(255, 214, 10, 0.35);
  color: inherit;
  border-radius: 3px;
  padding: 1px 3px;
  font-weight: 600;
}

[data-theme="dark"] .apple-highlight {
  background: rgba(255, 214, 10, 0.45);
  color: #ffd60a;
}

/* ---------- 30. 骨架屏占位与优雅矢量破图兜底 ---------- */
.skeleton-shimmer {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 25%, rgba(0, 0, 0, 0.09) 50%, rgba(0, 0, 0, 0.05) 75%);
  background-size: 200% 100%;
  animation: appleSkeletonWave 1.6s infinite;
}

[data-theme="dark"] .skeleton-shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
}

@keyframes appleSkeletonWave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- 31. 高校规范级 A4 实验报告与档案专用打印引擎 ---------- */
@media print {
  @page {
    size: A4 portrait; /* 纸型：A4，纵向 (21.0cm × 29.7cm) */
    margin-top: 25mm;   /* 上边距：2.5厘米 */
    margin-bottom: 25mm;/* 下边距：2.5厘米 */
    margin-left: 30mm;  /* 左边距：3.0厘米 */
    margin-right: 30mm; /* 右边距：3.0厘米 */
  }

  html, body {
    font-family: "SimSun", "宋体", serif !important; /* 全文统一采用宋体 */
    font-size: 12pt !important;                     /* 正文：小四号（12pt），常规 */
    line-height: 1.0 !important;                    /* 单倍行距 */
    color: #000000 !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  code, pre, .code-font, .spec-value {
    font-family: Consolas, "Courier New", monospace !important; /* 代码与参数等宽字体 */
  }

  /* 字号层级严格规范 */
  .toc-title, .report-toc-title {
    font-size: 22pt !important;
    font-weight: bold !important;
    font-family: "SimSun", "宋体", serif !important;
  }
  h1, .print-h1, .page-head-titles h1, .detail-name {
    font-size: 16pt !important;
    font-weight: bold !important;
    font-family: "SimSun", "宋体", serif !important;
  }
  h2, .print-h2, .section-title, .timeline-header h2 {
    font-size: 14pt !important;
    font-weight: bold !important;
    font-family: "SimSun", "宋体", serif !important;
  }
  h3, .print-h3, .grouped-section-title {
    font-size: 12pt !important;
    font-weight: bold !important;
    font-family: "SimSun", "宋体", serif !important;
  }
  p, span, td, th, div, label, li {
    font-size: 12pt !important;
    font-weight: normal;
    line-height: 1.0 !important;
    font-family: "SimSun", "宋体", serif !important;
  }

  /* 打印时自动隐藏所有屏幕辅助交互组件 */
  .global-nav, .sub-nav, .site-footer, .nav-user-panel,
  .btn, .btn-row, .apple-back-to-top, .search-row,
  .segmented-wrap, .quick-inspector, .spotlight-backdrop,
  .health-pulse-card, .apple-lightbox-backdrop, .dynamic-island-container,
  .detail-photo-zoom-hint, .screen-clock, .live-status {
    display: none !important;
  }

  /* 打印报表表头与落款格式化 */
  .print-report-header {
    display: block !important;
    text-align: center;
    border-bottom: 2pt solid #000000;
    padding-bottom: 12pt;
    margin-bottom: 16pt;
  }

  .print-report-footer {
    display: flex !important;
    justify-content: space-between;
    margin-top: 24pt;
    padding-top: 8pt;
    border-top: 1pt solid #000000;
    font-size: 12pt !important;
  }

  /* 打印时卡片与表格呈现学术论文清爽线框 */
  .card, .detail-info-card, .timeline-card, .spec-bento-grid, .table-wrap {
    box-shadow: none !important;
    border: 1pt solid #000000 !important;
    border-radius: 0 !important;
    background: transparent !important;
    page-break-inside: avoid;
    margin-bottom: 12pt !important;
  }

  .data {
    border-collapse: collapse !important;
    width: 100% !important;
  }

  .data th, .data td {
    border: 1pt solid #000000 !important;
    padding: 6pt !important;
    color: #000000 !important;
  }
}

/* ==========================================================================
   第五期全场景微交互与工艺打磨：SAFARI PROGRESS / WATER RIPPLE / FOCUS / SHAKE / SORT / SHORTCUTS
   ========================================================================== */

/* ---------- 32. Safari 顶端流体加载进度条 (Safari Top Loading Bar) ---------- */
.apple-top-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #0071e3 0%, #34c759 100%);
  box-shadow: 0 0 10px rgba(0, 113, 227, 0.75);
  z-index: 10001;
  pointer-events: none;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  will-change: width, opacity;
}

/* ---------- 33. 水滴触觉微涟漪 (Water-Drop Ripple Micro-Physics) ---------- */
.apple-ripple-host {
  position: relative !important;
  overflow: hidden !important;
}

.apple-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  transform: scale(0);
  animation: appleRippleAnim 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="dark"] .apple-ripple {
  background: rgba(255, 255, 255, 0.25);
}

@keyframes appleRippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* 键盘双层呼吸焦点环 (Apple Focus-Visible Ring) */
:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px var(--canvas, #ffffff), 0 0 0 4.5px #0071e3 !important;
  transition: box-shadow 0.2s var(--ease-apple);
}

/* ---------- 34. 表单即时物理水平抖动 (Spring Shake Physics) ---------- */
@keyframes appleInputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.apple-shake {
  animation: appleInputShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
  border-color: #ff3b30 !important;
  box-shadow: 0 0 0 3.5px rgba(255, 59, 48, 0.25) !important;
}

/* ---------- 35. 数据表格列头即时排序与翻转箭头 (Sortable Tables) ---------- */
.data th.sortable {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.data th.sortable:hover {
  background: rgba(0, 102, 204, 0.08) !important;
  color: var(--primary, #0066cc) !important;
}

.sort-indicator {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  opacity: 0.35;
}

.sort-indicator.asc {
  opacity: 1;
  transform: rotate(0deg);
  color: var(--primary);
}

.sort-indicator.desc {
  opacity: 1;
  transform: rotate(180deg);
  color: var(--primary);
}

/* ---------- 36. 快捷键全览面板 (macOS Shortcuts Sheet) ---------- */
.apple-shortcuts-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-apple);
  padding: 20px;
}

.apple-shortcuts-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.apple-shortcuts-modal {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 32px 72px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 24px;
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-shortcuts-backdrop.is-open .apple-shortcuts-modal {
  transform: scale(1);
}

[data-theme="dark"] .apple-shortcuts-modal {
  background: rgba(28, 28, 30, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

.shortcuts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--divider-soft);
  padding-bottom: 12px;
}

.shortcuts-head h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--ink-muted-80);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .shortcut-row {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.shortcut-key-stack {
  display: inline-flex;
  gap: 4px;
}

.shortcut-key {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .shortcut-key {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* 导航栏辅助功能微图标按钮 */
.nav-icon-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  transition: transform 0.2s var(--ease-apple), background-color 0.2s ease;
}

.nav-icon-pill-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.03);
}

/* ---------- 37. Activity Rings 悬浮交互卡片 (Interactive Rings Tooltip) ---------- */
.rings-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(28, 28, 30, 0.94);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s var(--ease-apple), transform 0.25s var(--ease-apple);
  z-index: 100;
}

.rings-svg-wrap {
  position: relative;
}

.rings-svg-wrap:hover .rings-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

