/* ============================================================
   集东信息科技 官网样式
   深色科技主题 / 品牌蓝 + 草绿点缀 / 零外部依赖
   ============================================================ */

:root {
  --bg:        #0a0d12;
  --bg-2:      #0e131b;
  --bg-3:      #131a25;
  --line:      rgba(255, 255, 255, .08);
  --line-2:    rgba(255, 255, 255, .14);
  --text:      #eef2f6;
  --text-2:    #9aa7b4;
  --blue:      #2b9be8;
  --blue-deep: #1e88d0;
  --green:     #8cc63e;
  --radius:    16px;
  --pill:      999px;
  --container: 1200px;
  --header-h:  72px;
  --ease:      cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section + .section { padding-top: 0; }

::selection { background: rgba(43, 155, 232, .35); }

/* ---------- 通用排版 ---------- */

.section-head { max-width: 720px; margin-bottom: 56px; }

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
}

.section-sub { color: var(--text-2); margin-top: 14px; max-width: 62ch; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--blue);
  margin-bottom: 16px;
}

.accent { color: var(--blue); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue-deep); color: #fff;
  padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--pill);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }

.btn-primary { background: var(--blue-deep); color: #fff; }
.btn-primary:hover { background: #2f9ae0; transform: translateY(-2px); }

.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.btn-sm { padding: 9px 22px; font-size: .88rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }

/* ---------- 顶部导航 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 13, 18, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 34px; }

.main-nav > a:not(.btn) {
  font-size: .95rem;
  color: var(--text-2);
  padding: 6px 0;
  position: relative;
  transition: color .25s;
}
.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--blue);
  transition: right .3s var(--ease);
}
.main-nav > a:not(.btn):hover,
.main-nav > a.active { color: var(--text); }
.main-nav > a.active::after,
.main-nav > a:not(.btn):hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 11px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero-desktop-robot.png") center right / cover no-repeat;
  animation: heroZoom 2.4s var(--ease) both;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 13, 18, .94) 0%, rgba(10, 13, 18, .78) 38%, rgba(10, 13, 18, .18) 78%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 13, 18, 0) 30%);
}

.hero-content { position: relative; padding: 64px 0 96px; max-width: 640px; }

.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .01em;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-2);
  max-width: 34em;
}

.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

/* 入场序列 */
.hero-content > * {
  opacity: 0;
  transform: translateY(26px);
  animation: rise .9s var(--ease) forwards;
}
.hero-title  { animation-delay: .15s; }
.hero-sub    { animation-delay: .3s; }
.hero-actions{ animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- 数据条 ---------- */

.stats { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 52px 0;
}
.stat { text-align: left; }
.stat-num {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-num .unit { font-size: .55em; font-weight: 600; color: var(--blue); margin-left: 2px; }
.stat-label { color: var(--text-2); font-size: .92rem; margin-top: 6px; }

/* ---------- 产品区 ---------- */

.prod-hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
  align-items: stretch;
}

.prod-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
}
.prod-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.prod-media:hover img { transform: scale(1.04); }

.prod-hero-body {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prod-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--green);
  border: 1px solid rgba(140, 198, 62, .35);
  border-radius: var(--pill);
  padding: 4px 14px;
  margin-bottom: 18px;
}

.prod-name { font-size: 1.5rem; font-weight: 700; }

.prod-desc { color: var(--text-2); margin-top: 12px; }

.prod-points { margin: 24px 0 28px; display: grid; gap: 10px; }
.prod-points li {
  list-style: none;
  color: var(--text-2);
  padding-left: 20px;
  position: relative;
}
.prod-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .78em;
  width: 8px; height: 2px;
  background: var(--blue);
}
.prod-points li strong { color: var(--text); font-weight: 600; }

.prod-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.prod-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s;
}
.prod-card:hover { transform: translateY(-6px); border-color: rgba(43, 155, 232, .5); }

.prod-card .prod-media { border: 0; border-radius: 0; aspect-ratio: 1 / 1; }

.prod-card-body { padding: 28px 28px 32px; }

.prod-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--blue);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .3s var(--ease);
}
.prod-link:hover { transform: translateX(4px); }

/* ---------- 全宽标语 ---------- */

.statement {
  position: relative;
  padding: 130px 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(43, 155, 232, .12), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statement::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 1px; height: 72px;
  background: linear-gradient(var(--blue), transparent);
}
.statement-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.35;
}
.statement-sub {
  margin: 22px auto 0;
  max-width: 36em;
  color: var(--text-2);
  font-size: 1.05rem;
}

/* ---------- 技术 Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.bento-cell {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 40px 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  transition: border-color .4s;
}
.bento-cell:hover { border-color: rgba(43, 155, 232, .5); }

.b-1 { grid-column: span 7; }
.b-2 { grid-column: span 5; }
.b-3 { grid-column: span 5; }
.b-4 { grid-column: span 7; }

.cell-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  opacity: .4;
  transition: opacity .5s, transform .8s var(--ease);
}
.bento-cell:hover .cell-bg { opacity: .55; transform: scale(1.05); }

.cell-grad {
  background:
    linear-gradient(135deg, rgba(30, 136, 208, .32), rgba(140, 198, 62, .14)),
    var(--bg-3);
}

.cell-fade {
  position: relative;
}
.cell-has-bg .cell-fade { text-shadow: 0 1px 24px rgba(10, 13, 18, .8); }

.cell-title { font-size: 1.25rem; font-weight: 700; }
.cell-desc  { color: var(--text-2); margin-top: 10px; font-size: .96rem; }
.cell-has-bg .cell-desc { color: rgba(238, 242, 246, .85); }

/* ---------- 场景卡 ---------- */

.scenes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.scene-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  transition: border-color .4s;
}
.scene-card:hover { border-color: rgba(43, 155, 232, .5); }

.scene-media {
  position: absolute;
  inset: 0;
}
.scene-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.scene-card:hover .scene-media img { transform: scale(1.06); }

.scene-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 13, 18, .92) 0%, rgba(10, 13, 18, .1) 55%);
}
.scene-body { position: relative; z-index: 1; padding: 28px; }
.scene-title { font-size: 1.2rem; font-weight: 700; }
.scene-desc  { color: rgba(238, 242, 246, .75); font-size: .92rem; margin-top: 8px; }

/* ---------- 图文分栏 ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.split-media img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.split-media:hover img { transform: scale(1.03); }

.split-body .section-title { margin-bottom: 18px; }
.split-body p + p { margin-top: 14px; }
.split-body .text { color: var(--text-2); }

/* ---------- 规格（产品页） ---------- */

.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.spec {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.spec-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.spec-name { font-weight: 600; margin-top: 10px; }
.spec-why  { color: var(--text-2); font-size: .88rem; margin-top: 4px; }

/* ---------- 流程步骤 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  border-top: 1px solid var(--line-2);
  padding-top: 24px;
}
.step-num {
  font-size: 2rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(43, 155, 232, .65);
  line-height: 1;
}
.step-title { font-size: 1.1rem; font-weight: 700; margin-top: 16px; }
.step-desc  { color: var(--text-2); font-size: .92rem; margin-top: 8px; }

/* ---------- 时间线（关于页） ---------- */

.timeline { max-width: 760px; }
.t-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.t-year {
  font-weight: 800;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.t-title { font-weight: 700; }
.t-desc  { color: var(--text-2); font-size: .95rem; margin-top: 4px; }

/* ---------- 品牌文化区 ---------- */

.culture {
  background:
    radial-gradient(700px 360px at 85% 100%, rgba(140, 198, 62, .08), transparent 70%),
    radial-gradient(700px 360px at 15% 0%, rgba(43, 155, 232, .12), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 110px 0;
}
.culture-line {
  font-size: clamp(1.8rem, 4.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.4;
}
.culture-line + .culture-line { margin-top: 18px; color: var(--text-2); }
.culture-desc { margin-top: 34px; color: var(--text-2); max-width: 46em; }

/* ---------- CTA 横幅 ---------- */

.cta-band {
  text-align: center;
  padding: 130px 0;
}
.cta-title {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.35;
}
.cta-sub { color: var(--text-2); margin: 20px auto 40px; max-width: 40em; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 内页页头 ---------- */

.page-hero {
  padding: calc(var(--header-h) + 90px) 0 70px;
  background:
    radial-gradient(700px 320px at 20% 0%, rgba(43, 155, 232, .14), transparent 70%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.page-hero-title {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: .02em;
}
.page-hero-sub { color: var(--text-2); margin-top: 18px; max-width: 46em; }

/* ---------- 表单（联系页） ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}

.info-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 26px;
}
.info-item .info-label {
  font-size: .8rem;
  letter-spacing: .16em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 6px;
}
.info-item p { color: var(--text); }
.info-item .dim { color: var(--text-2); font-size: .92rem; }

.form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  gap: 22px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.field { display: grid; gap: 8px; }
.label { font-size: .92rem; font-weight: 600; }
.label .req { color: var(--blue); }
.input, .textarea, .select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font: inherit;
  font-size: .95rem;
  transition: border-color .25s, box-shadow .25s;
}
.input::placeholder, .textarea::placeholder { color: #5c6771; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 155, 232, .22);
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { border-radius: 12px; padding: 14px 18px; font-size: .95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok  { background: rgba(140, 198, 62, .12); border: 1px solid rgba(140, 198, 62, .4); color: #cfe8a4; }
.form-status.err { background: rgba(232, 92, 92, .1); border: 1px solid rgba(232, 92, 92, .45); color: #f0b3b3; }

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #07090d;
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 3fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-slogan {
  margin-top: 22px;
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: .04em;
}
.footer-desc { color: var(--text-2); font-size: .92rem; margin-top: 14px; max-width: 30em; }
.footer-title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: .08em;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col a:not(.btn) { color: var(--text-2); font-size: .92rem; transition: color .25s; }
.footer-col a:not(.btn):hover { color: var(--blue); }
.footer-col p { color: var(--text-2); font-size: .92rem; }

.footer-beian {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  padding-bottom: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: #6b7681;
}
.beian-links { display: flex; gap: 22px; flex-wrap: wrap; }
.beian-links a { color: #6b7681; transition: color .25s; }
.beian-links a:hover { color: var(--blue); }

/* ---------- 滚动显现 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
  .b-1, .b-2, .b-3, .b-4 { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .prod-hero { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section + .section { padding-top: 0; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 13, 18, .97);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, transform .3s, visibility .3s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav > a:not(.btn) { padding: 14px 0; font-size: 1.05rem; }
  .main-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 14px; }

  .hero-bg { background-position: 72% center; }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(10, 13, 18, .95) 0%, rgba(10, 13, 18, .6) 60%, rgba(10, 13, 18, .55) 100%);
  }
  .hero-content { padding: 48px 0 72px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }

  .prod-cards, .scenes, .steps { grid-template-columns: 1fr; }
  .scenes .scene-card { aspect-ratio: 4 / 3; }

  .b-1, .b-2, .b-3, .b-4 { grid-column: span 12; min-height: 260px; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 28px 22px; }

  .t-item { grid-template-columns: 76px 1fr; gap: 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-beian { flex-direction: column; align-items: flex-start; }
}

/* ---------- 降低动效偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
