/* 全国云仓 — 列表筛选 + 卡片布局（参考商业地产列表风格） */

.wh-page {
  background: #f5f6f8;
}

.wh-page-main {
  padding-block: calc(var(--section-spacing-y) * 0.65) var(--section-spacing-y);
}

.wh-page-head {
  margin-bottom: var(--stack-md);
}

.wh-page-head__title {
  margin: 0 0 0.35em;
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--text-main);
}

.wh-page-head__desc {
  margin: 0;
  font-size: var(--fs-body);
  color: var(--text-gray);
}

/* ---------- 筛选面板 ---------- */
.wh-filter-panel {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 4px;
  padding: 0;
  margin-bottom: var(--stack-md);
}

.wh-filter-row {
  display: flex;
  align-items: flex-start;
  gap: var(--stack-md);
  padding: 14px 20px;
  border-bottom: 1px solid #eef0f3;
}

.wh-filter-row:last-child {
  border-bottom: none;
}

.wh-filter-row--search {
  background: #fafbfc;
}

.wh-filter-label {
  flex: 0 0 56px;
  padding-top: 8px;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.wh-filter-body {
  flex: 1;
  min-width: 0;
}

.wh-filter-body--search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.wh-filter-body--region {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wh-filter-body--area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.wh-search-input {
  flex: 1 1 280px;
  min-width: 200px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: var(--fs-body);
  font-family: inherit;
}

.wh-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.wh-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.wh-pill-group--wrap {
  padding-top: 2px;
}

.wh-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: var(--text-main);
  font-size: var(--fs-body);
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.wh-pill:hover {
  color: var(--primary-color);
}

.wh-pill.is-active {
  color: var(--primary-color);
  font-weight: 700;
  background: rgba(255, 85, 0, 0.08);
}

.wh-area-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wh-area-custom input {
  width: 96px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: var(--fs-small);
  font-family: inherit;
}

.wh-area-custom__sep {
  color: var(--text-gray);
}

/* 省市区 Cascader */
.wh-region-picker {
  position: relative;
  display: inline-block;
}

.wh-region-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  font-size: var(--fs-body);
  font-family: inherit;
  color: var(--text-main);
  cursor: pointer;
}

.wh-region-trigger:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.wh-region-trigger__arrow {
  font-size: 12px;
  color: var(--text-gray);
}

.wh-region-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.wh-region-panel__cols {
  display: flex;
  max-height: 280px;
}

.wh-region-col {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 120px;
  max-width: 160px;
  overflow-y: auto;
  border-right: 1px solid #eef0f3;
}

.wh-region-col:last-child {
  border-right: none;
}

.wh-region-option {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: var(--fs-small);
  font-family: inherit;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-region-option:hover,
.wh-region-option.is-active {
  background: rgba(255, 85, 0, 0.08);
  color: var(--primary-color);
}

/* ---------- 工具栏 ---------- */
.wh-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--stack-sm);
  padding: 0 2px;
}

.wh-toolbar__meta {
  font-size: var(--fs-small);
  color: var(--text-gray);
}

.wh-toolbar__sort {
  display: flex;
  gap: 16px;
}

.wh-sort-btn {
  border: none;
  background: transparent;
  font-size: var(--fs-body);
  font-family: inherit;
  color: var(--text-gray);
  cursor: pointer;
  padding: 0;
}

.wh-sort-btn.is-active {
  color: var(--primary-color);
  font-weight: 700;
}

/* ---------- 列表卡片 ---------- */
.wh-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wh-list-item {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 0;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.wh-list-item:hover {
  border-color: rgba(255, 85, 0, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.wh-list-item__thumb {
  width: 200px;
  min-height: 150px;
  background: #eef1f5 center/cover no-repeat;
}

.wh-list-item__body {
  padding: 16px 18px;
  min-width: 0;
  border-right: 1px solid #f0f1f3;
}

.wh-list-item__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.wh-list-item__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.wh-list-item__badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.wh-list-item__badge--top {
  background: #fff3e6;
  color: #e67e00;
}

.wh-list-item__badge--rec {
  background: #e8f4ff;
  color: #1677ff;
}

.wh-list-item__loc {
  margin: 0 0 6px;
  font-size: var(--fs-small);
  color: var(--text-gray);
}

.wh-list-item__type-line {
  margin: 0 0 10px;
  font-size: var(--fs-small);
  color: #666;
}

.wh-list-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.wh-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wh-tag--feature {
  background: #fff7e6;
  color: #d48806;
}

.wh-tag--service {
  background: #f0f5ff;
  color: #2f54eb;
}

.wh-tag--type {
  background: #f6ffed;
  color: #389e0d;
}

.wh-list-item__summary {
  margin: 0;
  font-size: var(--fs-small);
  color: #888;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wh-list-item__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 16px 24px;
  min-width: 200px;
  text-align: right;
  flex-shrink: 0;
}

.wh-list-item__area {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
}

.wh-list-item__area-unit {
  font-size: 14px;
  font-weight: 600;
}

.wh-list-item__rent {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #e53935;
  line-height: 1.2;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-list-item__rent-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-gray);
}

.wh-list-item__views {
  margin-top: 10px;
  font-size: 12px;
  color: #aaa;
}

/* ---------- 通用 ---------- */
.wh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  font-size: var(--fs-body);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.wh-btn--primary {
  background: var(--primary-color);
  color: #fff;
}

.wh-btn--primary:hover {
  background: var(--primary-hover);
}

.wh-btn--ghost {
  background: #fff;
  color: var(--text-main);
  border: 1px solid #dcdfe6;
}

.wh-btn--ghost:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.wh-empty,
.wh-loading,
.wh-error {
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border: 1px dashed #dcdfe6;
  border-radius: 4px;
  color: var(--text-gray);
}

.wh-error {
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.25);
  background: #fff7f6;
}

.wh-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--stack-md);
}

.wh-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: var(--text-main);
  font-size: var(--fs-body);
  font-family: inherit;
  cursor: pointer;
}

.wh-page-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.wh-page-btn.is-active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.wh-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- 详情页 ---------- */
.wh-detail-main {
  padding-block: var(--section-spacing-y);
}

.wh-detail-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--stack-md);
  margin-bottom: var(--stack-md);
}

.wh-detail-card--hero {
  padding: var(--stack-md);
}

/* 标题左侧多图 */
.wh-detail-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--stack-md);
  align-items: start;
}

.wh-detail-head-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #eef1f5;
}

.wh-detail-head-gallery--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: var(--fs-small);
}

.wh-gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wh-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.wh-gallery-nav:hover {
  background: rgba(0, 0, 0, 0.65);
}

.wh-gallery-nav--prev { left: 8px; }
.wh-gallery-nav--next { right: 8px; }

.wh-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.wh-gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.wh-gallery-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.wh-detail-head__info {
  min-width: 0;
}

.wh-kv-section-divider {
  margin: var(--stack-md) 0 var(--stack-sm);
  border-top: 1px dashed var(--border-color);
}

.wh-kv-grid--feature {
  margin-top: 0;
}

.wh-kv-grid-value--tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 500;
}

.wh-detail-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.35em;
  line-height: 1.35;
  word-break: break-word;
}

.wh-detail-sub {
  font-size: var(--fs-small);
  color: var(--text-gray);
  margin: 0 0 var(--stack-sm);
}

.wh-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--stack-sm);
}

.wh-meta-chip {
  display: inline-block;
  padding: 0.2em 0.65em;
  border-radius: 4px;
  font-size: var(--fs-small);
  background: #f2f3f5;
  color: var(--text-gray);
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wh-meta-chip--primary {
  background: var(--primary-light);
  color: var(--primary-color);
}

.wh-meta-chip--rec {
  background: #e8f4ff;
  color: #1677ff;
}

.wh-detail-kv--compact {
  margin-top: var(--stack-sm);
}

.wh-section-title {
  font-size: var(--fs-h3);
  font-weight: 800;
  margin: 0 0 0.75em;
  color: var(--text-main);
}

.wh-detail-section {
  margin-bottom: var(--stack-md);
}

.wh-detail-card.wh-detail-section {
  margin-bottom: var(--stack-md);
}

.wh-kv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--stack-sm) var(--stack-md);
}

.wh-kv-grid-item {
  min-width: 0;
}

.wh-kv-grid-label {
  display: block;
  font-size: var(--fs-small);
  color: var(--text-gray);
  margin-bottom: 0.25em;
}

.wh-kv-grid-value {
  display: block;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}

.wh-kv-grid-value--block {
  line-height: 1.65;
  font-weight: 500;
}

.wh-kv-address {
  margin-top: var(--stack-sm);
  padding-top: var(--stack-sm);
  border-top: 1px dashed var(--border-color);
}

.wh-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wh-detail-tag {
  display: inline-block;
  padding: 0.25em 0.65em;
  border-radius: 4px;
  font-size: var(--fs-small);
  background: #f7f8fa;
  color: var(--text-main);
  border: 1px solid #e8eaed;
}

.wh-section-body {
  font-size: var(--fs-body);
  color: var(--text-gray);
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

.wh-detail-muted {
  color: var(--text-gray);
  font-size: var(--fs-body);
  margin: 0;
}

.wh-service-table {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.wh-service-row {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1.4fr;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--border-color);
  font-size: var(--fs-small);
  align-items: start;
}

.wh-service-row:first-child {
  border-top: none;
}

.wh-service-row--head {
  background: #f7f8fa;
  font-weight: 700;
  color: var(--text-main);
}

.wh-service-td {
  min-width: 0;
  word-break: break-word;
}

.wh-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wh-stats-chip {
  font-size: var(--fs-small);
  color: var(--text-gray);
  padding: 0.35em 0.75em;
  background: #f7f8fa;
  border-radius: 4px;
}

.wh-detail-contact-hint {
  border-color: rgba(255, 85, 0, 0.2);
  background: linear-gradient(180deg, #fffaf6 0%, #fff 100%);
}

.wh-contact-hint-text {
  font-size: var(--fs-body);
  color: var(--text-gray);
  line-height: 1.75;
  margin: 0 0 var(--stack-sm);
}

.wh-detail-contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: var(--stack-md) 0;
  padding: 20px;
  background: #fff;
  border: 1px dashed rgba(255, 85, 0, 0.35);
  border-radius: 8px;
}

.wh-detail-contact-qr__img {
  display: block;
  width: 168px;
  height: 168px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.wh-detail-contact-qr__caption {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-main);
}

.wh-detail-contact-qr__fallback {
  margin: 0 0 var(--stack-sm);
  font-size: var(--fs-small);
  color: #c0392b;
  line-height: 1.65;
  text-align: center;
}

.wh-detail-card h2 {
  font-size: var(--fs-h3);
  font-weight: 800;
  margin: 0 0 0.75em;
  color: var(--text-main);
}

.wh-detail-card p {
  font-size: var(--fs-body);
  color: var(--text-gray);
  line-height: 1.8;
  margin: 0 0 0.75em;
}

.wh-detail-kv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--stack-sm);
}

.wh-detail-kv dt {
  font-size: var(--fs-small);
  color: var(--text-gray);
  margin-bottom: 0.2em;
}

.wh-detail-kv dd {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wh-detail-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--stack-sm);
  margin-top: var(--stack-md);
}

.wh-chip {
  display: inline-block;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  font-size: var(--fs-small);
  background: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
}

.wh-chip--muted {
  background: #f2f3f5;
  color: var(--text-gray);
}

@media (max-width: 1023px) {
  .wh-list-item {
    grid-template-columns: 160px 1fr;
  }

  .wh-list-item__aside {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    padding: 12px 18px;
    border-top: 1px solid #f0f1f3;
    text-align: left;
  }

  .wh-list-item__body {
    border-right: none;
  }
}

@media (max-width: 767px) {
  .wh-filter-row {
    flex-direction: column;
    gap: 8px;
  }

  .wh-filter-label {
    flex: none;
    padding-top: 0;
  }

  .wh-list-item {
    grid-template-columns: 1fr;
  }

  .wh-detail-head {
    grid-template-columns: 1fr;
  }

  .wh-detail-head-gallery {
    max-width: 100%;
  }

  .wh-kv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wh-service-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .wh-service-row--head {
    display: none;
  }

  .wh-service-td--name {
    font-weight: 700;
  }

  .wh-list-item__thumb {
    width: 100%;
    min-height: 180px;
  }

  .wh-detail-kv {
    grid-template-columns: 1fr 1fr;
  }
}
