/* 手机首页 —— 黄白 + AI 图标 + 动效 */
.yx-home {
  background: #f5f5f5;
  min-height: 100vh;
}
.yx-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, #ff642e 0%, #ff642e 72%, #ffcbb8 100%);
  padding: 8px 12px 14px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
}
.yx-top-row {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.yx-checkin,
.yx-live {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.yx-checkin img,
.yx-live img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yx-checkin:active,
.yx-live:active {
  transform: scale(0.92);
}
.yx-top-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.yx-top-tabs a {
  border: 0;
  background: transparent;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}
.yx-top-tabs a.is-on {
  color: #111;
  font-size: 18px;
  font-weight: 900;
  position: relative;
}
.yx-top-tabs a.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 18px;
  height: 3px;
  margin-left: -9px;
  border-radius: 2px;
  background: #111;
}
.yx-search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.yx-search .yx-city {
  flex-shrink: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.7);
  color: #111;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.yx-search-bar {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 40px;
  background: #fff;
  border-radius: 999px;
  padding: 3px 3px 3px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.yx-search-bar input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  min-width: 0;
}
.yx-search-bar button {
  border: 0;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ff642e;
  color: #111;
  font-size: 13px;
  font-weight: 800;
}
.yx-allcat {
  flex: 0 0 auto;
  width: 40px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: #111;
  line-height: 1.15;
  text-decoration: none;
}
.yx-allcat em {
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
}

.yx-main {
  padding: 10px 12px calc(var(--tabbar-h) + var(--safe-b) + 20px);
}
.yx-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* 入场动画 */
@keyframes yx-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes yx-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@keyframes yx-pulse-soft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}
.yx-anim {
  animation: yx-rise 0.55s ease both;
}
.yx-premium.yx-anim {
  animation-delay: 0.04s;
}
.yx-svc.yx-anim {
  animation-delay: 0.12s;
}
.yx-banner.yx-anim {
  animation-delay: 0.2s;
}

.yx-premium-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.yx-premium-hd strong {
  font-size: 16px;
  font-weight: 900;
  margin-right: 4px;
}
.yx-premium-hd span {
  font-size: 11px;
  color: #888;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f6f6f6;
}
.yx-premium-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.yx-tile {
  text-align: center;
  text-decoration: none;
  color: #222;
  transition: transform 0.2s ease;
}
.yx-tile:active {
  transform: scale(0.94);
}
.yx-tile-ico {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  margin-bottom: 6px;
  object-fit: cover;
  background: #f6f6f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  animation: yx-float 3.6s ease-in-out infinite;
}
.yx-tile:nth-child(2) .yx-tile-ico {
  animation-delay: 0.35s;
}
.yx-tile:nth-child(3) .yx-tile-ico {
  animation-delay: 0.7s;
}
.yx-tile:nth-child(4) .yx-tile-ico {
  animation-delay: 1.05s;
}
.yx-tile b {
  display: block;
  font-size: 12px;
  font-weight: 800;
}
.yx-tile em {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: #999;
  margin-top: 2px;
}

.yx-svc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 6px;
  padding: 12px 8px;
}
.yx-svc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #222;
  padding: 6px 4px;
  transition: transform 0.2s ease;
}
.yx-svc-item:active {
  transform: scale(0.94);
}
.yx-svc-item img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  background: #f6f6f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  animation: yx-float 3.8s ease-in-out infinite;
}
.yx-svc-item:nth-child(2) img {
  animation-delay: 0.25s;
}
.yx-svc-item:nth-child(3) img {
  animation-delay: 0.5s;
}
.yx-svc-item:nth-child(4) img {
  animation-delay: 0.75s;
}
.yx-svc-item:nth-child(5) img {
  animation-delay: 1s;
}
.yx-svc-item:nth-child(6) img {
  animation-delay: 1.25s;
}
.yx-svc-item b {
  font-size: 13px;
  font-weight: 800;
}
.yx-svc-item em {
  font-style: normal;
  font-size: 11px;
  color: #999;
}

.yx-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 16px 16px;
  min-height: 88px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(255, 160, 40, 0.28);
  transition: transform 0.2s ease;
}
.yx-banner:active {
  transform: scale(0.985);
}
.yx-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: yx-pulse-soft 5s ease-in-out infinite;
}
.yx-banner-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.12) 100%);
}
.yx-banner-copy,
.yx-banner > em {
  position: relative;
  z-index: 1;
}
.yx-banner-copy {
  flex: 1;
  min-width: 0;
}
.yx-banner-copy strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
}
.yx-banner-copy span {
  font-size: 12px;
  opacity: 0.9;
}
.yx-banner > em {
  flex-shrink: 0;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  background: #ff642e;
  color: #111;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.yx-feed-hd {
  background: #f5f5f5;
  margin: 0 -12px;
  padding: 4px 12px 8px;
}
.yx-feed-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.yx-feed-tabs::-webkit-scrollbar {
  display: none;
}
.yx-feed-tabs button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font-size: 15px;
  color: #666;
  font-weight: 600;
  position: relative;
}
.yx-feed-tabs button.is-on {
  color: #111;
  font-weight: 900;
  font-size: 16px;
}
.yx-feed-tabs button.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 3px;
  margin-left: -8px;
  border-radius: 2px;
  background: #ff642e;
}

.yx-brands-wrap {
  margin-bottom: 8px;
}
.yx-brands {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.yx-brands::-webkit-scrollbar {
  display: none;
}
.yx-brands button {
  flex: 0 0 auto;
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.yx-brands button.more {
  background: #111;
  color: #ff642e;
}

.yx-chips-wrap {
  margin-bottom: 10px;
}
.yx-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.yx-chips::-webkit-scrollbar {
  display: none;
}
.yx-chips button {
  flex: 0 0 auto;
  border: 0;
  background: #fff;
  color: #555;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
}
.yx-chips button.is-on {
  background: #111;
  color: #ff642e;
}

.yx-cars-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.yx-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
  line-height: 1.7;
}
.yx-foot a {
  color: #666;
  font-weight: 700;
}

.yx-home .m-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.yx-home .m-card,
.yx-home .m-grid > a {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

@media (prefers-reduced-motion: reduce) {
  .yx-anim,
  .yx-tile-ico,
  .yx-svc-item img,
  .yx-banner-bg {
    animation: none !important;
  }
}
