/* 首页相邻板块共用留白，流光区占用原间距的一部分。 */
.home-page {
  --home-section-space: clamp(24px, 3.25vw, 52px);
  --home-divider-space: clamp(8px, 1.25vw, 18px);
}
.home-page > .section { padding-block: var(--home-section-space); }
.home-page > :is(.products-section, .experience-section) { padding-block-end: var(--home-divider-space); }
.home-page > :is(.experience-section, .why-section) { padding-block-start: var(--home-divider-space); }

.product-light-band {
  position: relative;
  overflow: hidden;
  block-size: 12px;
  background: linear-gradient(90deg, transparent, #5fa5ab4d 32%, #6a9ccb58 68%, transparent) center / 100% 1px no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .product-light-band::after {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at center, #97f5e5b3, #69d5db78 5%, transparent 19%) center / 100% 2px no-repeat,
      radial-gradient(ellipse at center, #5fbad42e, transparent 20%);
    animation: product-light-sweep 14s linear -3s infinite paused;
    content: "";
  }
  .product-light-band.is-in-view::after { animation-play-state: running; }
}

@keyframes product-light-sweep {
  from { transform: translateX(-70%); }
  to { transform: translateX(70%); }
}

/* 分叉线路汇聚到中央节点。小屏保留完整图形，离屏时暂停光点。 */
.home-route-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  align-items: center;
  width: min(880px, calc(100% - 54px));
  block-size: clamp(38px, 3.8vw, 54px);
  margin-inline: auto;
  background: radial-gradient(ellipse at center, #2e73753c, #20516a19 28%, transparent 67%);
}
.home-route-lane {
  position: relative;
  overflow: clip;
  block-size: 32px;
  background:
    radial-gradient(circle, #90cfdb 1px, #5096a550 2px 3px, transparent 4px) 70% center / 9px 9px no-repeat,
    radial-gradient(circle, #75b7c9 1px, #458a9f45 2px 3px, transparent 4px) 39% center / 9px 9px no-repeat,
    linear-gradient(90deg, transparent, #41758b80 28%, #61afaec7) center / 100% 1px no-repeat;
}
.home-route-lane:last-child { rotate: 180deg; }
.home-route-lane::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 14%, #4e93ad91 55%, #70c4c7b3);
  clip-path: polygon(9% 15%, 54% 15%, 65% 48%, 100% 48%, 100% 52%, 65% 52%, 54% 19%, 9% 19%);
  content: "";
}
.home-route-node {
  display: grid;
  place-items: center;
  block-size: 36px;
  background: radial-gradient(circle, #66e2ca53, transparent 67%);
}
.home-route-node::before,
.home-route-node::after {
  grid-area: 1 / 1;
  border-radius: 3px;
  rotate: 45deg;
  content: "";
}
.home-route-node::before {
  inline-size: 22px;
  block-size: 22px;
  border: 1px solid #71d4c5a6;
  background: #152e39;
  box-shadow: inset 0 0 8px #64c2b435, 0 0 17px #52c5b23d;
}
.home-route-node::after {
  inline-size: 8px;
  block-size: 8px;
  background: #a9ffe8;
  box-shadow: 0 0 9px #7bf4d485;
}
@media (prefers-reduced-motion: no-preference) {
  .home-route-lane::after {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    inline-size: 44%;
    background:
      radial-gradient(circle, #d0fff2 0 1.5px, #7aeed9aa 2px, transparent 4px) center / 9px 9px no-repeat,
      radial-gradient(ellipse, #7aeed9b3 3%, transparent 72%) center / 100% 3px no-repeat,
      radial-gradient(ellipse, #67c4e259 4%, transparent 72%) center / 100% 15px no-repeat;
    animation: home-route-sweep 5.8s ease-in-out -1.2s infinite paused;
    content: "";
  }
  .home-route-lane:last-child::after { animation-delay: -2.05s; }
  .home-route-divider.is-in-view .home-route-lane::after { animation-play-state: running; }
}
@keyframes home-route-sweep {
  0% { opacity: 0; transform: translateX(-64%); }
  18%, 58% { opacity: 1; }
  75%, 100% { opacity: 0; transform: translateX(180%); }
}

.experience-section {
  background: radial-gradient(ellipse at 60% 36%, #162d432e, transparent 70%);
}

/* 产品切换区共用一套结构，颜色由各产品的强调色决定。 */
.switcher {
  --switcher-border: color-mix(in srgb, var(--line) 80%, #60758b);
  display: grid;
  min-width: 0;
  border: 1px solid var(--switcher-border);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(150deg, var(--panel), #0b1422 84%);
}

.switcher-tabs, .switcher-panels { min-width: 0; }
.switcher-tabs {
  display: grid;
  gap: 7px;
  padding: clamp(10px, 1.15vw, 15px);
  background: #0a1320;
}

.switcher-tabs [role="tab"] {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  text-align: start;
  font-size: .93rem;
  font-weight: 680;
  line-height: 1.35;
  transition: color .2s, border-color .2s, background-color .2s, box-shadow .2s;
}

.switcher-tabs [role="tab"]:hover { background: #172437; color: var(--ink); }
.switcher-tabs [role="tab"][aria-selected="true"] {
  border-color: color-mix(in srgb, var(--accent) 31%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, #111c2d);
  color: var(--ink);
}

.switcher-tabs [role="tab"]:focus-visible,
.switcher-panel:focus-visible { outline-offset: -3px; }
.switcher-tabs .product-icon { width: 33px; height: 33px; border-radius: 8px; }
.product-tab-name { min-width: 0; overflow-wrap: anywhere; }
.switcher-tabs [role="tab"]:has(.product-badge) { padding-inline-end: 60px; overflow: hidden; }
.switcher-tabs .product-badge {
  --product-corner-size: 68px;
  --product-corner-font: .86rem;
  --product-corner-en-font: .49rem;
}

.switcher-panel {
  height: 100%;
  padding: clamp(20px, 3.5vw, 44px);
  border-radius: calc(var(--radius) + 3px);
  animation: panel-enter .31s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes panel-enter {
  from { opacity: .38; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.switcher-panel h3 {
  font-size: clamp(1.35rem, 2.45vw, 2rem);
  line-height: 1.22;
  text-wrap: balance;
  letter-spacing: -.025em;
}
.switcher-panel .lab-highlighted-heading { color: var(--accent); }

.inline-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  color: var(--accent);
  font-size: .93rem;
  font-weight: 720;
  text-underline-offset: 4px;
}

.inline-link:hover { text-decoration: underline; }
.inline-link span { display: inline-block; transition: transform .18s ease; }
.inline-link:hover span { transform: translate(2px, -2px); }

.switcher-lab { grid-template-columns: clamp(156px, 21%, 234px) minmax(0, 1fr); }
.switcher-lab .switcher-tabs {
  align-content: center;
  border-radius: calc(var(--radius) + 3px) 0 0 calc(var(--radius) + 3px);
  border-inline-end: 1px solid var(--switcher-border);
}

.switcher-lab .switcher-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(12px, 3vw, 38px);
  min-height: 287px;
}

.lab-data dl { margin-top: 19px; }
.lab-data dl > div {
  display: grid;
  grid-template-columns: minmax(76px, max-content) minmax(0, 1fr);
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  font-size: .87rem;
  line-height: 1.42;
}

.lab-data dt { color: var(--muted); }
.lab-data dd { color: var(--ink); font-weight: 560; overflow-wrap: anywhere; }

/* 连接图共用三层装饰，由各产品将其绘制成轨道、方框、机架或无线波纹。 */
.lab-diagram {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 213px;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 17%, var(--line));
  border-radius: calc(var(--radius) + 1px);
  background:
    radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    #0a1422;
  color: var(--accent);
}

.lab-diagram::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(#8ba2be16 1px, transparent 1px),
    linear-gradient(90deg, #8ba2be16 1px, transparent 1px);
  background-position: center;
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse, #000 32%, transparent 90%);
}

.lab-diagram > i {
  position: absolute;
  display: block;
  width: min(72%, 215px);
  height: 57px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 50%;
  transform: rotate(var(--ring-angle, -25deg));
}

.lab-diagram > i:nth-child(2) { --ring-angle: 27deg; opacity: .73; }
.lab-diagram > i:nth-child(3) { --ring-angle: 84deg; width: min(52%, 149px); opacity: .45; }
.lab-diagram > i::after {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px color-mix(in srgb, currentColor 44%, transparent);
  content: "";
  offset-path: ellipse(50% 50% at 50% 50%);
  animation: diagram-orbit 5.6s linear infinite;
}

.lab-diagram > i:nth-child(2)::after { animation-duration: 7s; animation-delay: -2s; }
.lab-diagram > i:nth-child(3)::after { animation-duration: 5s; animation-delay: -2.5s; }
@keyframes diagram-orbit { to { offset-distance: 100%; } }

.lab-diagram > .product-icon {
  width: 67px;
  height: 67px;
  border-color: color-mix(in srgb, var(--accent) 36%, #26384d);
  background: color-mix(in srgb, var(--accent) 9%, #101c2b);
  box-shadow: 0 10px 24px #02071180, inset 0 1px #dceaff17;
}

.product-static .lab-diagram > i {
  --ring-angle: 45deg;
  width: 108px;
  height: 108px;
  border-radius: 12px;
}
.product-static .lab-diagram > i:nth-child(2) { width: 124px; height: 124px; }
.product-static .lab-diagram > i:nth-child(3) { width: 138px; height: 138px; }
.product-static .lab-diagram > i::after { offset-path: none; animation: diagram-square 4s linear infinite; }

@keyframes diagram-square {
  0% { inset: -3px auto auto -3px; }
  25% { inset: -3px auto auto calc(100% - 3px); }
  50% { inset: calc(100% - 3px) auto auto calc(100% - 3px); }
  75% { inset: calc(100% - 3px) auto auto -3px; }
  100% { inset: -3px auto auto -3px; }
}

.product-datacenter .lab-diagram > i {
  width: min(72%, 200px);
  height: 36px;
  border-radius: 9px;
  transform: translateY(var(--shelf-offset, -43px)) skewY(-7deg);
  background: repeating-linear-gradient(90deg, transparent 0 7px, #7fa3e818 7px 9px);
}
.product-datacenter .lab-diagram > i:nth-child(2) { --shelf-offset: 0px; }
.product-datacenter .lab-diagram > i:nth-child(3) { --shelf-offset: 43px; }
.product-datacenter .lab-diagram > i::after {
  top: 50%;
  left: 10%;
  offset-path: none;
  animation: diagram-transfer 3s ease-in-out infinite alternate;
}
@keyframes diagram-transfer { to { left: 86%; } }

.product-mobile .lab-diagram > i {
  top: 18%;
  height: auto;
  width: 134px;
  aspect-ratio: 1.55;
  border-color: currentColor transparent transparent;
  opacity: .42;
  transform: none;
  animation: radio-signal 3s ease-in-out infinite alternate;
}
.product-mobile .lab-diagram > i:nth-child(2) { width: 175px; top: 10%; animation-delay: -.7s; }
.product-mobile .lab-diagram > i:nth-child(3) { width: 213px; top: 2%; animation-delay: -1.4s; }
.product-mobile .lab-diagram > i::after { content: none; }
@keyframes radio-signal { to { opacity: .92; } }

/* 五项核心能力用时间轴和流程图表达，图示均非实时数据。 */
.why-section {
  background: radial-gradient(ellipse at 70% 50%, #17294132, transparent 66%);
}
.why-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}
.why-panel {
  --why-tone: var(--cyan);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  grid-column: span 4;
  gap: 11px;
  padding: clamp(18px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(151deg, var(--panel), #0d1625 87%);
  box-shadow: inset 0 1px #dbeaff0d, 0 12px 32px #02071032;
  transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease;
}
.why-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 18% 0, color-mix(in srgb, var(--why-tone) 10%, transparent), transparent 72%);
  opacity: 0;
  transition: opacity .26s ease;
}
.why-panel h3 {
  font-size: clamp(1.16rem, 2.2vw, 1.47rem);
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-wrap: balance;
  transition: color .24s ease, transform .24s ease;
}
.why-panel p { max-width: 52ch; color: var(--muted); font-size: .93rem; line-height: 1.68; transition: color .24s ease; }
.why-panel :is(figure, .why-checks, .why-chain, .why-billing) { transition: transform .28s ease; }
.why-panel :is(ol, ul) { margin: 0; padding: 0; list-style: none; }
.why-session {
  grid-column: span 7;
  border-color: color-mix(in srgb, var(--cyan) 21%, var(--line));
  background: radial-gradient(ellipse at 14% 8%, #1b454449, transparent 72%), var(--panel);
}
.why-session h3 { font-size: clamp(1.35rem, 2.45vw, 1.86rem); }
.why-timeline {
  margin: 14px 0 0;
  padding: clamp(11px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a1220;
}
.why-timeline figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 12px;
  padding-block-end: 12px;
  border-bottom: 1px solid var(--line);
  color: #aebfd2;
  font-size: .81rem;
}
.why-timeline figcaption span { color: var(--cyan); }
.why-timeline figcaption i { font-style: normal; }
.why-exit-row {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(62px, .64fr) minmax(0, 2fr);
  gap: 5px clamp(6px, 1.3vw, 17px);
  margin-block-start: 12px;
  color: #b7cbdc;
  font-size: .78rem;
  line-height: 1.35;
}
.why-exit-row ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 6px;
}
.why-exit-row li {
  padding: 7px 3px;
  background: #173042;
  color: #d7eafb;
  font-weight: 650;
  text-align: center;
  white-space: nowrap;
}
.why-exit-row--rotate li + li { background: #1c3a51; }
.why-exit-row--rotate li:last-child { background: #264762; }
.why-exit-row--sticky ol { gap: 0; border: 1px solid #377367; background: #153c3b; }
.why-exit-row--sticky li { background: transparent; color: #a4f1df; }
.why-exit-row--sticky li + li { border-inline-start: 1px dashed #42796c; }
.why-pool {
  --why-tone: #8fc2ff;
  grid-column: span 5;
  background: radial-gradient(ellipse at 95% 85%, #1b35524a, transparent 76%), var(--panel);
}
.why-residential {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  gap: 15px;
  flex: 1;
  min-height: 142px;
  margin: 6px 0 0;
  overflow: clip;
}
.why-residential figcaption { color: #adbed1; font-size: .78rem; }
.why-residential-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14px, .52fr) minmax(0, 1fr);
  align-items: center;
  max-width: 325px;
}
.why-residential-route span {
  display: grid;
  place-items: center;
  min-height: 45px;
  padding: 7px;
  border: 1px solid #40627c;
  border-radius: 8px;
  background: #142438;
  color: #d5e9fb;
  font-size: clamp(.72rem, 1.2vw, .89rem);
  font-weight: 650;
  text-align: center;
}
.why-residential-route span:last-child { border-color: #3a6e65; background: #152d36; color: #b6efde; }
.why-residential-route i {
  position: relative;
  height: 1px;
  margin-inline: 3px;
  background: linear-gradient(90deg, #67a9d5, #68ccba);
}
.why-residential-route i::after {
  position: absolute;
  top: -2px;
  right: 1px;
  width: 5px;
  height: 5px;
  content: "";
  border-top: 1px solid #79e2ca;
  border-right: 1px solid #79e2ca;
  transform: rotate(45deg);
}
.why-orbits {
  position: absolute;
  z-index: -1;
  width: min(86%, 310px);
  aspect-ratio: 1;
  right: -31px;
  bottom: -54px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 50%, #458eca23, transparent 68%);
  pointer-events: none;
}
.why-orbits i {
  position: absolute;
  inset: 17%;
  border: 1px solid #508fbb4d;
  border-radius: 50%;
  transform: rotate(-24deg) scaleY(.57);
}
.why-orbits i:nth-child(2) { inset: 6%; transform: rotate(-24deg) scaleY(.59); }
.why-orbits i:nth-child(3) { inset: -5%; transform: rotate(-24deg) scaleY(.62); }
.why-orbits i::before {
  position: absolute;
  top: 7%;
  right: 25%;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: #81c5ec;
  box-shadow: 0 0 9px #7adcf46b;
}
.why-panel .why-checks,
.why-panel .why-chain,
.why-billing { margin-block-start: auto; padding-block-start: 14px; }
.why-checks { display: grid; gap: 6px; }
.why-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #2a3d52;
  border-radius: 6px;
  background: #121e2d;
  color: #c9dcec;
  font-size: .83rem;
}
.why-checks li::before {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  content: "";
  border: 1px solid #75afd1;
  border-radius: 2px;
}
.why-chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.why-chain li {
  position: relative;
  padding-block-start: 25px;
  color: #c9dcec;
  font-size: .8rem;
  line-height: 1.35;
  text-align: center;
}
.why-chain li::before {
  position: absolute;
  inset-block-start: 1px;
  inset-inline-start: calc(50% - 6px);
  width: 12px;
  height: 12px;
  content: "";
  border: 1px solid #629fc2;
  border-radius: 3px;
  background: #153449;
}
.why-chain li + li::after {
  position: absolute;
  inset-block-start: 7px;
  inset-inline-start: calc(-50% + 11px);
  width: calc(100% - 17px);
  content: "";
  border-top: 1px dashed #517c9a;
}
.why-chain li:last-child::before { border-color: #7ae5cc; background: #235348; }
.why-billing { display: grid; gap: 7px; }
.why-billing div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding: 8px 0;
  border-bottom: 1px solid #2a4256;
  font-size: .82rem;
}
.why-billing dt { color: #adbed1; }
.why-billing dd { color: #b4ecdc; font-weight: 700; }

/* 悬停反馈统一用边缘冷光。各图解再用不同的运动表达自身含义。 */
.why-verify { --why-tone: #87cce7; }
.why-supply { --why-tone: #b3adff; }
.why-cost { --why-tone: #96e6bf; }
.why-panel:is(:hover, :focus-within) {
  border-color: color-mix(in srgb, var(--why-tone) 36%, var(--line));
  box-shadow: inset 0 1px #dbeaff14, 0 15px 34px #030a1566;
}
.why-panel:is(:hover, :focus-within)::before { opacity: 1; }
.why-panel:is(:hover, :focus-within) h3 { color: var(--why-tone); }
.why-panel:is(:hover, :focus-within) p { color: #c5d6e5; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .why-panel:is(:hover, :focus-within) { transform: translateY(-2px); }
  .why-panel:is(:hover, :focus-within) :is(figure, .why-checks, .why-chain, .why-billing) { transform: translateY(-1px); }

  .why-panel :is(.why-exit-row, .why-checks, .why-chain, .why-billing) > :nth-child(2),
  .why-exit-row ol > :nth-child(2) { --why-step-delay: .27s; }
  .why-panel :is(.why-checks, .why-chain) > :nth-child(3),
  .why-exit-row ol > :nth-child(3) { --why-step-delay: .54s; }

  .why-panel:is(:hover, :focus-within) :is(.why-exit-row--rotate li, .why-checks li) {
    animation: why-row-signal 2.1s var(--why-step-delay, 0s) ease-in-out infinite;
  }
  .why-panel:is(:hover, :focus-within) :is(.why-exit-row--sticky ol, .why-billing div) {
    background-image: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--why-tone) 21%, transparent), transparent 70%);
    background-size: 240% 100%;
    animation: why-track-flow 2.7s var(--why-step-delay, 0s) ease-in-out infinite;
  }
  .why-panel:is(:hover, :focus-within) .why-residential-route i::before {
    content: "";
    position: absolute;
    inset: -1px auto auto 0;
    width: 9px;
    height: 3px;
    border-radius: 4px;
    background: #bbfff1;
    box-shadow: 0 0 7px #7effe66b;
    animation: why-route-pulse 1.7s ease-in-out infinite;
  }
  .why-panel:is(:hover, :focus-within) .why-orbits { animation: why-orbit-tilt 4.8s ease-in-out infinite alternate; }
  .why-panel:is(:hover, :focus-within) .why-chain li::before {
    animation: why-node-signal 2.1s var(--why-step-delay, 0s) ease-in-out infinite;
  }
}

@keyframes why-row-signal {
  26%, 42% { box-shadow: inset 0 0 18px color-mix(in srgb, var(--why-tone) 18%, transparent); color: #edfffc; }
}
@keyframes why-track-flow { from { background-position: 110% 0; } to { background-position: -25% 0; } }
@keyframes why-route-pulse {
  0% { inset-inline-start: 0; opacity: .25; }
  48% { opacity: 1; }
  100% { inset-inline-start: calc(100% - 9px); opacity: .25; }
}
@keyframes why-orbit-tilt { to { transform: rotate(17deg); } }
@keyframes why-node-signal {
  26%, 42% { background: var(--why-tone); box-shadow: 0 0 9px color-mix(in srgb, var(--why-tone) 37%, transparent); }
}

@media (max-width: 760px) {
  .why-panel { grid-column: span 6; }
  .why-session { grid-column: 1 / -1; }
  .why-residential { min-height: 112px; }
}
@media (max-width: 530px) {
  .why-panel { grid-column: 1 / -1; }
}

/* 站内弹窗共用布局和关闭按钮。 */
.guide-dialog {
  position: fixed;
  width: min(530px, calc(100% - 30px));
  max-height: min(85vh, calc(100% - 26px));
  overflow: auto;
  padding: clamp(24px, 5.6vw, 49px);
  padding-inline-end: clamp(47px, 8vw, 61px);
  border: 1px solid #354958;
  border-radius: calc(var(--radius) + 4px);
  background: radial-gradient(ellipse at 100% 0, #1b3c433f, transparent 67%), var(--panel);
  color: var(--ink);
  box-shadow: inset 0 1px #d8f5ff19, 0 32px 100px #020711c4;
  opacity: 0;
  transform: translateY(12px) scale(.975);
  transition: opacity .23s ease, transform .23s ease, overlay .23s allow-discrete, display .23s allow-discrete;
}
.guide-dialog[open] { opacity: 1; transform: none; }
.guide-dialog::backdrop {
  background: #040913cf;
  opacity: 0;
  transition: opacity .23s ease, overlay .23s allow-discrete, display .23s allow-discrete;
}
.guide-dialog[open]::backdrop { opacity: 1; }
@starting-style {
  .guide-dialog[open] { opacity: 0; transform: translateY(12px) scale(.975); }
  .guide-dialog[open]::backdrop { opacity: 0; }
}
.guide-dialog h2 { font-size: clamp(1.44rem, 5vw, 2.15rem); line-height: 1.22; letter-spacing: -.035em; }
.guide-dialog p { margin-block: 12px 19px; color: var(--muted); font-size: .98rem; line-height: 1.7; }
.dialog-close {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  place-content: center;
  padding: 0;
  border: 1px solid #344759;
  border-radius: 8px;
  background: #142132;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}
.dialog-close:hover { border-color: var(--cyan); color: var(--cyan); }

/* 联系面板在悬浮入口上方展开，窄屏也保留两侧安全距离。 */
.floating-tools {
  --float-gutter: 16px;
  position: fixed;
  z-index: 9;
  inset-block-end: max(var(--float-gutter), env(safe-area-inset-bottom));
  inset-inline-end: max(var(--float-gutter), env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  pointer-events: none;
}
.floating-tools button, .help-panel:not([inert]) { pointer-events: auto; }
.float-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #3c5c64;
  border-radius: 11px;
  background: #12212d;
  color: var(--cyan);
  box-shadow: inset 0 1px #d7f4ff13, 0 7px 24px #02071065;
  font-size: 1.17rem;
  font-weight: 720;
  line-height: 1;
  transition: color .2s, background-color .2s, border-color .2s, transform .2s;
}
.float-button:hover, .float-button[aria-expanded="true"] { border-color: #5c9b89; background: #18323b; transform: translateY(-2px); }
.float-button.back-to-top { background: #101b29; border-color: #3a4e62; color: #c1d2e8; }
.float-button.back-to-top:hover { border-color: #a4bcdf; background: #182b40; }
.contact-dock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 6px;
  padding: 7px;
  border: 1px solid #2d4856;
  border-radius: 14px;
  background: #101b29;
  box-shadow: 0 7px 21px #02071065;
}
.contact-dock-label {
  grid-column: 1 / -1;
  margin-inline: 3px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.25;
}
.float-button.help-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  min-width: 66px;
  padding-inline: 7px;
  border-radius: 8px;
  font-size: .82rem;
  white-space: nowrap;
}
.help-toggle[data-open-contact="telegram"] {
  border-color: #38516b;
  color: #bedfff;
}
.help-toggle[data-open-contact="telegram"]:is(:hover, [aria-expanded="true"]) {
  border-color: #648ec4;
  background: #1b2f47;
}
.help-toggle .contact-icon { flex-basis: 24px; height: 24px; border-radius: 6px; }

.help-panel {
  position: absolute;
  inset-block-end: calc(100% + 10px);
  inset-inline-end: 0;
  width: min(310px, calc(100vw - max(var(--float-gutter), env(safe-area-inset-right)) - max(var(--float-gutter), env(safe-area-inset-left))));
  max-height: calc(100dvh - 153px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: auto;
  padding: 16px;
  border: 1px solid #334c60;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at top right, #1d3542, transparent 62%), linear-gradient(148deg, #152336, #0e1927);
  box-shadow: inset 0 1px #d3f1ff14, 0 12px 42px #0208129c;
  transition: opacity .18s ease, transform .18s ease;
}
.help-panel[inert] { visibility: hidden; opacity: 0; transform: translateY(6px); }
.help-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-block-end: 12px;
}
.help-panel-heading h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.help-panel-heading h2:focus { outline: none; }
.help-close {
  display: grid;
  flex: 0 0 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #354b5e;
  border-radius: 9px;
  background: #0f1a27;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
}
.help-close:hover { border-color: #5c9b89; color: var(--cyan); }
.contact-channels { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.contact-channels li {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border: 1px solid #2a4052;
  border-radius: 10px;
  background: #0e1927;
  font-size: .94rem;
}
.contact-icon {
  position: relative;
  display: grid;
  flex: 0 0 36px;
  height: 36px;
  place-items: center;
  border: 1px solid;
  border-radius: 10px;
}
.contact-icon-wechat {
  border-color: #316354;
  background: linear-gradient(145deg, #1d5945, #132e29);
  color: #a4f6c2;
}
.contact-icon-wechat::before,
.contact-icon-wechat::after {
  position: absolute;
  background:
    radial-gradient(circle at 33% 42%, #183d32 1px, transparent 1.3px),
    radial-gradient(circle at 67% 42%, #183d32 1px, transparent 1.3px),
    currentColor;
  content: '';
}
.contact-icon-wechat::before { inset: 22% auto auto 16%; width: 50%; height: 40%; border-radius: 50% 50% 50% 17%; }
.contact-icon-wechat::after { inset: auto 14% 20% auto; width: 44%; height: 35%; border-radius: 50% 50% 17% 50%; box-shadow: 0 0 0 1px #193c32; }
.contact-icon-telegram {
  border-color: #385e83;
  background: linear-gradient(145deg, #254d74, #172b43);
  color: #bedfff;
}
.contact-icon-telegram::before {
  width: 62%;
  height: 59%;
  clip-path: polygon(0 43%, 100% 0, 78% 100%, 53% 70%, 36% 86%, 39% 61%, 79% 22%, 28% 57%);
  background: currentColor;
  content: '';
}
.contact-status {
  margin: 10px 1px 13px;
  color: var(--muted);
  font-size: .8rem;
}
.help-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  padding-block-start: 5px;
  border-top: 1px solid #2a4052;
}
.help-quick-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding-inline: 7px;
  border-radius: 7px;
  color: var(--ink);
  font-size: .83rem;
}
.help-quick-links a span { color: var(--cyan); }
.help-quick-links a:is(:hover, :focus-visible) { background: #1b303b; }

/* 进入视口前暂缓呈现，键盘焦点到达时立即显示。 */
[data-reveal].reveal-pending {
  transition: opacity .54s ease, transform .54s cubic-bezier(.21, .68, .37, 1);
}
[data-reveal].reveal-pending:not(.revealed):not(:focus-within) { opacity: 0; transform: translateY(19px); }

@media (max-width: 760px) {
  .switcher-lab { grid-template-columns: minmax(0, 1fr); }
  .switcher-lab .switcher-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-inline-end: 0;
    border-bottom: 1px solid var(--switcher-border);
    border-radius: calc(var(--radius) + 3px) calc(var(--radius) + 3px) 0 0;
  }
}

@media (max-width: 510px) {
  .switcher-lab .switcher-panel { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .switcher-tabs [role="tab"] { gap: 7px; padding-inline: 7px; font-size: .85rem; }
  .switcher-tabs .product-icon { width: 29px; height: 29px; }
  .lab-diagram { min-height: 161px; }
  .floating-tools { --float-gutter: 10px; }
}

@media (max-width: 565px), (min-width: 761px) and (max-width: 1190px) {
  /* 窄标签给右上角绶带留出垂直空间，图标仍与名称排成一行。 */
  .switcher-tabs [role="tab"]:has(.product-badge) {
    padding-block-start: 27px;
    padding-inline-end: 15px;
  }
}

/* 减少动态效果时让装饰保持静止，并直接呈现所有区块。 */
@media (prefers-reduced-motion: reduce) {
  .switcher-panel,
  .lab-diagram > i, .lab-diagram > i::after { animation: none !important; }
  .float-button, .help-panel { transition: none; }
  .float-button:hover, .float-button[aria-expanded="true"] { transform: none; }
  [data-reveal].reveal-pending:not(.revealed) { opacity: 1; transform: none; }
}

/* 产品面板平时保留亮边和下缘暗面。鼠标移动时再改变局部反光及倾角。 */
.product-depth {
  --depth-x: 50%;
  --depth-y: 35%;
  --depth-rx: 0deg;
  --depth-ry: 0deg;
  --depth-art-x: 0px;
  --depth-art-y: 0px;
  --depth-lift: 3px;
  --depth-shadow: 0 11px 24px #02071245, 0 2px 3px #02071252;
  position: relative;
  isolation: isolate;
  box-shadow: inset 0 1px 0 #dbeaff22, inset 0 -2px 0 #050c1a63, var(--depth-shadow);
}

.product-depth:is(.switcher-lab, .rp-instrument, .lab-diagram, .product-detail-visual, .rotating-specs) {
  --depth-shadow: 0 18px 38px #02071260, 0 3px 5px #02071254;
  box-shadow: inset 0 1px 0 #dbeaff24, inset 0 -2px 0 #050c1a7a, var(--depth-shadow);
}

.product-depth:is(li, [role="tab"], .detail-panel-address, .rp-speed-summary > div, .rp-pool-trunk strong) {
  --depth-lift: 2px;
  --depth-shadow: 0 4px 9px #02071235, 0 1px 2px #0207124d;
}

.rotating-specs li.product-depth { border-radius: 9px; }

/* 网格和连线已使用部分伪元素，反光改用空余的一侧。 */
.product-depth:not(:is(.lab-diagram, .product-detail-visual, .rp-branch))::before,
.product-depth:is(.lab-diagram, .product-detail-visual, .rp-branch)::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at var(--depth-x) var(--depth-y),
    color-mix(in srgb, var(--accent) 19%, transparent),
    color-mix(in srgb, var(--accent) 8%, transparent) 30%,
    transparent 70%);
  opacity: 0;
  pointer-events: none;
  content: "";
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-depth {
    transition: transform .36s cubic-bezier(.17, .75, .3, 1), box-shadow .28s ease,
      border-color .25s ease, background-color .25s ease, color .25s ease;
  }
  .product-depth[data-depth-active] {
    z-index: 2;
    transform: perspective(850px) translateY(calc(-1 * var(--depth-lift))) rotateX(var(--depth-rx)) rotateY(var(--depth-ry));
    box-shadow: inset 0 1px 0 #e4f2ff3d, inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent),
      inset 0 -2px 0 #050c1a80, 0 18px 35px #0207128c, 0 5px 9px #02071274;
    transition-duration: .2s, .22s, .22s, .22s, .22s;
  }
  .product-depth:not(:is(.lab-diagram, .product-detail-visual, .rp-branch))::before,
  .product-depth:is(.lab-diagram, .product-detail-visual, .rp-branch)::after {
    transition: opacity .25s ease;
  }
  .product-depth[data-depth-active]:not(:is(.lab-diagram, .product-detail-visual, .rp-branch))::before,
  .product-depth[data-depth-active]:is(.lab-diagram, .product-detail-visual, .rp-branch)::after {
    opacity: 1;
  }
  .product-depth > .rotating-feature-icon img,
  .product-depth > .product-icon,
  .product-detail-visual.product-depth .product-visual-path > .product-icon {
    translate: var(--depth-art-x) var(--depth-art-y);
    transition: translate .25s ease-out;
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .product-card.product-depth:is(:hover, :focus-visible) { transform: none; }
}
