/* =============================================================================
 * 古北德邻 · /rooms/ 房型子站增量样式
 * -----------------------------------------------------------------------------
 * 页面外壳（顶部栏 / 面包屑 / hero / wrap / cards / footer / 语言切换器）复用
 * ../guides/assets/style.css —— 与 /guides/ 内容集群保持同一套视觉，单一来源。
 * 本文件只放 /rooms/ 专有的区块：房源规格、实拍图册、要点清单、预订按钮、
 * 问答折叠、图片灯箱。
 * ===========================================================================*/

/* ---------- <picture> 只是档位选择容器，不参与布局 ---------- */
.card picture { display: block; }
.r-fig picture { display: block; }

/* ---------- 区块 ---------- */
.r-block { margin: 40px 0; }
.r-block h2 { border-top: none; padding-top: 0; margin: 0 0 14px; font-size: 24px; }
.r-block h2::after {
  content: ''; display: block; width: 46px; height: 3px;
  background: var(--gold); border-radius: 2px; margin-top: 10px;
}
.r-hint { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }

/* ---------- 房源规格表 ---------- */
.r-specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; margin: 34px 0 0; background: var(--line);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.r-specs > div { background: var(--card); padding: 14px 16px; }
.r-specs dt {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 4px;
}
.r-specs dd { margin: 0; font-size: 15.5px; color: var(--ink); line-height: 1.55; }

/* ---------- 实拍图册 ---------- */
.r-gal {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.r-fig { margin: 0; }
.r-fig img {
  width: 100%; height: 165px; object-fit: cover; display: block;
  border-radius: 10px; box-shadow: 0 4px 16px rgba(0, 0, 0, .09); transition: transform .25s, box-shadow .25s;
}
.r-fig img:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .16); }

/* ---------- 要点清单 ---------- */
.r-list { list-style: none; padding: 0; margin: 0; }
.r-list li {
  position: relative; padding: 10px 0 10px 30px;
  border-bottom: 1px dashed var(--line); font-size: 16px;
}
.r-list li:last-child { border-bottom: none; }
.r-list li::before {
  content: '✓'; position: absolute; left: 4px; top: 10px;
  color: var(--accent); font-weight: 800;
}

/* ---------- 房型清单（纯链接） ---------- */
.r-plain { list-style: none; padding: 0; margin: 0; }
.r-plain li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.r-plain li:last-child { border-bottom: none; }
.r-plain a { font-weight: 600; }

/* ---------- 预订 ---------- */
.r-book {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 22px 22px 18px;
}
.r-otas { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.r-ota {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  color: #fff; background: var(--accent); text-decoration: none;
  border: 1px solid transparent; transition: .2s;
}
.r-ota:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .16); }
.r-ota.ota-booking { background: #003580; }
.r-ota.ota-agoda { background: #d3232a; }
.r-ota.ota-expedia { background: #1b2f6e; }
.r-ota.r-phone { background: #fff; color: var(--accent); border-color: var(--accent); }

/* ---------- 问答折叠 ---------- */
.r-faq {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; margin: 10px 0;
}
.r-faq summary { cursor: pointer; font-weight: 700; font-size: 16.5px; color: #2c2519; }
.r-faq summary::-webkit-details-marker { color: var(--gold); }
.r-faq[open] summary { color: var(--accent); }
.r-faq p { margin: 10px 0 2px; color: #3a342b; font-size: 15.5px; }

/* ---------- 枢纽页卡片补充 ---------- */
.card .r-spec { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.card .r-spec span:first-child { color: var(--gold); font-weight: 600; }
.card .more { margin-top: 10px; font-weight: 600; color: var(--gold); font-size: 14.5px; }

/* ---------- 灯箱 ---------- */
.r-lb {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; flex-direction: column;
  background: rgba(18, 26, 22, .94); padding: 24px;
}
.r-lb.show { display: flex; }
.r-lb-img {
  max-width: min(94vw, 1180px); max-height: 80vh; border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6); background: #fff;
}
.r-lb-cap { color: #e9efe9; margin: 14px 0 0; font-size: 14px; text-align: center; }
.r-lb-close, .r-lb-prev, .r-lb-next {
  position: absolute; border: none; color: #fff; cursor: pointer; transition: .2s;
  background: rgba(255, 255, 255, .16); border-radius: 50%;
}
.r-lb-close { top: 16px; right: 20px; width: 46px; height: 46px; font-size: 26px; line-height: 1; }
.r-lb-prev, .r-lb-next {
  top: 50%; transform: translateY(-50%); width: 50px; height: 50px;
  font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.r-lb-prev { left: 12px; }
.r-lb-next { right: 12px; }
.r-lb-close:hover, .r-lb-prev:hover, .r-lb-next:hover { background: rgba(255, 255, 255, .34); }
.r-lb-prev[hidden], .r-lb-next[hidden] { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .r-block { margin: 30px 0; }
  .r-specs { grid-template-columns: 1fr; border-radius: 10px; }
  .r-gal { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .r-fig img { height: 118px; }
  .r-hero { padding: 48px 18px 38px; }
  .r-ota { flex: 1 1 46%; padding: 11px 12px; font-size: 14px; }
}
@media (max-width: 420px) {
  .r-ota { flex: 1 1 100%; }
}

/* ---------- 房型对比表（每页一份，便于横向比较与内部跳转） ---------- */
.r-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.r-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.r-table th, .r-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.r-table thead th {
  background: #f6f2e8; color: var(--accent); font-size: 12.5px; letter-spacing: .04em;
  text-transform: uppercase; font-weight: 700; white-space: nowrap;
}
.r-table tbody tr:last-child td { border-bottom: none; }
.r-table tbody tr.is-current { background: #fdf7ea; }
.r-table tbody tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--gold); font-weight: 700; }
.r-table a { font-weight: 600; }
@media (max-width: 620px) { .r-table { font-size: 14px; } .r-table th, .r-table td { padding: 9px 10px; } }
.r-list-title { font-size: 20px; line-height: 1.35; margin: 26px 0 14px; color: var(--accent); }
