/* ========================================
   增强样式 - 美化、动画和移动端优化
   Enhanced Styles - Beautification, Animations & Mobile Optimization
   ======================================== */

/* ========================================
   1. 全局优化
   ======================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* 页面加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ========================================
   2. 头部导航优化
   ======================================== */
#header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.header-fixed {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background-color: rgba(5, 28, 125, 0.95) !important;
}

.mylogo {
  transition: transform 0.3s ease;
}

.mylogo:hover {
  transform: scale(1.05);
}

/* 导航菜单项动画 */
.nav-menu > li > a {
  position: relative;
  transition: all 0.3s ease;
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #0085fc;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu > li > a:hover::after {
  width: 80%;
}

/* ========================================
   3. 轮播图优化
   ======================================== */
.slider-section {
  position: relative;
  overflow: hidden;
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-caption {
  animation: fadeInUp 1s ease-out;
}

.intro1 {
  animation: fadeInUp 1.2s ease-out;
}

.intro1 p {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.4s ease-out;
}

/* ========================================
   4. 卡片和内容区域美化
   ======================================== */
.container {
  animation: fadeIn 0.6s ease-out;
}

.obj0 {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.obj0:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.lwtext0 {
  transition: all 0.3s ease;
}

.obj0:hover .lwtext0 {
  color: #0085fc;
}

.read-more-link {
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.read-more-link:hover {
  transform: translateX(5px);
  color: #0085fc;
}

.read-more-link i {
  transition: transform 0.3s ease;
}

.read-more-link:hover i {
  transform: translateX(3px);
}

/* ========================================
   5. 按钮优化
   ======================================== */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* 语言切换按钮文字颜色 */
.btn.btn-default.dropdown-toggle {
  color: #555 !important; /* 深灰色 */
}

.btn.btn-default.dropdown-toggle .caret {
  color: #555 !important; /* 深灰色 */
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 133, 252, 0.4);
}

.btn:active {
  transform: translateY(0);
}

/* ========================================
   6. 表格优化
   ======================================== */
.table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table td {
  transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover td {
  background-color: rgba(0, 133, 252, 0.05);
}

/* 表格中的图标样式 */
.table td i {
  color: #0085fc;
  margin-right: 10px;
  font-size: 1.4em;
  transition: all 0.3s ease;
  vertical-align: middle;
}

.table-hover tbody tr:hover td i {
  color: #0066cc;
  transform: scale(1.15);
}

.table td.dd7 i,
.table td.dd2 i,
.table td.dd3 i,
.table td.dd4 i,
.table td.dd5 i,
.table td.dd6 i {
  color: #0085fc;
  font-size: 1.4em;
}

/* ========================================
   7. 图片优化
   ======================================== */
img {
  transition: transform 0.3s ease, opacity 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

img:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* ========================================
   8. 联系信息卡片
   ======================================== */
.contact-address,
.contact-phone,
.contact-email {
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.contact-address:hover,
.contact-phone:hover,
.contact-email:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contact-address i,
.contact-phone i,
.contact-email i {
  font-size: 2.5rem;
  color: #0085fc;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.contact-address:hover i,
.contact-phone:hover i,
.contact-email:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* ========================================
   9. 资料下载区域
   ======================================== */
.zl-zwmb {
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 25px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.zl-zwmb:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.zl-zwmb i {
  font-size: 3rem;
  color: #0085fc;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.zl-zwmb:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* ========================================
   10. 参展赞助卡片
   ======================================== */
.cz-czyq {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.cz-czyq:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cz-czyq img {
  max-width: 60%;
  height: auto;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  display: block;
}

.cz-czyq:hover img {
  transform: scale(1.1);
}

.cztit {
  padding: 0px 20px; /* 减少内边距 */
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 300px; /* 减小最小高度 */
}

.cztit h3 {
  color: #0085fc;
  margin-bottom: 10px; /* 减少间距 */
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
}

.cztit > p {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff6b6b;
  margin-bottom: 5px; /* 减少间距 */
  line-height: 1;
}

.cztit .ql {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cztit .ql h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px; /* 减少间距 */
  line-height: 1.3;
}

.cztit .ql p {
  font-size: 0.95rem;
  line-height: 1.5; /* 减少行高 */
  color: #121212;
  margin-bottom: 6px; /* 减少间距 */
  text-indent: 2em;
  text-align: justify;
}

/* 统一 cztit1 样式（如果存在） */
.cztit1 {
  padding: 20px; /* 减少内边距 */
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 320px; /* 减小最小高度 */
}

.cztit1 h3 {
  color: #0085fc;
  margin-bottom: 10px; /* 减少间距 */
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
}

.cztit1 > p {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff6b6b;
  margin-bottom: 12px; /* 减少间距 */
  line-height: 1.3;
}

.cztit1 .ql {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cztit1 .ql h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px; /* 减少间距 */
  line-height: 1.3;
}

.cztit1 .ql p {
  font-size: 0.95rem;
  line-height: 1.5; /* 减少行高 */
  color: #555;
  margin-bottom: 6px; /* 减少间距 */
  text-indent: 2em;
  text-align: justify;
}

/* ========================================
   11. 数字统计动画
   ======================================== */
.shu-h3 {
  transition: all 0.3s ease;
  padding: 20px;
  border-radius: 12px;
  background: #f0f0f0; /* 淡灰色背景 */
  color: #4a9eff; /* 浅蓝色字体 */
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shu-h3 .counter {
  color: #4a9eff; /* 浅蓝色数字 */
}

.shu-h3 .text {
  color: #4a9eff; /* 浅蓝色文字 */
}

.shu-h3:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(74, 158, 255, 0.2);
  background: #eeeeee; /* 悬停时稍深的灰色 */
}

.counter {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  color: #4a9eff; /* 浅蓝色数字 */
}

/* ========================================
   12. 滚动动画优化
   ======================================== */
.wow {
  visibility: hidden;
}

.wow.animated {
  visibility: visible;
}

/* ========================================
   13. 移动端优化
   ======================================== */

/* 移动端基础样式 */
@media (max-width: 768px) {
  /* 平滑滚动 */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  /* 头部优化 */
  #header {
    height: 56px;
    padding: 8px 0;
  }

  .mylogo {
    max-height: 40px;
  }

  /* 移动端菜单动画 */
  .nav-menu > li.showhide span.icon {
    transition: all 0.3s ease;
  }

  .nav-menu > li.showhide.active span.icon em:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-menu > li.showhide.active span.icon em:nth-child(2) {
    opacity: 0;
  }

  .nav-menu > li.showhide.active span.icon em:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* 菜单下拉动画 */
  .mrmenu.mybackground {
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* 轮播图优化 */
  .carousel-caption {
    padding: 15px;
  }

  .carousel-caption h1 {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }

  .carousel-caption p {
    font-size: 0.9rem !important;
  }

  /* 卡片优化 */
  .obj0 {
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .lwtext0 {
    padding: 15px;
  }

  .lwtext0 h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .lwtext0 p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* 按钮优化 */
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
    display: block;
  }

  /* 联系信息卡片 */
  .lx {
    margin-bottom: 20px;
  }

  .contact-address,
  .contact-phone,
  .contact-email {
    padding: 20px;
    margin-bottom: 15px;
  }

  .contact-address i,
  .contact-phone i,
  .contact-email i {
    font-size: 2rem;
  }

  /* 资料下载卡片 */
  .zl {
    margin-bottom: 20px;
  }

  .zl-zwmb {
    padding: 20px;
  }

  .zl-zwmb i {
    font-size: 2.5rem;
  }

  /* 参展赞助卡片 */
  .cz {
    margin-bottom: 20px;
  }

  .cz-czyq {
    margin-bottom: 15px;
  }

  .cztit {
    min-height: auto; /* 移动端取消固定高度 */
    padding: 20px;
  }

  .cztit h3 {
    font-size: 1.2rem;
  }

  .cztit > p {
    font-size: 1.3rem;
  }

  .cztit .ql h5 {
    font-size: 1rem;
  }

  .cztit .ql p {
    font-size: 0.9rem;
  }

  /* 表格优化 */
  .table {
    font-size: 0.85rem;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }

  /* 图片优化 */
  img {
    max-width: 100%;
    height: auto;
  }

  /* 文字优化 */
  p {
    font-size: 0.9rem !important;
    line-height: 1.7;
  }

  h1 {
    font-size: 1.8rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.3rem !important;
  }

  h4 {
    font-size: 1.1rem !important;
  }

  h5 {
    font-size: 1rem !important;
  }

  /* 容器内边距 */
  .container,
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 间距优化 */
  section {
    padding: 0px 0;
  }

  /* 触摸优化 */
  a,
  button {
    -webkit-tap-highlight-color: rgba(0, 133, 252, 0.2);
    touch-action: manipulation;
  }

  /* 滚动优化 */
  * {
    -webkit-overflow-scrolling: touch;
  }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
  /* 更小的字体 */
  h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.3rem !important;
  }

  h3 {
    font-size: 1.1rem !important;
  }

  p {
    font-size: 0.85rem !important;
  }

  /* 更紧凑的间距 */
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  section {
    padding: 0px 0;
  }

  /* 按钮 */
  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  /* 卡片 */
  .obj0,
  .zl-zwmb,
  .cz-czyq {
    padding: 15px;
  }

  /* 联系信息 */
  .contact-address,
  .contact-phone,
  .contact-email {
    padding: 15px;
  }

  .contact-address i,
  .contact-phone i,
  .contact-email i {
    font-size: 1.8rem;
  }
}

/* 横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
  #header {
    height: 50px;
  }

  .mylogo {
    max-height: 35px;
  }

  section {
    padding: 20px 0;
  }
}

/* ========================================
   14. 加载动画
   ======================================== */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 133, 252, 0.3);
  border-radius: 50%;
  border-top-color: #0085fc;
  animation: spin 1s ease-in-out infinite;
}

/* ========================================
   15. 工具提示和提示信息
   ======================================== */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85rem;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ========================================
   16. 响应式图片容器
   ======================================== */
.responsive-img-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 比例 */
  overflow: hidden;
  border-radius: 8px;
}

.responsive-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   17. 滚动到顶部按钮
   ======================================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #0085fc;
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
  background: #0066cc;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* ========================================
   18. 性能优化
   ======================================== */
.will-animate {
  will-change: transform, opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ========================================
   19. 打印样式
   ======================================== */
@media print {
  .nav-menu,
  .btn,
  .scroll-to-top {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}

