/* 
  CSS变量定义
*/
* {
  box-sizing: border-box;
}
:root {
  /* 主色调 */
  --primary-color: #0055a5; /* 蓝色主色调，用于按钮、链接等 */
  --primary-dark: #00407c; /* 深蓝色，用于悬停状态 */
  --primary-light: #3378b5; /* 浅蓝色，用于次要元素 */

  /* 中性色调 */
  --text-color: #333333; /* 主要文字颜色 */
  --text-light: #666666; /* 次要文字颜色 */
  --text-lighter: #999999; /* 最浅文字颜色，用于提示等 */
  --background-color: #ffffff; /* 背景色 */
  --background-light: #f5f7fa; /* 浅色背景，用于卡片、面板等 */
  --border-color: #e0e0e0; /* 边框颜色 */

  /* 功能色 */
  --success-color: #28a745; /* 成功状态 */
  --warning-color: #ffc107; /* 警告状态 */
  --danger-color: #dc3545; /* 危险/错误状态 */
  --info-color: #17a2b8; /* 信息状态 */

  /* 阴影 */
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --box-shadow-large: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo {
  /* 如何等比缩放图片 */
  background: url("/static/imgs/logo_full.jpg") center center no-repeat;
  width: 170px;
  height: 50px;
  object-fit: contain;
  background-size: 100% 100%;
}

.company-name {
  margin-left: 10px;
  text-align: center;
}

.cn-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.2;
}

.en-name {
  font-size: 12px;
  color: var(--text-lighter);
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
  padding: 10px 0;
}

.nav .nav-links {
  display: flex;
  list-style: none;
}

.nav .nav-links li:not(:first-child) {
  margin-left: 20px;
}

.nav .active {
  color: var(--primary-color);
}

.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-wrap .contact {
  display: flex;
  align-items: center;
  background-color: var(--primary-color);
  padding: 10px 20px;
  color: #fff;
  border-radius: 20px;
  cursor: pointer;
}

.header-wrap .contact img {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.header-wrap .contact:hover {
  background-color: var(--primary-dark);
}

.header-wrap .contact:hover img {
  transform: translateX(5px);
}

.text-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 160px;
  overflow: hidden;
  font-family: "Lato", sans-serif;
  font-size: 35px;
  line-height: 40px;
  color: #ecf0f1;
}

.text-content content__container {
  font-weight: 600;
  overflow: hidden;
  height: 40px;
  padding: 0 40px;
}

.text-content content__container:before {
  content: "[";
  left: 0;
}

.text-content content__container:after {
  content: "]";
  position: absolute;
  right: 0;
}

.text-content content__container:after,
.text-content content__container:before {
  position: absolute;
  top: 0;
  color: #16a085;
  font-size: 42px;
  line-height: 40px;
  -webkit-animation-name: opacity;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  animation-name: opacity;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

.text-content content__container__text {
  display: inline;
  float: left;
  margin: 0;
}

.text-content content__container__list {
  margin-top: 0;
  padding-left: 110px;
  text-align: left;
  list-style: none;
  -webkit-animation-name: change;
  -webkit-animation-duration: 10s;
  -webkit-animation-iteration-count: infinite;
  animation-name: change;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}

.text-content content__container__list__item {
  line-height: 40px;
  margin: 0;
}

@-webkit-keyframes opacity {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@-webkit-keyframes change {
  0%,
  12.66%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  16.66%,
  29.32% {
    transform: translate3d(0, -25%, 0);
  }
  33.32%,
  45.98% {
    transform: translate3d(0, -50%, 0);
  }
  49.98%,
  62.64% {
    transform: translate3d(0, -75%, 0);
  }
  66.64%,
  79.3% {
    transform: translate3d(0, -50%, 0);
  }
  83.3%,
  95.96% {
    transform: translate3d(0, -25%, 0);
  }
}

@-o-keyframes opacity {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@-o-keyframes change {
  0%,
  12.66%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  16.66%,
  29.32% {
    transform: translate3d(0, -25%, 0);
  }
  33.32%,
  45.98% {
    transform: translate3d(0, -50%, 0);
  }
  49.98%,
  62.64% {
    transform: translate3d(0, -75%, 0);
  }
  66.64%,
  79.3% {
    transform: translate3d(0, -50%, 0);
  }
  83.3%,
  95.96% {
    transform: translate3d(0, -25%, 0);
  }
}

@-moz-keyframes opacity {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@-moz-keyframes change {
  0%,
  12.66%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  16.66%,
  29.32% {
    transform: translate3d(0, -25%, 0);
  }
  33.32%,
  45.98% {
    transform: translate3d(0, -50%, 0);
  }
  49.98%,
  62.64% {
    transform: translate3d(0, -75%, 0);
  }
  66.64%,
  79.3% {
    transform: translate3d(0, -50%, 0);
  }
  83.3%,
  95.96% {
    transform: translate3d(0, -25%, 0);
  }
}

@keyframes opacity {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@keyframes change {
  0%,
  12.66%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  16.66%,
  29.32% {
    transform: translate3d(0, -25%, 0);
  }
  33.32%,
  45.98% {
    transform: translate3d(0, -50%, 0);
  }
  49.98%,
  62.64% {
    transform: translate3d(0, -75%, 0);
  }
  66.64%,
  79.3% {
    transform: translate3d(0, -50%, 0);
  }
  83.3%,
  95.96% {
    transform: translate3d(0, -25%, 0);
  }
}

.home-banner {
  position: relative;
  height: 600px;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, #00245e, #004793);
}

.home-banner::before {
  content: "";
  position: absolute;
  background: url("/static/imgs/bg.jpeg") center center no-repeat;
  background-size: cover;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0.3;
  height: 100%;
  /* background-color: rgba(0, 55, 165, 0.5); */

  z-index: 1;
}

.home-banner h1,
.home-banner h5,
.home-banner .text-content {
  position: relative;
  z-index: 2; /* 确保内容显示在滤镜之上 */
  color: #ffffff;
}

.home-banner h5 {
  color: #4993c8;
  font-size: 16px;
  font-weight: 200;
  margin-top: 100px;
}
.home-banner h1 {
  font-size: 60px;
  margin-top: 100px;
}
.home-banner div {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.6;
}

/* 产品展示模块样式 - 仿DJI官网风格 */
.product-showcase {
  padding: 80px 0;
  background: #f5f5f5;
}

.product-showcase .product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-showcase .product-card-link {
  text-decoration: none;
  display: block;
  position: relative;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.product-showcase .product-card-link:hover {
  transform: scale(0.98);
}

.product-showcase .product-card-link:hover .product-link {
  text-decoration: underline;
}

.product-showcase .product-card {
  position: relative;
  overflow: hidden;
  height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  background-color: #f0f0f0;
}

.product-showcase .product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
}

.product-showcase .product-info {
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  z-index: 2;
  height: 100%;
}

.product-showcase .product-category {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  font-weight: 400;
}

.product-showcase .product-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 15px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.product-showcase .product-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  line-height: 1.5;
  max-width: 90%;
}

.product-showcase .product-link {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  margin-top: auto;
  padding: 8px 0;
}

.product-showcase .product-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.product-showcase .product-image {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 -40px;
}

.product-showcase .product-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 媒体查询 - 响应式设计 */
@media (max-width: 1200px) {
  .product-showcase .product-grid {
    padding: 0 20px;
  }
}

@media (max-width: 992px) {
  .product-showcase .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-showcase .product-card {
    height: 420px;
  }

  .product-showcase .product-info {
    padding: 30px;
  }

  .product-showcase .product-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .product-showcase .product-grid {
    grid-template-columns: 1fr;
  }

  .product-showcase {
    padding: 50px 0;
  }

  .product-showcase .product-card {
    height: 360px;
  }

  .product-showcase .product-info {
    padding: 25px;
  }

  .product-showcase .product-title {
    font-size: 24px;
  }
}

/* 光学特性模块 */
.optical-features {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.optical-features-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.optical-features-left {
  flex: 1;
  padding-right: 40px;
}

.optical-features-left h2 {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 600;
}

.optical-features-left > p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.8;
}

.feature-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-icon {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon img {
  width: 24px;
  height: 24px;
  filter: invert(100%);
}

.feature-text h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #4993c8;
}

.feature-text p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
}

.optical-features-right {
  flex: 1;
  height: 500px;
  background: url("/static/imgs/bg2.jpg") center center no-repeat;
  background-size: cover;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.optical-features-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 55, 165, 0.2);
}

@media (max-width: 992px) {
  .optical-features-content {
    flex-direction: column;
  }

  .optical-features-left {
    padding: 0 20px;
    margin: 40px 0;
  }

  .optical-features-right {
    width: 100%;
    height: 350px;
  }
}

/* 核心技术模块 */
.core-technology {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  color: #0055a5;
  margin-bottom: 20px;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #666;
  line-height: 1.6;
  font-size: 16px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.tech-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tech-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 85, 165, 0.1);
  border-radius: 10px;
  margin-bottom: 20px;
}

.tech-icon img {
  width: 30px;
  height: 30px;
  color: #0055a5;
}

.tech-card h3 {
  font-size: 20px;
  color: #0055a5;
  margin-bottom: 15px;
  font-weight: 600;
}

.tech-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }

  .tech-card {
    padding: 20px;
  }
}

/* 客户评价模块 */
.testimonials {
  padding: 80px 0;
  background-color: #f5f7fa;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
}

.testimonial-content {
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 20px;
}

.testimonial-content p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 3px solid #f0f0f0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h3 {
  font-size: 18px;
  color: #0055a5;
  margin-bottom: 5px;
  font-weight: 600;
}

.author-info p {
  color: #777;
  font-size: 14px;
}

@media (max-width: 992px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* 页脚样式 */
.footer {
  background-color: #e9f4ff;
  padding: 30px 0;
  color: #666;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.copyright {
  color: var(--text-light);
  font-size: 14px;
}

.icp-info {
  text-align: left;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.icp-info a {
  color: var(--text-lighter);
  text-decoration: none;
  transition: color 0.2s;
}

.icp-info a:hover {
  color: var(--text-light);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  margin: 0 5px;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.divider {
  color: #ccc;
  margin: 0 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fff;
  color: #555;
  transition: all 0.3s;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* 微信二维码弹出 */
.wechat-container,
.phone-container {
  position: relative;
}

.qrcode-popup {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 150px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.qrcode-popup::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

.qrcode-img {
  width: 120px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  border-radius: 4px;
}

.qrcode-popup p {
  margin-top: 10px;
  font-size: 12px;
  color: #555;
}

.wechat-container:hover .qrcode-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 电话tooltip样式 */
.phone-tooltip {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  border-radius: 8px;
  padding: 10px 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.phone-tooltip::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

.phone-tooltip p {
  margin: 0;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
}

.phone-container:hover .phone-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    justify-content: center;
    margin: 15px 0;
  }
}

/* 关于我们页面样式 */
.about-header {
  background-color: var(--primary-color);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.about-header h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.about-header p {
  font-size: 18px;
  opacity: 0.8;
}

.about-content {
  padding: 80px 0;
}

.about-info h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 28px;
}

.about-info p {
  margin-bottom: 30px;
  line-height: 1.6;
  color: #555;
}

.about-info ul {
  padding-left: 20px;
}

.about-info li {
  margin-bottom: 10px;
  color: #555;
}

/* 联系我们部分 */
.contact-section {
  background-color: #f5f7fa;
  padding: 80px 0;
}

.contact-wrapper {
  display: flex;
  gap: 40px;
}

.contact-info {
  flex: 1;
}

.contact-info h2 {
  color: var(--primary-color);
  font-size: 28px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  margin-bottom: 25px;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-text h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #333;
}

.contact-text p {
  margin: 0;
  color: #666;
}

/* 地图容器 */
.map-container {
  flex: 1;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 地图信息窗口样式 */
.info-window {
  padding: 5px;
}

.info-window h4 {
  margin: 0 0 5px 0;
  color: var(--primary-color);
}

.info-window p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

@media (max-width: 992px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .map-container {
    margin-top: 30px;
  }
}

/* 404页面样式 */
.not-found-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
  perspective: 1000px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
}

.not-found-content {
  text-align: center;
  max-width: 800px;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: var(--box-shadow-large);
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
}

.error-code {
  display: flex;
  justify-content: center;
  font-size: 120px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
}

.number {
  position: relative;
  transition: transform 0.5s ease;
  display: inline-block;
}

.four-left,
.four-right,
.zero {
  margin: 0 10px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.not-found-title {
  font-size: 32px;
  color: var(--text-color);
  margin-bottom: 20px;
}

.not-found-description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
}

.back-home {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 85, 165, 0.3);
}

.back-home:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 85, 165, 0.4);
}

.astronaut-container {
  position: absolute;
  width: 150px;
  height: 150px;
  top: 50%;
  right: -50px;
  z-index: 5;
  pointer-events: none;
}

.astronaut {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.astronaut img {
  width: 100%;
  height: 100%;
}

/* 弹跳动画 */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

.bounce {
  animation: bounce 1s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .error-code {
    font-size: 80px;
  }

  .not-found-title {
    font-size: 26px;
  }

  .not-found-description {
    font-size: 16px;
  }

  .astronaut-container {
    width: 100px;
    height: 100px;
    top: 60%;
    right: -20px;
  }
}

@media (max-width: 480px) {
  .error-code {
    font-size: 60px;
  }

  .not-found-content {
    padding: 20px;
  }

  .astronaut-container {
    display: none;
  }
}

/* 修改首页banner和介绍文字在移动端的样式 */
@media (max-width: 768px) {
  /* 首页banner调整 */
  .home-banner {
    padding: 40px 15px;
    margin-bottom: 20px;
  }

  .home-banner h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .home-banner h5 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .home-banner div {
    font-size: 15px;
    line-height: 1.6;
    max-width: 100%;
    text-align: justify;
    padding: 0 5px;
    margin: 0 auto;
  }

  /* 移动端优秀产品质量区域调整 */
  .optical-features {
    padding: 30px 20px;
    margin: 20px 15px;
    border-radius: 20px;
  }

  .optical-features-content {
    flex-direction: column;
    gap: 20px;
  }

  .optical-features-left h2 {
    font-size: 22px;
    text-align: center;
  }

  .optical-features-left > p {
    text-align: center;
    font-size: 15px;
    margin-bottom: 20px;
  }

  .feature-items {
    gap: 15px;
  }

  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature-icon {
    margin-bottom: 10px;
    margin-right: 0;
  }

  .feature-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
  }

  /* 使竖向显示更紧凑 */
  .feature-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  /* 更小屏幕上的额外调整 */
  .home-banner {
    padding: 30px 10px;
  }

  .home-banner h1 {
    font-size: 24px;
  }

  .home-banner div {
    font-size: 14px;
    line-height: 1.5;
  }

  .optical-features-left h2 {
    font-size: 20px;
  }

  .feature-item {
    padding: 15px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
  }

  /* 核心技术部分在小屏幕上的调整 */
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .tech-card {
    padding: 15px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .section-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* 更小屏幕上的额外调整 */
  .optical-features {
    padding: 25px 15px;
    margin: 15px 10px;
    border-radius: 15px;
  }
}

/* 移动端响应式适配 */
@media (max-width: 992px) {
  /* 全局容器调整 */
  .container {
    padding: 0 15px;
  }

  /* 标题字体大小调整 */
  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 22px !important;
  }

  h3 {
    font-size: 18px !important;
  }

  /* 正文文字调整 */
  p {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  /* 导航栏响应式适配 */
  .header-wrap {
    padding: 10px 15px;
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    margin-top: 10px;
  }

  .nav .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav .nav-links li {
    margin: 5px 10px;
  }

  .header-wrap .contact {
    margin-top: 10px;
    padding: 8px 15px;
    font-size: 14px;
    margin-left: auto;
  }

  /* 通用元素适配 */
  .product-detail {
    padding: 20px 0;
  }

  .product-header h1 {
    font-size: 24px;
  }

  /* 图片适配 */
  .product-image {
    height: auto;
    max-height: 250px;
  }

  .product-image img {
    max-height: 200px;
  }

  /* 内容区域调整 */
  .product-description {
    padding: 15px;
  }

  .markdown-content h2 {
    font-size: 20px;
  }

  .markdown-content h3 {
    font-size: 18px;
  }

  .markdown-content img {
    margin: 5px 0;
  }

  /* 按钮调整 */
  .contact-btn,
  .learn-more {
    padding: 10px 18px;
    font-size: 14px;
  }

  /* 产品列表优化 */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }

  .product-item {
    padding: 15px;
  }

  .product-item h3 {
    font-size: 15px;
    height: 36px;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  /* 小屏幕设备的额外优化 */
  .page-header {
    padding: 20px 0;
    margin-bottom: 20px;
  }

  .page-header h1 {
    font-size: 22px !important;
  }

  .page-header p {
    font-size: 14px;
  }

  /* 产品详情页调整 */
  .product-content {
    gap: 15px;
  }

  /* 产品列表进一步优化 */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .product-image {
    height: 120px;
    margin-bottom: 10px;
  }

  /* 移动端间距调整 */
  .section-title {
    margin-bottom: 15px;
  }

  .product-section {
    padding: 15px 0 30px;
  }

  /* 移动端联系按钮调整 */
  .contact-section {
    padding: 20px;
    margin-bottom: 20px;
  }

  .contact-section h2 {
    font-size: 20px !important;
    margin-bottom: 10px;
  }

  /* 列表项调整 */
  .docs-nav-item {
    padding: 6px 10px;
    font-size: 13px;
  }

  /* 错误信息样式 */
  .error-message {
    padding: 10px;
    margin-bottom: 15px;
    font-size: 14px;
  }
}
