/* ========== 嘉汇伟业官网 全局样式 ========== */
:root {
  --blue: #1a5fb4;
  --blue-dark: #123f7d;
  --blue-light: #e8f1fc;
  --green: #2fa46a;
  --green-light: #e7f6ee;
  --text: #2b2f36;
  --text-light: #6b7280;
  --bg: #f6f8fb;
  --white: #ffffff;
  --border: #e5e9f0;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(18, 63, 125, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== 顶部导航 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(18, 63, 125, 0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-dark);
}
.logo img { height: 44px; width: auto; }
.logo .logo-sub { font-size: 12px; font-weight: 400; color: var(--text-light); display: block; line-height: 1.3; }

.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-menu a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  transition: all .2s;
}
.nav-menu a:hover { color: var(--blue); background: var(--blue-light); }
.nav-menu a.active { color: var(--blue); background: var(--blue-light); font-weight: 600; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--blue-dark); }

/* ========== 通用区块 ========== */
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 30px; color: var(--blue-dark); margin-bottom: 8px; }
.section-head p { color: var(--text-light); font-size: 15px; }

/* ========== 首页 Hero ========== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #3b82c4 100%);
  color: var(--white);
  padding: 96px 0;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { font-size: 44px; line-height: 1.3; margin-bottom: 16px; }
.hero p { font-size: 18px; opacity: .92; margin-bottom: 32px; }
.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 14px;
  margin-right: 10px;
  margin-bottom: 10px;
}

/* ========== 首页简介带 ========== */
.intro-band {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-top: -40px;
  position: relative;
  z-index: 2;
  padding: 32px 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.intro-band .band-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  min-width: 76px;
}
.intro-band p { color: var(--text); font-size: 15px; }
.intro-band .band-title { font-weight: 700; color: var(--blue-dark); font-size: 16px; margin-bottom: 6px; }

/* ========== 卡片网格 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(18, 63, 125, 0.16); }
.card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-light); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-img .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 15px; background: var(--blue-light);
}
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
}
.card-badge.sale { background: #e67e22; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 18px; color: var(--blue-dark); margin-bottom: 8px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.card-price { font-size: 18px; font-weight: 700; color: var(--green); margin-top: auto; }
.card-price .unit { font-size: 13px; font-weight: 400; color: var(--text-light); }

/* ========== 快捷入口 ========== */
.quick-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.quick-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  transition: transform .25s;
  text-align: center;
}
.quick-card:hover { transform: translateY(-6px); }
.quick-card .q-icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  background: var(--blue-light);
}
.quick-card.sale .q-icon { background: var(--green-light); }
.quick-card h3 { font-size: 22px; color: var(--blue-dark); margin-bottom: 8px; }
.quick-card p { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 10px 28px;
  border-radius: 999px;
  font-size: 14px;
  transition: background .2s;
}
.btn:hover { background: var(--blue-dark); }
.btn.green { background: var(--green); }
.btn.green:hover { background: #22784d; }

/* ========== 页面 Banner ========== */
.page-banner {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-banner h1 { font-size: 34px; margin-bottom: 8px; }
.page-banner p { opacity: .9; font-size: 15px; }

/* ========== 关于我们 ========== */
.about-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px;
}
.about-box h2 { color: var(--blue-dark); font-size: 24px; margin: 32px 0 16px; border-left: 4px solid var(--green); padding-left: 14px; }
.about-box h2:first-child { margin-top: 0; }
.about-box p { color: var(--text); margin-bottom: 12px; }
.about-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.about-point {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 24px;
}
.about-point h4 { color: var(--blue-dark); margin-bottom: 6px; font-size: 16px; }
.about-point p { font-size: 14px; color: var(--text-light); margin: 0; }
.scope-list { display: flex; flex-wrap: wrap; gap: 12px; }
.scope-list li {
  background: var(--green-light);
  color: var(--green);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
}

/* ========== 筛选栏 ========== */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar input {
  flex: 1;
  min-width: 220px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  background: var(--white);
}
.filter-bar input:focus { border-color: var(--blue); }
.count-tip { font-size: 14px; color: var(--text-light); }

/* ========== 详情页 ========== */
.detail-wrap { max-width: 1000px; margin: 0 auto; }
.house-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.house-gallery .g-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-light);
}
.house-gallery img { width: 100%; height: 100%; object-fit: cover; }
.house-gallery .g-item.placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 14px;
}
.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.detail-card h1 { color: var(--blue-dark); font-size: 30px; margin-bottom: 8px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.detail-tags span {
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 999px;
}
.detail-price { font-size: 28px; font-weight: 800; color: var(--green); margin-bottom: 24px; }
.detail-price .unit { font-size: 14px; color: var(--text-light); font-weight: 400; }
.info-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.info-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-size: 14px;
}
.info-table td:first-child {
  width: 140px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 600;
}
.detail-desc h2 { color: var(--blue-dark); font-size: 20px; margin: 24px 0 12px; border-left: 4px solid var(--green); padding-left: 12px; }
.detail-desc p { color: var(--text); margin-bottom: 12px; }
.back-link { display: inline-block; margin: 24px 0 8px; color: var(--blue); font-size: 14px; }
.back-link:hover { text-decoration: underline; }
.tip-box {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--green);
  margin-top: 24px;
}

/* ========== 招聘页 ========== */
.job-list { display: flex; flex-direction: column; gap: 16px; }
.job-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.job-item h3 { color: var(--blue-dark); font-size: 18px; margin-bottom: 4px; }
.job-item .job-tag { color: var(--text-light); font-size: 14px; }
.empty-tip {
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: var(--text-light);
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0;
  margin-top: 64px;
  font-size: 14px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner h4 { color: var(--white); margin-bottom: 10px; font-size: 16px; }
.footer-inner p { margin-bottom: 4px; }
.footer-bottom {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  opacity: .7;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .about-points { grid-template-columns: repeat(2, 1fr); }
  .house-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(18, 63, 125, 0.12);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { width: 100%; padding: 12px 16px; }
  .hero { padding: 64px 0; }
  .hero h1 { font-size: 30px; }
  .card-grid, .quick-cards, .about-points { grid-template-columns: 1fr; }
  .house-gallery { grid-template-columns: 1fr; }
  .intro-band { flex-direction: column; padding: 24px; margin-top: -24px; }
  .detail-card { padding: 24px; }
}
