/* =============================================================
 * index.css —— 首页专属样式（四个区块）
 * 页面全宽自适应，不设固定宽度
 * 区块：banner、文字介绍、图标题列表、视频
 * ============================================================= */

/* 整页容器 —— 全宽，无固定宽度 */
.page-home {
  width: 100%;
  background: #fff;
  position: relative;
}

/* =============================================================
 * 区块一：Banner
 * 全宽背景图 + 9 个 SVG 文字图（3 组，组间有间距）+ 搜索框
 * ============================================================= */
.banner {
  position: relative;
  width: 100%;
  height: 550px;
  background: url('../image/banner-bg.png') center/cover no-repeat;
  overflow: hidden;
}

/* ---- 9 个 SVG 文字图：國有史 邑有誌 家有譜 ---- */
/* 3 组，每组 3 个字；组内字间距小，组间间距大 */
.banner-words {
  position: absolute;
  left: 50%;
  top: 150px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 57px;                    /* 组间距 */
}
.word-group {
  display: flex;
  align-items: center;
  gap: 10px;                    /* 组内字间距 */
}
.word-item {
  height: 120px;                /* 统一高度 */
  max-width: 120px;             /* 限制宽度防止重叠 */
  width: auto;
  display: block;
}

/* ---- 搜索框 ---- */
.banner-search {
  position: absolute;
  left: 50%;
  top: 320px;
  transform: translateX(-50%);
  width: 867px;
  max-width: 90%;
  background: #fff;
  border: 1px solid var(--color-gray);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  padding: 12px 24px;
}
.banner-search-inner {
  display: flex;
  align-items: center;
  gap: 16px;
height: 30px;
margin-bottom: 30px;
}
.banner-search-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}
.banner-search-icon img { width: 100%; height: 100%; }
.banner-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-gray);
  background: transparent;
  height: 100%;
}
.banner-search-input::placeholder {
  color: var(--color-gray);
  font-weight: 400;
}

/* ---- 搜索框底部行：热词靠左 + 按钮靠右 ---- */
.banner-search-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}
.banner-search-btn {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #6F6F6F;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}
.banner-search-btn img {
  width: 13px;
  height: 13px;
}
.banner-search-btn:hover { background: red; }

/* ---- 搜索框内部下方热词 ---- */
.banner-tags {
  display: flex;
  align-items: center;
  gap: 12px;
}
.banner-tags-label {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-gray);
  margin-right: 6px;
}
.banner-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 12px;
  height: 24px;
  border: 1px solid var(--color-gray);
  border-radius: 3px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-gray);
  background: transparent;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.banner-tag:hover {
  background: var(--color-gray);
  color: #fff;
}

/* =============================================================
 * 区块二：山装饰 + 诗句介绍
 * ============================================================= */
.intro {
  position: relative;
  width: 100%;
  padding: 60px 0 80px;
  background: #fff;
}

/* 山+logo 装饰居中，上下排列 */
.intro-deco {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
}
.intro-deco img {
  width: 127px;
  height: 127px;
  display: block;
}

/* 诗句 */
.intro-text {
  max-width: 864px;
  margin: 0 auto;
  color: #000;
  text-align: center;
  font-family: "Noto Serif SC";
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 72px;
}
.intro-text .accent {
  color: #B81C22;
  font-family: "Noto Serif SC";
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 72px;
}

/* =============================================================
 * 区块三：4 个卡片组（图片 + 标题成组，一排四个）
 * ============================================================= */
.cards-grid {
  width: 100%;
  max-width: 1400px;
  margin: 180px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.card-group {
  flex: 1 1 0;
  max-width: 335px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card {
  width: 100%;
  height: 215px;
  border-radius: 10px!important;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  background: #fff;
  position: relative;
  flex: none;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}
/* 白色卡片内的产品图 */
.card.product-image {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card.product-image .card-product {
  display: block;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 10px;
}

/* 卡片标题 */
.card-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  margin: 0;
}

/* =============================================================
 * 区块四：视频区
 * ============================================================= */
.video {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 100px 0 120px;
  padding: 0 20px;
}
.video-frame {
  position: relative;
  width: 100%;
  max-width: 1460px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.video-player {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* 自定义播放按钮：居中红色圆 + 白色三角形 */
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 153px;
  height: 153px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, background .25s ease, opacity .3s ease;
  box-shadow: 0 4px 20px rgba(190, 0, 10, 0.4);
}
.video-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--color-primary-dark);
}
.video-play::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 22px 0 22px 38px;
  border-color: transparent transparent transparent #fff;
  margin-left: 8px;
}
/* 播放中隐藏按钮 */
.video-play.is-playing { opacity: 0; pointer-events: none; }

/* =============================================================
 * 入场动效（与 wow.js / animate.css 配合）
 * ============================================================= */
.wow { visibility: hidden; }

/* =============================================================
 * 响应式
 * ============================================================= */
@media (max-width: 1200px) {
  .banner { height: 700px; }
  .banner-words { top: 230px; gap: 50px; }
  .word-item { height: 90px; }
  .banner-search { top: 380px; }
  .intro-text { font-size: 26px; line-height: 56px; }
  .video-play { width: 120px; height: 120px; }
  .video-play::after { border-width: 18px 0 18px 30px; }
}

@media (max-width: 768px) {
  .banner { height: 600px; }
  .banner-words { top: 112px; gap: 18px; flex-direction: column; }
  .word-group { gap: 8px; }
  .word-item { height: 60px; }
  .banner-search { top: 350px; padding: 10px 14px; width: calc(100% - 40px); max-width: none; }
  .banner-search-inner { height: 40px; gap: 10px; }
  .banner-search-inner { margin-bottom: 26px; }
  .banner-search-input { font-size: 16px; }
  .banner-search-btn { width: 32px; height: 32px; flex: 0 0 32px; }
  .banner-tags { flex-wrap: wrap; gap: 8px; }
  .banner-tags-label { flex: 0 0 100%; }
  .intro-text { font-size: 20px; line-height: 42px; }
  .cards-grid { flex-wrap: wrap; gap: 20px; }
  .card-group { flex: 1 1 45%; max-width: 45%; }
  .card { height: 180px; }
  .card-title { font-size: 18px; }
  .video-play { width: 80px; height: 80px; }
  .video-play::after { border-width: 12px 0 12px 20px; }
}

/* 手机端卡片单列 */
@media (max-width: 480px) {
  .banner { height: 600px; }
  .banner-words { top: 104px; gap: 14px; }
  .word-item { height: 56px; }
  .banner-search { top: 340px; }
  .cards-grid { flex-direction: column; gap: 24px; }
  .card-group { flex: 1 1 100%; max-width: 100%; }
  .card { height: auto; width: 100%; }
  .card-title { font-size: 15px; }
}
