/* ===== 首页 Hero 模块样式（1:1 复刻 shejihezi-landing-mockup.html） ===== */

/* 背景大图层 */
.bg-strip {
  position: absolute; left: 0; right: 0; top: 0; z-index: 0;
  height: 750px;
  overflow: hidden;
}
.bg-slide {
  position: absolute; inset: 0;
  background: center/cover no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.bg-slide.active { opacity: 1; }
/* 暗色模式下压暗 Hero 背景图，避免亮图在深色主题里发飘 */
body.dark-theme .bg-slide { filter: brightness(0.82) saturate(1.05); }

/* 首图马赛克 canvas */
.hero-mosaic-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
  transition: opacity .35s ease;
  will-change: opacity;
}
/* 底部深色渐变已迁移到 .hero-fade（后台可配置，见 module-home-hero.php） */

/* Hero 区域 */
.hero {
  position: relative; width: 100%; height: var(--hero-h-pc, 560px); min-height: var(--hero-h-pc, 560px);
  background: linear-gradient(180deg, rgba(43,38,34,0) 0%, rgba(43,38,34,0.18) 58%, rgba(43,38,34,0.5) 100%);
  padding: 36px 0 0;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 120px, rgba(255,255,255,0.015) 121px, transparent 122px);
  pointer-events: none;
}

/* 底部可配置深色渐变（后台「首页头部模块」设置）
   底边对齐到「底部大图幻灯 / 白色卡片上沿」(--hero-card-overlap)，gap 可微调 */
.hero-fade {
  position: absolute; left: 0; right: 0; z-index: 0;
  bottom: calc(var(--hero-card-overlap, 300px) + var(--hero-fade-gap, 0px));
  height: var(--hero-fade-h, 200px);
  background: var(--hero-fade-bg, none);
  pointer-events: none;
}

/* 水印大字（放在黑色磨砂玻璃后面，玻璃磨砂+半透明使其若隐若现） */
.watermark {
  position: absolute;
  left: 115px;
  right: 65px;
  top: calc(var(--hero-h-pc, 750px) - 400px + 20px);
  z-index: 1;
  text-align: left;
  font-size: var(--hero-wm-size, 56px);
  font-weight: 900;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.92) !important;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}
body.dark-theme .watermark { color: rgba(0, 0, 0, 0.92) !important; }

/* 黑色磨砂背景 */
.hero-glass {
  position: absolute; z-index: 2;
  left: 65px; right: 65px; top: calc(var(--hero-h-pc, 750px) - 400px); height: 225px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50px 50px 0 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* 幻灯片控件 */
.hero-controls {
  position: absolute; z-index: 5;
  left: 113px; bottom: 430px;
  display: flex; align-items: center; gap: 12px;
}
.ctrl-pill {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  border-radius: 999px; height: 30px; padding: 0 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.ctrl-progress {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: rgba(255,255,255,0.28);
  pointer-events: none; z-index: 0;
}
.ctrl-arrows { gap: 12px; padding: 0 12px; }
.ctrl-arrows::before, .ctrl-arrows::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 50%;
  background: rgba(255,255,255,0.22); opacity: 0;
  transition: opacity 0.25s ease; pointer-events: none; z-index: 0;
}
.ctrl-arrows::before { left: 0; }
.ctrl-arrows::after { right: 0; }
.ctrl-arrows.hover-left::before { opacity: 1; }
.ctrl-arrows.hover-right::after { opacity: 1; }
.ctrl-arrows button {
  position: relative; z-index: 1;
  background: transparent; border: none; color: rgba(255,255,255,0.85);
  font-size: 16px; line-height: 1; cursor: pointer; padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.25s ease;
}
.ctrl-arrows button:hover { color: #fff; }
.ctrl-dots { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.ctrl-dots i {
  position: relative; z-index: 1;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.45); display: inline-block;
  transition: background 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}
.ctrl-dots i.active { background: #fff; transform: scale(1.35); box-shadow: 0 0 0 3px rgba(255,255,255,0.18); }

/* 右下角信息 */
.hero-meta {
  position: absolute; z-index: 6;
  right: 113px; bottom: 315px;
  color: rgba(255,255,255,0.95); font-size: 14px; letter-spacing: 0.3px; text-align: right;
}
.hero-meta strong { color: #9db22c; font-size: 28px; font-weight: 700; margin: 0 4px; line-height: 1; }
.hero-meta .highlight { color: #9db22c; font-weight: 600; }
.hero-meta a.hero-meta-link { color: inherit; text-decoration: none; transition: opacity .2s ease; }
.hero-meta a.hero-meta-link:hover { text-decoration: underline; opacity: .85; }

/* 白色主卡片 */
.hezi-hero-main { background: transparent; padding: 0 0 40px; }
.main-card {
  position: relative; z-index: 3;
  margin: -300px 65px 0; background: var(--hezi-surface, #FBF9F5);
  border-radius: 50px; overflow: hidden;
  box-shadow: none;
}
.card-title { padding: 42px 48px 38px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.brand-en {
  font-size: 30px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--hezi-accent, #A9744F); text-transform: uppercase;
}
.card-meta-right { display: flex; align-items: center; }
.card-avatars { display: flex; gap: 6px; }
.mini-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  overflow: hidden; background: var(--hezi-border, #E2DCD0); flex-shrink: 0;
}
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 14px; flex-wrap: wrap; }
.card-date { text-align: right; color: #9a9a9a; font-size: 13px; line-height: 1.45; }
.card-date .time { font-size: 18px; font-weight: 600; color: #666; letter-spacing: 0.5px; font-variant-numeric: tabular-nums; }
.card-divider { height: 1px; background: #e2e2e2; margin: 14px -48px 22px; }

/* 标题打字机 */
.hezi-hero-main h1 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 800;
  letter-spacing: -0.5px; line-height: 1.15; margin: 0 0 14px;
  min-height: 1.15em; white-space: nowrap;
}
.hezi-hero-main h1 #typed {
  white-space: nowrap;
}
/* 注意：父主题 bootstrap.css 也定义了 .caret（下拉三角：width:0/height:0/border-top:4px），
   同特异性且加载更晚 → 会覆盖上面的规则。这里用 .hezi-hero-main h1 提高特异性并清掉 bootstrap 的边框。 */
.hezi-hero-main h1 .caret {
  display: inline-block; width: 5px; height: 1em; margin-left: 6px;
  background: currentColor; vertical-align: -0.12em;
  border: none; border-radius: 2px;
  animation: caretBlink 1s step-end infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.subtitle {
  font-size: 16px; color: var(--hezi-text-2, #6B655C); line-height: 1.7;
  white-space: nowrap; max-width: 520px; margin: 0;
}

/* 内容区 */
.content-band {
  display: flex; gap: 42px;
  background: var(--hezi-bg, #F4F0EB);
  padding: 38px 0 38px 48px;
}
.content-left { flex: 1; min-width: 0; display: flex; gap: 32px; align-items: flex-start; }
.tabs {
  flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 6px;
  background: color-mix(in srgb, var(--hezi-bg) 85%, var(--hezi-text-3) 15%);
  border-radius: 18px; padding: 6px;
  position: relative;
}
.tab-active-bg {
  position: absolute; left: 6px; right: 6px; top: 0;
  height: 44px;
  background: var(--hezi-surface, #FBF9F5); border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), height 0.25s ease;
  pointer-events: none;
}
.tab-btn {
  position: relative; z-index: 1;
  border: none; background: transparent; cursor: pointer;
  width: 100%; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--hezi-text-2, #6B655C);
  transition: color .2s ease;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--hezi-text, #2B2622); }
.tab-btn.active { color: var(--hezi-text, #2B2622); }
.tab-panels { flex: 1; min-width: 0; }
.tab-panel { display: none; animation: fadeIn .35s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.content-left h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.2px; margin: 0 0 12px; }
.content-left .audience { font-size: 13px; color: #6b6b6b; margin: 0 0 24px; }
.features { list-style: none; margin: 0; padding: 0; }
.features li {
  position: relative; padding-left: 14px; font-size: 13.5px; color: var(--hezi-text-2, #6B655C);
  line-height: 1.8; margin-bottom: 10px;
}
.features li::before {
  content: "·"; position: absolute; left: 0; top: 0; color: var(--hezi-accent, #A9744F); font-weight: 900;
}

/* 右侧图舞台 */
.right-image-stage {
  flex: 0 0 48%; position: relative; border-radius: 0; overflow: hidden;
  margin: -38px 0;
}
.right-image-panel {
  position: absolute; inset: 0; opacity: 0; z-index: 0;
  transition: opacity 0.45s ease;
}
.right-image-panel.active { opacity: 1; z-index: 1; }
.right-image-panel img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.right-image-panel[data-tab="htab0"] {
  background: url(../img/hero-tab-1.jpg) center/cover no-repeat;
}
.right-image-panel[data-tab="htab1"] {
  background: url(../img/hero-tab-2.jpg) center/cover no-repeat;
}
.right-image-panel[data-tab="htab2"] {
  background: url(../img/hero-tab-3.jpg) center/cover no-repeat;
}
.right-image-panel::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 14px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.08) 0, rgba(0,0,0,0.08) 1px, transparent 1px, transparent 18px);
}

/* 底部 CTA 条 */
.bottom-bar {
  padding: 18px 32px; display: flex; justify-content: flex-end;
  align-items: center; background: var(--hezi-surface, #FBF9F5);
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--hezi-accent, #A9744F); border-radius: 999px;
  padding: 12px 26px; font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--hezi-accent, #A9744F);
  background: transparent; cursor: pointer; transition: all .15s ease;
  text-decoration: none;
}
.cta-btn:hover { background: var(--hezi-accent, #A9744F); color: var(--hezi-accent-on, #fff); }
.cta-btn svg { width: 16px; height: 16px; }

/* 过渡动画（明暗切换时平滑） */
.main-card, .content-band, .tabs, .tab-active-bg, .bottom-bar,
.card-divider, .mini-avatar, .cta-btn, .watermark {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card-title, .hezi-hero-main h1, .subtitle, .tab-btn,
.content-left h2, .content-left .audience, .features li,
.card-date, .card-date .time {
  transition: color .3s ease;
}

/* ===== 暗黑模式适配（栖域令牌自动跟随，无需写死颜色） ===== */
body.dark-theme .main-card {
  background: var(--hezi-surface, #242019);
  box-shadow: none;
}
body.dark-theme .card-title { color: var(--hezi-text, #F2EDE6); }
body.dark-theme .card-date { color: var(--hezi-text-3, #8A8175); }
body.dark-theme .card-date .time { color: var(--hezi-text-2, #D8CDBF); }
body.dark-theme .card-divider { background: var(--hezi-border, #3A342B); }
body.dark-theme .hezi-hero-main h1 { color: var(--hezi-text, #F2EDE6); }
body.dark-theme .subtitle { color: var(--hezi-text-2, #D8CDBF); }
body.dark-theme .content-band { background: var(--hezi-bg, #1A1714); }
body.dark-theme .tabs { background: color-mix(in srgb, var(--hezi-bg) 85%, var(--hezi-text-3) 15%); }
body.dark-theme .tab-active-bg { background: var(--hezi-surface, #242019); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
body.dark-theme .tab-btn { color: var(--hezi-text-2, #D8CDBF); }
body.dark-theme .tab-btn:hover { color: var(--hezi-text, #F2EDE6); }
body.dark-theme .tab-btn.active { color: var(--hezi-text, #F2EDE6); }
body.dark-theme .content-left h2 { color: var(--hezi-text, #F2EDE6); }
body.dark-theme .content-left .audience { color: var(--hezi-text-2, #D8CDBF); }
body.dark-theme .features li { color: var(--hezi-text-2, #D8CDBF); }
body.dark-theme .mini-avatar { background: var(--hezi-border, #3A342B); }
body.dark-theme .bottom-bar { background: var(--hezi-surface, #242019); }
body.dark-theme .cta-btn { border-color: var(--hezi-accent, #C99A6E); color: var(--hezi-accent, #C99A6E); }
body.dark-theme .cta-btn:hover { background: var(--hezi-accent, #C99A6E); color: var(--hezi-accent-on, #1A1714); }

/* ===== 移动端 ===== */
  @media (max-width: 900px) {
  .hero { height: var(--hero-h-m, 420px); min-height: var(--hero-h-m, 420px); padding: 28px 0 0; }
  .hero-fade { --hero-card-overlap: 60px; }
  .hero-glass { left: 24px; right: 24px; top: calc(var(--hero-h-m, 420px) - 160px); height: 225px; border-radius: 28px 28px 0 0; }
  .watermark { left: 74px; right: 24px; top: calc(var(--hero-h-m, 420px) - 160px + 20px); font-size: calc(var(--hero-wm-size, 56px) * 0.7); }
  .hero-controls { left: 48px; bottom: 190px; transform: scale(0.92); transform-origin: left bottom; }
  .hero-meta { right: 48px; bottom: 75px; font-size: 13px; }
  .main-card { margin: -60px 24px 0; border-radius: 28px; }
  .card-title { padding: 28px 24px 24px; }
  .card-head { align-items: flex-start; gap: 16px; }
  .card-avatars { gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 220px; }
  .mini-avatar { width: 24px; height: 24px; }
  .title-row { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
  .hezi-hero-main h1 { font-size: clamp(22px, 5vw, 32px); }
  .card-date { font-size: 12px; text-align: left; }
  .card-date .time { font-size: 15px; }
  .card-divider { margin: 12px -24px 18px; }
  .content-band { padding: 28px 24px; flex-direction: column; gap: 0; }
  .content-left { display: block; }
  .tabs { flex: none; display: inline-flex; flex-direction: row; border-radius: 999px; padding: 4px; margin-bottom: 22px; }
  .tab-active-bg { display: none; }
  .tab-btn { width: auto; padding: 8px 18px; border-radius: 999px; }
  .tab-btn.active { background: var(--hezi-surface, #FBF9F5); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
  .subtitle { white-space: normal; }
  .right-image-stage { min-height: 240px; margin: 0 -24px -28px; }
  .bottom-bar { padding: 14px 20px; }
  /* 移动端暗黑模式 */
  body.dark-theme .tab-btn.active { background: var(--hezi-surface, #242019); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
}
