/* 楼间随笔 — 海淀写字楼租售 */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  --ink: #16202c;
  --ink-2: #38475a;
  --ink-3: #6b7a8d;
  --line: #e2e6eb;
  --paper: #ffffff;
  --paper-2: #f6f7f5;
  --gold: #9c7b3f;
  --gold-soft: #c8a24a;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: .12em; }
.brand-sub { font-size: 11px; color: var(--ink-3); letter-spacing: .16em; }
/* 导航从四项加到六项（多了租金行情、租赁问答）。窄屏靠 .mainnav 的
   overflow-x 横滑，但链接得先拒绝折行、拒绝被压缩，否则 flex 会把
   「租金行情」挤成两行，滑动条永远出不来。 */
.mainnav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.mainnav a { color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent;
  white-space: nowrap; flex: 0 0 auto; }
.mainnav a:hover, .mainnav a.on { color: var(--ink); border-color: var(--gold); }
.topcall {
  font-family: var(--serif); font-size: 17px; letter-spacing: .04em;
  padding: 8px 18px; border: 1px solid var(--ink); border-radius: 2px;
}
.topcall:hover { background: var(--ink); color: #fff; }

/* 首页大图 */
/* 中关村夜景做底，上面压两层暗罩。
   照片本身是亮的（蓝调天空 + 亮着灯的玻璃幕墙），白字直接放上去读不出来，
   所以第一层斜向暗罩把左边压到九成不透明——标题和正文都在左栏；
   第二层从下往上收，底下那条服务承诺才压得住楼群的灯光。
   照片留的是气氛不是细节，看得出是中关村就够。 */
.hero {
  /* 底色跟 herobg.py 的 NIGHT 一致，窄屏图上方接的就是这个色 */
  background-color: #0d1a2e; color: #fff; padding: 96px 0 76px;
  position: relative; overflow: hidden;
  /* 照片铺满整块，没有填充带。左侧压一层斜向暗罩给文案让读，
     右侧留到 .28 以下，照片该亮的地方还是亮的。 */
  background-image:
    linear-gradient(100deg, rgba(9,18,32,.9) 0%, rgba(9,18,32,.76) 40%, rgba(11,24,42,.38) 72%, rgba(11,24,42,.24) 100%),
    linear-gradient(to top, rgba(9,16,28,.6) 0%, rgba(9,16,28,.16) 26%, transparent 46%),
    url("../images/bg/skyline-1920.webp");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}
/* 原来那团金色光斑是给纯色底加层次的，现在底下是实照片，再加就脏了 */
.hero::after { content: none; }
/* 文案在左、轮播在右。右栏给 1.15 份：轮播是 16:10 的横幅，
   比左栏那段竖着堆的文案更吃宽度，均分会把图压小。 */
.hero-grid {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: 1fr 1.2fr; gap: 20px 54px; align-items: center;
}
.hero-in { position: relative; z-index: 1; }
.hero-kicker { color: var(--gold-soft); letter-spacing: .3em; font-size: 12px; margin-bottom: 22px; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.38; font-weight: 600; letter-spacing: .03em;
}
/* h1 里的第二行。原本「楼与楼之间…」是 h1 的正文，现在核心词占了 h1，
   这句降成同一个标题里的副题：视觉上还是原来那句更大更像主角的观感，
   但文档结构上核心词在前。block 让它换行，不用 <br>。 */
.hero h1 .h1-sub {
  display: block; margin-top: 10px;
  font-size: .62em; font-weight: 400; color: #ccd6e0; letter-spacing: .04em;
}
.hero-sub { margin-top: 22px; max-width: 620px; color: #ccd6e0; font-size: 16px; }
.hero-act { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
/* 三条承诺横跨两栏做底带。留在左栏会把左栏顶到 600 高，
   右边 16:10 的轮播只有 360，右侧就空一大块。 */
.hero-facts {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 30px 64px;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16);
}
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts b { font-family: var(--serif); font-size: 26px; color: var(--gold-soft); font-weight: 600; }
.hero-facts span { font-size: 13px; color: #a9b6c4; }

/* 按钮 */
.btn {
  display: inline-block; padding: 13px 30px; font-size: 15px;
  border-radius: 2px; border: 1px solid transparent; transition: .18s;
  letter-spacing: .04em;
}
.btn-main { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-main:hover { background: #86682f; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* 区块 */
.block { padding: 74px 24px; }
.h-rule {
  font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: .06em;
  padding-bottom: 14px; margin-bottom: 18px; position: relative;
}
.h-rule::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 2px; background: var(--gold);
}
.block-sub { color: var(--ink-3); max-width: 700px; margin-bottom: 34px; }
.more { margin-top: 34px; }
.more a { font-family: var(--serif); color: var(--gold); border-bottom: 1px solid currentColor; }

/* 商圈格 */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.tile {
  border: 1px solid var(--line); padding: 30px 26px 26px; background: var(--paper-2);
  transition: .2s; position: relative;
}
.tile:hover { background: #fff; border-color: var(--gold); transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(22,32,44,.09); }
.tile-n { font-size: 12px; letter-spacing: .18em; color: var(--gold); }
.tile h3 { font-family: var(--serif); font-size: 22px; margin: 10px 0 10px; font-weight: 600; }
.tile p { color: var(--ink-3); font-size: 14.5px; min-height: 52px; }
.tile-go { font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); }

/* 楼盘卡片 */
/* 一栏一栋：左图库右信息。整卡不再是链接，hover 提示交给标题与按钮 */
.cards { display: grid; grid-template-columns: 1fr; gap: 26px; }
.card {
  display: flex; flex-direction: row; align-items: stretch; border: 1px solid var(--line);
  background: #fff; transition: .2s; overflow: hidden;
}
/* 作者样式里的 display 会盖掉浏览器默认的 [hidden]，筛选就失效了，必须显式写 */
.card[hidden] { display: none; }
.card:hover { border-color: var(--gold); box-shadow: 0 16px 34px rgba(22,32,44,.10); }
.card-gal { flex: 0 0 54%; display: flex; flex-direction: column; background: #142032; }
.gal-main { position: relative; display: block; flex: 1 1 auto; aspect-ratio: 16/9;
  overflow: hidden; background: #142032; }
/* 实拍图长宽比不齐，统一裁切到 16:9，避免每张卡高度不一 */
/* 实拍图里近三分之一是竖构图，cover 会把高楼的头尾切掉，
   所以主图用 contain 完整显示，深色底衬当留白；缩略图仍用 cover。 */
.gal-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gal-next {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; background: rgba(8,12,18,.55);
  color: #fff; font-size: 24px; line-height: 36px; text-align: center;
}
.gal-thumbs { display: flex; gap: 8px; padding: 8px; background: #0f1826; }
.thumb {
  flex: 1 1 0; min-width: 0; padding: 0; border: 1px solid transparent;
  background: none; cursor: pointer; text-align: center; color: #cfd8e4;
  font: inherit; font-size: 11.5px;
}
.thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block;
  opacity: .58; transition: opacity .2s; }
.thumb span { display: block; padding: 4px 2px 3px; letter-spacing: .04em; }
.thumb:hover img, .thumb:focus-visible img { opacity: .9; }
.thumb.is-on { border-color: var(--gold); color: #fff; }
.thumb.is-on img { opacity: 1; }
.card-fig { display: block; flex: 0 0 52%; align-self: stretch;
  overflow: hidden; background: #142032; min-height: 176px; }
.card-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--gold); }
.card-go { margin-top: 12px; font-size: 14.5px; }
.card-go a { color: var(--gold); }
.card-body {
  display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0;
  padding: 20px 22px 22px;
}
.card-body .card-tags { margin-top: auto; padding-top: 14px; }
.card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.card-area { color: var(--gold); letter-spacing: .16em; }
.card-state { padding: 2px 9px; border-radius: 999px; font-size: 11px; }
.s-on { background: #eef4ee; color: #3f6b46; }
.s-full { background: #f5eded; color: #8d4a4a; }
.s-tbd { background: #f2f2f0; color: #6f6f6c; }
.card h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 12px 0 8px; }
.card-price { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.card-meta { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 6px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.card-tags span {
  font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 2px; background: var(--paper-2);
}

/* 商圈页 / 内页头部 */
.area-hero { background: #142032; color: #fff; padding: 70px 0 58px; }
.area-hero.small { padding: 54px 0 46px; }
.area-hero h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); font-weight: 600; letter-spacing: .05em; }
.area-line { color: #b9c5d2; margin-top: 14px; max-width: 660px; }
.crumb { font-size: 13px; color: #8fa0b1; margin-bottom: 18px; }
.crumb a { color: #c9d4de; border-bottom: 1px solid rgba(255,255,255,.25); }
.area-intro { max-width: 760px; }
.area-intro p { margin-bottom: 18px; color: var(--ink-2); }
/* 问答页与租金页用 h3 当问题、p 当回答。问题要跟上一条答案拉开距离，
   自己跟紧跟着的答案贴住，读起来才是一问一答而不是一片段落。 */
.area-intro h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  margin: 30px 0 9px; color: var(--ink); letter-spacing: .02em;
}
.area-intro h3:first-child { margin-top: 0; }
/* 全局 a 是 color:inherit，正文里的链接跟正文一个色，看不出能点。
   正文段落里的链接给个色加下划线——首页那段介绍和问答页全靠它们导流。 */
.area-intro p a, .area-intro li a { color: var(--gold); border-bottom: 1px solid var(--gold-line, rgba(156,123,63,.4)); }
.area-intro p a:hover, .area-intro li a:hover { border-bottom-color: var(--gold); }

.stats { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 36px;
  padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; }
.stats b { font-family: var(--serif); font-size: 30px; color: var(--gold); font-weight: 600; }
.stats span { font-size: 13px; color: var(--ink-3); }

/* 楼盘详情 */
.detail { padding-top: 44px; }
.detail .crumb { color: var(--ink-3); }
.detail .crumb a { color: var(--ink-2); border-color: var(--line); }
.detail-head { margin-bottom: 28px; }
.detail-head h1 { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; letter-spacing: .04em; }
.detail-sub { color: var(--gold); margin-top: 10px; letter-spacing: .06em; }
.detail-fig { margin-bottom: 46px; }
.detail-fig img { width: 100%; border: 1px solid var(--line); }
/* 详情页图库：大图在上，缩略图一排在下 */
.detail-gal { border: 1px solid var(--line); background: #0f1826; }
.detail-gal .gal-main { aspect-ratio: 16/9; max-height: 520px; }
.detail-gal .gal-main img { border: 0; }
.detail-gal .gal-thumbs { padding: 10px; gap: 10px; flex-wrap: wrap; }
.detail-gal .thumb { flex: 0 1 130px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 54px; padding-bottom: 70px; }
.detail-text p { margin-bottom: 20px; color: var(--ink-2); font-size: 16.5px; }
.detail-text p:first-of-type { font-size: 18px; color: var(--ink); font-family: var(--serif); line-height: 1.9; }
.taglist { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.taglist li { font-size: 13px; padding: 5px 12px; border: 1px solid var(--line);
  background: var(--paper-2); color: var(--ink-2); border-radius: 2px; }

.specs { border-top: 1px solid var(--line); }
.spec { display: grid; grid-template-columns: 96px 1fr; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-3); font-size: 14px; }
.spec dd { font-size: 14.5px; color: var(--ink); word-break: break-word; }
.side-call { margin-top: 28px; padding: 26px; background: var(--paper-2); border: 1px solid var(--line); }
.side-name { font-family: var(--serif); font-size: 19px; margin-bottom: 14px; }
.wechat { font-size: 13.5px; color: var(--ink-3); margin-top: 12px; }

/* 联系区 */
.contact { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-in { display: flex; flex-wrap: wrap; gap: 30px; align-items: center;
  justify-content: space-between; padding: 54px 24px; }
.contact-lead { color: var(--ink-3); font-size: 14px; }
.contact-in h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin: 8px 0 10px; letter-spacing: .04em; }
.contact-note { color: var(--ink-3); font-size: 14px; }
.contact-act { text-align: right; }

/* 流程 */
.how { background: #142032; color: #fff; padding: 74px 0; }
.how .h-rule { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; margin-top: 34px; }
.steps b { font-family: var(--serif); color: var(--gold-soft); font-size: 22px; }
.steps h3 { font-size: 17px; margin: 8px 0 8px; font-weight: 600; }
.steps p { color: #a9b6c4; font-size: 14.5px; }

/* 筛选 */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.filters input, .filters select {
  font: inherit; font-size: 15px; padding: 11px 14px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); border-radius: 2px; min-width: 176px;
}
.filters input { flex: 1 1 300px; }
.filters input:focus, .filters select:focus { outline: 2px solid var(--gold-soft); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { font: inherit; font-size: 13px; padding: 7px 15px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; }
.chip:hover { border-color: var(--gold); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.reset { border-radius: 2px; }
.count { color: var(--ink-3); font-size: 14px; margin-bottom: 22px; }
/* 只给读屏软件的文字：留在无障碍树里，眼睛看不见。
   不用 display:none 或 visibility:hidden——那两个会把它从无障碍树里也摘掉。
   楼盘链接都是新标签页打开，这件事看得见的人从图标和习惯能察觉，
   读屏的人只能靠这句话，所以用它补上。 */
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  border: 0;
}
.empty { margin-top: 30px; color: var(--ink-2); }

/* 表格 */
.tablewrap { overflow-x: auto; margin-top: 34px; border: 1px solid var(--line); }
.datatable { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.datatable th, .datatable td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.datatable th { background: var(--paper-2); font-weight: 600; color: var(--ink-2);
  letter-spacing: .06em; font-size: 13.5px; }
.datatable tr:last-child td { border-bottom: 0; }
.datatable tbody tr:hover { background: #fbfbf9; }
.footnote { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

.aboutgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px; margin-top: 44px; }
.aboutgrid div { border-top: 2px solid var(--gold); padding-top: 18px; }
.aboutgrid h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 10px; font-weight: 600; }
.aboutgrid p { color: var(--ink-3); font-size: 14.5px; }

/* 页脚 */
.foot { background: #101a26; color: #93a2b1; padding: 60px 0 26px; font-size: 14px; }
.footgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 34px; }
.footbrand { font-family: var(--serif); font-size: 21px; color: #fff; letter-spacing: .12em; margin-bottom: 12px; }
.footh { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footline { margin-bottom: 7px; }
.footline a { color: var(--gold-soft); }
.foot .footnote { color: #6f7f8e; }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: #6f7f8e; }

/* ---- 区块抬头：粗标题 + 灰副标 + 右侧「更多 ›」 ---- */
.bhead {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 16px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.bhead h2 { font-family: var(--serif); font-size: 27px; font-weight: 700; letter-spacing: .02em; }
.bsub { color: var(--ink-3); font-size: 14.5px; flex: 1 1 auto; }
.bmore {
  flex: 0 0 auto; font-size: 14.5px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 2px; padding: 6px 16px;
  transition: border-color .2s, color .2s;
}
.bmore span { color: var(--gold); margin-left: 4px; }
.bmore:hover { border-color: var(--gold); color: var(--gold); }

/* ---- 商圈四联卡：图下压一块白牌 ---- */
.agrid, .mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* 商圈总览是六个，四列会留两个缺口，三列刚好两行 */
.agrid-3 { grid-template-columns: repeat(3, 1fr); }
.acard { display: block; position: relative; padding-bottom: 30px; }
.acard-pic { display: block; overflow: hidden; background: var(--paper-2); }
.acard-pic img, .acard-blank {
  display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .45s ease;
}
.acard-blank { background: linear-gradient(140deg, #dfe4e9, #f2f4f6); }
.acard:hover .acard-pic img { transform: scale(1.04); }
.acard-plate {
  display: block; position: absolute; left: 18px; right: 18px; bottom: 0;
  background: #fff; border: 1px solid var(--line); border-bottom-color: var(--gold);
  text-align: center; padding: 11px 8px 9px; box-shadow: 0 6px 20px rgba(22, 32, 44, .08);
  transition: border-bottom-color .2s;
}
.acard:hover .acard-plate { border-bottom-color: var(--gold-soft); }
.acard-name {
  display: block; font-family: var(--serif); font-size: 18px; font-weight: 600;
  line-height: 1.4;
}
.acard-n {
  display: block; font-size: 12px; color: var(--ink-3); letter-spacing: .06em;
  line-height: 1.5;
}

/* ---- 楼盘小卡：图 / 楼名面积 / 商圈产权 / 报价 ---- */
.mcard { display: block; }
/* 作者写的 display 会盖掉浏览器默认的 [hidden]{display:none}，
   出租页筛选靠 el.hidden 切显示，所以这行必须有，跟 .card[hidden] 同一个坑 */
.mcard[hidden] { display: none; }
.mcard-pic { display: block; overflow: hidden; background: var(--paper-2); }
.mcard-pic img, .mcard-pic .acard-blank {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .45s ease;
}
.mcard:hover .mcard-pic img { transform: scale(1.04); }
.mcard-name {
  display: block; margin-top: 12px; font-size: 15.5px; font-weight: 600;
  line-height: 1.5; transition: color .2s;
}
.mcard:hover .mcard-name { color: var(--gold); }
.mcard-meta { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.mcard-price { display: block; margin-top: 6px; color: var(--gold); }
.mcard-price b { font-size: 21px; font-family: var(--serif); }
/* 出租页一个网格里既有整栋楼也有楼里具体某一套，
   不标出来看的人会以为同一栋楼出现了两条重复记录 */
.mcard-pic { position: relative; }
.mc-badge {
  position: absolute; left: 0; top: 0; z-index: 1;
  background: var(--ink); color: #fff; font-size: 12px;
  padding: 5px 10px; letter-spacing: .05em;
}
.mc-unit { font-size: 12.5px; margin-left: 4px; color: var(--ink-3); }
.mc-neg { font-size: 15px; color: var(--ink-2); }

/* ---- 商圈总览页的逐个说明 ---- */
.sq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sq-row { border: 1px solid var(--line); background: var(--paper-2); padding: 22px 24px; }
.sq-row h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.sq-row h3 a:hover { color: var(--gold); }
.sq-row p { color: var(--ink-3); font-size: 14.5px; }
.sq-n { margin-top: 10px; font-size: 13.5px; }
.sq-n a { color: var(--gold); }

/* ---- 首页 hero 轮播 ---- */
.hcar { position: relative; }
.hcar-box {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: #0d1622; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 70px rgba(0,0,0,.42);
}
.hslide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .6s ease;
}
/* 只有当前那张可见。visibility 一起切，读屏和 Tab 才不会跑进看不见的片子里 */
.hslide.is-on { opacity: 1; visibility: visible; }
.hslide img { width: 100%; height: 100%; object-fit: cover; }
/* 底部压一层渐变，白字压在天空或玻璃幕墙上也读得清 */
.hslide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 54px 26px 22px;
  background: linear-gradient(transparent, rgba(8,14,22,.9));
  display: flex; flex-direction: column; gap: 5px;
}
.hs-tag {
  align-self: flex-start; font-size: 12px; letter-spacing: .14em;
  color: #fff; background: rgba(156,123,63,.92); padding: 3px 10px;
}
.hs-name { font-family: var(--serif); font-size: 23px; font-weight: 600; color: #fff; }
.hs-meta { font-size: 14px; color: #cfd8e2; }
/* 报价和「看这栋」同一行分两头。按钮原来绝对定位压在报价上，读不出价 */
.hs-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 2px; }
.hs-go {
  flex: 0 0 auto; font-size: 14px; color: #fff;
  border: 1px solid rgba(255,255,255,.45); padding: 7px 15px;
  background: rgba(8,14,22,.4); transition: background .2s, border-color .2s;
}
.hs-go:hover { background: var(--gold); border-color: var(--gold); }
.hcar-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; font-size: 26px; line-height: 38px;
  color: #fff; background: rgba(8,14,22,.5); border: 1px solid rgba(255,255,255,.3);
  cursor: pointer; transition: background .2s, border-color .2s;
}
.hcar-arrow:hover { background: var(--gold); border-color: var(--gold); }
.hcar-arrow.prev { left: 14px; }
.hcar-arrow.next { right: 14px; }
.hcar-dots { display: flex; gap: 9px; justify-content: center; margin-top: 16px; }
.hdot {
  width: 26px; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,.45); transition: background .25s, width .25s;
}
.hdot:hover { background: rgba(255,255,255,.75); }
.hdot.is-on { background: var(--gold-soft); width: 40px; }
/* 点这类细条目标太小，外面套一圈透明的可点区域，够手指按 */
.hcar-dots { padding: 11px 0; margin-top: 4px; }
.hdot { position: relative; }
.hdot::after { content: ""; position: absolute; inset: -12px -5px; }

/* ---- 轮播的两栏只在放得开的时候用 ---- */
/* 1180 的版心里：品牌约 300、电话按钮约 150，六项导航加 gap 约 560，
   三者加 padding 正好放得下。再加第七项就得动 gap 或把某项挪进页脚。 */
@media (max-width: 1180px) {
  .topbar .wrap { gap: 18px; }
  .mainnav { gap: 20px; }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-in { max-width: 860px; }
  .hero-facts { margin-top: 8px; }
  .hcar { max-width: 860px; }
}

/* 窄屏是一栏，文字整段压在照片上，暗罩得更厚；
   同时换 960 那档，390 的屏上没必要拉 1920 的图。 */
@media (max-width: 880px) {
  /* 窄屏一栏，文字整段压在照片上，暗罩得更厚。
     背景改成「贴底、按宽度铺满」：hero 在手机上高 1100+，
     再用 cover 会把 2:1 的图放大到只剩中间一小块，天际线就没了。
     上方空出的部分由底色接住，正好给标题一块干净的深底。 */
  .hero {
    /* 单栏时 hero 又高又窄，3:1 的照片盖不住，所以换成以塔为中心的方图贴底，
       上方那段夜空是烘在图里的（收到 NIGHT），跟 background-color 接得上，没有接缝。 */
    background-image:
      linear-gradient(180deg, rgba(11,22,38,.5) 0%, rgba(11,22,38,.34) 52%, rgba(9,16,28,.46) 100%),
      url("../images/bg/skyline-mobile.webp");
    background-size: cover, 100% auto;
    background-position: center, center bottom;
  }
  .agrid, .mgrid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sq-list { grid-template-columns: 1fr; }
  /* 抬头三件套挤在一行会折行错位：副标允许压缩、截断，标题和「更多」始终同排 */
  .bhead { gap: 10px; }
  .bhead h2 { font-size: 24px; white-space: nowrap; }
  .bsub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card { flex-direction: column; }
  .card-gal { flex: none; }
  .card-body .card-tags { margin-top: 14px; padding-top: 0; }
  .topbar .wrap { height: auto; flex-wrap: wrap; gap: 10px; padding: 14px 20px; }
  .brand { flex: 1 1 auto; }
  .mainnav { order: 3; width: 100%; margin-left: 0; gap: 18px; overflow-x: auto;
    -webkit-overflow-scrolling: touch; }
  .topcall { font-size: 15px; padding: 7px 13px; white-space: nowrap; }
  .filters { gap: 10px; }
  .filters input, .filters select { min-width: 0; flex: 1 1 100%; }
  .filters select { flex: 1 1 calc(50% - 5px); }
  /* 出租页是三个下拉不是两个，flex 会让第三个长出来填满第二行，宽窄不齐。
     换成两列网格：区域+价格一行，面积+重置一行，四格等宽。 */
  #rentfilter { display: grid; grid-template-columns: 1fr 1fr; }
  #rentfilter select, #rentfilter button { min-width: 0; width: 100%; }
  .chip.reset { flex: 0 0 auto; }
  .stats { gap: 26px 34px; }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .block { padding: 52px 20px; }
  .contact-act { text-align: left; }
  /* 底下留出一条只有照片的空当：夜景贴底，亮着灯的楼群集中在下半段，
     承诺那行小字压上去量出来只有 1.3:1，根本读不出。
     与其把照片压黑（那就白放了），不如给它腾地方——
     文字落在化开的暗部，灯光在文字下面。 */
  .hero { padding: 66px 0 172px; }
  .hero-facts {
    display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px;
  }
  .hs-name { font-size: 20px; }
}

/* ---- 手机：放大可点区域与最小字号 ---- */
@media (max-width: 640px) {
  /* 两列到底，不塌成一列：商圈和楼盘卡在手机上并排看得更快 */
  .agrid, .mgrid { gap: 12px; }
  .acard-plate { left: 8px; right: 8px; padding: 8px 4px 7px; }
  .acard-name { font-size: 15.5px; }
  .acard { padding-bottom: 30px; }
  .acard-n { font-size: 11.5px; }
  .mcard-name { font-size: 14.5px; }
  .mcard-price b { font-size: 19px; }
  .bmore { min-height: 40px; line-height: 26px; padding: 6px 12px; font-size: 13.5px; }
  /* 窄屏放不下三件：副标是装饰，先撤，留标题和「更多」 */
  .bsub { display: none; }
  .bhead { padding-bottom: 12px; margin-bottom: 18px; align-items: center; }
  .bhead h2 { font-size: 22px; flex: 1 1 auto; }
  /* 行内链接给足触摸高度（≥40px），不破坏行内排版 */
  .footline { margin-bottom: 0; }
  .footline a, .copy p a, .crumb a, .more a {
    display: inline-block;
    min-height: 40px;
    line-height: 40px;
  }
  .crumb { margin-bottom: 10px; }
  .copy { margin-top: 30px; }

  /* 小字提级，中文在手机上 11px 太吃力 */
  .brand-sub { font-size: 12px; letter-spacing: .12em; }
  .hero-kicker { font-size: 13px; letter-spacing: .24em; }
  .tile-n { font-size: 13px; }
  .card-top { font-size: 13px; }
  .card-state { font-size: 12px; padding: 3px 10px; }
  .card-tags span { font-size: 12.5px; padding: 3px 9px; }
  .crumb { font-size: 13.5px; }

  /* 表格在窄屏可横向滑动，给个提示边界 */
  .tablewrap { -webkit-overflow-scrolling: touch; }

  /* 手机上回到图上信息下，横排会挤 */
  .card { flex-direction: column; }
  .card-fig { flex: none; aspect-ratio: 16/9; min-height: 0; }
  .card-gal { flex: none; }
  .card-body .card-tags { margin-top: 14px; padding-top: 0; }
  /* 缩略图缩到 4 个仍能点：44px 起的可点高度 */
  .thumb { font-size: 11px; }
  .thumb img { aspect-ratio: 4/3; }
  .gal-next { width: 34px; height: 34px; font-size: 21px; line-height: 32px; }
  /* 手机上箭头缩小、贴边；点位加粗一点好按 */
  .hcar-arrow { width: 36px; height: 36px; font-size: 22px; line-height: 32px; top: 34%; }
  .hcar-arrow.prev { left: 8px; }
  .hcar-arrow.next { right: 8px; }
  .hslide figcaption { padding: 44px 16px 16px; }
  .hs-go { right: 14px; bottom: 14px; font-size: 13px; padding: 6px 12px; }
  .hdot { height: 4px; }
  /* 窄屏图变矮，字幕那条会压掉大半张图，放宽到 4:3 给图留点地方 */
  .hcar-box { aspect-ratio: 4/3; }
}
