/* ============================================================
   长沙老杨看房 · 全站样式
   主题色：咖啡（稳重底色）+ 红（行动按钮）+ 橙（渐变过渡）+ 黄（点睛数据）
   ============================================================ */

:root {
  --coffee-900: #241507;
  --coffee-800: #2f1d0e;
  --coffee-700: #4a2c12;
  --coffee-600: #6e3c15;
  --red-600: #c23b26;
  --red-700: #a72f1d;
  --orange-500: #e8622a;
  --yellow-400: #f5bd4a;
  --yellow-500: #f0a72e;
  --yellow-300: #f9d67e;
  --brand: #b0762a;          /* 装饰性小字/链接 */
  --ink: #352415;
  --muted: #82705d;
  --line: #ecdfc8;
  --bg: #faf5eb;
  --card: #ffffff;
  --wechat: #07c160;
  --xhs: #ff2442;
  --phone: #d94f2b;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(53, 36, 21, 0.09);
  --shadow-lg: 0 16px 48px rgba(53, 36, 21, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "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(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--coffee-700); text-decoration: none; }
.container { width: min(1120px, 92%); margin: 0 auto; }
section { padding: 72px 0; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 251, 244, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(53, 36, 21, 0.12); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--coffee-900); font-weight: 400; }
.logo strong { font-weight: 800; color: var(--coffee-800); }
.logo-icon { font-size: 24px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--ink);
  transition: all 0.2s;
}
.nav-link:hover { background: var(--bg); color: var(--red-600); }
.nav-link.active { color: var(--red-600); font-weight: 600; }
.header-phone {
  background: var(--red-600); color: #fff; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform 0.2s;
}
.header-phone:hover { transform: translateY(-1px); background: var(--red-700); color: #fff; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--coffee-800) 0%, #5a3310 55%, #8a4715 100%);
  padding: 84px 0 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 10%, rgba(245, 189, 74, 0.18), transparent);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245, 189, 74, 0.14); border: 1px solid rgba(245, 189, 74, 0.45);
  color: var(--yellow-300); padding: 6px 16px; border-radius: 999px; font-size: 14px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.3; font-weight: 800; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--yellow-400); }
.hero-sub { margin: 18px 0 30px; font-size: 17px; color: #ecdcc8; max-width: 560px; }
.hero-sub strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-size: 16px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.25s; font-family: var(--font);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary { background: linear-gradient(135deg, var(--orange-500) 0%, var(--red-600) 100%); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-wechat { background: var(--wechat); color: #fff; }
.btn-coffee { background: var(--coffee-700); color: #fff; }
.btn-coffee:hover { background: var(--coffee-800); }
.btn-outline { background: #fff; color: var(--coffee-800); border: 1.5px solid var(--coffee-800); }
.btn-outline:hover { background: var(--coffee-800); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* Hero 右侧人像 */
.hero-portrait { position: relative; justify-self: center; }
.hero-portrait .portrait-frame {
  width: min(360px, 78vw); aspect-ratio: 3/3.6; border-radius: 20px 20px 90px 20px;
  border: 3px solid rgba(245, 189, 74, 0.65); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.float-chip {
  position: absolute; background: rgba(255, 255, 255, 0.96); color: var(--coffee-900);
  padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-lg); animation: float 4s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.chip-1 { top: 8%; left: -18%; }
.chip-2 { bottom: 12%; right: -14%; animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* 城市剪影 */
.hero-skyline { position: relative; margin-top: 56px; line-height: 0; }
.hero-skyline svg { width: 100%; height: 90px; display: block; }

/* ---------- 数据条 ---------- */
.stats-bar { background: #2b1a0c; padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  text-align: center; padding: 34px 10px; color: #fff; position: relative;
}
.stat-item + .stat-item::before {
  content: ""; position: absolute; left: 0; top: 30%; height: 40%; width: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.stat-num { font-size: 34px; font-weight: 800; color: var(--yellow-400); }
.stat-num sup { font-size: 16px; }
.stat-label { font-size: 14px; color: #d8c5ae; margin-top: 4px; }

/* ---------- 通用 Section 头 ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.kicker {
  color: var(--brand); font-weight: 700; letter-spacing: 3px; font-size: 13px;
  text-transform: uppercase; margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--coffee-800); font-weight: 800; letter-spacing: 1px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.section { background: var(--bg); }
.section.alt { background: #fffbf2; }

/* ---------- 关于老杨 ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about-photo { position: relative; }
.about-photo .photo-frame {
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  width: min(400px, 100%); margin: 0 auto;
}
.about-photo img { width: 100%; aspect-ratio: 3/3.8; object-fit: cover; object-position: top center; }
.about-exp {
  position: absolute; right: -6px; bottom: -6px; background: linear-gradient(135deg, var(--orange-500), var(--red-600));
  color: #fff; border-radius: 16px; padding: 14px 22px; text-align: center; box-shadow: var(--shadow-lg);
}
.about-exp b { display: block; font-size: 26px; line-height: 1.2; }
.about-exp span { font-size: 13px; }
.about-text h2 { font-size: 30px; color: var(--coffee-800); margin-bottom: 6px; }
.about-text .about-title-line { color: var(--brand); font-weight: 600; margin-bottom: 18px; }
.credential-badge {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #fdf3dd, #fbe9c4);
  border: 1.5px solid var(--yellow-500); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 20px;
}
.credential-badge .cb-icon { font-size: 26px; }
.credential-badge b { display: block; color: var(--coffee-800); font-size: 16px; line-height: 1.4; }
.credential-badge span { font-size: 13px; color: var(--muted); }
.about-text p { color: var(--muted); margin-bottom: 14px; text-align: justify; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.about-point {
  display: flex; gap: 10px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.about-point .pt-icon { font-size: 20px; }
.about-point b { display: block; font-size: 15px; color: var(--coffee-800); }
.about-point span { font-size: 13px; color: var(--muted); }

/* ---------- 为什么选择老杨 ---------- */
.reasons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.reason-card {
  background: var(--card); border-radius: var(--radius); padding: 34px 26px;
  box-shadow: var(--shadow); transition: all 0.3s; border-top: 3px solid transparent;
}
.reason-card:hover { transform: translateY(-6px); border-top-color: var(--orange-500); box-shadow: var(--shadow-lg); }
.reason-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: linear-gradient(135deg, #fdf3dd, #f9e3b5); margin-bottom: 18px;
}
.reason-card h3 { font-size: 18px; color: var(--coffee-800); margin-bottom: 8px; }
.reason-card p { font-size: 14px; color: var(--muted); }

/* ---------- 新房精选 ---------- */
.homes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.3s; display: flex; flex-direction: column;
}
.home-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.home-art { position: relative; height: 170px; overflow: hidden; }
.home-art svg { width: 100%; height: 100%; display: block; transition: transform 0.5s; }
.home-card:hover .home-art svg { transform: scale(1.06); }
.home-district {
  position: absolute; top: 12px; left: 12px; background: rgba(36, 21, 7, 0.75);
  color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.home-demo-tag {
  position: absolute; top: 12px; right: 12px; background: rgba(240, 167, 46, 0.95);
  color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px;
}
.home-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.home-name { font-size: 18px; color: var(--coffee-800); font-weight: 700; }
.home-type { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.home-price { font-size: 15px; color: var(--red-600); font-weight: 700; }
.home-price small { font-weight: 400; color: var(--muted); font-size: 12px; }
.home-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.home-tag {
  font-size: 12px; color: #9a5b16; background: #faf0dc; padding: 3px 10px; border-radius: 6px;
}
.home-cta { margin-top: auto; }
.homes-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 26px; }
.platform-links a { color: var(--brand); font-weight: 600; }
.platform-links a:hover { color: var(--red-600); }

/* ---------- 官方数据入口 ---------- */
.gov-banner {
  margin-top: 30px; display: flex; align-items: center; gap: 20px;
  background: #fff; border: 1.5px dashed var(--yellow-500); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow); flex-wrap: wrap;
}
.gov-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #fdf3dd, #f9e3b5);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.gov-text { flex: 1; min-width: 240px; }
.gov-text b { display: block; color: var(--coffee-800); font-size: 16px; margin-bottom: 4px; }
.gov-text p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.gov-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 服务流程 ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step-card {
  background: var(--card); border-radius: var(--radius); padding: 28px 18px; text-align: center;
  box-shadow: var(--shadow); position: relative; transition: all 0.3s;
}
.step-card:hover { transform: translateY(-5px); }
.step-num {
  width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--red-600)); color: #ffe9c4;
  font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center;
}
.step-card h3 { font-size: 16px; color: var(--coffee-800); margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--muted); }
.promise-line {
  margin-top: 34px; text-align: center; color: #7a4a12; font-size: 15px; font-weight: 600;
  background: #fffbf2; border: 1px dashed var(--yellow-500); border-radius: 12px; padding: 16px;
}

/* ---------- 楼市AI 板块（内嵌对话窗口） ---------- */
.ai-section { background: linear-gradient(135deg, var(--coffee-800), var(--coffee-600)); color: #fff; }
.ai-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.ai-section .kicker { color: var(--yellow-300); }
.ai-section h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.ai-section .ai-intro p { color: #ecdcc8; margin-top: 12px; }
.ai-features { margin: 22px 0 28px; display: grid; gap: 10px; }
.ai-feature { display: flex; gap: 10px; align-items: center; font-size: 15px; color: #f5ead9; }

/* ---------- 对话窗口（首页内嵌 & AI页共用） ---------- */
.chat-shell {
  background: var(--card); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column;
}
.chat-embedded { height: 620px; }
.chat-page .chat-shell { max-width: 860px; margin: 0 auto; height: calc(100vh - 200px); min-height: 520px; }
.chat-head {
  padding: 16px 24px; background: linear-gradient(135deg, var(--coffee-800), var(--coffee-700));
  color: #fff; display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.chat-head .bot-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--yellow-500); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.chat-head b { display: block; font-size: 16px; }
.chat-head span { font-size: 12px; color: #d8c5ae; }
.chat-head .head-badges { margin-left: auto; display: flex; gap: 8px; }
.demo-badge, .provider-badge {
  font-size: 12px; padding: 3px 10px; border-radius: 999px; display: none; white-space: nowrap;
}
.demo-badge {
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.4); color: #f5ead9;
}
.provider-badge {
  background: rgba(245, 189, 74, 0.18); border: 1px solid rgba(245, 189, 74, 0.55); color: var(--yellow-300);
}
.chat-msgs { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--bg); }
.chat-bubble { max-width: 88%; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.7; word-break: break-word; }
.chat-msgs .chat-bubble { margin-bottom: 0; }
.chat-msgs .chat-bubble.bot { background: #fff; color: var(--ink); box-shadow: var(--shadow); max-width: 82%; }
.chat-msgs .chat-bubble.user { background: var(--red-600); color: #fff; max-width: 82%; }
.chat-msgs .chat-bubble.bot strong { color: var(--coffee-800); }
.chat-msgs .chat-bubble.bot a { color: var(--red-600); font-weight: 600; }
/* 首页AI板块里的静态演示气泡（渐显用） */
.ai-chat-demo .chat-bubble.user { background: var(--yellow-500); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; width: fit-content; }
.ai-chat-demo .chat-bubble.bot { background: rgba(255, 255, 255, 0.1); color: #f5ead9; border-bottom-left-radius: 4px; width: fit-content; }
.chat-bubble.typing span {
  display: inline-block; width: 6px; height: 6px; background: #d8c5ae; border-radius: 50%;
  margin-right: 4px; animation: blink 1.2s infinite;
}
.chat-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chat-suggests { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 24px 0; background: var(--bg); flex-shrink: 0; }
.suggest-chip {
  font-size: 13px; color: #7a4a12; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.suggest-chip:hover { border-color: var(--orange-500); color: var(--red-600); }
.chat-input-bar { display: flex; gap: 12px; padding: 16px 24px; background: #fff; border-top: 1px solid var(--line); flex-shrink: 0; }
.chat-input-bar textarea {
  flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px;
  font-size: 15px; font-family: var(--font); resize: none; height: 48px; outline: none; max-height: 120px;
}
.chat-input-bar textarea:focus { border-color: var(--orange-500); }
.chat-send {
  padding: 0 30px; border: none; border-radius: 12px; background: linear-gradient(135deg, var(--orange-500), var(--red-600));
  color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font);
}
.chat-send:disabled { opacity: 0.6; cursor: not-allowed; }
.chat-disclaimer { text-align: center; font-size: 12px; color: #a08e79; padding: 14px 0 0; }

/* ---------- 博客卡片（首页预览 & 列表页） ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--card); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow); transition: all 0.3s; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.blog-tag {
  background: #fdf3dd; color: var(--brand); padding: 2px 10px; border-radius: 999px; font-size: 12px;
}
.blog-title { font-size: 18px; line-height: 1.5; color: var(--coffee-800); margin-bottom: 10px; }
.blog-title a { color: inherit; }
.blog-title a:hover { color: var(--red-600); }
.blog-summary {
  font-size: 14px; color: var(--muted); margin-bottom: 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-more { font-size: 14px; font-weight: 600; color: var(--brand); }
.blog-more:hover { color: var(--red-600); }
.blog-list { display: grid; gap: 22px; max-width: 820px; margin: 0 auto; }

/* ---------- 计算器 ---------- */
.calc-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.calc-form { padding: 34px; border-right: 1px solid var(--line); }
.calc-result { padding: 34px; background: linear-gradient(160deg, var(--coffee-800), var(--coffee-700) 55%, var(--coffee-600)); color: #fff; }
.calc-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.calc-tab {
  padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-size: 14px; cursor: pointer; font-family: var(--font); color: var(--ink); transition: all 0.2s;
}
.calc-tab.active { background: var(--coffee-800); border-color: var(--coffee-800); color: #fff; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.form-row .input-flex { display: flex; gap: 10px; }
.input-flex input, .input-flex select, .form-row input, .form-row textarea {
  flex: 1; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: var(--font); color: var(--ink); background: #fff; outline: none;
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row textarea:focus, .input-flex input:focus, .input-flex select:focus {
  border-color: var(--orange-500);
}
.input-suffix { align-self: center; color: var(--muted); font-size: 14px; white-space: nowrap; }
.calc-radio { display: flex; gap: 18px; }
.calc-radio label { display: flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; cursor: pointer; }
.res-line { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.res-line span { color: #d8c5ae; font-size: 14px; }
.res-line b { font-size: 20px; color: #fff; }
.res-line b em { font-style: normal; font-size: 13px; color: #d8c5ae; }
.res-hero { text-align: center; padding: 10px 0 22px; }
.res-hero b { font-size: 44px; color: var(--yellow-400); font-weight: 800; }
.res-hero b em { font-style: normal; font-size: 16px; color: #d8c5ae; }
.res-hero p { color: #d8c5ae; font-size: 14px; margin-top: 4px; }
.calc-note { font-size: 12px; color: #c9b394; margin-top: 18px; }

/* ---------- 联系老杨 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-card {
  background: var(--card); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 20px; color: var(--coffee-800); margin-bottom: 6px; }
.contact-card .cc-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.contact-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.contact-row:last-of-type { border-bottom: none; }
.contact-ico {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.ico-wechat { background: #e7f8ef; }
.ico-phone { background: #fdeee6; }
.ico-xhs { background: #ffe9ec; }
.contact-row b { display: block; font-size: 17px; color: var(--coffee-800); }
.contact-row b a { color: inherit; }
.contact-row span { font-size: 13px; color: var(--muted); }
.copy-btn {
  margin-left: auto; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--wechat);
  color: var(--wechat); background: #fff; font-size: 13px; cursor: pointer; font-family: var(--font);
  font-weight: 600; transition: all 0.2s;
}
.copy-btn:hover { background: var(--wechat); color: #fff; }
.copy-btn.xhs { border-color: var(--xhs); color: var(--xhs); }
.copy-btn.xhs:hover { background: var(--xhs); color: #fff; }
.qr-box { display: flex; gap: 18px; align-items: center; margin-top: 18px; background: var(--bg); border-radius: 12px; padding: 16px; }
.qr-box img { width: 110px; height: 110px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.qr-box p { font-size: 13px; color: var(--muted); }

/* 留言表单 */
.lead-form .form-row textarea { resize: vertical; min-height: 90px; }
.lead-tip { font-size: 13px; color: #a08e79; margin-top: 12px; text-align: center; }
.form-msg { text-align: center; font-size: 14px; margin-top: 12px; min-height: 20px; }
.form-msg.ok { color: var(--wechat); }
.form-msg.err { color: var(--red-600); }

/* ---------- 页头（博客/文章页） ---------- */
.page-head {
  background: linear-gradient(135deg, var(--coffee-800), #5a3310);
  color: #fff; text-align: center; padding: 64px 0 56px;
}
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: 2px; }
.page-head .kicker { color: var(--yellow-300); }
.page-sub { color: #ecdcc8; margin-top: 10px; }

/* ---------- 文章详情页 ---------- */
.article-container { max-width: 780px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red-600); }
.article-header h1 { font-size: clamp(24px, 3.4vw, 34px); color: var(--coffee-800); line-height: 1.45; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.article-summary {
  margin: 26px 0; padding: 16px 20px; background: #fdf3dd; border-left: 4px solid var(--yellow-500);
  border-radius: 0 10px 10px 0; color: #6b5426; font-size: 15px;
}
.policy-note {
  margin-top: 26px; padding: 14px 18px; background: #fdf3dd; border-left: 4px solid var(--orange-500);
  border-radius: 0 10px 10px 0; color: #6b5426; font-size: 13.5px; line-height: 1.8;
}
.policy-disclaimer {
  max-width: 820px; margin: 0 auto 26px; padding: 14px 18px;
  background: #fdf3dd; border: 1px dashed var(--yellow-500); border-radius: 12px;
  color: #6b5426; font-size: 13.5px; line-height: 1.8;
}
.article-content { font-size: 16px; color: #4a3a28; }
.article-content h2 {
  font-size: 21px; color: var(--coffee-800); margin: 34px 0 14px; padding-left: 12px;
  border-left: 4px solid var(--yellow-500);
}
.article-content h3 { font-size: 17px; color: var(--coffee-800); margin: 24px 0 10px; }
.article-content p { margin: 12px 0; text-align: justify; }
.article-content ul, .article-content ol { margin: 12px 0 12px 24px; }
.article-content li { margin: 6px 0; }
.article-content blockquote {
  margin: 16px 0; padding: 12px 18px; background: var(--bg); border-radius: 10px; color: var(--muted);
}
.article-content strong { color: var(--coffee-800); }
.article-content hr { border: none; border-top: 1px dashed var(--line); margin: 26px 0; }
.article-cta {
  margin-top: 44px; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--coffee-800), var(--coffee-600)); color: #fff; text-align: center;
}
.article-cta h3 { font-size: 20px; margin-bottom: 6px; }
.article-cta p { color: #ecdcc8; font-size: 14px; margin-bottom: 18px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.empty-state {
  text-align: center; padding: 60px 20px; color: var(--muted);
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
.empty-state a { color: var(--red-600); font-weight: 600; }

/* ---------- AI 对话页 ---------- */
.chat-page { background: var(--bg); padding: 0 0 90px; }
.chat-page .container { padding-top: 28px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--coffee-900); color: #cbb69c; padding: 54px 0 90px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.footer-contact a { color: var(--yellow-300); }
.footer-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.footer-links a { color: #cbb69c; }
.footer-links a:hover { color: var(--yellow-300); }
.footer-bottom { padding-top: 22px; font-size: 12.5px; color: #a08e79; display: grid; gap: 6px; }
.footer-bottom a { color: #a08e79; }

/* ---------- 移动端底部栏 ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99; display: none;
  background: #fff; box-shadow: 0 -4px 20px rgba(53,36,21,0.14); padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-bar a { flex: 1; text-align: center; padding: 11px 0; border-radius: 10px; font-size: 14px; font-weight: 700; }
.mb-phone { background: var(--phone); color: #fff; }
.mb-wechat { background: var(--wechat); color: #fff; }
.mb-ai { background: var(--coffee-800); color: #fff; }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 悬浮问AI按钮（桌面端） ---------- */
.chat-fab {
  position: fixed; right: 26px; bottom: 30px; z-index: 98;
  display: flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--orange-500), var(--red-600));
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(194, 59, 38, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 36px rgba(194, 59, 38, 0.55); }
.fab-icon { font-size: 18px; animation: fabPulse 2.2s ease-in-out infinite; }
@keyframes fabPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* ---------- 后台管理页 ---------- */
.admin-wrap { max-width: 880px; margin: 0 auto; }
.admin-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; margin-bottom: 24px; }
.admin-card h2 { font-size: 19px; color: var(--coffee-800); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.admin-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.admin-row input { flex: 1; min-width: 200px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; font-family: var(--font); outline: none; }
.admin-row input:focus { border-color: var(--orange-500); }
.admin-list { display: grid; gap: 10px; margin-top: 16px; }
.admin-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--bg); border-radius: 10px; font-size: 14px; }
.admin-item b { flex: 1; color: var(--coffee-800); }
.admin-item span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.del-btn { padding: 5px 12px; border-radius: 8px; border: 1px solid #f0c4b4; color: var(--red-600); background: #fff; cursor: pointer; font-size: 12.5px; font-family: var(--font); }
.del-btn:hover { background: var(--red-600); color: #fff; }
.lead-item { display: grid; gap: 4px; padding: 14px 16px; background: var(--bg); border-radius: 10px; font-size: 14px; }
.lead-item b { color: var(--coffee-800); }
.lead-item .lead-phone { color: var(--brand); font-weight: 700; }
.lead-item .lead-note { color: var(--muted); }
.lead-item .lead-time { color: #a08e79; font-size: 12px; }
.admin-tip { font-size: 13px; color: var(--muted); background: var(--bg); padding: 12px 16px; border-radius: 10px; margin-top: 14px; line-height: 1.8; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  section { padding: 54px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-portrait { order: -1; margin-top: -20px; }
  .chip-1 { left: -6%; } .chip-2 { right: -6%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3)::before { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .homes-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: 1fr; }
  .chat-embedded { height: 540px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .calc-wrap { grid-template-columns: 1fr; }
  .calc-form { border-right: none; border-bottom: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }

  /* 移动端导航 */
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    background: #fff; flex-direction: column; padding: 12px 4%; box-shadow: 0 16px 30px rgba(53,36,21,0.16);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 13px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link:last-child { border-bottom: none; }
  .header-phone { margin-left: auto; font-size: 13px; padding: 8px 14px; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-toggle span { width: 22px; height: 2.5px; background: var(--coffee-900); border-radius: 2px; transition: all 0.3s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .mobile-bar { display: flex; }
  .chat-fab { display: none; } /* 手机端用底部常驻栏的"问AI" */
  body { padding-bottom: 0; }
}

@media (max-width: 620px) {
  .reasons-grid, .homes-grid, .blog-grid, .steps-grid { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero-portrait .portrait-frame { width: min(280px, 70vw); }
  .chat-embedded { height: 480px; }
  .chat-page .chat-shell { height: calc(100vh - 150px); }
  .chat-msgs { padding: 16px; }
  .chat-suggests { padding: 10px 16px 0; }
  .chat-input-bar { padding: 12px 16px; }
  .calc-form, .calc-result { padding: 24px 20px; }
  .contact-card { padding: 26px 20px; }
}
