/* ==========================================================
   数字化车间 · 设备互联 / 看板 / 手机端
   仅用于 mockup 样稿，不影响正式站
   ========================================================== */

:root {
  --dm-bg: #07131f;
  --dm-bg2: #0a1b2c;
  --dm-card: #0e1e32;
  --dm-line: rgba(110, 170, 220, .16);
  --dm-cyan: #4fc3f7;
  --dm-cyan2: #67e8f9;
  --dm-green: #34d399;
  --dm-amber: #f2b84b;
  --dm-red: #ef6b6b;
  --dm-purple: #c084fc;
  --dm-text: rgba(255, 255, 255, .92);
  --dm-sub: rgba(255, 255, 255, .62);
  --dm-dim: rgba(255, 255, 255, .38);
}

/* ---------- 页面骨架 ---------- */
.dm-body { background: #f4f6f9; }
.dm-body .site-header .main-nav a.is-current { color: var(--accent); }
.dm-body .site-header .main-nav a.is-current::after { width: 100%; }

.dm-section { padding: 88px 0; }
.dm-dark { background: var(--dm-bg); color: #fff; }
.dm-light { background: #f4f6f9; }

.dm-sec-head { max-width: 760px; }
.dm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.dm-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: .8;
}
.dm-sec-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: .5px;
  color: var(--primary);
  margin-bottom: 14px;
}
.dm-dark .dm-sec-head h2,
.dm-topo .dm-sec-head h2 { color: #fff; }
.dm-sec-head p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
}
.dm-dark .dm-sec-head p,
.dm-topo .dm-sec-head p { color: var(--dm-sub); }

/* ---------- Hero ---------- */
.dm-hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 82px;
  color: #fff;
  background:
    radial-gradient(980px 560px at 82% -12%, rgba(79, 195, 247, .17), transparent 62%),
    radial-gradient(760px 460px at 4% 110%, rgba(232, 118, 44, .10), transparent 62%),
    linear-gradient(180deg, #06101d 0%, #091a2b 58%, #0b2033 100%);
}
.dm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 180, 230, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 230, .055) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse at 52% 38%, #000 12%, transparent 76%);
  mask-image: radial-gradient(ellipse at 52% 38%, #000 12%, transparent 76%);
  pointer-events: none;
}
.dm-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(6, 16, 29, .55));
  pointer-events: none;
}
.dm-hero-inner { position: relative; z-index: 1; }
.dm-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dm-cyan);
  border: 1px solid rgba(79, 195, 247, .32);
  border-radius: 20px;
  padding: 5px 14px;
  background: rgba(79, 195, 247, .07);
  margin-bottom: 26px;
}
.dm-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.16;
  letter-spacing: 1px;
  margin-bottom: 22px;
  font-weight: 800;
}
.dm-hero h1 span {
  background: linear-gradient(94deg, #67e8f9 0%, #4fc3f7 46%, #8bd7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dm-hero h1 span.is-plain {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #eaf4ff;
}
.dm-topo-legend b { font-weight: 400; }
.dm-hero-desc {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .72);
}
.dm-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.dm-ghost {
  color: rgba(255, 255, 255, .88);
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .04);
}
.dm-ghost:hover { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .45); }
.dm-hero-stats {
  display: flex;
  max-width: 780px;
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.dm-hero-stats > div {
  flex: 1;
  padding-right: 22px;
  border-right: 1px solid rgba(255, 255, 255, .10);
}
.dm-hero-stats > div + div { padding-left: 22px; }
.dm-hero-stats > div:last-child { border-right: 0; padding-right: 0; }
.dm-hero-stats strong {
  display: block;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.dm-hero-stats strong em {
  font-style: normal;
  font-size: 13px;
  font-weight: 400;
  color: var(--dm-cyan);
  margin-left: 3px;
}
.dm-hero-stats span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, .52);
  letter-spacing: .5px;
}

/* ---------- 01 拓扑 ---------- */
.dm-topo { background: #07131f; color: #fff; padding-top: 82px; }
.dm-topo-canvas {
  margin-top: 32px;
  border: 1px solid rgba(110, 180, 230, .16);
  border-radius: 18px;
  background:
    radial-gradient(760px 430px at 46% 46%, rgba(36, 92, 140, .20), transparent 70%),
    linear-gradient(180deg, rgba(10, 27, 46, .78), rgba(6, 17, 29, .94));
  padding: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 90px rgba(9, 30, 52, .65);
}
.dm-topo-canvas svg { display: block; width: 100%; height: auto; }
.dm-topo-legend {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 0 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}
.dm-topo-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg-led { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lg-led.run { background: var(--dm-green); box-shadow: 0 0 8px rgba(52, 211, 153, .7); }
.lg-led.idle { background: var(--dm-amber); box-shadow: 0 0 8px rgba(242, 184, 75, .6); }
.lg-led.alarm { background: var(--dm-red); box-shadow: 0 0 8px rgba(239, 107, 107, .7); }
.lg-led.tool { background: var(--dm-cyan2); box-shadow: 0 0 8px rgba(103, 232, 249, .7); }
.lg-line { width: 26px; height: 0; border-top: 1px dashed rgba(103, 232, 249, .75); display: inline-block; }
.dm-topo-note { margin-left: auto; color: rgba(255, 255, 255, .34); font-size: 11px; }

.dm-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 32px;
}
.dm-flow-item {
  background: rgba(255, 255, 255, .032);
  border: 1px solid rgba(110, 180, 230, .14);
  border-radius: 12px;
  padding: 17px 18px 15px;
  min-width: 0;
}
.dm-flow-item b {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--dm-cyan);
  margin-bottom: 6px;
}
.dm-flow-item h3 { font-size: 16px; color: #fff; margin-bottom: 7px; letter-spacing: .5px; }
.dm-flow-item p { font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .55); }
.dm-flow-arrow {
  align-self: center;
  color: rgba(103, 232, 249, .45);
  font-size: 16px;
  padding: 0 2px;
}

/* SVG 内文字与动效 */
.dm-svg-label { font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif; }
.dm-flow-path {
  fill: none;
  stroke-dasharray: 4 10;
  animation: dmDash 1.8s linear infinite;
}
.dm-flow-path.big { stroke-dasharray: 7 12; animation-duration: 1.4s; }
.dm-led-pulse { animation: dmPulse 2.2s ease-in-out infinite; }
.dm-svg-fade { animation: dmFade 3.2s ease-in-out infinite; }
@keyframes dmDash { to { stroke-dashoffset: -56; } }
@keyframes dmPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes dmFade { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- 02 操作端 ---------- */
.dm-ui { background: #f4f6f9; }
.dm-showcase {
  margin-top: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 20px;
  box-shadow: 0 18px 48px rgba(11, 46, 89, .065);
}
.dm-showcase-head {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.dm-no {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
}
.dm-showcase-head h3 { font-size: 20px; color: var(--primary); margin-bottom: 4px; letter-spacing: .5px; }
.dm-showcase-head p { font-size: 14px; line-height: 1.75; color: var(--text-sub); max-width: 860px; }
.dm-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.dm-chip {
  font-size: 11.5px;
  color: var(--primary);
  background: #eef3f8;
  border: 1px solid #dde6ef;
  border-radius: 20px;
  padding: 3px 11px;
  white-space: nowrap;
}
.dm-screen-wrap { max-width: 1060px; margin: 0 auto; }
.dm-tv {
  background: linear-gradient(180deg, #111a24, #070d14);
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 28px 64px rgba(7, 20, 35, .22);
}
.dm-tv-frame { border-radius: 7px; overflow: hidden; background: #0b1420; }
.dm-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-light);
  letter-spacing: .3px;
}

/* ---------- 生产看板 ---------- */
.dm-kanban {
  min-height: 560px;
  padding: 14px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #e8f0fa;
  background:
    radial-gradient(900px 380px at 18% -10%, rgba(30, 72, 114, .38), transparent 70%),
    #0b1420;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
.kb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kb-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kb-brand img { width: 20px; height: auto; flex: 0 0 auto; }
.kb-co { font-size: 11px; letter-spacing: .4px; color: #d8e7f6; white-space: nowrap; }
.kb-brand i { width: 1px; height: 12px; background: rgba(255, 255, 255, .2); display: block; }
.kb-title { font-size: 11px; color: #8fb4d6; white-space: nowrap; letter-spacing: .5px; }
.kb-shift {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #a9c4dd;
  white-space: nowrap;
}
.kb-shift b { color: #fff; font-weight: 700; }
.kb-shift .dot { width: 5px; height: 5px; border-radius: 50%; background: #34d399; display: inline-block; }
.kb-shift .ar { color: #5b7fa3; font-size: 9px; }
.kb-clock { font-size: 9.5px; color: #6b8bab; white-space: nowrap; }

.kb-sum {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(120, 170, 220, .12);
  font-size: 9.5px;
  color: #7f9bb5;
}
.kb-sum b { font-size: 11px; color: #dce9f6; margin-left: 3px; font-weight: 700; }
.dm-kanban .g, .dm-qkanban .g { color: #34d399; }
.dm-kanban .a, .dm-qkanban .a { color: #f2b84b; }
.dm-kanban .r, .dm-qkanban .r { color: #ef6b6b; }
.dm-kanban .c, .dm-qkanban .c { color: #67e8f9; }
.dm-kanban .p, .dm-qkanban .p { color: #c084fc; }

.kb-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 8px;
  min-height: 0;
}
.kb-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 9px 10px 8px;
  border: 1px solid rgba(120, 170, 220, .14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 42, 63, .94), rgba(15, 28, 43, .97));
}
.kb-card.state-run { border-color: rgba(52, 211, 153, .24); }
.kb-card.state-idle { border-color: rgba(242, 184, 75, .24); }
.kb-card.state-alarm { border-color: rgba(239, 107, 107, .34); box-shadow: inset 0 0 24px rgba(239, 107, 107, .07); }
.kb-card.state-tool { border-color: rgba(103, 232, 249, .26); }

.kb-card-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.kb-cid { font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .3px; white-space: nowrap; }
.kb-prod {
  flex: 1;
  min-width: 0;
  font-size: 9px;
  color: #87a4bf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-badge {
  flex: 0 0 auto;
  font-size: 8px;
  line-height: 1.5;
  padding: 1px 6px;
  border-radius: 20px;
  border: 1px solid;
  white-space: nowrap;
}
.kb-badge.b-run { color: #7ef0c0; border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .1); }
.kb-badge.b-idle { color: #ffd78a; border-color: rgba(242, 184, 75, .5); background: rgba(242, 184, 75, .1); }
.kb-badge.b-alarm { color: #ff9b9b; border-color: rgba(239, 107, 107, .55); background: rgba(239, 107, 107, .12); }
.kb-badge.b-tool { color: #9df1fc; border-color: rgba(103, 232, 249, .5); background: rgba(103, 232, 249, .1); }

.kb-now { display: flex; align-items: flex-end; gap: 8px; min-height: 31px; }
.kb-big {
  font-size: 29px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
}
.kb-big small { font-size: 9px; font-weight: 400; color: #7f9bb5; margin-left: 2px; letter-spacing: 0; }
.kb-big.is-none { font-size: 24px; color: #7f9bb5; letter-spacing: 0; }
.kb-vs { padding-bottom: 2px; font-size: 8.5px; line-height: 1.5; color: #7f9bb5; }
.kb-vs em { font-style: normal; font-weight: 700; }
.kb-stats { display: flex; justify-content: space-between; gap: 6px; font-size: 8.5px; color: #7f9bb5; }
.kb-stats b { color: #cfe0ef; font-weight: 600; }
.kb-stats em { font-style: normal; font-weight: 700; }

.kb-chart {
  position: relative;
  flex: 1;
  min-height: 42px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding-top: 12px;
  border-bottom: 1px solid rgba(120, 170, 220, .2);
}
.kb-chart .std-line {
  position: absolute;
  left: 0; right: 0;
  bottom: 87%;
  border-top: 1px dashed rgba(137, 135, 129, .55);
  pointer-events: none;
}
.kb-bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.kb-bar i {
  display: block;
  width: 100%;
  border-radius: 2px 2px 0 0;
  background: #2ecc8f;
  min-height: 2px;
}
.kb-bar.is-under i { background: #f2b84b; }
.kb-bar.is-empty i { background: rgba(255, 255, 255, .07); }
.kb-bar.is-now i { background: rgba(103, 232, 249, .38); box-shadow: 0 0 8px rgba(103, 232, 249, .22); }
.kb-bar b {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7.5px;
  font-weight: 600;
  color: #a9e9f5;
  white-space: nowrap;
}

.kb-cycle-wrap { display: flex; align-items: center; gap: 6px; }
.kb-cycle {
  flex: 1;
  height: 9px;
  display: flex;
  gap: 2px;
  overflow: hidden;
  border-radius: 5px;
}
.kb-cycle span { display: block; height: 100%; }
.kb-cycle .cut { background: #3987e5; }
.kb-cycle .pause { background: #d95926; }
.kb-cycle-wrap em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 7px;
  color: #7f9bb5;
  white-space: nowrap;
}
.kb-foot {
  font-size: 8px;
  line-height: 1.4;
  color: #6f8aa3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 11px;
}
.kb-foot.is-amber { color: #f2b84b; }
.kb-foot.is-red { color: #ef6b6b; }
.kb-foot.is-cyan { color: #67e8f9; }

/* ---------- 手机端 ---------- */
.dm-phones {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 48px;
  align-items: center;
  margin-top: 58px;
}
.dm-phone-copy h3 {
  font-size: 26px;
  line-height: 1.35;
  color: var(--primary);
  margin-bottom: 13px;
  letter-spacing: .5px;
}
.dm-phone-copy > p { font-size: 15px; line-height: 1.9; color: var(--text-sub); }
.dm-qr-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(11, 46, 89, .06);
}
.dm-qr-card img { width: 92px; height: 92px; border-radius: 6px; flex: 0 0 auto; }
.dm-qr-card b { display: block; font-size: 14px; color: var(--primary); margin-bottom: 3px; }
.dm-qr-card p { font-size: 12px; line-height: 1.6; color: var(--text-sub); margin-bottom: 8px; }
.dm-qr-steps { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-sub); }
.dm-qr-steps span { background: #f1f5f9; border-radius: 4px; padding: 2px 8px; }
.dm-qr-steps i { font-style: normal; color: var(--text-light); }

.dm-phone-set { display: flex; justify-content: center; align-items: flex-start; gap: 26px; }
.dm-phone { text-align: center; }
.dm-phone-label { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--text-sub); letter-spacing: .5px; }
.ph-shell {
  position: relative;
  width: 258px;
  height: 522px;
  padding: 9px;
  border-radius: 38px;
  background: #0b1119;
  border: 1px solid #26374b;
  box-shadow: 0 24px 54px rgba(7, 20, 35, .2);
}
.ph-shell::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 5px;
  border-radius: 3px;
  background: #22303f;
  z-index: 5;
}
.ph-screen {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 18px 14px 14px;
  border-radius: 30px;
  overflow: hidden;
  background: #f3f6fa;
  color: #1f2a3c;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.ph-status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 8px;
  color: #7c8a9c;
}
.ph-apphead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -14px 12px;
  padding: 11px 14px;
  background: #0b2e59;
  color: #fff;
}
.ph-apphead img { width: 26px; height: auto; flex: 0 0 auto; }
.ph-apphead b { display: block; font-size: 13px; line-height: 1.3; letter-spacing: .5px; }
.ph-apphead small { display: block; margin-top: 1px; font-size: 7.5px; line-height: 1.4; color: rgba(255, 255, 255, .62); }
.ph-apphead.ph-ins-head { background: #123c73; }

.ph-station {
  position: relative;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: 10px;
}
.ph-station strong { display: block; font-size: 20px; line-height: 1.2; color: #0b2e59; letter-spacing: .5px; }
.ph-station small { font-size: 10px; color: #6b7a8c; }
.ph-scanned {
  position: absolute;
  top: 9px; right: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  background: #e8f7f0;
  color: #1a9b6c;
  font-size: 7px;
}
.ph-photo {
  position: relative;
  height: 178px;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #dfe7ef;
}
.ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-photo-ok {
  position: absolute;
  left: 8px; bottom: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(16, 140, 96, .92);
  color: #fff;
  font-size: 8px;
}
.ph-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 9px; color: #7a8899; }
.ph-row b { font-size: 10px; color: #1f2a3c; }
.ph-row em { margin-left: auto; font-style: normal; font-size: 7px; color: #9aa7b5; }
.ph-submit {
  width: 100%;
  margin-top: auto;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: #e8762c;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
.ph-tip { margin-top: 7px; text-align: center; font-size: 7.5px; color: #9aa7b5; }

/* 检验员手机 */
.ph-insp-name { margin-bottom: 9px; font-size: 9px; color: #7a8899; }
.ph-insp-name b { font-size: 10px; color: #1f2a3c; }
.ph-insp-name span { margin-left: 4px; font-size: 7px; color: #9aa7b5; }
.ph-slot-title { margin-bottom: 5px; font-size: 8px; letter-spacing: .5px; color: #7a8899; }
.ph-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 9px; }
.ph-slots span {
  padding: 5px 0;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #fff;
  color: #5b6675;
  font-size: 7.5px;
  text-align: center;
}
.ph-slots span.is-on { background: #0b2e59; border-color: #0b2e59; color: #fff; }
.ph-items {
  margin-bottom: 9px;
  padding: 2px 9px;
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: 9px;
}
.ph-items > div {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  border-bottom: 1px dashed #edf1f6;
  font-size: 7.5px;
}
.ph-items > div:last-child { border-bottom: 0; }
.ph-items b { font-size: 8.5px; color: #1f2a3c; white-space: nowrap; }
.ph-items small { flex: 1; text-align: right; font-size: 6.5px; color: #8b98a8; }
.ph-items i { font-style: normal; font-size: 8px; color: #1a9b6c; }
.ph-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 10px; }
.ph-pthumb, .ph-pempty { height: 43px; border-radius: 5px; overflow: hidden; }
.ph-pthumb img { width: 100%; height: 100%; object-fit: cover; }
.ph-pempty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cfdae6;
  background: #fff;
  color: #a8b5c3;
  font-size: 14px;
}

/* ---------- 质量看板 ---------- */
.dm-qkanban {
  min-height: 560px;
  padding: 14px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #e8f0fa;
  background:
    radial-gradient(900px 380px at 82% -10%, rgba(60, 40, 100, .3), transparent 70%),
    #0b1420;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
.qk-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 8.5px;
  color: #8aa6c0;
}
.qk-legend span { display: inline-flex; align-items: center; gap: 5px; }
.qk-legend i { font-style: normal; font-size: 9px; }
.qk-legend .lg-tick { color: #34d399; }
.qk-legend .lg-cross { color: #ef6b6b; }
.qk-legend .lg-band { width: 16px; height: 5px; border-radius: 2px; background: #c084fc; display: inline-block; }
.qk-legend .lg-cur { width: 12px; height: 9px; border: 1px solid #67e8f9; border-radius: 2px; display: inline-block; }

.qk-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 8px;
  min-height: 0;
}
.qk-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 9px 10px 8px;
  border: 1px solid rgba(120, 170, 220, .14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 42, 63, .94), rgba(15, 28, 43, .97));
}
.qk-card.state-run { border-color: rgba(52, 211, 153, .22); }
.qk-card.state-idle { border-color: rgba(242, 184, 75, .22); }
.qk-card.state-alarm { border-color: rgba(239, 107, 107, .34); }
.qk-card.state-tool { border-color: rgba(103, 232, 249, .24); }
.qk-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.qk-cid { font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; }
.qk-prod {
  flex: 1;
  min-width: 0;
  font-size: 8.5px;
  color: #87a4bf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qk-badge {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 20px;
  border: 1px solid;
  font-size: 7.5px;
  line-height: 1.5;
  white-space: nowrap;
}
.qk-badge.b-run { color: #7ef0c0; border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .1); }
.qk-badge.b-idle { color: #ffd78a; border-color: rgba(242, 184, 75, .5); background: rgba(242, 184, 75, .1); }
.qk-badge.b-alarm { color: #ff9b9b; border-color: rgba(239, 107, 107, .55); background: rgba(239, 107, 107, .12); }
.qk-badge.b-tool { color: #9df1fc; border-color: rgba(103, 232, 249, .5); background: rgba(103, 232, 249, .1); }
.qk-sub { font-size: 8px; color: #7f9bb5; }
.qk-sub b { color: #cfe0ef; font-weight: 700; }

.qk-cells {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  min-height: 0;
}
.qk-cell {
  position: relative;
  min-width: 0;
  padding: 2px 3px 3px;
  border: 1px solid rgba(120, 170, 220, .13);
  border-radius: 3px;
  background: rgba(255, 255, 255, .018);
  display: flex;
  flex-direction: column;
}
.qk-cell.has-ins { padding-bottom: 8px; }
.qk-time { font-size: 6.5px; line-height: 1.2; color: #6d89a2; white-space: nowrap; }
.qk-ticks {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-content: center;
  justify-content: center;
  padding-top: 2px;
}
.qk-ticks i {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
}
.qk-cell.is-good .qk-ticks i {
  background: #2ecc8f;
  border-color: #2ecc8f;
  box-shadow: 0 0 4px rgba(46, 204, 143, .35);
}
.qk-cell.is-current { border-color: rgba(103, 232, 249, .75); box-shadow: inset 0 0 0 1px rgba(103, 232, 249, .22); }
.qk-cell.is-current .qk-time { color: #9df1fc; }
.qk-cell.is-current .qk-ticks i.on {
  background: #2ecc8f;
  border-color: #2ecc8f;
  box-shadow: 0 0 4px rgba(46, 204, 143, .35);
}
.qk-cell.is-bad { border-color: rgba(239, 107, 107, .38); background: rgba(239, 107, 107, .06); }
.qk-cell.is-bad .qk-ticks { display: none; }
.qk-cell.is-bad::after {
  content: "✗";
  position: absolute;
  left: 0; right: 0;
  top: 9px; bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef6b6b;
  font-size: 15px;
  font-weight: 700;
}
.qk-cell.is-none .qk-time { color: #4f677c; }
.qk-cell.is-none .qk-ticks { display: none; }
.qk-cell.is-none::after {
  content: "—";
  position: absolute;
  left: 0; right: 0;
  top: 9px; bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #526b80;
  font-size: 11px;
}
.qk-ins {
  position: absolute;
  left: 3px; right: 3px; bottom: 2px;
  height: 5px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5px;
  line-height: 1;
}
.qk-ins.is-ok { background: #c084fc; color: #241033; }
.qk-ins.is-miss { background: transparent; border: 1px solid #c084fc; color: #c084fc; }
.qk-ins.is-open { background: rgba(192, 132, 252, .16); }

/* ---------- CTA ---------- */
.dm-cta {
  padding: 76px 0 80px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(79, 195, 247, .14), transparent 70%),
    linear-gradient(160deg, #0b2e59, #0a2446);
}
.dm-cta h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; letter-spacing: .5px; }
.dm-cta p { font-size: 15px; color: rgba(255, 255, 255, .68); margin-bottom: 28px; }
.dm-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; margin-left: 12px; }
.dm-cta .btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* ---------- 首页入口 ---------- */
.dm-teaser-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.dm-teaser-cta span { transition: transform .2s; }
.dm-teaser-cta:hover span { transform: translateX(4px); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .dm-flow { grid-template-columns: 1fr 1fr; }
  .dm-flow-arrow { display: none; }
  .dm-phones { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 880px) {
  .kb-grid { grid-template-columns: repeat(2, 1fr); }
  .dm-kanban { min-height: 0; }
  .qk-grid { grid-template-columns: 1fr; }
  .dm-qkanban { min-height: 0; }
  .dm-hero-stats { flex-wrap: wrap; }
  .dm-hero-stats > div { flex: 1 1 40%; border-right: 0; padding-right: 0; }
  .dm-hero-stats > div + div { padding-left: 0; }
  .dm-hero-stats > div:nth-child(n + 3) { margin-top: 18px; }
}
@media (max-width: 680px) {
  .dm-hero { padding: 138px 0 60px; }
  .dm-hero h1 { font-size: 34px; }
  .dm-hero-desc { font-size: 15px; }
  .dm-section { padding: 64px 0; }
  .dm-showcase { padding: 18px 14px 16px; }
  .kb-head { flex-wrap: wrap; }
  .kb-clock { display: none; }
  .kb-grid { grid-template-columns: 1fr; }
  .dm-phone-set { flex-direction: column; align-items: center; }
  .ph-shell { width: 250px; height: 512px; }
  .dm-qr-card { flex-direction: column; text-align: center; }
  .dm-qr-card p { text-align: center; }
  .dm-topo-note { margin-left: 0; width: 100%; }
  .dm-cta .btn-ghost { margin-left: 0; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .dm-flow-path, .dm-led-pulse, .dm-svg-fade { animation: none; }
}
