/* 暗巷列表页 */
.page-alley {
  display: flex;
  flex-direction: column;
}
.page-main--alley {
  flex: 1;
  padding-top: 16px;
  padding-bottom: 40px;
}

.alley-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-bar__marquee--h5,
.alley-filter-row__label--h5,
.alley-pill--h5,
.alley-sort-tabs--h5,
.alley-card__meta-line--h5 {
  display: none;
}

/* 省份 / 城市筛选 */
.alley-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alley-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.alley-filter-row__label {
  flex-shrink: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}

.alley-filter-row__content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.alley-filter__value {
  color: var(--primary);
  font-size: 14px;
  line-height: 24px;
}

.alley-filter__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  background-color: #fff;
  border: 1px solid var(--primary);
  border-radius: 32px;
  color: var(--primary);
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
}

.alley-filter__more:hover {
  background: rgba(236, 72, 153, 0.06);
}

.alley-filter__more.is-disabled,
.alley-filter__more:disabled,
.alley-pill.is-disabled,
.alley-pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 省份 / 城市选择弹层 */
.alley-picker {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.alley-picker[hidden] {
  display: none !important;
}

.alley-picker__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 21, 0.45);
}

.alley-picker__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.alley-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f3;
}

.alley-picker__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-title, #111);
}

.alley-picker__close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.alley-picker__body {
  padding: 16px 20px 20px;
  overflow: auto;
}

.alley-picker__group + .alley-picker__group {
  margin-top: 16px;
}

.alley-picker__group-title {
  margin: 0 0 10px;
  color: var(--text-muted, #999);
  font-size: 13px;
  font-weight: 500;
}

.alley-picker__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alley-picker__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--text-secondary, #666);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.alley-picker__item--all {
  margin-bottom: 12px;
}

.alley-picker__item:hover {
  background: rgba(236, 72, 153, 0.08);
  color: var(--primary);
}

.alley-picker__item.is-active {
  background: var(--primary);
  color: #fff;
}

/* 热门城市 */
.alley-hot-cities {
  align-self: stretch;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  overflow: hidden;
}

.alley-hot-cities__title {
  align-self: stretch;
  margin: 0;
  color: var(--text-title, #1f1f1f);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  word-wrap: break-word;
}

.alley-hot-cities__list {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  overflow: hidden;
}

.alley-hot-cities__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--tag-bg, #fce7f3);
  color: var(--tag-red, #be185d);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  word-wrap: break-word;
  white-space: nowrap;
}

.alley-hot-cities__item:hover {
  background: rgba(236, 72, 153, 0.18);
}

.alley-hot-cities__item.is-active {
  background: var(--primary, #ec4899);
  color: #fff;
  font-weight: 500;
}

/* 选择城市：默认 PC 居中弹窗，H5 全屏 */
.alley-picker--city-full {
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: transparent;
}

.alley-picker--city-full .alley-picker__overlay--city {
  display: block;
}

.alley-picker--city-full .alley-city-full {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.alley-city-full__head--h5 {
  display: none;
}

.alley-city-full__head--pc {
  display: flex;
}

.alley-city-full__scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 20px 20px;
  -webkit-overflow-scrolling: touch;
}

.alley-picker--city-full .alley-hot-cities {
  padding: 0 0 16px;
  margin: 0;
  background: transparent;
}

.alley-city-list {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.alley-city-list__title {
  align-self: stretch;
  margin: 0;
  color: var(--text-title, #1f1f1f);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.alley-city-list__title--h5 {
  display: none;
}

.alley-city-full__head {
  flex-shrink: 0;
  height: 48px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.alley-city-full__head-inner {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.alley-city-full__back {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.alley-city-full__back img {
  width: 24px;
  height: 24px;
  display: block;
}

.alley-city-full__title {
  flex: 1;
  margin: 0;
  text-align: center;
  color: #292929;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.alley-city-full__locate {
  flex-shrink: 0;
  min-width: 24px;
  padding: 0;
  border: none;
  background: transparent;
  text-align: right;
  color: #656565;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.alley-picker__empty {
  margin: 0;
  color: var(--text-muted, #999);
  font-size: 14px;
}

html.alley-picker-open,
html.alley-picker-open body {
  overflow: hidden;
}

/* 排序 Tab */
.alley-page .av-tabs--pc {
  border-radius: var(--radius-sm);
}

.alley-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alley-list-status {
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.alley-list-status.is-error {
  color: #c0392b;
  background: #fff3f3;
}

.alley-grid__empty {
  width: 100%;
  margin: 24px 0;
  text-align: center;
  color: var(--text-muted, #999);
  font-size: 14px;
  line-height: 22px;
}

/* 卡片网格 */
.alley-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.alley-card {
  width: 276px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.alley-card__title {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alley-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alley-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
}

.alley-card__meta-item img {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.alley-card__thumb {
  width: 100%;
  aspect-ratio: 252 / 151;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #d1d5db;
}

.alley-card__location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alley-card__location img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ===== H5: darkAlley-h5.css ===== */

/* 暗巷列表页 — H5 适配 */

@media (max-width: 767px) {
  body {
    background: var(--bg-h5);
  }

  .page-main--alley {
    padding-top: 0;
    padding-bottom: 24px;
  }

  .page-main--alley .container {
    max-width: none;
    padding: 0;
  }

  .alley-page {
    gap: 0;
  }

  .notice-bar__text--pc,
  .alley-filter-row__label--pc,
  .alley-filter__value--pc,
  .alley-filter__more--pc,
  .av-tabs--pc,
  .alley-card__meta--pc {
    display: none;
  }

  .alley-filter-row__label--h5,
  .alley-card__meta-line--h5 {
    display: block;
  }

  .alley-pill--h5 {
    display: inline-flex;
  }

  .alley-sort-tabs--h5 {
    display: flex;
  }

  /* 省份 / 城市筛选 */
  .alley-filters {
    gap: 0;
    padding: 16px 12px;
    background: var(--bg-card);
  }

  .alley-filter-row {
    min-height: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    gap: 8px;
  }

  .alley-filter-row + .alley-filter-row {
    margin-top: 8px;
  }

  .alley-filter-row__label {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-title);
  }

  .alley-filter-row__content {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .alley-pill {
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    cursor: pointer;
  }

  .alley-pill--active {
    background: var(--primary);
    color: #fff;
    font-weight: 500;
  }

  .alley-pill--muted {
    background: #f3f4f6;
    color: var(--text-secondary);
    font-weight: 400;
  }

  .alley-picker:not(.alley-picker--city-full) {
    align-items: flex-end;
    padding: 0;
  }

  .alley-picker:not(.alley-picker--city-full) .alley-picker__panel {
    width: 100%;
    max-height: 75vh;
    border-radius: 16px 16px 0 0;
  }

  /* H5：选择城市全屏 */
  .alley-picker--city-full {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: #f5f5f7;
  }

  .alley-picker--city-full .alley-picker__overlay--city {
    display: none;
  }

  .alley-picker--city-full .alley-city-full {
    width: 100%;
    max-height: none;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    background: #f5f5f7;
  }

  .alley-city-full__head--h5 {
    display: block;
  }

  .alley-city-full__head--pc {
    display: none;
  }

  .alley-city-full__scroll {
    gap: 8px;
    padding: 0;
  }

  .alley-picker--city-full .alley-hot-cities {
    padding: 16px;
    background: #fff;
  }

  .alley-city-list {
    gap: 12px;
    padding: 16px;
    background: #fff;
  }

  .alley-city-list__title--h5 {
    display: block;
  }

  .alley-city-list .alley-picker__item--all {
    display: none;
  }

  .alley-city-list .alley-picker__grid {
    gap: 8px;
  }

  .alley-city-list .alley-picker__item {
    padding: 6px 12px;
    border-radius: 6px;
    background: #f3f4f6;
    color: var(--text-title, #1f1f1f);
    font-size: 12px;
    font-weight: 400;
    min-width: 0;
  }

  .alley-city-list .alley-picker__item.is-active {
    background: var(--primary, #ec4899);
    color: #fff;
  }

  /* 排序 Tab */
  .alley-sort-tabs {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 16px;
    background: var(--bg-card);
  }

  .alley-sort-tabs__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
  }

  .alley-sort-tabs__item--active {
    flex: 0 0 auto;
    color: var(--primary);
    font-weight: 500;
  }

  .alley-sort-tabs__indicator {
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary);
  }

  /* 列表区 */
  .alley-list-wrap {
    gap: 0;
    padding: 12px 16px;
    background: var(--bg-h5);
  }

  .alley-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 343px;
    margin: 0 auto;
    padding: 0;
  }

  .alley-card {
    width: 100%;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .alley-card__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .alley-card__meta-line {
    margin: 0;
    color: var(--text-placeholder);
    font-size: 12px;
    line-height: 1.4;
  }

  .alley-card__thumb {
    height: 144px;
    aspect-ratio: auto;
    border-radius: 6px;
  }

  .alley-card__location {
    font-size: 12px;
    line-height: 1.4;
    gap: 4px;
  }

  .alley-list-wrap .pagination {
    margin-top: 12px;
    background: var(--bg-h5);
  }
}
