/* ============================================================
   LinkX 官网 · 首页区块样式
   Hero 参考 MIUI+ 风格：纯黑沉浸 + 大字 + 三下载入口
   ============================================================ */

/* ==================== Hero（黑金沉浸，双主题一致） ==================== */

.hero-v2 {
  position: relative;
  min-height: max(680px, 100svh);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  overflow: hidden;
  background: #05060A;
  color: #F2F5F9;
}
.hero-v2-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(56% 46% at 76% 30%, rgba(51, 153, 245, 0.16) 0%, transparent 68%),
    radial-gradient(40% 36% at 12% 88%, rgba(26, 115, 217, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, #05060A 0%, #0A0E16 78%, #10151F 100%);
}
.hero-v2-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(122, 167, 214, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 167, 214, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(74% 64% at 50% 44%, #000 0%, transparent 100%);
  mask-image: radial-gradient(74% 64% at 50% 44%, #000 0%, transparent 100%);
}

.hero-v2-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px; align-items: center;
  width: min(1240px, calc(100% - 48px)); margin-inline: auto;
}

.hero-v2-copy { position: relative; z-index: 3; will-change: transform; }

.hero-brand {
  display: flex; align-items: flex-start; gap: 18px;
  font-size: clamp(58px, 8.6vw, 112px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 0 60px rgba(74, 168, 255, 0.28);
}
.ver-pill {
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 600; letter-spacing: 0.02em;
  color: rgba(242, 245, 249, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 7px 16px;
  margin-top: 0.9em;
  white-space: nowrap;
}
.hero-slogan {
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(242, 245, 249, 0.68);
  margin: 18px 0 46px;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
/* ---- 三下载入口 ---- */

.hero-entries { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-entries .btn-lg { height: 54px; padding: 0 30px; font-size: 16px; }
.hero-entries .btn svg { width: 19px; height: 19px; }

.entry-dl { position: relative; }
.entry-dl .chev { transition: transform 0.28s var(--ease); margin-left: 2px; }
.entry-dl.open .chev { transform: rotate(180deg); }

.dl-flyout {
  position: absolute; top: calc(100% + 14px); left: 0; z-index: 40;
  min-width: 350px;
  background: #14171E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  padding: 8px;
  opacity: 0; transform: translateY(10px) scale(0.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease-out);
}
.entry-dl.open .dl-flyout { opacity: 1; transform: none; pointer-events: auto; }
.fly-item {
  display: flex; align-items: center; gap: 15px;
  padding: 15px 16px; border-radius: 13px;
  transition: background-color 0.2s var(--ease);
}
.fly-item:hover { background: rgba(255, 255, 255, 0.07); }
.fly-os {
  width: 48px; height: 48px; border-radius: 13px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1FA8E8, #0F7FB8);
  color: #fff;
}
.fly-os svg { width: 28px; height: 28px; }
.fly-item b { display: block; font-size: 16.5px; color: #F2F5F9; }
.fly-item span:not(.fly-os) { display: block; font-size: 13.5px; color: rgba(242, 245, 249, 0.55); margin-top: 3px; }
.fly-item .fly-go { margin-left: auto; color: rgba(242, 245, 249, 0.4); flex: none; transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.fly-item .fly-go svg { width: 16px; height: 16px; }
.fly-item:hover .fly-go { color: #4AA8FF; transform: translateX(3px); }

/* ---- Hero 右侧：真机截图组合（笔记本 + 手机） ---- */

.hero-v2-stage {
  position: relative;
  height: clamp(400px, 40vw, 540px);
  user-select: none;
}
.hero-glow {
  position: absolute; left: 8%; right: 4%; top: 16%; bottom: 0;
  background: radial-gradient(60% 60% at 55% 55%, rgba(51, 153, 245, 0.22), transparent 70%);
  filter: blur(48px);
  pointer-events: none;
}

.hero-laptop { position: absolute; right: 0; top: 2%; width: min(660px, 90%); }
.laptop-screen {
  background: #0C0E13;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  padding: 9px 9px 0;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.6);
}
.laptop-screen .ls-clip {
  border-radius: 9px 9px 0 0;
  overflow: hidden;
  aspect-ratio: 1920 / 1200;
  background: #10131A;
}
.laptop-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop-base {
  position: relative;
  height: 15px;
  margin: 0 -3.5%;
  background: linear-gradient(180deg, #2C313C 0%, #171A21 60%, #0E1016 100%);
  border-radius: 2px 2px 16px 16px;
}
.laptop-base::before {
  content: ""; position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  width: 15%; height: 6px;
  background: #0B0D12;
  border-radius: 0 0 8px 8px;
}

.hero-phone2 {
  position: absolute; left: -1%; bottom: -3%;
  width: clamp(148px, 14.5vw, 186px);
  border-radius: 34px;
  background: #0C0E13;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.65);
  transform: rotate(-4deg);
}
.phone2-screen {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 1080 / 2340;
  background: #000;
}
.phone2-screen img {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 106%;
  object-fit: cover; object-position: center bottom;
}

/* 滚动提示 */
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.2em;
  color: rgba(242, 245, 249, 0.4);
  transition: opacity 0.4s var(--ease);
}
.scroll-hint.hide { opacity: 0; }
.sh-wheel {
  width: 22px; height: 34px;
  border: 1.6px solid rgba(242, 245, 249, 0.4);
  border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.sh-wheel i {
  width: 3px; height: 7px; border-radius: 3px;
  background: rgba(242, 245, 249, 0.7);
  animation: wheel-drop 1.8s var(--ease) infinite;
}
@keyframes wheel-drop {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(9px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 960px) {
  .hero-v2-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-v2 { padding-bottom: 72px; }
  .hero-v2-stage { max-width: 620px; margin-inline: auto; width: 100%; }
  .hero-v2 { min-height: 0; }
  .scroll-hint { display: none; }
}

/* ==================== 跨越生态鸿沟（MIUI 式渐变大字版面） ==================== */

.bridge {
  position: relative;
  min-height: max(560px, 92svh);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(118deg, #0B4E8F 0%, #1A73D9 48%, #3399F5 100%);
  color: #FFFFFF;
  padding: 96px 0;
}
.bridge-tag {
  display: inline-block;
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 8px 20px;
  margin-bottom: 30px;
}
.bridge-title {
  font-size: clamp(42px, 7.4vw, 92px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.14;
  text-shadow: 0 4px 40px rgba(10, 40, 90, 0.25);
  margin-bottom: 26px;
}
.bridge-sub {
  font-size: clamp(16px, 1.9vw, 21px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
}
.bridge-sub b {
  color: #FFFFFF;
  border-bottom: 3px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}
.bridge-word {
  position: absolute;
  bottom: -0.16em;
  font-size: clamp(64px, 10.5vw, 158px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.bridge-word.w-left { left: -0.04em; }
.bridge-word.w-right { right: -0.04em; }
@media (max-width: 720px) {
  .bridge-word { font-size: 17vw; }
  .bridge-word.w-left { bottom: 15%; }
  .bridge-word.w-right { bottom: -0.14em; }
}

/* ==================== 功能 Bento ==================== */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.b-card {
  position: relative;
  grid-column: span 2;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  transform-style: preserve-3d;
}
.b-card.span4 { grid-column: span 4; }
.b-card.span6 { grid-column: span 6; }
.b-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--divider)); box-shadow: var(--shadow-md); }
.b-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%);
  opacity: 0; transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.b-card:hover::before { opacity: 1; }

.b-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(51, 153, 245, 0.14);
  color: var(--accent-strong);
  margin-bottom: 20px;
  transition: transform 0.3s var(--ease-out);
}
.b-card:hover .b-icon { transform: translateY(-3px) scale(1.06) rotate(-3deg); }
.b-icon svg { width: 27px; height: 27px; }
.b-card h3 { font-size: 21px; margin-bottom: 10px; }
.b-card p { font-size: 15.5px; line-height: 1.75; color: var(--text-2); text-wrap: balance; }
.b-card .b-tag {
  display: inline-block; margin-top: 16px;
  font-size: 13px; font-weight: 600; color: var(--accent-strong);
  background: rgba(51, 153, 245, 0.14); border-radius: 999px; padding: 5px 13px;
}


.b-transfer {
  margin-top: 20px;
  border: 1px solid var(--divider); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
  padding: 16px 18px;
  font-size: 13.5px;
}.b-transfer .bt-row { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.b-transfer .bt-row:last-child { margin-bottom: 0; }
.b-transfer .bt-name { font-weight: 600; font-family: var(--font-mono); font-size: 12.5px; }
.b-transfer .bt-speed { margin-left: auto; color: var(--ok); font-weight: 600; font-size: 12.5px; }
.b-transfer .bt-bar { height: 5px; border-radius: 999px; background: var(--surface); overflow: hidden; margin-top: -4px; }
.b-transfer .bt-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); width: 30%; animation: bt-slide 3s var(--ease) infinite; }
@keyframes bt-slide { 0% { width: 4%; } 70% { width: 96%; } 100% { width: 100%; } }

.b-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
.b-gallery img {
  aspect-ratio: 1; width: 100%;
  object-fit: cover; display: block;
  border-radius: 9px;
  border: 1px solid var(--divider);
  transition: transform 0.3s var(--ease-out);
}
.b-card:hover .b-gallery img { transform: translateY(-3px); }
.b-gallery img:nth-child(2) { transition-delay: 0.04s; }
.b-gallery img:nth-child(3) { transition-delay: 0.08s; }
.b-gallery img:nth-child(4) { transition-delay: 0.12s; }

.b-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 22px 38px; }
.b-mini { display: flex; gap: 14px; align-items: flex-start; }
.b-mini .b-icon { width: 40px; height: 40px; margin: 0; flex: none; border-radius: 11px; }
.b-mini h4 { font-size: 17px; margin-bottom: 0; }
.b-mini p { font-size: 14.5px; color: var(--text-2);  text-wrap: balance; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-card, .b-card.span4, .b-card.span6 { grid-column: span 2; }
  .b-strip { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .b-card { padding: 22px; }
}

/* ==================== 滚动 marquee（随滚轮变速） ==================== */

.marquee {
  overflow: hidden;
  padding: 30px 0;
  border-block: 1px solid var(--divider);
  background: var(--bg-soft);
  white-space: nowrap;
  will-change: transform;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 34px;
  padding-right: 34px;
  animation: marquee-run 30s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 700; letter-spacing: 0.02em;
  color: var(--text-2);
}
.marquee-track span.hl { color: var(--accent-strong); }
.marquee-track i {
  font-style: normal; font-size: 13px; color: var(--accent);
  opacity: 0.7;
}
@keyframes marquee-run { to { transform: translateX(-50%); } }

/* ==================== 安全链路 ==================== */

.security { background: var(--bg-soft); border-block: 1px solid var(--divider); }
.sec-grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px; align-items: center;
}
.sec-points { display: grid; gap: 14px; margin: 26px 0 30px; }
.sec-point { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.8; color: var(--text-2); }
.sec-point svg { width: 19px; height: 19px; color: var(--ok); flex: none; margin-top: 2px; }
.sec-point b { color: var(--text); font-weight: 600; }
.sec-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sec-more { font-size: 14px; color: var(--accent-strong); font-weight: 600; margin-left: 6px; }
.sec-more:hover { text-decoration: underline; }

.sec-diagram {
  position: relative;
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow-md);
}
.sec-diagram svg { width: 100%; height: auto; }
.sec-diagram text { font-family: var(--font-ui); }
.sec-diagram .draw-path { fill: none; stroke-linecap: round; }
.sec-diagram .dp-ble { stroke: var(--ok); stroke-width: 3; stroke-dasharray: 6 8; }
.sec-diagram .dp-tcp { stroke: var(--accent); stroke-width: 4; }
.sec-diagram .node-box { fill: var(--bg-soft); stroke: var(--divider); rx: 12; }
.sec-diagram .node-label { font-size: 15.5px; font-weight: 700; fill: var(--text); }
.sec-diagram .node-sub { font-size: 12px; fill: var(--text-3); }
.sec-diagram .flow-label { font-size: 13.5px; font-weight: 600; fill: var(--text-2); }
.sec-diagram .packet-dot { fill: var(--accent); animation: dot-tcp 4s var(--ease) infinite; opacity: 0; }
.sec-diagram .packet-dot.ble { fill: var(--ok); animation-name: dot-ble; animation-duration: 5.2s; }
.in-view .packet-dot { opacity: 1; }
@keyframes dot-tcp {
  0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; }
}
@keyframes dot-ble {
  0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 86% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; }
}
.sec-badge {
  position: absolute; top: -14px; right: 22px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ok-soft); color: var(--ok);
  font-size: 13.5px; font-weight: 700;
  border-radius: 999px; padding: 7px 15px;
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .sec-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==================== 界面画廊（滚动驱动 scrollytelling） ==================== */

.gallery-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }
.gallery-theme { display: flex; gap: 8px; }
.gtheme-btn {
  padding: 8px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  border: 1px solid var(--divider); background: var(--surface);
  transition: all 0.22s var(--ease);
}
.gtheme-btn:hover { color: var(--text); border-color: var(--text-3); }
.gtheme-btn.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}
html[data-theme="dark"] .gtheme-btn.active { color: #06243F; }

.gallery-scroll { position: relative; height: calc(var(--g-steps, 8) * 62vh + 100vh); margin-top: 10px; }
.gallery-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.gallery-pin-inner {
  display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(1240px, calc(100% - 48px)); margin-inline: auto;
}

.gallery-texts { position: relative; min-height: 260px; }
.g-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-out);
  pointer-events: none;
}
.g-text.active { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.g-text .g-idx {
  font-family: var(--font-mono);
  font-size: 15px; color: var(--accent-strong); letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.g-text h3 { font-size: clamp(28px, 3.2vw, 44px); margin-bottom: 14px; letter-spacing: -0.015em; text-wrap: balance; }
.g-text p { font-size: 17px; line-height: 1.8; color: var(--text-2); max-width: 380px;  text-wrap: balance; }

.gallery-stage { position: relative; }
.g-window {
  border-radius: var(--r-lg);
  border: 1px solid var(--divider);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.g-titlebar {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px;
  border-bottom: 1px solid var(--divider);
  background: var(--bg-soft);
}
.g-titlebar .logo-dot { width: 16px; height: 16px; border-radius: 5px; overflow: hidden; }
.g-titlebar .gt-name { font-size: 13px; font-weight: 600; }
.g-titlebar .gt-page { font-size: 12px; color: var(--text-3); }
.g-titlebar .gt-ctrl { margin-left: auto; display: flex; gap: 16px; color: var(--text-3); }
.g-titlebar .gt-ctrl span { font-size: 12px; line-height: 1; }
.g-screen { position: relative; aspect-ratio: 1202 / 864; background: var(--bg-soft); }
.g-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  opacity: 0;
  transition: opacity 0.26s var(--ease);
}
.g-screen img.current { opacity: 1; }

.g-phone {
  position: absolute; right: -6px; bottom: -6%;
  width: clamp(136px, 14.5vw, 186px);
  border-radius: 26px;
  background: #0C0E13;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
  transform: rotate(3deg);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.g-phone.no-phone { opacity: 0; transform: rotate(3deg) translateY(16px); pointer-events: none; }
.g-phone-screen {
  position: relative;
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 1080 / 2340;
  background: #000;
}
.g-phone-screen img {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 106%;
  object-fit: cover; object-position: center bottom;
  filter: brightness(1.12);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.g-phone-screen img.current { opacity: 1; }


/* 步骤圆点导航（可点击跳转） */
.g-dots { display: flex; gap: 11px; justify-content: center; margin-top: 20px; }
.g-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--divider);
  padding: 0; border: 0; cursor: pointer;
  transition: background-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.g-dot:hover { background: var(--text-3); }
.g-dot.active { background: var(--accent); transform: scale(1.3); }

/* 画廊降级（reduced-motion）：静态纵向排列 */
.gallery-scroll.static { height: auto; }
.gallery-scroll.static .gallery-pin { position: static; height: auto; display: block; padding: 20px 0 40px; }
.gallery-scroll.static .gallery-texts { display: none; }
.gallery-scroll.static .g-window { margin-bottom: 18px; }
.gallery-scroll.static .g-screen img { position: static; opacity: 1; transform: none; display: none; }
.gallery-scroll.static .g-screen img.current { display: block; }
.gallery-scroll.static .g-phone { display: none; }

@media (max-width: 960px) {
  .gallery-pin-inner { grid-template-columns: 1fr; gap: 24px; align-items: end; }
  .gallery-texts { min-height: 150px; order: 2; }
  .g-text { justify-content: flex-start; }
  .g-text p { max-width: none; }
  .g-phone { right: 2px; }
}

/* ==================== 横向对比 ==================== */

.compare-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--divider); background: var(--surface); }
.compare-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td {
  padding: 16px 18px; text-align: left;
  border-bottom: 1px solid var(--divider);
  color: var(--text-2);
  vertical-align: top;
}
.compare-table small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 5px; font-weight: 400; line-height: 1.5; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table thead th { font-size: 15px; color: var(--text); font-weight: 700; background: var(--bg-soft); white-space: nowrap; }
.compare-table thead th small { margin-top: 3px; letter-spacing: 0.02em; }
.compare-table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.compare-table .col-lx { background: var(--accent-soft); }
.compare-table thead .col-lx { color: var(--accent-strong); }
.compare-table td.good { color: var(--ok); font-weight: 600; }
.compare-table td.bad { color: var(--text-3); }
.compare-table tbody tr { transition: background-color 0.2s var(--ease); }
.compare-note { margin-top: 16px; font-size: 13.5px; color: var(--text-3); text-align: center; }

/* ==================== 技术版面（一套核心，两个壳） ==================== */

.arch { max-width: 980px; margin-inline: auto; }
.arch-layer {
  position: relative;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.035);
  padding: 26px 30px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.arch-layer:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--divider)); box-shadow: var(--shadow-md); }
.arch-layer .al-tag {
  position: absolute; top: -12px; left: 20px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 3px 12px; border-radius: 999px;
}
.arch-layer h3 { font-size: 19px; margin-bottom: 6px; }
.arch-layer .al-desc { font-size: 15px; color: var(--text-2); margin-bottom: 0; }

.arch-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.arch-duo .arch-layer { margin-top: 12px; }

.arch-link { display: flex; justify-content: center; padding: 6px 0; color: var(--text-3); }
.arch-link svg { width: 18px; height: 18px; animation: arch-bob 2s var(--ease) infinite; }
@keyframes arch-bob { 0%, 100% { transform: translateY(-2px); opacity: 0.6; } 50% { transform: translateY(2px); opacity: 1; } }

.arch-core .al-head { margin-bottom: 16px; }
.crate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.crate {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  padding: 15px 17px;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.crate:hover { border-color: var(--accent); transform: translateY(-2px); }
.crate b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-family: var(--font-mono); color: var(--accent-strong); }
.crate b i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.crate span { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 6px; }

.arch-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.arch-ch { border: 1px solid rgba(255,255,255,0.09); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.035); padding: 24px 26px; margin-top: 12px; position: relative; }
.arch-ch.ch-ble .ch-ico { background: var(--ok-soft); color: var(--ok); }
.arch-ch.ch-tcp .ch-ico { background: var(--accent-soft); color: var(--accent-strong); }
.ch-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.ch-ico svg { width: 20px; height: 20px; }
.arch-ch h4 { font-size: 17px; margin-bottom: 6px; }
.arch-ch p { font-size: 14.5px; color: var(--text-2); }
@media (max-width: 720px) {
  .arch-duo, .arch-channels { grid-template-columns: 1fr; }
  .crate-grid { grid-template-columns: 1fr 1fr; }
}

.tiny-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tiny-card { padding: 28px; }
.tiny-card .b-icon { width: 48px; height: 48px; margin-bottom: 16px; border-radius: 13px; }
.tiny-card .b-icon svg { width: 24px; height: 24px; }
.tiny-card h3 { font-size: 18px; margin-bottom: 8px; }
.tiny-card p { font-size: 15px; color: var(--text-2); }
@media (max-width: 900px) { .tiny-grid { grid-template-columns: 1fr; } }

.qa-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  background: var(--surface);
  overflow: hidden;
}
.qa-item { padding: 36px 18px; text-align: center; position: relative; }
.qa-item + .qa-item::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: var(--divider);
}
.qa-item .qa-num {
  font-size: clamp(26px, 3vw, 38px); font-weight: 800;
  color: var(--accent-strong); font-variant-numeric: tabular-nums;
}
.qa-item .qa-label { font-size: 14px; color: var(--text-2); margin-top: 8px; }
@media (max-width: 860px) {
  .qa-band { grid-template-columns: repeat(2, 1fr); }
  .qa-item:nth-child(3)::before { display: none; }
  .qa-item:nth-child(n+3) { border-top: 1px solid var(--divider); }
}

/* ==================== 深色大版面统一处理 ==================== */
/* 所有内容板块压入同一套深色美学：黑网格 / 深蓝 / 玻璃卡 */

body { background: #0B0E14; }

#features { background: #0A0E16; }
#features::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(122, 167, 214, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 167, 214, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 26%, #000, transparent 100%);
  mask-image: radial-gradient(72% 62% at 50% 26%, #000, transparent 100%);
}

.security {
  background: linear-gradient(180deg, #0A0F1B 0%, #0C1526 100%) !important;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

#showcase { background: #06080C; }

#tech {
  background:
    radial-gradient(46% 40% at 78% 10%, rgba(51, 153, 245, 0.10) 0%, transparent 70%),
    radial-gradient(40% 36% at 12% 90%, rgba(26, 115, 217, 0.08) 0%, transparent 70%),
    #0A0E16;
}

#compare { background: #0A0E16; }

.marquee { background: #0A0E16; border-block-color: rgba(255, 255, 255, 0.06); }
.marquee-track span { color: rgba(255, 255, 255, 0.55); }

.footer { background: #07090D; border-top-color: rgba(255, 255, 255, 0.06); }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.07); }
.footer h4 { color: var(--text-3); }

/* 玻璃卡：深色底上的统一卡面 */
.b-card, .arch-layer, .arch-ch, .tiny-card, .sec-diagram,
.qa-band, .compare-scroll, .g-window {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.09);
}
.b-card:hover { border-color: rgba(74, 168, 255, 0.45); }
.b-icon { background: rgba(51, 153, 245, 0.14); }
.b-tag { background: rgba(51, 153, 245, 0.14); }
.b-transfer { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.07); }
.b-transfer .bt-bar { background: rgba(255, 255, 255, 0.08); }
.b-gallery img { border-color: rgba(255, 255, 255, 0.12); }
.crate { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.07); }
.qa-item + .qa-item::before { background: rgba(255, 255, 255, 0.08); }
.compare-table th, .compare-table td { border-color: rgba(255, 255, 255, 0.07); }
.compare-table thead th { background: rgba(255, 255, 255, 0.05); }
.compare-table thead .col-lx { background: rgba(51, 153, 245, 0.20); }
.compare-table .col-lx { background: rgba(51, 153, 245, 0.11); }
.g-titlebar { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.07); }
.g-screen { background: #0D1117; }
.g-dot { background: rgba(255, 255, 255, 0.16); }
.g-dot.active { background: var(--accent); }
.g-phone { border-color: rgba(255, 255, 255, 0.14); }
