/* 基础重置和变量定义 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #3a7cc0;
  --secondary-color: #6ba1dc;
  --accent-color: #8bb9e9;
  --text-dark: #333;
  --text-light: #666;
  --text-white: #fff;
  --bg-light: #f5f7fa;
  --bg-gradient-start: #e8eaf6;
  --bg-gradient-end: #c5cae9;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

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

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.logo img {
  width: 91px;
  height: 36px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Hero区域样式 */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
}

/* 通用区域标题样式 */
.section-title {
  font-size: 60px;
  font-weight: bold;
  text-align: center;
  color: #0d1012;
  line-height: 50px;
  letter-spacing: 12px;
  margin-bottom: 24px;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 50px;
  font-weight: 350;
  font-size: 30px;
  color: #494d50;
  line-height: 50px;
  letter-spacing: 6px;
}

/* 合作模式区域 */
.cooperation {
  padding: 120px 0;
  background: var(--bg-light);
}

.cooperation-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.coop-card {
  background: var(--text-white);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  /* box-shadow: var(--card-shadow); */
  box-shadow: 0px 4px 20px 0px rgba(34, 48, 119, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.coop-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(
    135deg,
    var(--bg-gradient-start),
    var(--bg-gradient-end)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.coop-card:hover .card-icon {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scale(1.1);
}

.card-icon img {
  width: 40px;
  height: 40px;
  transition: filter 0.3s ease;
}

.coop-card:hover .card-icon img {
  filter: brightness(0) invert(1);
}

.coop-card h3 {
  font-size: 20px;
  color: var(--text-dark);
  font-weight: 600;
}

.cooperation-desc {
  text-align: center;
  color: var(--primary-color);
  font-size: 32px;
  font-weight: 500;
}

/* 合作伙伴区域 */
.partners {
}

.partners .container2 {
  margin: 0 auto;
  padding: 120px 20px;
  padding-bottom: 40px;
  background: linear-gradient(180deg, #b2bfff 0%, #d7e5ff 100%);
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  margin-bottom: 60px;
}

.partner-logo {
  transition: all 0.3s ease;
  height: 80px;
}

.partner-logo:hover {
  transform: scale(1.05);
}

.partner-logo img {
  max-height: 80px;
  object-fit: contain;
}

.partner-categories {
  padding: 80px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  transition: all 0.3s ease;
  min-width: 80px;
}

.category-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.category-icon {
  height: 44px;
}

.category-gap {
  margin: 0 20px;
  width: 0px;
  height: 40px;
  border: 1px dashed #3a7cc0;
}

.category-item span:last-child {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
}

/* 关于我们区域 */
.about {
  padding: 100px 0;
  background: var(--bg-light);
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, #ecefff 0%, #f5f9ff 100%);
}

.about .container {
  position: relative;
  z-index: 1;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-bg {
  position: absolute;
  top: 0%;
  right: -30%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: -1;
}

.about-info h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-info p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}

.contact-info {
  margin-top: 80px;
}

.contact-info p {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.about-qr {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.qr-code {
}

.qr-code img {
  width: 232px;
  height: 232px;
}

.qr-code p {
  color: var(--text-light);
  font-size: 14px;
}

/* 页脚 */
.footer {
  background: #2b2c32;
  color: var(--text-white);
  padding: 30px 0;
  text-align: center;
}

.footer p {
  font-size: 14px;
  opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-astronaut {
    flex: 0 0 300px;
  }

  .cooperation-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-qr {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 20px;
  }

  .nav-menu a {
    font-size: 14px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-astronaut {
    flex: 0 0 250px;
  }

  .section-title {
    font-size: 28px;
  }

  .cooperation-cards {
    grid-template-columns: 1fr;
  }

  .partners-logos {
    grid-template-columns: 1fr;
  }

  .partner-categories {
    gap: 15px;
  }

  .category-item {
    min-width: 70px;
    padding: 10px 15px;
  }

  .planet-1,
  .planet-2,
  .planet-3 {
    display: none;
  }
}

/* 滚动动画类 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}
