/* ============================================================
   兴福出租 · 整体 UI（仅视觉）
   方向：住宅实景首屏 · 墨绿与米白 · 紧凑房源目录
   前台视觉层；业务数据与后台功能由原有脚本提供。
   ============================================================ */

.redesign-v3 {
  --canvas: #f7f5ef;
  --paper: #fffdf8;
  --ink: #263d32;
  --muted: #5e6a61;
  --muted-2: var(--muted);
  --on-photo: #f6f1e4;
  --on-photo-muted: rgba(246, 241, 228, .78);
  --line: #e1e2d9;
  --green: #285541;
  --green-d: #214b3c;
  --green-soft: #e8f0eb;
  --red: var(--green-d);
  --red-dark: #193c30;
  --red-soft: var(--green-soft);
  --sand: #e8f0eb;
  --shadow: 0 1px 2px rgba(26, 36, 32, 0.04), 0 8px 24px rgba(26, 36, 32, 0.06);
  --shadow-hover: 0 2px 4px rgba(26, 36, 32, 0.05), 0 14px 32px rgba(26, 36, 32, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --display: "STKaiti", "KaiTi", "Noto Serif SC", "Songti SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --button-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.redesign-v3 :focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.redesign-v3 .container {
  width: min(1080px, calc(100% - 40px));
}

/* ---------- 顶栏 ---------- */
.redesign-v3 .site-header {
  height: 64px;
  background: rgba(247, 245, 239, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
}

.redesign-v3 .nav-wrap {
  height: 64px;
  gap: 28px;
}

.redesign-v3 .brand-seal {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
}

.redesign-v3 .brand strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.redesign-v3 .brand small {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
}

.redesign-v3 .site-nav {
  gap: 28px;
}

.redesign-v3 .site-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s ease;
}

.redesign-v3 .site-nav a:hover {
  color: var(--green);
}

.redesign-v3 .top-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
  transition: background 0.18s ease;
}

.redesign-v3 .top-call:hover {
  background: var(--red-dark);
}

.redesign-v3 .top-call:active {
  background: var(--red-dark);
}

/* ---------- 首屏：照片与房源概况组成同宽、连续的住宅招牌 ---------- */
.redesign-v3 .hero {
  position: relative;
  width: min(1080px, calc(100% - 40px));
  margin: 24px auto 0;
  height: 460px;
  min-height: 420px;
  padding: 0;
  background: var(--green-d);
  color: var(--on-photo);
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.redesign-v3 .hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  width: calc(100% - 72px);
  padding: 0;
  display: flex;
  align-items: flex-end;
}

.redesign-v3 .hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: none;
  padding: 28px 0 36px;
  color: var(--on-photo);
  transform: none;
}

.redesign-v3 .hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.redesign-v3 .hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 32, 26, .38) 0%, rgba(18, 32, 26, .12) 32%, rgba(18, 32, 26, .0) 58%),
    linear-gradient(180deg, rgba(18, 32, 26, .04) 0%, rgba(18, 32, 26, .0) 48%, rgba(18, 32, 26, .52) 100%);
  animation: xingfu-shade 7s ease-out both;
  animation-duration: 7s !important;
  animation-iteration-count: 1 !important;
  animation-fill-mode: forwards !important;
}

.redesign-v3 .hero-photo img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transform-origin: 48% 42%;
  will-change: transform;
  animation: xingfu-zoom 7s cubic-bezier(.08, .72, .18, 1) both;
  animation-duration: 7s !important;
  animation-iteration-count: 1 !important;
  animation-fill-mode: forwards !important;
}

.redesign-v3 .place-line {
  display: none;
}

.redesign-v3 .hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.redesign-v3 .hero-occupancy {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--on-photo);
}

.redesign-v3 .hero-occupancy:empty {
  display: none;
}

.redesign-v3 .hero-lede {
  position: relative;
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: var(--on-photo);
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .32em;
  white-space: nowrap;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  text-shadow: 0 1px 10px rgba(12, 24, 18, .45);
  animation: xingfu-fade 2.2s cubic-bezier(.22, 1, .36, 1) .28s both;
  animation-duration: 2.2s !important;
  animation-delay: .28s !important;
  animation-iteration-count: 1 !important;
}

.redesign-v3 .hero-lede.is-plain {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.75;
  white-space: normal;
  animation: none !important;
}

@keyframes xingfu-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

@keyframes xingfu-shade {
  from {
    opacity: .55;
  }
  to {
    opacity: 1;
  }
}

@keyframes xingfu-fade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.redesign-v3 .button-red {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  box-shadow: none;
}

.redesign-v3 .button-red:hover {
  background: var(--red-dark);
}

/* ---------- 房源概况条 ---------- */
.redesign-v3 .hero-ledger {
  position: static;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 80px;
  background: var(--paper);
  border-top: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
  box-shadow: none;
}

.redesign-v3 .hero-ledger > div {
  position: relative;
  min-width: 0;
  gap: 6px;
  padding: 17px 8px;
  border-right: 0;
}

.redesign-v3 .hero-ledger > div:not(:last-of-type)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 28%;
  bottom: 28%;
  width: 1px;
  background: var(--line);
}

.redesign-v3 .hero-ledger .ledger-current {
  background: transparent;
}

.redesign-v3 .ledger-current > span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 2px;
}

.redesign-v3 .hero-ledger strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  min-height: 38px;
  font-family: var(--sans);
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  color: var(--green-d);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.redesign-v3 .hero-ledger strong small {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.redesign-v3 .hero-ledger strong.ledger-empty {
  font-size: 22px;
  font-weight: 500;
}

.redesign-v3 .hero-ledger span {
  margin-top: 0;
  color: var(--green-d);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.redesign-v3 .hero-ledger b {
  color: var(--green-d);
}

/* ---------- 区块通用 ---------- */
.redesign-v3 .room-section,
.redesign-v3 .price-section {
  border: 0;
}

.redesign-v3 .room-section {
  padding: 52px 0 56px;
  background: var(--canvas);
}

.redesign-v3 .section-heading {
  display: block;
  margin-bottom: 22px;
}

.redesign-v3 .section-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.redesign-v3 .section-heading h2,
.redesign-v3 .price-intro h2,
.redesign-v3 .amenities-heading h2,
.redesign-v3 .location-heading h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(26px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.redesign-v3 .room-summary {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 筛选 ---------- */
.redesign-v3 .filter-bar {
  min-height: auto;
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  gap: 8px;
}

.redesign-v3 .filter-options {
  gap: 20px;
  padding: 0;
  scrollbar-width: none;
}

.redesign-v3 .filter-options::-webkit-scrollbar {
  display: none;
}

.redesign-v3 .filter-button {
  min-height: 40px;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.redesign-v3 .filter-button:hover {
  border-color: transparent;
  border-bottom-color: var(--line);
  color: var(--ink);
  background: none;
}

.redesign-v3 .filter-button.active {
  border-color: transparent;
  border-bottom-color: var(--green);
  background: none;
  color: var(--ink);
  font-weight: 700;
}

.redesign-v3 .filter-button:disabled {
  background: none;
  color: var(--muted);
  border-color: transparent;
}

.redesign-v3 .filter-more {
  display: none;
  color: var(--muted-2);
}

.redesign-v3 .refresh-button {
  display: none;
}

/* ---------- 房源卡片 ---------- */
.redesign-v3 .rooms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.redesign-v3 .room-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: background 0.18s ease;
}

.redesign-v3 .room-card:hover {
  transform: none;
  border-color: var(--line);
  background: var(--canvas);
}

.redesign-v3 .room-card-button {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 24px;
  width: 100%;
  min-height: 206px;
  padding: 16px 0;
  text-align: left;
  background: none;
  border: 0;
}

.redesign-v3 .room-list-thumb {
  position: relative;
  width: 260px;
  height: 170px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(30, 51, 41, .12);
  background: #e4f0f8;
}

.redesign-v3 .room-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.94) contrast(.98);
  transition: opacity 0.18s ease;
}

.redesign-v3 .room-card:hover .room-cover {
  opacity: .9;
}

.redesign-v3 .availability {
  display: inline-block;
  width: fit-content;
  margin-bottom: 3px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green-d);
  font-size: 11px;
  font-weight: 700;
}

.redesign-v3 .photo-label {
  position: absolute;
  left: 6px;
  right: auto;
  bottom: auto;
  top: 6px;
  z-index: 2;
  max-width: calc(100% - 12px);
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 3px;
  background: rgba(26, 36, 32, 0.58);
  color: #fff;
  font-size: 10px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.redesign-v3 .room-rent {
  display: none;
}

.redesign-v3 .room-rent b {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.redesign-v3 .room-rent small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
}

.redesign-v3 .room-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  padding: 0;
  gap: 8px;
}

.redesign-v3 .room-name-line {
  display: block;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 700;
  font-style: normal;
  font-variant-numeric: normal;
  line-height: 1.35;
  color: var(--ink);
}

.redesign-v3 .room-meta-line {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.redesign-v3 .room-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.redesign-v3 .room-detail-link svg {
  width: 14px;
  height: 14px;
}

.redesign-v3 .room-card-foot,
.redesign-v3 .room-number,
.redesign-v3 .room-card-top .photo-watermark {
  display: none;
}

.redesign-v3 .room-list-price {
  align-self: center;
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.redesign-v3 .room-list-price b {
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 700;
}

.redesign-v3 .room-list-price small {
  color: var(--muted);
  font-size: 10px;
}

.redesign-v3 .room-thumb-fallback {
  color: var(--green);
  font-size: 26px;
  font-weight: 700;
}

.redesign-v3 .empty-state,
.redesign-v3 .loading-state {
  padding: 48px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
  color: var(--muted);
}

/* ---------- 租房约定 ---------- */
.redesign-v3 .price-section {
  padding: 52px 0;
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.redesign-v3 .agreement-details {
  margin-top: 16px;
}

.redesign-v3 .agreement-details summary {
  min-height: 44px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* 租房约定与周边配套统一为轻量信息列表，减少独立卡片感 */
.redesign-v3 .agreement-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.redesign-v3 .agreement-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 2px 14px;
  align-content: center;
  align-items: start;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.redesign-v3 .agreement-icon {
  width: 64px;
  height: 64px;
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 22px;
  font-weight: 700;
}

.redesign-v3 .agreement-card:nth-child(2n) .agreement-icon,
.redesign-v3 .agreement-card:nth-child(3n) .agreement-icon {
  background: var(--green-soft);
  color: var(--green);
}

.redesign-v3 .agreement-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
}

.redesign-v3 .agreement-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 820px) {
  .redesign-v3 .agreement-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 2px 12px;
    padding: 10px 0;
  }
  .redesign-v3 .agreement-icon { width: 52px; height: 52px; border-radius: 14px; grid-row: span 2; font-size: 20px; }
}

/* ---------- 页脚（院门告示：左齐三组，一组一条边） ---------- */
.redesign-v3 .site-footer {
  padding: 32px 0 24px;
  background: var(--canvas);
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
}

.redesign-v3 .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.redesign-v3 .footer-identity,
.redesign-v3 .footer-notes,
.redesign-v3 .footer-record {
  width: 100%;
}

.redesign-v3 .footer-brand {
  align-items: center;
  gap: 10px;
}

.redesign-v3 .footer-brand .brand-seal {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 900;
}

.redesign-v3 .footer-brand strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.redesign-v3 .footer-blurb {
  display: block;
  margin: 8px 0 0;
  max-width: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.redesign-v3 .footer-notes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.redesign-v3 .footer-guide,
.redesign-v3 .footer-status {
  display: block;
  margin: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

.redesign-v3 .footer-guide {
  color: var(--ink);
}

.redesign-v3 .footer-status {
  color: var(--muted);
}

.redesign-v3 .footer-record {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  margin: 2px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

.redesign-v3 .footer-record a {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 2px 0;
  color: var(--muted);
  text-underline-offset: 3px;
}

.redesign-v3 .footer-record a:hover {
  color: var(--green);
  text-decoration: underline;
}

.redesign-v3 .footer-record #record-number {
  gap: 6px;
}

.redesign-v3 .footer-record #record-number > img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
}

@media (min-width: 880px) {
  .redesign-v3 .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas:
      "identity notes"
      "record record";
    align-items: end;
    column-gap: 48px;
    row-gap: 20px;
  }

  .redesign-v3 .footer-identity { grid-area: identity; }
  .redesign-v3 .footer-notes {
    grid-area: notes;
    align-items: flex-end;
    text-align: right;
  }
  .redesign-v3 .footer-record {
    grid-area: record;
    justify-content: space-between;
    margin-top: 0;
  }
}

/* ---------- 手机底栏 ---------- */
.redesign-v3 .mobile-actions {
  background: var(--paper);
  border-top: 1px solid var(--line);
  backdrop-filter: none;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}

.redesign-v3 .mobile-actions a {
  min-height: 46px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.redesign-v3 .mobile-actions a:first-child {
  background: var(--red);
  color: #fff;
}

.redesign-v3 .mobile-actions a:last-child {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* ---------- 房间详情弹层 ---------- */

/* ---------- 详情方案 B · 桌面层级 ---------- */
.redesign-v3 .modal-status { display: none !important; }

.redesign-v3 .modal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.redesign-v3 .modal-content h2 {
  display: block;
  margin: 0;
  margin-right: 0;
  flex: 1 1 auto;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.redesign-v3 .modal-price {
  display: flex;
  align-items: baseline;
  margin: 0;
  color: var(--green);
}

.redesign-v3 .modal-price-currency { font-size: 16px; font-weight: 700; }

.redesign-v3 .modal-price strong {
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
}

.redesign-v3 .modal-price-unit {
  margin-left: 3px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.redesign-v3 .room-facts {
  margin: 0 0 18px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--green-soft);
}

.redesign-v3 .room-facts div { padding: 14px 16px; }
.redesign-v3 .room-facts dt { font-size: 12px; }
.redesign-v3 .room-facts dd { margin-top: 4px; font-size: 15px; color: var(--ink); }

.redesign-v3 .photo-counter {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.redesign-v3 .modal-actions .button-dark {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.redesign-v3 .modal-photo-main { position: relative; }



.redesign-v3 .modal-backdrop {
  background: rgba(14, 26, 20, 0.62);
  backdrop-filter: blur(4px);
}

.redesign-v3 .room-modal {
  border-radius: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 64px rgba(14, 26, 20, 0.28);
}

.redesign-v3 .modal-photo {
  background: var(--green-soft);
}

.redesign-v3 .modal-photo-main {
  background-color: var(--green-soft);
}

.redesign-v3 .modal-photo-thumbs {
  min-height: 0;
  padding: 10px 8px 12px;
  gap: 8px;
}

.redesign-v3 .photo-thumb {
  width: 76px;
  flex: 0 0 76px;
  font-size: 11px;
}

.redesign-v3 .photo-thumb small {
  padding: 4px 2px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.redesign-v3 .photo-thumb.active {
  border-color: var(--green);
  box-shadow: none;
}

.redesign-v3 .modal-photo-thumbs:empty {
  display: none;
  min-height: 0;
  padding: 0;
  border: 0;
}

.redesign-v3 .modal-content h2 {
  font-family: var(--sans);
  color: var(--ink);
  display: inline-block;
  margin-right: 14px;
  vertical-align: baseline;
}

.redesign-v3 .modal-price strong {
  font-family: var(--sans);
  color: var(--ink);
}

.redesign-v3 .modal-price {
  display: inline-block;
  margin: 0 0 12px;
  vertical-align: baseline;
}

.redesign-v3 .modal-price strong {
  font-size: 28px;
}

.redesign-v3 .modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr;
  margin: 18px -40px -38px;
  padding: 14px 40px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
}

.redesign-v3 .modal-status {
  background: var(--green-soft);
  color: var(--green-d);
}

.redesign-v3 .modal-status.occupied {
  background: #ece8e4;
  color: #5c534c;
}

.redesign-v3 .modal-actions .button {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.redesign-v3 .modal-actions .button:hover {
  border-color: var(--ink);
  background: var(--paper);
  color: var(--ink);
}

/* ---------- Toast / 地图选择 ---------- */
.redesign-v3 .toast {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
}

.redesign-v3 .map-choice h2 {
  font-family: var(--sans);
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  .redesign-v3 .room-card,
  .redesign-v3 .room-cover,
  .redesign-v3 .top-call {
    transition: none;
  }

  .redesign-v3 .room-card:hover {
    transform: none;
  }
}

/* ---------- 响应式 ---------- */
@media (min-width: 641px) and (max-width: 959px) {
  .redesign-v3 .hero-photo img {
    height: 100%;
  }
}

@media (min-width: 600px) and (max-width: 959px) {
  .redesign-v3 .rooms-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .redesign-v3 .site-nav,
  .redesign-v3 .top-call {
    display: none;
  }

  body.redesign-v3 {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .redesign-v3 .mobile-actions {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
  }

  body.redesign-v3:not(.nav-configured) .mobile-actions {
    grid-template-columns: 1fr;
  }

  body.redesign-v3:not(.nav-configured) #mobile-navigate-link {
    display: none;
  }

  body.redesign-v3.modal-open .mobile-actions {
    visibility: hidden;
  }

  .redesign-v3 .toast {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .redesign-v3 .container {
    width: calc(100% - 32px);
  }

  .redesign-v3 .brand small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    color: var(--muted);
  }

  .redesign-v3 .site-header,
  .redesign-v3 .nav-wrap {
    height: 62px;
  }

  .redesign-v3 .hero {
    width: calc(100% - 32px);
    margin-top: 16px;
    height: auto;
    min-height: 0;
  }

  .redesign-v3 .hero-photo {
    position: relative;
    inset: auto;
    aspect-ratio: 8 / 5;
    background: var(--green-d);
    overflow: hidden;
  }

  .redesign-v3 .hero-photo::after {
    content: "";
    background:
      linear-gradient(180deg, rgba(18, 32, 26, .04) 0%, rgba(18, 32, 26, .08) 46%, rgba(18, 32, 26, .62) 100%),
      linear-gradient(90deg, rgba(18, 32, 26, .2) 0%, rgba(18, 32, 26, .04) 50%, transparent 76%);
  }

  /* 手机保留完整横向立面，文字叠在照片底部。 */
  .redesign-v3 .hero-photo img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 50%;
  }

  .redesign-v3 .hero-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
  }

  .redesign-v3 .hero h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .redesign-v3 .hero-copy {
    position: relative;
    z-index: 2;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 0 0 22px;
    background: transparent;
    text-shadow: none;
  }

  .redesign-v3 .hero-copy::before,
  .redesign-v3 .hero-copy::after {
    content: none;
  }

  .redesign-v3 .place-line {
    display: none;
  }

  .redesign-v3 .hero-occupancy {
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.25;
  }

  .redesign-v3 .hero-lede {
    max-width: none;
    margin: 0;
    padding: 0;
    color: var(--on-photo);
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: .28em;
  }

  .redesign-v3 .hero-ledger {
    width: calc(100% - 32px);
    min-height: 76px;
  }

  .redesign-v3 .hero-ledger > div {
    gap: 4px;
    padding: 12px 4px;
  }

  .redesign-v3 .hero-ledger strong {
    min-height: 30px;
    font-size: 26px;
    line-height: 30px;
    gap: 2px;
  }

  .redesign-v3 .hero-ledger strong small {
    font-size: 12px;
  }

  .redesign-v3 .hero-ledger strong.ledger-empty {
    font-size: 19px;
  }

  .redesign-v3 .hero-ledger span {
    font-size: 12px;
    line-height: 18px;
  }

  .redesign-v3 .section-heading {
    margin-bottom: 12px;
  }

  .redesign-v3 .filter-bar {
    margin-bottom: 12px;
  }

  .redesign-v3 .room-section {
    padding: 26px 0 28px;
  }

  .redesign-v3 .price-section {
    padding: 26px 0 32px;
  }

  .redesign-v3 .rooms-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .redesign-v3 .room-card-button {
    grid-template-columns: min(192px, 50vw) minmax(0, 1fr);
    grid-template-areas:
      "thumb body"
      "thumb price";
    align-items: start;
    column-gap: 14px;
    row-gap: 4px;
    min-height: 0;
    padding: 14px 0;
  }

  .redesign-v3 .room-list-thumb {
    grid-area: thumb;
    width: min(192px, 50vw);
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 7px;
  }

  .redesign-v3 .room-card-body {
    grid-area: body;
  }

  .redesign-v3 .room-list-price {
    grid-area: price;
    justify-self: start;
    align-self: start;
  }

  .redesign-v3 .room-name-line {
    font-size: 16px;
  }

  .redesign-v3 .room-meta-line {
    font-size: 13px;
  }

  .redesign-v3 .room-detail-link {
    margin-top: 6px;
    font-size: 12px;
  }

  .redesign-v3 .room-list-price b {
    font-size: 24px;
  }

  .redesign-v3 .photo-label {
    font-size: 10px;
  }

  .redesign-v3 .filter-more {
    display: none;
  }

  .redesign-v3 .filter-button {
    min-height: 44px;
    padding: 8px 0 10px;
    font-size: 13px;
  }

  .redesign-v3 .modal-photo {
    min-height: 0;
    display: block;
  }

  .redesign-v3 .room-modal {
    display: block;
  }

  .redesign-v3 .modal-content {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  .redesign-v3 .modal-content h2 {
    margin-right: 0;
    font-size: 22px;
  }

  .redesign-v3 .modal-price {
    margin-bottom: 0;
  }

  .redesign-v3 .modal-price strong {
    font-size: 26px;
  }

  .redesign-v3 .room-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .redesign-v3 .room-facts div {
    padding: 12px 6px;
    text-align: center;
  }

  .redesign-v3 .modal-actions {
    margin: 18px -20px calc(-28px - env(safe-area-inset-bottom));
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  }

  .redesign-v3 .modal-photo-main {
    aspect-ratio: 4 / 3;
  }

  .redesign-v3 .refresh-button {
    display: none;
  }

  .redesign-v3 .site-footer {
    padding: 28px 0 22px;
  }
}

@media (max-width: 380px) {
  .redesign-v3 .hero-ledger strong {
    font-size: 24px;
  }

  .redesign-v3 .room-meta-line {
    font-size: 12px;
  }
}

/* ---------- 电脑端：内容与照片沿统一版心对齐 ---------- */
.redesign-v3 .amenity-green,
.redesign-v3 .amenity-sand {
  background: var(--green-soft);
  border-color: transparent;
}

.redesign-v3 .amenity-sand .amenity-icon,
.redesign-v3 .amenity-icon {
  color: var(--green);
}

@media (min-width: 960px) {
  .redesign-v3 {
    font-size: 16px;
    line-height: 1.7;
  }

  .redesign-v3 .container {
    width: min(1140px, calc(100% - 64px));
  }

  .redesign-v3 .hero {
    width: min(1140px, calc(100% - 64px));
  }

  .redesign-v3 .hero-inner {
    width: calc(100% - 72px);
  }

  .redesign-v3 .hero-ledger {
    width: min(1140px, calc(100% - 64px));
    margin: 0 auto;
  }

  .redesign-v3 .hero-ledger > div:last-of-type {
    border-right: 0;
  }

  .redesign-v3 .room-section {
    padding: 36px 0 48px;
  }

  .redesign-v3 .room-section .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "heading filter"
      "list list";
    align-items: end;
    column-gap: 32px;
    row-gap: 8px;
  }

  .redesign-v3 .room-section .section-heading {
    grid-area: heading;
    margin: 0;
  }

  .redesign-v3 .room-section .filter-bar {
    grid-area: filter;
    margin: 0;
  }

  .redesign-v3 .room-section .floor-list {
    grid-area: list;
    margin-top: 20px;
  }

  .redesign-v3 .room-card-button {
    grid-template-columns: 300px minmax(0, 1fr);
    justify-items: start;
    gap: 32px;
    min-height: 220px;
    padding: 20px 0;
  }

  .redesign-v3 .room-list-thumb {
    width: 300px;
    height: 196px;
  }

  .redesign-v3 .amenities-section {
    padding: 64px 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
  }

  .redesign-v3 .amenities-section .container {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: 48px 64px;
    align-items: start;
  }

  .redesign-v3 .amenities-heading {
    margin: 0;
  }

  .redesign-v3 .amenities-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 28px;
  }

  .redesign-v3 .amenity-item,
  .redesign-v3 .amenity-green,
  .redesign-v3 .amenity-sand {
    min-height: 0;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .redesign-v3 .amenity-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    background: var(--green-soft);
  }

  .redesign-v3 .price-section {
    padding: 64px 0 72px;
  }

  .redesign-v3 .price-layout-single {
    max-width: none;
    margin: 0 auto;
  }

  .redesign-v3 .price-intro {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    column-gap: 64px;
    align-items: start;
  }

  .redesign-v3 .price-intro .section-kicker,
  .redesign-v3 .price-intro h2 {
    grid-column: 1;
  }

  .redesign-v3 .price-intro #rental-agreement,
  .redesign-v3 .price-intro .rental-agreement {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin: 0;
  }

  .redesign-v3 .agreement-cards {
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
    border-top: 0;
  }

  .redesign-v3 .agreement-card {
    min-height: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 16px 0;
  }

  .redesign-v3 .agreement-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 18px;
  }
}
