/* ============================================================
   JINLOOM · 首页（index.html）
   区块顺序对齐设计稿 image1：
   ① 全宽 Hero ② 三分类卡 ③ 深绿保障条

   Hero 有两种皮肤，改 index.html 里 <section class="hero"> 的类名即可切换：
     .hero--solid   深绿底 + 壮锦纹样 + 金属徽（默认，不依赖照片，最稳）
     .hero--photo   全宽照片底 + 深绿遮罩（有商业级大图后切成这个）
   ============================================================ */

/* ---------- ① Hero 公共 ---------- */
.hero {
  position: relative;
  min-height: min(74vh, 662px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(118% 132% at 74% 32%,
              #384F3F 0%, #2A3D31 34%, #1D2C24 66%, #131E18 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--w-max);
  min-width: 0;              /* 关键：不清零的话长文案会把 flex item 撑宽，页面横向溢出 */
  margin-inline: auto;
  padding-inline: var(--pad-x);
  padding-block: clamp(72px, 8.5vw, 118px);
}
.hero-inner { max-width: 740px; min-width: 0; }
.hero h1 { overflow-wrap: break-word; hyphens: auto; }

/* hero 里的文字：默认完全可见，只做轻微位移动画（避免动画没跑完时内容空白） */
.hero .eyebrow { color: var(--c-gold); margin-bottom: 20px; }
.hero h1 { color: var(--c-ivory); text-wrap: balance; }
.hero-sub {
  margin-top: 20px;
  max-width: 31em;
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: rgba(247, 242, 232, .8);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero .eyebrow,
.hero h1,
.hero-sub,
.hero-actions {
  animation: heroIn .95s var(--ease) both;
}
.hero h1            { animation-delay: .08s; }
.hero-sub           { animation-delay: .16s; }
.hero-actions       { animation-delay: .24s; }
@keyframes heroIn {
  from { transform: translateY(14px); }
  to   { transform: none; }
}

/* ---------- Hero 皮肤 A：深绿底（默认） ---------- */
.hero-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url(../img/pattern-gold.svg);
  background-size: 230px 230px;
  opacity: .07;
  -webkit-mask-image: radial-gradient(62% 96% at 76% 38%, #000 0%, rgba(0,0,0,.35) 48%, transparent 76%);
          mask-image: radial-gradient(62% 96% at 76% 38%, #000 0%, rgba(0,0,0,.35) 48%, transparent 76%);
  pointer-events: none;
}
.hero-emblem {
  position: absolute;
  z-index: 1;
  right: clamp(4px, 2.2vw, 40px);
  top: 50%;
  translate: 0 -50%;
  width: clamp(300px, 34vw, 480px);
  opacity: 1;
  pointer-events: none;
  animation: emblemIn 1.8s var(--ease) both;
}
@keyframes emblemIn {
  from { opacity: 0; transform: scale(.94) rotate(-4deg); }
  to   { opacity: 1; transform: none; }
}

/* hero 底部直接切纸白，干净利落，不加渐隐（会变成脏灰带） */

/* ---------- Hero 皮肤 B：照片底（有真图后启用） ---------- */
.hero--photo .hero-media { position: absolute; inset: 0; z-index: 0; }
.hero--photo .hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.hero--photo .hero-texture,
.hero--photo .hero-emblem { display: none; }
.hero--photo::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(96deg,
      rgba(14, 24, 19, .95) 0%, rgba(14, 24, 19, .9) 26%,
      rgba(14, 24, 19, .72) 48%, rgba(14, 24, 19, .46) 72%,
      rgba(14, 24, 19, .52) 100%),
    linear-gradient(180deg, rgba(14, 24, 19, .25) 0%, transparent 30%, rgba(14, 24, 19, .3) 100%);
}

/* ---------- 角饰花枝 ---------- */
.hero-floral {
  position: absolute;
  z-index: 1;
  width: clamp(140px, 15vw, 235px);
  pointer-events: none;
  opacity: .8;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .3));
}
.hero-floral--tl { top: -34px; left: -46px; width: clamp(120px, 12vw, 180px); opacity: .62; }
.hero-floral--br { bottom: 18px; right: -18px; transform: scaleX(-1) rotate(-8deg); opacity: .5; }

/* ---------- ② 三分类卡 ---------- */
.cats {
  position: relative;
  padding-block: clamp(30px, 3.6vw, 54px) clamp(52px, 6vw, 92px);
}
.cats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
}

.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--c-card);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--sh-hover); }

.cat-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #E8E2D5;
}
.cat-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.cat-card:hover .cat-media img { transform: scale(1.055); }

.cat-body { padding: 20px clamp(18px, 1.6vw, 24px) 24px; }
.cat-body h3 { font-size: var(--fs-h3); }
.cat-body p {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-soft);
}
.cat-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-gold-deep);
}
.cat-link svg {
  width: 15px; height: 15px;
  transition: transform var(--dur) var(--ease);
}
.cat-card:hover .cat-link svg { transform: translateX(4px); }

/* ---------- ②b 色卡式分类卡（暂时没有产品图时用这个） ----------
   背景是品牌色 + 金线纹样，中间一个线稿图标。
   真实产品图到位后：把 .cat-media--swatch 整体换成 <img> 即可，外层样式不用动。 */
.cat-media--swatch {
  display: grid;
  place-items: center;
  background-color: var(--sw, var(--c-green));
  background-image: url(../img/pattern-gold.svg);
  background-size: 108px 108px;
  background-blend-mode: soft-light;
  position: relative;
}
/* 三种品牌色，按卡片顺序轮换 */
.cat-card:nth-child(1) .cat-media--swatch { --sw: #2C4034; }
.cat-card:nth-child(2) .cat-media--swatch { --sw: #6A4F37; }
.cat-card:nth-child(3) .cat-media--swatch { --sw: #33465A; }

.cat-media--swatch::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 70% at 50% 42%, rgba(255,255,255,.07), transparent 70%);
  pointer-events: none;
}
.cat-icon {
  width: clamp(62px, 6vw, 84px);
  height: auto;
  color: rgba(247, 242, 232, .82);
  stroke-width: 1.1;
  transition: transform 1s var(--ease), color var(--dur) var(--ease);
}
.cat-card:hover .cat-icon { transform: translateY(-3px); color: rgba(247, 242, 232, .92); }

/* ---------- ③ 保障条 ---------- */
.assurance { background: var(--c-green); }
.assurance-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px clamp(20px, 3.4vw, 52px);
  padding-block: 23px;
}
.assurance-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  letter-spacing: .045em;
  color: rgba(247, 242, 232, .9);
}
.assurance-item svg {
  width: 17px; height: 17px;
  color: var(--c-gold);
  flex-shrink: 0;
}
.assurance-item + .assurance-item::before {
  content: "·";
  position: relative;
  left: calc(-1 * clamp(10px, 1.7vw, 26px));
  color: rgba(247, 242, 232, .32);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { min-height: 74vh; }
  .hero-emblem {
    right: -24%;
    width: 78vw;
    opacity: .3;
  }
  .hero-inner { max-width: 100%; }
  .hero-floral { width: 120px; opacity: .6; }
  .cats-grid { grid-template-columns: 1fr 1fr; }
  .cat-card:last-child { grid-column: 1 / -1; }
  .cat-card:last-child .cat-media { aspect-ratio: 16 / 8; }
}

@media (max-width: 560px) {
  .hero { min-height: 70vh; padding-block: 46px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .12em; line-height: 1.9; }
  .hero h1 { font-size: clamp(22px, 6.3vw, 30px); letter-spacing: 0; }
  .hero-sub { font-size: 14px; margin-top: 14px; max-width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cats-grid { grid-template-columns: 1fr; }
  .cat-card:last-child .cat-media { aspect-ratio: 4 / 3; }
  .cat-icon { width: 72px; }
  .assurance-inner { justify-content: flex-start; gap: 12px 18px; }
  .assurance-item + .assurance-item::before { display: none; }
  .assurance-item { font-size: 12.5px; }
}

/* ============================================================
   9. 明亮版 Hero（对照设计稿 image1）
   设计稿：浅暖白/浅绿底 + 左侧深墨绿文字 + 右侧模特与产品实景
   实现：浅色渐变打底，右侧白底产品图用 multiply 融进底色
   ============================================================ */
.hero--light {
  position: relative;
  /* 设计稿原始背景：壮锦墙 + 木格窗光影 + 四角花枝，外加一层深绿压色 */
  background-color: #33463C;
  background-image:
    linear-gradient(102deg, rgba(24,37,30,.52) 0%, rgba(26,40,32,.40) 46%, rgba(28,42,34,.30) 100%),
    url(../img/ai/bg-hero-light.jpg);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  overflow: hidden;
}

.hero--light .hl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(20px, 3.4vw, 56px);
  min-height: clamp(460px, 40vw, 600px);
  padding-block: clamp(40px, 4.6vw, 72px);
}

.hero--light .hl-copy {
  max-width: 620px;
  position: relative;
}
/* 柔光：让深色文字在纹理墙上清晰，但不留下可见边界 */
.hero--light .hl-copy::before {
  content: "";
  position: absolute;
  inset: -26% -34% -26% -26%;
  background: radial-gradient(ellipse 58% 62% at 42% 50%,
    rgba(20,32,26,.42) 0%,
    rgba(20,32,26,.26) 40%,
    rgba(20,32,26,.10) 64%,
    transparent 82%);
  z-index: -1;
  pointer-events: none;
}

.hero--light .eyebrow {
  color: #D9BE85;
  font-weight: 500;
  letter-spacing: .16em;
}

.hero--light h1 {
  color: #FBF7EE;
  margin-top: 14px;
  font-size: clamp(30px, 3.05vw, 44px);
  line-height: 1.16;
  letter-spacing: -.012em;
}

.hero--light .hero-sub {
  color: rgba(250,246,238,.82);
  margin-top: 16px;
  max-width: 30em;
}

.hero--light .hero-actions { margin-top: 26px; }

.hero--light .btn--outline {
  color: #FBF7EE;
  border-color: rgba(251,247,238,.42);
}
.hero--light .btn--outline:hover {
  background: #FBF7EE;
  color: var(--c-ink);
  border-color: #FBF7EE;
}

.hero--light .hl-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero--light .hl-media img {
  width: 100%;
  height: auto;
  display: block;
  /* 白底产品图：multiply 让白色完全透出背景墙，包体与阴影保留 */
  mix-blend-mode: multiply;
  filter: drop-shadow(0 26px 34px rgba(28, 42, 34, .22));
}

@media (max-width: 900px) {
  .hero--light .hl-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 34px 12px;
    min-height: 0;
  }
  .hero--light .hl-copy { order: 1; }
  .hero--light .hl-media { order: 2; max-width: 460px; margin-inline: auto; }
}

/* 分类卡：白底产品图，同样用 multiply 去掉白框 */
.cat-card .cat-media--product {
  background: linear-gradient(160deg, #FAF8F3, #F0F2EC);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cat-card .cat-media--product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8% 6%;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 74% 74% at 50% 50%, #000 64%, transparent 97%);
  mask-image: radial-gradient(ellipse 74% 74% at 50% 50%, #000 64%, transparent 97%);
  transition: transform .7s var(--ease);
}
.cat-card:hover .cat-media--product img { transform: scale(1.035); }

/* ============================================================
   Hero 第三套皮肤：.hero--design
   ============================================================ */
.hero--design {
  min-height: clamp(520px, 46vw, 720px);
  display: block;
  padding: 0;
  background: #2A3D31;
}
.hero--design .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  z-index: 0;
}
.hero--design .hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(14, 26, 20, .78) 0%,
      rgba(14, 26, 20, .52) 32%,
      rgba(14, 26, 20, .16) 54%,
      rgba(14, 26, 20, 0) 68%);
}
.hero--design .hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  min-height: clamp(520px, 46vw, 720px);
  padding-block: clamp(40px, 5vw, 76px) 0;
}
.hero--design .hero-copy {
  max-width: 640px;
  min-width: 0;
  padding-block: clamp(10px, 2vw, 30px);
}
.hero--design h1 {
  font-size: clamp(27px, 3.15vw, 46px);
  line-height: 1.16;
  letter-spacing: -.005em;
}
.hero--design .hero-sub { max-width: 30em; }
.hero--design .hero-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 30px;
}
.hero--design .hero-actions .btn {
  min-width: min(340px, 100%);
  justify-content: center;
}

/* 人物 + 包：同一容器内绝对定位叠放，换图只换文件 */
.hero--design .hero-figure {
  position: relative;
  height: 100%;
  min-height: clamp(440px, 44vw, 690px);
  align-self: end;
}
.hero--design .hero-model {
  position: absolute;
  bottom: 0;
  right: -4%;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom right;
}
.hero--design .hero-bags {
  position: absolute;
  bottom: 0;
  right: 52%;
  width: 34%;
  height: auto;
  /* 抠图自带棚拍地面阴影，用渐变蒙版把最底部那点阴影吃掉 */
  -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 86%, transparent 99%);
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .22));
}

/* 分类卡（设计稿版）：只要横图 + 标题 + 一句描述，没有箭头按钮 */
.cats--design { padding-block: clamp(34px, 4vw, 64px) clamp(56px, 6vw, 92px); }
.cat-card--design .cat-media { aspect-ratio: 4 / 3; }
.cat-card--design .cat-body { padding: 20px clamp(18px, 1.6vw, 26px) 24px; }
.cat-card--design .cat-body p { margin-top: 8px; }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .hero--design .hero-stage {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 44px 30px;
  }
  .hero--design { min-height: 0; }
  .hero--design .hero-veil {
    background: linear-gradient(180deg,
      rgba(14, 26, 20, .72) 0%,
      rgba(14, 26, 20, .5) 55%,
      rgba(14, 26, 20, .2) 100%);
  }
  .hero--design .hero-figure {
    min-height: 380px;
    margin-top: 18px;
  }
  .hero--design .hero-model { right: -6%; height: 100%; }
  .hero--design .hero-bags { width: 58%; right: 34%; bottom: 2%; }
  .hero--design .hero-actions .btn { min-width: 100%; }
}
