:root {
  --orange: #ff7043;
  --gold: #ffa000;
  --dark: #151515;
  --muted: #9aa0a8;
  --line: #eeeeee;
  --paper: #fff;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: #20242a; background: #fff; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.hero-header {
  width: 1180px;
  height: 86px;
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  color: #fff;
}

.brand {
  width: 280px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand span {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 2px;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
}

.city {
  padding: 7px 18px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: rgba(0,0,0,.72);
}

#nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 34px;
}

#nav a {
  font-size: 15px;
  font-weight: 700;
  opacity: .92;
}

#nav a:hover,
#nav a.active {
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,.65);
}

.account {
  width: 125px;
  text-align: right;
}

.account button {
  border: 0;
  color: #fff;
  background: transparent;
  font-weight: 700;
}

#menuButton { display: none; }

.hero {
  height: 618px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #d6d4cf, #f5f0e9);
}

.sofa-scene {
  position: absolute;
  inset: 0;
  filter: blur(1px);
}

.sofa {
  width: 1240px;
  height: 235px;
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  border-radius: 48px 48px 28px 28px;
  background: linear-gradient(#f3f0e9, #d9d2c7);
  box-shadow: inset 0 -28px 50px rgba(0,0,0,.12);
}

.sofa::before,
.sofa::after {
  content: "";
  width: 120px;
  height: 190px;
  position: absolute;
  bottom: 0;
  border-radius: 55px;
  background: linear-gradient(#f7f4ee, #d3c9bc);
}

.sofa::before { left: -42px; }
.sofa::after { right: -42px; }

.sofa i {
  width: 128px;
  height: 128px;
  position: absolute;
  top: 20px;
  border-radius: 8px;
  background:
    radial-gradient(circle, transparent 0 28%, rgba(255,255,255,.16) 29% 33%, transparent 34%),
    #174785;
  transform: rotate(-9deg);
}

.sofa i:nth-child(1) { left: 145px; background-color: #d8e0ea; }
.sofa i:nth-child(2) { left: 310px; }
.sofa i:nth-child(3) { right: 310px; }
.sofa i:nth-child(4) { right: 145px; background-color: #e5e1d7; }

.lamp {
  width: 95px;
  height: 300px;
  position: absolute;
  left: 50%;
  bottom: 250px;
  transform: translateX(-50%);
}

.lamp::before {
  content: "";
  width: 76px;
  height: 96px;
  position: absolute;
  left: 9px;
  top: 0;
  clip-path: polygon(18% 0,82% 0,100% 100%,0 100%);
  background: #ddd6ca;
}

.lamp::after {
  content: "";
  width: 20px;
  height: 215px;
  position: absolute;
  left: 38px;
  top: 90px;
  background: #b7a997;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.46);
}

.hero-content {
  width: 880px;
  position: relative;
  z-index: 2;
  margin: auto;
  padding-top: 232px;
}

.hero h1 {
  margin: 0 0 70px;
  text-align: center;
  font-size: 68px;
  letter-spacing: .1em;
  font-weight: 900;
}

.search-tabs {
  display: flex;
  gap: 38px;
  margin-bottom: 18px;
}

.search-tabs a {
  position: relative;
  font-weight: 700;
}

.search-tabs a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -25px;
  border: 12px solid transparent;
  border-bottom-color: #fff;
}

.search-bar {
  height: 50px;
  display: grid;
  grid-template-columns: 1fr 126px 126px;
  gap: 9px;
}

.search-bar input {
  border: 0;
  padding: 0 20px;
  color: #666;
}

.search-bar button {
  border: 0;
  color: #fff;
  font-size: 16px;
  background: var(--orange);
}

.search-bar .map {
  background: var(--gold);
}

.hero-content p {
  margin-top: 16px;
  font-size: 13px;
}

.guarantee {
  height: 140px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  background: #f7f7f7;
}

.guarantee article {
  display: flex;
  justify-content: center;
  gap: 26px;
  align-items: center;
}

.guarantee b {
  display: block;
  font-size: 16px;
}

.guarantee p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.gicon {
  width: 58px;
  height: 58px;
  position: relative;
  display: block;
  opacity: .45;
}

.gicon.building::before {
  content: "";
  position: absolute;
  inset: 6px 18px 4px 10px;
  border: 6px solid #777;
  border-left-width: 10px;
}

.gicon.building::after {
  content: "NEW";
  position: absolute;
  right: 0;
  bottom: 12px;
  padding: 2px;
  color: #777;
  border: 2px solid #777;
  font-size: 9px;
  transform: rotate(18deg);
}

.gicon.shield::before {
  content: "￥";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #777;
  font-size: 28px;
  border: 4px solid #777;
  border-radius: 26px 26px 20px 20px;
}

.catalog,
.intro,
.inner,
.detail {
  width: 1150px;
  margin: 38px auto 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-bottom: 30px;
}

.section-title::before,
.section-title::after {
  content: "";
  width: 360px;
  height: 1px;
  background: #dedede;
}

.section-title h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter,
.page,
#jumpForm button,
.primary,
.footer button {
  border: 0;
  background: #f1f1f1;
}

.filter {
  padding: 8px 14px;
}

.filter.active,
.filter:hover,
.page.active,
.page:hover,
.primary {
  color: #fff;
  background: var(--orange);
}

.house-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

.house-card {
  display: block;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
  transition: .18s;
}

.house-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

.house-cover {
  height: 150px;
  position: relative;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.38), transparent 22%),
    linear-gradient(135deg, #0c2864, #29a166);
}

.house-card:nth-child(3n+2) .house-cover {
  background: linear-gradient(135deg, #75b64a, #d9ed95);
}

.house-card:nth-child(3n) .house-cover {
  background: linear-gradient(135deg, #26793c, #79d86a);
}

.house-cover span {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.house-cover b {
  display: block;
  margin-top: 8px;
}

.house-body {
  padding: 18px;
}

.house-body h3 {
  height: 58px;
  margin: 0 0 10px;
  overflow: hidden;
  line-height: 1.45;
}

.house-body p,
.intro p,
.inner p,
.detail p {
  color: var(--muted);
  line-height: 1.8;
}

.meta {
  display: flex;
  gap: 10px;
  color: #666;
  font-size: 13px;
}

.bottom {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom strong {
  color: var(--orange);
  font-size: 22px;
}

.bottom small {
  color: #fff;
  padding: 4px 8px;
  background: var(--gold);
}

.pager {
  margin-top: 30px;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.page,
#jumpForm button {
  padding: 8px 12px;
}

#jumpForm {
  margin-left: auto;
  color: var(--muted);
}

#jumpForm input {
  width: 58px;
  height: 34px;
  border: 1px solid var(--line);
  text-align: center;
}

.intro {
  padding: 36px;
  background: #f7f7f7;
}

.intro h2 {
  margin: 0 0 12px;
}

.intro ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.intro li {
  padding: 18px;
  background: #fff;
}

.intro b {
  display: block;
  color: var(--orange);
  font-size: 36px;
}

.inner {
  margin-top: 120px;
  padding: 50px;
  color: #fff;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    linear-gradient(135deg, #b6b0a6, #efe9df);
}

.inner h1 {
  margin: 0 0 12px;
  font-size: 42px;
}

.inner p {
  color: rgba(255,255,255,.84);
}

.detail {
  padding: 34px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 38px;
}

.back {
  grid-column: 1 / -1;
  color: var(--orange);
}

.buy {
  padding: 22px;
  align-self: start;
  background: #f7f7f7;
  border-top: 4px solid var(--orange);
}

.mini-cover {
  height: 112px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #0c2864, #29a166);
}

.buy b {
  color: var(--orange);
  font-size: 26px;
}

.buy del {
  color: #999;
  font-size: 14px;
}

.primary {
  min-height: 42px;
  padding: 0 18px;
}

.detail h2 {
  padding-left: 12px;
  border-left: 4px solid var(--orange);
}

.modules {
  border-top: 1px solid var(--line);
}

.modules div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.modules strong {
  display: block;
  margin-bottom: 5px;
}

details {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

summary { cursor: pointer; font-weight: 700; }

.footer {
  width: 1150px;
  margin: 36px auto 0;
  padding: 18px 0 34px;
  display: flex;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #666;
}

.footer span:nth-child(2) { margin-right: auto; }
.footer button { padding: 9px 14px; }

.modal,
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.45);
}

.modal.open,
.search-modal.open { display: grid; }

.dialog {
  width: min(760px, 100%);
  position: relative;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  background: #fff;
}

.dialog aside {
  padding: 40px;
  color: #fff;
  background: linear-gradient(135deg, #333, var(--orange));
}

.dialog section { padding: 40px; }

.close {
  width: 38px;
  height: 38px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  border: 0;
  background: #fff;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.tabs button {
  flex: 1;
  height: 38px;
  border: 0;
  background: #f0f0f0;
}

.tabs button.active {
  color: #fff;
  background: var(--orange);
}

.auth-form { display: none; gap: 12px; }
.auth-form.active { display: grid; }
.auth-form label { display: grid; gap: 7px; color: var(--muted); }
.auth-form input:not([type="checkbox"]) { height: 40px; border: 1px solid var(--line); padding: 0 10px; }
.check { display: flex !important; align-items: center; }
#formMessage { min-height: 20px; color: var(--orange); }

.search-box {
  width: min(760px, 100%);
  padding: 36px;
  background: #fff;
}

.search-box input {
  width: 100%;
  margin: 12px 0 18px;
  padding: 15px 0;
  border: 0;
  border-bottom: 2px solid var(--orange);
  outline: 0;
  font-size: 34px;
}

.result {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.result span { color: var(--muted); white-space: nowrap; }

#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  padding: 13px 18px;
  color: #fff;
  background: var(--orange);
  opacity: 0;
  transform: translateY(10px);
  transition: .18s;
}

#toast.show { opacity: 1; transform: translateY(0); }
.empty { padding: 30px; color: var(--muted); background: #f7f7f7; }

@media (max-width: 1200px) {
  .hero-header,
  .catalog,
  .intro,
  .inner,
  .detail,
  .footer { width: 94%; }
  .house-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-header {
    height: auto;
    padding: 18px 0;
    flex-wrap: wrap;
  }
  .brand { margin-right: auto; }
  #menuButton { display: inline-block; }
  #nav {
    width: 100%;
    order: 3;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
  }
  .hero-header.open #nav { display: flex; }
  .hero-content { width: 94%; }
  .hero h1 { font-size: 46px; }
  .search-bar { grid-template-columns: 1fr; height: auto; }
  .search-bar input, .search-bar button { height: 48px; }
  .search-tabs { flex-wrap: wrap; gap: 18px; }
  .guarantee, .intro ul, .detail, .dialog { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .house-grid { grid-template-columns: 1fr; }
  .hero { height: 650px; }
  .hero h1 { font-size: 36px; }
  .section-title::before,
  .section-title::after { width: 80px; }
  #jumpForm { margin-left: 0; }
  .footer { display: block; }
}
