/* ============================================================
   HAMAC Video Hub  /video/  —— 组件样式
   依赖站点样式：/images/css/common.css（header/footer/container/crumb/banner/quote-btn）
   配色沿用站点变量：--red:#D62A29  --dark:#333  --gray:#666
   ============================================================ */

/* ---------- 首屏 banner（站点图做底） ---------- */
.hub-banner {
  position: relative;
  height: 460px;
  background: #1a1c20 url("https://www.hamacglobal.com/images/index/index12.jpg") center / cover no-repeat;
}
.hub-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 18, 22, .92) 0%, rgba(16, 18, 22, .72) 45%, rgba(214, 42, 41, .45) 100%);
}
.hub-banner > .container { position: relative; z-index: 2; height: 100%; }
.hub-banner .text { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 4%; max-width: 1520px; margin: 0 auto; }
.hub-banner .text h1 { color: #fff; font-size: 44px; font-weight: 800; line-height: 1.2; max-width: 900px; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.hub-banner .text h1::after { content: ""; display: block; width: 96px; height: 4px; background: var(--red); margin-top: 18px; }
.hub-banner .text p { color: #fff; font-size: 18px; opacity: .93; max-width: 780px; margin-top: 18px; line-height: 1.6; }
.hub-count { margin-top: 22px; color: #d8dde3; font-size: 15px; }
.hub-count b { color: #fff; }

/* ---------- 分类导航卡 ---------- */
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 34px 0 8px; }
.catcard { display: block; background: #fff; border-bottom: 3px solid transparent; transition: transform .3s, box-shadow .3s, border-color .3s; }
.catcard:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .1); border-bottom-color: var(--red); }
.catcard-img { height: 190px; background: #f2f3f5; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.catcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.catcard:hover .catcard-img img { transform: scale(1.05); }
.catcard-body { padding: 18px 20px 22px; }
.catcard-body h3 { font-size: 19px; margin-bottom: 8px; }
.catcard-body h3::after { content: ""; display: block; width: 40px; height: 3px; background: var(--red); margin-top: 10px; }
.catcard-body p { color: var(--gray); font-size: 14px; line-height: 1.55; margin-top: 10px; }
.catcard-body .catnum { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--red); }

/* ---------- 筛选 ---------- */
.hub { padding: 44px 0 80px; }
.filters { display: flex; gap: 12px; margin: 40px 0 12px; flex-wrap: wrap; }
.fbtn { background: #fff; border: 1px solid #ccc; padding: 9px 24px; font-size: 15px; cursor: pointer; color: #222; font-family: inherit; }
.fbtn:hover, .fbtn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- 视频网格 ---------- */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.vcard { background: #fff; border-top: 3px solid transparent; display: block; transition: transform .3s, box-shadow .3s; }
.vcard:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, .08); border-top-color: var(--red); }
.vcard-img { position: relative; overflow: hidden; background: #111; }
.vcard-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vcard-img .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(214, 42, 41, .92); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; padding-left: 4px; }
.vcard-body { padding: 20px; }
.vcard-body h3 { font-size: 19px; margin: 8px 0 10px; line-height: 1.35; }
.vcard-body h4 { font-size: 16px; margin: 8px 0 0; line-height: 1.4; }
.vcard-body p { color: var(--gray); font-size: 14px; }
.vcat { display: inline-block; background: #f0f0f0; color: #4d4d4d; font-size: 12px; padding: 4px 10px; font-weight: 600; }
.vmeta { display: block; margin-top: 10px; font-size: 13px; color: var(--999); }
.vmeta-line { display: flex; gap: 18px; color: var(--999); font-size: 14px; margin: 14px 0 18px; flex-wrap: wrap; align-items: center; }

/* ---------- 标题 ---------- */
.sec-title { font-size: 26px !important; font-weight: 800; position: relative; padding-left: 16px; margin: 46px 0 20px !important; }
.sec-title::before { content: ""; position: absolute; left: 0; top: .25em; width: 6px; height: 1em; background: var(--red); }

/* ---------- SEO 文本 ---------- */
.seo-block { margin-top: 64px; background: #fff; padding: 40px; }
.seo-block h2 { font-size: 30px; margin-bottom: 18px; }
.seo-block p { color: var(--gray); margin-bottom: 14px; font-size: 16px; }
.seo-block a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 内页 ---------- */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding-bottom: 80px; }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.d-main h1 { font-size: 36px; margin-bottom: 16px; line-height: 1.25; }
.d-main .lead { font-size: 18px; color: var(--gray); margin-bottom: 28px; }
.d-main .lead a, .article a, .faq a, .seo-block a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.article { margin-top: 36px; }
.article p { margin-bottom: 16px; color: var(--gray); font-size: 16px; }
.takeaways { background: #fff; border-left: 4px solid var(--red); padding: 24px 28px; }
.takeaways h2 { font-size: 22px; margin-bottom: 14px; }
.takeaways ul li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--gray); font-size: 15px; }
.takeaways ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--red); }
.faq { margin-top: 40px; background: #fff; padding: 32px; }
.faq-item { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #eee; }
.faq-item:last-child { border-bottom: 0; margin-bottom: 0; }
.faq-item h3 { font-size: 18px; margin-bottom: 8px; }
.faq-item p { color: var(--gray); font-size: 15px; }

/* ---------- 侧栏 ---------- */
.d-side { position: sticky; top: 120px; align-self: start; display: flex; flex-direction: column; gap: 24px; }
.side-box { background: #fff; padding: 24px; border-top: 3px solid var(--red); }
.side-box h3 { font-size: 18px; margin-bottom: 14px; }
.side-box ul li { margin-bottom: 10px; font-size: 15px; line-height: 1.5; }
.side-box ul li a { color: var(--gray); }
.side-box ul li a:hover { color: var(--red); }
.cta-box p { color: var(--gray); font-size: 14px; margin: 10px 0 16px; }
.btn-hamac { display: inline-block; background: var(--red); color: #fff; padding: 9px 20px; font-size: 15px; border: 1px solid var(--red); }
.btn-hamac:hover { background: transparent; color: var(--red); }

/* ---------- 相关视频轮播 ---------- */
.rel-wrap { margin-top: 48px; }
.relSwiper { padding-bottom: 6px; }
.relSwiper .swiper-slide { height: auto; }
.relSwiper .vcard { height: 100%; }

/* ---------- 面包屑 ---------- */
.crumb .container { max-width: 1520px; margin: 0 auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 1540px) { .container { width: 96%; } }
@media (max-width: 1200px) { .catgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) {
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .d-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-box { flex: 1 1 260px; }
}
@media (max-width: 768px) {
  .hub-banner { height: 320px; }
  .hub-banner .text h1 { font-size: 26px; }
  .hub-banner .text p { font-size: 15px; }
  .vgrid, .catgrid { grid-template-columns: 1fr; }
  .d-main h1 { font-size: 26px; }
  .article h2, .faq h2, .seo-block h2 { font-size: 22px; }
  .seo-block { padding: 24px; }
}
