/* 久安住房租赁 · 官网样式（纯 CSS，无框架） */
:root {
  --brand: #146c5a;          /* 主色：深绿（稳、安） */
  --brand-d: #0d4d40;
  --brand-l: #e8f3f0;
  --gold: #c9a227;
  --ink: #1c2b28;
  --ink-2: #4b5f5a;
  --line: #e4eae8;
  --bg: #f7f9f8;
  --card: #ffffff;
  --tbd-bg: #fff4d6;
  --tbd-ink: #8a6100;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(16, 60, 50, .06);
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  padding-bottom: 64px;          /* 给手机底部条留位置 */
  overflow-x: hidden;            /* 双保险：任何元素都不该把整页撑宽 */
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; }
p { margin: 0 0 10px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.mini { font-size: 13px; color: var(--ink-2); }
.tiny { font-size: 14px; opacity: .9; }

/* 待补充标记（正式上线前会全部替换） */
.tbd {
  display: inline-block; background: var(--tbd-bg); color: var(--tbd-ink);
  border: 1px dashed #e0b84c; border-radius: 6px; padding: 0 6px;
  font-size: 13px; line-height: 1.6; white-space: normal;
}

/* ---------------------------------------------------------------- 顶栏 */
.top {
  position: sticky; top: 0; z-index: 30; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 6px rgba(0, 0, 0, .03);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mk {
  width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; letter-spacing: 1px; font-size: 17px;
}
.brand .bt { display: flex; flex-direction: column; font-weight: 700; font-size: 17px; }
.brand .bt em { font-style: normal; font-size: 11px; letter-spacing: 2.5px; color: var(--ink-2); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav > a {
  color: var(--ink-2); padding: 8px 12px; border-radius: 8px; font-size: 15px; white-space: nowrap;
}
.nav > a:hover { background: var(--brand-l); color: var(--brand-d); text-decoration: none; }
.nav > a.on { color: var(--brand-d); background: var(--brand-l); font-weight: 600; }
.drop { position: relative; display: flex; gap: 4px; }
.drop > a { color: var(--ink-2); }
.tel {
  display: flex; flex-direction: column; align-items: flex-end; margin-left: 8px;
  background: var(--brand); color: #fff; padding: 6px 14px; border-radius: 10px;
  font-weight: 700; line-height: 1.25; white-space: nowrap;
}
.tel:hover { background: var(--brand-d); text-decoration: none; color: #fff; }
.tel span { font-size: 11px; font-weight: 500; opacity: .9; }

/* ---------------------------------------------------------------- Hero */
.hero {
  background: linear-gradient(135deg, var(--brand-d), var(--brand) 60%, #1b8571);
  color: #fff; padding: 54px 0 46px;
}
.hero h1 { font-size: 34px; letter-spacing: .5px; }
.hero .sub { color: #d9ece7; font-size: 17px; max-width: 860px; margin: 12px 0 0; }
.hero .btns { margin-top: 22px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; border: 1px solid transparent;
  cursor: pointer; font-size: 16px;
}
.btn:hover { text-decoration: none; }
.btn.main { background: var(--gold); color: #3a2c00; }
.btn.main:hover { background: #d8b13a; }
.btn.ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
/* 浅色底（表单框 / 版块内）里的 ghost 按钮：白字看不见 → 换成主色描边 */
.sec .btn.ghost, .ph-box .btn.ghost, .cta-row .btn.ghost, .leadbox .btn.ghost {
  border-color: rgba(20, 108, 90, .45); color: var(--brand);
}
.sec .btn.ghost:hover, .ph-box .btn.ghost:hover, .cta-row .btn.ghost:hover, .leadbox .btn.ghost:hover {
  background: var(--brand-l);
}

/* ---------------------------------------------------------------- 版块 */
.sec { padding: 40px 0; }
.sec:nth-of-type(even) { background: #fff; }
.sec h2 { font-size: 24px; margin-bottom: 6px; }
.sec h2::before {
  content: ""; display: inline-block; width: 6px; height: 20px; border-radius: 3px;
  background: var(--brand); margin-right: 10px; vertical-align: -3px;
}
.secsub { color: var(--ink-2); margin: 0 0 18px; }
.tscroll { overflow-x: auto; }

/* 卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; color: var(--ink); box-shadow: var(--shadow); transition: .16s;
}
.card:hover { transform: translateY(-2px); border-color: #bfd9d2; text-decoration: none; }
.card .ch { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.card .ch b { font-size: 17px; flex: 1 1 auto; min-width: 0; }
.card .tag {
  margin-left: auto; background: var(--brand-l); color: var(--brand-d);
  font-size: 12px; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.card p { color: var(--ink-2); font-size: 15px; }
.card .note { font-size: 13px; color: var(--brand-d); margin: 0; }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.tbl thead th { background: var(--brand-l); color: var(--brand-d); font-size: 15px; white-space: nowrap; }
.tbl tbody tr:nth-child(even) { background: #fbfdfc; }
.tbl.kv th { width: 34%; background: #f6faf9; font-weight: 600; color: var(--ink); }
.tbl.kv td { color: var(--ink-2); }

/* 优势 / 痛点网格 */
.why, .pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.wy, .pain {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 10px; padding: 14px 16px;
}
.wy b, .pain b { font-size: 16px; }
.wy p, .pain p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.pain { border-left-color: #d9a520; }

/* 要点列表 */
.pts, .who { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pts li, .who li {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px 10px 38px; position: relative; color: var(--ink-2);
}
.pts li::before, .who li::before {
  content: "✓"; position: absolute; left: 14px; top: 10px; color: var(--brand); font-weight: 700;
}

/* 流程 */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px;
}
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.steps .n {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 6px;
}
.steps b { display: block; }
.steps p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }

/* 问答（原生 details，无 JS） */
.qa { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.qa summary {
  cursor: pointer; padding: 13px 16px; font-weight: 600; list-style: none;
  display: flex; align-items: flex-start; gap: 8px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "＋"; margin-left: auto; color: var(--brand); font-weight: 700; }
.qa[open] summary::after { content: "－"; }
.qa .face {
  flex: none; font-size: 12px; font-weight: 500; background: var(--brand-l); color: var(--brand-d);
  border-radius: 999px; padding: 1px 8px; margin-top: 3px;
}
.qa .ans { padding: 0 16px 14px; color: var(--ink-2); border-top: 1px dashed var(--line); margin-top: 2px; padding-top: 12px; }
.more { margin-top: 10px; font-weight: 600; }

/* 留资表单 */
.leadbox {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.leadbox h3 { font-size: 19px; margin-bottom: 4px; }
.leadbox .tips { color: var(--ink-2); font-size: 14px; }
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 8px; }
.lead label { display: flex; flex-direction: column; font-size: 14px; color: var(--ink-2); gap: 4px; }
.lead .wide { grid-column: 1 / -1; }
.lead input, .lead select, .lead textarea {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #d3ded9;
  border-radius: 8px; background: #fcfdfd; color: var(--ink); width: 100%;
}
.lead input:focus, .lead select:focus, .lead textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20, 108, 90, .1);
}
.lead .chk { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 13px; }
.lead .chk input { width: auto; margin-top: 4px; }
.lead button { width: auto; }

/* 占位框（地图 / 房源 / 二维码） */
.ph-box {
  background: #fff; border: 1px dashed #cfe0da; border-radius: var(--radius);
  padding: 20px; text-align: left;
}
.ph-box > b { font-size: 17px; display: block; margin-bottom: 6px; }
.ph-box p { color: var(--ink-2); }
.ph-box .btns { margin-top: 12px; }
.prose p { max-width: 900px; color: var(--ink-2); }

/* 页脚 */
.foot { background: #0f2f2a; color: #c8dad5; margin-top: 24px; padding: 34px 0 18px; font-size: 14px; }
.foot a { color: #dff0ec; }
.fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 24px; }
.foot h4 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.foot .fbrand { color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.foot .fbrand em { font-style: normal; font-size: 11px; letter-spacing: 2px; color: #8fb3ab; }
.fgrid > div > a { display: block; padding: 3px 0; }
.qr { width: 116px; height: 116px; border-radius: 8px; }
.qr.ph {
  display: grid; place-items: center; background: #163c36; color: #9fc2ba;
  border: 1px dashed #3c6b62; font-size: 11px; padding: 10px; text-align: center; height: auto; min-height: 116px;
}
.legal { border-top: 1px solid #1d443d; margin-top: 24px; padding-top: 14px; font-size: 13px; color: #9dbcb5; }
.legal p { margin: 3px 0; }

/* 手机底部操作条 */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
}
.mbar a {
  flex: 1; text-align: center; padding: 13px 0; font-weight: 600; font-size: 15px; color: var(--ink-2);
}
.mbar a.pk { background: var(--gold); color: #3a2c00; }
.mbar a:hover { text-decoration: none; }

/* 宽屏时固定 3 列：6 个卡片排成 3+3，比 4+2、5+1 好看 */
/* 顶栏新增「出租渠道」后：901~1400px 缩紧导航，避免换行压到 LOGO */
@media (min-width: 901px) and (max-width: 1400px) {
  .top .wrap { height: auto; min-height: 68px; gap: 12px; }
  .brand .bt { font-size: 16px; }
  .nav > a, .drop > a { font-size: 14px; padding: 7px 9px; white-space: nowrap; }
}
@media (min-width: 901px) {
  .why, .pains { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------------- 手机 */
@media (max-width: 900px) {
  .top .wrap { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin-left: 0; padding-bottom: 2px; }
  .nav > a, .drop > a { font-size: 14px; padding: 6px 10px; }
  .tel { margin-left: auto; padding: 6px 12px; font-size: 15px; }
  .tel span { display: none; }        /* 手机端只留号码，避免挤掉 */
  .hero { padding: 34px 0 30px; }
  .hero h1 { font-size: 24px; }
  .hero .sub { font-size: 15px; }
  .sec { padding: 26px 0; }
  .sec h2 { font-size: 20px; }
  .lead { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; gap: 18px; }
  .mbar { display: flex; }
  .tbl { font-size: 14px; }
  .tbl th, .tbl td { padding: 8px 10px; }
  /* 三列对比表在手机上不压列宽，改为横向滑动 */
  .tscroll .tbl:not(.kv) { min-width: 620px; }
  .tscroll .tbl:not(.kv) th:first-child, .tscroll .tbl:not(.kv) td:first-child { white-space: nowrap; }
}


/* ================================================================ 冠寓式图文组件（内测版式） */
/* 首页 hero：左文右图 */
.hero.hm { padding: 34px 0 30px; }
.herogrid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: center; }
.hero.hm .htxt h1 { font-size: 34px; }
.hfig { margin: 0; }
.hfig img {
  width: 100%; height: 330px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hfig figcaption { font-size: 12px; color: var(--ink-2); text-align: right; margin-top: 6px; }

/* 大数字信任栏 + 承诺标签（冠寓首页那种「数字块 + 标签」） */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px; background: var(--brand); color: #fff;
  border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow);
}
.stats .stat b { display: block; font-size: 30px; line-height: 1.15; letter-spacing: .5px; }
.stats .stat b em { font-style: normal; font-size: 15px; font-weight: 500; margin-left: 4px; opacity: .92; }
.stats .stat span { display: block; font-size: 13px; color: #d8ece6; margin-top: 6px; line-height: 1.5; }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tagx {
  background: var(--brand-l); color: var(--brand-d); border: 1px solid #cfe4de;
  border-radius: 999px; padding: 5px 12px; font-size: 13px;
}

/* 信任卡：图标 + 标题 + 一句说明 */
.fcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 14px; }
.fcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.fcard .ic { width: 30px; height: 30px; color: var(--brand); margin-bottom: 10px; }
.fcard b { display: block; font-size: 16.5px; margin-bottom: 6px; }
.fcard p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* 图文分区：左图右文（.flip 左右互换） */
.figrow {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 24px;
  align-items: center; margin-bottom: 22px;
}
.figrow.flip .figimg { order: 2; }
.figimg { margin: 0; }
.figimg img {
  width: 100%; height: 300px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.figimg figcaption { font-size: 12px; color: var(--ink-2); text-align: right; margin-top: 6px; }
.figtxt .kick {
  display: inline-block; font-size: 12.5px; letter-spacing: .5px; color: var(--brand-d);
  background: var(--brand-l); border-radius: 6px; padding: 3px 9px; margin-bottom: 8px;
}
.figtxt h3 { font-size: 20px; margin-bottom: 10px; }
.figtxt .pts { margin: 0 0 12px; padding-left: 20px; }
.figtxt .pts li { margin-bottom: 6px; color: var(--ink-2); }

/* 图片网格：装修与配置效果 */
.gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.gal figure {
  margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.gal img { width: 100%; height: 190px; object-fit: cover; }
.gal figcaption { font-size: 13px; color: var(--ink-2); padding: 10px 12px; }

@media (max-width: 900px) {
  .herogrid { grid-template-columns: 1fr; }
  .hero.hm .htxt h1 { font-size: 27px; }
  .hfig img { height: 230px; }
  .figrow { grid-template-columns: 1fr; gap: 14px; }
  .figrow.flip .figimg { order: 0; }
  .figimg img { height: 220px; }
  .stats { padding: 18px 16px; }
  .stats .stat b { font-size: 25px; }
  .gal img { height: 170px; }
}

