/* --------- 基础重置与全局样式 --------- */
body {
  margin: 0;
  padding: 0;
  padding-top: 79px ;/* 根据 navbar 高度调整 */
  font-weight: 700;   
  background-color: #f8f9fa;
  color: #051d40;
}

/* 固定导航栏高度 */
.navbar {
  width: 100%;
  height: 79px !important;
  min-height: 79px !important;
  background-color: #051d40;        /* 灰白背景 */
  display: flex;
  align-items: center;
  padding: 0rem 0rem;
}

/* logo 样式 */
.navbar .navbar-brand img.logo {
  height: 65px;
  width: auto;
}

/* 导航链接样式 */
.navbar-nav .nav-link {
  color: #f8f9fa !important;
  font-weight: 700 !important;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  position: relative;
  font-size: clamp(1rem, 1.5vw, 2.5rem);
  transition: 
    color 0.3s ease,
    transform 0.25s ease,
    text-shadow 0.25s ease;
}

/* Hover 高亮 + 放大 + 凸起 */
.navbar-nav .nav-link:hover {
  color: #00DAEA !important;             /* 变深色 */
  transform: scale(1.1) translateY(-2px); /* 放大并稍微上移 */
  text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.15); /* 模拟凸起阴影 */
}

/* 竖条分隔（仅桌面端显示） */
@media (min-width: 992px) {
  .navbar .navbar-nav .nav-item:not(:last-child) .nav-link::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #999999;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: 700;
  }
}

/* Navbar 折叠按钮样式 */
.navbar-toggler {
  border: 0px solid #999999;
}

/* Bootstrap 三条线按钮颜色调整 */
.navbar-toggler-icon {
  filter: invert(0);
}


/* ✅ 移动端导航栏样式优化（≤768px） */
@media (max-width: 768px) {

  /* 整体容器 */
  .navbar .container {
    display: flex;
    justify-content: space-between; /* 左右分布：logo 靠左，按钮靠右 */
    align-items: center;
    padding: 0.4rem 0.8rem; /* 稍微留一点边距，不贴边 */
  }

  /* logo 靠左完全贴近容器左侧 */
  .navbar-brand {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
  }

  /* 菜单按钮（右侧） */
  .navbar-toggler {
    margin: 0;
    padding: 0.4rem 0.6rem;
    border: none;
    outline: none;
  }

  /* 折叠菜单背景 */
  .navbar-collapse {
    background-color: #051d40;
    padding: 1rem 0;
  }

  /* 菜单项样式 */
  .navbar-collapse .nav-link {
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.6rem 1rem;
    font-size: 1.2rem;
    text-align: left;
  }

  /* hover 效果 */
  .navbar-collapse .nav-link:hover {
    color: #00DAEA !important;
  }
}


.banner {
  width: 100%;
  height: 15%;    /* 高度自动保持比例 */
  position: relative;
  color: #fff; /* 白色 */
  overflow: hidden;
}

/* 图片自适应填满屏幕宽度，高度随宽度变化 */
.banner-img {
  width: 100%;     /* 横向铺满屏幕 */
  height: 15%;    /* 高度自动保持比例 */
  display: block;  /* 去掉 img 默认 inline 空隙 */
}
/* 文字左上角固定 */
.banner-overlay {
  position: absolute;
  top: 20%;
  left: 5%;
}

.banner-copy h1 {
  font-size: clamp(1.0rem, 2.5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.0rem;
}

.banner-copy h5 {
  font-size: clamp(1.0rem, 1.8vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 1.0rem;
}

.banner-copy h6 {
  font-size: clamp(1.0rem, 1.6vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 1.0rem;
}

@media (max-width: 768px) {
  .banner {
    height: auto; /* 根据内容自适应 */
    max-height: 60vh; /* 最大高度防止太高 */
    background-size: cover;
    background-position: center top;
  }
  .banner-overlay {
    padding: 1% 1%;
  }

  /* 小屏幕字体缩小 */
  .banner-copy h1 {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
  }
  .banner-copy h5 {
    font-size: 0.8rem;
    margin-bottom: 0.1rem;
  }
  .banner-copy h6 {
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
  }
}


.color1 {
  color: #daaa00 !important; /* 你想要的颜色 */
}

.color2 {
  color: #cc0000 !important; /* 另一个颜色 */
}

/* 保证 overlay 文字垂直居中 */
.position-absolute.d-flex.align-items-center {
  top: 0;
  bottom: 0;
}

/* --------- Footer 样式 --------- */
.footer {
  background-color: #051d40; /* 深蓝色背景 */
  color: #ffffff;            /* 文字白色 */
  font-weight: 700;            /* 文字粗体 */
  padding: 3rem 0;
  font-size: clamp(1.0rem, 1.5vw, 2.5rem);
}

.footer .footer-title {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: clamp(1.0rem, 1.5vw, 2.5rem); /* 根据实际屏幕调小一些 */
}

.footer .footer-content {
  color: #ffffff;
  font-weight: 700; /* 内容不必太粗 */
  margin-bottom: 1rem;
  font-size: clamp(1.0rem, 1.35vw, 2.0rem);
}


.footer .footer-links li a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer .footer-links li a:hover {
  color: #00DAEA;
}

/* 公司信息图标颜色 */
.footer .company-details i {
  color: #00DAEA; /* 图标亮青色 */
}

/* 公司信息文字 */
.footer .company-details p {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 联系方式图标颜色 */
.footer .contact-item i {
  color: #00DAEA; /* 图标亮青色 */
  margin-right: 0.5rem;
}

/* 联系方式文字 */
.footer .contact-item span,
.footer .contact-item a {
  color: #ffffff; /* 邮箱和电话文字白色 */
  font-weight: 700;
  text-decoration: none;
}

.footer .contact-item a:hover {
  color: #00DAEA;
}

/* 社交媒体图标保持原色 */
.footer .social-icons .social-icon i {
  transition: transform 0.3s;
  color: inherit; /* 使用原始图标颜色 */
}

.footer .social-icons .social-icon:hover {
  transform: scale(1.2);
}
/* Footer 区域社媒图标统一白色 */
footer .social-icons a {
  color: #ffffff;          /* 图标颜色改成白色 */
  margin: 0 10px;
  transition: color 0.3s ease;
}

/* hover 时给点高亮效果 */
footer .social-icons a:hover {
  color: #00DAEA;          /* hover 高亮成青色 */
}

/* Newsletter 样式 */
.footer .newsletter-text {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: clamp(1.0rem, 1.3vw, 2.0rem);
}

.footer .newsletter-form input {
  display: inline-block;
  width: auto;
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
  border-radius: 0.25rem;
  border: none;
  font-size: clamp(1.0rem, 1.3vw, 2.0rem);
}

.footer .newsletter-form button {
  background-color: #00DAEA;
  border: none;
  color: #051d40;
  font-weight: 400;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: clamp(1.0rem, 1.3vw, 2.0rem);
}

.footer .newsletter-form button:hover {
  background-color: #00b0c5;
}

/* --------- Footer Legal / 底部条款 --------- */
.footer .footer-legal {
  margin-top: 2rem;
  text-align: center;
  font-size: clamp(1.0rem, 1.5vw, 2.0rem);
}

.footer .footer-legal .legal-link {
  color: #ffffff; /* 白色文字 */
  font-weight: 700; /* 粗体 */
  text-decoration: none;
  margin: 0 0.25rem;
}

.footer .footer-legal .legal-link:hover {
  color: #00DAEA;
}

.footer .footer-legal .separator {
  color: #ffffff; /* 分隔符白色 */
  margin: 0 0.25rem;
  font-weight: 700;
}

/* 🌌 统一 Modal 深蓝主题（白底标题） */
.modal-content {
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  background-color: #ffffff;
  color: #051d40;
  font-size: clamp(1.0rem, 1.2vw, 2.5rem);
}

/* 🩵 顶部标题栏：白底深蓝字 */
.modal-header {
  background-color: #ffffff;
  color: #051d40;
  padding: 1rem 1.5rem;
  align-items: center;
}

.modal-title {
  font-weight: 700;
  font-size: clamp(1.0rem, 1.5vw, 2.5rem);
  letter-spacing: 0.5px;
  color: #051d40;
}

/* ❌ 关闭按钮（深蓝色 + 自动缩放） */
.btn-close {
  filter: none;
  opacity: 0.8;
  font-size: clamp(1.0rem, 1.2vw, 2.5rem);
  color: #051d40;
  transition: color 0.3s ease, transform 0.2s ease, opacity 0.2s ease;
}

.btn-close:hover {
  color: #00DAEA;
  opacity: 1;
  transform: rotate(90deg);
}

/* 📖 内容区 */
.modal-body {
  padding: 1.5rem;
  line-height: 1.7;
  color: #051d40;
  font-size: clamp(1.0rem, 1.1vw, 2.0rem);
}

/* 📦 底部按钮区 */
.modal-footer {
  padding: 1rem 1.5rem;
  background-color: #f7fbfd;
}

/* 按钮样式 */
.modal-footer .btn-secondary {
  background-color: #051d40;
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: clamp(1.0rem, 1.2vw, 2.0rem);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-footer .btn-secondary:hover {
  background-color: #00DAEA;
  color: #051d40;
  transform: translateY(-2px);
}

/* 🌟 弹出动画 */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  transform: translateY(-10%);
  opacity: 0;
}

.modal.fade.show .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}


.custom-list {
  list-style: none; /* 去掉黑点 */
  padding-left: 20px; /* 内边距，可调整 */
  font-size: clamp(1.0rem, 1.2vw, 3.0rem);
}

.custom-list li {
  margin-bottom: 10px; /* 每条之间增加间距 */
  line-height: 1.6;    /* 行高，阅读更舒适 */
  font-size: clamp(1.0rem, 1.2vw, 3.0rem);
}

/* --------- Section 1 样式 --------- */
.section1 {
  background-color: #f8f9fa;
  width: 100%;
  margin-top: 3rem; /* 或你想要的距离 */
  padding: 2rem 0;
  text-align: center;
  border-radius: 10px;
  scroll-margin-top: 120px; /* 距离顶部留出导航栏 */
  transition: box-shadow 0.3s ease, color 0.3s ease;
}

/* 标题样式 */
.section1 .core-title {
  color: #051d40;
  font-weight: 700;
  margin-bottom: 10rm;
  transition: color 0.3s ease, transform 0.3s ease;
  font-size: clamp(1.5rem, 2.5vw, 3.5rem);
}
.section1 .core-title.active-title {
  color: #b4b4b4;
  transform: scale(1.05);
}

/* hover 整个 section 时阴影和标题高亮 */
.section1:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ---------------- card1 样式 ---------------- */
.section3 {
  margin-top: 3rem; /* 或你想要的距离 */
}

.section3 .core-title {
  color: #051d40; /* 深蓝色 */
  text-align: center;
  font-weight: 700; /* 粗体 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: clamp(1.5rem, 2.5vw, 3.5rem);
}

.section3 .core-title:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); */
}
/* 🔽 把 feature-card1 的样式写成 section3 的子级 */
.section3 .feature-card1 {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: #051d40;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.section3 .feature-card1 .feature-text {
  flex: 1 1 45%;
  padding: 5px;
  text-align: left;
}

.section3 .feature-card1 .feature-img {
  flex: 1 1 55%;
  text-align: center;
}

.section3 .feature-card1 .feature-img img {
  max-width: 95%;
  height: auto;
}

.section3 .feature-card1 h3 {
  margin: 1.0rem;
  font-weight: 700 !important;
  text-align: left;
  color: #ffffff;
  font-size: clamp(1.0rem, 1.8vw, 3.0rem);
}

.section3 .feature-card1 ul li {
  list-style: none;
  margin: 0.5rem;
  font-weight: 400 !important;
  text-align: left;
  color: #ffffff;
  font-size: clamp(1.0rem, 1.4vw, 3.0rem);
}

.section3 .feature-card1:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


/* ---------------- card2 样式 ---------------- */
.section3 .feature-card2 {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  color: #000000;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.section3 .feature-card2 .feature-text {
  flex: 1 1 45%;
  padding: 5px;
  text-align: left;
}

.section3 .feature-card2 .feature-img {
  flex: 1 1 55%;
  text-align: center;
}

.section3 .feature-card2 .feature-img img {
  max-width: 95%;
  height: auto;
}

.section3 .feature-card2 h3 {
  font-weight: 700 !important;
  text-align: left;
  color: #051d40;
  font-size: clamp(1.0rem, 1.8vw, 3.0rem);
}

.section3 .feature-card2 ul li {
  list-style: none;
  font-weight: 400 !important;
  text-align: left;
  color: #051d40;
  font-size: clamp(1.0rem, 1.4vw, 3.0rem);
}

.section3 .feature-card2:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ---------------- card3 样式 ---------------- */
.section3 .feature-card3 {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: #051d40;
}

.section3 .feature-card3 .feature-text {
  flex: 1 1 45%;
  padding: 5px;
  text-align: left;
}

.section3 .feature-card3 .feature-img {
  flex: 1 1 55%;
  text-align: center;
}

.section3 .feature-card3 .feature-img img {
  max-width: 95%;
  height: auto;
}

.section3 .feature-card3 h3 {
  font-weight: 700 !important;
  color: #051d40;
  text-align: left;
  font-size: clamp(1.0rem, 1.8vw, 3.0rem);
}

.section3 .feature-card3 ul li {
  list-style: none;
  font-weight: 400 !important;
  color: #051d40;
  text-align: left;
  font-size: clamp(1.0rem, 1.4vw, 3.0rem);
}

.section3 .feature-card3:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


/* ---------------- 手机竖屏 (宽度 <= 576px) ---------------- */
@media screen and (max-width: 576px) and (orientation: portrait) {
  .section3 .feature-card1 h3,
  .section3 .feature-card2 h3,
  .section3 .feature-card3 h3 {
    font-size: 0.65rem !important;
    margin: 0.1rem !important;
  }

  .section3 .feature-card1 ul li,
  .section3 .feature-card2 ul li,
  .section3 .feature-card3 ul li {
    font-size: 0.5rem !important;
    margin: 0.1rem !important;
  }
}

/* ---------------- 手机横屏 (宽度 <= 900px) ---------------- */
@media screen and (max-width: 900px) and (orientation: landscape) {
  .section3 .feature-card1 h3,
  .section3 .feature-card2 h3,
  .section3 .feature-card3 h3 {
    font-size: 1.1rem !important;
    margin: 0.2rem !important;
  }

  .section3 .feature-card1 ul li,
  .section3 .feature-card2 ul li,
  .section3 .feature-card3 ul li {
    font-size: 0.8rem !important;
    margin: 0.1rem !important;
  }
}


/* 常見問題 FAQ 容器 */
.faq-container,
.table-container {
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Accordion Item */
.accordion-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* 问题按钮 */
.professional-accordion-button {
  text-align: left;
  justify-content: flex-start;
  padding-left: 0.75rem;      /* 问题字号略大 */   /* 略粗 */
  font-weight: 700;
  color: #051d40;
  background-color: #fff !important;
  box-shadow: none;
  transition: all 0.2s ease-in-out;
  font-size: clamp(1.0rem, 1.5vw, 3.0rem);
}

/* 问题序号 */
.question-number {
  font-weight: 400;
  color: #051d40;
  margin-right: 10px;
}

/* 问题展开或悬浮时 */
.professional-accordion-button:hover,
.professional-accordion-button:not(.collapsed) {
  color: #002a66;
  border-left: 4px solid #051d40;
  padding-left: calc(0.75rem - 4px);
}

/* 答案样式 */
.professional-accordion-body {     /* 答案比问题略小 */     /* 正常字体，不加粗 */
  line-height: 1.6;
  text-align: left;
  padding-left: 0.75rem;
  color: #051d40;
  font-size: clamp(1.0rem, 2.0vw, 3.0rem);
  /* background-color: #fff;  默认背景 */

  background-color: #f8f9fa !important; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);    /* 轻微阴影 */
  transition: all 0.2s ease-in-out;
}

/* 答案背景色同步问题背景色 */
.professional-accordion-button:hover + .accordion-collapse .accordion-body,
.professional-accordion-button:not(.collapsed) + .accordion-collapse .accordion-body {
  background-color: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);    /* 轻微阴影 */
}

/* 答案文本容器 */
.answer-wrapper {
  padding-left: 1.5rem;
}

/* 答案文本容器 */
.answer-text{   
  font-weight: 400;   /* 答案比问题略小 */     /* 正常字体，不加粗 */
  line-height: 1.6;
  text-align: left;
  padding-left: 0.75rem;
  background-color: #f8f9fa;
  font-size: clamp(1.0rem, 1.5vw, 3.0rem);
}

/* 移除 focus 阴影 */
.professional-accordion-button:focus {
  box-shadow: none !important;
}

/* 问题和答案文字过渡 */
.professional-accordion-button,
.professional-accordion-body {
  transition: all 0.2s ease-in-out;
}


/* ---------------- 產品規格 表格基础样式 ---------------- */
.table-hover {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
  font-weight: 400;
  color: #051d40;
}

.table-hover th,
.table-hover td {
  padding: 0.6rem 1rem;
  text-align: left;
  font-size: 1.3rem;
  border-bottom: 1px solid #e0e0e0; /* 轻微分隔线 */
  transition: all 0.3s ease;
  font-size: clamp(1.0rem, 1.5vw, 3.0rem);
}

.table-hover td[data-i18n^="spec_label"] {
  font-weight: bold;
}


/* 居中并限制表格最大宽度 */
.table-responsive {
  max-width: 1000px;
  margin: 1.5rem auto; /* 上下留白 + 居中 */
  overflow-x: auto;    /* 超出宽度时可横向滚动 */
}

/* 表头样式 */
.table-hover thead th {
  background-color: #f0f8ff; /* 浅蓝背景 */
  font-weight: 700;
  color: #051d40;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: clamp(1.0rem, 1.5vw, 3.0rem);
}

/* 表格行 hover 效果 */
.table-hover tbody tr:hover {
  transform: translateY(-2px);               /* 微微上浮效果 */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);    /* 轻微阴影 */
}


/* 可选：奇偶行不同背景色 */
.table-hover tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.table-hover tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* 小屏幕自适应 */
@media (max-width: 576px) {
  .table-hover th,
  .table-hover td {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
}


#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  cursor: pointer;
  transition: background 0.2s ease;
}
#chatbot-toggle:hover {
  background-color: #0056b3;
}

#chatbot-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 340px;
  height: 440px;
  background: #ffffff;
  color: #212529;
  border-radius: 18px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 9998;
  border: 1px solid #ced4da;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
}

#chatbot-box header {
  background: #e9f2ff;
  padding: 10px 18px;
  font-weight: 600;
  color: #007BFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
}

#chatbot-box header button {
  background: none;
  border: none;
  font-size: 20px;
  color: #6c757d;
  cursor: pointer;
}
#chatbot-box header button:hover {
  color: #dc3545;
}

#chat-log {
  flex: 1;
  padding: 12px 18px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.8;
}

#chat-log div {
  margin-bottom: 10px;
}

#chat-input {
  display: flex;
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
}

#chat-input input {
  flex: 1;
  padding: 12px;
  background: transparent;
  color: #212529;
  border: none;
  font-size: 14px;
}
#chat-input input::placeholder {
  color: #adb5bd;
}

#chat-input button {
  background: #007BFF;
  border: none;
  color: white;
  padding: 12px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}
#chat-input button:hover {
  background: #0056b3;
}



