@import url('https://cdn.jsdelivr.net/gh/bull58/harmonyos-sans@main/css/harmonyos-sans.css');
/* ==========================================================================
   只在电脑端隐藏首页的侧边栏
   手机端必须保留侧边栏，否则菜单点不开
   ========================================================================== */
@media screen and (min-width: 1300px) {
    .home .md-sidebar--primary,
    .home .md-sidebar[data-md-type="navigation"],
    .home nav[data-md-component="navigation"],
    .home .md-nav--primary,
    .home .md-sidebar__scrollwrap,
    .home .md-sidebar__inner,
    .home .md-sidebar--secondary,
    .home .md-sidebar[data-md-type="toc"],
    .home .md-nav--secondary,
    .home .md-sidebar.md-sidebar--secondary,
    .home div[data-md-component="sidebar"][data-md-type="toc"],
    .home *[class*="toc"],
    .home #sidebar-toggle {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      width: 0 !important;
      pointer-events: none !important;
    }
}

.home .md-main__inner,
.home .md-content,
.home .md-content__inner,
.home .md-container,
.home .md-main,
.home .md-grid {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}


.home .md-content .md-typeset {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.hero-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  
  background-color: #009688;
  
  background: 
    linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.08) 40%),
    linear-gradient(to right, #009688, #00796b);
    
  margin-top: -1.5rem;
  padding-top: 4rem;
  padding-bottom: 2.5rem;
  margin-bottom: 0;
}

.platform-section {
  text-align: center !important;
  max-width: 800px;
  margin: 0 auto !important;
  position: relative;
  z-index: 20;
  padding: 0 1rem;
}

/* 标题文字 */

.platform-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 0.8rem 0;
  line-height: 1.1;
  
  font-family: "HarmonyOS Sans SC", "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  
  letter-spacing: 8px; 
  margin-right: -8px;
  
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* 描述文字 */
.platform-section p {
  font-size: 0.9rem;
  color: #e0f2f1!important;
  margin: 0 auto 1rem auto;
  line-height: 1.6;
  opacity: 1;
   font-family: "HarmonyOS Sans SC", "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  max-width: 900px;
}

/* === 卡片容器 === */
.product-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem; 
  padding: 0 4rem 4rem; 
  max-width: 1600px; 
  margin: 0 auto;
  width: 100%;
  
  margin-top: 4rem; /* 卡片与背景的距离 */
  
  position: relative;
  z-index: 30; 
  background: transparent;
}


/* 响应式调整：确保移动端也不会有缝隙 */
@media (max-width: 768px) {
  .hero-wrapper {
     margin-top: -1.5rem;
     padding-top: 4rem;
     padding-bottom: 3rem;
  }
  .product-cards {
    margin-top: 2rem;
    padding: 0 1.5rem 2rem;
  }
}

/* 美化卡片设计 */
.card {
  background: linear-gradient(135deg, #fdfdfd 0%, #f8f9fa 100%);
  border: 1px solid #eeeeee;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  min-height: 260px;
  height: 370px;
  cursor: pointer;
  user-select: none;
}

/* 卡片颜色定义 */
.card--linux {
  background: linear-gradient(135deg, #fff7f3 0%, #fef4f1 50%, #fdfdfd 100%);
  border: 1px solid #fed7cc;
}
.card--wince {
  background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 50%, #fdfdfd 100%);
  border: 1px solid #c7d9f7;
}
.card--android {
  background: linear-gradient(135deg, #f0fdf4 0%, #e8f8ed 50%, #fdfdfd 100%);
  border: 1px solid #bbf7d0;
}
.card--mc {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #fdfdfd 100%);
  border: 1px solid #d8b4fe;
}

/* 卡片悬停 */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
.card--linux:hover { box-shadow: 0 15px 35px rgba(255, 107, 53, 0.15); border-color: #ffcbbf; }
.card--wince:hover { box-shadow: 0 15px 35px rgba(91, 141, 239, 0.15); border-color: #a5c5f0; }
.card--android:hover { box-shadow: 0 15px 35px rgba(74, 222, 128, 0.15); border-color: #86efac; }
.card--mc:hover { box-shadow: 0 15px 35px rgba(168, 85, 247, 0.15); border-color: #c4b5fd; }

/* 图标样式 */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 0 1.25rem 0;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  background: transparent !important;
}
.card:hover .card-icon { transform: scale(1.08); }
.card h2 {
  text-align: left;
  margin: 0 0 0.75rem 0;
  color: #1a1a1a;
  font-size: 1.125rem;
  font-weight: 600;
}
.card p {
  text-align: left;
  margin: 0 0 1.5rem 0;
  color: #666666;
  font-size: 0.8rem;
  line-height: 1.6;
}

/* 图标背景图 */
.card--linux .card-icon {
    background-image: url("../imgs/linux.svg") !important; 
    background-size: 65px 65px !important; 
    background-repeat: no-repeat;
    background-position: center;
}
.card--wince .card-icon {
    background-image: url("../imgs/wince.svg") !important; 
    background-size: 65px 65px !important; 
    background-repeat: no-repeat;
    background-position: center;
}
.card--android .card-icon {
    background-image: url("../imgs/android.svg") !important; 
    background-size: 65px 65px !important; 
    background-repeat: no-repeat;
    background-position: center;
}
.card--mc .card-icon {
    background-image: url("../imgs/mc.svg") !important; 
    background-size: 65px 65px !important; 
    background-repeat: no-repeat;
    background-position: center;
}

/* 响应式 */
@media (max-width: 1400px) {
  .product-cards { gap: 2rem; padding: 0 3rem 3rem; }
}
@media (max-width: 1024px) {
  .product-cards { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 0 2rem 3rem; }
  .platform-section h1 { font-size: 2.5rem; }
}
/* ==========================================================================
   修正后的手机端样式 (替换原有的 768px 媒体查询)
   ========================================================================== */
@media (max-width: 768px) {
  
  /* 1. 容器改为双列，并减少间距防止拥挤 */
  .product-cards { 
    grid-template-columns: repeat(2, 1fr); /* 核心修改：1列变2列 */
    gap: 15px;                             /* 缩小间距 */
    padding: 0 10px 3rem;                  /* 缩小边缘留白 */
    
  }

  /* 2. 这里的 hero-wrapper 保持你原来的设置不变 */
  .hero-wrapper { 
    padding-top: 2rem; 
    padding-bottom: 4rem; 
    margin-bottom: 0rem; 
  }

  /* 3. 卡片内部瘦身 (因为变成了两列，空间变小了，必须缩小内容) */
  .card {
    padding: 15px !important;    /* 减小内边距 */
    height: auto !important;     /* 高度自适应 */
    min-height: 180px !important;/* 最小高度改小 */
  }

  /* 4. 缩小图标 */
  .card-icon {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 0.8rem !important;
    background-size: 20px 20px !important; /* 背景图同步缩小 */
  }

  /* 5. 缩小文字 */
  .card h2 {
    font-size: 0.95rem !important; /* 标题改小 */
    margin-bottom: 0.4rem !important;
  }
  
  .card p {
    font-size: 0.75rem !important; /* 描述文字改小 */
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
  }
}

.home #busuanzi_container_page_pv,
.home .busuanzi_container_page_pv,
.home #busuanzi_value_page_pv,
.home #busuanzi_container_site_pv,
.home #busuanzi_container_site_uv,
.home span[id^="busuanzi_"] { 
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}



