/* ===================================
   三新银座资募大厦 - 项目详情页样式
   基于金地模板扩展，新增区位/交通/户型模块
   =================================== */

:root {
  --primary: #0a3d7c;
  --primary-light: #1557a8;
  --primary-dark: #06285a;
  --accent: #e8a020;
  --accent-hover: #d4901a;
  --text-main: #1a1a2e;
  --text-sub: #555577;
  --text-light: #888;
  --bg-white: #ffffff;
  --bg-light: #f5f7fb;
  --bg-dark: #0d1b3e;
  --border: #e0e6f0;
  --shadow: 0 4px 24px rgba(10,61,124,0.10);
  --shadow-hover: 0 8px 40px rgba(10,61,124,0.18);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1260px; margin: 0 auto; padding: 0 32px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  padding: 12px 28px; border-radius: 4px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,160,32,0.35); color: #fff; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid #fff; color: #fff;
  padding: 11px 28px; border-radius: 4px;
  font-size: 15px; font-weight: 600;
  transition: all var(--transition);
}
.btn-outline:hover { background: #fff; color: var(--primary); transform: translateY(-2px); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header.light .section-tag, .section-header.light .section-title, .section-header.light .section-subtitle { color: rgba(255,255,255,0.9); }
.section-header.light .section-tag { color: var(--accent); }
.section-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: clamp(26px, 3vw, 38px); font-weight: 700; color: var(--text-main); margin-bottom: 12px; line-height: 1.3; }
.section-header.light .section-title { color: #fff; }
.section-subtitle { font-size: 16px; color: var(--text-sub); }
.section-header.light .section-subtitle { color: rgba(255,255,255,0.7); }

/* 导航 */
.header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); z-index: 1000; transition: background var(--transition), box-shadow var(--transition); background: transparent; }
.header.scrolled { background: rgba(255,255,255,0.98); box-shadow: 0 2px 20px rgba(10,61,124,0.12); }
.header.scrolled .nav-link { color: var(--text-main); }
.header.scrolled .nav-link:hover, .header.scrolled .nav-link.active { color: var(--primary); }
.header.scrolled .logo-img { filter: none; }
/* Logo */
.header.scrolled .btn-call { color: var(--primary); border-color: var(--primary); }
.header-inner { display: flex; align-items: center; height: 100%; padding: 0 40px; gap: 32px; }
.logo { display: flex; align-items: center; justify-content: center; flex-shrink: 0; height: 100%; }
.logo-img { height: 60px; width: auto; display: block; object-fit: contain; min-width: 200px; filter: brightness(0) invert(1); transition: filter var(--transition); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link { padding: 8px 16px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.9); border-radius: var(--radius-sm); transition: all var(--transition); position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: 4px; left: 16px; right: 16px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform var(--transition); border-radius: 1px; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.active { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-call { display: flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.4); padding: 8px 16px; border-radius: 4px; transition: all var(--transition); }
.btn-call svg { width: 14px; height: 14px; }
.btn-call:hover { background: rgba(255,255,255,0.1); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all var(--transition); }
.header.scrolled .hamburger span { background: var(--text-main); }

/* Hero Banner */
.hero-banner { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; transform: scale(1.05); animation: heroZoom 20s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.12); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6,40,90,0.75) 0%, rgba(10,61,124,0.55) 50%, rgba(13,27,62,0.70) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; max-width: 800px; padding: 0 32px; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; margin-bottom: 32px; color: rgba(255,255,255,0.7); }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: #fff; }
.hero-title { font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; letter-spacing: 2px; text-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: clamp(16px, 2vw, 20px); font-weight: 300; line-height: 1.8; color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.htag { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.95); transition: all var(--transition); }
.htag svg { width: 16px; height: 16px; }
.htag:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* 项目概览 */
.overview { padding: 100px 0 80px; background: var(--bg-light); }
.overview-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.overview-text p { font-size: 16px; line-height: 1.9; color: var(--text-sub); margin-bottom: 20px; }
.overview-text p:last-child { margin-bottom: 0; }
.overview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ov-stat { background: #fff; padding: 28px 24px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; transition: all var(--transition); }
.ov-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ov-num { display: block; font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.ov-label { font-size: 14px; color: var(--text-sub); font-weight: 500; }

/* ===== 核心区位 ===== */
.location { padding: 100px 0 80px; }
.location-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.loc-card { display: flex; gap: 20px; padding: 28px 24px; background: var(--bg-light); border-radius: var(--radius); border-left: 4px solid var(--primary); transition: all var(--transition); }
.loc-card:hover { transform: translateX(6px); box-shadow: var(--shadow); background: #fff; }
.loc-icon { width: 48px; height: 48px; background: rgba(10,61,124,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.loc-icon svg { width: 26px; height: 26px; color: var(--primary); }
.loc-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.loc-card p { font-size: 14px; color: var(--text-sub); line-height: 1.7; }

/* ===== 交通详情 ===== */
.traffic { position: relative; padding: 100px 0 80px; }
.traffic-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%); z-index: 0; }
.traffic .container { position: relative; z-index: 1; }
.traffic-map {
  max-width: 800px;
  margin: 0 auto 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.traffic-map img {
  width: 100%;
  height: auto;
  display: block;
}
.traffic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.traffic-card { background: rgba(255,255,255,0.08); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 32px 28px; transition: all var(--transition); }
.traffic-card:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.25); transform: translateY(-4px); }
.traffic-icon { font-size: 36px; margin-bottom: 16px; }
.traffic-card h4 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.traffic-card ul { display: flex; flex-direction: column; gap: 8px; }
.traffic-card li { position: relative; padding-left: 16px; font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; }
.traffic-card li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ===== 画廊 ===== */
.gallery { padding: 100px 0 80px; }
.gallery-featured { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow); }
.gallery-slider { position: relative; width: 100%; aspect-ratio: 16/7; overflow: hidden; }
.gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.gallery-slide.active { opacity: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 24px 20px; background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: #fff; font-size: 15px; font-weight: 500; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(255,255,255,0.9); border-radius: 50%; font-size: 18px; color: var(--text-main); display: flex; align-items: center; justify-content: center; z-index: 5; transition: all var(--transition); box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.gallery-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.gdot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: all var(--transition); }
.gdot.active { background: var(--accent); width: 28px; border-radius: 5px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.gallery-extra { margin-bottom: 0; }
.gallery-thumb { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-thumb:hover img { transform: scale(1.08); }
.thumb-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(6,40,90,0.7)); display: flex; align-items: flex-end; padding: 12px; color: #fff; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity var(--transition); }
.gallery-thumb:hover .thumb-overlay { opacity: 1; }

/* 灯箱 */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox-close { position: absolute; top: 20px; right: 24px; font-size: 36px; color: #fff; z-index: 10; transition: opacity var(--transition); }
.lightbox-close:hover { opacity: 0.7; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 28px; color: rgba(255,255,255,0.8); padding: 16px; z-index: 10; transition: color var(--transition); }
.lightbox-prev:hover, .lightbox-next:hover { color: #fff; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-counter { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 12px; }

/* ===== 户型展示 ===== */
.floorplans { padding: 100px 0 80px; background: var(--bg-light); }
.floorplan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.fp-card { background: #fff; border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: var(--shadow); transition: all var(--transition); position: relative; overflow: hidden; border-top: 3px solid transparent; }
.fp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-top-color: var(--primary); }
.fp-featured { border-top-color: var(--accent); background: linear-gradient(135deg, #fff 0%, #fffbf0 100%); }
.fp-featured:hover { border-top-color: var(--accent); }
.fp-badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 50px; letter-spacing: 1px; }
.fp-area { font-size: 14px; color: var(--text-light); font-weight: 500; margin-bottom: 8px; }
.fp-size { font-size: 36px; font-weight: 800; color: var(--primary); margin-bottom: 12px; line-height: 1; }
.fp-featured .fp-size { color: var(--accent); }
.fp-desc { font-size: 14px; color: var(--text-sub); line-height: 1.7; margin-bottom: 16px; }
.fp-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.fp-tag { font-size: 12px; padding: 4px 10px; background: var(--bg-light); color: var(--text-sub); border-radius: 50px; font-weight: 500; }
.fp-featured .fp-tag { background: rgba(232,160,32,0.1); color: var(--accent-hover); }
.floorplan-note { text-align: center; font-size: 13px; color: var(--text-light); }

/* ===== 配套服务 ===== */
.amenities { position: relative; padding: 100px 0 80px; }
.amenities-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%); z-index: 0; }
.amenities .container { position: relative; z-index: 1; }
.amenities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.amenity-card { background: rgba(255,255,255,0.08); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: all var(--transition); }
.amenity-card:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.25); transform: translateY(-6px); }
.amenity-icon { font-size: 36px; margin-bottom: 16px; }
.amenity-card h4 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.amenity-card p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; }

/* ===== 入驻流程 ===== */
.process { padding: 100px 0 80px; }
.process-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; max-width: 900px; margin: 0 auto; }
.step { flex: 1; text-align: center; padding: 0 16px; }
.step-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 4px 16px rgba(232,160,32,0.4); }
.step h4 { font-size: 17px; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-sub); line-height: 1.7; }
.step-connector { width: 60px; height: 2px; background: var(--border); margin-top: 28px; flex-shrink: 0; }

/* CTA */
.cta-section { padding: 80px 0; background: linear-gradient(135deg, var(--accent) 0%, #d4901a 100%); }
.cta-content { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-content p { font-size: 16px; color: rgba(255,255,255,0.9); margin-bottom: 32px; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-btns .btn-primary { background: #fff; color: var(--accent); }
.cta-btns .btn-primary:hover { background: rgba(255,255,255,0.9); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.cta-btns .btn-outline { border-color: #fff; color: #fff; }
.cta-btns .btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* 精简页脚 */
.footer-mini { background: var(--bg-dark); padding: 32px 0; }
.footer-mini-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo-link { flex-shrink: 0; }
.footer-logo-img { height: 80px; width: auto; opacity: 0.9; filter: brightness(0) invert(1); transition: opacity var(--transition); }
.footer-logo-link:hover .footer-logo-img { opacity: 1; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-copy a { color: rgba(255,255,255,0.6); }
.footer-copy a:hover { color: #fff; }
.footer-back { font-size: 14px; color: rgba(255,255,255,0.6); font-weight: 500; transition: color var(--transition); }
.footer-back:hover { color: var(--accent); }

/* 回到顶部 */
.back-top { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(10,61,124,0.3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--transition); z-index: 500; }
.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--primary-light); transform: translateY(-2px); }
.back-top svg { width: 20px; height: 20px; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .floorplan-grid { grid-template-columns: repeat(2, 1fr); }
  .traffic-grid { grid-template-columns: 1fr; }
  .traffic-map { margin-bottom: 32px; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav { display: none; position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0; background: rgba(6,40,90,0.98); backdrop-filter: blur(20px); flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px; }
  .nav.open { display: flex; }
  .nav-link { font-size: 18px; color: rgba(255,255,255,0.9); padding: 12px 24px; }
  .nav-link:hover, .nav-link.active { color: #fff; }
  .nav-link::after { display: none; }
  .header-actions { display: none; }
  .hamburger { display: flex; }
  .header-inner { padding: 0 20px; }
  .hero-title { letter-spacing: 0; }
  .hero-tags { gap: 8px; }
  .htag { padding: 6px 14px; font-size: 13px; }
  .overview { padding: 60px 0; }
  .overview-content { grid-template-columns: 1fr; gap: 32px; }
  .location { padding: 60px 0; }
  .location-grid { grid-template-columns: 1fr; }
  .gallery { padding: 60px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-slider { aspect-ratio: 16/9; }
  .floorplans { padding: 60px 0; }
  .floorplan-grid { grid-template-columns: 1fr 1fr; }
  .amenities { padding: 60px 0; }
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .process { padding: 60px 0; }
  .process-steps { flex-direction: column; align-items: center; gap: 0; }
  .step { padding: 0 24px; max-width: 320px; }
  .step-connector { width: 2px; height: 32px; margin-top: 0; }
  .footer-mini-inner { flex-direction: column; text-align: center; }
  .cta-section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-extra { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid { grid-template-columns: 1fr; }
  .floorplan-grid { grid-template-columns: 1fr; }
  .overview-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ov-stat { padding: 20px 16px; }
  .ov-num { font-size: 22px; }
}

/* ===== 浮动客服 ===== */
.float-service {
  position: fixed; right: 28px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 900;
}
.float-item {
  position: relative; width: 44px; height: 44px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(10,61,124,0.25); cursor: pointer;
  transition: all var(--transition); border: none; text-decoration: none;
}
.float-item svg { width: 18px; height: 18px; }
.float-item:hover { background: var(--accent); transform: scale(1.1); }
.float-tooltip {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%);
  background: #0a1e3a; color: #fff; font-size: 12px; padding: 6px 12px;
  border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.float-tooltip::after {
  content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: #0a1e3a;
}
.float-item:hover .float-tooltip { opacity: 1; }

/* ===== 微信二维码弹窗 ===== */
.wechat-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center;
  z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.wechat-modal.show { opacity: 1; visibility: visible; }
.wechat-modal-content {
  background: #fff; padding: 32px; border-radius: var(--radius);
  text-align: center; position: relative; max-width: 320px; width: 90%;
  transform: scale(0.9); transition: transform 0.3s ease;
}
.wechat-modal.show .wechat-modal-content { transform: scale(1); }
.wechat-modal-content h3 { font-size: 18px; color: #1a2332; margin-bottom: 20px; }
.wechat-modal-content img { width: 200px; height: 200px; object-fit: contain; margin-bottom: 16px; }
.wechat-modal-content p { font-size: 14px; color: #64748b; }
.wechat-close {
  position: absolute; top: 12px; right: 16px; font-size: 28px;
  color: #94a3b8; cursor: pointer; line-height: 1; transition: color 0.2s; background: none; border: none;
}
.wechat-close:hover { color: #1a2332; }

/* ===== 在线客服聊天窗口 ===== */
.chat-widget {
  position: fixed; bottom: 100px; right: 24px; width: 380px; max-height: 520px;
  border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: flex; flex-direction: column; overflow: hidden; z-index: 9998;
  background: #fff; transform: scale(0) translateY(20px); transform-origin: bottom right;
  opacity: 0; transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s; pointer-events: none;
}
.chat-widget.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
.chat-toggle.active { background: var(--primary) !important; color: #fff; }
.chat-header {
  background: linear-gradient(135deg, var(--primary), #1a3a6b); color: #fff;
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.chat-header-name { font-size: 14px; font-weight: 600; }
.chat-header-status { font-size: 11px; opacity: 0.8; }
.chat-header-status::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  background: #4ade80; border-radius: 50%; margin-right: 4px; vertical-align: middle;
}
.chat-close {
  background: none; border: none; color: #fff; font-size: 22px;
  cursor: pointer; line-height: 1; opacity: 0.8; transition: opacity .2s;
}
.chat-close:hover { opacity: 1; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px; background: #f8f9fb;
  display: flex; flex-direction: column; gap: 12px; min-height: 300px; max-height: 360px;
}
.chat-msg { display: flex; max-width: 85%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-bubble { padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.6; word-break: break-word; }
.chat-msg.bot .chat-bubble { background: #fff; color: #1a2332; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.chat-msg.user .chat-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-typing {
  display: inline-flex; gap: 4px; padding: 12px 16px; background: #fff;
  border-radius: 14px; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.chat-typing span { width: 7px; height: 7px; background: #b0b8c8; border-radius: 50%; animation: typingBounce 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.chat-input-wrap {
  display: flex; align-items: flex-end; padding: 10px 12px;
  border-top: 1px solid #e2e8f0; background: #fff; gap: 8px; flex-shrink: 0;
}
.chat-input {
  flex: 1; border: 1px solid #e2e8f0; border-radius: 20px; padding: 8px 14px;
  font-size: 13.5px; font-family: inherit; resize: none; outline: none;
  max-height: 80px; line-height: 1.5; transition: border-color .2s;
}
.chat-input:focus { border-color: var(--primary); }
.chat-send {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary);
  border: none; color: #fff; cursor: pointer; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; transition: background .2s, transform .15s;
}
.chat-send:hover { background: #1a3a6b; }
.chat-send:active { transform: scale(0.92); }
.chat-send svg { width: 18px; height: 18px; }
.chat-send:disabled { background: #c0c8d8; cursor: not-allowed; }
@media (max-width: 480px) {
  .chat-widget { right: 0; bottom: 0; width: 100%; max-height: 100vh; border-radius: 0; }
}
@media (max-width: 900px) {
  .float-service { display: none; }
}
