/**
 * CSS files with the .module.css suffix will be treated as CSS modules
 * and scoped locally.
 */

.mainContainer {
  padding: 2rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  min-height: calc(100vh - var(--ifm-navbar-height) - 10px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.heroSection {
  text-align: center;
  margin-bottom: 5rem;
  padding-top: 2rem;
  animation: fadeInUp 1s ease-out;
}

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

.heroTitle {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #4d6cfa 0%, #6b85fb 50%, #7b92fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  text-shadow: 0 10px 30px rgba(77, 108, 250, 0.2);
}

.heroTitle::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4d6cfa 0%, #6b85fb 100%);
  border-radius: 2px;
}

.heroSubtitle {
  font-size: 1.5rem;
  opacity: 0.8;
  max-width: 700px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
  color: var(--vp-c-text-1);
}

/* 徽章样式 */

.heroBadges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(77, 108, 250, 0.08);
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--vp-c-brand-1);
  box-shadow: 0 3px 10px rgba(77, 108, 250, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

.badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(77, 108, 250, 0.15);
  background: rgba(77, 108, 250, 0.12);
}

.badgeIcon {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

[data-theme="dark"] .badge {
  background: rgba(77, 108, 250, 0.15);
  box-shadow: 0 3px 10px rgba(77, 108, 250, 0.2);
}

[data-theme="dark"] .badge:hover {
  background: rgba(77, 108, 250, 0.25);
  box-shadow: 0 5px 15px rgba(77, 108, 250, 0.3);
}

.cardsContainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(400px, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: 2.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex-grow: 1;
  align-self: center;
}

/* 响应式设计 */

@media (max-width: 996px) {
  .heroTitle {
    font-size: 3rem;
  }
  .heroSubtitle {
    font-size: 1.3rem;
  }
  .cardsContainer {
    grid-template-columns: 1fr;
    max-width: 600px;
    gap: 2rem;
  }
  .card {
    height: 220px;
  }
  .cardContent {
    padding: 2rem;
  }
  .card:hover .cardContent {
    padding-left: 2.5rem;
  }
  .cardTitle {
    font-size: 1.8rem;
  }
  .cardDescription {
    font-size: 1rem;
    max-width: 90%;
  }
  .cardIcon {
    width: 48px;
    height: 48px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 768px) {
  .heroTitle {
    font-size: 2.5rem;
  }
  .heroSubtitle {
    font-size: 1.1rem;
    max-width: 100%;
  }
  .mainContainer {
    padding: 1.5rem 1.5rem 3rem;
  }
  .heroSection {
    margin-bottom: 3rem;
    padding-top: 1.5rem;
  }
  .cardsContainer {
    gap: 1.5rem;
  }
  .card {
    height: 200px;
  }
  .comingSoonBadge {
    font-size: 0.75rem;
    padding: 0.3rem 0;
    width: 120px;
    top: 12px;
    right: -30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  .card:hover .comingSoonBadge {
    background: #ff3838;
  }
}

.homeLayout {
  position: relative;
  overflow: hidden;
  width: 100% !important;
  max-width: 100% !important;
}

.mainContainer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: radial-gradient(*/
  /*    circle at 10% 10%,*/
  /*    rgba(77, 108, 250, 0.05) 0%,*/
  /*    transparent 50%*/
  /*  ),*/
  /*  radial-gradient(*/
  /*    circle at 90% 30%,*/
  /*    rgba(127, 82, 255, 0.05) 0%,*/
  /*    transparent 40%*/
  /*  ),*/
  /*  radial-gradient(*/
  /*    circle at 50% 80%,*/
  /*    rgba(177, 37, 234, 0.05) 0%,*/
  /*    transparent 40%*/
  /*  );*/
  pointer-events: none;
  z-index: -1;
}

/* 广告栏样式 */

.adBanner {
  margin: 3rem auto 0;
  padding: 3rem 2rem;
  border-radius: var(--global-border-radius);
  background: linear-gradient(
    135deg,
    rgba(77, 108, 250, 0.03) 0%,
    rgba(127, 82, 255, 0.03) 100%
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 1000px;
  width: 100%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(77, 108, 250, 0.08);
  animation: fadeInUp 1s ease-out;
  animation-delay: 0.5s;
  animation-fill-mode: both;
  position: relative;
  overflow: hidden;
}

.adBanner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 10% 10%,
      rgba(77, 108, 250, 0.1) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(127, 82, 255, 0.1) 0%,
      transparent 30%
    );
  opacity: 0.3;
  z-index: 1;
}

[data-theme="dark"] .adBanner {
  background: linear-gradient(
    135deg,
    rgba(77, 108, 250, 0.05) 0%,
    rgba(127, 82, 255, 0.05) 100%
  );
  border: 1px solid rgba(77, 108, 250, 0.15);
}

.adContent {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.adContentVertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.adLogo {
  width: 150px;
  height: auto;
}

.adInfo {
  flex: 1;
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.adTitle {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--vp-c-text-1);
}

.adTitle a {
  color: var(--vp-c-brand-1);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.adTitle a::after {
  display: none;
}

.adTitle a:hover::after {
  display: none;
}

.adTitle a:hover {
  color: var(--vp-c-brand-1-darker);
  text-decoration: none;
}

.adDescription {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--vp-c-text-1);
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.adDescription a {
  color: var(--vp-c-brand-1);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.adDescription a::after {
  display: none;
}

.adDescription a:hover::after {
  display: none;
}

.adDescription a:hover {
  color: var(--vp-c-brand-1-darker);
  text-decoration: none;
}

.adContact {
  font-size: 1rem;
  color: var(--vp-c-text-1);
  opacity: 0.8;
  margin-bottom: 0.8rem;
  background: rgba(77, 108, 250, 0.08);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  display: inline-block;
}

.adSponsor {
  font-size: 1rem;
  font-style: italic;
  color: var(--vp-c-brand-1);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .adContent {
    flex-direction: column;
    text-align: center;
  }
  .adLogo {
    width: 120px;
  }
  .adTitle {
    font-size: 1.7rem;
  }
  .adDescription {
    font-size: 1rem;
  }
}

/* 添加底部Banner */

.footerBanner {
  margin-top: 4rem;
  padding: 3rem 2rem;
  border-radius: var(--global-border-radius);
  background: linear-gradient(
    135deg,
    rgba(77, 108, 250, 0.08) 0%,
    rgba(127, 82, 255, 0.08) 100%
  );
  text-align: center;
  box-shadow: var(--global-shadow);
  border: 1px solid rgba(77, 108, 250, 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out;
  animation-delay: 0.6s;
  animation-fill-mode: both;
}

.footerBanner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 10% 10%,
      rgba(77, 108, 250, 0.2) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(127, 82, 255, 0.2) 0%,
      transparent 30%
    );
  opacity: 0.3;
  z-index: 1;
}

.bannerContent {
  position: relative;
  z-index: 2;
}

.bannerTitle {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #4d6cfa 0%, #7f52ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: normal;
  display: inline-block;
}

.bannerDescription {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .bannerTitle {
    font-size: 1.6rem;
  }
  .bannerDescription {
    font-size: 1rem;
  }
  .footerBanner {
    padding: 2rem 1.5rem;
    margin-top: 3rem;
  }
  .heroBadges {
    margin-top: 1.5rem;
  }
  .badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}
