/* pages/garage.css — 由 pages/garage/garage.wxss 机械转换 *//* pages/garage/garage.wxss — 我的车库 */

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

:where(.mp-page[data-route="pages/garage/garage"]) .section {
  margin-top: var(--space-section);
}

:where(.mp-page[data-route="pages/garage/garage"]) .tap-hover {
  opacity: 0.88;
}

:where(.mp-page[data-route="pages/garage/garage"]) .cell-hover {
  background: var(--bg-elevated);
}/* 认证状态补充色（复用 app.wxss .tag 基础样式） */
:where(.mp-page[data-route="pages/garage/garage"]) .tag-success {
  color: var(--success);
  background: rgba(47, 168, 110, 0.14);
  border-color: rgba(47, 168, 110, 0.45);
}/* ---------- 当前车辆大卡 ---------- */
:where(.mp-page[data-route="pages/garage/garage"]) .car-card {
  background: var(--bg-card);
  border: 0.5px solid var(--divider);
  border-radius: var(--radius-card);
  padding: 16px 14px;
  display: flex;
}

:where(.mp-page[data-route="pages/garage/garage"]) .garage-vehicle-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .garage-vehicle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .garage-vehicle-name,
:where(.mp-page[data-route="pages/garage/garage"]) .garage-record-title {
  color: var(--text-primary);
  font-weight: 650;
}

:where(.mp-page[data-route="pages/garage/garage"]) .garage-vehicle-meta,
:where(.mp-page[data-route="pages/garage/garage"]) .garage-record-meta {
  margin-top: 3px;
  color: var(--text-tertiary);
  font-size: 11px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .garage-vehicle-actions {
  display: flex;
  gap: 6px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .garage-vehicle-actions button {
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  min-height: 30px;
  padding: 0 8px;
  font: inherit;
  font-size: 11px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .garage-record-card {
  padding-top: 4px;
  padding-bottom: 4px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .garage-record-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--divider);
}

:where(.mp-page[data-route="pages/garage/garage"]) .garage-record-row:last-child { border-bottom: 0; }
:where(.mp-page[data-route="pages/garage/garage"]) .garage-record-icon { color: var(--brand-blue); }
:where(.mp-page[data-route="pages/garage/garage"]) .garage-record-main { flex: 1; min-width: 0; }
:where(.mp-page[data-route="pages/garage/garage"]) .garage-record-arrow { color: var(--text-tertiary); font-size: 20px; }
:where(.mp-page[data-route="pages/garage/garage"]) .garage-reminder-empty { color: var(--text-tertiary); padding: 12px 0; text-align: center; }

/* 高科技座舱大卡 */
:where(.mp-page[data-route="pages/garage/garage"]) .car-card-cockpit {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #1C2028;
  border: 1px solid rgba(228, 90, 27, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  padding: 18px 20px;
  box-sizing: border-box;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
}

:where(.mp-page[data-route="pages/garage/garage"]) .car-cockpit-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

:where(.mp-page[data-route="pages/garage/garage"]) .car-cockpit-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(2px);
}

:where(.mp-page[data-route="pages/garage/garage"]) .car-cockpit-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 20, 26, 0.6) 0%, rgba(10, 12, 16, 0.95) 100%);
}

:where(.mp-page[data-route="pages/garage/garage"]) .car-cockpit-header {
  position: relative;
  z-index: 2;
}

:where(.mp-page[data-route="pages/garage/garage"]) .car-card-cockpit .car-nickname {
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
}

:where(.mp-page[data-route="pages/garage/garage"]) .car-verify-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 499.5px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .car-card-cockpit .car-model {
  font-size: 15px;
  font-weight: 700;
  color: #FFB37C;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .car-card-cockpit .car-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* 数字化遥测 HUD */
:where(.mp-page[data-route="pages/garage/garage"]) .car-telemetry-hud {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 16px 0 14px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .telemetry-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

:where(.mp-page[data-route="pages/garage/garage"]) .telemetry-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

:where(.mp-page[data-route="pages/garage/garage"]) .telemetry-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

:where(.mp-page[data-route="pages/garage/garage"]) .telemetry-val {
  font-family: 'EwDIN', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
  margin-top: 2px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .telemetry-unit {
  font-size: 12px;
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.6);
}

:where(.mp-page[data-route="pages/garage/garage"]) .telemetry-val-sm {
  font-size: 15px;
  line-height: 1.6;
}

:where(.mp-page[data-route="pages/garage/garage"]) .telemetry-val-good {
  font-family: 'EwDIN', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #10B981;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .telemetry-val-idle {
  font-family: 'EwDIN', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  letter-spacing: 0.4px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .car-telemetry-hud.is-placeholder {
  opacity: 0.72;
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-connect-card,
:where(.mp-page[data-route="pages/garage/garage"]) .tesla-live-meta,
:where(.mp-page[data-route="pages/garage/garage"]) .tesla-error {
  position: relative;
  z-index: 2;
  margin-top: 12px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-connect-card {
  background: rgba(255, 255, 255, 0.07);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-connect-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-connect-desc {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-connect-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-connect-btn {
  margin-top: 10px;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, #FF6B2B 0%, #E45A1B 100%);
  cursor: pointer;
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-connect-actions .tesla-connect-btn {
  margin-top: 0;
  flex: 1;
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-connect-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-connect-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-vehicle-select {
  width: 100%;
  margin-top: 10px;
  height: 34px;
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: #FFFFFF;
  font-size: 12px;
  padding: 0 10px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-live-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-live-disconnect,
:where(.mp-page[data-route="pages/garage/garage"]) .tesla-virtual-key {
  color: #FFB37C;
  cursor: pointer;
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-error {
  font-size: 11px;
  color: #FCA5A5;
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-standalone .tesla-connect-card {
  background: var(--bg-card);
  border: 1px dashed var(--divider);
  color: inherit;
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-standalone .tesla-connect-title {
  color: var(--text-primary);
}

:where(.mp-page[data-route="pages/garage/garage"]) .tesla-standalone .tesla-connect-desc {
  color: var(--text-secondary);
}

:where(.mp-page[data-route="pages/garage/garage"]) .remote-ctrl-btn.is-disabled {
  opacity: 0.42;
}

:where(.mp-page[data-route="pages/garage/garage"]) .telemetry-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .telemetry-divider {
  width: 0.5px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
  flex: none;
}

:where(.mp-page[data-route="pages/garage/garage"]) .car-card-cockpit .car-actions {
  position: relative;
  z-index: 2;
  margin-top: 2px;
  display: flex;
  gap: 10px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .car-card-cockpit .car-btn {
  flex: 1;
  height: 36px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

:where(.mp-page[data-route="pages/garage/garage"]) .car-card-cockpit .car-btn-primary {
  background: linear-gradient(135deg, #FF6B2B 0%, #E45A1B 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 14px rgba(228, 90, 27, 0.4);
}

:where(.mp-page[data-route="pages/garage/garage"]) .car-card-cockpit .car-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
}

/* 爱车快捷遥控面板 */
:where(.mp-page[data-route="pages/garage/garage"]) .car-remote-controls {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .remote-ctrl-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

:where(.mp-page[data-route="pages/garage/garage"]) .remote-ctrl-btn:active {
  transform: scale(0.95);
}

:where(.mp-page[data-route="pages/garage/garage"]) .remote-ctrl-btn.active {
  background: rgba(228, 90, 27, 0.22);
  border-color: rgba(228, 90, 27, 0.6);
  box-shadow: 0 0 12px rgba(228, 90, 27, 0.3);
}

:where(.mp-page[data-route="pages/garage/garage"]) .remote-ctrl-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}

:where(.mp-page[data-route="pages/garage/garage"]) .remote-ctrl-btn.active .remote-ctrl-icon {
  color: #FF6B2B;
}

:where(.mp-page[data-route="pages/garage/garage"]) .remote-ctrl-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

:where(.mp-page[data-route="pages/garage/garage"]) .remote-ctrl-status {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
}

:where(.mp-page[data-route="pages/garage/garage"]) .remote-ctrl-btn.active .remote-ctrl-status {
  color: #FFB37C;
}

:where(.mp-page[data-route="pages/garage/garage"]) .telemetry-sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}

:where(.mp-page[data-route="pages/garage/garage"]) .telemetry-sync-btn:active {
  background: rgba(255, 255, 255, 0.18);
}

:where(.mp-page[data-route="pages/garage/garage"]) .sync-icon-spin {
  animation: syncRotate 1s linear infinite;
  display: inline-block;
}

@keyframes syncRotate {
  100% { transform: rotate(360deg); }
}

/* ---------- 添加车辆大卡 ---------- */
:where(.mp-page[data-route="pages/garage/garage"]) .add-card {
  margin-top: var(--space-card);
  background: var(--bg-card);
  border: 1px dashed var(--divider);
  border-radius: var(--radius-card);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

:where(.mp-page[data-route="pages/garage/garage"]) .add-plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(44, 113, 232, 0.14);
  border: 0.5px solid rgba(44, 113, 232, 0.45);
  color: var(--brand-blue);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

:where(.mp-page[data-route="pages/garage/garage"]) .add-text {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

:where(.mp-page[data-route="pages/garage/garage"]) .add-desc {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-tertiary);
}/* ---------- 改装合规提示 ---------- */
:where(.mp-page[data-route="pages/garage/garage"]) .compliance-note {
  margin: 0 14px 14px;
  padding: 10px 12px;
  border-radius: var(--radius-btn);
  background: rgba(217, 154, 43, 0.1);
  border: 0.5px solid rgba(217, 154, 43, 0.35);
  color: var(--brand-gold);
  font-size: 11px;
  line-height: 1.6;
}/* ---------- 提醒设置 ---------- */
:where(.mp-page[data-route="pages/garage/garage"]) .reminder-list {
  padding: 4px 14px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .reminder-row {
  display: flex;
  align-items: center;
  padding: 13px 0;
  border-bottom: 0.5px solid var(--divider);
}

:where(.mp-page[data-route="pages/garage/garage"]) .reminder-row:last-of-type {
  border-bottom: none;
}

:where(.mp-page[data-route="pages/garage/garage"]) .reminder-icon {
  font-size: 20px;
  margin-right: 10px;
}

:where(.mp-page[data-route="pages/garage/garage"]) .reminder-main {
  flex: 1;
  min-width: 0;
}

:where(.mp-page[data-route="pages/garage/garage"]) .reminder-label {
  font-size: 14px;
  color: var(--text-primary);
}

:where(.mp-page[data-route="pages/garage/garage"]) .reminder-desc {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-tertiary);
}

:where(.mp-page[data-route="pages/garage/garage"]) .reminder-tip {
  padding: 8px 0 10px;
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.6;
}
