/* ============================================================
   首页改版 · 样片视频优先 + 视觉升级
   仅作用于 <body class="home-page">，不影响其它页面；可整段删除回滚
   ============================================================ */
.home-page { background: #FAF7F1; }

/* ---------- 导航 ---------- */
.home-page .site-header {
  background: rgba(255, 252, 246, .94);
  border-bottom: 1px solid rgba(201, 162, 39, .22);
  box-shadow: 0 2px 18px rgba(94, 31, 23, .05);
}
.home-page .site-header .inner { height: 74px; }
.home-page .brand .brand-logo { height: 46px; }
.home-page .brand .name { font-size: 20px; letter-spacing: 3px; }
.home-page .nav-links { gap: 22px; font-size: 14.5px; }
.home-page .nav-links a.active::after { height: 2px; bottom: -4px; }

/* ---------- Hero ---------- */
.home-page .hero {
  background:
    radial-gradient(900px 430px at 80% 4%, rgba(232, 206, 122, .22), transparent 62%),
    radial-gradient(720px 520px at 6% 100%, rgba(201, 162, 39, .18), transparent 60%),
    linear-gradient(118deg, #6B1F17 0%, #8E2C21 46%, #B03A2E 100%);
}
.home-page .hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent, #000 55%, #000);
  font-size: 0;
}
.home-page .hero::after {
  content: "❋";
  position: absolute; right: -3%; top: -18%;
  font-size: 340px; line-height: 1; color: rgba(232, 206, 122, .07);
  transform: rotate(16deg); pointer-events: none;
}
.home-page .hero .inner.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 52px; align-items: center;
  padding: 64px 0 72px;
}
.hero-copy { position: relative; z-index: 2; }
.home-page .hero .eyebrow {
  font-size: 13px; letter-spacing: 2px; padding: 7px 18px;
  background: rgba(232, 206, 122, .10);
  border: 1px solid rgba(232, 206, 122, .48);
  backdrop-filter: blur(6px);
}
.home-page .hero h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.3; letter-spacing: 2px; max-width: 620px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .22);
}
.home-page .hero h1 .gold {
  background: linear-gradient(100deg, #F7E4A6, #E8CE7A 45%, #C9A227);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-page .hero p.sub {
  font-size: 16px; letter-spacing: .6px; max-width: 520px;
  margin: 20px 0 34px; color: rgba(255, 255, 255, .86);
  line-height: 1.9;
}
.home-page .hero .cta { gap: 14px; }
.home-page .hero .cta .btn-lg { padding: 14px 30px; font-size: 16px; }
.home-page .hero .btn-gold {
  background: linear-gradient(135deg, #E8CE7A, #C9A227 58%, #B8912A);
  color: #4A2A12; font-weight: 700;
  box-shadow: 0 10px 28px rgba(20, 8, 4, .28), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.home-page .hero .btn-ghost {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
}
.home-page .hero .stats {
  display: flex; gap: 0; margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 20px; max-width: 480px;
}
.home-page .hero .stat { flex: 1; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .16); }
.home-page .hero .stat:first-child { padding-left: 0; border-left: none; }
.home-page .hero .stat b {
  font-size: 27px; letter-spacing: 1px;
  background: linear-gradient(100deg, #F7E4A6, #E8CE7A);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.home-page .hero .stat span { font-size: 12px; letter-spacing: 1.5px; color: rgba(255, 255, 255, .68); }

/* ---------- 主推样片视频 ---------- */
.hero-showcase { position: relative; z-index: 2; }
.showcase-frame {
  position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden;
  background: radial-gradient(600px 300px at 70% 20%, rgba(201, 162, 39, .22), transparent 65%), #1A0B08;
  border: 1px solid rgba(232, 206, 122, .55);
  box-shadow: 0 30px 70px rgba(28, 8, 4, .48), 0 0 0 8px rgba(255, 255, 255, .055);
}
.showcase-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .35);
}
.showcase-frame video, .showcase-frame .showcase-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.showcase-frame video { z-index: 1; }
.showcase-frame .showcase-poster {
  z-index: 0; background-size: cover; background-position: center;
  background-image: radial-gradient(circle at 30% 30%, rgba(201, 162, 39, .35), transparent 60%),
                    linear-gradient(140deg, #6B1F17, #2A0E0A);
}
.showcase-top {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(20, 8, 5, .48); backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 206, 122, .35);
  color: #F7E4A6; font-size: 11px; letter-spacing: 2px;
}
.showcase-top .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #E8CE7A;
  box-shadow: 0 0 10px #E8CE7A; animation: scPulse 1.8s infinite;
}
@keyframes scPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.showcase-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 34px 18px 16px;
  background: linear-gradient(transparent, rgba(16, 5, 3, .86));
}
.sc-info b { display: block; font-family: var(--serif); font-size: 17px; color: #fff; letter-spacing: 1px; }
.sc-info span { font-size: 12px; color: rgba(255, 255, 255, .72); letter-spacing: 1px; }
.sc-controls { display: flex; gap: 8px; flex: none; }
.sc-controls button {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 15px; line-height: 1; backdrop-filter: blur(8px);
  transition: all .2s;
}
.sc-controls button:hover { background: rgba(232, 206, 122, .32); border-color: rgba(232, 206, 122, .7); }
.showcase-thumbs { display: flex; gap: 10px; margin-top: 14px; justify-content: flex-end; }
.showcase-thumbs .sc-thumb {
  width: 62px; height: 42px; border-radius: 9px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .25); opacity: .55; transition: all .25s;
  background: linear-gradient(140deg, #8E2C21, #3A120C);
  background-size: cover; background-position: center; flex: none;
}
.showcase-thumbs .sc-thumb:hover { opacity: .85; }
.showcase-thumbs .sc-thumb.active {
  opacity: 1; border-color: #E8CE7A;
  box-shadow: 0 0 0 2px rgba(232, 206, 122, .35); transform: translateY(-2px);
}
.showcase-caption {
  text-align: right; margin-top: 10px;
  font-size: 12px; letter-spacing: 1.5px; color: rgba(255, 255, 255, .62);
}

/* ---------- 板块标题 / 紧凑筛选（替代大分类卡片） ---------- */
.home-page .sec-title { margin: 56px 0 20px; }
.home-page .sec-title h2 { font-size: 32px; letter-spacing: 4px; }
.home-page .sec-title .deco { font-size: 12px; letter-spacing: 2px; }
.home-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px 16px; margin: 0 0 26px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.home-filter .flabel {
  font-size: 12px; letter-spacing: 1.5px; color: var(--ink-soft);
  margin-right: 4px; flex: none;
}
.home-filter .chip {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line); background: #FFFDF8; color: var(--ink);
  transition: all .2s; white-space: nowrap;
}
.home-filter .chip:hover { border-color: var(--gold); color: var(--red); }
.home-filter .chip.active {
  background: linear-gradient(145deg, var(--red), var(--red-deep));
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 12px rgba(176, 58, 46, .25);
}
.home-filter .fsep { width: 1px; height: 20px; background: var(--line); margin: 0 8px; flex: none; }

/* ---------- 样片视频卡片 ---------- */
.home-page .sample-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.home-page .sample-card {
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid #EFE3CB; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.home-page .sample-card:hover {
  transform: translateY(-7px); border-color: rgba(201, 162, 39, .6);
  box-shadow: 0 20px 44px rgba(94, 31, 23, .16);
}
.home-page .sample-card .cover {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(140deg, #F5EADA, #E7D7BE);
}
.home-page .sample-card .cover img,
.home-page .sample-card .cover .ph { width: 100%; height: 100%; object-fit: cover; }
.home-page .card-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .6s ease;
}
.home-page .card-video.playing { opacity: 1; }
.home-page .video-flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px; font-size: 11px; letter-spacing: 1px;
  background: rgba(20, 8, 5, .55); color: #F7E4A6;
  border: 1px solid rgba(232, 206, 122, .32); backdrop-filter: blur(6px);
}
.home-page .sample-card .body { padding: 14px 16px 16px; }
.home-page .sample-card .title { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.home-page .sample-card .price { color: var(--red); font-weight: 700; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .home-page .hero .inner.hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 48px 0 56px; }
  .home-page .hero .stats { margin-top: 32px; }
  .showcase-caption { text-align: left; }
  .home-page .sample-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .home-page .site-header .inner { height: 60px; }
  .home-page .hero h1 { font-size: 30px; letter-spacing: 1px; }
  .home-page .hero p.sub { font-size: 14px; margin: 16px 0 26px; }
  .home-page .hero .cta { flex-direction: column; }
  .home-page .hero .cta .btn { width: 100%; }
  .home-page .hero .stat b { font-size: 22px; }
  .home-page .hero .stat { padding-left: 14px; }
  .showcase-frame { border-radius: 14px; }
  .showcase-thumbs { justify-content: flex-start; }
  .home-page .sample-grid { grid-template-columns: 1fr; }
  .home-filter { padding: 12px; gap: 6px; }
  .home-filter .fsep { display: none; }
  .home-page .sec-title { margin: 40px 0 16px; }
  .home-page .sec-title h2 { font-size: 25px; }
}

/* 防止 grid 子项被视频框/缩略图撑开，造成移动端横向溢出 */
.home-page .hero .inner.hero-grid > * { min-width: 0; }
.hero-showcase, .showcase-frame { width: 100%; }
.showcase-thumbs { flex-wrap: wrap; }

/* 移动端强制显示汉堡菜单（避免被其它规则覆盖） */
@media (max-width: 768px) {
  .home-page .nav-links { display: none !important; }
  .home-page .nav-toggle {
    display: inline-flex !important; flex-direction: column; justify-content: center;
    gap: 5px; background: none; border: none; padding: 10px 6px; cursor: pointer;
  }
  .home-page .nav-toggle span {
    display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--red-dark);
  }
}
@media (max-width: 640px) {
  .showcase-thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; gap: 8px; }
  .showcase-thumbs::-webkit-scrollbar { height: 4px; }
  .showcase-thumbs .sc-thumb { width: 54px; height: 38px; }
}
