/* ✅ 全站统一字体样式 */
h1, h2, h3, h4, h5, h6, p, a, li, span, div {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  color: #55AEB7;
}

h2 {
  color: #444444;
}

body {
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1.6;
  color: #2bbcc2;
  background-color: #fff;
}


/* ========== 响应式设计基础布局 ========== */

/* ✅ 桌面 + 移动通用：限制宽度容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ✅ 主页布局 */
.page-wrapper {
  display: flex;
  gap: 30px;
  padding: 20px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* ✅ 侧边分类菜单 */
.catalogue-sidebar {
  flex: 1 1 220px;
  background: #fafafa;
  border-right: 1px solid #eee;
  padding: 20px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.catalogue-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.catalogue-menu li {
  margin-bottom: 10px;
}

.catalogue-menu a {
  text-decoration: none;
  color: #333;
}

.catalogue-menu a:hover {
  color: #0077cc;
}

/* ✅ 内容主区域 */
.main-content {
  flex: 3 1 700px;
  padding: 20px;
}


/* ✅ 产品缩略图 */
.product-thumb {
  width: 150px;
  height: 150px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.product-thumb:hover {
  transform: scale(1.03);
}

/* ✅ 产品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  justify-items: center;
}

/* ✅ 产品卡片 */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-card p {
  max-width: 160px;
  margin: 10px auto 0;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

/* ✅ 横幅图片 */
.homepage-banner {
  text-align: center;
  margin: 20px 0;
}
.homepage-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100vw; /* 限制在视口宽度内 */
}

/* ✅ 回到首页按钮 */
.home-circle-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #0077cc;
  color: white;
  font-size: 24px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 999;
}
.home-circle-button:hover {
  background-color: #005fa3;
  transform: scale(1.05);
}

/* ✅ 移动端适配 */
@media (max-width: 768px) {
  .page-wrapper {
    flex-direction: column;
    padding: 10px;
  }

  .main-content, .catalogue-sidebar {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 768px) {
  h1, h2, h3 {
    font-size: 1.2rem;
  }

  .homepage-banner img {
    max-width: 100%;
  }

  footer p {
    font-size: 0.85rem;
  }

  .product-thumb {
    width: 120px;
    height: 120px;
  }

  .product-card p {
    font-size: 0.85rem;
  }
}

.homepage-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 1.5rem;
  color: #222;
}

.homepage-description {
  font-size: 1.1rem;
  margin: 0.5rem 0 2rem;
  color: #666;
}

