/* 导航栏样式 */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  letter-spacing: -0.5px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #4CAF50;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.05);
}

nav a:hover::after {
  width: 100%;
  left: 0;
}

/* 响应式导航栏 */
@media (max-width: 768px) {
  nav {
    padding: 1rem;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  nav a {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}

/* 基础样式 */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-image: url('../images/photos/1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.9);
  padding-top: 80px;
}

/* 新增：整体居中布局 */
.grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* 首页和关于我部分样式 */
.home-section,
.about-section {
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.home-section h1,
.about-section h2 {
  margin-top: 0;
  color: #333;
}

.home-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}

/* 荣誉部分样式 */
.honors-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.honors-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.honor-item {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.honor-item h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
}

.honor-item p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* 轮播图样式 */
.carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  color: #333;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 1);
  color: #4CAF50;
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

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

.carousel-indicator {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: rgba(255, 255, 255, 1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .home-content,
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .home-section,
  .about-section {
    padding: 1rem;
  }

  .carousel-item img {
    height: 300px;
  }
}
