/* ==========================================================================
   hero-v2.css — 首页首屏（Hero）视觉升级
   --------------------------------------------------------------------------
   设计目标：在「不改动任何文案、语义标签、i18n key、SEO/GEO 结构」的前提下，
             把首屏重排为「深色画布 + 暖铜光 + 编辑级排版」。
   作用范围：仅 index.html 的 .hero 区块，不污染其它页面与其它模块。
   加载顺序：必须放在 css/style.css、css/clear-btn.css、css/geo.css 之后。
   移除方式：删掉本文件 + index.html 里对应的 <link>，即可 100% 还原。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 画布：深暖底色 + 双侧光斑
   （同时作为背景图加载/被墙时的兜底，保证文字对比度永远达标）
   -------------------------------------------------------------------------- */
.hero {
  --h-ink: #0b0704;
  --h-cream: #fff4e8;
  --h-copper-1: #ffd9ac;
  --h-copper-2: #ff8a33;
  --h-copper-3: #ef6a13;
  --h-hairline: rgba(255, 214, 178, 0.16);

  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(640px, 80vh, 860px);
  padding: 84px 0 130px;
  color: var(--h-cream);
  background-color: var(--h-ink);
  background-image:
    radial-gradient(120% 95% at 6% 0%, #2c170b 0%, rgba(44, 23, 11, 0) 58%),
    radial-gradient(95% 85% at 94% 100%, #3a1c09 0%, rgba(58, 28, 9, 0) 62%),
    linear-gradient(180deg, #100a06 0%, #150c07 52%, var(--h-ink) 100%);
  overflow: hidden;
}

/* 背景图：收敛不透明度 + 更长的缓慢推近，避免"糊"在文字后面抢注意力 */
.hero-bg {
  transform: scale(1.06);
  transition: opacity 1s ease, transform 9s ease;
}
.hero-bg.is-active {
  opacity: 0.72;
  transform: scale(1);
}

/* 二级影调层：顶部/底部压暗 + 右侧暖光抬升，制造纵深 */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(8, 5, 3, 0.46) 0%,
      rgba(8, 5, 3, 0.00) 34%,
      rgba(8, 5, 3, 0.00) 60%,
      rgba(8, 5, 3, 0.62) 100%),
    radial-gradient(62% 78% at 90% 34%, rgba(255, 150, 70, 0.16) 0%, rgba(255, 150, 70, 0) 66%);
}

/* 肌理层：大规格"瓷砖"网格，仅在右侧淡淡显影，点题又不喧哗 */
.hero-texture {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 196, 140, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 196, 140, 0.055) 1px, transparent 1px);
  background-size: 168px 168px;
  -webkit-mask-image: radial-gradient(105% 92% at 86% 40%, #000 0%, rgba(0, 0, 0, 0) 74%);
  mask-image: radial-gradient(105% 92% at 86% 40%, #000 0%, rgba(0, 0, 0, 0) 74%);
}

/* 光晕层：把"窑火暖铜"打在右侧，和左侧文字形成明暗对位 */
.hero-aura {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(38% 52% at 76% 30%, rgba(255, 138, 51, 0.26) 0%, rgba(255, 138, 51, 0) 70%),
    radial-gradient(32% 42% at 97% 74%, rgba(255, 176, 102, 0.18) 0%, rgba(255, 176, 102, 0) 72%);
}

/* 底部与下一页的过渡（沿用原有变量，深浅色主题各自成立） */
.hero::after {
  height: 130px;
}

/* --------------------------------------------------------------------------
   2. 内容骨架
   -------------------------------------------------------------------------- */
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 960px;
  margin-left: max(20px, calc((100vw - 1180px) / 2));
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   3. 顶部标签胶囊：修正分隔点间距不均的问题
   -------------------------------------------------------------------------- */
.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 15px;
  margin: 0 0 30px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 196, 146, 0.26);
  border-radius: 999px;
  background: rgba(255, 236, 222, 0.065);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: rgba(255, 234, 216, 0.92);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hero-content .eyebrow span {
  display: inline-flex;
  align-items: center;
}

.hero-content .eyebrow span + span::before {
  content: '';
  display: block;
  flex: none;
  width: 4px;
  height: 4px;
  margin-right: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--h-copper-1), var(--h-copper-2));
  box-shadow: 0 0 9px rgba(255, 138, 51, 0.85);
}

/* --------------------------------------------------------------------------
   4. 主标题：品牌小号 + 核心关键词大号 + 主张换行，彻底消灭"｜瓷"孤字换行
   -------------------------------------------------------------------------- */
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.95vw, 66px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-shadow: 0 6px 44px rgba(6, 3, 1, 0.55);
}

.hero h1 .hero-line {
  display: block;
}

/* 第一行：秒景美家（小）/ ｜瓷砖AI设计服务商（大，GEO 核心词） */
.hero h1 .hero-line-a > em {
  font-size: 0.62em;
  letter-spacing: 0.03em;
}

/* 第二行：主张，降一档字号，形成清晰的三级层次 */
.hero h1 .hero-line-b {
  margin-top: 0.16em;
  font-size: 0.68em;
  line-height: 1.22;
  color: rgba(255, 243, 232, 0.96);
}

/* 强调词：铜金渐变 + 微弱光晕，替换原来偏灰的浅桃色 */
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--h-copper-1) 0%, #ffb265 30%, var(--h-copper-2) 68%, var(--h-copper-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 5px 22px rgba(255, 118, 26, 0.30));
}

/* --------------------------------------------------------------------------
   5. 副标题：加短金线做引导
   -------------------------------------------------------------------------- */
.hero-subtitle {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0 0;
  font-size: clamp(14px, 1.32vw, 17px) !important;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: rgba(255, 244, 234, 0.88);
  text-shadow: 0 2px 20px rgba(6, 3, 1, 0.65);
  /* 窄屏换行时优先均分两行，避免出现"单字孤行" */
  text-wrap: balance;
}

.hero-subtitle::before {
  content: '';
  flex: none;
  width: 46px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--h-copper-2), rgba(255, 138, 51, 0));
}

/* --------------------------------------------------------------------------
   6. 主按钮
   -------------------------------------------------------------------------- */
.hero-actions {
  gap: 14px;
  margin-top: 36px;
}

.hero-actions .btn {
  min-height: 54px;
  padding: 0 30px;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  border-radius: 999px;
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, #ff9c4a 0%, var(--h-copper-3) 56%, #cf5209 100%);
  box-shadow: 0 14px 34px rgba(226, 105, 30, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(226, 105, 30, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 220, 190, 0.42);
  background: rgba(255, 236, 222, 0.07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 236, 222, 0.16);
  border-color: rgba(255, 220, 190, 0.68);
}

/* --------------------------------------------------------------------------
   7. 首屏数据条（v3：玻璃卡片化）
   （全部为页面既有数据，仅做聚合，不新增任何宣称）
   做法：外层 1px 间隙 + 浅色底 → 自然形成精致的分隔线；每个单元格是
        半透明深色玻璃，既撑起版面，又让背景照片在卡片下隐约透出。
   -------------------------------------------------------------------------- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 940px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(255, 214, 178, 0.20);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 214, 178, 0.16); /* 从 1px 缝隙里透出的分隔线 */
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
  box-shadow:
    0 24px 56px rgba(4, 2, 1, 0.46),
    0 1px 0 rgba(255, 236, 222, 0.06) inset;
}

.hero-stats li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 22px 24px 20px;
  background: linear-gradient(180deg, rgba(30, 16, 9, 0.60) 0%, rgba(13, 7, 4, 0.72) 100%);
}

/* 每格顶部一道极细的暖金高光，把卡片"提"起来 */
.hero-stats li::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255, 214, 178, 0) 0%,
    rgba(255, 190, 130, 0.42) 50%,
    rgba(255, 214, 178, 0) 100%);
}

.hero-stats strong {
  font-size: clamp(20px, 1.95vw, 27px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  background: linear-gradient(100deg, #fff0dc 0%, #ffbe7d 44%, #ff9a45 74%, var(--h-copper-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(255, 122, 26, 0.28));
}

.hero-stats span {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.035em;
  color: rgba(255, 244, 234, 0.86);
  text-shadow: 0 1px 10px rgba(6, 3, 1, 0.7);
}

/* --------------------------------------------------------------------------
   8. 指示条：换成更有质感的细金线
   -------------------------------------------------------------------------- */
.carousel-dots button {
  background: rgba(255, 214, 178, 0.28);
}

.carousel-dots button.is-active {
  background: linear-gradient(90deg, var(--h-copper-1), var(--h-copper-2));
}

/* --------------------------------------------------------------------------
   9. 入场动画：分层递进（尊重系统的"减少动态效果"设置）
   -------------------------------------------------------------------------- */
.hero h1 .hero-line:nth-child(1) { animation: heroRise 0.85s 0.06s cubic-bezier(0.22, 0.68, 0.32, 1) both; }
.hero h1 .hero-line:nth-child(2) { animation: heroRise 0.85s 0.17s cubic-bezier(0.22, 0.68, 0.32, 1) both; }
.hero .eyebrow.hero-reveal { animation-delay: 0s; }
.hero-subtitle.hero-reveal { animation-delay: 0.30s; }
.hero-actions.hero-reveal { animation-delay: 0.42s; }
.hero-stats.hero-reveal { animation-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero h1 .hero-line,
  .hero-reveal {
    animation: none !important;
    transition: none !important;
  }
  .hero-bg.is-active {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   10. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-stats li {
    padding: 20px 20px 18px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding: 76px 0 104px;
  }
  .hero-content {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 38px;
  }
  .hero-texture {
    background-size: 120px 120px;
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 60px 0 88px;
  }
  .hero-content .eyebrow {
    gap: 0 12px;
    margin-bottom: 22px;
    padding: 8px 16px;
    font-size: 11.5px;
    letter-spacing: 0.10em;
  }
  .hero-content .eyebrow span + span::before {
    width: 3px;
    height: 3px;
    margin-right: 12px;
  }
  .hero h1 {
    font-size: clamp(22px, 7.2vw, 40px);
  }
  .hero h1 .hero-line-a > em {
    font-size: 0.7em;
  }
  .hero h1 .hero-line-b {
    font-size: 0.82em;
    margin-top: 0.2em;
  }
  .hero-subtitle {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    font-size: 13.5px !important;
    letter-spacing: 0.03em;
  }
  .hero-subtitle::before {
    width: 34px;
  }
  .hero-actions {
    margin-top: 26px;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
    min-height: 50px;
    padding: 0 20px;
    font-size: 15px;
  }
  .hero-stats {
    margin-top: 34px;
    border-radius: 14px;
  }
  .hero-stats li {
    gap: 4px;
    padding: 16px 16px 15px;
  }
  .hero-stats strong {
    font-size: 20px;
  }
  .hero-stats span {
    font-size: 11.5px;
  }
}
