body.index .md-main__inner {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.index .md-content__inner,
body.index .md-content__inner>* {
  margin: 0 !important;
  padding: 0 !important;
}

body.index .md-content h1:first-child {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}


body.index .hero-container {
  height: 100vh !important;
  width: 100vw !important;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

body.index .md-content__inner::before {
  content: none !important;
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.index .hero-caption {
  position: relative !important;
  margin-left: 0 !important;
  margin-bottom: -10vh !important;
  max-width: 55% !important;
  width: auto !important;
  /* background-color: #a9b7c3 !important; */
  background-color: var(--hero-caption-bg) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;

  height: auto !important;
  padding: 2% !important;
}

/* Hero Caption Elements */
body.index .hero-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: left;
  margin-bottom: 10px;
  margin-top: 0px;
  color: var(--hero-text-color) !important;
}

body.index .hero-description {
  text-align: left;
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--hero-text-color) !important;
}

body.index .hero-buttons {
  display: flex;
  gap: 40px;
  justify-content: left;
}

body.index .hero-learn-more {
  color: var(--hero-learn-more-color);
  font-weight: bold;
}

/* Scroll Down Element */
body.index .scroll-down {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  margin-bottom: 5vh;
}

body.index .scroll-text {
  color: var(--scroll-text-color);
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0px;
  text-align: center;
}

body.index .scroll-down .my-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  
  /* Masking to match text color */
  background-color: var(--scroll-text-color);
  -webkit-mask-image: url('../assets/images/down-chevron-svgrepo-com.svg');
  mask-image: url('../assets/images/down-chevron-svgrepo-com.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;

  /* Animation from .heart */
  animation: heart 1000ms infinite;
}

body.index .scroll-down .my-icon img {
  display: none;
}

.btn-outline-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1.2em;
  background-color: transparent;
  color: var(--md-accent-fg-color);
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
}

.btn-outline-blue:hover {
  background-color: var(--md-accent-fg-color);
  color: white;
}

body.index .features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.1rem;
}

body.index .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  /* background-color: #f0f0f0; */
  border-radius: 12px;
  padding: 1.5rem;
  transition: background-color 0.3s ease;
}

body.index .feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  /* background-color: #f0f0f0; */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #c9d1d9;
}

body.index .feature-text h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: black;
}

body.index .feature-text p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: darkslategrey;
}

@keyframes heart {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.heart {
  animation: heart 1000ms infinite;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
}

.team-figure {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  margin: 0;
  cursor: pointer;
  background: #fff;
  transition: box-shadow 0.2s;
}

.team-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s;
  display: block;
}

.team-figure .team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(41,98,255,0.75); */
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 20px;
  text-align: center;
}

.team-figure:hover img {
  filter: blur(3px) brightness(0.8);
}

.team-figure:hover .team-overlay {
  opacity: 1;
}

.partner-item img {
  height: 8vh;
  position: relative;
}

.md-typeset pre {
  white-space: pre-wrap;
  /* 保留换行，但允许自动换行 */
  word-break: break-word;
  /* 单词过长时断行 */
}

:root  > * {
  --md-primary-fg-color:        #4e6688;
}

  /* 默认浅色模式 (Light Mode) */
  :root {
    --bg-section-base: transparent;           /* 基础背景 (通常跟随主题默认) */
    --bg-section-alt: #f5f6f8;               /* 交替背景 (浅灰色) */
    --text-title-color: #2e3c50;             /* 标题颜色 */
    --text-desc-color: #555555;              /* 描述文字颜色 */

    /* Hero Section Variables - Light */
    --hero-caption-bg: rgba(169, 183, 195, 0.7);
    --hero-text-color: white;
    --hero-learn-more-color: white;
    --scroll-text-color: darkslategrey;
    --scroll-icon-filter: none;
  }

  /* 深色模式适配 (Dark Mode - Slate) */
  [data-md-color-scheme="slate"] {
    --bg-section-base: transparent;
    --bg-section-alt:rgb(38, 40, 49);               /* 深色模式下的交替背景 (比纯黑稍亮) */
    --text-title-color: #e3e3e3;             /* 标题变白 */
    --text-desc-color: #aebbc9;              /* 描述文字变浅灰 */

    /* Hero Section Variables - Dark */
    --hero-caption-bg: rgba(30, 32, 41, 0.6);
    --hero-text-color: #e3e3e3;
    --hero-learn-more-color: #e3e3e3;
    --scroll-text-color: #aebbc9;
    --scroll-icon-filter: invert(1) brightness(0.9);
  }

  /* 通用 Section 类：用于控制宽度和背景 */
  .section-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 60px 0; /* 上下内边距，让模块呼吸感更强 */
  }

  /* 偶数/奇数背景类 */
  .bg-base {
    background-color: var(--bg-section-base);
  }
  
  .bg-alt {
    background-color: var(--bg-section-alt);
  }

  /* 标题和文字颜色适配 */
  h2, h3, .hero-title, .feature-header p {
    color: var(--text-title-color) !important;
  }
  
  p, .hero-description {
    color: var(--text-desc-color) !important;
  }

  /* 修复 Feature Grid 在深色模式下的显示 */
  .feature-text h3 {
    margin-top: 0;
  }
  
  /* 修复 Team 部分图片文字 */
  .team-overlay {
    color: #fff !important; /* 图片上的文字保持白色 */
  }

  .logo-dark {
    display: none;
  }
  .logo-light {
    display: block;
  }

  /* 深色模式（Slate）：隐藏浅色版，显示深色版 */
  [data-md-color-scheme="slate"] .logo-light {
    display: none;
  }
  [data-md-color-scheme="slate"] .logo-dark {
    display: block;
  }

  /* 移除之前所有的 filter 和背景色补丁 */
  [data-md-color-scheme="slate"] .partner-item {
    background-color: transparent !important;
    padding: 0;
  }
  [data-md-color-scheme="slate"] .partner-item img {
    filter: none !important;
  }