/* ==========================================================================
   鸿兴数字 · 企业官网
   简约大气 · 纸白 × 墨色 × 朱砂
   ========================================================================== */

:root {
  --paper: #f7f5f1;
  --paper-deep: #efede7;
  --ink: #1b1d21;
  --ink-soft: #55585f;
  --ink-faint: #8a8d94;
  --accent: #c23a1f;
  --accent-deep: #a02e17;
  --line: rgba(27, 29, 33, 0.12);
  --line-soft: rgba(27, 29, 33, 0.07);

  --font-display: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI",
    "Microsoft YaHei", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.55s;

  --header-h: 72px;
  --radius: 14px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
section { scroll-margin-top: var(--header-h); }

.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

::selection { background: var(--accent); color: #fff8f2; }

/* ==========================================================================
   顶部导航
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
    height 0.3s var(--ease-out);
}
.site-header.is-scrolled {
  height: 60px;
  background: rgba(247, 245, 241, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 38px; height: 38px; flex: none; transition: transform 0.35s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.brand-text small {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--ink-faint);
}

.site-nav { display: flex; gap: 0.4rem; }
.nav-link {
  position: relative;
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: calc(var(--header-h) + 5rem); overflow: hidden; }
.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
  margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.22;
  letter-spacing: 0.02em;
}
.hero-title span { display: block; }
.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.04em;
  height: 0.14em;
  background: rgba(194, 58, 31, 0.16);
  z-index: -1;
}
.hero-sub {
  max-width: 36em;
  margin-top: 1.8rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 2rem;
  border-radius: 999px;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(194, 58, 31, 0.5);
}
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* 产品截图漂移带 */
.hero-marquee {
  margin-top: 4.5rem;
  padding-bottom: 4rem;
  display: grid;
  gap: 1.4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  padding-inline-end: 1.4rem;
}
.marquee-row[data-dir="left"] .marquee-track { animation: drift-left 56s linear infinite; }
.marquee-row[data-dir="right"] .marquee-track { animation: drift-right 64s linear infinite; }
.hero-marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes drift-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes drift-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.marquee-track .shot {
  width: 148px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 14px 34px -14px rgba(27, 29, 33, 0.4);
}
.marquee-row:nth-child(2) .shot { width: 132px; }

/* ==========================================================================
   通用 Section
   ========================================================================== */
.section { padding-block: clamp(5rem, 10vw, 8.5rem); }
.section-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.section-eyebrow span {
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  margin-left: 0.5em;
  font-size: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.3;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   公司介绍
   ========================================================================== */
.about {
  background: linear-gradient(var(--paper) 0%, var(--paper-deep) 100%);
  border-block: 1px solid var(--line-soft);
}
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.about-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.about-body .lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}
.about-body p { color: var(--ink-soft); }

.about-facts {
  margin-top: 2.6rem;
  border-top: 1px solid var(--line);
}
.about-facts > div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.about-facts dt {
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  padding-top: 0.15em;
}
.about-facts dd { color: var(--ink); }
.about-facts dd a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.about-facts dd a:hover { border-color: var(--accent); }

/* ==========================================================================
   应用场景
   ========================================================================== */
.scenarios {
  background: #fffdf9;
  border-block: 1px solid var(--line-soft);
}
.scenarios-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.scenarios-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.scenarios-intro {
  margin-top: 1.4rem;
  color: var(--ink-soft);
  max-width: 26em;
}

.scenario-list { display: flex; flex-direction: column; }
.scenario-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.4s var(--ease-out);
}
.scenario-item:first-child { border-top: 1px solid var(--line); }
.scenario-item:hover { transform: translateX(6px); }
.scenario-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--ink-faint);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--ease-out);
}
.scenario-item:hover .scenario-num { color: var(--accent); }
.scenario-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}
.scenario-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* 数据条 */
.stats-block { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.stats-block .section-eyebrow { margin-bottom: 1.8rem; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem 2rem;
}
.stat {
  border-left: 2px solid color-mix(in oklab, var(--accent) 38%, transparent);
  padding-left: 1.4rem;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 4.8vw, 3.4rem);
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.stat-sub {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   产品展示
   ========================================================================== */
.products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}
.products-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  padding-bottom: 0.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.6rem;
}
.product-card {
  background: #fffdf9;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    border-color 0.4s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: 0 24px 44px -22px rgba(27, 29, 33, 0.28);
}
.product-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* 以产品主色调出的柔和渐变底，保持整体简约 */
  background:
    radial-gradient(72% 66% at 50% 44%, color-mix(in oklab, var(--c) 30%, transparent) 0%, transparent 70%),
    linear-gradient(168deg,
      color-mix(in oklab, var(--c) 10%, #fffdf9) 0%,
      color-mix(in oklab, var(--c) 24%, #fffdf9) 100%);
}
/* 图标后的细圆环，增加层次 */
.icon-ring {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--c) 32%, transparent);
  transition: transform 0.55s var(--ease-out), opacity 0.4s var(--ease-out);
}
.product-card:hover .icon-ring { transform: scale(1.12); opacity: 0.55; }

.card-icon {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 22%;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px color-mix(in oklab, var(--c) 42%, transparent));
  transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}
.product-card:hover .card-icon {
  transform: translateY(-5px) scale(1.05);
  filter: drop-shadow(0 18px 30px color-mix(in oklab, var(--c) 55%, transparent));
}

.card-icon-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg,
    color-mix(in oklab, var(--c) 88%, #fff) 0%,
    color-mix(in oklab, var(--c) 100%, #000 12%) 100%);
  color: #fffdf9;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  letter-spacing: 0;
}

.card-body { padding: 1.25rem 1.3rem 1.5rem; }
.card-tag {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
}
.card-slogan {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--ink-faint);
  transition: color 0.25s, gap 0.3s var(--ease-out);
}
.card-more svg { transition: transform 0.3s var(--ease-out); }
.product-card:hover .card-more { color: var(--accent); gap: 0.55rem; }
.product-card:hover .card-more svg { transform: translateX(2px); }

/* ==========================================================================
   联系方式
   ========================================================================== */
.contact {
  background: var(--ink);
  color: #ecebe7;
}
.contact .section-eyebrow { color: #e0684d; }
.contact .section-eyebrow span { color: rgba(236, 235, 231, 0.45); }
.contact .section-title { color: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.contact-lead {
  margin-top: 1.4rem;
  color: rgba(236, 235, 231, 0.65);
  max-width: 28em;
}

.contact-list { display: flex; flex-direction: column; }
.contact-item {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(236, 235, 231, 0.14);
}
.contact-item:first-child { border-top: 1px solid rgba(236, 235, 231, 0.14); }
.contact-label {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: rgba(236, 235, 231, 0.45);
}
.contact-item a, .contact-item address {
  font-style: normal;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  transition: color 0.25s;
}
.contact-item a:hover { color: #e0684d; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(236, 235, 231, 0.6);
  border-top: 1px solid rgba(236, 235, 231, 0.12);
  padding-block: 2.2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-nav { display: flex; gap: 1.4rem; font-size: 0.85rem; }
.footer-nav a { transition: color 0.25s; }
.footer-nav a:hover { color: #fff; }
.footer-icp { font-size: 0.8rem; letter-spacing: 0.04em; }
.footer-icp a { transition: color 0.25s; }
.footer-icp a:hover { color: #e0684d; }

/* ==========================================================================
   产品详情弹窗
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 21, 25, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.3s var(--ease-out);
}
.modal-panel {
  position: relative;
  width: min(900px, calc(100% - 2rem));
  min-height: min(82vh, 720px);
  max-height: 92vh;
  display: grid;
  grid-template-columns: 360px 1fr;
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.5);
  animation: panel-in 0.45s var(--ease-out);
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(251, 249, 244, 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s;
}
.modal-close:hover { transform: rotate(90deg); background: var(--accent); color: #fff; }

.modal-gallery {
  background: var(--ink);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}
.gallery-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(255,255,255,0.05), transparent 70%);
}
.gallery-main {
  position: absolute;
  inset: 0;
}
/* 关键：所有图以绝对定位层叠，margin:auto 居中，
   max 约束 + object-fit:contain 保证整图完整显示，杜绝高度/宽度被截断 */
.gallery-img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  will-change: opacity, transform;
}
.gallery-img.is-shown { opacity: 1; transform: translateY(0); }

/* 前后箭头 */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(251, 249, 244, 0.92);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s var(--ease-out), background 0.25s, color 0.25s;
}
.gallery-stage:hover .gallery-nav { opacity: 1; }
.gallery-prev { left: 0.7rem; }
.gallery-next { right: 0.7rem; }
.gallery-nav:hover { background: var(--accent); color: #fff; }
.gallery-nav:active { transform: translateY(-50%) scale(0.92); }

/* 播放/暂停 */
.gallery-playpause {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(20, 21, 25, 0.5);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out), background 0.25s;
}
.gallery-stage:hover .gallery-playpause,
.gallery-playpause:focus-visible { opacity: 1; }
.gallery-playpause:hover { background: var(--accent); }
.gallery-playpause .icon-play { display: none; }
.gallery-playpause.is-paused .icon-play { display: block; }
.gallery-playpause.is-paused .icon-pause { display: none; }

/* 进度条 */
.gallery-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
}
.gallery-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.gallery-thumbs button {
  flex: none;
  width: 44px;
  aspect-ratio: 9 / 16;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: none;
  opacity: 0.55;
  transition: opacity 0.25s, border-color 0.25s;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gallery-thumbs button:hover { opacity: 0.85; }
.gallery-thumbs button.is-active { border-color: var(--accent); opacity: 1; }

.modal-body {
  padding: 2.2rem 2.4rem;
  overflow-y: auto;
}
.modal-tag {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.modal-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
}
.modal-slogan {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.modal-features {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.modal-features li {
  font-size: 0.82rem;
  padding: 0.32rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: #fffdf9;
}
.modal-desc {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.94rem;
  line-height: 1.95;
  color: var(--ink-soft);
  white-space: pre-line;
}

/* ==========================================================================
   滚动渐入动效
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 900px) {
  .about-grid, .contact-grid, .scenarios-grid { grid-template-columns: 1fr; }
  .about-head { position: static; }
  .modal-panel { grid-template-columns: 1fr; max-height: 90vh; }
  .modal-gallery { flex-direction: row; padding: 1.2rem; max-height: 300px; }
  .gallery-main { min-height: 0; }
  .gallery-thumbs { flex-direction: column; width: 56px; max-height: 100%; }
  .gallery-thumbs button { width: 100%; }
  .modal-body { padding: 1.8rem 1.6rem; }
  .products-head { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  /* 触屏无 hover，常显控制按钮 */
  .gallery-nav, .gallery-playpause { opacity: 1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  /* 关键：backdrop-filter 会把 fixed 定位的全屏导航限制在头部盒子内，移动端须移除 */
  .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(247, 245, 241, 0.96);
  }
  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(247, 245, 241, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .nav-link {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    padding: 0.8rem 1.4rem;
  }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--accent); }

  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1.4rem; }
  .hero-marquee { margin-top: 3rem; padding-bottom: 2.5rem; gap: 1rem; }
  .marquee-track { gap: 1rem; padding-inline-end: 1rem; }
  .marquee-track .shot { width: 116px; }
  .marquee-row:nth-child(2) .shot { width: 104px; }
  .hero { padding-top: calc(var(--header-h) + 3.2rem); }
  .about-facts > div { grid-template-columns: 5.2em 1fr; gap: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   降低动效偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-row[data-dir="left"] .marquee-track,
  .marquee-row[data-dir="right"] .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
