/* 【文件说明】public\assets\show\show.css —— 前台电脑版样式表 */
/* ============================================================
   遇见你租房 · 房源官网样式（前台，客户浏览用）
   ============================================================ */
:root {
    --ink: #1b1f21;
    --ink-soft: #414a4e;
    --muted: #79838a;
    --line: #e8e2d6;
    --bg: #faf8f3;
    --card: #ffffff;
    --accent: #0f5f4e;
    --accent-deep: #0a4539;
    --accent-soft: #e9f3ef;
    --warm: #c0793f;
    --warm-soft: #fbf0e4;
    --danger: #b4453b;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(27, 31, 33, .07);
    --shadow-lg: 0 20px 60px rgba(27, 31, 33, .14);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button { font: inherit; cursor: pointer; }

h1, h2, h3 {
    font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "PingFang SC", serif;
    font-weight: 600;
    letter-spacing: .01em;
}

/* ---------------- 通用 ---------------- */
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
}

.section-head h2 {
    margin: 0;
    font-size: 26px;
}

.section-head .sub { color: var(--muted); font-size: 13px; }

.flash-wrap { width: min(1180px, calc(100% - 40px)); margin: 16px auto 0; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 12px; font-size: 14px; border: 1px solid transparent; }
.flash-success { background: #eaf5ee; color: #187044; border-color: #cfe8d8; }
.flash-danger  { background: #fdeeec; color: #a2362c; border-color: #f6d5d1; }
.flash-warning { background: #fdf4e3; color: #94601a; border-color: #f3e2bf; }

/* ---------------- 顶栏 ---------------- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(250, 248, 243, .88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.head-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }

.brand-mark {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    display: grid; place-items: center;
    font-size: 20px; font-family: "Songti SC", serif;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; letter-spacing: .06em; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .18em; }

.head-nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--ink-soft); }
.head-nav a { padding: 6px 0; border-bottom: 2px solid transparent; transition: .2s; }
.head-nav a:hover { color: var(--accent); border-color: var(--accent); }

.head-tel {
    flex: none;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(15, 95, 78, .22);
}
.head-tel .dot { width: 6px; height: 6px; border-radius: 50%; background: #8ee2c1; }

.site-main { padding: 34px 0 60px; }

/* ---------------- 首屏 ---------------- */
.hero {
    background: linear-gradient(135deg, #123f36 0%, #0f5f4e 55%, #1f7a63 100%);
    color: #fff;
    border-radius: 26px;
    padding: 46px 40px 40px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -60px; top: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 62%);
}

.hero-eyebrow { font-size: 12px; letter-spacing: .28em; color: #a8d8c8; text-transform: uppercase; }

.hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.25;
}

.hero p { margin: 0 0 26px; color: #cfe7de; font-size: 15px; max-width: 640px; }

.searchbar {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 16px;
    max-width: 720px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}

.searchbar input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--ink);
    background: transparent;
    min-width: 0;
}

.searchbar button {
    border: 0;
    background: var(--accent);
    color: #fff;
    padding: 12px 26px;
    border-radius: 12px;
    font-size: 15px;
    transition: .2s;
}
.searchbar button:hover { background: var(--accent-deep); }

.hero-stats { display: flex; gap: 32px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats div strong { font-size: 22px; font-family: "Songti SC", serif; }
.hero-stats div span { display: block; font-size: 12px; color: #a8d8c8; letter-spacing: .08em; }

/* ---------------- 筛选 ---------------- */
.filter-panel {
    margin: 26px 0 30px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow);
}

.filter-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); letter-spacing: .06em; }

.field select,
.field input {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 14px;
    min-width: 132px;
    color: var(--ink);
    outline: none;
}
.field select:focus, .field input:focus { border-color: var(--accent); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 7px 15px;
    font-size: 13px;
    color: var(--ink-soft);
    transition: .18s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.filter-actions { display: flex; gap: 10px; margin-left: auto; }
.btn-ghost {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--ink-soft);
}
.btn-solid {
    border: 0;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 14px;
}

/* ---------------- 房源卡片 ---------------- */
.result-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 22px;
}

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

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-media { position: relative; aspect-ratio: 4 / 3; background: #eee; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.placeholder {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #e3ecE8 0%, #d3e2dc 100%);
    color: #6c8a80;
    font-family: "Songti SC", serif;
    font-size: 22px;
    letter-spacing: .1em;
    text-align: center;
    padding: 10px;
}

.card-badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.pill {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 95, 78, .92);
    color: #fff;
    backdrop-filter: blur(4px);
}
.pill.warm { background: rgba(192, 121, 63, .94); }
.pill.gray { background: rgba(60, 68, 72, .82); }

.media-count {
    position: absolute; right: 10px; bottom: 10px;
    display: flex; gap: 6px;
}
.media-count span {
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-title h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.card-title .room-no { color: var(--muted); font-size: 12px; flex: none; }

.card-meta { color: var(--ink-soft); font-size: 13px; }
.card-meta em { font-style: normal; color: var(--line); margin: 0 6px; }

.card-price {
    margin-top: auto;
    display: flex; align-items: baseline; gap: 6px;
    color: var(--warm);
    font-family: "Songti SC", Georgia, serif;
}
.card-price .num { font-size: 24px; font-weight: 600; }
.card-price small { color: var(--muted); font-size: 12px; font-family: inherit; }

.card-actions { display: flex; gap: 8px; padding: 0 18px 18px; }

.btn-main, .btn-line, .btn-icon {
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    text-align: center;
    transition: .18s;
    border: 1px solid transparent;
}
.btn-main { flex: 1; background: var(--accent); color: #fff; }
.btn-main:hover { background: var(--accent-deep); }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink-soft); flex: none; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-line.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* ---------------- 空状态 / 分页 ---------------- */
.empty {
    background: var(--card);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
}

.pager { display: flex; gap: 8px; justify-content: center; margin: 36px 0 0; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 14px;
    color: var(--ink-soft);
    padding: 0 12px;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager .disabled { opacity: .45; }

/* ---------------- 详情页 ---------------- */
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-head .crumb { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.detail-head h1 { margin: 0; font-size: clamp(24px, 3.4vw, 34px); }
.detail-head .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.detail-price { text-align: right; }
.detail-price .num { font-size: 34px; color: var(--warm); font-family: "Songti SC", Georgia, serif; font-weight: 600; }
.detail-price small { color: var(--muted); font-size: 13px; display: block; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 28px; align-items: start; }

.gallery-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #ece9e2;
    aspect-ratio: 16 / 10;
    box-shadow: var(--shadow);
    cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .86);
    display: grid; place-items: center; color: var(--ink);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
}
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-counter {
    position: absolute; right: 14px; bottom: 14px;
    background: rgba(0, 0, 0, .5); color: #fff;
    font-size: 12px; padding: 4px 12px; border-radius: 999px;
}

.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: thin; }
.thumb {
    flex: none; width: 96px; height: 70px;
    border-radius: 10px; overflow: hidden;
    border: 2px solid transparent; background: #eee; padding: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--accent); }

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 20px; }
.panel h2 { margin: 0 0 14px; font-size: 19px; }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; font-size: 14px; }
.kv div { display: flex; flex-direction: column; gap: 2px; }
.kv div span { color: var(--muted); font-size: 12px; }
.kv div strong { font-weight: 500; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
}

.addr { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.map-wrap { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 230px; border: 0; display: block; }
.addr-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* 视频 */
.video-grid { display: grid; gap: 16px; }
.video-item { border-radius: 14px; overflow: hidden; background: #000; }
.video-item video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-cap { background: #fff; padding: 10px 14px; font-size: 13px; color: var(--ink-soft); }

/* 预约 */
.book-form { display: grid; gap: 12px; }
.book-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book-form label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 5px; }
.book-form input, .book-form textarea, .book-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    outline: none;
    background: #fff;
}
.book-form textarea { min-height: 78px; resize: vertical; }
.book-form input:focus, .book-form textarea:focus { border-color: var(--accent); }
.book-form .submit {
    border: 0;
    background: var(--accent);
    color: #fff;
    border-radius: 12px;
    padding: 13px 18px;
    font-size: 15px;
    margin-top: 4px;
}
.book-form .hint { font-size: 12px; color: var(--muted); }

/* 悬浮操作条 */
.action-bar {
    position: sticky;
    bottom: 16px;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    margin-top: 24px;
}
.action-bar .btn-main { padding: 12px 18px; font-size: 15px; }
.action-bar .btn-line { padding: 12px 16px; font-size: 14px; }

/* 相关房源 */
.related { margin-top: 34px; }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---------------- 对比页 ---------------- */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 14px;
}
.compare-table th, .compare-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}
.compare-table th {
    width: 132px;
    background: #f6f2ea;
    color: var(--ink-soft);
    font-weight: 500;
    white-space: nowrap;
}
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.compare-remove { color: var(--muted); font-size: 12px; border: 0; background: none; padding: 0; margin-top: 8px; text-decoration: underline; }

/* ---------------- 灯箱 ---------------- */
.lightbox {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(10, 14, 16, .92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; object-fit: contain; border-radius: 10px; }
.lightbox .close {
    position: absolute; top: 18px; right: 20px;
    width: 40px; height: 40px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 20px;
    cursor: pointer; z-index: 3;
}

/* 灯箱内的上一张 / 下一张 + 页码 */
.lightbox .lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 54px; height: 54px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .18); color: #fff;
    font-size: 26px; line-height: 1; cursor: pointer; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    transition: background .18s ease;
}
.lightbox .lb-nav:hover { background: rgba(255, 255, 255, .34); }
.lightbox .lb-nav.prev { left: 26px; }
.lightbox .lb-nav.next { right: 26px; }
.lightbox .lb-counter {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 14px; letter-spacing: .08em; opacity: .78; z-index: 3;
}

/* ---------------- 页脚 ---------------- */
.site-foot {
    border-top: 1px solid var(--line);
    background: #f3efe7;
    padding: 34px 0 40px;
    margin-top: 20px;
}
.foot-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.foot-brand strong { font-family: "Songti SC", serif; font-size: 20px; letter-spacing: .1em; }
.foot-brand p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.foot-links { display: flex; gap: 18px; font-size: 13px; color: var(--ink-soft); margin-left: auto; }
.foot-copy { margin: 0; font-size: 12px; color: var(--muted); width: 100%; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
    .detail-layout { grid-template-columns: 1fr; }
    .head-nav { display: none; }
    .hero { padding: 32px 24px 30px; border-radius: 20px; }
    .hero-stats { gap: 22px; }
    .foot-links { margin-left: 0; }
}

@media (max-width: 620px) {
    .head-inner { height: 60px; gap: 12px; }
    .head-tel { padding: 9px 14px; font-size: 13px; }
    .site-main { padding: 22px 0 46px; }
    .grid { grid-template-columns: 1fr; gap: 16px; }
    .searchbar { flex-direction: column; padding: 10px; }
    .searchbar button { padding: 12px; }
    .filter-row .field { flex: 1 1 44%; }
    .filter-actions { width: 100%; margin-left: 0; }
    .btn-ghost, .btn-solid { flex: 1; }
    .kv { grid-template-columns: 1fr; }
    .book-form .row2 { grid-template-columns: 1fr; }
    .compare-table { font-size: 13px; display: block; overflow-x: auto; }
    .detail-head { align-items: flex-start; }
    .detail-price { text-align: left; }
}


/* ===== 提交成功对话框（桌面版）===== */
.ok-modal{
  position:fixed;inset:0;z-index:9000;
  display:flex;align-items:center;justify-content:center;
  background:rgba(16,32,26,.55);backdrop-filter:blur(3px);
  opacity:0;transition:opacity .22s ease;padding:24px;
}
.ok-modal.is-in{opacity:1}
.ok-modal.is-hidden{opacity:0;pointer-events:none}
.ok-dialog{
  width:100%;max-width:380px;background:#fff;border-radius:16px;
  padding:28px 26px 22px;text-align:center;
  box-shadow:0 24px 60px rgba(0,0,0,.28);
  transform:translateY(14px) scale(.97);transition:transform .26s cubic-bezier(.2,.8,.3,1);
}
.ok-modal.is-in .ok-dialog{transform:none}
.ok-icon{
  width:60px;height:60px;margin:0 auto 14px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#e8f5ef;color:#0f5f4e;border:1px solid #cfe8dd;
}
.ok-dialog h3{margin:0 0 8px;font-size:19px;font-weight:700;color:#123f34}
.ok-dialog p{margin:0 0 18px;font-size:13.5px;line-height:1.75;color:#5b6b64}
.ok-tel{color:#0f5f4e;font-weight:600;text-decoration:none}
.ok-btn{
  display:inline-block;min-width:170px;padding:11px 22px;border:0;border-radius:999px;
  background:#0f5f4e;color:#fff;font-size:14px;font-weight:600;cursor:pointer;
}
.ok-btn:hover{background:#0b4f41}
