/* pages/home.css — 由 pages/home/home.wxss 机械转换 *//* pages/home/home.wxss — 首页：深色沉浸 + 橙蓝撞色点缀（仅使用设计令牌 var()/rgba/transparent） */

:where(.mp-page[data-route="pages/home/home"]) .page {
  padding: 0 var(--space-page);
}

:where(.mp-page[data-route="pages/home/home"]) .section {
  margin-top: var(--space-section);
}
:where(.mp-page[data-route="pages/home/home"]) .section-first {
  margin-top: var(--space-card);
}
/* ---------- 1. 顶部导航（毛玻璃吸顶 + 自动定位车友会入口） ---------- */
:where(.mp-page[data-route="pages/home/home"]) .home-nav {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 800 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06) !important;
  box-sizing: border-box;
}
:where(.mp-page[data-route="pages/home/home"]) .home-nav > view:first-child[style*="height"] {
  display: none !important;
  height: 0 !important;
}
:where(.mp-page[data-route="pages/home/home"]) .home-nav-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 var(--space-page) !important;
  height: 48px !important;
  position: relative !important;
}
:where(.mp-page[data-route="pages/home/home"]) .nav-club-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F3F4F6;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
:where(.mp-page[data-route="pages/home/home"]) .nav-club-badge:active {
  background: #E5E7EB;
  transform: scale(0.96);
}
:where(.mp-page[data-route="pages/home/home"]) .nav-loc-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}
:where(.mp-page[data-route="pages/home/home"]) .beacon-locating {
  background: #F59E0B;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
  animation: beacon-pulse 1s infinite alternate;
}
@keyframes beacon-pulse {
  from { opacity: 0.4; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}
:where(.mp-page[data-route="pages/home/home"]) .nav-club-name {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.2px;
}
:where(.mp-page[data-route="pages/home/home"]) .nav-club-chevron {
  color: #6B7280;
  display: flex;
  align-items: center;
}
:where(.mp-page[data-route="pages/home/home"]) .nav-brand {
  font-family: 'EwDIN', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #111827;
}
:where(.mp-page[data-route="pages/home/home"]) .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
:where(.mp-page[data-route="pages/home/home"]) .nav-icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F4F6;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
}
:where(.mp-page[data-route="pages/home/home"]) .nav-icon-btn:active {
  background: #E5E7EB;
  transform: scale(0.92);
}
:where(.mp-page[data-route="pages/home/home"]) .nav-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
  border: 1.5px solid #FFFFFF;
}

/* ---------- 2. 尊享车主数字车卡 (Tesla Club Digital Key Pass) ---------- */
:where(.mp-page[data-route="pages/home/home"]) .home-pass-wrap {
  margin-top: 10px;
  margin-bottom: 6px;
}

:where(.mp-page[data-route="pages/home/home"]) .home-pass-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(145deg, #1C212A 0%, #11141A 100%);
  border: 1.5px solid rgba(224, 180, 76, 0.35);
  box-shadow: 0 12px 28px rgba(16, 20, 28, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
:where(.mp-page[data-route="pages/home/home"]) .home-pass-card:active {
  transform: scale(0.985);
  box-shadow: 0 6px 16px rgba(16, 20, 28, 0.12);
}

/* 渐变微光与水印 */
:where(.mp-page[data-route="pages/home/home"]) .pass-sheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 88% 18%, rgba(224, 180, 76, 0.15) 0%, transparent 55%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
:where(.mp-page[data-route="pages/home/home"]) .pass-watermark {
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-family: 'EwDIN', sans-serif;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  line-height: 1;
}

/* 卡片内边距与排版 */
:where(.mp-page[data-route="pages/home/home"]) .pass-inner {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 146px;
  box-sizing: border-box;
}

/* 顶栏 */
:where(.mp-page[data-route="pages/home/home"]) .pass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
:where(.mp-page[data-route="pages/home/home"]) .pass-club-id {
  display: flex;
  align-items: center;
  gap: 7px;
}
:where(.mp-page[data-route="pages/home/home"]) .pass-emblem {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.15);
  border: 0.5px solid rgba(245, 158, 11, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
}
:where(.mp-page[data-route="pages/home/home"]) .pass-club-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.5px;
}
:where(.mp-page[data-route="pages/home/home"]) .pass-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #34D399;
  background: rgba(16, 185, 129, 0.15);
  border: 0.5px solid rgba(16, 185, 129, 0.35);
  padding: 3px 8px;
  border-radius: 999px;
}
:where(.mp-page[data-route="pages/home/home"]) .pill-unclaimed {
  color: #FB923C;
  background: rgba(234, 88, 12, 0.15);
  border-color: rgba(234, 88, 12, 0.35);
}
:where(.mp-page[data-route="pages/home/home"]) .status-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}
:where(.mp-page[data-route="pages/home/home"]) .dot-orange {
  background: #E45A1B;
  box-shadow: 0 0 6px #E45A1B;
}

/* 中部核心展示 */
:where(.mp-page[data-route="pages/home/home"]) .pass-body {
  margin: 10px 0 12px;
}
:where(.mp-page[data-route="pages/home/home"]) .pass-num-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(224, 180, 76, 0.75);
  margin-bottom: 2px;
}
:where(.mp-page[data-route="pages/home/home"]) .pass-num-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
:where(.mp-page[data-route="pages/home/home"]) .pass-num {
  font-family: 'EwDIN', sans-serif;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #FFFFFF;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
:where(.mp-page[data-route="pages/home/home"]) .pass-num-tag {
  font-size: 10px;
  font-weight: 600;
  color: #E0B44C;
  background: rgba(224, 180, 76, 0.15);
  border: 0.5px solid rgba(224, 180, 76, 0.3);
  padding: 1.5px 6px;
  border-radius: 4px;
}
:where(.mp-page[data-route="pages/home/home"]) .pass-car-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}
:where(.mp-page[data-route="pages/home/home"]) .pass-claim-title {
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

/* 底栏 */
:where(.mp-page[data-route="pages/home/home"]) .pass-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}
:where(.mp-page[data-route="pages/home/home"]) .pass-perk-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}
:where(.mp-page[data-route="pages/home/home"]) .pass-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
:where(.mp-page[data-route="pages/home/home"]) .pass-action-btn:active {
  background: rgba(255, 255, 255, 0.22);
}
:where(.mp-page[data-route="pages/home/home"]) .pass-action-btn.btn-orange {
  background: linear-gradient(135deg, #FF6B2B 0%, #E45A1B 100%);
  border-color: #E45A1B;
  box-shadow: 0 2px 8px rgba(228, 90, 27, 0.35);
}

/* ---------- 3. 开放式无框服务坞 ---------- */
:where(.mp-page[data-route="pages/home/home"]) .home-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 2px;
  width: 100%;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
}

:where(.mp-page[data-route="pages/home/home"]) .home-shortcuts .shortcut-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  padding: 10px 4px 8px;
  box-sizing: border-box;
  outline: none;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(.mp-page[data-route="pages/home/home"]) .home-shortcuts .shortcut-action:active {
  transform: scale(0.96);
}

:where(.mp-page[data-route="pages/home/home"]) .home-shortcuts .shortcut-action:focus-visible {
  outline: 2px solid #E0B44C;
  outline-offset: 2px;
  border-radius: 8px;
}

:where(.mp-page[data-route="pages/home/home"]) .home-shortcuts .shortcut-tag {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 9px;
  font-weight: 800;
  color: #FFFFFF;
  border-radius: 4px;
  padding: 1px 4px;
  line-height: 1.1;
  letter-spacing: 0.5px;
}
:where(.mp-page[data-route="pages/home/home"]) .shortcut-tag.tag-cyan { background: #0284C7; }
:where(.mp-page[data-route="pages/home/home"]) .shortcut-tag.tag-ember { background: #EA580C; }
:where(.mp-page[data-route="pages/home/home"]) .shortcut-tag.tag-gold { background: #D97706; }
:where(.mp-page[data-route="pages/home/home"]) .shortcut-tag.tag-blue { background: #2563EB; }

:where(.mp-page[data-route="pages/home/home"]) .home-shortcuts .shortcut-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1F2937;
  transition: all 0.15s ease;
}

:where(.mp-page[data-route="pages/home/home"]) .shortcut-action[data-key="number"] .shortcut-icon path:nth-of-type(2) {
  fill: #E0B44C;
}

:where(.mp-page[data-route="pages/home/home"]) .home-shortcuts .shortcut-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

:where(.mp-page[data-route="pages/home/home"]) .home-shortcuts .shortcut-label {
  font-size: 12px;
  font-weight: 600;
  color: #1F2937;
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  :where(.mp-page[data-route="pages/home/home"]) .home-shortcuts .shortcut-action,
  :where(.mp-page[data-route="pages/home/home"]) .home-shortcuts .shortcut-icon,
  :where(.mp-page[data-route="pages/home/home"]) .home-shortcuts .shortcut-label {
    transition: none;
  }
}

@media (max-width: 340px) {
  :where(.mp-page[data-route="pages/home/home"]) .home-shortcuts {
    gap: 2px 1px;
  }
  :where(.mp-page[data-route="pages/home/home"]) .home-shortcuts .shortcut-action {
    min-height: 68px;
  }
}
/* ---------- 4. 城市公告：高科技简报条 ---------- */
:where(.mp-page[data-route="pages/home/home"]) .ann-tech {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #EEF0F4;
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.03);
  gap: 10px;
}

:where(.mp-page[data-route="pages/home/home"]) .ann-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #E45A1B;
  background: rgba(228, 90, 27, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  flex: none;
}

:where(.mp-page[data-route="pages/home/home"]) .ann-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #E45A1B;
  box-shadow: 0 0 6px #E45A1B;
  animation: hud-pulse 1.5s infinite;
}

:where(.mp-page[data-route="pages/home/home"]) .ann-main { flex: 1; min-width: 0; }
:where(.mp-page[data-route="pages/home/home"]) .ann-title {
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  font-weight: 500;
}
:where(.mp-page[data-route="pages/home/home"]) .ann-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
:where(.mp-page[data-route="pages/home/home"]) .ann-item {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}
:where(.mp-page[data-route="pages/home/home"]) .ann-toggle {
  flex: none;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #3B82F6;
  cursor: pointer;
}/* ---------- 横向滚动通用（全宽出血） ---------- */
:where(.mp-page[data-route="pages/home/home"]) .hscroll {
  white-space: nowrap;
  font-size: 0;
  margin-left: calc(-1 * var(--space-page));
  margin-right: calc(-1 * var(--space-page));
  padding-left: var(--space-page);
  padding-right: var(--space-page);
  box-sizing: border-box;
}/* ---------- 5. 近期活动（横滑，约 2.2 屏） ---------- */
:where(.mp-page[data-route="pages/home/home"]) .act-item {
  display: inline-block;
  width: 260px;
  margin-right: 12px;
  vertical-align: top;
}
:where(.mp-page[data-route="pages/home/home"]) .act-item:only-child {
  width: 100% !important;
  margin-right: 0 !important;
}
:where(.mp-page[data-route="pages/home/home"]) .act-empty {
  text-align: center;
  padding: 24px 16px;
}
:where(.mp-page[data-route="pages/home/home"]) .act-empty-text {
  font-size: 13px;
  color: var(--text-secondary);
}
:where(.mp-page[data-route="pages/home/home"]) .act-empty-btn {
  margin-top: 8px;
  font-size: 13px;
  color: var(--brand-orange);
}/* ---------- 6. 编号推荐（3 列网格） ---------- */
:where(.mp-page[data-route="pages/home/home"]) .num-grid {
  display: flex;
  flex-wrap: wrap;
}
:where(.mp-page[data-route="pages/home/home"]) .num-cell {
  width: calc((100% - 24px) / 3);
  margin-right: 12px;
  margin-bottom: 12px;
}
:where(.mp-page[data-route="pages/home/home"]) .num-cell:nth-child(3n) {
  margin-right: 0;
}
:where(.mp-page[data-route="pages/home/home"]) .num-cell:active { opacity: 0.8; }/* ---------- 7. 附近服务（浅色卡片穿插深色页面） ---------- */
:where(.mp-page[data-route="pages/home/home"]) .svc {
  display: flex;
  align-items: center;
  background: var(--light-bg);
  border-radius: var(--radius-card);
  padding: 12px;
  margin-bottom: var(--space-card);
}
:where(.mp-page[data-route="pages/home/home"]) .svc:active { opacity: 0.9; }
:where(.mp-page[data-route="pages/home/home"]) .svc-cover {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
}
:where(.mp-page[data-route="pages/home/home"]) .svc-cover-orbit {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    -25deg,
    transparent 0px,
    transparent 10px,
    rgba(244, 242, 234, 0.08) 10px,
    rgba(244, 242, 234, 0.08) 12px
  );
}
:where(.mp-page[data-route="pages/home/home"]) .svc-main {
  flex: 1;
  min-width: 0;
  margin-left: 12px;
}
:where(.mp-page[data-route="pages/home/home"]) .svc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
:where(.mp-page[data-route="pages/home/home"]) .svc-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(11, 13, 16, 0.9);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
:where(.mp-page[data-route="pages/home/home"]) .svc-rating {
  flex: none;
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-gold);
}
:where(.mp-page[data-route="pages/home/home"]) .svc-tags {
  margin-top: 5px;
}
:where(.mp-page[data-route="pages/home/home"]) .svc-tag {
  display: inline-block;
  font-size: 10px;
  color: rgba(11, 13, 16, 0.65);
  border: 0.5px solid rgba(11, 13, 16, 0.18);
  border-radius: 499.5px;
  padding: 1px 7px;
  margin-right: 5px;
}
:where(.mp-page[data-route="pages/home/home"]) .svc-meta {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
:where(.mp-page[data-route="pages/home/home"]) .svc-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-orange);
}
:where(.mp-page[data-route="pages/home/home"]) .svc-dist {
  font-size: 11px;
  color: rgba(11, 13, 16, 0.45);
}/* ---------- 8. 社区精选（深色卡片区块，全宽出血） ---------- */
:where(.mp-page[data-route="pages/home/home"]) .community {
  margin-left: calc(-1 * var(--space-page));
  margin-right: calc(-1 * var(--space-page));
  background: var(--bg-card);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 20px var(--space-page) 4px;
}
:where(.mp-page[data-route="pages/home/home"]) .comm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
:where(.mp-page[data-route="pages/home/home"]) .comm-title {
  font-size: 18px;
  font-weight: 600;
  color: rgba(11, 13, 16, 0.9);
}
:where(.mp-page[data-route="pages/home/home"]) .comm-more {
  font-size: 12px;
  color: var(--brand-blue);
}
:where(.mp-page[data-route="pages/home/home"]) .comm-more:active { opacity: 0.7; }
:where(.mp-page[data-route="pages/home/home"]) .comm-item {
  margin-bottom: var(--space-card);
}/* ---------- 9. 商城推荐（横滑 1:1 商品卡） ---------- */
:where(.mp-page[data-route="pages/home/home"]) .mall-item {
  display: inline-block;
  width: 120px;
  margin-right: var(--space-card);
  vertical-align: top;
}
:where(.mp-page[data-route="pages/home/home"]) .mall-item:active { opacity: 0.85; }
:where(.mp-page[data-route="pages/home/home"]) .mall-cover {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
}
:where(.mp-page[data-route="pages/home/home"]) .mall-cover-orbit {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    -25deg,
    transparent 0px,
    transparent 10px,
    rgba(244, 242, 234, 0.08) 10px,
    rgba(244, 242, 234, 0.08) 12px
  );
}
:where(.mp-page[data-route="pages/home/home"]) .mall-tag {
  position: absolute;
  left: 6px;
  top: 6px;
  font-size: 9px;
  color: var(--text-primary);
  background: rgba(11, 13, 16, 0.6);
  padding: 1px 7px;
  border-radius: 499.5px;
}
:where(.mp-page[data-route="pages/home/home"]) .mall-title {
  margin-top: 7px;
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.4;
  height: 34px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
}
:where(.mp-page[data-route="pages/home/home"]) .mall-price {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
}
:where(.mp-page[data-route="pages/home/home"]) .mall-mp {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-orange);
}
:where(.mp-page[data-route="pages/home/home"]) .mall-mp-label {
  margin-left: 3px;
  font-size: 9px;
  color: var(--brand-orange);
}
:where(.mp-page[data-route="pages/home/home"]) .mall-op {
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-tertiary);
  text-decoration: line-through;
}/* ---------- 页底：非官方声明 ---------- */
:where(.mp-page[data-route="pages/home/home"]) .footer {
  margin-top: var(--space-section);
  padding-bottom: 12px;
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.6;
}
