@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500&display=swap');

:root {
  --main-color: #2A2A2A;
  --auxiliary-color: #F8F9FA;
  --accent-color: #C45C2A;
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background-color: var(--auxiliary-color);
  color: var(--main-color);
  overflow-x: hidden;
}

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

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(248, 249, 250, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 20px 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
}

nav a {
  text-decoration: none;
  color: var(--main-color);
  font-weight: var(--font-regular);
  position: relative;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent-color);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s;
}

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

.hero {
  height: 100vh;
  background: linear-gradient(rgba(42, 42, 42, 0.5), rgba(42, 42, 42, 0.5)), url('https://hpi-hub.tos-cn-beijing.volces.com/static/batch_22/1757611562175-4998.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 4rem;
  font-weight: var(--font-light);
  margin-bottom: 20px;
  animation: fadeInUp 1s;
}

.hero p {
  font-size: 1.5rem;
  font-weight: var(--font-regular);
  animation: fadeInUp 1s 0.5s;
  animation-fill-mode: both;
}

.carousel {
  position: relative;
  overflow: hidden;
  height: 600px;
}

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

.carousel-item {
  min-width: 100%;
  height: 600px;
  background-size: cover;
  background-position: center;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(42, 42, 42, 0.5);
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  font-size: 1.5rem;
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: var(--font-light);
  margin-bottom: 50px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s, filter 0.3s;
}

.card:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(42, 42, 42, 0.8), transparent);
  padding: 20px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s;
}

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

.scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
}

.scroll-item {
  flex: 0 0 300px;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.scroll-item:hover .scroll-content {
  opacity: 1;
}

.scroll-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(42, 42, 42, 0.8);
  color: white;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s;
}

footer {
  background: var(--main-color);
  color: var(--auxiliary-color);
  text-align: center;
  padding: 20px 0;
}

.geometric-shape {
  position: absolute;
  background: var(--accent-color);
  opacity: 0.1;
  z-index: 0;
}

.shape-1 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  top: 10%;
  left: 5%;
}

.shape-2 {
  width: 150px;
  height: 150px;
  transform: rotate(45deg);
  bottom: 20%;
  right: 10%;
}

.shape-3 {
  width: 100px;
  height: 100px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  top: 50%;
  left: 50%;
}

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

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  nav ul {
    gap: 20px;
  }

  .section {
    padding: 40px 0;
  }

  .carousel {
    height: 400px;
  }

  .carousel-item {
    height: 400px;
  }
}