:root {
  --primary-color: #2B5BA1;    /* 科技蓝 */
  --secondary-color: #F5F7FA;  /* 浅灰底色 */
  --accent-color: #FF6B00;     /* 活力橙 */
}

/* 头部导航样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.2);  /* 半透明黑色 */
  backdrop-filter: blur(8px);  /* 毛玻璃效果 */
}

.header.scrolled {
  background-color: rgba(0, 0, 0, 0.3);  /* 滚动时稍微加深一点 */
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Logo样式 */
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

/* 导航链接样式 */
.nav-links {
  display: flex;
  justify-content: flex-end;
  flex: 1;
  gap: 50px;
  margin-right: 40px;
}

.nav-links a {
  color: #fff;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-links a:hover {
  color: #FFD700;
}

/* 轮播区域样式 */
.hero-slider {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #000;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  text-align: center;
  padding: 20px;
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 280px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.3s;
}

.slide-content p {
  font-size: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.5s;
  margin-bottom: 30px;
}

.slide.active .slide-content h1,
.slide.active .slide-content p {
  opacity: 1;
  transform: translateY(0);
}

/* 轮播控制按钮式 */
.slider-controls {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 10;
}

.prev-slide,
.next-slide {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s ease;
}

.prev-slide:hover,
.next-slide:hover {
  background: rgba(255,255,255,0.4);
}

/* 轮播指示器样式 */
.slider-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #fff;
  transform: scale(1.2);
}

/* 轮播图按钮样式 */
.cta-button {
  margin-top: 30px;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  background-color: #FF6B00;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
}

.cta-button:hover {
  background-color: #ff8533;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.slide.active .cta-button {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease 0.7s;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .nav {
    max-width: 1000px;
  }
  
  .nav-links {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 0;
  }

  .nav {
    padding: 0 20px;
  }

  .logo-img {
    width: 80px;
    height: 80px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    margin-left: auto;
  }

  .slide-content {
    margin-top: 200px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: 70px;
    height: 70px;
  }
}

/* 新闻动态区域样式 */
.news-grid {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.grid-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.news-card {
    position: relative;
}

.news-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.news-image:hover .news-overlay {
    opacity: 1;
}

.news-overlay p {
    font-size: 16px;
    line-height: 1.5;
}

.news-date {
    padding: 15px;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}
 