/* ------------------------------------------------------------------ */
/* SEO 静态页样式                                                       */
/* ------------------------------------------------------------------ */
/* 为什么单独一份 CSS：这些页面必须「关掉 JS 也能读」，不能依赖 Vue 运行时 */
/* 和 Element Plus 的六十多个分片。但**视觉必须是主站那一套**：           */
/* 色板、字号、圆角、卡片比例全部对齐 `src/styles/global.css` 与           */
/* `views/pc/PcRent.vue`，`_seo-guard.mjs` 会逐项比对色值，改一边不改另一  */
/* 边会直接报红。                                                       */
/* ------------------------------------------------------------------ */

:root {
  /* ☠️ 以下色值必须与 src/styles/global.css 完全一致（守门脚本比对） */
  --brand: #eb6120;
  --brand-dark: #c74e14;
  --brand-light: #fdeee6;
  --brand-light-2: #fbdfce;
  --ink: #1f2329;
  --ink-2: #5b636e;
  --ink-3: #8c949f;
  --line: #e7eaef;
  --bg: #f6f5f2;
  --ok: #0f6e56;
  --sidebar-bg: #241f1c;
  --sidebar-text: #b9aca3;

  --radius: 14px;
  --wrap: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 顶栏（对齐 PcNavBar：64px、38px logo、胶囊导航、右侧橙色按钮）── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.bar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  height: 38px;
  width: auto;
}

.links {
  display: flex;
  gap: 6px;
  flex: 1;
}

.links a {
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 7px 15px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.links a:hover {
  color: var(--brand);
  background: var(--brand-light);
}

.links a.on {
  color: #fff;
  background: var(--brand);
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(235, 97, 32, 0.3);
}

.actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-weight: 600;
  padding: 8px 18px;
  font-size: 13.5px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(235, 97, 32, 0.28);
}

.btn.primary:hover {
  background: var(--brand-dark);
}

.btn.ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn.ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn.lg {
  padding: 12px 26px;
  font-size: 15px;
  border-radius: 11px;
}

/* ── 面包屑 ── */
.crumb {
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 14px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.crumb a:hover {
  color: var(--brand);
}

.crumb i {
  font-style: normal;
  margin: 0 7px;
  opacity: 0.55;
}

.main {
  padding: 18px 0 72px;
}

/* ── 页头 ── */
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 8px 0 22px;
}

.hero-copy h1 {
  font-size: 30px;
  line-height: 1.38;
  margin-bottom: 10px;
}

.hero-copy .lead {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 760px;
}

.lead b,
.lead strong {
  color: var(--brand);
  font-weight: 600;
}

.points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.points li {
  font-size: 12.5px;
  color: var(--brand-dark);
  background: var(--brand-light);
  border: 1px solid var(--brand-light-2);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}

/* ── 数据条 ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 4px 0 26px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}

.stat i {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.stat b {
  font-size: 19px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat b small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 3px;
}

/* ── 两栏 ── */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 24px;
  align-items: start;
}

.col-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 84px;
}

.side-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
}

.side-box h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.side-box h2 small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.link-list a:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.link-list b {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* 侧栏里放房源卡：两列、去掉留白，别把 312px 撑爆 */
.side-box .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.side-box .card .body {
  padding: 9px 10px 10px;
}

.side-box .card .title {
  font-size: 12.5px;
  min-height: 0;
  -webkit-line-clamp: 2;
}

.side-box .card .meta,
.side-box .card .tags {
  display: none;
}

.side-box .card .price b {
  font-size: 15px;
}

/* ── 区块 ── */
.block {
  margin: 0 0 30px;
}

.block > h2 {
  font-size: 17px;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.block > h2 small {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-3);
}

/* ── 房源卡（对齐 PcRent：16:11 封面 + 角标 + 标签 + 价格/入住）── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-light-2);
  box-shadow: 0 14px 32px rgba(31, 35, 41, 0.1);
}

.cover {
  position: relative;
  aspect-ratio: 16 / 11;
  background: #f2f0ed;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: var(--ink-3);
}

.cover-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  max-width: 64%;
  font-size: 11.5px;
  color: #fff;
  background: rgba(31, 35, 41, 0.62);
  border-radius: 5px;
  padding: 2px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card .body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card .title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .meta {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  min-height: 20px;
}

.tag {
  font-size: 11px;
  color: var(--brand-dark);
  background: var(--brand-light);
  border-radius: 4px;
  padding: 1px 7px;
  white-space: nowrap;
}

.foot-row {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

/* 价格永远不换行：窄屏下「¥2,500」和「/月」被拆成两行是最刺眼的一处 */
.price {
  flex: 0 0 auto;
  white-space: nowrap;
}

.price b {
  font-size: 19px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.price em {
  font-size: 12px;
  color: var(--ink-3);
  font-style: normal;
  margin-left: 2px;
}

.avail {
  font-size: 12px;
  color: var(--ok);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--ink-2);
}

.empty a {
  color: var(--brand);
}

/* ── 胶囊内链 ── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-2);
  transition: all 0.15s;
}

.chip:hover,
.chip.on {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

.chip b {
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 5px;
  font-variant-numeric: tabular-nums;
}

.chip:hover b,
.chip.on b {
  color: var(--brand-dark);
}

/* ── 详情页 ── */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
  margin: 0 0 22px;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery a {
  display: block;
  background: #f2f0ed;
  aspect-ratio: 16 / 11;
}

/* 大图跨两行，高度由右侧两张按比例撑出来的行高决定 —— 别再给它写 aspect-ratio，
   否则两套比例打架，右下角会空出一块白 */
.gallery a:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
  height: 100%;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.detail-tags .tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
}

/* 侧栏价格卡 */
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.price-card .big {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--brand);
}

.price-card .big b {
  font-size: 30px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.price-card .big em {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-3);
}

.price-card dl {
  margin: 14px 0 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 8px;
}

.price-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.price-card dt {
  color: var(--ink-3);
}

.price-card dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
}

.price-card .btn {
  width: 100%;
}

.price-card .hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ── 参数表 ── */
.tbl {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13.5px;
}

.tbl th,
.tbl td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.tbl tr:last-child th,
.tbl tr:last-child td {
  border-bottom: 0;
}

.tbl th {
  width: 30%;
  color: var(--ink-3);
  font-weight: 400;
  background: #fbfaf8;
}

/* ── 正文块 ── */
.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--ink-2);
  font-size: 14px;
}

.prose p {
  margin: 0 0 12px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose b {
  color: var(--ink);
}

.prose a {
  color: var(--brand);
}

/* ── FAQ ── */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 18px;
  margin-bottom: 9px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  float: right;
  color: var(--brand);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: '−';
}

.faq p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 13.5px;
}

/* ── CTA ── */
.cta {
  background: linear-gradient(135deg, #fff6f0, #fff);
  border: 1px solid #f6d9c8;
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 30px;
}

.cta .cta-txt {
  flex: 1;
  min-width: 180px;
}

.cta .cta-txt b {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.cta .cta-txt span {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ── 页脚（同 PcLayout 深色块）── */
.foot {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 40px 0 18px;
}

.foot-inner {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.foot-brand {
  display: flex;
  align-items: center;
}

.foot-brand img {
  height: 42px;
  width: auto;
}

.foot-cols {
  display: flex;
  gap: 56px;
  margin-left: auto;
  flex-wrap: wrap;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 96px;
}

.foot-col b {
  color: #fff;
  font-size: 13.5px;
  margin-bottom: 2px;
}

.foot-col a {
  color: var(--sidebar-text);
  font-size: 13px;
}

.foot-col a:hover {
  color: var(--brand);
}

.foot-copy {
  padding-top: 15px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(185, 172, 163, 0.75);
}

.foot-copy a:hover {
  color: var(--brand);
}

/* ── 响应式 ── */
@media (max-width: 1080px) {
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .col-side {
    position: static;
  }
  .grid.four {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .wrap {
    padding: 0 14px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .links {
    display: none;
  }
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 16px;
  }
  .hero-copy h1 {
    font-size: 22px;
  }
  .card .title {
    font-size: 13.5px;
    min-height: 38px;
  }
  .foot-inner {
    gap: 26px;
  }
  .foot-cols {
    margin-left: 0;
    gap: 30px;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery a:first-child {
    grid-column: span 2;
    grid-row: auto;
  }
  .prose,
  .price-card {
    padding: 16px;
  }
  .tbl th,
  .tbl td {
    padding: 9px 12px;
  }
  .cta {
    padding: 16px;
  }
}
