/* ===== 房玄龄房产地图官网 全局样式（时尚升级版） ===== */
:root {
  --primary: #5b5bf5;
  --primary-dark: #4338ca;
  --primary-light: #eef0ff;
  --secondary: #06b6d4;
  --accent: #f472b6;
  --accent2: #fbbf24;
  --grad: linear-gradient(135deg, #5b5bf5 0%, #06b6d4 100%);
  --grad-warm: linear-gradient(135deg, #f472b6 0%, #fbbf24 100%);
  --text: #1a1d2b;
  --text-light: #5b6172;
  --text-muted: #9aa1b4;
  --bg: #ffffff;
  --bg-soft: #f6f7fc;
  --border: #ebedf5;
  --success: #22c55e;
  --danger: #ef4444;
  --shadow-sm: 0 2px 8px rgba(91, 91, 245, 0.06);
  --shadow: 0 12px 40px rgba(67, 56, 202, 0.10);
  --shadow-lg: 0 24px 60px rgba(67, 56, 202, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== 滚动渐入动画 ===== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ===== 导航栏 ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(235,237,245,0.8);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.92); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 800; letter-spacing: 0.5px; color: var(--text); }
.logo-mark {
  width: 38px; height: 38px;
  background: var(--grad);
  border-radius: 11px;
  display: grid; place-items: center;
  color: #fff; font-size: 19px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(91,91,245,0.4);
  transition: var(--transition);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 15px; color: var(--text-light); font-weight: 600;
  position: relative; transition: var(--transition); padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2.5px; border-radius: 2px;
  background: var(--grad); transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px; font-size: 15px; font-weight: 700;
  cursor: pointer; border: none; transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 22px rgba(91,91,245,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(91,91,245,0.45); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-lg { padding: 15px 36px; font-size: 16px; }
.btn-block { width: 100%; }

.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text); }

/* ===== Hero ===== */
.hero {
  position: relative; padding: 96px 0 120px;
  background: radial-gradient(1200px 600px at 15% 10%, #6d6df7 0%, transparent 60%),
              radial-gradient(1000px 500px at 90% 90%, #06b6d4 0%, transparent 55%),
              linear-gradient(135deg, #2b2b6b 0%, #1a1a4b 100%);
  color: #fff; overflow: hidden;
}
.hero .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; pointer-events: none; animation: float 9s ease-in-out infinite; }
.hero .blob.b1 { width: 340px; height: 340px; background: #5b5bf5; top: -60px; right: 8%; }
.hero .blob.b2 { width: 280px; height: 280px; background: #f472b6; bottom: -40px; left: 5%; animation-delay: 2s; }
.hero .blob.b3 { width: 220px; height: 220px; background: #06b6d4; top: 40%; left: 40%; animation-delay: 4s; }
@keyframes float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.08); } }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
}
.hero h1 { font-size: 50px; line-height: 1.22; font-weight: 800; margin-bottom: 22px; letter-spacing: -0.5px; }
.hero h1 .grad-text {
  background: linear-gradient(120deg, #a5b4fc, #67e8f9, #f9a8d4);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: #fff; }

/* Hero 地图预览卡片 */
.hero-visual {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 22px; padding: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  animation: riseIn 1s ease both;
}
@keyframes riseIn { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: none; } }
.map-mock {
  aspect-ratio: 4/3; border-radius: 14px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(91,91,245,0.35), transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(6,182,212,0.35), transparent 55%),
    linear-gradient(135deg, #1e1e4d, #2c2c66);
}
.map-mock .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-dot {
  position: absolute; border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.12), 0 0 24px 6px currentColor;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 1; } 50% { transform: translate(-50%,-50%) scale(1.35); opacity: 0.7; } }
.map-ring { position: absolute; border: 1.5px solid rgba(255,255,255,0.25); border-radius: 50%; transform: translate(-50%,-50%); animation: ring 3s ease-out infinite; }
@keyframes ring { 0% { width: 10px; height: 10px; opacity: 0.8; } 100% { width: 70px; height: 70px; opacity: 0; } }

/* ===== 通用板块 ===== */
.section { padding: 92px 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 60px; }
.section-head .eyebrow {
  display: inline-block; color: var(--primary); font-weight: 800; font-size: 13px;
  letter-spacing: 3px; text-transform: uppercase;
  background: var(--primary-light); padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { font-size: 38px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.5px; }
.section-head p { color: var(--text-light); font-size: 17px; }

/* 统计数字 */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: -80px; position: relative; z-index: 3;
}
.stat-card {
  background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.6);
  transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card::before { content:''; position:absolute; inset:0; background: var(--grad); opacity: 0; transition: var(--transition); }
.stat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.stat-card:hover::before { opacity: 0.06; }
.stat-card .num { font-size: 42px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; position: relative; }
.stat-card .label { color: var(--text-light); font-size: 15px; margin-top: 6px; font-weight: 500; }

/* 特性卡片 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 38px 30px; transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::after {
  content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%;
  background: var(--grad); opacity: 0; filter: blur(40px); top: -40px; right: -40px; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::after { opacity: 0.18; }
.feature-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-size: 28px; margin-bottom: 22px; box-shadow: 0 10px 24px rgba(91,91,245,0.35);
  transition: var(--transition);
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-6deg); }
.feature-card h3 { font-size: 21px; margin-bottom: 10px; font-weight: 700; }
.feature-card p { color: var(--text-light); font-size: 15px; }

/* 产品服务列表 */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.service-item {
  display: flex; gap: 22px; padding: 32px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-item:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-4px); }
.service-item .s-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px;
  background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 26px;
  box-shadow: 0 8px 20px rgba(91,91,245,0.3);
}
.service-item h3 { font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.service-item p { color: var(--text-light); font-size: 15px; }

/* CTA */
.cta {
  background: radial-gradient(800px 400px at 20% 0%, #6d6df7, transparent 60%),
              radial-gradient(700px 400px at 100% 100%, #06b6d4, transparent 60%),
              linear-gradient(135deg, #4338ca, #1e1b4b);
  border-radius: 26px; padding: 64px; text-align: center; color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: 34px; margin-bottom: 14px; font-weight: 800; }
.cta p { font-size: 17px; opacity: 0.9; margin-bottom: 30px; }
.cta .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.cta .btn-primary:hover { background: var(--grad-warm); color: #fff; }

/* ===== 页面通用标题横幅 ===== */
.page-hero {
  position: relative; padding: 90px 0;
  background: radial-gradient(900px 500px at 15% 0%, #6d6df7, transparent 55%),
              radial-gradient(700px 400px at 90% 100%, #06b6d4, transparent 55%),
              linear-gradient(135deg, #2b2b6b, #1a1a4b);
  color: #fff; text-align: center; overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.page-hero p { font-size: 18px; opacity: 0.9; }

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid h2 { font-size: 34px; margin-bottom: 18px; font-weight: 800; letter-spacing: -0.5px; }
.about-grid p { color: var(--text-light); margin-bottom: 16px; font-size: 16px; }
.about-visual {
  aspect-ratio: 1/1; border-radius: 26px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #6d6df7, transparent 60%),
              radial-gradient(circle at 80% 80%, #06b6d4, transparent 55%),
              linear-gradient(135deg, #4338ca, #1e1b4b);
  display: grid; place-items: center; font-size: 140px; box-shadow: var(--shadow-lg);
}
.about-visual span { animation: bob 3.5s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { text-align: center; padding: 34px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); transition: var(--transition); }
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.value-card .v-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px;
  background: var(--primary-light); display: grid; place-items: center; font-size: 30px; transition: var(--transition);
}
.value-card:hover .v-icon { background: var(--grad); filter: none; }
.value-card:hover .v-icon { }
.value-card h3 { font-size: 19px; margin-bottom: 8px; font-weight: 700; }
.value-card p { color: var(--text-light); font-size: 15px; }

/* 时间线 */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before { content:''; position:absolute; left:11px; top:6px; bottom:6px; width:2.5px; background: linear-gradient(var(--primary), var(--secondary)); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 38px; }
.timeline-item::before {
  content:''; position:absolute; left:-34px; top:4px;
  width:18px; height:18px; border-radius:50%;
  background: var(--grad); border:3px solid #fff; box-shadow:0 0 0 3px rgba(91,91,245,0.25);
}
.timeline-item .year {
  display: inline-block; font-weight: 800; color: #fff; font-size: 15px;
  background: var(--grad); padding: 3px 14px; border-radius: 999px; margin-bottom: 6px;
}
.timeline-item p { color: var(--text-light); margin-top: 4px; }

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info .info-item { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; transition: var(--transition); }
.contact-info .info-item:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: transparent; }
.contact-info .info-item .ci-icon {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px;
  background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 22px;
  box-shadow: 0 8px 18px rgba(91,91,245,0.3);
}
.contact-info .info-item h4 { font-size: 16px; margin-bottom: 2px; }
.contact-info .info-item p { color: var(--text-light); font-size: 15px; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-sm);
}

/* ===== 表单 ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.form-control {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 15px; font-family: inherit;
  transition: var(--transition); background: var(--bg-soft);
}
.form-control:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(91,91,245,0.14); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 提示消息 */
.alert { padding: 13px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; display: none; font-weight: 500; }
.alert.show { display: block; animation: pop 0.3s ease; }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.alert-success { background: #e7f9ee; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ===== 认证页面 ===== */
.auth-page {
  min-height: 100vh; display: grid; place-items: center; padding: 40px 20px;
  background: radial-gradient(900px 600px at 15% 10%, #6d6df7, transparent 55%),
              radial-gradient(800px 500px at 90% 90%, #06b6d4, transparent 55%),
              linear-gradient(135deg, #1a1a4b, #2b2b6b);
  position: relative; overflow: hidden;
}
.auth-page .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; pointer-events: none; animation: float 9s ease-in-out infinite; }
.auth-page .blob.b1 { width: 360px; height: 360px; background: #5b5bf5; top: -80px; left: -60px; }
.auth-page .blob.b2 { width: 300px; height: 300px; background: #f472b6; bottom: -60px; right: -40px; animation-delay: 3s; }
.auth-card {
  width: 100%; max-width: 440px; background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px); border-radius: 24px; padding: 46px 42px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.4); position: relative; z-index: 1;
  animation: riseIn 0.8s ease both;
}
.auth-card .logo { justify-content: center; margin-bottom: 8px; }
.auth-card .auth-sub { text-align: center; color: var(--text-light); margin-bottom: 28px; font-size: 15px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-light); }
.auth-footer a { color: var(--primary); font-weight: 700; }
.back-home { text-align: center; margin-top: 18px; }
.back-home a { color: rgba(255,255,255,0.85); font-size: 14px; transition: var(--transition); }
.back-home a:hover { color: #fff; }

/* ===== 页脚 ===== */
.footer {
  background: linear-gradient(135deg, #15152e, #1e1b4b);
  color: #cbd5e0; padding: 64px 0 30px; position: relative; overflow: hidden;
}
.footer::before { content:''; position:absolute; width: 400px; height: 400px; border-radius:50%; background: radial-gradient(circle, rgba(91,91,245,0.25), transparent 70%); top:-150px; right:-100px; pointer-events:none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 44px; position: relative; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p, .footer-col a { color: #94a3b8; font-size: 14px; line-height: 2.1; display: block; transition: var(--transition); }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; text-align: center; color: #64748b; font-size: 14px; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero h1 { font-size: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features, .values { grid-template-columns: 1fr; }
  .services, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 22px 24px; gap: 18px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
  .cta { padding: 44px 24px; }
  .section-head h2 { font-size: 30px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}
