/* Happy Customers 图片墙(Pinterest 式原型, ?layout=wall): 全部客户图/视频按原比例瀑布流, 圆角, 悬停显示型号/国家, 无评语文字 */
.hw-page { font-family: "Poppins", "Helvetica Neue", Arial, sans-serif; color: #1f2a37; max-width: 1400px; margin: 0 auto; padding: 0 20px 40px; }
.hw-head { text-align: center; padding: 34px 0 18px; }
.hw-title { margin: 0 0 8px; font-size: 30px; font-weight: 700; }
.hw-sub { margin: 0; font-size: 14.5px; color: #6b7785; }

/* 筛选条: 吸顶 */
.hw-tabs-wrap { position: sticky; top: 0; z-index: 20; background: #fff; padding: 12px 0 14px; }
.hw-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hw-tab { appearance: none; border: 0; border-radius: 999px; background: #f1f4f7; color: #3a4553; font-size: 14px; font-weight: 600; padding: 10px 18px; cursor: pointer; transition: background .15s, color .15s; }
.hw-tab:hover { background: #e3e8ee; }
.hw-tab.is-active { background: #1f2a37; color: #fff; }

/* 瀑布流: JS 分列(最矮列优先), 图原比例 */
.hw-wall { display: flex; gap: 16px; align-items: flex-start; }
.hw-col { flex: 1 1 0; min-width: 0; }
.hw-pin { display: block; width: 100%; margin: 0 0 16px; position: relative; border-radius: 16px; overflow: hidden; background: #eef1f4; }
.hw-pin[hidden] { display: none; }
.hw-pin > a { display: block; width: 100%; background: #eef1f4; }
.hw-pin img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.hw-pin:hover img { transform: scale(1.03); }
.hw-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 28px 12px 10px; font-size: 12.5px; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.6)); opacity: 0; transition: opacity .2s; pointer-events: none; }
.hw-pin:hover .hw-cap, .hw-cap-static { opacity: 1; }
.hw-cap a, .hw-cap span { font-weight: 600; color: #fff !important; pointer-events: auto; text-decoration: none; }
.hw-cap a:hover { text-decoration: underline; }
.hw-cap em { font-style: normal; opacity: .85; }
.hw-pin-video { background: #000; }
.hw-play { display: block; position: relative; }
.hw-play img { width: 100%; height: auto; display: block; }
.hw-play-blank { display: block; aspect-ratio: 16 / 9; background: #1f2a37; }
.hw-play-ico { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.hw-play-ico svg { margin-left: 3px; }
.hw-pin-video:hover .hw-play-ico { background: #00aaee; transform: scale(1.06); }
/* 视频灯箱 */
.hw-lightbox { position: relative; width: 92vw; max-width: 1100px; margin: 0 auto; background: #000; border-radius: 10px; overflow: hidden; }
.hw-lightbox video { display: block; width: 100%; max-height: 82vh; background: #000; }
.hw-lb-cap { margin: 0; padding: 10px 14px; color: #fff; font-size: 13px; background: #111; }
.mfp-inline-holder .mfp-content { max-width: 1100px; }
.hw-pin-video .hw-cap { top: 0; bottom: auto; padding: 10px 12px 26px; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }

/* 评语卡片: 与图片同样的圆角格子, 浅底 */
.hw-quote { display: flex !important; flex-direction: column; gap: 10px; padding: 20px 20px 18px; background: #f4f8fb; border: 1px solid #e3ecf3; }
.hw-q-top { display: flex; justify-content: space-between; align-items: center; }
.hw-stars { display: inline-flex; gap: 2px; }
.hw-q-text { font-size: 14.5px; line-height: 1.7; color: #2f3a48; }
.hw-q-text p { margin: 0 0 6px; }
.hw-q-text p:last-child { margin: 0; }
.hw-long .hw-q-text { max-height: 12em; overflow: hidden; position: relative; }
.hw-long .hw-q-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(rgba(244,248,251,0), #f4f8fb); }
.hw-long.is-open .hw-q-text { max-height: none; }
.hw-long.is-open .hw-q-text::after { display: none; }
.hw-more { appearance: none; border: 0; background: none; padding: 0; align-self: flex-start; font-size: 13px; font-weight: 600; color: #0a8fd0; cursor: pointer; }
.hw-more:hover { text-decoration: underline; }
.hw-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; color: #6b7785; }
.hw-by strong { font-size: 14px; font-weight: 600; color: #1f2a37; }
.hw-q-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.hw-q-photos a { display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #e6ebf0; }
.hw-q-photos a:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.hw-q-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 懒加载哨兵: 滚到附近追加下一批 */
.hw-sentinel { display: flex; justify-content: center; padding: 18px 0 6px; }
.hw-sentinel[hidden] { display: none; }
.hw-spinner { width: 26px; height: 26px; border: 3px solid #e3e8ee; border-top-color: #00aaee; border-radius: 50%; animation: hw-spin .8s linear infinite; }
@keyframes hw-spin { to { transform: rotate(360deg); } }

.hw-foot { text-align: center; padding: 30px 0 10px; }
.hw-foot p { max-width: 640px; margin: 0 auto 14px; font-size: 14.5px; line-height: 1.7; color: #5b6673; }
.hw-cta { display: inline-block; padding: 12px 30px; background: #00aaee; color: #fff !important; font-weight: 600; border-radius: 999px; text-decoration: none !important; }
.hw-cta:hover { background: #0095d1; }

@media (max-width: 767px) {
  .hw-page { padding: 0 10px 30px; }
  .hw-title { font-size: 24px; }
  .hw-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .hw-tabs::-webkit-scrollbar { display: none; }
  .hw-tab { flex: 0 0 auto; font-size: 13px; padding: 8px 14px; }
  .hw-wall { gap: 10px; }
  .hw-pin { margin-bottom: 10px; border-radius: 10px; }
  .hw-cap { opacity: 1; padding: 20px 8px 7px; font-size: 11px; }
}
