/* 写字楼参数资料库 写字楼数据平台 - 公共样式 v0.2
   配色体系: 玻璃幕墙青蓝(主) + 琥珀金(强调) + 暖灰(底) —— 呼应写字楼幕墙意象
   设计: 移动优先; GEO 语义结构(H1/表格/FAQ/面包屑)保留, 增强可浏览性 */
:root {
  /* 主色系: 幕墙青蓝 */
  --brand: #0e5a6d;
  --brand-deep: #093e4c;
  --brand-ink: #062b35;
  --brand-soft: #e7f1f3;
  /* 强调: 琥珀金 */
  --gold: #c98a2b;
  --gold-soft: #f6ead6;
  /* 中性 */
  --ink: #1f2a30;
  --muted: #5d6b73;
  --line: #dfe7ea;
  --bg: #ffffff;
  --bg-soft: #f4f7f6;
  /* 语义 */
  --ok: #1a7f37;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header ===== */
.site-header {
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand) 70%, #16788f 100%);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.site-header .wrap { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 15px 18px; }
.brand-name { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.brand-name em { font-style: normal; color: #f0c26b; }
.brand-name:hover { text-decoration: none; }
.brand-sub { font-size: 12.5px; opacity: .82; }
.header-nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; align-items: center; }
.header-nav a { color: rgba(255,255,255,.94); font-weight: 600; }
.header-nav a:hover { color: #f0c26b; text-decoration: none; }
.city-chip {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  padding: 2px 10px; border-radius: 999px; font-size: 12.5px; color: #fff;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.crumbs { font-size: 13px; color: var(--muted); padding: 12px 0 2px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
main { padding: 12px 0 40px; min-height: 60vh; }

h1 { font-size: 27px; margin: 10px 0 6px; line-height: 1.35; color: var(--brand-ink); }
h2 { font-size: 20px; margin: 30px 0 10px; color: var(--brand-deep); position: relative; padding-left: 12px; }
h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 4px; border-radius: 2px; background: linear-gradient(var(--brand), var(--gold)); }
h3 { font-size: 16px; margin: 16px 0 8px; }
.page-lead { color: var(--muted); font-size: 15px; margin: 4px 0 18px; }

.updated-note { font-size: 12.5px; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: 5px 12px; border-radius: 6px; display: inline-block; }

/* ===== Hero (首页) ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 55%, #1a7f95 100%);
  color: #fff; border-radius: 14px; padding: 38px 32px; margin: 18px 0 8px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(240,194,107,.28) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 { margin: 0 0 10px; font-size: 31px; color: #fff; }
.hero .lead { margin: 6px 0 0; opacity: .94; font-size: 15.5px; max-width: 640px; }
.hero .lead b { color: #f0c26b; }
.stat-row { display: flex; gap: 34px; margin-top: 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.stat b { font-size: 27px; display: block; color: #f0c26b; font-weight: 800; letter-spacing: .5px; }
.stat span { font-size: 13px; opacity: .88; }

/* ===== 卡片 ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.card {
  border: 1px solid var(--line); border-radius: 11px; padding: 15px 17px;
  background: #fff; position: relative;
  transition: box-shadow .18s, transform .18s, border-color .18s;
  display: block; color: var(--ink);
}
.card:hover {
  box-shadow: 0 6px 18px rgba(9,62,76,.10); transform: translateY(-2px);
  border-color: rgba(14,90,109,.45); text-decoration: none;
}
.card h3 { margin: 0 0 4px; font-size: 16px; color: var(--brand-ink); }
.card .addr { font-size: 13px; color: var(--muted); margin: 0 0 9px; }
.card .meta { font-size: 13px; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag { background: var(--brand-soft); color: var(--brand-deep); font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.tag.gold { background: var(--gold-soft); color: #8a5a13; }

/* 行政区入口卡（首页） */
.district-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.district-card {
  border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px;
  background: linear-gradient(160deg, #fff 60%, var(--brand-soft));
  display: flex; justify-content: space-between; align-items: center;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.district-card:hover { box-shadow: 0 5px 14px rgba(9,62,76,.10); transform: translateY(-2px); border-color: rgba(14,90,109,.4); text-decoration: none; }
.district-card b { font-size: 16px; color: var(--brand-deep); }
.district-card span { font-size: 12.5px; color: var(--muted); }
.district-card i {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #1a7f95); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 auto;
}

/* ===== 楼档案页 ===== */
.building-title { font-size: 29px; margin: 6px 0 2px; }
.building-addr { color: var(--muted); margin-bottom: 12px; }
/* 关键指标条: 用户最关心的前置 */
.key-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;
  margin: 16px 0 6px;
}
.kf {
  border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 8px; padding: 9px 13px; background: var(--bg-soft);
}
.kf.gold { border-left-color: var(--gold); background: #fcf8ef; }
.kf .k { font-size: 12px; color: var(--muted); }
.kf .v { font-size: 15.5px; font-weight: 700; color: var(--brand-ink); margin-top: 1px; word-break: break-all; }

.building-layout { display: grid; grid-template-columns: 1fr 300px; gap: 26px; margin-top: 6px; align-items: start; }
.building-layout .side { position: sticky; top: 14px; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; margin: 14px 0 4px; }
.anchor-nav a { border: 1px solid var(--line); padding: 3px 11px; border-radius: 999px; color: var(--muted); }
.anchor-nav a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

table.spec { width: 100%; border-collapse: collapse; margin: 12px 0 6px; font-size: 14px; }
table.spec th, table.spec td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
table.spec th {
  background: var(--brand-soft); color: var(--brand-deep); width: 140px;
  font-weight: 600; white-space: nowrap;
}
table.spec tr:nth-child(even) td { background: #fafcfc; }
.pending { color: var(--muted); font-style: italic; }

/* 侧栏信息卡 */
.side-card { border: 1px solid var(--line); border-radius: 11px; padding: 15px 17px; margin-bottom: 14px; background: #fff; }
.side-card h3 { margin: 0 0 8px; font-size: 15px; color: var(--brand-deep); }
.side-card dl { margin: 0; font-size: 13.5px; }
.side-card dt { color: var(--muted); font-size: 12.5px; margin-top: 7px; }
.side-card dd { margin: 1px 0 0; word-break: break-all; }

.faq-item { border-bottom: 1px solid var(--line); padding: 11px 0; }
.faq-item h3 { font-size: 15px; margin: 0 0 4px; }
.faq-item p { margin: 0; font-size: 14px; }

.foot-note { font-size: 12.5px; color: var(--muted); background: var(--bg-soft); border: 1px dashed var(--line); padding: 8px 12px; border-radius: 6px; margin-top: 26px; }

/* 城市页/目录 */
.index-block { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.index-block a { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; display: flex; justify-content: space-between; font-size: 14px; color: var(--ink); }
.index-block a:hover { border-color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.index-block a span { color: var(--muted); font-size: 12.5px; }

/* ===== 搜索 ===== */
.search-box { display: flex; gap: 8px; margin: 16px 0 6px; max-width: 560px; }
.search-box input {
  flex: 1; padding: 10px 14px; border: 2px solid var(--brand); border-radius: 8px;
  font-size: 15px; outline: none; transition: border-color .15s;
}
.search-box input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,138,43,.15); }
.search-box button {
  padding: 10px 22px; background: linear-gradient(135deg, var(--brand), #16788f);
  color: #fff; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; font-weight: 600;
}
.search-box button:hover { filter: brightness(1.08); }
.search-hint { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; }

/* 首页 hero 内嵌搜索 */
.hero-search { margin-top: 20px; display: flex; gap: 8px; max-width: 520px; position: relative; z-index: 1; }
.hero-search input {
  flex: 1; padding: 11px 16px; border: none; border-radius: 8px; font-size: 15px; outline: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.hero-search button {
  padding: 11px 24px; background: var(--gold); color: #fff; border: none; border-radius: 8px;
  font-size: 15px; cursor: pointer; font-weight: 700;
}
.hero-search button:hover { filter: brightness(1.08); }

.filter-bar { margin: 14px 0 6px; display: flex; gap: 8px; flex-wrap: wrap; }.filter-bar button {
  padding: 6px 13px; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  cursor: pointer; font-size: 13.5px; color: var(--ink); transition: all .15s;
}
.filter-bar button:hover { border-color: var(--brand); color: var(--brand); }
.filter-bar button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
#empty-tip { color: var(--muted); display: none; padding: 20px 0; }

/* ===== Footer ===== */
.site-footer { border-top: 2px solid var(--gold); background: var(--bg-soft); padding: 22px 0 30px; color: var(--muted); font-size: 13px; margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 860px) {
  .building-layout { grid-template-columns: 1fr; }
  .building-layout .side { position: static; }
}
@media (max-width: 640px) {
  h1 { font-size: 22px; }
  .building-title { font-size: 23px; }
  .hero h1 { font-size: 24px; }
  .hero { padding: 28px 20px; }
  .brand-sub { display: none; }
  table.spec th { width: 104px; }
  .header-nav { font-size: 13px; gap: 12px; }
}
