/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  padding-top: 70px; /* 为固定导航栏留出空间 */
}

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

/* 导航样式 */
.navigation {
  background: linear-gradient(135deg, #ffffff 0%, #1d314d 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 2560px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo a {
  color: #1D314D;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo a:hover {
  opacity: 0.8;
}

.logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: inline-block;
  color: #07467D;
}

/* 首页LOGO展示区域 */
.home-logo-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 3rem 2rem;
  margin-top: 70px; /* 为固定导航栏留出空间 */
  border-bottom: 3px solid #667eea;
}

.home-logo-wrapper {
  text-align: center;
  padding: 2rem 0;
}

.home-logo {
  height: 120px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease-out;
}

.company-name {
  font-size: 2.5rem;
  color: #07467D;
  margin-bottom: 0.5rem;
  font-weight: bold;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.company-tagline {
  font-size: 1.2rem;
  color: #667eea;
  font-weight: 500;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s;
  display: block;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nav-menu a.active {
  background-color: rgba(255, 255, 255, 0.3);
  font-weight: bold;
}

.language-switcher {
  display: flex;
  align-items: center;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  font-weight: 600;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* 轮播图样式 */
.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.carousel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
}

.carousel-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.carousel-subtitle {
  font-size: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  font-size: 3rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
  left: 2rem;
}

.carousel-btn-next {
  right: 2rem;
}

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.carousel-indicator.active {
  background: white;
  transform: scale(1.3);
}

/* 设备展示区域样式 */
.devices-section {
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.device-card {
  position: relative;
  height: 500px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.device-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.device-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}

.device-card:hover .device-image {
  transform: scale(1.1);
}

.device-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
  padding: 2rem;
  color: white;
  transform: translateY(0);
  transition: transform 0.3s;
}

.device-card:hover .device-overlay {
  transform: translateY(0);
}

.device-name {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.device-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.device-features li {
  padding: 0.5rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.device-features li::before {
  content: '✓';
  margin-right: 0.5rem;
  color: #667eea;
  font-weight: bold;
  font-size: 1.2rem;
}

.learn-more-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: opacity 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.learn-more-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 页脚样式 */
.footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-left img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-center {
  flex: 1;
}

.footer-center p {
  margin: 0.2rem 0;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  font-size: 0.95rem;
}

.footer-right img {
  height: 80px;
  width: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .nav-menu.mobile-active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .logo-image {
    height: 40px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .home-logo-section {
    padding: 2rem 1rem;
    margin-top: 60px;
  }

  .home-logo {
    height: 80px;
    max-width: 200px;
  }

  .company-name {
    font-size: 1.8rem;
  }

  .company-tagline {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right img {
    height: 70px;
    width: 70px;
  }

  .carousel-container {
    height: 350px;
  }

  .carousel-title {
    font-size: 2rem;
  }

  .carousel-subtitle {
    font-size: 1.2rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .carousel-btn-prev {
    left: 1rem;
  }

  .carousel-btn-next {
    right: 1rem;
  }

  .devices-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .device-card {
    height: 400px;
  }

  .section-title {
    font-size: 2rem;
  }
}

