Test 11

yida
2025-07-14 12:26

<section class="card-section">
  <div class="section-title">模块标题</div>
  <div class="card-container">

    <!-- 卡片开始 -->
    <div class="card">
      <img src="图片路径" alt="描述">
      <h3>标题<br><span>Title</span></h3>
      <p>描述文字</p>
      <a href="#">详情 →</a>
    </div>
    <!-- 卡片结束 -->

    <!-- 如需添加更多卡片,复制上面结构粘贴 -->

  </div>
</section>

<style>
.card-section {
  text-align: center;
  padding: 40px 20px;
}
.section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 32px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  padding: 20px;
  width: 260px;
}
.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}
.card h3 {
  margin-top: 16px;
  font-size: 18px;
}
.card h3 span {
  font-size: 14px;
  color: #666;
}
.card p {
  font-size: 14px;
  color: #666;
  margin: 8px 0;
}
.card a {
  text-decoration: none;
  color: #2a6cf4;
  font-size: 14px;
}
</style>