/* 首页主图区 + 卖点条（2026-11-04）。模板 common/tpl_home_hero.php；
   只在首页由 common/html_header.php 加载（zc_css_link 带 ?v=filemtime）。
   结构仿 artisoo 的 .artisoo-hero，配色改为本站蓝 #379adc / #1e71a9。 */

/* 首页原本是「透明页头叠在全宽轮播上」（main.css header.header-style-1 absolute）。
   换成主图区后，页头改回与内页一致的正常文档流 + 深色导航（同 tpl_template_custom_css.php 的 !$this_is_home_page 分支）。 */
body header.header-style-1 { position: relative; }
body header.header-style-1 .header-nav { margin-top: 0; }
body header.header-style-1 .header-nav .navbar { background: rgba(0, 0, 0, 0.88) none repeat scroll 0 0; }

.home-hero { padding: 24px 0 0; }
.home-hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 40vw, 540px);
  border-radius: 6px;
  overflow: hidden;
  background: #eef1f3;
}
.home-hero__media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.home-hero__media picture, .home-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 70% 30%;
}
.home-hero__inner:after {            /* 左侧提亮，保证文字对比度，不遮右侧画作 */
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, rgba(248, 249, 249, .86) 0%, rgba(248, 249, 249, .6) 34%, rgba(248, 249, 249, 0) 54%);
  pointer-events: none;
}
.home-hero__text {
  position: relative;
  z-index: 1;
  width: 42%;                 /* 主图里画框左缘约在 44%（677/1536），文案列不能越过它；西语文案较长时 48% 会压到画框 */
  max-width: 540px;
  padding: 40px 0 40px 48px;
}
.home-hero .home-hero__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.18;
  color: #1f2a33;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 20px;
  padding: 0 0 18px;
  position: relative;
  border: 0;
}
.home-hero .home-hero__title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: #379adc;
}
.home-hero__points { list-style: none; margin: 0 0 28px; padding: 0; }
.home-hero__points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: #2f3b45;
  list-style: none;
}
.home-hero__points li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 7px;
  height: 7px;
  background: #379adc;
  transform: rotate(45deg);
}
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero a.home-hero__btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.home-hero a.home-hero__btn--solid, .home-hero a.home-hero__btn--solid:visited { background: #379adc; color: #fff; padding: 14px 32px; font-size: 15px; box-shadow: 0 4px 14px rgba(30, 113, 169, .25); }
.home-hero a.home-hero__btn--solid:hover, .home-hero a.home-hero__btn--solid:focus { background: #1e71a9; color: #fff; text-decoration: none; }
.home-hero a.home-hero__btn--ghost, .home-hero a.home-hero__btn--ghost:visited { background: rgba(255, 255, 255, .7); color: #1e71a9; box-shadow: inset 0 0 0 1px #1e71a9; }
.home-hero a.home-hero__btn--ghost:hover, .home-hero a.home-hero__btn--ghost:focus { background: #1e71a9; color: #fff; text-decoration: none; }
.home-hero a.home-hero__btn:focus-visible { outline: 2px solid #f3c200; outline-offset: 2px; }

@media (max-width: 1199px) {
  .home-hero .home-hero__title { font-size: 32px; }
}
@media (max-width: 991px) {
  .home-hero { padding-top: 16px; }
  .home-hero__inner { flex-direction: column; align-items: stretch; min-height: 0; background: transparent; overflow: visible; }
  .home-hero__inner:after { display: none; }
  .home-hero__media { position: static; order: -1; }      /* 图在上、文案在下 */
  .home-hero__media img { height: auto; aspect-ratio: 3 / 2; object-position: 75% 30%; border-radius: 6px; }
  .home-hero__text { width: auto; max-width: none; padding: 20px 0 0; }
  .home-hero .home-hero__title { font-size: 27px; }
  .home-hero__points li { font-size: 15px; }
  .home-hero a.home-hero__btn--ghost, .home-hero a.home-hero__btn--ghost:visited { background: transparent; }
}
@media (max-width: 767px) {
  .home-hero .home-hero__title { font-size: 24px; margin-bottom: 14px; padding-bottom: 12px; }
  .home-hero__points { margin-bottom: 18px; }
  .home-hero__points li { font-size: 14px; margin-bottom: 6px; }
  .home-hero__actions { flex-direction: column; gap: 10px; }
  .home-hero a.home-hero__btn { display: block; width: 100%; text-align: center; }
  .home-hero a.home-hero__btn--solid { padding: 15px 20px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .home-hero a.home-hero__btn { transition: none; } }

/* 卖点条 */
.home-trust-bar {
  background: #f7fbfd;
  border-top: 1px solid #d9e9f3;
  border-bottom: 1px solid #d9e9f3;
  padding: 16px 0;
  margin: 24px 0 30px;
}
.home-trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.home-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
}
.home-trust-item__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: #379adc;
  flex-shrink: 0;
}
.home-trust-item__icon svg { width: 100%; height: 100%; }
.home-trust-item__text {
  font-size: 14px;
  font-weight: 500;
  color: #2f3b45;
  line-height: 1.35;
}
@media (max-width: 991px) {
  .home-trust-bar { margin: 16px 0 24px; padding: 14px 0; }
  .home-trust-bar__inner { display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 14px; column-gap: 16px; }
  .home-trust-item { justify-content: flex-start; }
  .home-trust-item__text { font-size: 13px; }
}
