/* ============ 出趣院集 · 网站全局样式 ============ */
:root {
  --primary: #C88A2A;
  --primary-dark: #A9711D;
  --primary-light: #F5E7CD;
  --green: #3A7D5A;
  --bg: #FAF7F0;
  --card: #ffffff;
  --text: #2D2A26;
  --text-light: #8B8378;
  --border: #EAE3D6;
  --danger: #D9534F;
  --shadow: 0 4px 16px rgba(93, 70, 30, 0.08);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--primary-dark); }
.logo .logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: block; object-fit: cover;
}
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--text); padding: 6px 2px; border-bottom: 2px solid transparent; transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- 城市选择器 ---------- */
.header-nav-wrap { display: flex; align-items: center; gap: 24px; }
.city-selector { position: relative; }
.city-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.city-btn:hover, .city-btn.active { border-color: var(--primary); color: var(--primary-dark); }
.city-btn .city-arrow { font-size: 11px; color: var(--text-light); transition: transform .2s; }
.city-btn.active .city-arrow { transform: rotate(180deg); }
.city-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 120;
  width: 560px; max-width: calc(100vw - 40px);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(93, 70, 30, 0.18);
  display: none; overflow: hidden;
}
.city-panel.show { display: flex; }
.city-provs {
  width: 140px; border-right: 1px solid var(--border);
  padding: 10px; overflow-y: auto; max-height: 340px;
}
.city-prov-btn {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border: none; border-radius: 8px;
  background: transparent; font-size: 14px; color: var(--text); cursor: pointer;
}
.city-prov-btn:hover { background: var(--primary-light); }
.city-prov-btn.active { background: var(--primary); color: #fff; font-weight: 600; }
.city-list { flex: 1; padding: 10px 12px; overflow-y: auto; max-height: 340px; }
.city-item {
  display: inline-block; padding: 6px 12px; margin: 3px; border-radius: 8px;
  font-size: 14px; color: var(--text); cursor: pointer; border: 1px solid transparent;
  transition: all .15s;
}
.city-item:hover { background: var(--primary-light); }
.city-item.active { background: var(--primary); color: #fff; font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary-dark); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(0,0,0,.05); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #2F6A4C; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 32px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.user-chip { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600;
}
.user-dropdown { position: relative; }
.user-dropdown .menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12);
  min-width: 180px; padding: 8px; display: none; z-index: 50;
}
.user-dropdown .menu.show { display: block; }
.user-dropdown .menu a, .user-dropdown .menu button {
  display: block; width: 100%; text-align: left; padding: 10px 14px;
  border: none; background: none; font-size: 14px; color: var(--text); border-radius: 8px; cursor: pointer;
}
.user-dropdown .menu a:hover, .user-dropdown .menu button:hover { background: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #3A2E1C 0%, #6B4F2A 45%, #A9711D 100%);
  color: #fff; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 40px solid rgba(255,255,255,.06);
}
.hero-inner { position: relative; z-index: 1; padding: 84px 0 72px; max-width: 820px; }
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 700; margin-bottom: 16px; }
.hero h1 .hl { color: #FFD98E; }
.hero p { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 32px; }
.hero-search {
  background: #fff; border-radius: 999px; padding: 8px; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.hero-search .search-icon { padding-left: 14px; color: var(--text-light); display: flex; }
.hero-search input {
  flex: 1; border: none; outline: none; font-size: 16px; padding: 10px 6px; background: transparent;
}
.hero-search .type-select {
  border: none; outline: none; font-size: 15px; color: var(--text);
  background: var(--bg); border-radius: 999px; padding: 10px 14px; cursor: pointer;
}
.hero-search .btn { border-radius: 999px; }
.hero-stats { display: flex; gap: 40px; margin-top: 36px; }
.hero-stats .num { font-size: 26px; font-weight: 700; color: #FFD98E; }
.hero-stats .label { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---------- 通用区块 ---------- */
.section { padding: 56px 0; }
.section-title { font-size: 26px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.section-title .t-icon { color: var(--primary); }
.section-sub { color: var(--text-light); margin-bottom: 28px; font-size: 14px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.section-head .link-more { color: var(--primary-dark); font-size: 14px; font-weight: 500; }

/* ---------- 租期类型标签页 ---------- */
.rental-tabs { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.rental-tab {
  padding: 12px 26px; border-radius: 12px; background: #fff; border: 1px solid var(--border);
  font-size: 15px; font-weight: 500; color: var(--text); transition: .2s; cursor: pointer;
}
.rental-tab:hover { border-color: var(--primary); color: var(--primary-dark); }
.rental-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.rental-tab small { display: block; font-size: 12px; font-weight: 400; opacity: .75; }

/* ---------- 院子卡片 ---------- */
.yard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.yard-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; cursor: pointer;
  border: 1px solid var(--border);
}
.yard-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(93,70,30,.14); }
.yard-card .thumb { position: relative; height: 200px; overflow: hidden; background: var(--primary-light); }
.yard-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.yard-card:hover .thumb img { transform: scale(1.05); }
.yard-card .thumb .badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.yard-card .thumb .rental-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--primary); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px;
}
.yard-card .body { padding: 16px; }
.yard-card .name { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.yard-card .subtitle { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.yard-card .meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.yard-card .meta span { display: flex; align-items: center; gap: 4px; }
.yard-card .meta .rate { color: #C88A2A; font-weight: 700; }
.yard-card .price-row { display: flex; align-items: baseline; justify-content: space-between; }
.yard-card .price { color: var(--primary-dark); font-weight: 700; }
.yard-card .price .amount { font-size: 22px; }
.yard-card .price .unit { font-size: 13px; font-weight: 400; }
.yard-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.yard-card .tags span { font-size: 12px; background: var(--bg); color: var(--text-light); padding: 3px 8px; border-radius: 6px; }

/* ---------- 筛选栏 ---------- */
.filter-bar {
  background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  margin-bottom: 28px; border: 1px solid var(--border);
}
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-row:last-child { margin-bottom: 0; }
.filter-row .f-label { font-size: 13px; color: var(--text-light); min-width: 56px; }
.filter-chip {
  padding: 7px 16px; border-radius: 999px; font-size: 14px; cursor: pointer;
  background: var(--bg); border: 1px solid transparent; color: var(--text); transition: .2s;
}
.filter-chip:hover { border-color: var(--primary); }
.filter-chip.active { background: var(--primary); color: #fff; }
.filter-input {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; outline: none;
  font-size: 14px; width: 150px; transition: border .2s;
}
.filter-input:focus { border-color: var(--primary); }
.filter-select {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; outline: none;
  font-size: 14px; background: #fff; cursor: pointer;
}

/* ---------- 结果工具栏 ---------- */
.result-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.result-bar .count { color: var(--text-light); font-size: 14px; }
.result-bar .count b { color: var(--primary-dark); }
.sort-group { display: flex; gap: 6px; }
.sort-btn { padding: 6px 14px; border-radius: 999px; font-size: 13px; background: #fff; border: 1px solid var(--border); color: var(--text); cursor: pointer; }
.sort-btn.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }

/* ---------- 标签云 ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-cloud a {
  background: #fff; border: 1px solid var(--border); padding: 8px 18px; border-radius: 999px;
  font-size: 14px; color: var(--text); transition: .2s;
}
.tag-cloud a:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-2px); }
.tag-cloud a .count { color: var(--text-light); font-size: 12px; margin-left: 4px; }

/* ---------- 区域卡片 ---------- */
.district-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.district-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px;
  cursor: pointer; transition: .2s; display: flex; align-items: center; justify-content: space-between;
}
.district-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.district-card .d-name { font-weight: 600; font-size: 16px; }
.district-card .d-count { color: var(--text-light); font-size: 13px; }

/* ---------- 详情页 ---------- */
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.detail-gallery.no-side { grid-template-columns: 1fr; }
.detail-gallery .main-img { position: relative; background: var(--bg); }
.detail-gallery .main-img img { width: 100%; height: 480px; object-fit: cover; }
.detail-gallery .side-imgs { display: grid; grid-auto-rows: 240px; gap: 12px; }
.detail-gallery .side-imgs img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.detail-gallery .side-imgs .img-box { position: relative; }
.detail-gallery .img-box .more-tag {
  position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.detail-gallery .img-box .more-tag:hover { background: rgba(0,0,0,.6); }
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.detail-main .card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 22px; border: 1px solid var(--border); }
.detail-main h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.detail-main h2::before { content: ''; width: 4px; height: 20px; background: var(--primary); border-radius: 2px; }
.detail-head { margin-bottom: 18px; }
.detail-head .name { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.detail-head .subtitle { color: var(--text-light); font-size: 15px; }
.detail-head .meta-row { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.detail-head .meta-row span { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-light); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list .chip { background: var(--bg); padding: 6px 14px; border-radius: 8px; font-size: 13px; }
.chip-list .chip.gold { background: var(--primary-light); color: var(--primary-dark); }
.desc-text { white-space: pre-wrap; color: #4A453E; font-size: 15px; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spec-item { text-align: center; background: var(--bg); border-radius: 10px; padding: 16px 8px; }
.spec-item .s-icon { font-size: 24px; margin-bottom: 6px; }
.spec-item .s-val { font-weight: 600; font-size: 15px; }
.spec-item .s-label { font-size: 12px; color: var(--text-light); }
.book-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 84px; border: 1px solid var(--border); }
.book-card .price { font-size: 30px; font-weight: 700; color: var(--primary-dark); }
.book-card .price .unit { font-size: 14px; font-weight: 400; color: var(--text-light); }
.book-card .price-note { color: var(--text-light); font-size: 13px; margin-bottom: 14px; }
.book-card .hotline {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2); border: 1px solid #FFB74D;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; text-decoration: none;
}
.book-card .hotline .hotline-label { font-size: 13px; color: #B26A00; font-weight: 500; }
.book-card .hotline .hotline-num { font-size: 17px; font-weight: 700; color: var(--primary-dark); letter-spacing: .5px; }
.book-card .form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: #55503F; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  outline: none; transition: border .2s; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 90px; }
.fav-btn { width: 100%; margin-top: 10px; }
.fav-btn.active { background: #FDEDED; border-color: var(--danger); color: var(--danger); }

/* ---------- 表单页 ---------- */
.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 40px; width: 100%; max-width: 440px; border: 1px solid var(--border); }
.auth-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-light); font-size: 14px; margin-bottom: 28px; }
.auth-card .form-group { margin-bottom: 18px; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row .btn { flex-shrink: 0; }
.auth-tip { margin-top: 16px; font-size: 12px; color: var(--text-light); text-align: center; }

.form-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 36px; border: 1px solid var(--border); max-width: 860px; margin: 0 auto; }
.form-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.form-card .sub { color: var(--text-light); margin-bottom: 30px; font-size: 14px; }
.form-section { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px dashed var(--border); }
.form-section:last-child { border-bottom: none; }
.form-section h3 { font-size: 17px; font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.form-section h3 .step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 13px; display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.option-chip {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
  font-size: 14px; text-align: center; transition: .2s; background: #fff; user-select: none;
}
.option-chip:hover { border-color: var(--primary); }
.option-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.option-chip .o-desc { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }
.upload-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.upload-box {
  width: 110px; height: 110px; border: 2px dashed var(--border); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 12px; cursor: pointer; transition: .2s; gap: 4px;
}
.upload-box:hover { border-color: var(--primary); color: var(--primary-dark); }
.upload-box .plus { font-size: 28px; line-height: 1; }
.upload-item { position: relative; width: 110px; height: 110px; border-radius: 12px; overflow: hidden; }
.upload-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-item .remove {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; border: none; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.upload-item .cover-tag {
  position: absolute; left: 4px; bottom: 4px; background: var(--primary); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 6px;
}
.upload-item .set-cover {
  position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: 6px; border: none; cursor: pointer;
}

/* ---------- 我的院子 ---------- */
.my-yard-card { display: flex; gap: 18px; background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 16px; align-items: center; }
.my-yard-card .thumb { width: 200px; height: 130px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.my-yard-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-yard-card .info { flex: 1; }
.my-yard-card .info .name { font-size: 17px; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.my-yard-card .info .desc { font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.my-yard-card .info .meta { font-size: 13px; color: var(--text-light); }
.my-yard-card .actions { display: flex; gap: 8px; flex-direction: column; }
.status-badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 500; }
.status-approved { background: #E8F5E9; color: #2E7D32; }
.status-pending { background: #FFF3E0; color: #E65100; }
.status-rejected { background: #FDEDED; color: var(--danger); }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty .e-icon { font-size: 56px; margin-bottom: 12px; opacity: .5; }
.empty p { margin-bottom: 20px; font-size: 15px; }

/* ---------- Toast ---------- */
#toast-wrap { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: rgba(45,42,38,.92); color: #fff; padding: 11px 22px; border-radius: 999px;
  font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: toastIn .3s ease; max-width: 90vw;
}
.toast.success { background: rgba(46,125,50,.95); }
.toast.error { background: rgba(217,83,79,.95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 加载中 ---------- */
.loading { text-align: center; padding: 40px; color: var(--text-light); }
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--primary-light); border-top-color: var(--primary);
  border-radius: 50%; margin: 0 auto 12px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 页脚 ---------- */
.site-footer { background: #2D2A26; color: rgba(255,255,255,.7); padding: 48px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid a { display: block; font-size: 14px; padding: 4px 0; color: rgba(255,255,255,.65); }
.footer-grid a:hover { color: #FFD98E; }
.footer-grid p { font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,.4); }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.page-btn { min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-size: 14px; color: var(--text); cursor: pointer; transition: .2s; }
.page-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- AI 找院 ---------- */
.ai-banner {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(120deg, #3A2E1C 0%, #6B4F2A 55%, #8A6433 100%);
  border-radius: 16px; padding: 22px 28px; color: #fff;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.ai-banner::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
  border-radius: 50%; border: 24px solid rgba(255,255,255,.06);
}
.ai-banner:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(93,70,30,.22); }
.ai-banner-icon {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0;
}
.ai-banner-text { flex: 1; position: relative; z-index: 1; }
.ai-banner-title { font-size: 20px; font-weight: 700; margin-bottom: 3px; display: flex; align-items: center; gap: 10px; }
.ai-banner-tag {
  font-size: 11px; font-weight: 500; background: #FFD98E; color: #3A2E1C;
  padding: 2px 8px; border-radius: 999px;
}
.ai-banner-sub { font-size: 13.5px; color: rgba(255,255,255,.82); }
.ai-banner-go { font-size: 14px; font-weight: 600; color: #FFD98E; position: relative; z-index: 1; white-space: nowrap; }
.ai-page { min-height: calc(100vh - 64px); padding-bottom: 40px; background: linear-gradient(180deg, #F5E7CD 0%, var(--bg) 260px); }
.ai-hero {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, #3A2E1C, #6B4F2A);
  color: #fff; border-radius: 18px; padding: 28px 32px; margin: 28px 0 22px;
  box-shadow: var(--shadow);
}
.ai-hero-icon {
  width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0;
  background: rgba(255,255,255,.14); font-size: 34px;
  display: flex; align-items: center; justify-content: center;
}
.ai-hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.ai-hero p { font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.7; }
.ai-hero p em { font-style: normal; color: #FFD98E; }
.ai-chat { max-width: 860px; margin: 0 auto 16px; }
.msg { display: flex; gap: 12px; margin-bottom: 20px; }
.msg-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.msg-body { max-width: 78%; }
.msg-user { justify-content: flex-end; }
.msg-user .msg-body { max-width: 70%; }
.msg-text {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 18px; font-size: 14.5px; line-height: 1.8;
  box-shadow: var(--shadow); word-break: break-word;
}
.msg-user .msg-text {
  background: var(--primary); border-color: var(--primary); color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-ai .msg-text { border-bottom-left-radius: 4px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-chip {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  background: var(--primary-light); border: 1px solid #E8D3A8; color: var(--primary-dark);
  transition: .2s;
}
.ai-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.ai-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.ai-result-grid .yard-card { box-shadow: 0 3px 12px rgba(93,70,30,.08); }
.ai-result-grid .yard-card .thumb { height: 150px; }
.ai-reasons { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.ai-reason {
  font-size: 12px; color: var(--green); background: #F0F7F2;
  padding: 4px 10px; border-radius: 6px; line-height: 1.5;
}
.ai-thinking { display: flex; gap: 6px; align-items: center; padding: 14px 18px; }
.ai-thinking span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
  animation: aiBlink 1.2s infinite;
}
.ai-thinking span:nth-child(2) { animation-delay: .2s; }
.ai-thinking span:nth-child(3) { animation-delay: .4s; }
@keyframes aiBlink { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.msg-note { margin-top: 10px; font-size: 12px; color: var(--text-light); }
.ai-input-bar {
  max-width: 860px; margin: 0 auto;
  background: #fff; border-radius: 999px; padding: 8px 8px 8px 10px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 30px rgba(93,70,30,.12); border: 1px solid var(--border);
  position: sticky; bottom: 20px;
}
.ai-input-bar input {
  flex: 1; border: none; outline: none; font-size: 15px; padding: 10px 6px; background: transparent;
}
.mic-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none; flex-shrink: 0;
  background: var(--primary-light); font-size: 20px; cursor: pointer; transition: .2s;
}
.mic-btn:hover { background: var(--primary); }
.mic-btn.listening {
  background: var(--danger); color: #fff; animation: micPulse 1s infinite;
}
@keyframes micPulse {
  0% { box-shadow: 0 0 0 0 rgba(217,83,79,.5); }
  70% { box-shadow: 0 0 0 12px rgba(217,83,79,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,83,79,0); }
}
.ai-tip { max-width: 860px; margin: 10px auto 0; text-align: center; font-size: 12.5px; color: var(--text-light); min-height: 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 30px; }
  .hero-search { flex-wrap: wrap; border-radius: 20px; }
  .hero-search input { width: 100%; }
  .detail-layout { grid-template-columns: 1fr; }
  .book-card { position: static; }
  .detail-gallery { grid-template-columns: 1fr; }
  .detail-gallery .main-img img { height: 300px; }
  .detail-gallery .side-imgs { display: none; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .my-yard-card { flex-direction: column; align-items: stretch; }
  .my-yard-card .thumb { width: 100%; height: 180px; }
  .my-yard-card .actions { flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 20px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { height: 56px; }
  .header-nav-wrap { gap: 12px; }
  .nav-links { gap: 14px; font-size: 14px; }
  .city-btn { padding: 5px 10px; font-size: 13px; }
  .city-provs { width: 110px; }
  .city-panel { width: 480px; }
}

/* ---------- 全屏图片查看器 ---------- */
.detail-gallery .main-img { cursor: pointer; }
.detail-gallery .gallery-hint {
  position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff;
  font-size: 13px; padding: 5px 12px; border-radius: 20px; cursor: pointer; transition: background .2s;
  pointer-events: auto;
}
.detail-gallery .gallery-hint:hover { background: rgba(0,0,0,.72); }

#gallery-overlay { position: fixed; inset: 0; z-index: 9999; }
#gallery-overlay .gallery-mask { position: absolute; inset: 0; background: rgba(0,0,0,.92); }
#gallery-overlay .gallery-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
#gallery-overlay .gallery-img {
  max-width: 90vw; max-height: 76vh; object-fit: contain; border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6); background: #111;
}
#gallery-overlay .gallery-btn {
  position: absolute; z-index: 2; border: none; background: rgba(255,255,255,.15); color: #fff;
  width: 44px; height: 44px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
#gallery-overlay .gallery-btn:hover { background: rgba(255,255,255,.32); }
#gallery-overlay .gallery-close { top: 16px; right: 16px; font-size: 15px; }
#gallery-overlay .gallery-prev { left: 16px; }
#gallery-overlay .gallery-next { right: 16px; }
#gallery-overlay .gallery-count {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px;
  background: rgba(0,0,0,.4); padding: 4px 14px; border-radius: 20px;
}
#gallery-overlay .gallery-thumbs {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; max-width: 92vw; overflow-x: auto; padding: 8px;
}
#gallery-overlay .gallery-thumb {
  width: 56px; height: 42px; object-fit: cover; border-radius: 4px; border: 2px solid transparent;
  cursor: pointer; opacity: .6; transition: .2s; flex-shrink: 0; background: #222;
}
#gallery-overlay .gallery-thumb.on { border-color: #fff; opacity: 1; }
#gallery-overlay .gallery-thumb:hover { opacity: 1; }
@media (max-width: 768px) {
  #gallery-overlay .gallery-img { max-width: 100vw; max-height: 70vh; border-radius: 0; }
  #gallery-overlay .gallery-prev { left: 6px; width: 38px; height: 38px; }
  #gallery-overlay .gallery-next { right: 6px; width: 38px; height: 38px; }
  #gallery-overlay .gallery-close { top: 10px; right: 10px; width: 38px; height: 38px; }
  #gallery-overlay .gallery-count { top: 12px; }
  #gallery-overlay .gallery-thumbs { bottom: 8px; }
  #gallery-overlay .gallery-thumb { width: 48px; height: 36px; }
}
