/**
 * PC 首页专用：index.php + Template/Pc/home-main.php
 * 须在 main-pc.css 之后加载（沿用 :root、.wrap、.btn 等基础样式）。
 */

/* 全宽区块使用 100vw 时，vw 含滚动条槽宽度，易比视口内容区略宽而出现横向滚动条 */
@media (min-width: 900px) {
  html:has(.home-pc-main) {
    overflow-x: clip;
  }
}

/* 各区块主标题/副标题与「新闻资讯」一致：深色主标题 + 橙色副标题 */
body.hiwawa .home-pc-main {
  --home-section-title-color: #1a2744;
  --home-section-title-size: clamp(1.28rem, 2.1vw, 1.52rem);
  --home-section-title-weight: 750;
  --home-section-title-spacing: 0.04em;
  --home-section-sub-color: #f66600;
  --home-section-sub-size: clamp(0.82rem, 1.05vw, 0.92rem);
  --home-section-sub-weight: 500;
  --home-section-head-gap: 8px;
}

.hero {
  display: grid;
  gap: 20px;
  background: linear-gradient(120deg, #ffeef6 0%, #f0e7ff 45%, #e8f4ff 100%);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
}

.hero--banner {
  padding: 0;
  min-height: 180px;
  background-image: var(--hero-bg-mobile);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: none;
  filter: none;
  -webkit-filter: none;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.hero--banner:active {
  cursor: grabbing;
}

@media (max-width: 899px) {
  body.hiwawa .main--flush-banner-top {
    padding-top: 0;
    margin-top: 0;
  }

  body.hiwawa .main--flush-banner-top > .wrap {
    margin-top: 0;
    padding-top: 0;
  }

  body.hiwawa .main--flush-banner-top .hero.hero--banner {
    margin-block-start: 0;
    
    margin-top: -2px;
    padding-top: 0;
  }

  .hero--banner {
    min-height: 40vh;
    height: 40vh;
    min-height: 40dvh;
    height: 40dvh;
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
    max-width: none;
    border-radius: 0;
  }
}

/* PC 首页 Hero：左 2 / 右 3 分栏 + 轮播入场动画 */
.hero--banner.hero--banner-split {
  display: block;
  background-image: none;
  background: var(--bg);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  min-height: 580px;
  align-items: stretch;
}

.hero-split__left {
  display: flex;
  align-items: stretch;
  padding: clamp(36px, 5vw, 60px) clamp(22px, 3.5vw, 44px) clamp(40px, 5vw, 56px);
  position: relative;
  z-index: 2;
}

.hero-split__copy {
  max-width: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 10px;
  --hero-copy-nudge: clamp(16px, 3.5vw, 36px);
  will-change: opacity, transform;
  transition: opacity 0.26s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-split__copy.hero-split__copy--leave {
  opacity: 0;
  transform: translateY(10px);
}

/* 标签：无盒装，圆点 + 文案（避免边框/渐变块显廉价） */
.hero-split__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 24px;
  padding: 8px 14px 8px 12px;
  font-size: clamp(0.74rem, 0.92vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  color: #9a3412;
  background: linear-gradient(135deg, #fff8f1 0%, #ffe9d7 100%);
  border: 1px solid rgba(246, 110, 36, 0.3);
  border-radius: 999px;
  line-height: 1.3;
  box-shadow:
    0 10px 24px rgba(248, 115, 37, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-split__tag::before {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 20%, #ff8d40 24%, #f85f00 100%);
  box-shadow: 0 0 0 3px rgba(248, 115, 37, 0.16);
}

.hero-split__title {
  font-size: var(--home-section-title-size);
  font-weight: var(--home-section-title-weight);
  line-height: 1.22;
  color: var(--home-section-title-color);
  margin: 0 0 26px;
  letter-spacing: var(--home-section-title-spacing);
}

.hero-split__desc {
  font-size: var(--home-section-sub-size);
  font-weight: var(--home-section-sub-weight);
  line-height: 1.62;
  color: var(--home-section-sub-color);
  margin: 0 0 10px;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.hero-split__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 36px;
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.32);
  position: relative;
  z-index: 3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-split__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.38);
}

.hero-split__btn[hidden] {
  display: none !important;
}

.hero-split__right {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 0 20px 20px 0;
  background: var(--bg);
}

.hero-split__media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  --hero-media-nudge: clamp(12px, 2.5vw, 28px);
  isolation: isolate;
}

.hero-split__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  opacity: 0;
  transform: translateX(28px) scale(1.018);
  filter: blur(6px);
  will-change: opacity, transform, filter;
  transition:
    opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.96s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.82s ease;
}

.hero-split__img.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
  z-index: 2;
}

/* 轮播指示点 */
.hero-split__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.hero-split__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

.hero-split__dot.is-active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
  transform: scale(1);
}

/* 初始/淡出态：标签自上、标题自左、描述与按钮自下；右侧图自最右 */
.hero-split__copy:not(.hero-split__copy--enter) .hero-split__tag:not([hidden]) {
  opacity: 0;
  transform: translateY(calc(-100% - var(--hero-copy-nudge)));
}

.hero-split__copy:not(.hero-split__copy--enter) .hero-split__title:not([hidden]) {
  opacity: 0;
  transform: translateX(calc(-100% - var(--hero-copy-nudge)));
}

.hero-split__copy:not(.hero-split__copy--enter) .hero-split__desc:not([hidden]) {
  opacity: 0;
  transform: translateY(calc(100% + var(--hero-copy-nudge)));
}

.hero-split__copy:not(.hero-split__copy--enter) .hero-split__btn:not([hidden]) {
  opacity: 0;
  transform: translateY(calc(100% + var(--hero-copy-nudge)));
}

.hero-split__media:not(.hero-split__media--enter) .hero-split__img:not(.is-active) {
  opacity: 0;
}

@keyframes heroPcTagFromTop {
  from {
    opacity: 0;
    transform: translateY(calc(-100% - var(--hero-copy-nudge)));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPcTitleFromLeft {
  from {
    opacity: 0;
    transform: translateX(calc(-100% - var(--hero-copy-nudge)));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroPcDescFromBottom {
  from {
    opacity: 0;
    transform: translateY(calc(100% + var(--hero-copy-nudge)));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPcBtnFromBottom {
  from {
    opacity: 0;
    transform: translateY(calc(100% + var(--hero-copy-nudge)));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPcMediaFromRight {
  from {
    opacity: 0;
    transform: translateX(calc(100% + var(--hero-media-nudge)));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* both：delay 期间保持 keyframes「from」，避免在终点姿态闪一帧 */
.hero-split__copy--enter .hero-split__tag:not([hidden]) {
  animation: heroPcTagFromTop 0.92s cubic-bezier(0.22, 1, 0.36, 1) 0s 1 normal both;
}

.hero-split__copy--enter .hero-split__title:not([hidden]) {
  animation: heroPcTitleFromLeft 0.96s cubic-bezier(0.22, 1, 0.36, 1) 0.18s 1 normal both;
}

.hero-split__copy--enter .hero-split__desc:not([hidden]) {
  animation: heroPcDescFromBottom 0.96s cubic-bezier(0.22, 1, 0.36, 1) 0.34s 1 normal both;
}

.hero-split__copy--enter .hero-split__btn:not([hidden]) {
  animation: heroPcBtnFromBottom 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.52s 1 normal both;
}

.hero-split__media--enter .hero-split__img {
  transition: none;
  filter: none;
}

.hero-split__media--enter .hero-split__img.is-active {
  animation: heroPcMediaFromRight 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.14s 1 normal both;
}

@media (max-width: 899px) {
  .hero--banner.hero--banner-split {
    min-height: 0;
    height: auto;
    border-radius: 0;
  }

  .hero-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-split__right {
    min-height: 220px;
    order: -1;
    border-radius: 0;
  }

  .hero-split__left {
    padding: 24px 18px 28px;
  }

  .hero-split__copy {
    min-height: 0;
    justify-content: center;
    padding-top: 0;
  }

  .hero-split__dots {
    bottom: 12px;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .hero--banner {
    min-height: 380px;
    grid-template-columns: 1fr;
    padding: 0;
    background-image: var(--hero-bg-pc, var(--hero-bg-mobile));
  }

  .hero--banner.hero--banner-split {
    min-height: 400px;
    background-image: none;
  }
}

@media (min-width: 900px) {
  .hero:not(.hero--banner) {
    grid-template-columns: 1fr 220px;
    align-items: center;
    padding: 32px 36px;
  }
}

.hero__tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.15);
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #2d2d3a;
}

.hero__desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__cta .btn--primary {
  color: #fff;
}

.hero__cta .btn--outline {
  color: var(--brand);
  border-color: rgba(255, 107, 53, 0.45);
  background: rgba(255, 255, 255, 0.65);
}

.hero__art {
  min-height: 120px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 107, 53, 0.2), rgba(255, 159, 28, 0.25));
  position: relative;
  overflow: hidden;
}

.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='45' r='18' fill='%23fff' opacity='.4'/%3E%3Cpath d='M25 72 L42 58 L55 68 L75 48 L75 72 L25 72Z' fill='%23fff' opacity='.3'/%3E%3C/svg%3E")
    center / 90px no-repeat;
}

/* 平台保障卡片 */
.trust-badges {
  margin: 14px 0 10px;
  padding: 18px 24px;
  border-radius: var(--radius, 16px);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.trust-badges__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trust-badges__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  position: relative;
}

.trust-badges__item + .trust-badges__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: var(--border, rgba(0, 0, 0, 0.06));
}

.trust-badges__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-size: 22px;
  line-height: 1;
}

.trust-badges__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.trust-badges__title {
  font-size: var(--home-section-title-size);
  font-weight: var(--home-section-title-weight);
  color: var(--home-section-title-color);
  letter-spacing: var(--home-section-title-spacing);
  line-height: 1.3;
}

.trust-badges__desc {
  font-size: var(--home-section-sub-size);
  font-weight: var(--home-section-sub-weight);
  color: var(--home-section-sub-color);
  line-height: 1.45;
}

@media (max-width: 899px) {
  .trust-badges {
    margin: 10px -10px;
    width: calc(100% + 20px);
    border-radius: 0;
    padding: 14px 16px;
    box-shadow: none;
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.06));
  }

  .trust-badges__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 0;
  }

  .trust-badges__item:nth-child(odd)::before {
    display: none;
  }

  .trust-badges__item:nth-child(n+3) {
    border-top: 1px solid var(--border, rgba(0, 0, 0, 0.04));
    padding-top: 12px;
  }

  .trust-badges__icon {
    width: 24px;
    height: 24px;
    font-size: 18px;
  }

}

/* 经典案例（仅 PC 首页模板；窄屏再隐藏以防误用 PC 样式表） */
.classic-cases {
  margin: 16px 0 12px;
  padding: 26px 28px 30px;
  border-radius: var(--radius, 16px);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.classic-cases__head {
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--home-section-head-gap);
}

.classic-cases__title {
  text-align: center;
  font-size: var(--home-section-title-size);
  font-weight: var(--home-section-title-weight);
  margin: 0;
  width: 100%;
  color: var(--home-section-title-color);
  letter-spacing: var(--home-section-title-spacing);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.classic-cases__sub {
  margin: 0;
  max-width: 36em;
  font-size: var(--home-section-sub-size);
  font-weight: var(--home-section-sub-weight);
  line-height: 1.55;
  color: var(--home-section-sub-color);
  text-align: center;
  letter-spacing: 0.02em;
}

.classic-cases__title::before,
.classic-cases__title::after {
  content: "";
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.14), transparent);
}

.classic-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

.classic-cases__cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.classic-cases__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

a.classic-cases__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.classic-cases__thumb {
  width: 100%;
  aspect-ratio: 1;
  background: #e2e8f0;
  overflow: hidden;
}

.classic-cases__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.classic-cases__caption {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 899px) {
  .classic-cases {
    display: none !important;
  }

  .home-rec-star {
    display: none !important;
  }

  .home-pc-news {
    display: none !important;
  }
}

/*
 * PC 首页「明星推荐」马赛克：18 格固定布局，总高 708px。
 * 版心 1280px 时：
 *   左列 2col | 中左 4col 小格列 | 中心红标题+大图 | 中右 4col 小格列 | 右列 2col
 * 行高按 6 等分 708px ≈ 每行 118px，间距 5px。
 */
.home-rec-star {
  margin: 20px 0 28px;
  padding: 0;
}

.home-rec-star__section-head {
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--home-section-head-gap);
}

.home-rec-star__section-title {
  text-align: center;
  font-size: var(--home-section-title-size);
  font-weight: var(--home-section-title-weight);
  margin: 0;
  width: 100%;
  color: var(--home-section-title-color);
  letter-spacing: var(--home-section-title-spacing);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.home-rec-star__section-sub {
  margin: 0;
  max-width: 36em;
  font-size: var(--home-section-sub-size);
  font-weight: var(--home-section-sub-weight);
  line-height: 1.55;
  color: var(--home-section-sub-color);
  text-align: center;
  letter-spacing: 0.02em;
}

.home-rec-star__section-title::before,
.home-rec-star__section-title::after {
  content: "";
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.14), transparent);
}

.home-rec-star__grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 2fr 2fr 2fr 2fr 2fr;
  grid-template-rows: repeat(6, 1fr);
  gap: 5px;
  height: 708px;
  max-height: 708px;
  overflow: hidden;
}

/* 标题红块：中间偏上 */
.home-rec-star__head {
  grid-row: 1 / 3;
  grid-column: 3 / 5;
  margin: 0;
  padding: 22px 24px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(145deg, #e11d48 0%, var(--brand) 48%, #c2410c 100%);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.28);
  z-index: 2;
}

.home-rec-star__head-line {
  display: block;
  width: 36px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  border-radius: 1px;
}

.home-rec-star__head-en {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.15;
}

.home-rec-star__head-zh {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  opacity: 0.92;
}

/* 通用卡片样式 */
.home-rec-star__cell {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #e8eaef;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

a.home-rec-star__cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  z-index: 3;
}

.home-rec-star__cell--empty {
  background: linear-gradient(160deg, #f1f2f6 0%, #e8eaf0 100%);
  pointer-events: none;
  box-shadow: none;
}

.home-rec-star__media {
  display: block;
  width: 100%;
  height: 100%;
}

.home-rec-star__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.home-rec-star__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px 10px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #fff;
  letter-spacing: 0.04em;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.55) 38%, rgba(15, 23, 42, 0.88) 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

a.home-rec-star__cell:hover .home-rec-star__cap,
a.home-rec-star__cell:focus-visible .home-rec-star__cap {
  opacity: 1;
  transform: translateY(0);
}

/*
 * 18 个固定格子位置（6 列 × 6 行，间距 4px）
 * s01 = 第 1 名中心大图（3×4）
 * s02 = 第 2 名左 C 位竖图（1×3）
 * s03 = 第 3 名右 C 位竖图（1×3）
 * s04–s18 = 其余小格
 */

/* 第 1 名：中心大图 col3-4 row3-6（下半中心） */
.home-rec-star__cell--s01 { grid-row: 3 / 7; grid-column: 3 / 5; }

/* 第 2 名：左 C 位竖图 col1 row2-4 */
.home-rec-star__cell--s02 { grid-row: 2 / 5; grid-column: 1 / 2; }

/* 第 3 名：右 C 位竖图 col6 row1-3 */
.home-rec-star__cell--s03 { grid-row: 1 / 4; grid-column: 6 / 7; }

/* 小格（各占 1×1 除非注明） */
.home-rec-star__cell--s04 { grid-row: 1 / 2; grid-column: 1 / 2; }
.home-rec-star__cell--s05 { grid-row: 1 / 2; grid-column: 2 / 3; }
.home-rec-star__cell--s06 { grid-row: 2 / 3; grid-column: 2 / 3; }
.home-rec-star__cell--s07 { grid-row: 3 / 4; grid-column: 2 / 3; }
.home-rec-star__cell--s08 { grid-row: 4 / 5; grid-column: 2 / 3; }
.home-rec-star__cell--s09 { grid-row: 1 / 2; grid-column: 5 / 6; }
.home-rec-star__cell--s10 { grid-row: 2 / 3; grid-column: 5 / 6; }
.home-rec-star__cell--s11 { grid-row: 3 / 4; grid-column: 5 / 6; }
.home-rec-star__cell--s12 { grid-row: 4 / 5; grid-column: 5 / 6; }
.home-rec-star__cell--s13 { grid-row: 5 / 6; grid-column: 1 / 2; }
.home-rec-star__cell--s14 { grid-row: 6 / 7; grid-column: 1 / 2; }
/* s15：占第 5–6 行第 2 列，补上原布局遗漏的 (6,2) 格，与 s17 对称 */
.home-rec-star__cell--s15 { grid-row: 5 / 7; grid-column: 2 / 3; }
.home-rec-star__cell--s16 { grid-row: 4 / 5; grid-column: 6 / 7; }
.home-rec-star__cell--s17 { grid-row: 5 / 7; grid-column: 5 / 6; }
.home-rec-star__cell--s18 { grid-row: 5 / 7; grid-column: 6 / 7; }

/* s01 大图名字条加大字号 */
.home-rec-star__cell--s01 .home-rec-star__cap {
  font-size: 0.92rem;
  padding: 14px 16px 16px;
}

/* s02/s03 C 位竖图 */
.home-rec-star__cell--s02 .home-rec-star__cap,
.home-rec-star__cell--s03 .home-rec-star__cap {
  font-size: 0.84rem;
}

.home-rec-star__more-wrap {
  margin: 16px 0 0;
  text-align: center;
}

.home-rec-star__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--brand);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 53, 0.4);
  background: rgba(255, 255, 255, 0.95);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.home-rec-star__more:hover {
  background: rgba(255, 107, 53, 0.08);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.15);
}

/* 首页三栏新闻（hitemp 式，仅 PC） */
.home-pc-news {
  margin: 20px 0 16px;
  padding: 30px 26px 34px;
  border-radius: var(--radius, 16px);
  background: linear-gradient(180deg, #f6f7fa 0%, #eceef4 100%);
  box-shadow: var(--shadow);
}

.home-pc-news__head {
  text-align: center;
  margin: 0 0 22px;
}

.home-pc-news__title {
  margin: 0 0 var(--home-section-head-gap);
  width: 100%;
  text-align: center;
  font-size: var(--home-section-title-size);
  font-weight: var(--home-section-title-weight);
  color: var(--home-section-title-color);
  letter-spacing: var(--home-section-title-spacing);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  box-sizing: border-box;
}

.home-pc-news__title::before,
.home-pc-news__title::after {
  content: "";
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.14), transparent);
}

.home-pc-news__subtitle {
  margin: 0;
  font-size: var(--home-section-sub-size);
  font-weight: var(--home-section-sub-weight);
  color: var(--home-section-sub-color);
  letter-spacing: 0.02em;
}

.home-pc-news__grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.home-pc-news__col {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-pc-news__col-cap {
  margin: 0;
  padding: 12px 16px;
  font-size: 0.94rem;
  font-weight: 750;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 6px 6px 0 0;
  flex-shrink: 0;
}

.home-pc-news__col-body {
  padding: 4px 0 6px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-pc-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.home-pc-news__item {
  margin: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.home-pc-news__item:last-child {
  border-bottom: none;
}

.home-pc-news__row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  text-decoration: none;
  color: inherit;
  min-height: 42px;
  box-sizing: border-box;
  transition: background 0.18s ease;
}

.home-pc-news__row:hover {
  background: rgba(255, 107, 53, 0.06);
}

.home-pc-news__rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 780;
  line-height: 1;
  flex-shrink: 0;
}

.home-pc-news__rank--top {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.home-pc-news__rank--rest {
  background: #c9ccd6;
  color: #fff;
}

.home-pc-news__row-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: #334155;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-pc-news__row-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-pc-news__row-views .fa-eye {
  opacity: 0.88;
  font-size: 0.82rem;
}

.home-pc-news__col-more {
  margin: 0;
  padding: 2px 14px 12px;
  text-align: right;
}

.home-pc-news__more-link {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--brand);
  text-decoration: none;
}

.home-pc-news__more-link:hover {
  text-decoration: underline;
}

@media (max-width: 1000px) {
  .home-pc-news__grid {
    grid-template-columns: 1fr !important;
  }
}

.home-bg-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body.hiwawa .main--flush-banner-top .hero.hero--banner {
  z-index: 1;
  
  margin-bottom: 0;
}

body.hiwawa .main--flush-banner-top .home-bg-card {
  position: relative;
  z-index: 2;
}

.main--flush-banner-top > .wrap > .home-bg-card.home-bg-card--overlap {
  --home-banner-overlap: 10px;
  margin-top: calc(-1 * var(--home-banner-overlap));
  padding-top: 0;
}

.main--flush-banner-top > .wrap > .home-bg-card.home-bg-card--overlap > .member-promo-card:first-child {
  position: relative;
  z-index: 1;
}

@media (max-width: 899px) {
  

  body.hiwawa .main > .wrap > .home-bg-card {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    border-radius: 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-sizing: border-box;
  }
}

.home-bg-card .member-promo-card {
  margin: 0;
  width: 100%;
  max-width: none;
}

.home-bg-card .member-promo-split {
  margin: 0;
  width: 100%;
  padding: 0;
}

/* —— PC 首页：纵向分段 + 全宽渐变带，弱化四边「盒装」感（仅 .home-pc-main） —— */
@media (min-width: 900px) {
  body.hiwawa .home-pc-main.main {
    padding-bottom: 0px;
  }

  /*
   * Hero：全宽横幅 + 渐变直接画在区块上（避免伪元素 100vw 与 overflow 裁切导致左右与 body 底色硬接缝）
   */
  body.hiwawa .home-pc-main > .wrap > .hero.hero--banner.hero--banner-split {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
    background:
      linear-gradient(112deg, #fff8f4 0%, #f5f0ff 38%, #eef4ff 72%, #f3f6fb 100%);
    box-sizing: border-box;
  }

  body.hiwawa .home-pc-main > .wrap > .hero.hero--banner.hero--banner-split .hero-split {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-gutter-x);
    padding-right: var(--page-gutter-x);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
  }

  body.hiwawa .home-pc-main > .wrap .hero-split__left {
    background: transparent;
  }

  body.hiwawa .home-pc-main > .wrap .hero-split__right {
    border-radius: 0;
    background: transparent;
  }

  /* 平台保障 */
  body.hiwawa .home-pc-main > .wrap > .trust-badges {
    position: relative;
    z-index: 0;
    margin: 0;
    padding: 32px 0 30px;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  body.hiwawa .home-pc-main > .wrap > .trust-badges::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(247, 248, 252, 0.96) 45%, rgba(241, 243, 249, 0.75) 100%);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    pointer-events: none;
  }

  /* 经典案例 */
  body.hiwawa .home-pc-main > .wrap > .classic-cases {
    position: relative;
    z-index: 0;
    margin: 0;
    padding: 38px 0 42px;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  body.hiwawa .home-pc-main > .wrap > .classic-cases::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    background: linear-gradient(188deg, rgba(255, 252, 248, 0.95) 0%, rgba(238, 244, 255, 0.55) 52%, rgba(245, 246, 250, 0.92) 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.045);
    pointer-events: none;
  }

  /* 明星推荐马赛克（紧随经典案例） */
  body.hiwawa .home-pc-main > .wrap > .home-rec-star {
    position: relative;
    z-index: 0;
    margin: 0;
    padding: 36px 0 40px;
    background: transparent;
  }

  body.hiwawa .home-pc-main > .wrap > .home-rec-star::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    background: linear-gradient(185deg, rgba(255, 250, 252, 0.97) 0%, rgba(244, 246, 252, 0.88) 45%, rgba(245, 246, 250, 0.95) 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    pointer-events: none;
  }

  body.hiwawa .home-pc-main > .wrap > .home-rec-star > * {
    position: relative;
    z-index: 1;
  }

  /* 首页三栏新闻：全宽底条 */
  body.hiwawa .home-pc-main > .wrap > .home-pc-news {
    position: relative;
    z-index: 0;
    margin: 0;
    padding: 36px 0 40px;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  body.hiwawa .home-pc-main > .wrap > .home-pc-news::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    background: linear-gradient(180deg, #f0f2f7 0%, #e8ebf2 48%, #eef0f6 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.045);
    pointer-events: none;
  }

  body.hiwawa .home-pc-main > .wrap > .home-pc-news > * {
    position: relative;
    z-index: 1;
  }

}
