/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

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

h1, h2, h3, h4 {
  margin-bottom: 20px;
  color: #222;
}

p {
  margin-bottom: 20px;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 60px 0;
}

.text-center {
  text-align: center;
}

/* 头部横幅样式 */
.anniversary-banner {
  background: linear-gradient(135deg, #0046be, #00a0e9);
  color: white;
  padding: 20px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.anniversary-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: white;
  position: relative;
  z-index: 2;
}

.anniversary-banner p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
}

/* 粒子效果 */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
  }
}

/* 十周年标志 */
.anniversary-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #ff9900, #ffcc00);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
  z-index: 10;
  animation: pulse 2s infinite;
}

.anniversary-badge span:first-child {
  font-size: 2.5rem;
  line-height: 1;
}

.anniversary-badge span:last-child {
  font-size: 0.8rem;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* 横幅图片 */
.hero {
  background-image: url('/images/smart-banner1.png');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 120px 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* 历程时间线 */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: #0046be;
}

.timeline-item {
  margin-bottom: 50px;
  position: relative;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
}

.timeline-item:nth-child(odd) {
  margin-right: 50%;
  text-align: right;
}

.timeline-content {
  background-color: white;
  padding: 30px;
  border-radius: 6px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  width: 80%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-year {
  position: absolute;
  background-color: #0046be;
  color: white;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border-radius: 50%;
  top: 20px;
}

.timeline-item:nth-child(odd) .timeline-year {
  right: -30px;
}

.timeline-item:nth-child(even) .timeline-year {
  left: -30px;
}

/* 技术展示 */
.tech-section {
  background-color: white;
  padding: 60px 0;
}

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

.tech-item {
  background-color: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-10px);
}

.tech-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.tech-item:hover .tech-img img {
  transform: scale(1.1);
}

.tech-content {
  padding: 20px;
}

.tech-content h3 {
  margin-bottom: 10px;
  color: #0046be;
  font-size: 1.2rem;
}

.tech-content p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.btn-view-more {
  display: inline-block;
  background-color: #0046be;
  color: white;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-view-more:hover {
  background-color: #003399;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 视频展示 */
.video-section {
  background-color: #f0f2f5;
}

.video-container {
  width: 80%;
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-radius: 10px;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  display: block;
}

/* 活动安排 */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.event-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-date {
  background-color: #0046be;
  color: white;
  padding: 15px;
  font-weight: bold;
  text-align: center;
}

.event-content {
  padding: 20px;
}

/* 结语与联系 */
.closing-section {
  background: linear-gradient(135deg, #0046be, #00a0e9);
  color: white;
  text-align: center;
}

.contact-btn {
  display: inline-block;
  background-color: white;
  color: #0046be;
  padding: 12px 30px;
  margin-top: 20px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #ffcc00;
  color: #333;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
  /* 移动端调整圆形标志位置 */
  .anniversary-badge {
    width: 70px;
    height: 70px;
    top: auto;
    bottom: 10px; /* 移到横幅底部 */
    right: 20px;
    z-index: 20;
  }
  
  .anniversary-badge span:first-child {
    font-size: 1.7rem;
  }
  
  .anniversary-badge span:last-child {
    font-size: 0.6rem;
  }
  
  /* 为了适应移至底部的徽章，给横幅增加一些下边距 */
  .anniversary-banner {
    padding-bottom: 40px;
  }
  
  /* 其他响应式调整保持不变 */
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    margin-bottom: 40px;
    margin-left: 60px !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
  
  .timeline-content {
    width: 100%;
    margin-left: 0 !important;
  }
  
  .timeline-year {
    left: -45px !important;
    right: auto !important;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .video-container {
    width: 100%;
  }
}

/* 更小屏幕的特殊处理 */
@media (max-width: 480px) {
  .anniversary-banner h1 {
    font-size: 1.8rem;
    padding: 0 10px;
  }
  
  .anniversary-banner p {
    font-size: 1rem;
  }
}
