/* ============================================================
   仙人湾瑶族乡·乡情影像社区 — 页面级高级感升级样式
   电影感页头 / 3D 滚动动效 / 视觉层次
   色彩与动效参数遵循全站规范（#0f0f14 / #2d8659 / #c9a96e）
   ============================================================ */

/* ---------- 电影感页头 Page Hero ---------- */
.page-hero {
  position: relative;
  height: 64vh;
  min-height: 440px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.page-hero-sm { height: 46vh; min-height: 340px; }
.page-hero .ph-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  will-change: transform;
  z-index: -2;
}
.page-hero .ph-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,15,20,0.45) 0%, rgba(15,15,20,0.12) 42%, rgba(15,15,20,0.94) 100%);
}
.page-hero .ph-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,15,20,0) 0%, rgba(15,15,20,0.55) 100%);
  z-index: -1;
  opacity: 0;
}
.page-hero .ph-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 76px;
}
.page-hero .ph-en {
  font-size: 13px;
  color: #c9a96e;
  letter-spacing: 7px;
  text-transform: uppercase;
  font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
  font-weight: 300;
}
.page-hero .ph-line {
  width: 56px;
  height: 1px;
  background: #c9a96e;
  margin: 20px 0 24px;
  opacity: 0.75;
}
.page-hero h1 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 3px;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}
.page-hero p {
  font-size: 15px;
  color: #c8c8d0;
  margin: 18px 0 0;
  line-height: 1.9;
  max-width: 560px;
  letter-spacing: 0.5px;
}
.page-hero .ph-scroll {
  position: absolute;
  right: 48px;
  bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #888896;
  font-size: 12px;
  letter-spacing: 2px;
  z-index: 2;
}
.page-hero .ph-scroll svg { width: 18px; height: 18px; animation: ph-float 2.6s cubic-bezier(0.25,0.46,0.45,0.94) infinite; }
@keyframes ph-float {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(8px); opacity: 0.4; }
}
/* 无图柔和版（发布/我的商品等） */
.page-hero.plain { height: 38vh; min-height: 300px; align-items: flex-end; }
.page-hero.plain::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 460px at 78% -12%, rgba(45,134,89,0.16) 0%, transparent 62%),
    radial-gradient(900px 420px at 12% 118%, rgba(201,169,110,0.09) 0%, transparent 60%),
    #0f0f14;
  z-index: -1;
}
.page-hero.plain .ph-inner { padding-bottom: 56px; }
.page-hero .detail-back { display: inline-flex; align-items: center; gap: 8px; color: #888896; font-size: 14px; margin: 0 0 22px; padding: 8px 14px; border: 1px solid #2a2a38; border-radius: 20px; background: rgba(15,15,20,0.5); transition: all 0.3s var(--ease); }
.page-hero .detail-back:hover { color: #2d8659; border-color: #2d8659; transform: translateX(-3px); }

/* ---------- 3D 滚动入场（GSAP 驱动，回退为纯渐显） ---------- */
.tilt-3d {
  transform-style: preserve-3d;
  will-change: transform, opacity;
  opacity: 0;
}
.tilt-3d.ready { opacity: 1; }
.no-gsap .tilt-3d { opacity: 1; transform: none; }

/* ---------- 筛选栏毛玻璃 ---------- */
.filter-bar.glass {
  position: sticky;
  top: 84px;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(15,15,20,0.72);
  border: 1px solid #2a2a38;
  border-radius: 8px;
  padding: 14px 22px;
  margin: 0 0 44px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.28);
}

/* ---------- 数字滚动 ---------- */
.stat-num { font-variant-numeric: tabular-nums; }

/* ---------- 区块标题增强（金色细线 + 不对称） ---------- */
.sec-aside { text-align: left; }
.sec-aside .section-head { display: flex; align-items: baseline; gap: 18px; }
.sec-aside .section-head .section-more { margin-left: auto; }

/* ---------- 季节专题：3D 景深增强 ---------- */
.season-deep {
  perspective: 1400px;
  transform-style: preserve-3d;
}
.season-deep .season-card { transform-style: preserve-3d; }
.season-deep .season-label {
  transform: translateZ(46px);
  text-shadow: 0 8px 30px rgba(0,0,0,0.55);
}
.season-wrap { position: relative; }
.season-aura {
  position: absolute;
  inset: -60px -80px;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: blur(40px);
  transform: scale(1.05);
  z-index: 0;
  pointer-events: none;
}
.season-wrap > * { position: relative; z-index: 1; }

/* ---------- 文化展陈：金色衬线卡片 ---------- */
.culture-card.gold-line::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 24px;
  width: 34px;
  height: 1px;
  background: #c9a96e;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.culture-card.gold-line:hover::before { opacity: 0.85; }

/* ---------- 商城：商品卡微 3D ---------- */
.goods-grid.deep .goods-card { transform-style: preserve-3d; }
.goods-grid.deep .goods-card:hover { transform: perspective(1200px) rotateX(1.5deg) rotateY(-1.5deg) translateY(-8px) scale(1.015); }
.goods-card .goods-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #c9a96e;
  border: 1px solid rgba(201,169,110,0.5);
  background: rgba(15,15,20,0.55);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 4px 12px;
}

/* ---------- 瀑布流交错 3D 入场 ---------- */
.masonry-3d .masonry-item { will-change: transform, opacity; }
.masonry-3d .masonry-item.enter { opacity: 1; transform: translateY(0) rotateX(0); }
.masonry-3d .masonry-item .masonry-mask { transition: opacity 0.4s cubic-bezier(0.25,0.46,0.45,0.94); }

/* ---------- 动态卡片流 ---------- */
.dynamic-card {
  display: flex;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid #2a2a38;
  transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}
.dynamic-card:hover { transform: translateY(-3px); }
.dynamic-card .dc-img {
  width: 260px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.dynamic-card .dc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.dynamic-card:hover .dc-img img { transform: scale(1.04); }
.dynamic-card .dc-body { flex: 1; min-width: 0; padding: 6px 0; }

/* ---------- 登录注册：毛玻璃卡片 ---------- */
.auth-wrap .auth-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(26,26,36,0.82);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

/* ---------- 个人主页封面视差 ---------- */
.profile-cover { overflow: hidden; }
.profile-cover img { will-change: transform; }

/* ---------- 装饰性数据条 ---------- */
.page-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #2a2a38;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  overflow: hidden;
  margin: 56px 0 0;
}
.page-stat-strip .ps {
  background: #1a1a24;
  padding: 26px 32px;
  transition: background 0.3s var(--ease);
}
.page-stat-strip .ps:hover { background: #22222e; }
.page-stat-strip .ps b {
  display: block;
  font-size: 30px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 1px;
  font-family: 'Montserrat', sans-serif;
}
.page-stat-strip .ps span {
  display: block;
  font-size: 13px;
  color: #888896;
  margin-top: 8px;
  letter-spacing: 1px;
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 768px) {
  .page-hero { height: 58vh; min-height: 400px; }
  .page-hero .ph-inner { padding: 0 20px 56px; }
  .page-hero h1 { font-size: 36px; letter-spacing: 2px; }
  .page-hero .ph-scroll { right: 20px; bottom: 40px; }
  .filter-bar.glass { top: 64px; }
  .dynamic-card { flex-direction: column; gap: 14px; }
  .dynamic-card .dc-img { width: 100%; height: 220px; }
  .page-stat-strip { grid-template-columns: 1fr; }
  .page-stat-strip .ps { padding: 20px 24px; }
}
