/* ==========================================================================
   首页 · 大西洋叙事
   --------------------------------------------------------------------------
   结构：1 开屏海洋 → 2 滚动下潜（鱼群随滚动游入）→ 3 原料 → 4 48小时 → 5 CTA
   动效原则：只动 transform / opacity，滚动进度由 JS 写入 CSS 变量 --p
   ========================================================================== */

.wl-home {
  --wl-abyss: #041826;
  --wl-surface: #2a7fa8;
  --wl-foam: #cfe9f4;
  --wl-accent: #7fd4e8;
  background: #fff;
}

.wl-home a {
  text-decoration: none;
}

/* ---------- 通用容器 ---------- */
.wl-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.wl-kicker {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wl-primary, #17708f);
  margin-bottom: 18px;
}

.wl-h2 {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #041826;
}

/* ==========================================================================
   1 · 开屏：大西洋海面
   ========================================================================== */
.wl-ocean {
  position: relative;
  /* 导航悬浮其上，首屏铺满整个视口 */
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* 海平线定在 62%：标题落在天空区，海面占下三分之一 */
  background: linear-gradient(
    180deg,
    #e4f2fa 0%,
    #bfe1f1 30%,
    #82bed9 50%,
    #4f9dc0 60.5%,
    #9ccbdd 61.8%,
    #2a7fa8 62%,
    #17587a 74%,
    #0a3149 88%,
    #041826 100%
  );
}

/* 地平线处的光晕，让海天分界不呆板 */
.wl-horizon-glow {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 150%;
  height: 34%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 244, 214, 0.55) 0%,
    rgba(255, 236, 190, 0.18) 34%,
    rgba(255, 255, 255, 0) 68%
  );
  pointer-events: none;
}

/* 日光在海面的反射带：一条竖直的亮带，越往下越散 */
.wl-ocean::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 62%;
  width: 26%;
  height: 46%;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(255, 241, 214, 0.42) 0%,
    rgba(255, 236, 200, 0.16) 30%,
    rgba(255, 236, 200, 0) 78%
  );
  filter: blur(18px);
  pointer-events: none;
}

/* 水面细纹：横向的浅色条纹，越靠近地平线越密 */
.wl-ocean::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  bottom: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.09) 0 1px,
    rgba(255, 255, 255, 0) 1px 7px
  );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 62%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 62%);
  pointer-events: none;
}

/* 海面波纹：三层 SVG 错速平移 */
.wl-waves {
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  height: 9%;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 100%);
}

.wl-wave {
  position: absolute;
  left: -5%;
  width: 110%;
  height: 100%;
  animation: wl-drift 14s ease-in-out infinite;
}

.wl-wave path {
  fill: rgba(255, 255, 255, 0.14);
}

.wl-wave:nth-child(2) {
  top: 12%;
  animation-duration: 20s;
  animation-direction: reverse;
}

.wl-wave:nth-child(2) path {
  fill: rgba(255, 255, 255, 0.08);
}

.wl-wave:nth-child(3) {
  top: 26%;
  animation-duration: 26s;
}

.wl-wave:nth-child(3) path {
  fill: rgba(4, 24, 38, 0.1);
}

@keyframes wl-drift {
  0%, 100% { transform: translate3d(-1.5%, 0, 0); }
  50% { transform: translate3d(1.5%, 1.2%, 0); }
}

/* 开屏文字 */
.wl-ocean-copy {
  position: relative;
  z-index: 2;
  /* flex 列容器里如果不给宽度，子元素会按 max-content 撑开，小屏上文字会被裁掉 */
  width: 100%;
  max-width: 1000px;
  box-sizing: border-box;
  padding: 0 24px;
  animation: wl-fade-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wl-eyebrow {
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 22px;
}

.wl-display {
  font-size: clamp(40px, 7.4vw, 96px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 40px rgba(4, 24, 38, 0.45);
}

.wl-lede {
  margin: 26px auto 0;
  /* 小屏时不能让 30em 撑出容器，否则文案会被右边缘裁掉 */
  max-width: min(30em, 100%);
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

/* 向下提示 */
.wl-scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.7);
}

.wl-cue-bar {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  animation: wl-cue 2.4s ease-in-out infinite;
  transform-origin: top;
}

@keyframes wl-cue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes wl-fade-up {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   2 · 下潜：滚动驱动，鱼群游入
   ========================================================================== */
.wl-dive {
  position: relative;
  /* 460vh：9 条鱼依次游入，每条约 0.2 进度 */
  height: 460vh;
  background: var(--wl-abyss);
}

.wl-dive-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #041826;
}

/* 上层「浅水」光，随着下潜逐渐消失 */
.wl-dive-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 70% at 50% -10%,
    rgba(92, 178, 214, 0.85) 0%,
    rgba(23, 88, 122, 0.55) 34%,
    rgba(4, 24, 38, 0) 72%
  );
  opacity: calc(1 - var(--p, 0));
  pointer-events: none;
}

/* 深海颗粒感：细密光点模拟浮游悬浮 */
.wl-dive-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
  opacity: calc(var(--p, 0) * 0.5);
  pointer-events: none;
}

/* 水下光束：从水面斜射下来，越深越淡 */
.wl-rays {
  position: absolute;
  inset: -20% -25% auto;
  height: 130%;
  background: repeating-linear-gradient(
    98deg,
    rgba(190, 240, 255, 0.075) 0 3%,
    rgba(190, 240, 255, 0) 3% 11%
  );
  filter: blur(18px);
  opacity: calc((1 - var(--p, 0)) * 0.75);
  pointer-events: none;
  transform: translate3d(0, calc(var(--p, 0) * -8%), 0);
}

/* 深度读数：放到右上角（原先居中，鱼放大后会从数字背后穿过） */
.wl-depth {
  position: absolute;
  top: 92px;
  right: clamp(20px, 3.4vw, 52px);
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}


.wl-depth-num {
  font-size: 44px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

.wl-depth em {
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.3em;
}

/* 下潜文案 */
.wl-dive-copy {
  position: absolute;
  inset: 50% 0 auto;
  transform: translateY(-50%);
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}

/* 文字后方的暗晕：压暗游过的鱼，保证文案永远是第一层 */
.wl-dive-copy::before {
  content: "";
  position: absolute;
  inset: -120% -6%;
  background: radial-gradient(
    ellipse at center,
    rgba(4, 24, 38, 0.82) 0%,
    rgba(4, 24, 38, 0.45) 38%,
    rgba(4, 24, 38, 0) 72%
  );
  z-index: -1;
  pointer-events: none;
}

.wl-dive-line {
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.5;
  font-weight: 400;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.wl-dive-line + .wl-dive-line {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
}

/* 鱼群：真实照片，按栖息深度由浅到深依次游入 */
.wl-fish-zone {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.wl-fish {
  position: absolute;
  top: var(--y, 50%);
  left: 0;
  display: flex;
  /* 名字永远写在鱼头前：鱼朝左游，标签在左；鱼朝右游，标签在右。
     这样标签始终贴着画面外侧，不会挤到居中的深度读数和大标题。 */
  flex-direction: row-reverse;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
  /* 横向位置 = 起点 + 滚动进度 × 位移；--y 是鱼身中线（不再是顶边） */
  transform: translate3d(calc(var(--x0, 0vw) + var(--p, 0) * var(--dx, 16vw)), -50%, 0);
  /* 默认隐藏：万一下面的计算式被浏览器丢弃，鱼是全隐而不是全部叠在一起。
     真正的显隐由 home.js 逐帧写 opacity（内联样式优先级最高）。 */
  opacity: 0;
  /* 无 JS 时的降级：只在 [--t0, --t1] 这段进度里可见 */
  opacity: clamp(0, min(calc((var(--p, 0) - var(--t0, 0)) * 12), calc((var(--t1, 1) - var(--p, 0)) * 12)), 1);
  will-change: transform, opacity;
}

/* 1.6.7 起鱼放大 3 倍：原图也重切到 1200px，放大后仍能撑住 2 倍屏。
   宽度先按 3 倍算，再用 --ar（宽高比）卡一道高度上限，
   免得又长又高的鱼顶到页头、或者戳进中间的标题里。 */
.wl-fish img {
  display: block;
  /* 老浏览器不支持 min() 时退化成纯 3 倍宽，也不会缩水 */
  width: calc(var(--s, 1) * clamp(300px, 39.6vw, 618px));
  width: min(
    calc(var(--s, 1) * clamp(300px, 39.6vw, 618px)),
    calc(32vh * var(--ar, 1.9))
  );
  height: auto;
  filter: drop-shadow(0 26px 62px rgba(0, 0, 0, 0.62)) saturate(1.06) contrast(1.04);
  animation: wl-bob 9s ease-in-out infinite;
  animation-delay: var(--bob, 0s);
}

/* 逆流而游的鱼：标签回到右半侧，只翻转鱼身，文字不翻 */
.wl-fish.is-left {
  flex-direction: row;
}

.wl-fish.is-left img {
  transform: scaleX(-1);
}

/* 鱼名 + 栖息深度水温：默认贴在鱼的左侧，分隔线朝鱼 */
.wl-fish__tag {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-right: 14px;
  border-right: 1px solid rgba(127, 212, 232, 0.32);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 14px rgba(2, 12, 20, 0.95);
}

/* 朝右游的鱼，标签换到右侧，分隔线也跟着换边 */
.wl-fish.is-left .wl-fish__tag {
  align-items: flex-start;
  padding-right: 0;
  padding-left: 14px;
  border-right: 0;
  border-left: 1px solid rgba(127, 212, 232, 0.32);
  text-align: left;
}

.wl-fish__tag b {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.wl-fish__tag i {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(140, 222, 240, 0.8);
}

@keyframes wl-bob {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -8px; rotate: -2.5deg; }
}

.wl-section-head {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 84px);
}

/* ==========================================================================
   4 · 48 小时
   ========================================================================== */
.wl-timeline {
  padding: clamp(88px, 12vw, 150px) 0;
  /* 起点取来源区（.wl-sourcing）的收尾色，终点交给数字区的下沉渐变 */
  background: linear-gradient(180deg, #f4f7f9 0%, #eef6fa 100%);
}

/* 紧接来源区时，两段是同一条浅色带——上内边距收掉一半，
   否则 150 + 180 会变成一段 300px 的空白死区 */
.wl-sourcing + .wl-timeline {
  padding-top: clamp(44px, 5vw, 64px);
}

.wl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 60px;
}

.wl-step {
  position: relative;
  padding-right: 32px;
}

.wl-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 100%;
  height: 1px;
  background: rgba(6, 43, 62, 0.14);
}

.wl-step::after {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--wl-primary, #17708f);
}

.wl-step-time {
  display: block;
  margin-top: 34px;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--wl-primary, #17708f);
}

.wl-step h3 {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #041826;
}

.wl-step p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #587280;
  padding-right: 8px;
}

/* ==========================================================================
   5 · CTA
   ========================================================================== */
.wl-cta {
  padding: clamp(96px, 14vw, 180px) 0;
  background: linear-gradient(180deg, #0a3149 0%, #041826 100%);
  text-align: center;
  color: #fff;
}

.wl-cta h2 {
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.wl-cta p {
  margin: 20px auto 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}

.wl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 15px 34px;
  border-radius: 999px;
  background: #fff;
  color: #041826 !important;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(127, 212, 232, 0.28);
}

/* ==========================================================================
   进入视口时的揭示动画
   ========================================================================== */
.wl-reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.wl-reveal.in {
  opacity: 1;
  transform: none;
}

/* 卡片依次入场 */
.wl-numgrid .wl-reveal:nth-child(1) { transition-delay: 0s; }
.wl-numgrid .wl-reveal:nth-child(2) { transition-delay: 0.08s; }
.wl-numgrid .wl-reveal:nth-child(3) { transition-delay: 0.16s; }
.wl-numgrid .wl-reveal:nth-child(4) { transition-delay: 0.24s; }

/* ==========================================================================
   导航：首页顶部改为深海半透明（覆盖主题的白色玻璃条）
   ========================================================================== */
.wl-home-page header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* 浅色毛玻璃：首屏天空很亮，浅底深字才不会糊 */
  background: rgba(255, 255, 255, 0.58);
  border-bottom: 1px solid rgba(6, 43, 62, 0.06);
  backdrop-filter: saturate(1.6) blur(20px);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  box-shadow: none !important;
  transition: background 0.45s ease;
}

/* 离开首屏后几乎不透，滚动时内容不会串色 */
.wl-home-page header.sticky.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
}

.dark .wl-home-page header.sticky {
  /* 深色模式下不用半透明：深海军蓝压在半亮天空上会发灰，不如做实 */
  background: #0a2234;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark .wl-home-page header.sticky.is-scrolled {
  background: rgba(6, 24, 36, 0.94);
}

/* ==========================================================================
   深色模式
   ========================================================================== */
.dark .wl-home {
  background: #04121b;
}

.dark .wl-h2,
.dark .wl-step h3 {
  color: #e8f4f8;
}

.dark .wl-step p {
  color: #9fb8c4;
}

.dark .wl-timeline {
  background: linear-gradient(180deg, #061a25 0%, #04121b 100%);
}

.dark .wl-step::before {
  background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 900px) {
  .wl-steps {
    grid-template-columns: 1fr;
  }

  .wl-step {
    padding: 0 0 34px;
  }

  .wl-step::before {
    width: 1px;
    height: 100%;
    top: 12px;
    left: 5px;
  }

  .wl-step:last-child::before {
    display: none;
  }

  .wl-step-time {
    margin-top: 0;
    padding-left: 28px;
  }

  .wl-step h3,
  .wl-step p {
    padding-left: 28px;
  }

  .wl-step::after {
    top: 4px;
  }
}

@media (max-width: 640px) {
  .wl-ocean {
    min-height: 100svh;
  }

  .wl-depth {
    top: 72px;
  }

  .wl-depth-num {
    font-size: 32px;
  }

  /* 手机：鱼放大后横排放不下标签，改成「鱼在上、标签在下」的竖排。
     同时把纵向位置往中线压、横向起点和位移减半，避免鱼被屏幕两边切掉。 */
  .wl-fish,
  .wl-fish.is-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    top: calc(50% + (var(--y, 50%) - 50%) * 0.86);
    transform: translate3d(
      calc(var(--x0, 0vw) * 0.42 + var(--p, 0) * var(--dx, 16vw) * 0.5),
      -50%,
      0
    );
  }

  .wl-fish img {
    width: calc(var(--s, 1) * clamp(252px, 72vw, 330px));
  }

  /* 朝右游的鱼改靠右站，一左一右交替，画面不至于全挤在左边 */
  .wl-fish.is-left {
    right: 30px;
    left: auto;
    transform: translate3d(calc(var(--p, 0) * var(--dx, 16vw) * 0.1), -50%, 0);
  }

  .wl-fish__tag,
  .wl-fish.is-left .wl-fish__tag {
    align-items: flex-start;
    padding-left: 9px;
    padding-right: 0;
    border-left: 1px solid rgba(127, 212, 232, 0.32);
    border-right: 0;
    text-align: left;
    gap: 3px;
  }

  .wl-fish__tag b {
    font-size: 13px;
  }

  .wl-fish__tag i {
    font-size: 10.5px;
    letter-spacing: 0.02em;
  }
}

/* 尊重系统的减弱动效 */
@media (prefers-reduced-motion: reduce) {
  .wl-wave,
  .wl-cue-bar,
  .wl-fish img,
  .wl-ocean-copy {
    animation: none !important;
  }

  .wl-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   6 · 数字：把主张变成可核对的事实（Apple 式大数字）
   ========================================================================== */
/* 上一步停在浅灰的地图上，这里再潜回水下——
   前 168px（正好是上内边距）从浅灰沉到深蓝，之后一路平推到 #16426e 交给工艺区 */
.wl-numbers {
  position: relative;
  padding: clamp(96px, 13vw, 168px) 0;
  background: linear-gradient(180deg, #123a66 0%, #154069 52%, #16426e 100%);
  color: #fff;
}

.wl-numbers::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(96px, 13vw, 168px);
  background: linear-gradient(
    180deg,
    #eef6fa 0%,
    #cdd9e4 14%,
    #8fa8c0 38%,
    #4a7099 64%,
    #24507b 86%,
    #123a66 100%
  );
  pointer-events: none;
}


.wl-numbers .wl-h2 {
  color: #ffffff;
}

.wl-numbers .wl-kicker {
  color: #f4d264;
}

.wl-numgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 32px;
  margin-top: clamp(48px, 6vw, 76px);
}

.wl-num {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  padding-top: 26px;
}

.wl-num b {
  display: inline;
  font-size: clamp(52px, 6.4vw, 84px);
  line-height: 1;
  font-weight: 200;
  letter-spacing: -0.045em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.wl-num i {
  font-style: normal;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 400;
  color: #f4d264;
  margin-left: 4px;
}

.wl-num span {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  max-width: 15em;
}

/* 章节导语 */
.wl-section-lede {
  margin-top: 26px;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.85;
  color: #5b717e;
  text-wrap: pretty;
}

/* 不拆行的技术名词：中文逐字断行会把「晶球精准注芯」切成「…晶球精 / 准注芯」，
   这类专有说法用 nowrap 锁住，断行只能落在它两侧 */
.wl-nb {
  white-space: nowrap;
}

/* ==========================================================================
   4 · 原料卡片：可点击的档案入口
   ========================================================================== */
.wl-card {
  display: flex;
  flex-direction: column;
  color: inherit;
}

.wl-card h3 {
  transition: color 0.3s ease;
}

.wl-card:hover h3 {
  color: var(--wl-primary, #17708f);
}

.wl-card-data {
  margin-top: auto !important;
  padding-top: 15px;
  border-top: 1px solid rgba(6, 43, 62, 0.09);
  font-size: 13px !important;
  letter-spacing: 0.01em;
  color: #7b95a3 !important;
  font-variant-numeric: tabular-nums;
}

.wl-card-data b {
  font-size: 17px;
  font-weight: 500;
  color: #0d3446;
}

/* 查看全部 */
.wl-all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(40px, 5vw, 60px);
  font-size: 15px;
  font-weight: 500;
  color: var(--wl-primary, #17708f);
}

.wl-all-link span {
  display: inline-block;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.wl-all-link:hover span {
  transform: translateX(6px);
}

/* 首页折叠后的第二级入口：把整块内容收成一行链接，排在主链接下面 */
.wl-all-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 60px);
}

.wl-all-links .wl-all-link {
  margin-top: 0;
}

/* ---------- 首页 → 工艺与链路：深色横条入口 ---------- */
.wl-craft-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(38px, 4.6vw, 56px);
  padding: clamp(26px, 3vw, 38px) clamp(24px, 3.4vw, 44px);
  border-radius: 4px;
  background: linear-gradient(104deg, #0a3149 0%, #06253a 60%, #082c44 100%);
  box-shadow: 0 18px 40px rgba(6, 37, 58, 0.16);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.34s ease;
}

.wl-craft-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 56px rgba(6, 37, 58, 0.22);
}

.wl-craft-cta__txt {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.wl-craft-cta__k {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #7fd4e8;
}

.wl-craft-cta__t {
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
}

.wl-craft-cta__d {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(206, 232, 242, 0.68);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

/* 每一项整体不断行：中文逐字断行会把「双烘焙」拆成「双烘／焙」 */
.wl-craft-cta__d span {
  white-space: nowrap;
}

.wl-craft-cta__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 14px 26px;
  border-radius: 999px;
  background: #8fdcef;
  color: #04263a;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.wl-craft-cta:hover .wl-craft-cta__go {
  background: #a6e6f5;
}

.wl-craft-cta__arw {
  display: inline-block;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.wl-craft-cta:hover .wl-craft-cta__arw {
  transform: translateX(5px);
}

/* 横条之后的两条二级链接，别再撑出 60px 的空 */
.wl-craft-cta + .wl-all-links {
  margin-top: 26px;
}

/* 暗色模式：卡片要与深色底拉开一档，否则整块糊在一起 */
.dark .wl-craft-cta {
  background: linear-gradient(104deg, #0e4260 0%, #08293f 60%, #0b334d 100%);
  border: 1px solid rgba(127, 212, 232, 0.18);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
}

@media (max-width: 720px) {
  .wl-craft-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .wl-craft-cta__d {
    font-size: 13px;
  }

  .wl-craft-cta__go {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   新增区块的深色模式
   ========================================================================== */
.dark .wl-numbers {
  background: #061520;
}

.dark .wl-num b {
  color: #fff;
}

.dark .wl-num i {
  color: rgba(255, 255, 255, 0.62);
}

.dark .wl-num span {
  color: rgba(255, 255, 255, 0.5);
}

.dark .wl-num {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.dark .wl-numbers .wl-h2 {
  color: #f2f7fa;
}

.dark .wl-section-lede {
  color: #93aab6;
}

/* ==========================================================================
   新增区块的响应式
   ========================================================================== */
@media (max-width: 900px) {
  .wl-numgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 28px;
  }
}

@media (max-width: 560px) {
  .wl-num b {
    font-size: 46px;
  }

  .wl-num span {
    font-size: 12px;
  }
}

/* ==========================================================================
   4 · 工艺：4.0 双烘焙技术面板（整幅图，上下与相邻区块渐接）
   ========================================================================== */
/* 底色走三段：顶上接着数字区收到的深蓝，中间是面板自身的蓝，
   底下沉进页尾 CTA 的 #0a3149——阅读区折成链接后，工艺面板后面直接是深色行动区，
   再渐白就会剩一条白边撞深蓝，所以让它一路沉下去。
   ::before 用同一张面板放大模糊，mask 让它在首尾淡出——
   于是色带从上一个区块"长"出来，而不是硬切一刀。 */
.wl-craft {
  position: relative;
  padding: clamp(88px, 11vw, 150px) 0 clamp(96px, 12vw, 168px);
  background: linear-gradient(
    180deg,
    #16426e 0%,
    #14386c 9%,
    #14386c 84%,
    #123a63 91%,
    #0d3350 96%,
    #0a3149 100%
  );
  color: #fff;
  overflow: hidden;
}

.wl-craft::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/themes/theme-weilan/assets/img/deck/tech-panel.jpg") center / cover no-repeat;
  filter: blur(72px) saturate(1.08) brightness(0.82);
  transform: scale(1.04);
  /* 首尾各让出一段，模糊底从透明长到实色，再接回透明；
     底部留得比顶部宽，因为面板图下沿是浅色内容，要慢慢沉进深蓝 */
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.34) 3%,
    #000 9%,
    #000 76%,
    rgba(0, 0, 0, 0.55) 86%,
    rgba(0, 0, 0, 0.18) 93%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.34) 3%,
    #000 9%,
    #000 76%,
    rgba(0, 0, 0, 0.55) 86%,
    rgba(0, 0, 0, 0.18) 93%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* 压一层薄暗，避免模糊底抢掉标题；首尾同样归零，免得在接缝处压出一条横带 */
.wl-craft::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 30, 58, 0) 0%,
    rgba(8, 30, 58, 0.26) 16%,
    rgba(8, 30, 58, 0.1) 46%,
    rgba(8, 30, 58, 0.2) 80%,
    rgba(8, 30, 58, 0) 88%
  );
}

.wl-craft > * {
  position: relative;
  z-index: 1;
}

.wl-craft .wl-kicker {
  color: #f4d264;
}

.wl-craft .wl-h2 {
  color: #ffffff;
  text-shadow: 0 1px 24px rgba(6, 26, 52, 0.28);
}

.wl-craft .wl-section-lede {
  color: rgba(255, 255, 255, 0.8);
}

/* 面板放到全宽：图里六栏文字本来就密，容器窄一分就少一分可读性 */
.wl-panel {
  display: block;
  margin: clamp(30px, 4vw, 54px) 0 0;
  width: 100%;
  cursor: zoom-in;
}

.wl-panel:hover img {
  opacity: 0.94;
}

.wl-panel img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
  /* 顶边窄淡出、底边宽淡出：图的下沿是浅色内容，要慢慢沉进深蓝才不显脏。
     用百分比而不是 px——手机上面板图只有 130px 高，固定 132px 会把整张图糊掉 */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 86%, transparent 100%);
}

.wl-panel__hint {
  display: none;
  width: fit-content;
  margin: 12px 0 0 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(9, 32, 60, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
}

/* ==========================================================================
   4.55 · 产品目录：十个 SKU 收成一个入口
   --------------------------------------------------------------------------
   讲完怎么做（工艺），先给货架（目录），最后才谈原料外供。
   整块做成一张深色卡片：左边一句话说清目录的性格，右边是四条线的数量索引。
   底色与工艺区收尾同为 #0a3149，接缝不出现分界线。
   ========================================================================== */
.wl-catalog {
  position: relative;
  padding: 0 0 clamp(28px, 3.4vw, 40px);
  background: #0a3149;
  color: #fff;
}

.wl-cat-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(238px, 288px);
  align-items: center;
  gap: clamp(28px, 4.4vw, 62px);
  padding: clamp(30px, 3.8vw, 48px) clamp(26px, 3.6vw, 52px);
  border: 1px solid rgba(143, 220, 239, 0.2);
  border-radius: 4px;
  background: radial-gradient(
      112% 134% at 6% 0%,
      rgba(143, 220, 239, 0.17) 0%,
      rgba(143, 220, 239, 0) 56%
    ),
    linear-gradient(102deg, #0d3d5c 0%, #072b42 60%, #0a3550 100%);
  color: #fff;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.34s ease,
    border-color 0.34s ease;
}

.wl-cat-entry:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 220, 239, 0.44);
  box-shadow: 0 26px 60px rgba(2, 16, 28, 0.46);
}

.wl-cat-entry .wl-kicker {
  margin-bottom: 14px;
  color: #f4d264;
}

/* 卡片里的标题收一档：1080 的容器里再放 64px，一行字就顶到边了 */
.wl-cat-entry .wl-h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  color: #fff;
  text-shadow: none;
}

.wl-cat-entry__lede {
  margin-top: 18px;
  max-width: 30em;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(206, 232, 242, 0.76);
  text-wrap: pretty;
}

.wl-cat-entry__index {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  min-width: 0;
}

/* 四条线各一行，数量靠右对齐——像目录的页码栏 */
.wl-cat-entry__rows {
  width: 100%;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.wl-cat-entry__rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.wl-cat-entry__rows dt {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin: 0;
  font-size: 14.5px;
  font-style: normal;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
}

.wl-cat-entry__rows dt b {
  width: 1ch;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7fd4e8;
}

.wl-cat-entry__rows dd {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.wl-cat-entry__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: #8fdcef;
  color: #04263a;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.wl-cat-entry:hover .wl-cat-entry__go {
  background: #a6e6f5;
}

.wl-cat-entry__go span {
  display: inline-block;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.wl-cat-entry:hover .wl-cat-entry__go span {
  transform: translateX(5px);
}

@media (max-width: 820px) {
  .wl-cat-entry {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .wl-cat-entry__index {
    width: 100%;
    gap: 20px;
  }

  .wl-cat-entry__go {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   4.6 · 原料供应：水产 B2B 清单
   --------------------------------------------------------------------------
   上下都接 #0a3149——工艺区收到这里，CTA 也从这里起。
   中间压暗一档，让它成为深海尾巴上一段安静的停顿，而不是又一块亮色。
   ========================================================================== */
.wl-supply {
  position: relative;
  padding: clamp(76px, 9vw, 118px) 0 clamp(36px, 4.2vw, 56px);
  background: linear-gradient(
    180deg,
    #0a3149 0%,
    #072b42 38%,
    #082d45 70%,
    #0a3149 100%
  );
  color: #fff;
}

.wl-supply .wl-kicker {
  color: rgba(127, 212, 232, 0.95);
}

.wl-supply .wl-h2 {
  color: #ffffff;
}

.wl-supply .wl-section-lede {
  color: rgba(255, 255, 255, 0.72);
}

/* 清单本身是三条横线，不是卡片：一行一类信息，扫一眼就完事 */
.wl-supply__list {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.wl-supply__row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px 24px;
  align-items: baseline;
  padding: 21px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.wl-supply__row dt {
  font-size: 12px;
  letter-spacing: 0.2em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.42);
}

.wl-supply__row dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
  /* 中文逐字断行会把「炸弹鱼」切成「炸弹／鱼」、「青口贝」切成「青口／贝」。
     keep-all 禁止在汉字之间断，只在「·」两侧的空格处换行；
     分隔号于是永远留在上一行行尾，不会孤零零出现在行首 */
  word-break: keep-all;
  text-wrap: pretty;
}

.wl-supply__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(28px, 3.4vw, 40px);
}

.wl-supply__foot p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.52);
}

/* 深色底上的链接要用浅色，否则继承到通用的墨蓝就看不见了。
   这里不止是个链接，是首页通往原料图录的唯一入口，所以给它实体：
   浅青实心胶囊，在整片深蓝里是唯一一块亮色，扫过去不会漏掉。 */
.wl-supply__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 30px;
  border-radius: 999px;
  background: #8fdcef;
  color: #04263a !important;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease, background 0.32s ease;
}

.wl-supply__cta:hover {
  background: #a6e6f5;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(127, 212, 232, 0.26);
}

.wl-supply__cta span {
  display: inline-block;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.wl-supply__cta:hover span {
  transform: translateX(5px);
}

@media (max-width: 640px) {
  .wl-supply__row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 17px 0;
  }

  .wl-supply__row dd {
    font-size: 15px;
    line-height: 1.85;
  }

  .wl-supply__foot {
    flex-direction: column;
    gap: 14px;
  }
}

/* ==========================================================================
   3 · 来源：五个产区。排在数字之前——先摊开地图看产地，再落到那一组指标
   ========================================================================== */
.wl-sourcing {
  position: relative;
  padding: clamp(88px, 12vw, 150px) 0;
  background: #f4f7f9;
}

/* 从 460vh 的深海浮上来：用一段等于上内边距的渐变完成出水，
   高度正好等于 padding，所以标题一定落在干净的浅灰上 */
.wl-sourcing::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(88px, 12vw, 150px);
  background: linear-gradient(
    180deg,
    #041826 0%,
    #0b2c4e 14%,
    #2a5175 36%,
    #6d8fab 60%,
    #b6c8d7 80%,
    #e8eef2 91%,
    #f4f7f9 96%
  );
  pointer-events: none;
}

/* 渐变只铺在上内边距里，碰不到内容，所以不需要给 .wl-wrap 提层级——
   一提就会造出 stacking context，把地图的 multiply 混色挡回去 */

.wl-map {
  margin: clamp(32px, 4vw, 52px) 0 0;
}

.wl-map a {
  display: block;
  cursor: zoom-in;
}

.wl-map img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
  mix-blend-mode: multiply;
}

.wl-map a:hover img {
  opacity: 0.94;
}

/* 手机上 1466px 的地图会缩到 340 宽，细节全糊，给一个看原图的出口 */
.wl-map__hint {
  display: none;
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #87919a;
}

@media (max-width: 900px) {
  .wl-map__hint {
    display: block;
  }
}

.wl-srcrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: clamp(30px, 3.6vw, 44px);
  padding-top: clamp(26px, 3vw, 36px);
  border-top: 1px solid rgba(6, 43, 62, 0.12);
}

.wl-srcrow span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 14px;
  background: #fff;
  font-size: 13px;
  color: #43525c;
}

.wl-srcrow b {
  font-weight: 400;
  font-size: 12px;
  color: #87919a;
  font-variant-numeric: tabular-nums;
}

/* 深色模式 */
.dark .wl-sourcing {
  background: #04121b;
}

.dark .wl-sourcing::before {
  background: linear-gradient(180deg, #041826 0%, #05192a 52%, #04121b 100%);
}

.dark .wl-numbers::before {
  background: linear-gradient(180deg, #04121b 0%, #092441 58%, #123a66 100%);
}

.dark .wl-map img {
  mix-blend-mode: normal;
  background: #fff;
}

.dark .wl-srcrow {
  border-top-color: rgba(255, 255, 255, 0.13);
}

.dark .wl-srcrow span {
  background: #0d2130;
  color: #aab6c0;
}

/* 响应式 */
@media (max-width: 900px) {
  .wl-srcrow span {
    font-size: 12px;
    padding: 5px 11px;
  }
}

/* 工艺面板：手机上整幅缩放显示，看不清就点开原图 */
@media (max-width: 900px) {
  .wl-panel__hint {
    display: block;
  }
}
