/* ============================================================
   首页专属 · 国风 × 现代企业骨架
   （吸收现代版的信息密度与动效，保留纸·墨·金·印章的气质）
   ============================================================ */

/* ---------- 滚动渐入（动效 1） ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .72, .24, 1); }
  [data-reveal].in { opacity: 1; transform: none; }
  [data-reveal][data-d="1"] { transition-delay: .08s; }
  [data-reveal][data-d="2"] { transition-delay: .16s; }
  [data-reveal][data-d="3"] { transition-delay: .24s; }
  [data-reveal][data-d="4"] { transition-delay: .32s; }
  [data-reveal][data-d="5"] { transition-delay: .40s; }
}
/* 打印 / 无脚本兜底：始终显示内容，避免渐入态把内容藏起来 */
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* ---------- 导航：滚动后加投影（打磨） ---------- */
.yh-header { transition: box-shadow .3s, background .3s; }
.yh-header.scrolled { box-shadow: 0 10px 30px rgba(62, 44, 23, .08); background: rgba(247, 241, 228, .97); }

/* ============================================================
   英雄区 · 整屏大图轮播（每屏图文叠在图上）
   ============================================================ */
.hero { position: relative; overflow: hidden; isolation: isolate; background: #1a120a; }
.hero-track { position: relative; min-height: clamp(540px, 86vh, 820px); }

/* 单屏：绝对堆叠，淡入淡出切换 */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease;
  z-index: 0;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

/* 背景大图：铺满，轮播时保持原始尺寸 */
.hero-bg {
  position: absolute; inset: 0;
  background-position: 50% 42%; background-size: cover; background-repeat: no-repeat;
}
.hero-product {
  position: absolute;
  right: clamp(92px, 12vw, 180px);
  bottom: clamp(54px, 8vw, 118px);
  width: min(33vw, 420px);
  max-height: 68%;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, .34));
  pointer-events: none;
}

/* 暗色蒙版：左深右浅 + 底部加重，保证左侧浅色文字清晰可读 */
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(22, 15, 7, .78) 0%, rgba(22, 15, 7, .55) 34%, rgba(22, 15, 7, .18) 62%, rgba(22, 15, 7, .08) 100%),
    linear-gradient(0deg, rgba(22, 15, 7, .45) 0%, rgba(22, 15, 7, 0) 36%);
}

/* 文字层 */
.hero-in {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  min-height: clamp(540px, 86vh, 820px); display: flex; align-items: center;
}
.hero-content { max-width: 640px; padding: 60px 0; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; letter-spacing: .14em; color: #f3e7cf;
  border: 1px solid rgba(247, 241, 228, .42); border-radius: 999px;
  padding: 9px 22px; margin-bottom: 30px; white-space: nowrap;
  background: rgba(22, 15, 7, .28); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.hero-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--seal); box-shadow: 0 0 0 3px rgba(194, 51, 30, .3); }
.hero h1 {
  font-family: var(--brush); font-weight: 700;
  font-size: clamp(40px, 4.7vw, 64px);
  line-height: 1.28; letter-spacing: .06em; color: #fdfaf3;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero h1 span { display: inline-block; white-space: nowrap; }
.hero h1 em { font-style: normal; color: #ffd9a0; }   /* 高亮：暖金，叠深图上比印章红更醒目 */
.hero-sub {
  margin-top: 24px; font-size: 16.5px; color: rgba(253, 250, 243, .86);
  max-width: 500px; text-wrap: pretty; line-height: 2;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .34);
}
.hero-cta { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
/* 深底上的次按钮：浅色描边幽灵按钮（覆盖 .yh-btn-ghost 的深色字） */
.yh-btn-ghost-light {
  border: 1px solid rgba(253, 250, 243, .6); color: #fdfaf3; background: rgba(253, 250, 243, .06);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.yh-btn-ghost-light:hover { background: rgba(253, 250, 243, .16); border-color: #fdfaf3; }

/* 左右切换箭头 */
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(253, 250, 243, .4); background: rgba(22, 15, 7, .32);
  color: #fdfaf3; font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s, opacity .2s; opacity: .6;
}
.hero-nav:hover { opacity: 1; background: rgba(22, 15, 7, .5); border-color: #fdfaf3; }
.hero-nav.prev { left: clamp(12px, 3vw, 34px); }
.hero-nav.next { right: clamp(12px, 3vw, 34px); }

/* 底部圆点（可点击） */
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 5;
  display: flex; gap: 10px; align-items: center; justify-content: center;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(253, 250, 243, .7); background: transparent;
  transition: width .25s, background .2s, border-color .2s;
}
.hero-dot.on { width: 26px; border-radius: 6px; background: var(--seal); border-color: var(--seal); }

/* 降低动效偏好：关闭淡入过渡 */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.is-active .hero-bg { animation: none; }
}

/* 移动端 */
@media (max-width: 760px) {
  .hero-track, .hero-in { min-height: clamp(440px, 76vh, 600px); }
  .hero-product {
    right: 18px;
    bottom: 34px;
    width: min(48vw, 220px);
    opacity: .88;
  }
  .hero-content { padding: 40px 0; }
  .hero h1 span { white-space: normal; }
  .hero-sub { font-size: 15px; }
  .hero-nav { display: none; }
}

/* ============================================================
   特色条 · 四大卖点（紧贴英雄区下方）
   ============================================================ */
.feats { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feats-in {
  max-width: var(--maxw); margin: 0 auto; padding: 42px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.feat { display: flex; align-items: center; gap: 18px; padding: 6px 26px; position: relative; }
.feat:first-child { padding-left: 8px; }
.feat:last-child { padding-right: 8px; }
.feat + .feat::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line);
}
.feat-ico {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--gold); position: relative; display: grid; place-items: center;
  font-family: var(--brush); font-size: 29px; color: var(--gold-deep); line-height: 1;
}
.feat-ico::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  border: 1px dashed rgba(184, 116, 26, .42);
}
.feat-tx b { display: block; font-size: 17px; letter-spacing: .03em; color: var(--ink); font-weight: 700; white-space: nowrap; }
.feat-tx p { margin-top: 7px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }

/* ============================================================
   数字凭证（替代「栏板」三大支柱 · 纯留白、无边框无分隔）
   ============================================================ */
.creds { padding: 78px 0 6px; }
.creds-in { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.creds-head { text-align: center; margin-bottom: 46px; }
.creds-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px 24px; text-align: center;
}
.cred b {
  display: block; font-family: var(--brush); font-weight: 700;
  font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--ink);
  letter-spacing: .02em;
}
.cred b i { font-style: normal; font-size: .42em; color: var(--gold); margin-left: 4px; letter-spacing: .04em; }
.cred .lab { margin-top: 14px; font-size: 14.5px; letter-spacing: .08em; color: var(--ink-soft); }
.cred .sub { margin-top: 4px; font-size: 12px; letter-spacing: .04em; color: var(--ink-faint); }

/* ============================================================
   关于烨鸿 · 公司简介带（吸收现代版 · 暖纸底）
   ============================================================ */
.about { background: var(--paper-deep); margin-top: 86px; padding: 92px 0; position: relative; }
.about-band { display: grid; grid-template-columns: .92fr 1.08fr; gap: 70px; align-items: center; }
.about-img { position: relative; }
.about-img .corner { position: absolute; width: 46px; height: 46px; pointer-events: none; }
.about-img .corner.tl { top: -10px; left: -10px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.about-img .corner.br { bottom: -10px; right: -10px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.about-band h2 { margin-top: 4px; }
.about-graf { margin-top: 20px; font-size: 15.5px; color: var(--ink-soft); max-width: 540px; line-height: 2; text-wrap: pretty; }
/* 能力点：无分隔线，靠金色短挑 + 留白（非栏板） */
.about-points { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.about-point { position: relative; padding-top: 16px; }
.about-point::before { content: ""; position: absolute; top: 0; left: 0; width: 26px; height: 2px; background: var(--gold); }
.about-point b { display: block; font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.about-point span { display: block; margin-top: 5px; font-size: 13.5px; color: var(--ink-soft); }
.about-more {
  margin-top: 36px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; letter-spacing: .18em; color: var(--gold-deep);
  border-bottom: 1px solid var(--gold); padding-bottom: 4px; transition: gap .2s, color .2s, border-color .2s;
}
.about-more:hover { gap: 14px; color: var(--ink); border-color: var(--ink); }

/* ============================================================
   石磨工艺 · 六道工序（毛笔流式 · 非栏板）
   ============================================================ */
.craft-band { display: grid; grid-template-columns: 1fr 1.04fr; gap: 64px; align-items: center; }
.craft-img { position: relative; }
.craft-img #home-craft {
  border-radius: 10px;
  clip-path: inset(0 round 10px);
  overflow: hidden;
}
.craft-img #home-craft::part(frame) { border-radius: 10px !important; }
.craft-img .corner { position: absolute; width: 46px; height: 46px; pointer-events: none; }
.craft-img .corner.tl { top: -10px; left: -10px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.craft-img .corner.br { bottom: -10px; right: -10px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.steps { margin-top: 28px; display: grid; gap: 4px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px dashed var(--line);
}
.step:last-child { border-bottom: none; }
.step .zi { font-family: var(--brush); font-weight: 700; font-size: 30px; color: var(--seal); line-height: 1; }
.step h4 { font-size: 16.5px; letter-spacing: .1em; }
.step h4 i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-left: 10px; letter-spacing: .1em; }
.step p { margin-top: 5px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }

/* ============================================================
   品质实力 · 四环节（吸收现代版深色板 · 无分隔线）
   ============================================================ */
.quality {
  margin-top: 100px; padding: 96px 0;
  background: #241a0f; color: #cfc2ab;
  border-top: 4px solid var(--gold);
  background-image: repeating-linear-gradient(115deg, rgba(239, 229, 208, .026) 0 2px, transparent 2px 9px);
}
.quality .yh-kicker { color: var(--gold); }
.quality .yh-kicker::before { background: var(--gold); }
.quality .yh-h2 { color: #f3ead6; }
.quality .yh-h2 .brush { color: var(--gold); }
.q-link { font-size: 14px; letter-spacing: .18em; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 4px; transition: color .2s, border-color .2s; white-space: nowrap; }
.q-link:hover { color: #f3ead6; border-color: #f3ead6; }
.q-grid { margin-top: 54px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.q-cell {
  display: block; color: inherit; padding: 30px 26px 28px;
  border: 1px solid rgba(207, 194, 171, .16); border-radius: 12px;
  background: rgba(253, 250, 243, .015);
  transition: transform .25s, background .25s, border-color .25s;
}
.q-cell:hover { transform: translateY(-5px); background: rgba(253, 250, 243, .04); border-color: rgba(184, 116, 26, .55); }
.q-cell .num { font-family: var(--brush); font-weight: 700; font-size: 34px; color: var(--gold); line-height: 1; }
.q-cell h3 { margin-top: 16px; font-size: 19px; letter-spacing: .08em; color: #f3ead6; }
.q-cell p { margin-top: 12px; font-size: 13.5px; line-height: 1.95; color: #b3a486; }
.q-cell .go { display: inline-block; margin-top: 18px; font-size: 12.5px; letter-spacing: .2em; color: var(--gold); transition: letter-spacing .2s; }
.q-cell:hover .go { letter-spacing: .3em; }

/* ============================================================
   产品精选（保留国风卡片 + 双系列说明，去掉系列分隔卡边框）
   ============================================================ */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-link { font-size: 14px; letter-spacing: .18em; color: var(--gold-deep); border-bottom: 1px solid var(--gold); padding-bottom: 4px; transition: gap .2s, color .2s, border-color .2s; white-space: nowrap; }
.sec-link:hover { color: var(--ink); border-color: var(--ink); }
.series-note { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 36px; font-size: 14px; color: var(--ink-soft); }
.series-note span { display: inline-flex; gap: 10px; align-items: baseline; }
.series-note b { font-family: var(--brush); color: var(--seal); font-size: 17px; }
.prod-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card { display: flex; flex-direction: column; }
.prod-card .pad { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-card h3 { font-size: 18px; letter-spacing: .08em; }
.prod-card small { color: var(--gold-deep); font-size: 12px; letter-spacing: .18em; }
.prod-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }
.prod-card .go { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--gold-deep); letter-spacing: .2em; transition: letter-spacing .2s; }
.prod-card:hover .go { letter-spacing: .3em; }

/* ============================================================
   资讯（暖纸底 · 国风卡片）
   ============================================================ */
.news { background: var(--paper-deep); margin-top: 96px; padding: 92px 0; }
.news-grid { margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; background: var(--paper-card); }
.news-card:hover h3 { color: var(--seal); }
.news-card time { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: .06em; }
.news-card .cat { align-self: flex-start; font-size: 11.5px; letter-spacing: .2em; color: var(--gold-deep); border: 1px solid var(--gold); border-radius: 999px; padding: 3px 12px; }
.news-card .cat.health { color: var(--seal); border-color: var(--seal); }
.news-card h3 { font-size: 17.5px; line-height: 1.6; letter-spacing: .04em; transition: color .2s; }
.news-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.85; }
.news ~ .yh-footer { margin-top: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .hero-photo { width: 100%; background-position: 62% 40%; }
  .hero-photo img {
    right: 18px;
    bottom: 30px;
    width: min(48vw, 220px);
    opacity: .82;
  }
  .hero-photo::after {
    background:
      linear-gradient(180deg, rgba(247, 241, 228, .82) 0%, rgba(247, 241, 228, .5) 46%, rgba(247, 241, 228, .12) 100%),
      linear-gradient(90deg, var(--paper) 4%, rgba(247, 241, 228, .55) 46%, rgba(247, 241, 228, 0) 86%);
  }
  .hero-in { min-height: 540px; }
  .hero-content { padding: 52px 0; }
  .hero-vpill, .hero-dots { display: none; }
  .feats-in { grid-template-columns: 1fr 1fr; gap: 6px 0; padding: 30px 24px; }
  .feat { padding: 16px 18px; }
  .feat + .feat::before { display: none; }
  .creds-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .about-band { grid-template-columns: 1fr; gap: 40px; }
  .about-points { gap: 22px 36px; }
  .craft-band { grid-template-columns: 1fr; gap: 40px; }
  .q-grid { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feats-in { grid-template-columns: 1fr; }
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .q-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
}
