/* ============================================================
   氢屋新房 · 清新活力青绿色主题
   ============================================================ */
:root {
  --c-primary: #0ea5a4;        /* 主色 青绿 */
  --c-primary-dark: #0b7c7b;
  --c-primary-darker: #0a5c5b;
  --c-primary-light: #d7f4f2;
  --c-mint: #e8faf7;           /* 浅薄荷背景 */
  --c-accent: #f6b73c;         /* 点缀 暖金 */
  --c-text: #23333d;
  --c-text2: #5c7079;
  --c-text3: #94a7af;
  --c-border: #e3edec;
  --c-bg: #ffffff;
  --c-bg-soft: #f4fbfa;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 24px rgba(14, 165, 164, .10);
  --shadow-hover: 0 12px 34px rgba(14, 165, 164, .18);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--c-text); background: var(--c-bg); line-height: 1.7; font-size: 15px; }
a { color: var(--c-primary); text-decoration: none; transition: .2s; }
a:hover { color: var(--c-primary-dark); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.35; color: var(--c-text); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--c-bg-soft); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow { display: inline-block; font-size: 12px; letter-spacing: 2px; color: var(--c-primary); background: var(--c-mint); padding: 4px 14px; border-radius: 99px; margin-bottom: 12px; }
.section-head h2 { font-size: 28px; font-weight: 700; }
.section-head p { color: var(--c-text2); margin-top: 8px; }

/* ---------- 导航 ---------- */
.main-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 66px; display: flex; align-items: center; gap: 28px; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #14b8a6, #0ea5a4); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.brand-text { font-size: 19px; font-weight: 700; color: var(--c-text); letter-spacing: 1px; }
.nav-menu { display: flex; gap: 4px; flex: 1; }
.nav-link { padding: 8px 14px; border-radius: 8px; color: var(--c-text2); font-size: 15px; }
.nav-link:hover { color: var(--c-primary); background: var(--c-mint); }
.nav-link.active { color: var(--c-primary-dark); background: var(--c-mint); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-phone { color: var(--c-primary-dark); font-weight: 600; font-size: 14px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; cursor: pointer; border-radius: var(--radius-sm); font-size: 14px; padding: 10px 22px; transition: .2s; font-family: var(--font); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 34px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, #14b8a6, #0ea5a4); color: #fff; box-shadow: 0 4px 14px rgba(14,165,164,.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(14,165,164,.42); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--c-primary); color: var(--c-primary); }
.btn-outline:hover { background: var(--c-mint); color: var(--c-primary-dark); }
.btn-light { background: #fff; color: var(--c-primary-dark); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.btn-light:hover { color: var(--c-primary); }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(135deg, #0b7c7b 0%, #0ea5a4 55%, #2fc4b8 100%); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero::before { content: ""; position: absolute; left: -80px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.06); }
.hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 90px 20px 100px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero-copy { flex: 1; min-width: 320px; }
.hero-copy .hero-badge { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); padding: 5px 14px; border-radius: 99px; font-size: 13px; margin-bottom: 18px; }
.hero-copy h1 { color: #fff; font-size: 40px; font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
.hero-copy h1 span { color: #ffe9b8; }
.hero-copy p { color: rgba(255,255,255,.88); font-size: 16px; margin-bottom: 26px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { flex: 1; min-width: 300px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hstat { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 22px; text-align: center; backdrop-filter: blur(6px); }
.hstat b { display: block; font-size: 28px; font-weight: 800; color: #ffe9b8; }
.hstat span { font-size: 13px; color: rgba(255,255,255,.85); }

/* ---------- 功能卡 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 28px 24px; transition: .25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.fc-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--c-mint); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { color: var(--c-text2); font-size: 13.5px; }

/* ---------- 楼盘卡片 ---------- */
.house-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.house-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.house-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.hc-thumb { height: 180px; background: linear-gradient(135deg, #b8e6e2, #d9f4f0); display: flex; align-items: center; justify-content: center; font-size: 46px; position: relative; }
.hc-tag { position: absolute; left: 12px; top: 12px; background: var(--c-accent); color: #5c4300; font-size: 12px; padding: 3px 10px; border-radius: 99px; font-weight: 600; }
.hc-tag.hot { background: #ff6b6b; color: #fff; }
.hc-body { padding: 18px 20px 20px; }
.hc-name { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.hc-meta { color: var(--c-text2); font-size: 13px; margin-bottom: 10px; }
.hc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hc-tags span { background: var(--c-bg-soft); border: 1px solid var(--c-border); color: var(--c-text2); font-size: 12px; padding: 2px 9px; border-radius: 99px; }
.hc-foot { display: flex; align-items: center; justify-content: space-between; }
.hc-price { color: var(--c-primary-dark); font-size: 15px; font-weight: 700; }
.hc-price small { font-weight: 400; color: var(--c-text3); font-size: 12px; }

/* ---------- 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.step { text-align: center; position: relative; padding: 20px 10px; }
.step .sn { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; background: linear-gradient(135deg, #14b8a6, #0ea5a4); color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.step h4 { font-size: 14px; margin-bottom: 6px; }
.step p { font-size: 12px; color: var(--c-text3); }

/* ---------- 新闻卡片 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display: block; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px; transition: .25s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.nc-cat { display: inline-block; font-size: 12px; color: var(--c-primary); background: var(--c-mint); padding: 3px 11px; border-radius: 99px; margin-bottom: 12px; }
.news-card .nc-title { font-size: 15.5px; font-weight: 600; color: var(--c-text); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .nc-summary { font-size: 13px; color: var(--c-text2); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-meta { font-size: 12px; color: var(--c-text3); display: flex; justify-content: space-between; }

/* ---------- 页面头/面包屑 ---------- */
.page-header { background: linear-gradient(135deg, #0b7c7b, #14b8a6); color: #fff; padding: 52px 0; }
.page-header h1 { color: #fff; font-size: 30px; }
.page-header p { color: rgba(255,255,255,.85); margin-top: 6px; }
.breadcrumb { font-size: 13px; color: var(--c-text3); margin-bottom: 22px; }
.breadcrumb a { color: var(--c-text2); }
.breadcrumb .sep { margin: 0 8px; }

/* ---------- 筛选条 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 0; }
.filter-bar a { padding: 6px 15px; border-radius: 99px; border: 1px solid var(--c-border); color: var(--c-text2); font-size: 13.5px; }
.filter-bar a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-bar a.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ---------- 详情页 ---------- */
.house-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; }
.hd-left .hd-thumb { height: 320px; border-radius: var(--radius); background: linear-gradient(135deg, #b8e6e2, #e4f7f4); display: flex; align-items: center; justify-content: center; font-size: 84px; margin-bottom: 22px; }
.hd-left h1 { font-size: 26px; margin-bottom: 8px; }
.hd-meta-line { color: var(--c-text2); font-size: 14px; margin-bottom: 18px; }
.hd-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.hd-info .kv { background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 12px 14px; }
.hd-info .kv b { display: block; font-size: 15px; color: var(--c-primary-dark); }
.hd-info .kv span { font-size: 12px; color: var(--c-text3); }
.hd-right { background: var(--c-mint); border: 1px solid #cdebe7; border-radius: var(--radius); padding: 26px; align-self: start; position: sticky; top: 90px; }
.hd-right h3 { margin-bottom: 6px; }
.hd-right .price-big { font-size: 22px; color: var(--c-primary-dark); font-weight: 800; margin-bottom: 16px; }
.hd-right form .form-group { margin-bottom: 12px; }
.article-detail { max-width: 860px; margin: 0 auto; }
.ad-header { text-align: center; margin-bottom: 28px; }
.ad-cat { display: inline-block; font-size: 12px; color: var(--c-primary); background: var(--c-mint); padding: 4px 14px; border-radius: 99px; margin-bottom: 12px; }
.ad-header h1 { font-size: 26px; margin-bottom: 10px; }
.ad-meta { color: var(--c-text3); font-size: 13px; }
.ad-body { font-size: 15.5px; color: #33424a; }
.ad-body p { margin-bottom: 16px; }
.ad-body ul, .ad-body ol { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.ad-body li { margin-bottom: 6px; }
.ad-body img { border-radius: var(--radius-sm); margin: 10px 0; }

/* ---------- 关于/文本页 ---------- */
.text-page { max-width: 860px; margin: 0 auto; }
.text-page h2 { font-size: 22px; margin: 30px 0 14px; padding-left: 14px; border-left: 4px solid var(--c-primary); }
.text-page p { color: var(--c-text2); margin-bottom: 14px; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; margin-bottom: 6px; color: var(--c-text2); }
.form-group .required { color: #ff6b6b; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14px; font-family: var(--font); background: #fff; color: var(--c-text); transition: .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(14,165,164,.12); }
.form-row { display: flex; gap: 14px; }

/* ---------- 弹窗 ---------- */
.lead-modal-overlay { position: fixed; inset: 0; background: rgba(15,35,38,.55); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.lead-modal { background: #fff; border-radius: 18px; width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; padding: 30px; position: relative; animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lead-modal-close { position: absolute; right: 14px; top: 12px; background: none; border: none; font-size: 24px; color: var(--c-text3); cursor: pointer; }
.lead-modal-header { margin-bottom: 20px; }
.lead-modal-header h3 { font-size: 19px; margin-bottom: 4px; }
.lead-modal-header p { color: var(--c-text2); font-size: 13px; }
.lead-modal-msg { font-size: 13px; margin-bottom: 12px; padding: 8px 12px; border-radius: 8px; display: none; }
.lead-modal-msg.ok { display: block; background: #e8faf0; color: #0b7c4a; }
.lead-modal-msg.err { display: block; background: #fdeeee; color: #c0392b; }
.lead-modal-tip { font-size: 12px; color: var(--c-text3); margin-top: 10px; text-align: center; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0d2b2e; color: #9fc4c3; margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 52px 20px 26px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 34px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; color: #9fc4c3; font-size: 13.5px; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 13.5px; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; text-align: center; font-size: 12.5px; color: #6f9c9b; }

/* ---------- 空状态/工具 ---------- */
.empty-state { text-align: center; padding: 60px 0; color: var(--c-text3); }
.empty-state .empty-icon { font-size: 44px; margin-bottom: 12px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; max-width: 1200px; margin-left: auto; margin-right: auto; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--c-border); color: var(--c-text2); font-size: 13.5px; text-align: center; }
.pagination a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination .current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ---------- 汉堡菜单 ---------- */
.nav-toggle { display: none; width: 38px; height: 38px; border: 1.5px solid var(--c-border); border-radius: 9px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--c-primary-dark); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .feature-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .house-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .house-detail { grid-template-columns: 1fr; }
  .hd-right { position: static; }
  .hero-inner { padding: 70px 20px 80px; }
  .hero-copy h1 { font-size: 34px; }
}
@media (max-width: 768px) {
  .nav-inner { height: 60px; gap: 12px; position: relative; }
  .nav-toggle { display: flex; }
  .nav-menu { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--c-border); box-shadow: 0 12px 24px rgba(0,0,0,.08); flex-direction: column; padding: 10px 20px 16px; z-index: 200; }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 12px 10px; font-size: 15px; border-bottom: 1px solid var(--c-bg-soft); border-radius: 0; }
  .nav-phone { display: none; }
  .nav-admin { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 46px 0; }
  .section-head h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .feature-grid, .news-grid, .house-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-copy h1 { font-size: 28px; }
  .hero-inner { padding: 56px 16px 64px; }
  .hero-copy p { font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .hstat b { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { font-size: 11.5px; }
  .form-row { flex-direction: column; gap: 0; }
  .filter-bar { gap: 8px; }
  .filter-bar a { font-size: 12.5px; padding: 5px 12px; }
  .breadcrumb { font-size: 12px; }
  .page-header { padding: 38px 0; }
  .page-header h1 { font-size: 25px; }
  .article-detail .ad-header h1 { font-size: 22px; }
  .hd-info { grid-template-columns: repeat(2, 1fr); }
  .pagination a, .pagination span { min-width: 32px; padding: 6px 9px; font-size: 12.5px; }
  .news-card { padding: 16px; }
}
