/* ==========================================================================
   CNCfact 首页专用样式
   依赖 style.css 中的设计令牌（--cf-*）
   ========================================================================== */

/* 无障碍跳转 */
.cf-skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--cf-accent);
  color: #fff;
  font-size: 13px;
  border-radius: 2px;
  transition: top 0.2s ease;
}
.cf-skip:focus { top: 16px; }

/* 锚点滚动补偿固定页头 */
.cf-hero,
.cf-section { scroll-margin-top: calc(var(--cf-hdr) + 4px); }

/* ==========================================================================
   1. 首屏：三大业务全屏轮播
   ========================================================================== */
.cf-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  background: var(--cf-ink-950);
  overflow: hidden;
  isolation: isolate;
}
.cf-hero__slides { position: absolute; inset: 0; }
.cf-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--cf-ease), visibility 1s;
}
.cf-hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.cf-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 9s linear;
}
.cf-hero__slide.is-active .cf-hero__img { transform: scale(1); }
.cf-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 12, 18, 0.94) 0%, rgba(5, 12, 18, 0.82) 34%, rgba(5, 12, 18, 0.38) 68%, rgba(5, 12, 18, 0.62) 100%),
    linear-gradient(0deg, rgba(5, 12, 18, 0.78) 0%, rgba(5, 12, 18, 0) 52%);
}

.cf-hero__copy {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-48%);
  padding-top: var(--cf-hdr);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}
.cf-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.cf-hero__kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--cf-accent);
}
.cf-hero__kicker span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 22px;
  background: var(--cf-accent);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.cf-hero .cf-hero__title {
  max-width: 900px;
  font-size: clamp(2.5rem, 5.1vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-weight: 650;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}
.cf-hero__lede {
  max-width: 585px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.7);
}
.cf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* 底部居中：三条短线进度 + 鼠标下翻提示 */
.cf-hero__nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(22px, 3vw, 40px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cf-hero__bars {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cf-hero__bar {
  position: relative;
  width: clamp(44px, 4.2vw, 64px);
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.26);
  cursor: pointer;
  transition: background 0.25s ease;
}
.cf-hero__bar::after {
  content: "";
  position: absolute;
  inset: -14px 0;
}
.cf-hero__bar i {
  position: absolute;
  inset: 0;
  display: block;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.cf-hero__bar:hover { background: rgba(255, 255, 255, 0.44); }
.cf-hero__bar:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 7px;
}
.cf-hero.is-running .cf-hero__bar.is-active i { animation: cfHeroProgress 7s linear forwards; }
@keyframes cfHeroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 鼠标下翻提示 */
.cf-hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.cf-hero__hint:hover { color: #fff; }
.cf-hero__mouse {
  position: relative;
  display: block;
  width: 16px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 9px;
  transition: border-color 0.25s ease;
}
.cf-hero__hint:hover .cf-hero__mouse { border-color: #fff; }
.cf-hero__mouse i {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 2px;
  height: 6px;
  margin-left: -1px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.9);
  animation: cfMouseWheel 1.8s var(--cf-ease) infinite;
}
@keyframes cfMouseWheel {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; }
  70% { opacity: 1; transform: translateY(7px); }
  100% { opacity: 0; transform: translateY(9px); }
}

/* ==========================================================================
   2. 机床展示
   ========================================================================== */
.cf-machines__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.cf-machine {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius);
  overflow: hidden;
  transition: transform 0.3s var(--cf-ease), box-shadow 0.3s var(--cf-ease), border-color 0.3s ease;
}
.cf-machine:hover {
  transform: translateY(-4px);
  border-color: var(--cf-slate-300);
  box-shadow: 0 24px 48px rgba(10, 22, 31, 0.1);
}
.cf-machine__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--cf-paper);
  overflow: hidden;
}
.cf-machine__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--cf-ease);
}
.cf-machine:hover .cf-machine__media img { transform: scale(1.035); }
.cf-machine__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(20px, 2.2vw, 28px);
}
.cf-machine__tag,
.cf-aux-card__tag {
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cf-accent);
}
.cf-machine h3 { margin-bottom: 10px; }
.cf-machine__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--cf-slate-500);
}
.cf-spec {
  margin: 20px 0 22px;
  border-top: 1px solid var(--cf-line);
}
.cf-spec > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--cf-line);
  font-size: 12.5px;
}
.cf-spec dt { color: var(--cf-slate-400); }
.cf-spec dd {
  margin: 0;
  font-weight: 600;
  color: var(--cf-ink-900);
  text-align: right;
}
.cf-machine .cf-link { margin-top: auto; }

/* ==========================================================================
   3. 机加工
   ========================================================================== */
.cf-machining__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
}
.cf-machining__media { position: relative; }
.cf-machining__media > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--cf-radius);
}
.cf-machining__badge {
  position: absolute;
  right: clamp(-16px, -1.6vw, 0px);
  bottom: clamp(18px, 3vw, 36px);
  padding: 18px 24px;
  background: var(--cf-accent);
  color: #fff;
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}
.cf-machining__badge b {
  display: block;
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
}
.cf-machining__badge span {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.cf-machining__copy > h2 { margin-top: 14px; }
.cf-cap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 30px 0 6px;
}
.cf-cap li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.8px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
}
.cf-cap svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--cf-accent);
}
.cf-machining__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0 32px;
  background: var(--cf-line-dark);
  border: 1px solid var(--cf-line-dark);
}
.cf-machining__stats > div { background: var(--cf-ink-900); padding: 16px 18px; }
.cf-machining__stats b {
  display: block;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}
.cf-machining__stats span {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   4. 辅助设备 + 业务范围
   ========================================================================== */
.cf-aux__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.cf-aux-card {
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius);
  overflow: hidden;
  padding-bottom: 26px;
  transition: transform 0.3s var(--cf-ease), box-shadow 0.3s var(--cf-ease);
}
.cf-aux-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(10, 22, 31, 0.09);
}
.cf-aux-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cf-paper-2); }
.cf-aux-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cf-aux-card__tag { margin: 22px 26px 8px; }
.cf-aux-card h3 { margin: 0 26px 10px; }
.cf-aux-card__desc {
  margin: 0 26px 18px;
  font-size: 14.2px;
  line-height: 1.68;
  color: var(--cf-slate-500);
}
.cf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 26px;
}
.cf-chips li {
  padding: 4px 9px;
  border: 1px solid var(--cf-line);
  border-radius: 2px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cf-slate-500);
}

.cf-scope {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(30px, 4vw, 60px);
  padding: clamp(28px, 4vw, 56px);
  background: var(--cf-ink-900);
  border-radius: var(--cf-radius);
  color: rgba(255, 255, 255, 0.66);
}
.cf-scope h3 {
  margin: 14px 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.95rem);
  color: #fff;
}
.cf-scope__head > p:last-child { margin: 0; font-size: 14.5px; line-height: 1.7; }
.cf-scope__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-self: start;
}
.cf-scope__list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  background: var(--cf-ink-900);
}
.cf-scope__list span {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cf-accent);
}
.cf-scope__list b { font-size: 14px; font-weight: 600; color: #fff; }
.cf-scope__list em {
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.46);
}

/* ==========================================================================
   5. 应用行业
   ========================================================================== */
.cf-ind__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
}
/* 移动端左右箭头（桌面隐藏） */
.cf-ind__arrows { display: none; }
.cf-ind-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--cf-radius);
  background: var(--cf-ink-800);
  isolation: isolate;
}
.cf-ind-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.8s var(--cf-ease), opacity 0.4s ease;
}
.cf-ind-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 14, 20, 0.05) 30%, rgba(6, 14, 20, 0.9) 100%);
}
.cf-ind-card:hover img { transform: scale(1.05); opacity: 1; }
.cf-ind-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px;
}
.cf-ind-card__num {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cf-accent);
}
.cf-ind-card h3 { color: #fff; font-size: 1.16rem; margin-bottom: 6px; }
.cf-ind-card p {
  margin: 0;
  font-size: 12.2px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.66);
}

/* ==========================================================================
   6. 客户 logo 滚动 + 案例
   ========================================================================== */
.cf-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--cf-line);
  border-bottom: 1px solid var(--cf-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.cf-marquee + .cf-marquee { border-top: 0; }
.cf-marquee__track {
  display: flex;
  width: max-content;
  animation: cfMarquee 46s linear infinite;
}
.cf-marquee:hover .cf-marquee__track { animation-play-state: paused; }
.cf-marquee--slow .cf-marquee__track { animation-duration: 62s; }
@keyframes cfMarquee {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
.cf-logo {
  flex: 0 0 auto;
  width: clamp(168px, 15vw, 216px);
  height: 92px;
  display: grid;
  place-items: center;
  padding: 0 24px;
  border-right: 1px solid var(--cf-line);
}
.cf-logo img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.cf-logo:hover img { opacity: 1; filter: grayscale(0); }

.cf-cases__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: clamp(34px, 4vw, 58px) 0 20px;
  padding-top: 26px;
  border-top: 1px solid var(--cf-line);
}
.cf-cases__head h3 { font-size: 1.18rem; }
.cf-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}
.cf-case {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--cf-ease);
}
.cf-case:hover {
  border-color: var(--cf-slate-300);
  box-shadow: 0 18px 38px rgba(10, 22, 31, 0.08);
  transform: translateY(-2px);
}
.cf-case__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--cf-paper-2);
}
.cf-case__media img { width: 100%; height: 100%; object-fit: cover; }
.cf-case__body { display: block; }
.cf-case__tag {
  display: block;
  margin-bottom: 6px;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cf-accent);
}
.cf-case__body b {
  display: block;
  font-size: 13.6px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--cf-ink-900);
}
.cf-case__body em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  font-style: normal;
  font-size: 12.2px;
  line-height: 1.5;
  color: var(--cf-slate-500);
}

/* ==========================================================================
   7. 公司简介 + 视频
   ========================================================================== */
.cf-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.cf-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--cf-radius);
  background: var(--cf-ink-800);
  isolation: isolate;
}
.cf-video > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.9s var(--cf-ease);
}
.cf-video:hover > img { transform: scale(1.03); }
.cf-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 12, 18, 0.05) 40%, rgba(5, 12, 18, 0.55) 100%);
  pointer-events: none;
}
.cf-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: clamp(64px, 6vw, 86px);
  height: clamp(64px, 6vw, 86px);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--cf-ink-900);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--cf-ease);
}
.cf-video__play::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: cfPulse 2.6s ease-out infinite;
}
.cf-video__play:hover { background: var(--cf-accent); color: #fff; transform: translate(-50%, -50%) scale(1.05); }
.cf-video__play svg { width: 30px; height: 30px; margin-left: 3px; }
@keyframes cfPulse {
  0% { transform: scale(0.94); opacity: 0.9; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { opacity: 0; }
}
.cf-video__badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 8px 12px;
  background: rgba(6, 14, 20, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
}
.cf-about__copy > h2 { margin-top: 14px; }
.cf-about__copy > p:not(.cf-kicker):not(.cf-lede) {
  margin-top: 18px;
  font-size: 14.8px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.58);
}
.cf-about__copy .cf-stats { margin-top: 32px; }
.cf-about__copy .cf-stats b { white-space: nowrap; font-size: clamp(1.3rem, 1.85vw, 1.85rem); }

/* 首页「关于工厂」区：进入 About 页的文字链接 */
.cf-about__more {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  transition: color .2s ease, border-color .2s ease, gap .2s ease;
}
.cf-about__more svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--cf-accent, #E85D26); }
.cf-about__more:hover {
  color: #fff;
  border-color: var(--cf-accent, #E85D26);
  gap: 14px;
}
@media (max-width: 760px) {
  .cf-about__more { font-size: 13px; margin-top: 22px; align-items: flex-start; }
}

/* 视频弹窗 */
.cf-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(4, 10, 15, 0.95);
}
.cf-modal.is-open { display: flex; }
.cf-modal__box {
  position: relative;
  width: min(1280px, 100%);
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.cf-modal__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.cf-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(7, 15, 21, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cf-modal__close:hover { background: var(--cf-accent); border-color: var(--cf-accent); }
.cf-modal__close svg { width: 20px; height: 20px; }
.cf-modal__bigplay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--cf-ink-900);
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 3;
}
.cf-modal__bigplay svg { width: 34px; height: 34px; margin-left: 4px; }
.cf-modal__box.is-playing .cf-modal__bigplay { opacity: 0; transform: translate(-50%, -50%) scale(0.9); pointer-events: none; }
.cf-modal__box:not(.is-playing) .cf-i-pause { display: none; }
.cf-modal__box.is-playing .cf-i-play { display: none; }
.cf-modal__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cf-modal__box:hover .cf-modal__controls,
.cf-modal__box.is-paused .cf-modal__controls,
.cf-modal__controls:focus-within { opacity: 1; }
.cf-modal__controls button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: 0.86;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.cf-modal__controls button:hover { opacity: 1; color: var(--cf-accent); }
.cf-modal__controls button svg { width: 20px; height: 20px; }
.cf-modal__time {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums;
  min-width: 40px;
  text-align: center;
}
.cf-modal__range {
  flex: 1;
  height: 4px;
  accent-color: var(--cf-accent);
  cursor: pointer;
}
.cf-modal__error {
  margin: 0;
  padding: 12px 18px;
  background: #2a1208;
  color: #ffb28e;
  font-size: 12.5px;
  text-align: center;
}
.cf-modal__error code { color: #fff; }

/* ---- 画框内视频播放（替代弹窗） ---- */
.cf-video__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--cf-ink-800);
  z-index: 1;
}
.cf-video.is-playing .cf-video__play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.cf-video.is-playing::after { opacity: 0.35; transition: opacity 0.3s ease; }
.cf-video__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
  color: #fff;
  transition: opacity 0.25s ease;
}
.cf-video__controls button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.cf-video__controls button:hover { opacity: 1; color: var(--cf-accent); }
.cf-video__controls button svg { width: 19px; height: 19px; }
.cf-video__time {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: center;
}
.cf-video__range {
  flex: 1;
  height: 4px;
  accent-color: var(--cf-accent);
  cursor: pointer;
}
.cf-video.is-playing .cf-i-play { display: none; }
.cf-video:not(.is-playing) .cf-i-pause { display: none; }
.cf-video__error {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 54px;
  z-index: 4;
  margin: 0;
  padding: 10px 16px;
  background: rgba(42, 18, 8, 0.92);
  color: #ffb28e;
  font-size: 12.5px;
  text-align: center;
}
.cf-video__error code { color: #fff; }
.cf-video__badge { top: 14px; bottom: auto; }

/* ==========================================================================
   8. 公司优势
   ========================================================================== */
.cf-adv__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--cf-line);
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius);
  overflow: hidden;
}
.cf-adv-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 38px);
  background: #fff;
  transition: background 0.3s ease;
}
.cf-adv-card:hover { background: #fbfcfc; }
.cf-adv-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.cf-adv-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 2px;
  background: var(--cf-accent-soft);
  color: var(--cf-accent);
}
.cf-adv-card__icon svg { width: 26px; height: 26px; }
.cf-adv-card__num {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--cf-slate-300);
}
.cf-adv-card h3 { margin-bottom: 10px; }
.cf-adv-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--cf-slate-500);
}

/* ==========================================================================
   9. 合作流程
   ========================================================================== */
.cf-flow__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.cf-flow__list::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cf-line);
}
.cf-flow__step {
  position: relative;
  padding: 0 clamp(10px, 1.4vw, 22px) 0 0;
}
.cf-flow__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--cf-accent);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.cf-flow__step:hover .cf-flow__num {
  background: var(--cf-accent);
  border-color: var(--cf-accent);
  color: #fff;
}
.cf-flow__step h3 {
  margin-bottom: 8px;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.cf-flow__step p {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.66;
  color: var(--cf-slate-500);
}

/* ==========================================================================
   10. 响应式
   ========================================================================== */
@media (max-width: 1120px) {
  .cf-machines__grid,
  .cf-aux__grid,
  .cf-adv__grid,
  .cf-cases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-machining__grid,
  .cf-about__grid { grid-template-columns: 1fr; }
  .cf-machining__media { order: -1; }
  .cf-ind__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cf-ind-card:nth-child(4),
  .cf-ind-card:nth-child(5) { aspect-ratio: 4 / 3; }
  .cf-scope { grid-template-columns: 1fr; }
  .cf-flow__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .cf-flow__list::before { display: none; }
}

@media (max-width: 860px) {
  /* 移动端压缩首屏高度：文案整体上移，进度线与鼠标提示保持在首屏内 */
  .cf-hero {
    height: 86svh;
    min-height: 540px;
    max-height: 760px;
  }
  .cf-hero__copy { top: auto; bottom: 104px; transform: none; padding-top: 0; }
  .cf-hero__title { font-size: clamp(1.9rem, 8.2vw, 2.6rem); }
  .cf-hero__lede { margin-top: 14px; font-size: 14.5px; }
  .cf-hero__actions { margin-top: 20px; width: 100%; }
  .cf-hero__actions .cf-btn { flex: 1 1 auto; }
  .cf-hero__nav { bottom: 16px; gap: 12px; }
  .cf-hero__bar { width: 42px; }
  .cf-machines__grid,
  .cf-aux__grid,
  .cf-adv__grid,
  .cf-cases__grid { grid-template-columns: 1fr; }
  .cf-ind__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .cf-ind__grid::-webkit-scrollbar { display: none; }
  .cf-ind-card { scroll-snap-align: start; aspect-ratio: 4 / 5; }
  .cf-ind-card:nth-child(4),
  .cf-ind-card:nth-child(5) { aspect-ratio: 4 / 5; }

  /* 横向拖动提示：橙色左右箭头 */
  .cf-ind__arrows {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    /* 给右下角浮动咨询按钮让位，避免叠在一起 */
    padding-right: 54px;
  }
  .cf-ind__arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--cf-accent);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(232, 93, 38, 0.32);
    transition: background 0.22s var(--cf-ease), transform 0.22s var(--cf-ease), opacity 0.22s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .cf-ind__arrow svg { width: 18px; height: 18px; }
  .cf-ind__arrow:hover { background: var(--cf-accent-dark); transform: translateY(-2px); }
  .cf-ind__arrow:active { transform: scale(0.96); }
  .cf-ind__arrow[disabled] {
    opacity: 0.3;
    cursor: default;
    box-shadow: none;
    transform: none;
  }
  .cf-scope__list { grid-template-columns: 1fr; }
  .cf-flow__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-cap { grid-template-columns: 1fr; }
  .cf-machining__badge { right: 16px; bottom: 16px; padding: 14px 18px; }
  .cf-case { grid-template-columns: 88px minmax(0, 1fr); }
  .cf-modal { padding: 0; }
  .cf-modal__box { border-radius: 0; }
  .cf-modal__controls { opacity: 1; padding: 12px 12px 10px; }
}

@media (max-width: 560px) {
  .cf-flow__list { grid-template-columns: 1fr; }
  .cf-machining__stats { grid-template-columns: 1fr; }
  .cf-machining__stats > div { padding: 12px 16px; }
  .cf-logo { width: 150px; height: 78px; padding: 0 18px; }
  .cf-logo img { max-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-hero__img,
  .cf-hero__slide { transition: none; }
  .cf-hero__slide.is-active .cf-hero__img { transform: none; }
  .cf-hero__bar.is-active i { animation: none; transform: scaleX(1); }
  .cf-marquee__track { animation: none; }
  .cf-video__play::before { animation: none; }
  .cf-hero__mouse i { animation: none; opacity: 1; transform: none; }
}
/* 第六张：CTA 卡片，补齐 3×2 网格；白底与前五张一致，悬停时浅橙底提示可定制/人工咨询 */
.cf-machine--cta {
  background: #fff;
  color: var(--cf-slate-700);
  border: 1px solid var(--cf-line);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.cf-machine--cta .cf-machine__media { background: var(--cf-paper); }
.cf-machine--cta .cf-machine__body {
  flex: 1;
  transition: background 0.35s var(--cf-ease);
}
.cf-machine--cta .cf-machine__tag { color: var(--cf-accent); }
.cf-machine--cta .cf-h3 { color: var(--cf-ink-900); margin: 10px 0 14px; }
.cf-machine--cta .cf-machine__desc { color: var(--cf-slate-500); }
.cf-machine--cta:hover {
  border-color: var(--cf-accent-line);
  box-shadow: 0 24px 48px rgba(232, 93, 38, 0.16);
}
.cf-machine--cta:hover .cf-machine__body {
  background: linear-gradient(180deg, rgba(232, 93, 38, 0.08), rgba(232, 93, 38, 0.02));
}
.cf-machine__list {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.cf-machine__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--cf-slate-600);
}
.cf-machine__list li::before {
  content: '';
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--cf-accent);
}
.cf-machine--cta .cf-btn { align-self: center; margin-top: auto; }
/* logo 墙：来自客户案例，可点击 */
.cf-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.cf-logo a img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
}
.cf-logo__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #59616b;
}
/* 客户 logo 墙：两排卡片，第一排向左、第二排向右滚动（内容来自「客户案例」） */
.cf-logowall {
  background: transparent;
  border: 0;
  padding: 26px 0 30px;
  overflow: hidden;
}
.cf-logowall__row {
  overflow: hidden;
  padding: 7px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.cf-logowall__track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: cfLogoLeft 46s linear infinite;
}
.cf-logowall__track--right { animation-name: cfLogoRight; }
.cf-logowall__track:hover,
.cf-logowall__track:focus-within { animation-play-state: paused; }

.cf-logowall__card {
  flex: 0 0 auto;
  width: 212px;
  height: 104px;
  background: #fff;
  border: 1px solid rgba(16, 32, 48, 0.11);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(16, 32, 48, 0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cf-logowall__card:hover {
  box-shadow: 0 12px 26px rgba(16, 32, 48, 0.16);
  border-color: rgba(226, 86, 43, 0.28);
}
.cf-logowall__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}
.cf-logowall__link img {
  max-width: 84%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes cfLogoLeft {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes cfLogoRight {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

@media (max-width: 760px) {
  .cf-logowall {
  background: transparent;
  border: 0;
  padding: 26px 0 30px;
  overflow: hidden;
}
  .cf-logowall__track { gap: 10px; animation-duration: 34s; }
  .cf-logowall__card { width: 152px; height: 82px; border-radius: 11px; }
  .cf-logowall__card:hover {
  box-shadow: 0 12px 26px rgba(16, 32, 48, 0.16);
  border-color: rgba(226, 86, 43, 0.28);
}
.cf-logowall__link { padding: 10px; }
  .cf-logowall__link img { max-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-logowall__track { animation: none; }
  .cf-logowall__row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
/* ================= 首页客户区：图片/图标铺满卡片 + 案例图文放大 ================= */
/* 客户墙：卡片加大，图片默认铺满裁切；超宽透明 logo 由 JS 打 .is-logo 后改为完整显示 */
.cf-logowall { padding: 30px 0 34px; }
.cf-logowall__row { padding: 9px 0; }
.cf-logowall__track { gap: 18px; }
.cf-logowall__card {
  width: 244px;
  height: 152px;
  border-radius: 16px;
  overflow: hidden;
}
.cf-logowall__link {
  padding: 0;
  overflow: hidden;
  border-radius: inherit;
}
.cf-logowall__link img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s var(--cf-ease, ease);
}
.cf-logowall__card:hover .cf-logowall__link img { transform: scale(1.04); }

/* 透明 logo / 图标：完整显示、留白居中 */
.cf-logowall__link.is-logo { padding: 22px 18px; }
.cf-logowall__link.is-logo img { object-fit: contain; width: auto; height: auto; max-width: 100%; max-height: 100%; }

@media (max-width: 760px) {
  .cf-logowall__card { width: 176px; height: 110px; border-radius: 12px; }
  .cf-logowall__local .cf-logowall__link { padding: 0; }
  .cf-logowall__link.is-logo { padding: 14px 12px; }
}

/* 最新客户案例：图片放大到 156px，文字区随之变宽，标题与摘要各多一行 */
.cf-case {
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  align-items: start;
}
.cf-case__media { aspect-ratio: 4 / 3; border-radius: 3px; }
.cf-case__body { padding-top: 2px; }
.cf-case__body b { font-size: 14.4px; line-height: 1.4; }
.cf-case__body em {
  margin-top: 7px;
  font-size: 12.6px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
}
@media (max-width: 1120px) {
  .cf-case { grid-template-columns: 128px minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .cf-case { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .cf-case__body em { -webkit-line-clamp: 2; }
}