/* ============================================================
   大连华联电控设备有限公司 · 官网样式
   配色：方案 A（墨底 + 深孔雀 + 亮孔雀强调）
   规则：红 ≤ 3%，一屏最多一处；蓝永久禁用
   ============================================================ */

:root {
  /* 底色 */
  --ink:        #23272B;   /* 主底：墨（非纯黑） */
  --ink-deep:   #1C2023;   /* 更深一档，用于压深 */
  --peacock:    #14524A;   /* 深孔雀，屏间切换 */
  --peacock-2:  #0E3D37;   /* 深孔雀更深 */
  --panel:      #2A3835;   /* 卡片/面板 */
  --panel-2:    #313F3B;

  /* 文字 */
  --text:       #F4F1EA;   /* 暖白 */
  --text-2:     #C9CDCB;   /* 浅灰 */
  --text-3:     #8B9490;   /* 更弱，仅注释 */

  /* 强调 */
  --accent:     #2E9E86;   /* 亮孔雀：眉标/数据/链接/悬停 */
  --accent-dim: #1B6B5C;   /* 深孔雀绿：悬停压深 */
  --line:       #3A4046;   /* 分隔线 */

  /* 唯一红：主 CTA / LOGO，一屏一处 */
  --red:        #B3242A;

  /* 版心 */
  --pad: 120px;
  --maxw: 1440px;

  /* 字体 */
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
          "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --num:  "Oswald", "Barlow Condensed", "Arial Narrow", var(--sans);
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: none;
  -webkit-text-size-adjust: 100%;
}

/* ---------- 首页：整屏翻页（一次滚动只走一屏） ----------
   只作用于首页（<html class="snap-full">）；子页是长内容，保持连续滚动 */
html.snap-full { scroll-snap-type: y mandatory; }
html.snap-full .hero,
html.snap-full .section,
html.snap-full .contact {
  scroll-snap-align: start;
  scroll-snap-stop: always;   /* 一次滚轮只走一屏，惯性也不许连跳 */
}
html.snap-full .section,
html.snap-full .contact { min-height: 100vh; min-height: 100svh; }
html.snap-full .ftr { scroll-snap-align: end; }  /* 最后一屏收在页脚，备案号能看到 */
/* 压一点上下留白，让每屏内容尽量装进一屏 */
html.snap-full .hero     { padding: 118px 0 76px; }
html.snap-full .section  { padding: 104px 0 84px; }
html.snap-full .contact  { padding: 104px 0 0; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* 滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink-deep); }
::-webkit-scrollbar-thumb { background: #3E4A47; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ---------- 通用容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: 140px 0 120px;
}

/* 屏间底色切换 */
.bg-ink      { background: var(--ink); }
.bg-peacock  { background: var(--peacock); }
.bg-deep     { background: var(--peacock-2); }

/* ---------- 顶部导航 ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: 84px;
  display: flex;
  align-items: center;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.hdr.is-solid {
  background: rgba(28, 32, 35, .88);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.hdr .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 34px; height: 34px; flex: 0 0 34px;
  background: var(--red);            /* 全屏唯一的红之一 */
  border-radius: 2px;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(244, 241, 234, .92);
  border-radius: 1px;
}
.brand-cn {
  font-size: 21px; font-weight: 800; letter-spacing: .04em; line-height: 1;
}
.brand-en {
  font-family: var(--num);
  font-size: 12px; font-weight: 600;
  letter-spacing: .22em;
  color: var(--text-3);
  line-height: 1;
  margin-top: 6px;
}

.nav { display: flex; align-items: center; gap: 38px; }
.nav a {
  font-size: 15px;
  color: var(--text-2);
  position: relative;
  padding: 4px 0;
  transition: color .25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transition: right .3s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { right: 0; }
/* 当前页：常驻下划线，告诉客户「我在这」 */
.nav a.is-current { color: var(--text); }
.nav a.is-current::after { right: 0; }

.hdr-tel {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--num);
  font-size: 18px; font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
}
.hdr-tel svg { width: 15px; height: 15px; stroke: var(--accent); }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--line); border-radius: 2px;
  cursor: pointer; padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--text); transition: transform .3s, opacity .3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }

/* ---------- S1 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 140px 0 96px;
}
/* 背景：细网格 + 光晕，没有照片时也不空 */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58, 64, 70, .38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 64, 70, .38) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 78% 24%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 24%, #000 0%, transparent 72%);
  opacity: .55;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 760px; height: 760px;
  right: -180px; top: -220px;
  background: radial-gradient(circle, rgba(46, 158, 134, .20) 0%, transparent 68%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 30px;
}
.eyebrow-line { width: 38px; height: 2px; background: var(--accent); }
.eyebrow-txt {
  font-size: 14px; font-weight: 500; letter-spacing: .12em;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 26px;
  font-size: clamp(38px, 4.1vw, 60px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: .01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  margin: 0 0 40px;
  max-width: 600px;
  font-size: 19px;
  line-height: 1.95;
  color: var(--text-2);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding: 0 38px;
  border-radius: 2px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s, background .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);            /* 首屏唯一一处红 */
  color: #fff;
}
.btn-primary:hover { background: #9C1E23; }

.btn-ghost {
  border-color: rgba(201, 205, 203, .34);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn svg { width: 16px; height: 16px; }

/* 数据条 */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--num);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.1;
}
.stat-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: .02em;
}

/* 首屏右侧视觉区（照片位） */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3.55;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 20% 0%, #33403C 0%, #232C2A 55%, #1A2120 100%);
}
.hero-visual .ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  color: var(--text-3);
  font-size: 13px;
  letter-spacing: .16em;
}
.hero-visual .ph svg { width: 44px; height: 44px; stroke: #4A5754; }
.hero-visual::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(20, 82, 74, .28), transparent);
  pointer-events: none;
}

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  left: var(--pad);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: .06em;
  z-index: 3;
}
.scroll-hint i {
  display: block;
  width: 1px; height: 26px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: hintMove 2.2s ease-in-out infinite;
}
@keyframes hintMove {
  0%, 100% { opacity: .35; transform: scaleY(.7); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* ---------- 屏头 ---------- */
.sec-head { margin-bottom: 60px; max-width: 860px; }
.sec-eyebrow {
  font-size: 14px; font-weight: 500; letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 18px;
}
.sec-title {
  margin: 0 0 20px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.3;
  font-weight: 800;
}
.sec-sub {
  margin: 0;
  font-size: 18px;
  line-height: 1.9;
  color: var(--text-2);
}

/* ---------- S2 工况能力 ---------- */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.cap-card {
  background: var(--panel);
  border-radius: 3px;
  padding: 32px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .3s ease, background .3s;
  position: relative;
  overflow: hidden;
}
.cap-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.cap-card:hover { transform: translateY(-4px); background: var(--panel-2); }
.cap-card:hover::before { transform: scaleX(1); }

.cap-no {
  font-family: var(--num);
  font-size: 15px; font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
}
.cap-title { font-size: 21px; font-weight: 700; line-height: 1.4; }
.cap-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
  flex: 1;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.tag {
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid rgba(201, 205, 203, .22);
  border-radius: 2px;
  color: var(--text-2);
  white-space: nowrap;
}

/* 结论条 */
.callout {
  margin-top: 34px;
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--panel);
  border-radius: 3px;
  padding: 30px 34px;
}
.callout-bar { width: 3px; align-self: stretch; background: var(--accent); flex: 0 0 3px; }
.callout-t { font-size: 19px; font-weight: 700; line-height: 1.6; }
.callout-s { margin-top: 8px; font-size: 15px; color: var(--text-2); line-height: 1.8; }

/* ---------- S3 产品 ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.prod { display: flex; flex-direction: column; gap: 16px; }
.prod-img {
  aspect-ratio: 384 / 300;
  border-radius: 3px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, #2B3634 0%, #212A28 60%, #1B2221 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5A6764;
  font-size: 12px;
  letter-spacing: .18em;
  transition: border-color .3s;
}
.prod-img::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg, transparent 0 14px, rgba(46, 158, 134, .05) 14px 15px);
  pointer-events: none;
}
.prod:hover .prod-img { border-color: var(--accent-dim); }
.prod-name { font-size: 19px; font-weight: 700; }
.prod-desc { font-size: 13.5px; line-height: 1.85; color: var(--text-2); }

/* ---------- S4 资质 ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 76px;
  align-items: start;
}
.cred-list { display: flex; flex-direction: column; }
.cred-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(58, 64, 70, .85);
}
.cred-item:first-child { padding-top: 4px; }
.cred-item:last-child { border-bottom: 0; }
.cred-dot {
  width: 6px; height: 6px; flex: 0 0 6px;
  margin-top: 11px;
  background: var(--accent);
}
.cred-t { font-size: 18px; font-weight: 700; line-height: 1.5; }
.cred-s { margin-top: 6px; font-size: 14px; line-height: 1.8; color: var(--text-2); }

.cred-panel {
  background: var(--panel);
  border-radius: 3px;
  padding: 44px 40px;
}
.cred-big {
  font-family: var(--num);
  font-size: 66px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: .02em;
}
.cred-big-sub { margin-top: 12px; font-size: 15px; color: var(--text-2); }
.cred-div { height: 1px; background: var(--line); margin: 26px 0; }
.cred-k { font-size: 15px; font-weight: 600; }
.cred-v { margin-top: 8px; font-size: 15px; color: var(--text-2); line-height: 1.7; }
.cred-sm { margin-top: 22px; font-size: 13px; color: var(--text-3); line-height: 1.8; }

/* ---------- S5 流程 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.step { padding-top: 28px; }
.step-line { width: 48px; height: 3px; background: var(--accent); margin-bottom: 22px; }
.step-no {
  font-family: var(--num);
  font-size: 40px; font-weight: 700; line-height: 1;
  color: var(--accent);
  letter-spacing: .04em;
}
.step-t { margin-top: 16px; font-size: 21px; font-weight: 700; }
.step-d { margin-top: 12px; font-size: 14px; line-height: 1.9; color: var(--text-2); }

.pledges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 76px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}
.pledge-t { font-size: 16px; font-weight: 700; }
.pledge-s { margin-top: 8px; font-size: 14px; color: var(--text-2); }

/* ---------- S6 联系 ---------- */
.contact { padding: 150px 0 0; }
.contact h2 {
  margin: 0 0 22px;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.28;
  font-weight: 800;
}
.contact-sub {
  margin: 0 0 56px;
  max-width: 720px;
  font-size: 19px;
  line-height: 1.95;
  color: var(--text-2);
}
.contact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px;
  padding-bottom: 44px;
}
.ci-label { font-size: 13px; color: var(--text-3); letter-spacing: .1em; }
.ci-val {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .02em;
}
.ci-val.num { font-family: var(--num); letter-spacing: .04em; }
.ci-val a:hover { color: var(--accent); }

.quote {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 0;
  padding: 30px 0 0;
}
.quote i { width: 3px; height: 30px; background: var(--accent); flex: 0 0 3px; }
.quote p { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: .02em; }

/* ---------- 页脚 ---------- */
.ftr {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding: 32px 0 28px;
}
.ftr .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}
.ftr-left { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.ftr-dot { width: 20px; height: 20px; background: var(--accent-dim); border-radius: 2px; flex: 0 0 20px; }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; color: var(--text-2); }
.ftr-nav a:hover { color: var(--accent); }
.ftr-meta { width: 100%; font-size: 12.5px; color: var(--text-3); line-height: 1.9; }

/* ---------- 进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1),
              transform .8s cubic-bezier(.22, .61, .36, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html, html.snap-full { scroll-behavior: auto; scroll-snap-type: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint i { animation: none; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1240px) {
  :root { --pad: 64px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred-grid { gap: 48px; }
}

@media (max-width: 980px) {
  :root { --pad: 40px; }
  /* 手机屏装不下整屏内容，强制吸附会很难受，改回连续滚动 */
  html.snap-full { scroll-snap-type: none; }
  .nav, .hdr-tel { display: none; }
  .nav-toggle { display: block; }

  .hdr.is-open { background: rgba(28, 32, 35, .97); }
  .hdr.is-open .nav {
    display: flex;
    position: absolute;
    top: 84px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(28, 32, 35, .98);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 24px;
  }
  .hdr.is-open .nav a {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid rgba(58, 64, 70, .6);
    font-size: 16px;
  }
  .hdr.is-open .nav a::after { display: none; }

  .section { padding: 96px 0 80px; }
  .hero { padding: 120px 0 80px; }
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .hero-visual { aspect-ratio: 16 / 10; order: 2; }
  .stats { gap: 36px; margin-top: 46px; }
  .scroll-hint { display: none; }

  .cards-3 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cred-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .pledges { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 56px; }
  .contact-row { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .contact { padding: 100px 0 0; }
}

@media (max-width: 620px) {
  :root { --pad: 24px; }
  .hero h1 { font-size: 34px; line-height: 1.3; }
  .hero-sub { font-size: 16.5px; line-height: 1.85; }
  .btn { width: 100%; height: 54px; font-size: 16px; }
  .stats { gap: 28px 34px; }
  .stat-num { font-size: 26px; }
  .cards-4 { grid-template-columns: minmax(0, 1fr); }
  .sec-title { font-size: 27px; }
  .cred-panel { padding: 32px 24px; }
  .cred-big { font-size: 52px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step-no { font-size: 34px; }
  .callout { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
  .callout-bar { width: 40px; height: 3px; align-self: auto; flex: 0 0 3px; }
  .ci-val { font-size: 19px; }
  .ftr .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
}
