
/* 第 6 版：首屏右侧 · 城市数字孪生 / 实时调度 3D 视图 */
.hero-art--twin {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 19px 19px 13px;
  overflow: hidden;
  border-color: #e0e8f4;
  background:
    radial-gradient(120% 110% at 100% 0%, #f5faff 0%, rgba(245, 250, 255, 0) 52%),
    linear-gradient(145deg, #fbfdff 0%, #eef4fd 100%);
  box-shadow: 0 26px 64px -46px rgba(21, 60, 120, .48);
  transition: border-color .35s ease, box-shadow .35s ease;
}
.hero-art--twin:hover { border-color: #d2e2f6; box-shadow: 0 30px 70px -44px rgba(21, 60, 120, .58); }
.hero-art--twin .art-topline { flex: none; line-height: 1.4; }
.art-index { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.art-index b { color: #a4b2c5; font-weight: 400; letter-spacing: 1.1px; }
.art-live-dot { width: 4px; height: 4px; border-radius: 50%; background: #49caa5; box-shadow: 0 0 0 2px rgba(73, 202, 165, .12), 0 0 7px rgba(73, 202, 165, .55); animation: twin-soft-pulse 2.6s ease-in-out infinite; }

.twin-stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  aspect-ratio: 1.2 / 1;
  overflow: hidden;
  isolation: isolate;
  border-radius: 5px;
  cursor: grab;
  touch-action: pan-y;
  background:
    radial-gradient(76% 86% at 72% 12%, rgba(55, 113, 126, .33) 0%, rgba(8, 28, 35, 0) 60%),
    radial-gradient(62% 78% at 12% 96%, rgba(119, 78, 46, .18) 0%, rgba(4, 13, 17, 0) 68%),
    radial-gradient(50% 50% at 50% 64%, rgba(41, 91, 104, .13) 0%, rgba(4, 11, 14, 0) 100%),
    linear-gradient(145deg, #061116 0%, #07171d 48%, #030a0e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(137, 183, 192, .15),
    inset 0 1px 0 rgba(196, 226, 231, .16),
    0 14px 34px -26px rgba(3, 13, 18, .92);
}
.twin-stage.is-dragging { cursor: grabbing; }
.twin-stage.is-fallback { cursor: default; }
.twin-stage.is-fallback .twin-hud,
.twin-stage.is-fallback .twin-grid { display: none; }
.twin-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 10, 20, .58) 0%, rgba(2, 10, 20, 0) 23%, rgba(2, 10, 20, 0) 68%, rgba(2, 10, 20, .58) 100%);
}
.twin-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(112% 94% at 50% 43%, rgba(2, 10, 20, 0) 42%, rgba(2, 9, 18, .5) 100%),
    linear-gradient(152deg, rgba(255, 171, 108, .045) 0%, rgba(255, 171, 108, 0) 38%, rgba(61, 143, 165, .05) 100%);
}
#twin-canvas { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
.twin-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.twin-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .32;
  background-image: radial-gradient(circle at 1px 1px, rgba(137, 199, 255, .25) 1px, transparent 1.2px);
  background-size: 17px 17px;
  -webkit-mask-image: radial-gradient(ellipse 70% 72% at 50% 48%, transparent 0%, #000 76%);
  mask-image: radial-gradient(ellipse 70% 72% at 50% 48%, transparent 0%, #000 76%);
}
.twin-hud {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  color: #eaf6ff;
  opacity: 0;
  transition: opacity .9s ease;
}
.twin-stage.is-ready .twin-hud { opacity: 1; }

.twin-loc { position: absolute; top: 22px; left: 22px; padding-left: 10px; border-left: 1px solid rgba(94, 180, 247, .42); }
.twin-eyebrow { display: flex; align-items: center; gap: 6px; color: #77add8; font: 7.5px/1.4 Arial, Helvetica, sans-serif; letter-spacing: 1.65px; }
.twin-eyebrow > span { width: 11px; height: 1px; background: #55c7ff; box-shadow: 0 0 6px rgba(85, 199, 255, .8); }
.twin-place { margin-top: 5px; color: #f4faff; font-size: 14px; font-weight: 500; letter-spacing: 1.3px; line-height: 1.45; text-shadow: 0 2px 14px rgba(0, 8, 20, .4); }
.twin-coord { margin-top: 2px; color: #6585a2; font: 7px/1.5 Arial, Helvetica, sans-serif; letter-spacing: .85px; }

.twin-live { position: absolute; top: 21px; right: 22px; text-align: right; }
.twin-live > p:first-child { display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: #91e3ca; font-size: 8px; letter-spacing: 1.15px; line-height: 1.4; }
.twin-live-dot { display: block; width: 4px; height: 4px; border-radius: 50%; background: #5de3b9; box-shadow: 0 0 7px #5de3b9; animation: twin-soft-pulse 2.2s ease-in-out infinite; }
.twin-clock { margin-top: 2px; color: #eff8ff; font: 300 17px/1.3 Consolas, "SFMono-Regular", "Courier New", monospace; letter-spacing: .8px; font-variant-numeric: tabular-nums; text-shadow: 0 2px 14px rgba(0, 8, 20, .35); }

.twin-tag {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  min-width: 0;
  padding: 6px 9px 6px 20px;
  border: 1px solid rgba(104, 181, 244, .24);
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(6, 24, 43, .88), rgba(4, 16, 31, .7));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(190, 230, 255, .07);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity .5s ease;
  will-change: transform;
}
.twin-stage.is-ready .twin-tag { opacity: 1; }
.twin-tag::before { content: ""; position: absolute; top: 12px; left: 10px; width: 4px; height: 4px; border-radius: 50%; background: #64e6ff; box-shadow: 0 0 8px rgba(100, 230, 255, .9); }
.twin-tag::after { content: ""; position: absolute; left: 50%; bottom: -19px; width: 1px; height: 19px; background: linear-gradient(180deg, rgba(100, 230, 255, .7), rgba(100, 230, 255, .04)); }
.twin-tag-title { color: #ebf7ff; font-size: 10px; font-weight: 550; letter-spacing: .15px; line-height: 1.55; white-space: nowrap; }
.twin-tag-title em { margin-left: 5px; padding: 1px 4px; border: 1px solid rgba(113, 236, 201, .35); border-radius: 2px; background: rgba(57, 202, 163, .1); color: #7deccb; font-size: 7px; font-style: normal; font-weight: 400; letter-spacing: .35px; vertical-align: 1px; }
.twin-tag-sub { margin-top: 2px; color: #819db6; font-size: 7.5px; font-weight: 400; line-height: 1.5; letter-spacing: .1px; white-space: nowrap; }
.twin-tag--order {
  top: 63px;
  right: 22px;
  left: auto;
  transform: none;
  padding: 6px 9px 6px 20px;
  border-color: rgba(205, 164, 112, .26);
  background: linear-gradient(135deg, rgba(15, 23, 30, .88), rgba(10, 16, 21, .68));
  will-change: auto;
}
.twin-tag--tech {
  top: 79px;
  left: 22px;
  transform: none;
  will-change: auto;
}
.twin-tag--order::before { background: #ffbb71; box-shadow: 0 0 9px rgba(255, 187, 113, .95); }
.twin-tag--tech::after,
.twin-tag--order::after { display: none; }
.twin-tag--order .twin-tag-title { color: #fff8ef; }
.twin-tag--order .twin-tag-sub { color: #a59582; }

.twin-metrics {
  position: absolute;
  left: 20px;
  bottom: 18px;
  display: flex;
  align-items: stretch;
  padding: 8px 3px;
  border: 1px solid rgba(100, 173, 231, .18);
  border-radius: 3px;
  background: linear-gradient(120deg, rgba(8, 28, 49, .9), rgba(4, 18, 33, .68));
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(184, 223, 255, .06);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}
.twin-metrics > div { display: flex; flex-direction: column; gap: 1px; padding: 0 13px; border-left: 1px solid rgba(108, 172, 228, .14); }
.twin-metrics > div:first-child { padding-left: 10px; border-left: 0; }
.twin-metrics span { color: #7594af; font-size: 7px; font-weight: 400; line-height: 1.4; letter-spacing: .45px; white-space: nowrap; }
.twin-metrics b { color: #eff9ff; font: 400 15px/1.12 Arial, Helvetica, sans-serif; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.twin-metrics b em { margin-left: 2px; color: #7e9ab3; font-size: 7px; font-style: normal; letter-spacing: 0; }
.twin-hint { position: absolute; right: 21px; bottom: 25px; display: flex; align-items: center; gap: 5px; color: #6f8ba4; font-size: 8px; letter-spacing: .45px; }
.twin-hint span { color: #8dc7ee; font-size: 12px; line-height: 1; }

.twin-fallback,
.twin-noscript {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: radial-gradient(80% 80% at 50% 40%, #0d2741, #061525);
  color: #8db4d5;
  font-size: 10px;
  letter-spacing: .6px;
}
.twin-fallback::before,
.twin-noscript::before {
  content: "";
  position: absolute;
  width: 138px;
  height: 138px;
  border: 1px solid rgba(100, 202, 239, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(100, 202, 239, .035), 0 0 0 56px rgba(100, 202, 239, .018);
}
.twin-fallback p,
.twin-noscript p { position: relative; color: #c9e5fa; font: 8px/1.4 Arial, Helvetica, sans-serif; letter-spacing: 2px; }
.twin-fallback span,
.twin-noscript span { position: relative; }

.hero-art--twin .twin-legend { display: flex; align-items: center; justify-content: space-between; gap: 19px; margin: 0; padding: 0 2px 1px; color: #5e7590; font-size: 9px; line-height: 1.6; letter-spacing: .35px; }
.hero-art--twin .twin-legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.hero-art--twin .twin-legend i { display: block; flex: none; width: auto; height: auto; background: none; border: 0; }
.hero-art--twin .twin-legend .lg-node { width: 5px; height: 5px; border-radius: 50%; background: #67e6ff; box-shadow: 0 0 0 2px rgba(103, 230, 255, .13), 0 0 6px rgba(103, 230, 255, .5); }
.hero-art--twin .twin-legend .lg-flow { width: 17px; height: 1px; background: linear-gradient(90deg, rgba(255, 187, 113, .15), #ffbb71); box-shadow: 0 0 5px rgba(255, 187, 113, .35); }
.hero-art--twin .twin-legend .lg-car { width: 7px; height: 4px; border: 1px solid #99c4e5; border-radius: 1px; box-shadow: 0 0 4px rgba(153, 196, 229, .3); }
.hero-art--twin .twin-legend .lg-data { width: 14px; height: 6px; border-top: 1px solid #5792bf; border-radius: 50%; opacity: .85; }

@keyframes twin-soft-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

@media (max-width: 1100px) {
  .hero-art--twin { padding: 16px 16px 11px; gap: 8px; }
  .twin-stage { aspect-ratio: 1.11 / 1; }
  .twin-loc { top: 17px; left: 17px; }
  .twin-live { top: 17px; right: 17px; }
  .twin-loc .twin-place { font-size: 12px; }
  .twin-loc .twin-coord { display: none; }
  .twin-tag { min-width: 0; padding: 6px 8px 6px 19px; }
  .twin-tag::before { left: 9px; top: 11px; }
  .twin-tag-title { font-size: 9px; }
  .twin-tag-sub { font-size: 7px; }
  .twin-metrics { left: 15px; bottom: 14px; }
  .twin-metrics > div { padding: 0 10px; }
  .twin-hint { display: none; }
  .hero-art--twin .twin-legend { gap: 15px; font-size: 8px; }
}
@media (max-width: 900px) {
  .twin-tag--order { display: none; }
  .twin-tag-sub { display: none; }
  .twin-tag { min-width: 0; }
  .twin-tag--tech { top: 60px; left: 14px; }
  .twin-metrics > div:last-child { display: none; }
  .twin-stage { aspect-ratio: 1.04 / 1; }
  .twin-loc { top: 14px; left: 14px; }
  .twin-live { top: 14px; right: 14px; }
  .twin-clock { font-size: 14px; }
  .twin-metrics { left: 12px; bottom: 12px; }
  .hero-art--twin .twin-legend { gap: 10px; font-size: 7.5px; }
  .hero-art--twin .twin-legend span:last-child { display: none; }
}
@media (max-width: 600px) {
  .hero-art--twin { max-width: 440px; padding: 16px 16px 11px; }
  .twin-stage { aspect-ratio: 1.1 / 1; }
  .twin-loc { top: 15px; left: 15px; }
  .twin-live { top: 15px; right: 15px; }
  .twin-place { font-size: 12px; }
  .twin-metrics { left: 12px; bottom: 12px; padding: 7px 2px; }
  .twin-metrics span { font-size: 6.5px; }
  .twin-metrics b { font-size: 13px; }
  .twin-tag--tech { max-width: calc(100% - 30px); }
  .hero-art--twin .twin-legend { gap: 13px; font-size: 8px; }
  .hero-art--twin .twin-legend span:last-child { display: flex; }
  .hero-art--twin .twin-legend .lg-data { display: none; }
}
@media (max-width: 390px) {
  .twin-eyebrow { font-size: 6.5px; letter-spacing: 1.2px; }
  .twin-metrics > div { padding: 0 9px; }
  .twin-metrics > div:first-child { padding-left: 8px; }
  .twin-metrics b { font-size: 12px; }
  .hero-art--twin .twin-legend { gap: 9px; font-size: 7.5px; }
  .hero-art--twin .twin-legend span:last-child { display: none; }
}
