/* ========================
   全局基础 & 布局
======================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #f4f6fb;
  
}

h1, h2, h3, h4, h5, h6 {
  font-family: "SiyuanSans", sans-serif;
  font-weight: 700;
}

p, li, span, a, button, div {
  font-family: "SiyuanSans", sans-serif;
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========================
   顶部导航
======================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.logo-wrapper {
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* 导航栏链接：蓝色小胶囊 */
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.main-nav .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 14px;
  color: #144f8f;
  border-radius: 999px;
  border: 1px solid #144f8f;
  text-decoration: none;
  transition: all 0.2s ease;
}

.main-nav .nav-link:hover {
  background-color: #f3f4ff;
}

/* 高亮当前页面：金色胶囊 */
[data-page="index"]   .main-nav .nav-link[href="index.html"],
[data-page="about"]   .main-nav .nav-link[href="about.html"],
[data-page="services"] .main-nav .nav-link[href="services.html"],
[data-page="contact"] .main-nav .nav-link[href="contact.html"] {
  color: #d4a552;
  border-color: #f3c46b;
  background-color: #fffbf2;
}

/* 去掉可能残留的下划线装饰 */
.main-nav .nav-link::after,
.nav-link.active::after {
  content: none !important;
}

/* 公司名称块 */

.company-name-block {
  text-align: right;
  min-width: 220px;
}

.company-name-zh {
  font-weight: 600;
  font-size: 13px;
}

.company-name-en {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

/* 语言切换按钮 */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 10px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.lang-btn.active {
  background-color: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.lang-divider {
  color: #6b7280;
  font-size: 14px;
}

/* 下拉版（如果有用到） */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown select {
  height: 32px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background-color: #fff;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-align: center;
  text-align-last: center;
  padding-left: 20px;
  padding-right: 28px;
}

.lang-dropdown select option {
  text-align: left;
}

.lang-dropdown::after {
  content: "▼";
  font-size: 10px;
  color: #555;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.lang-dropdown select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* 导航响应式 */

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .main-nav {
    order: 3;
  }
  .company-name-block {
    order: 2;
    text-align: left;
  }
}

/* ========================
   首页 Hero 区域
======================== */

.hero-section {
  padding: 32px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: 64px;
  align-items: center;
}

/* 左侧文字区域：按钮底对齐 */
.hero-text {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  padding: 24px 0 16px;
}

.hero-text h1 {
  font-size: 30px;
  line-height: 1.45;
  font-weight: 600;
  color: #111;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 15px;
  line-height: 1.85;
  color: #444;
  margin-bottom: 14px;
}

/* 按钮区 */
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 24px;
}

.hero-actions .btn {
  padding: 14px 32px;
  font-size: 16px;
  min-width: 160px;
  text-align: center;
}

/* 按钮通用 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.1s,
    box-shadow 0.2s;
}

.btn.primary {
  background-color: #0070f3;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 112, 243, 0.3);
}

.btn.primary:hover {
  background-color: #0056b3;
  box-shadow: 0 6px 16px rgba(0, 112, 243, 0.35);
  transform: translateY(-1px);
}

.btn.outline {
  background-color: transparent;
  color: #0070f3;
  border-color: rgba(0, 112, 243, 0.4);
}

.btn.outline:hover {
  background-color: rgba(0, 112, 243, 0.06);
}

/* 右侧视频卡片：渐变背景 */

.hero-video {
  display: flex;
  justify-content: flex-end;
}

.hero-video-card {
  width: 100%;
  max-width: 560px;
  border-radius: 24px;
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, #050816 0%, #0b2b66 40%, #1a57ff 100%);
  box-shadow: 0 18px 45px rgba(6, 16, 55, 0.55);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-video-element {
  width: 100%;
  display: block;
  border-radius: 18px;
  background: #000;
  border: none;
  outline: none;
}

.hero-video-info {
  padding: 4px 4px 0;
  color: #f5f7ff;
}

.hero-video-info .video-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}

.hero-video-info .video-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(230, 236, 255, 0.9);
}

/* 首页三大优势 */

.advantages-section {
  padding: 80px 0 96px;
  background: radial-gradient(circle at top, #eef3ff 0, #f7f9ff 42%, #f5f7fb 100%);
}

.advantages-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  position: relative;
  color: #005cff;
}

.advantages-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #447bff 0%, #9a4cff 100%);
  opacity: 0.9;
}

.advantages-subtitle {
  max-width: 760px;
  margin: 0 auto 40px;
  font-size: 15px;
  line-height: 1.8;
  color: #6b7280;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.adv-card {
  position: relative;
  padding: 24px 24px 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.adv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
  border-color: rgba(68, 123, 255, 0.6);
  background: rgba(255, 255, 255, 0.98);
}

.adv-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111827;
}

.adv-text {
  font-size: 14px;
  line-height: 1.9;
  color: #4b5563;
}

/* 首页 / Hero 响应式 */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .hero-video {
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================
   通用内页标题（公司简介 / 业务简介 / 联系我们）
======================== */

.page-header,
.about-header,
.services-header,
.page-hero {
  padding: 72px 0 32px;
  text-align: center;
}

.page-title,
.about-header-title,
.services-header-title,
.page-hero-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: #111827;
  margin: 0 0 16px;
  display: inline-block;
  position: relative;
}

.page-title::after,
.about-header-title::after,
.services-header-title::after,
.page-hero-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #f4b400;
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-subtitle,
.about-header-subtitle,
.services-header-subtitle {
  font-size: 15px;
  line-height: 1.9;
  color: #4b5563;
  max-width: 960px;
  margin: 8px auto 0;
  text-align: center;
}

/* ========================
   公司简介页面
======================== */

.about-body {
  padding: 0 0 48px;
}

.about-body-card {
  margin-top: 36px;
  background: radial-gradient(circle at top left, #fefce8 0, #ffffff 32%, #ffffff 100%);
  border-radius: 26px;
  padding: 40px 56px;
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(148, 163, 184, 0.18);
}

.about-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: flex-start;
}

.about-body-text {
  max-width: 100%;
  padding-right: 24px;
}

.about-body-text p {
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 18px;
  text-align: justify;
  text-justify: inter-ideograph;
  color: #111827;
}

.about-body-text p strong {
  font-weight: 600;
  color: #111827;
}

.about-section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 6px 0 8px;
  color: #0f172a;
}

/* 右侧信息卡片 */

.about-overview-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
}

.about-stat-card {
  position: relative;
  padding: 18px 22px 18px 30px;
  border-radius: 22px;
  background: #ffffff;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(135deg, #facc15, #fb923c);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(148, 163, 184, 0.14);
}

/* 左侧竖线 */
.about-stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #facc15, #f97316);
}

/* 右上角编号徽章（依赖 data-index） */
.about-overview-aside .about-stat-card::after {
  content: attr(data-index);
  position: absolute;
  right: 20px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d72ff, #67b5ff);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(45, 114, 255, 0.35);
}

.about-stat-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 4px;
}

.about-stat-value {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.about-stat-note {
  font-size: 13px;
  line-height: 1.75;
  color: #4b5563;
}

/* About 响应式 */

@media (max-width: 960px) {
  .about-body-card {
    padding: 26px 20px 28px;
  }
  .about-body-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .about-overview-aside {
    position: static;
    gap: 14px;
  }
  .about-stat-card {
    padding: 16px 18px 16px 26px;
  }
}

/* ========================
   业务简介页面（services.html）
======================== */

.services-body {
  padding: 0 0 64px;
}

.services-body .container {
  max-width: 1200px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* 单个业务卡片 */

.service-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 24px 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.service-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.service-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #005cff;
  letter-spacing: 0.3px;
  transition: color 0.25s ease;
}

.service-card:hover .service-title {
  color: #003eb3;
}

.service-tag {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  margin-bottom: 10px;
}

.service-text {
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
  margin: 0;
}

/* ========================
   联系我们页面
======================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: stretch;
}

.contact-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 26px 26px 22px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  height: 100%;
}

.contact-card-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.contact-item {
  margin-bottom: 20px;
}

.contact-label {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 14px;
  color: #111827;
  line-height: 1.8;
}

.contact-value strong {
  font-weight: 600;
}

.contact-qr img {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  object-fit: cover;
  margin-bottom: 6px;
}

.contact-qr-tip {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.contact-map-placeholder {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f9fafb;
  font-size: 12px;
  color: #6b7280;
  border: 1px dashed #cbd5f5;
}

/* 联系表单 */

.contact-form-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: #374151;
  margin-bottom: 4px;
}

.form-control,
.form-textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  background-color: #ffffff;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-control:focus,
.form-textarea:focus {
  border-color: #0070f3;
  box-shadow: 0 0 0 1px rgba(0, 112, 243, 0.15);
}

.contact-notice {
  font-size: 11px;
  color: #9ca3af;
  margin: 6px 0 10px;
}

.contact-submit-btn {
  width: 220px;
  margin: 0 auto;
  display: block;
}

/* 联系我们响应式 */

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ========================
   页脚
======================== */

.site-footer {
  margin-top: 60px;
  padding: 32px 0 28px;
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 13px;
}

.site-footer,
.site-footer * {
  opacity: 1 !important;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-left h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-link {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.15s ease;
}

.footer-link:hover {
  color: #d4a017;
  transform: translateX(2px);
}

.footer-right {
  text-align: right;
  color: #6b7280;
}

.footer-right .icp {
  margin-bottom: 4px;
  font-size: 12px;
  color: #4b5563;
}

.footer-right .copyright {
  font-size: 12px;
  color: #9ca3af;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-right {
    text-align: left;
  }
}

/* ========================
   思源黑体字体引入
======================== */

/* Medium */
@font-face {
  font-family: "SiyuanSans";
  src: url("/fonts/Siyuan/SourceHanSansSC-Medium-2.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: "SiyuanSans";
  src: url("/fonts/Siyuan/SourceHanSansSC-Bold-2.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* ===========================
   浮动企业智能顾问（小窗版）
   =========================== */

/* 外层容器：固定在右下角 */
.agent-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  font-family: inherit;
}

/* 启动按钮：圆角胶囊 + 呼吸光晕 */
.agent-chat-launcher-btn {
  border: none;
  outline: none;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 10px 18px;
  border-radius: 999px;

  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;

  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* 图标和文字 */
.agent-chat-launcher-icon {
  font-size: 16px;
}

.agent-chat-launcher-text {
  white-space: nowrap;
}

/* 悬停效果 */
.agent-chat-launcher-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.5);
}

/* 呼吸光晕动画（按钮未打开时） */
@keyframes agent-launcher-pulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  60% {
    transform: translateY(0) scale(1.04);
    box-shadow: 0 0 0 16px rgba(37, 99, 235, 0);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* 默认加 pulsing 类时，开启呼吸光晕 */
.agent-chat-launcher-btn.pulsing {
  animation: agent-launcher-pulse 2.4s ease-out infinite;
}

/* ===========================
   浮动小窗本体
   =========================== */

.agent-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 72px; /* 在按钮上方 */
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;

  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);

  display: flex;
  flex-direction: column;

  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* 打开状态 */
.agent-chat-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* 顶部标题栏 */
.agent-chat-panel-header {
  padding: 10px 14px 8px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agent-chat-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

/* 关闭按钮 */
.agent-chat-panel-close {
  border: none;
  outline: none;
  cursor: pointer;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.agent-chat-panel-close:hover {
  background: #e5e7eb;
  color: #111827;
  transform: rotate(4deg);
}

/* 内容区域：内部用 iframe 填满 */
.agent-chat-panel-body {
  flex: 1;
  min-height: 0;
  border-radius: 0 0 22px 22px;
  overflow: hidden;
}

.agent-chat-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* 手机端尺寸适配 */
@media (max-width: 768px) {
  .agent-chat-launcher {
    right: 16px;
    bottom: 16px;
  }

  .agent-chat-launcher-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .agent-chat-panel {
    right: 12px;
    bottom: 70px;
    width: calc(100vw - 24px);
    height: 70vh;
    max-height: 540px;
    border-radius: 18px;
  }
}
/* 整个弹窗内部：上下排布 */
.agent-panel {
  display: flex;
  flex-direction: column;
  height: 520px;              /* 固定一个高度，你也可以改成 480 / 560 */
}

/* 头部只占内容高度，不参与撑开 */
.agent-panel-header {
  flex: 0 0 auto;
}

/* 中间这块：负责把聊天区和输入区排成“上聊天 + 下输入” */
.agent-panel-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* 聊天区：永远撑满剩余空间，所以输入框会被压在最底下 */
.agent-chat-window {
  flex: 1 1 auto;
  min-height: 0;              /* 关键：防止内容少时撑开 */
  overflow-y: auto;
  padding: 10px;
}

/* 输入区始终贴底 */
.agent-input-row {
  flex: 0 0 auto;
  margin-top: 10px;
}

.contact-map-placeholder {
  display: none !important;
}