/* @author lu */
/* ============================================
   大健康平台 - 组件样式
   自然绿色主题 + 深色/浅色模式适配
   ============================================ */

/* ---------- 通用液态玻璃面板 ---------- */
.glass-panel {
  background: linear-gradient(180deg, rgba(40,40,40,0.22) 0%, rgba(40,40,40,0.15) 100%);
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.20);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
}

html.light-theme .glass-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.40) 100%);
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.55);
  border-left: 1px solid rgba(255,255,255,0.38);
  border-right: 1px solid rgba(255,255,255,0.38);
  border-bottom: 1px solid rgba(255,255,255,0.22);
}

/* ============================================
   顶部导航（统一液态玻璃）
   ============================================ */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--header-height, 56px) + var(--safe-top, env(safe-area-inset-top, 0px)));
  padding: var(--safe-top, env(safe-area-inset-top, 0px)) 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 液态玻璃背景 */
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.0) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.app-header .btn-back {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 统一液态玻璃 */
  background: rgba(180,180,180,0.20);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.20);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 6px rgba(0,0,0,0.15);
}

.app-header .btn-back:active {
  transform: scale(0.92);
}

.app-header .page-title {
  font-size: 17px;
  font-weight: 600;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-primary);
}

.app-header .header-actions {
  display: flex;
  gap: 8px;
}

/* 浅色模式 app-header */
/* ============================================
   首页/入口页 Header（全透明，搜索栏独立玻璃）
   ============================================ */
.home-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  /* 顶部整体透明，不抢背景图/横幅视觉 */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

.home-header .search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 0 16px;
  height: 44px;
  /* 搜索栏：独立液态玻璃 / 毛玻璃（透明度 0.35） */
  background: rgba(30,30,35,0.35);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.40);
  border-left: 1px solid rgba(255,255,255,0.24);
  border-right: 1px solid rgba(255,255,255,0.24);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 8px 32px rgba(0,0,0,0.25),
    0 2px 8px rgba(0,0,0,0.15);
  color: rgba(255,255,255,0.98);
}

.home-header .search-bar .search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.95);
  flex-shrink: 0;
}

.home-header .search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255,255,255,0.98);
  font-size: 15px;
  flex: 1;
}

.home-header .search-bar input::placeholder {
  color: rgba(255,255,255,0.85);
}

/* 浅色模式 */
/* ============================================
   液态玻璃全局系统（参考 App Store Liquid Glass）
   纯 CSS 实现，不依赖底层采样，兼容性优先
   ============================================ */

/* 基础液态玻璃效果 */
.liquid-glass {
  /* 液态玻璃 + 毛玻璃：透明度 0.35、强模糊 */
  background: rgba(30,30,35,0.35);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  /* 玻璃边缘高光：顶部更亮，模拟光线折射 */
  border-top: 1px solid rgba(255,255,255,0.40);
  border-left: 1px solid rgba(255,255,255,0.24);
  border-right: 1px solid rgba(255,255,255,0.24);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  /* 悬浮阴影 */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 8px 32px rgba(0,0,0,0.25),
    0 2px 8px rgba(0,0,0,0.15);
  transition: color 0.25s ease, background 0.25s ease;
  /* 默认纯白文字 */
  color: rgba(255,255,255,1);
  --liquid-text: rgba(255,255,255,1);
  --liquid-text-secondary: rgba(255,255,255,0.60);
  text-shadow: 0 1px 4px rgba(0,0,0,0.75), 0 0 16px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
}

/* 玻璃表面反射高光（伪元素模拟） */
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.25) 35%,
    rgba(255,255,255,0.05) 50%,
    rgba(255,255,255,0.0) 55%,
    rgba(255,255,255,0.0) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* 玻璃底部折射微光 */
.liquid-glass::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 40%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ============================================
   液态玻璃文字颜色统一（不采样，固定色值）
   黑夜模式 → 白色文字 | 白天模式 → 黑色文字
   ============================================ */

/* 黑夜模式（默认）：白色文字 */
.liquid-glass,
.liquid-glass input,
.liquid-glass input::placeholder,
.liquid-glass .search-icon,
.liquid-glass .tab-label {
  color: inherit;
}
.liquid-glass .tab-item svg {
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
}
.liquid-glass input::placeholder {
  color: rgba(255,255,255,0.50);
}

/* 白天模式：黑色文字 */
/* 手动强制白天模式 */
html.light-theme .liquid-glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 4px 20px rgba(0,0,0,0.05),
    0 1px 3px rgba(0,0,0,0.03);
  color: rgba(0,0,0,0.95);
  text-shadow: none;
}
html.light-theme .liquid-glass input,
html.light-theme .liquid-glass input::placeholder,
html.light-theme .liquid-glass .search-icon,
html.light-theme .liquid-glass .tab-label {
  color: inherit;
}
html.light-theme .liquid-glass .tab-item svg {
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
}
html.light-theme .liquid-glass input::placeholder {
  color: rgba(0,0,0,0.45);
}
html.light-theme .liquid-glass::before {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.65) 30%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.0) 55%,
    rgba(255,255,255,0.0) 100%
  );
  opacity: 0.75;
}
html.light-theme .liquid-glass::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 40%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,0.25) 0%, transparent 70%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* 手动强制黑夜模式 */
html.dark-theme .liquid-glass {
  background: rgba(30,30,35,0.35);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  color: rgba(255,255,255,1);
  text-shadow: 0 1px 4px rgba(0,0,0,0.75), 0 0 16px rgba(0,0,0,0.45);
}
html.dark-theme .liquid-glass input,
html.dark-theme .liquid-glass input::placeholder,
html.dark-theme .liquid-glass .search-icon,
html.dark-theme .liquid-glass .tab-label {
  color: inherit;
}
html.dark-theme .liquid-glass .tab-item svg {
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
}
html.dark-theme .liquid-glass input::placeholder {
  color: rgba(255,255,255,0.50);
}

/* ============================================
   底部 TabBar（App Store 液态玻璃悬浮胶囊）
   ============================================ */
.tab-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 398px;
  padding: 6px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2px;
  border-radius: 40px;
  /* 液态玻璃 + 毛玻璃（透明度 0.35） */
  background: rgba(30,30,35,0.35);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.40);
  border-left: 1px solid rgba(255,255,255,0.24);
  border-right: 1px solid rgba(255,255,255,0.24);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 16px 48px rgba(0,0,0,0.35),
    0 6px 16px rgba(0,0,0,0.25);
  overflow: hidden;
}

/* 玻璃表面高光反射 */
.tab-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.50) 0%,
    rgba(255,255,255,0.20) 35%,
    rgba(255,255,255,0.04) 50%,
    rgba(255,255,255,0.00) 55%,
    rgba(255,255,255,0.00) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* 底部折射光 */
.tab-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 35%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.65);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 28px;
  font-size: 12px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.tab-item.active {
  color: rgba(255,255,255,1);
  text-shadow: 0 1px 4px rgba(0,0,0,0.70), 0 0 12px rgba(0,0,0,0.40);
}

.tab-item .tab-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(14px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
  display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}

.tab-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.tab-item.active svg {
  transform: translateY(-1px);
}

.tab-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 48px;
  border-radius: 28px;
  /* 活跃的指示器也用半透明玻璃质感 */
  background: linear-gradient(180deg, rgba(78,203,143,0.85) 0%, rgba(45,139,95,0.90) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.35),
    0 2px 8px rgba(45, 139, 95, 0.35);
  transition: left 0.3s cubic-bezier(0.22, 1, 0.36, 1), width 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
  will-change: left, width;
}

/* 浅色模式 TabBar */

/* 手动强制浅色模式 TabBar */
html.light-theme .tab-bar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 8px 28px rgba(0,0,0,0.06),
    0 2px 8px rgba(0,0,0,0.03);
}
html.light-theme .tab-item {
  color: rgba(0,0,0,0.55);
  text-shadow: none;
}
html.light-theme .tab-item.active {
  color: rgba(0,0,0,0.95);
  text-shadow: none;
}

/* 手动强制暗色模式 TabBar */
html.dark-theme .tab-item {
  color: rgba(255,255,255,0.55);
}
html.dark-theme .tab-item.active {
  color: rgba(255,255,255,1);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* ============================================
   课程卡片
   ============================================ */
.course-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-xl);
  margin-bottom: 10px;
  transition: transform 0.2s, opacity 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.course-card:active {
  background: linear-gradient(180deg, rgba(40,40,40,0.22) 0%, rgba(40,40,40,0.15) 100%);
  transform: scale(0.98);
}

.course-card .cover {
  width: 100px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-glass);
  flex-shrink: 0;
}

.course-card .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.course-card .title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.course-card .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.course-card .price {
  color: var(--danger);
  font-weight: 700;
}

.course-card .member-price {
  color: var(--warning);
  font-weight: 600;
}

.course-card .original-price {
  color: var(--text-tertiary);
  text-decoration: line-through;
  font-size: 12px;
}

/* 白天模式：与附近好店卡片背景色统一，同时保留液态玻璃特效 */
html.light-theme .course-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.35) 100%);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.85);
  border-left: 1px solid rgba(255,255,255,0.65);
  border-right: 1px solid rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 4px 20px rgba(0,0,0,0.06),
    0 1px 3px rgba(0,0,0,0.04);
}
html.light-theme .course-card:active {
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.28) 100%);
}

/* ============================================
   课程网格
   ============================================ */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.course-grid-item {
  /* 统一液态玻璃 */
  background: linear-gradient(180deg, rgba(40,40,40,0.22) 0%, rgba(40,40,40,0.15) 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.20);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.2s, opacity 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), 0 4px 16px rgba(0,0,0,0.18);
}

.course-grid-item:active {
  transform: scale(0.97);
}


.course-grid-item .cover {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--bg-glass);
}

.course-grid-item .info {
  padding: 10px;
}

.course-grid-item .title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-grid-item .price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

/* ============================================
   Banner
   ============================================ */
.banner-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 16px;
}

.banner-carousel .slide {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.banner-carousel .banner-placeholder {
  background: linear-gradient(135deg, #e8e8e8 0%, #f4f4f4 100%);
  border-radius: var(--radius-xl);
}

.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.banner-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: transform 0.2s, opacity 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.banner-dots .dot.active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

/* ============================================
   分类入口
   ============================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  border-radius: var(--radius-xl);
  padding: 16px;
}

@media (max-width: 360px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
  }
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  padding: 8px 0;
}

.category-item .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(180deg, rgba(40,40,40,0.22) 0%, rgba(40,40,40,0.15) 100%);
  border: 1px solid rgba(255,255,255,0.20);
  transition: transform 0.2s, opacity 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.22);
}

.category-item:active .icon-wrap {
  transform: scale(0.92);
  background: linear-gradient(180deg, rgba(40,40,40,0.22) 0%, rgba(40,40,40,0.22) 100%);
}

.category-item .name {
  font-size: 12px;
  color: var(--text-primary);
  text-shadow: 0 1px 3px rgba(0,0,0,0.50);
}

/* ============================================
   收益卡片
   ============================================ */
.income-card {
  /* 统一液态玻璃 */
  background: linear-gradient(180deg, rgba(40,40,40,0.22) 0%, rgba(40,40,40,0.15) 100%);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.20);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), 0 8px 32px rgba(0,0,0,0.18);
}


.income-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--border-glass) 0%, transparent 70%);
}

.income-card .label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.income-card .amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ============================================
   团队统计
   ============================================ */
.stats-row {
  display: flex;
  gap: 12px;
}

.stats-item {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  /* 统一液态玻璃 */
  background: linear-gradient(180deg, rgba(40,40,40,0.22) 0%, rgba(40,40,40,0.15) 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.20);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), 0 4px 16px rgba(0,0,0,0.18);
}


.stats-item .number {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stats-item .label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ============================================
   进度条
   ============================================ */
.progress-wrap {
  margin-bottom: 16px;
}

.progress-bar-bg {
  height: 8px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
}

/* ============================================
   Toast 提示 —— 更明显、带图标、可关闭
   ============================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  left: auto;
  transform: translateY(-20px);
  z-index: 11000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: calc(100% - 40px);
}

.toast-container.show {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(180deg, rgba(90, 90, 100, 0.45) 0%, rgba(60, 60, 70, 0.38) 100%);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.toast-success {
  background: linear-gradient(180deg, rgba(76, 217, 100, 0.72) 0%, rgba(52, 199, 89, 0.62) 100%);
  border-color: rgba(255, 255, 255, 0.32);
}

.toast-error {
  background: linear-gradient(180deg, rgba(255, 90, 80, 0.72) 0%, rgba(255, 59, 48, 0.62) 100%);
  border-color: rgba(255, 255, 255, 0.32);
}

.toast-info {
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.72) 0%, rgba(0, 122, 255, 0.62) 100%);
  border-color: rgba(255, 255, 255, 0.32);
}

.toast-warning {
  background: linear-gradient(180deg, rgba(255, 175, 50, 0.78) 0%, rgba(255, 149, 0, 0.68) 100%);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.toast-message {
  flex: 1 1 auto;
  text-align: left;
}

.toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close {
  margin-left: auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  line-height: 1;
  font-size: 18px;
}

.toast-close:hover {
  background: rgba(255,255,255,0.30);
}

html.light-theme .toast {
  color: #1c1c1e;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(245, 245, 247, 0.72) 100%);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.90),
    inset 0 -1px 0 rgba(0,0,0,0.04);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

html.light-theme .toast-success {
  background: linear-gradient(180deg, rgba(88, 220, 115, 0.78) 0%, rgba(52, 199, 89, 0.68) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

html.light-theme .toast-error {
  background: linear-gradient(180deg, rgba(255, 95, 85, 0.78) 0%, rgba(255, 59, 48, 0.68) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

html.light-theme .toast-info {
  background: linear-gradient(180deg, rgba(40, 140, 255, 0.78) 0%, rgba(0, 122, 255, 0.68) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

html.light-theme .toast-warning {
  background: linear-gradient(180deg, rgba(255, 180, 55, 0.82) 0%, rgba(255, 149, 0, 0.72) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

html.light-theme .toast-close {
  background: rgba(0, 0, 0, 0.08);
}

html.light-theme .toast-close:hover {
  background: rgba(0, 0, 0, 0.14);
}

@media (max-width: 767px) {
  .toast-container {
    top: 16px;
    left: 16px;
    right: 16px;
    align-items: stretch;
  }
  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
}

/* ============================================
   Modal 弹窗
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.01);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

html.light-theme .modal-overlay {
  background: rgba(0,0,0,0.30);
}

html.dark-theme .modal-overlay {
  background: rgba(0,0,0,0.30);
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

.modal-sheet {
  width: 100%;
  max-width: 430px;
  background: rgba(30, 30, 30, 0.45);
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.15);
  border-right: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20), 0 -8px 32px rgba(0,0,0,0.35);
}

.modal-overlay.show .modal-sheet {
  transform: translateY(0);
}

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

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 统一液态玻璃 */
  background: rgba(180,180,180,0.20);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.20);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 6px rgba(0,0,0,0.10);
}

/* ============================================
   Cart Panel 购物车底部弹层（美团式）
   ============================================ */
.cart-panel-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.01);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cart-panel-overlay.show {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}
.cart-panel-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  background: var(--bg-body);
  border-top: 1px solid var(--border-glass);
  border-left: 1px solid var(--border-glass);
  border-right: 1px solid var(--border-glass);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -12px 48px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
}
.cart-panel-overlay.show .cart-panel-sheet {
  transform: translateY(0);
}
.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.cart-panel-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.cart-panel-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
}
.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 24px;
  min-height: 0;
}
.cart-panel-select-all {
  display: flex;
  align-items: center;
  padding: 8px 0 16px;
  font-size: 15px;
  color: var(--text-secondary);
}
.cart-panel-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}
.cart-panel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}
.cart-panel-item img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}
.cart-panel-item .cart-checkbox,
.cart-panel-select-all .cart-checkbox {
  flex-shrink: 0;
  cursor: pointer;
}
.cart-panel-item-info {
  flex: 1;
  min-width: 0;
}
.cart-panel-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-panel-item-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--warning);
}
.cart-panel-item-delete {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,59,48,0.15);
  color: var(--danger);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  flex-shrink: 0;
}
.cart-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}
.cart-panel-total {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.cart-panel-total span {
  color: var(--warning);
  font-size: 20px;
}
.cart-panel-actions {
  display: flex;
  gap: 12px;
}
.cart-panel-actions .btn {
  padding: 12px 22px;
  font-size: 15px;
}

@media (min-width: 768px) {
  .cart-panel-sheet {
    max-width: 560px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
}

/* ============================================
   Confirm 确认框（iOS 26 液态玻璃）
   ============================================ */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.confirm-overlay.show {
  opacity: 1;
}

.confirm-modal {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(180deg, rgba(50,50,50,0.60) 0%, rgba(35,35,35,0.45) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.40);
  border-left: 1px solid rgba(255,255,255,0.25);
  border-right: 1px solid rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.40), inset 0 1px 1px rgba(255,255,255,0.18);
  padding: 28px 24px 20px;
  text-align: center;
  transform: scale(0.88);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.confirm-overlay.show .confirm-modal {
  transform: scale(1);
}

.confirm-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.confirm-modal-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.confirm-modal-input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 24px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

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

html.light-theme .confirm-modal-input {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.08);
}

.confirm-modal-actions {
  display: flex;
  gap: 10px;
}

.confirm-modal-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.confirm-modal-cancel {
  background: rgba(120,120,120,0.22);
  color: var(--text-primary);
  border-top: 1px solid rgba(255,255,255,0.18);
  border-left: 1px solid rgba(255,255,255,0.10);
  border-right: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.confirm-modal-cancel:active {
  transform: scale(0.95);
  background: rgba(120,120,120,0.32);
}

.confirm-modal-confirm {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(45,139,95,0.35);
}

.confirm-modal-confirm:active {
  transform: scale(0.95);
  opacity: 0.9;
}

html.light-theme .confirm-overlay {
  background: rgba(0,0,0,0.35);
}

html.light-theme .confirm-modal {
  background: linear-gradient(180deg, rgba(255,255,255,0.80) 0%, rgba(255,255,255,0.65) 100%);
  border-top: 1px solid rgba(255,255,255,0.60);
  border-left: 1px solid rgba(255,255,255,0.42);
  border-right: 1px solid rgba(255,255,255,0.42);
  border-bottom: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 24px 48px rgba(0,0,0,0.18), inset 0 1px 1px rgba(255,255,255,0.30);
}

html.light-theme .confirm-modal-cancel {
  background: rgba(180,180,180,0.30);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.20);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

html.light-theme .confirm-modal-confirm {
  box-shadow: 0 4px 16px rgba(45,139,95,0.25);
}

/* ============================================
   店铺卡片
   ============================================ */
.shop-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  /* 统一液态玻璃 */
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(20px) saturate(130%) brightness(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(130%) brightness(1.05);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.20);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, opacity 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.22), 0 8px 32px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.shop-card:active {
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%);
  backdrop-filter: blur(20px) saturate(130%) brightness(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(130%) brightness(1.05);
  transform: scale(0.98);
}


.shop-card .cover {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-glass);
  flex-shrink: 0;
}

.shop-card .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.shop-card .name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.shop-card .address {
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 6px;
}

.shop-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.shop-card .hours {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.shop-card .tag {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  background: linear-gradient(180deg, rgba(45,139,95,0.05) 0%, rgba(45,139,95,0.03) 100%);
  color: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.20);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.22);
}

/* ============================================
   PC 端顶部导航
   ============================================ */
.pc-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  height: 64px;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-light);
}

.pc-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pc-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pc-nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 16px;
}

.pc-nav-link {
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  padding: 8px 0;
}

.pc-nav-link:hover, .pc-nav-link.active {
  color: var(--primary-light);
}

.theme-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.05);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.theme-toggle .icon-sun { opacity: 1; transform: scale(1); }
.theme-toggle .icon-moon { opacity: 0; transform: scale(0.8); }
html.dark-theme .theme-toggle .icon-sun,
html.light-theme .theme-toggle .icon-sun { opacity: 0; transform: scale(0.8); }
html.dark-theme .theme-toggle .icon-moon,
html.light-theme .theme-toggle .icon-moon { opacity: 1; transform: scale(1); }
html.light-theme .theme-toggle {
  border-color: rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.75);
}
html.light-theme .theme-toggle:hover {
  background: rgba(0,0,0,0.10);
}

/* 一期暂不交付的营销功能统一隐藏 */
.marketing-feature,
.pc-nav-link.marketing-feature,
.tab-item.marketing-feature,
.list-item.marketing-feature {
  display: none !important;
}

/* ---------- 底部操作栏（移动端基础样式） ---------- */
.action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: transparent;
  border-top: none;
  pointer-events: none;
  display: flex;
  gap: 12px;
}
.action-bar > * { pointer-events: auto; }
.action-bar .btn { flex: 1; }
.action-bar .action-info {
  display: flex;
  align-items: center;
  margin-right: auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.action-bar.centered { justify-content: center; }
.action-bar.centered .btn { flex: 0 1 auto; min-width: 280px; }

/* 移动端同时有 TabBar 和底部操作栏时，操作栏上移避免重叠 */
@media (max-width: 767px) {
  body.has-tab-bar .page-content {
    padding-bottom: 96px !important;
  }
  body.has-tab-bar:has(.action-bar) .action-bar {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  body.has-tab-bar:has(.action-bar) .page-content {
    padding-bottom: 160px !important;
  }

  /* 底部操作栏按钮过多时允许换行，并保证最小点击区域 */
  .action-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .action-bar .btn {
    flex: 1 1 auto;
    min-width: 80px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
  }
  .action-bar .action-info {
    flex: 1 1 auto;
    margin-right: auto;
    margin-bottom: 0;
    font-size: 16px;
    justify-content: flex-start;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .action-bar .btn-icon {
    flex: 0 0 44px;
    min-width: 44px;
    padding: 0;
  }
  /* 详情页次要按钮（收藏/评价）在窄屏下优先收缩换行 */
  .action-bar .marketing-feature {
    flex: 0 1 auto;
    min-width: 60px;
    font-size: 13px;
  }
  /* 375px 以下详情页行动栏：次要操作折叠到第二行 */
  @media (max-width: 375px) {
    .action-bar .marketing-feature {
      order: 99;
      flex: 1 1 calc(50% - 4px);
      max-width: calc(50% - 4px);
    }
  }
  /* 居中行动栏在移动端全宽 */
  .action-bar.centered {
    justify-content: center;
  }
  .action-bar.centered .btn {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

/* 浮动购物车按钮 */
.cart-fab {
  position: fixed;
  right: 16px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 110;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent, #2ddc78);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
  padding: 0;
}
.cart-fab:active {
  transform: scale(0.94);
}
.cart-fab svg {
  width: 26px;
  height: 26px;
}
.cart-fab .cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #ff3b30;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ============================================
   PC 端响应式适配 — iOS 26 液态玻璃风格
   ============================================ */
@media (min-width: 768px) {
  .cart-fab {
    right: calc(50% - 480px + 16px);
    bottom: 100px;
  }
  /* PC端渐变背景 */
  html {
    background: linear-gradient(160deg, #f0f2f5 0%, #e8ebf0 50%, #f5f7fa 100%);
  }
  html.dark-theme {
    background: linear-gradient(160deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  }
  body {
    background: transparent;
  }

  /* PC 端内容区卡片化：圆角、背景、阴影 */
  .page-content {
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    background: var(--bg-body);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    min-height: calc(100vh - 40px);
  }
  html.dark-theme .page-content {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  /* 顶部导航铺满全屏，内容居中 */
  .app-header,
  .pc-nav {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    max-width: none !important;
    width: 100% !important;
  }
  /* 已有统一 PC 顶部导航的页面，在 PC 端隐藏返回式 app-header，避免重叠 */
  body.has-pc-nav .app-header {
    display: none !important;
  }
  /* 有底部 TabBar 的页面，确保内容区留出底部安全距离 */
  body.has-tab-bar .page-content {
    padding-bottom: 96px !important;
  }
  /* 其他固定元素限制宽度并居中 */
  .tab-bar,
  .category-tabs,
  .home-header {
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 960px !important;
    width: 100% !important;
    right: auto !important;
  }

  /* .app-header 液态玻璃 */
  .app-header {
    top: 0 !important;
    height: 56px;
    padding: 0 24px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(255,255,255,0.35);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), 0 4px 24px rgba(0,0,0,0.08);
  }

  /* .pc-nav 液态玻璃 */
  .pc-nav {
    display: block;
    top: 0;
    height: 64px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(255,255,255,0.35);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), 0 4px 24px rgba(0,0,0,0.08);
  }

  /* 白天模式覆盖（高特异性） */
  html.light-theme body .app-header,
  html.light-theme body .pc-nav {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(255,255,255,0.35);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), 0 4px 24px rgba(0,0,0,0.08);
  }

  /* 黑夜模式覆盖 */
  html.dark-theme body .app-header,
  html.dark-theme body .pc-nav {
    background: rgba(30,30,40,0.60);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 4px 24px rgba(0,0,0,0.3);
  }

  .app-header .page-title {
    font-size: 18px;
  }
  .home-header {
    display: none;
  }

  .tab-bar {
    display: none;
  }

  /* 统一内容区顶部间距，避开固定导航 */
  main.page-content,
  .page-content {
    padding-top: 96px !important;
  }

  /* 首页在 PC 端仍显示顶部搜索栏 */
  .home-page .home-header {
    display: block !important;
    top: 64px;
  }
  .home-page .page-content {
    padding-top: 132px !important;
  }

  /* PC 端分类标签默认顶部横向展示，与各模块间距统一为 16px */
  .category-tabs {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    max-width: 960px !important;
    width: 100% !important;
    margin: 16px auto !important;
    padding: 0 !important;
    background: transparent;
  }
  main.page-content:has(.category-tabs),
  .page-content:has(.category-tabs) {
    padding-top: 64px !important;
  }

  /* 课程页单独使用左侧边栏 */
  .page-content:has(.course-layout) {
    padding-top: 64px !important;
  }
  .course-layout {
    display: block;
    position: relative;
    padding-top: 16px;
  }
  /* PC 端左侧分类标签固定不滚动 */
  .course-layout .category-tabs {
    position: fixed !important;
    top: 80px;
    width: 160px !important;
    max-width: 160px !important;
    margin: 0 !important;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0;
    background: transparent;
    right: auto !important;
    transform: none !important;
  }
  .course-layout .course-main {
    margin-left: 184px; /* 160px 边栏 + 24px 间距 */
  }
  .course-layout .course-list {
    width: 100%;
  }
  .course-layout .category-tab {
    width: 100%;
    text-align: center;
  }

  /* 窄 PC：容器贴边，边栏位于 64px 处 */
  @media (max-width: 959px) {
    .course-layout .category-tabs {
      left: 64px;
    }
  }
  /* 宽 PC：容器居中，边栏跟随容器左侧 */
  @media (min-width: 960px) {
    .course-layout .category-tabs {
      left: calc((100vw - 960px) / 2 + 32px);
    }
  }

  /* PC 端底部操作栏居中 */
  .action-bar {
    left: 50%;
    transform: translateX(-50%);
    max-width: 960px;
    width: calc(100% - 48px);
    right: auto;
    bottom: 16px;
  }

  /* 没有 .container 的内页，PC 端自动居中 */
  .page-content:not(:has(.container)) {
    max-width: 960px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
  }

  /* 详情页封面图 */
  .cover-img {
    border-radius: var(--radius-xl);
    height: 320px;
  }
  .detail-body,
  .shop-info {
    padding-top: 16px;
  }

  /* 内页居中卡片 */
  .member-card,
  .order-card,
  .income-card {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .course-card {
    padding: 16px;
    margin-bottom: 12px;
  }
  .course-card .cover {
    width: 140px;
    height: 90px;
  }
  .course-card .title {
    font-size: 16px;
  }

  .course-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .course-grid-item .title {
    font-size: 15px;
  }

  .category-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  .category-item .icon-wrap {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
  .category-item .name {
    font-size: 14px;
  }

  .shop-card {
    padding: 16px;
    margin-bottom: 12px;
  }
  .shop-card .cover {
    width: 100px;
    height: 100px;
  }
  .shop-card .name {
    font-size: 17px;
  }
  .shop-card .address {
    font-size: 14px;
  }

  .banner-carousel {
    margin-bottom: 20px;
  }
  .banner-carousel .slide {
    width: 100%;
    height: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
    border-radius: var(--radius-xl);
    display: block;
  }

  .stats-item {
    padding: 20px 12px;
  }
  .stats-item .number {
    font-size: 28px;
  }
  .stats-item .label {
    font-size: 13px;
  }

  .income-card {
    padding: 28px;
  }
  .income-card .amount {
    font-size: 40px;
  }

  .modal-sheet {
    max-width: 500px;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
  }
}

/* ========== shops.html extracted styles ========== */
.shop-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shop-list .shop-card {
  margin-bottom: 0;
}
.shop-item {
  display: flex;
  gap: 12px;
  background: linear-gradient(180deg, rgba(40,40,40,0.22) 0%, rgba(40,40,40,0.15) 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.20);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.22), 0 8px 32px rgba(0,0,0,0.15);
  border-radius: var(--radius-md);
  padding: 12px;
  text-decoration: none;
  color: var(--text-primary);
}
.shop-item .cover {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.shop-item .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.shop-item .name {
  font-size: 16px;
  font-weight: 600;
}
.shop-item .address {
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-item .hours {
  font-size: 12px;
  color: var(--text-tertiary);
}
.shop-item .tags {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.shop-item .tag {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  background: linear-gradient(180deg, rgba(45,139,95,0.05) 0%, rgba(45,139,95,0.03) 100%);
  color: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.20);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.22);
}

/* ========== courses.html extracted styles ========== */
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  scrollbar-width: none;
  position: fixed;
  top: calc(68px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 90;
  background: transparent;
}
.category-tabs::-webkit-scrollbar { display:none; }
.category-tab {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, rgba(30,30,30,0.45) 0%, rgba(30,30,30,0.35) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.45);
  border-left: 1px solid rgba(255,255,255,0.28);
  border-right: 1px solid rgba(255,255,255,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.30), 0 8px 32px rgba(0,0,0,0.15);
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 3px rgba(0,0,0,0.60);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.category-tab.active {
  background: linear-gradient(180deg, rgba(45,139,95,0.50) 0%, rgba(45,139,95,0.40) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: rgba(78,203,143,0.5);
  box-shadow: inset 0 1px 1px rgba(78,203,143,0.25), 0 8px 32px rgba(0,0,0,0.15);
  color: rgba(255,255,255,0.98);
  text-shadow: 0 1px 3px rgba(0,0,0,0.50);
}

/* iOS 风格开关 */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(120,120,128,0.35);
  border-radius: 26px;
  transition: background .2s ease;
}
.switch .slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.switch input:checked + .slider {
  background: var(--primary, #4ecb8c);
}
.switch input:checked + .slider::before {
  transform: translateX(18px);
}
html.light-theme .switch .slider {
  background: rgba(0,0,0,0.22);
}
html.light-theme .switch input:checked + .slider {
  background: var(--primary, #4ecb8c);
}

.course-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.course-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
}
.course-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  z-index: 2;
  pointer-events: none;
}
.course-item .cover-wrap {
  position: relative;
  padding-top: 60%;
}
.course-item .cover-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-item .info {
  padding: 10px;
}
.course-item .title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
}
.course-item .lecturer {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.course-item .price-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.course-item .member-price {
  color: var(--warning);
  font-weight: 700;
  font-size: 15px;
}
.course-item .member-free {
  color: var(--success);
  font-weight: 700;
  font-size: 14px;
  background: rgba(45, 220, 120, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.course-item .original-price {
  color: var(--text-tertiary);
  font-size: 12px;
  text-decoration: line-through;
}

@media (min-width: 1024px) {
  .app-header {
    height: 72px;
    padding: 0 32px;
  }

  .course-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .category-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .shop-card .cover {
    width: 120px;
    height: 120px;
  }
}


/* ========== user.html extracted styles ========== */
.user-header {
  padding: 24px 16px;
  margin-bottom: 16px;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45,139,95,0.3), rgba(78,203,143,0.2));
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.20);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.22), 0 8px 32px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.user-meta h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.user-meta .tags {
  display: flex;
  gap: 6px;
}
.vip-tag {
  background: linear-gradient(180deg, rgba(232,154,60,0.08) 0%, rgba(200,120,40,0.05) 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  color: var(--warning);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.20);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.22);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.partner-tag {
  background: linear-gradient(180deg, rgba(175,82,222,0.08) 0%, rgba(130,50,180,0.05) 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  color: var(--purple);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.20);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.22);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.stats-bar {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.stats-bar .glass-card {
  flex: 1;
  text-align: center;
  margin-bottom: 0;
  padding: 14px 8px;
}
.stats-bar .num {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.stats-bar .label {
  font-size: 12px;
  color: var(--text-secondary);
}
.menu-section {
  margin-bottom: 16px;
}
.menu-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding: 0 4px;
}

/* ========== index.html extracted styles ========== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title h2 {
  font-size: 18px;
  font-weight: 700;
}
.section-title a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.section-title a:hover {
  color: var(--primary-light);
}
.section-title a:active {
  opacity: 0.7;
}
.vip-banner {
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vip-banner .info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.vip-banner .info p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
html.light-theme .vip-banner .info p {
  color: rgba(0,0,0,0.65);
}
.vip-banner .btn {
  min-width: 96px;
  padding: 0 20px;
  white-space: nowrap;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-primary);
  text-shadow: 0 1px 3px rgba(0,0,0,0.40);
}
.category-item .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.category-item .name {
  font-size: 12px;
  color: var(--text-secondary);
}


/* banner-slides from index.html body style */
.banner-slides {
  position: relative;
  width: 100%;
  display: flex;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.banner-slides .slide {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 1;
  transition: none;
  pointer-events: auto;
}


/* =====================================================
   Light Theme Overrides (auto-generated from @media)
   ===================================================== */

  html.light-theme .app-header {
    background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.0) 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  html.light-theme .app-header .btn-back {
    background: rgba(0,0,0,0.10);
    border: 1px solid rgba(0,0,0,0.12);
  }
  html.light-theme .home-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
  }
  html.light-theme .home-header .search-bar {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,0.9);
    border-left: 1px solid rgba(255,255,255,0.7);
    border-right: 1px solid rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,1),
      0 4px 20px rgba(0,0,0,0.05),
      0 1px 3px rgba(0,0,0,0.03);
    color: rgba(0,0,0,0.95);
  }
  html.light-theme .home-header .search-bar .search-icon {
    color: rgba(0,0,0,0.75);
  }
  html.light-theme .home-header .search-bar input {
    color: rgba(0,0,0,0.95);
  }
  html.light-theme .home-header .search-bar input::placeholder {
    color: rgba(0,0,0,0.70);
  }
  html.light-theme .liquid-glass {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,0.9);
    border-left: 1px solid rgba(255,255,255,0.7);
    border-right: 1px solid rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,1),
      0 4px 20px rgba(0,0,0,0.05),
      0 1px 3px rgba(0,0,0,0.03);
    color: rgba(0,0,0,0.95);
    text-shadow: none;
  }
  html.light-theme .liquid-glass::before {
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.9) 0%,
      rgba(255,255,255,0.5) 35%,
      rgba(255,255,255,0.1) 50%,
      rgba(255,255,255,0.0) 55%,
      rgba(255,255,255,0.0) 100%
    );
    opacity: 0.4;
  }
  html.light-theme .liquid-glass::after {
    display: none;
  }
  html.light-theme .liquid-glass input,
  html.light-theme .liquid-glass input::placeholder,
  html.light-theme .liquid-glass .search-icon,
  html.light-theme .liquid-glass .tab-label {
    color: inherit;
  }
  html.light-theme .liquid-glass input::placeholder {
    color: rgba(0,0,0,0.45);
  }
  html.light-theme .vip-banner .info h3,
  html.light-theme .vip-banner .info p {
    color: rgba(0,0,0,0.90);
  }
  html.light-theme .category-item {
    color: rgba(0,0,0,0.90);
    text-shadow: none;
  }
  html.light-theme .category-item .name {
    color: rgba(0,0,0,0.80);
  }
  html.light-theme .category-item .icon-wrap {
    background: rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.12);
  }
  html.light-theme .category-item .icon-wrap svg,
  html.light-theme .category-item .icon-wrap i {
    color: rgba(0,0,0,0.85);
  }
  html.light-theme .tab-bar {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,0.9);
    border-left: 1px solid rgba(255,255,255,0.7);
    border-right: 1px solid rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,1),
      0 8px 28px rgba(0,0,0,0.06),
      0 2px 8px rgba(0,0,0,0.03);
  }
  html.light-theme .tab-bar::before {
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.8) 0%,
      rgba(255,255,255,0.35) 35%,
      rgba(255,255,255,0.06) 50%,
      rgba(255,255,255,0.00) 55%,
      rgba(255,255,255,0.00) 100%
    );
    opacity: 0.4;
  }
  html.light-theme .tab-bar::after {
    display: none;
  }
  html.light-theme .tab-indicator {
    background: linear-gradient(180deg, rgba(78,203,143,0.90) 0%, rgba(45,139,95,0.95) 100%);
    box-shadow:
      inset 0 1px 1px rgba(255,255,255,0.40),
      0 2px 8px rgba(45, 139, 95, 0.25);
  }
  html.light-theme .course-grid-item {
    background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.05) 100%);
    border-top: 1px solid rgba(255,255,255,0.55);
    border-left: 1px solid rgba(255,255,255,0.38);
    border-right: 1px solid rgba(255,255,255,0.38);
    border-bottom: 1px solid rgba(255,255,255,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 4px 16px rgba(0,0,0,0.08);
  }
  html.light-theme .income-card {
    background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.05) 100%);
    border-top: 1px solid rgba(255,255,255,0.55);
    border-left: 1px solid rgba(255,255,255,0.38);
    border-right: 1px solid rgba(255,255,255,0.38);
    border-bottom: 1px solid rgba(255,255,255,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 8px 32px rgba(0,0,0,0.08);
  }
  html.light-theme .stats-item {
    background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.05) 100%);
    border-top: 1px solid rgba(255,255,255,0.55);
    border-left: 1px solid rgba(255,255,255,0.38);
    border-right: 1px solid rgba(255,255,255,0.38);
    border-bottom: 1px solid rgba(255,255,255,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 4px 16px rgba(0,0,0,0.08);
  }
  html.light-theme .modal-overlay {
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  html.light-theme .modal-sheet {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px) saturate(180%);
    -webkit-backdrop-filter: blur(6px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,0.45);
    border-left: 1px solid rgba(255,255,255,0.25);
    border-right: 1px solid rgba(255,255,255,0.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.40), 0 -8px 32px rgba(0,0,0,0.12);
  }
  html.light-theme .shop-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.35) 100%);
    backdrop-filter: blur(20px) saturate(130%) brightness(1.05);
    -webkit-backdrop-filter: blur(20px) saturate(130%) brightness(1.05);
    border-top: 1px solid rgba(255,255,255,0.65);
    border-left: 1px solid rgba(255,255,255,0.45);
    border-right: 1px solid rgba(255,255,255,0.45);
    border-bottom: 1px solid rgba(255,255,255,0.28);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.45), 0 8px 32px rgba(0,0,0,0.08);
  }
  html.light-theme .shop-card .tag {
    background: linear-gradient(180deg, rgba(45,139,95,0.08) 0%, rgba(45,139,95,0.04) 100%);
    border-top: 1px solid rgba(255,255,255,0.35);
    border-left: 1px solid rgba(255,255,255,0.20);
    border-right: 1px solid rgba(255,255,255,0.20);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.22);
  }

/* =====================================================
   iOS 26 液态玻璃 — 原生 Checkbox / Select 全局美化
   ===================================================== */

/* Checkbox — iOS Toggle Switch */
input[type="checkbox"]:not(.mac-checkbox) {
  appearance: none;
  -webkit-appearance: none;
  width: 52px;
  height: 32px;
  background: rgba(120,120,128,0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
  vertical-align: middle;
}

input[type="checkbox"]:not(.mac-checkbox)::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2), 0 0 1px rgba(0,0,0,0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="checkbox"]:not(.mac-checkbox):checked {
  background: linear-gradient(180deg, #34c759 0%, #30b350 100%);
  border-color: rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

input[type="checkbox"]:not(.mac-checkbox):checked::after {
  transform: translateX(20px);
}

html.light-theme input[type="checkbox"]:not(.mac-checkbox) {
  background: rgba(120,120,128,0.22);
  border-color: rgba(0,0,0,0.08);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

html.light-theme input[type="checkbox"]:not(.mac-checkbox)::after {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12), 0 0 1px rgba(0,0,0,0.06);
}

html.light-theme input[type="checkbox"]:not(.mac-checkbox):checked {
  background: linear-gradient(180deg, #34c759 0%, #30b350 100%);
}

/* macOS 风格输入框（H5 页面复用） */
.mac-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.mac-input::placeholder {
  color: var(--text-secondary);
}
.mac-input:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--border-focus);
}

html.light-theme .mac-input {
  background: rgba(255,255,255,0.72);
  border-color: rgba(0,0,0,0.08);
  color: var(--text-primary);
}
html.light-theme .mac-input::placeholder {
  color: var(--text-secondary);
}
html.light-theme .mac-input:focus {
  background: rgba(255,255,255,0.9);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--border-focus);
}

/* macOS 风格按钮（H5 页面复用） */
.mac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.mac-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}
.mac-btn:active {
  transform: translateY(0) scale(0.98);
}
.mac-btn.primary {
  background: linear-gradient(180deg, rgba(78,203,143,0.45) 0%, rgba(45,139,95,0.55) 100%);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.35), 0 4px 16px rgba(0,0,0,0.18);
}
.mac-btn.primary:hover {
  background: linear-gradient(180deg, rgba(78,203,143,0.55) 0%, rgba(45,139,95,0.65) 100%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.35), 0 6px 20px rgba(0,0,0,0.22);
}

html.light-theme .mac-btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 2px 8px rgba(0,0,0,0.06);
}
html.light-theme .mac-btn:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.12);
}
html.light-theme .mac-btn.primary {
  background: linear-gradient(180deg, rgba(78,203,143,0.55) 0%, rgba(45,139,95,0.65) 100%);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.35), 0 4px 16px rgba(45,139,95,0.18);
}

/* Select — 液态玻璃下拉 */
select:not(.mac-select),
.mac-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 40px 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255,255,255,0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  outline: none;
  min-width: 140px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.04), 0 1px 2px rgba(0,0,0,0.15);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

select:not(.mac-select):hover,
.mac-select:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.15);
}

select:not(.mac-select):focus,
.mac-select:focus {
  border-color: rgba(78,203,143,0.45);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.04), 0 0 0 3px rgba(78,203,143,0.12);
}

html.light-theme select:not(.mac-select),
html.light-theme .mac-select {
  background: rgba(255,255,255,0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.45)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border-color: rgba(0,0,0,0.08);
  color: var(--text-primary);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.06);
}

html.light-theme select:not(.mac-select):hover,
html.light-theme .mac-select:hover {
  background-color: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.12);
}

html.light-theme select:not(.mac-select):focus,
html.light-theme .mac-select:focus {
  border-color: rgba(45,139,95,0.5);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 0 0 3px rgba(45,139,95,0.12);
}
/* =====================================================
   白天模式补全 — index / courses / shops / user 等 H5 页面
   ===================================================== */

/* 分类入口 */
html.light-theme .category-item {
  color: var(--text-primary);
  text-shadow: none;
}
html.light-theme .category-item .name {
  color: var(--text-secondary);
  text-shadow: none;
}
html.light-theme .category-item .icon-wrap {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.55), 0 4px 12px rgba(0,0,0,0.06);
}
html.light-theme .category-item:active .icon-wrap {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.08);
}

/* 卡片按压态 */
html.light-theme .course-card:active {
  background: rgba(0,0,0,0.06);
}
html.light-theme .shop-card:active {
  background: rgba(0,0,0,0.05);
}

/* 店铺列表（shops.html） */
html.light-theme .shop-item {
  background: linear-gradient(180deg, rgba(100,100,100,0.10) 0%, rgba(100,100,100,0.05) 100%);
  border-top: 1px solid rgba(255,255,255,0.55);
  border-left: 1px solid rgba(255,255,255,0.38);
  border-right: 1px solid rgba(255,255,255,0.38);
  border-bottom: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.45), 0 4px 16px rgba(0,0,0,0.08);
  color: var(--text-primary);
}
html.light-theme .shop-item .tag {
  background: linear-gradient(180deg, rgba(45,139,95,0.08) 0%, rgba(45,139,95,0.04) 100%);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.20);
  border-right: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.22);
}

/* 课程分类标签（courses.html） */
html.light-theme .category-tab {
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.40) 100%);
  border-top: 1px solid rgba(255,255,255,0.70);
  border-left: 1px solid rgba(255,255,255,0.45);
  border-right: 1px solid rgba(255,255,255,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.28);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.45), 0 4px 16px rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.75);
  text-shadow: 0 1px 2px rgba(255,255,255,0.45);
}
html.light-theme .category-tab.active {
  background: linear-gradient(180deg, rgba(45,139,95,0.55) 0%, rgba(45,139,95,0.42) 100%);
  border-color: rgba(78,203,143,0.55);
  box-shadow: inset 0 1px 1px rgba(78,203,143,0.28), 0 4px 16px rgba(0,0,0,0.08);
  color: rgba(255,255,255,0.98);
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}

/* 个人中心标签（user.html） */
html.light-theme .user-avatar {
  border-top: 1px solid rgba(255,255,255,0.45);
  border-left: 1px solid rgba(255,255,255,0.30);
  border-right: 1px solid rgba(255,255,255,0.30);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.28), 0 4px 16px rgba(0,0,0,0.08);
}
html.light-theme .vip-tag {
  background: linear-gradient(180deg, rgba(232,154,60,0.12) 0%, rgba(200,120,40,0.05) 100%);
  border-top: 1px solid rgba(255,255,255,0.45);
  border-left: 1px solid rgba(255,255,255,0.28);
  border-right: 1px solid rgba(255,255,255,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.28);
}
html.light-theme .partner-tag {
  background: linear-gradient(180deg, rgba(175,82,222,0.10) 0%, rgba(130,50,180,0.05) 100%);
  border-top: 1px solid rgba(255,255,255,0.45);
  border-left: 1px solid rgba(255,255,255,0.28);
  border-right: 1px solid rgba(255,255,255,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.28);
}

/* 课程网格会员免费标签 */
html.light-theme .course-item .member-free {
  background: rgba(45, 220, 120, 0.12);
}

/* 倒计时数字 */
.countdown {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #ff453a;
  padding: 0 4px;
}
html.light-theme .countdown {
  color: #d93025;
}

/* =====================================================
   首页液态玻璃在浅色模式下的强制修正
   ===================================================== */
html.light-theme .vip-banner,
html.light-theme .category-grid,
html.light-theme .course-card,
html.light-theme .shop-card,
html.light-theme .home-header .search-bar {
  background: rgba(255, 255, 255, 0.88) !important;
  color: rgba(0, 0, 0, 0.90) !important;
  text-shadow: none !important;
  border-top: 1px solid rgba(255,255,255,0.95) !important;
  border-left: 1px solid rgba(255,255,255,0.80) !important;
  border-right: 1px solid rgba(255,255,255,0.80) !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 4px 16px rgba(0,0,0,0.08) !important;
}
html.light-theme .vip-banner .info h3,
html.light-theme .vip-banner .info p,
html.light-theme .category-item,
html.light-theme .category-item .name,
html.light-theme .course-card .title,
html.light-theme .course-card .meta,
html.light-theme .shop-card .name,
html.light-theme .shop-card .address,
html.light-theme .home-header .search-bar input,
html.light-theme .home-header .search-bar input::placeholder,
html.light-theme .home-header .search-bar .search-icon {
  color: rgba(0, 0, 0, 0.90) !important;
  text-shadow: none !important;
}
html.light-theme .category-item .icon-wrap {
  background: rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 2px 6px rgba(0,0,0,0.06) !important;
}
html.light-theme .category-item .icon-wrap svg,
html.light-theme .category-item .icon-wrap i {
  color: rgba(0, 0, 0, 0.85) !important;
}

/* 超窄屏分类入口避免 4 列拥挤 */
@media (max-width: 360px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 12px !important;
  }
}

/* ── iOS 26 Liquid Glass Select Dropdown (shared with H5) ── */
.mac-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 40px 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(30,30,34,0.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  cursor: pointer;
  outline: none;
  color-scheme: dark;
  min-height: 42px;
  min-width: 140px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.04), 0 1px 2px rgba(0,0,0,0.15);
}

.mac-select:hover {
  background-color: rgba(40,40,46,0.75);
  border-color: rgba(255,255,255,0.12);
}

.mac-select:focus {
  border-color: rgba(12,166,120,0.45);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.04), 0 0 0 3px rgba(12,166,120,0.12);
  background-color: rgba(35,35,40,0.8);
}

.mac-select option {
  background: rgba(32,32,36,0.98);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 14px;
  min-height: 36px;
}

.mac-select option:checked {
  background: rgba(12,166,120,0.25);
  color: #fff;
}

.mac-select option:hover {
  background: rgba(12,166,120,0.18);
}

@supports (-webkit-touch-callout: none) {
  .mac-select {
    border-radius: 12px;
  }
}

.mac-select-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.mac-select-wrap .mac-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  left: 0;
  top: 0;
}

.mac-select-trigger {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 40px 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(30,30,34,0.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  cursor: pointer;
  outline: none;
  min-height: 42px;
  min-width: 140px;
  width: 100%;
  display: flex;
  align-items: center;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.04), 0 1px 2px rgba(0,0,0,0.15);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.mac-select-trigger:hover {
  background-color: rgba(40,40,46,0.75);
  border-color: rgba(255,255,255,0.12);
}

.mac-select-trigger:focus {
  border-color: rgba(12,166,120,0.45);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.04), 0 0 0 3px rgba(12,166,120,0.12);
  background-color: rgba(35,35,40,0.8);
}

.mac-select-dropdown {
  position: absolute;
  z-index: 10100;
  background: rgba(28, 28, 32, 0.55);
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.10);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  max-height: 280px;
}

.mac-select-dropdown.upward {
  transform-origin: bottom center;
}

.mac-select-dropdown.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mac-select-option {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mac-select-option:last-child {
  margin-bottom: 0;
}

.mac-select-option::after {
  content: '';
  width: 16px;
  height: 16px;
  display: inline-block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2334D399' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
  margin-left: 8px;
}

.mac-select-option.selected::after {
  opacity: 1;
}

.mac-select-option:hover,
.mac-select-option.highlighted {
  background: rgba(12,166,120,0.15);
}

.mac-select-option.selected {
  background: rgba(12,166,120,0.22);
  color: #fff;
  font-weight: 500;
}

html.light-theme .mac-select-trigger {
  background: rgba(255,255,255,0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.45)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border-color: rgba(0,0,0,0.08);
  color: var(--text-primary);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.06);
}

html.light-theme .mac-select-trigger:hover {
  background-color: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.12);
}

html.light-theme .mac-select-trigger:focus {
  border-color: rgba(12,166,120,0.5);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 0 0 3px rgba(12,166,120,0.12);
  background-color: rgba(255,255,255,0.9);
}

html.light-theme .mac-select-dropdown {
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.45);
}

html.light-theme .mac-select-option {
  color: var(--text-primary);
}

html.light-theme .mac-select-option:hover,
html.light-theme .mac-select-option.highlighted {
  background: rgba(12,166,120,0.12);
}

html.light-theme .mac-select-option.selected {
  background: rgba(12,166,120,0.18);
  color: var(--text-primary);
}

html.light-theme .mac-select-option::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230CA678' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
