/*
Theme Name: 楼半仙 - 昆明好房局
Theme URI: https://loubanxian.com
Description: GEO 生成式引擎优化运营服务官网主题
Author: 昆明房速麦网络科技有限责任公司
Version: 1.0
Text Domain: loubanxian
*/

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1a4d8f;
  --primary-dark: #143a6b;
  --accent: #2bb6a3;
  --bg: #f5f7fa;
  --text: #2c3340;
  --muted: #6b7686;
  --border: #e3e8ef;
  --maxw: 1180px;
}
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.site-logo { font-size: 22px; font-weight: 800; color: var(--primary); }
.site-logo span { color: var(--accent); }
.site-nav ul { display: flex; list-style: none; gap: 28px; }
.site-nav a { color: var(--text); font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--primary); }

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 90px 0 100px; text-align: center;
}
.hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 18px; letter-spacing: 1px; }
.hero p { font-size: 18px; opacity: .92; max-width: 720px; margin: 0 auto 32px; }
.hero .btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 14px 38px; border-radius: 30px; font-size: 16px; font-weight: 600;
}
.hero .btn:hover { background: #25a090; color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-title { text-align: center; font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 48px; font-size: 16px; }
.bg-white { background: #fff; }

/* ---------- 服务卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 34px 28px; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(26,77,143,.12); }
.card .icon { font-size: 38px; margin-bottom: 16px; }
.card h3 { font-size: 20px; margin-bottom: 12px; color: var(--primary); }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- 关于 ---------- */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-wrap h2 { font-size: 30px; margin-bottom: 20px; }
.about-wrap p { color: var(--muted); margin-bottom: 16px; }
.about-list { list-style: none; }
.about-list li { padding-left: 26px; position: relative; margin-bottom: 12px; color: var(--text); }
.about-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ---------- 联系 ---------- */
.contact { background: var(--primary-dark); color: #fff; text-align: center; }
.contact h2 { font-size: 30px; margin-bottom: 16px; }
.contact p { opacity: .9; margin-bottom: 26px; }
.contact .info { font-size: 17px; }
.contact .info strong { color: var(--accent); }

/* ---------- 文章列表 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.post-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.post-item .post-body { padding: 24px; }
.post-item h2 { font-size: 21px; margin-bottom: 10px; }
.post-item .meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.post-item p { color: var(--muted); font-size: 15px; }

.page-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color:#fff; padding: 60px 0; }
.page-hero h1 { font-size: 36px; font-weight: 800; }
.page-content { padding: 60px 0; }
.page-content .container { max-width: 860px; }
.page-content h2 { font-size: 26px; margin: 30px 0 14px; color: var(--primary); }
.page-content p { margin-bottom: 16px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #1b2230; color: #aeb6c2; padding: 44px 0 26px; text-align: center; font-size: 14px; }
.site-footer a { color: #aeb6c2; }
.site-footer a:hover { color: #fff; }
.site-footer .beian { margin-top: 14px; line-height: 2; }
.site-footer .beian a { text-decoration: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .about-wrap { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hero h1 { font-size: 32px; }
}
