/* ===== 分表计电门户 · 全局主题 ===== */

:root {
  /* 品牌配色 —— 电力科技感 */
  --navy-900: #060b1f;
  --navy-800: #0a1430;
  --navy-700: #0f1e46;
  --navy-600: #16295c;
  --bg: #eef4ff;
  --cyan: #12b5e6;
  --cyan-soft: #3ad0ff;
  --blue: #2f6bff;
  --violet: #6d4dff;
  --green: #12b377;
  --amber: #e08a12;

  /* 亮色主题文字（深藏蓝，高对比） */
  --text: #0b1a3a;
  --text-dim: #3f527d;
  --muted: #6b7a99;

  --surface: rgba(12, 32, 72, 0.045);
  --surface-2: rgba(12, 32, 72, 0.08);
  --border: rgba(20, 48, 110, 0.14);
  --border-strong: rgba(37, 99, 235, 0.32);

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 20px 50px -24px rgba(20, 45, 110, 0.3);
  --glow: 0 0 34px -10px rgba(34, 150, 255, 0.45);

  --header-h: 76px;

  /* 字体栈：优先阿里巴巴普惠体 3.0（与微软雅黑最像的免费可商用字体），未加载时回退雅黑/苹方 */
  --font-sans: "Alibaba PuHuiTi 3.0", "PingFang SC", "Microsoft YaHei", "Inter", system-ui,
    -apple-system, "Segoe UI", Roboto, sans-serif;

  /* 全屏流式布局：不限制最大宽度，仅用弹性内边距收边 */
  --gutter: clamp(18px, 5vw, 90px);

  --grad-brand: linear-gradient(120deg, #12b5e6 0%, #2f6bff 55%, #6d4dff 100%);
  /* 按钮专用：更轻快的天蓝→霞光紫，白字 */
  --grad-cta: linear-gradient(120deg, #38c6f5 0%, #4d8dff 55%, #8b7bff 100%);
  --cta-ink: #ffffff;
  --grad-soft: linear-gradient(160deg, rgba(18, 181, 230, 0.12), rgba(109, 77, 255, 0.10));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景网格 + 光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(18, 181, 230, 0.1), transparent 60%),
    radial-gradient(800px 620px at 92% 8%, rgba(109, 77, 255, 0.1), transparent 60%),
    radial-gradient(700px 700px at 60% 110%, rgba(47, 107, 255, 0.08), transparent 60%),
    var(--bg);
}


a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: 0.2px;
}

p {
  margin: 0 0 1em;
}

/* ===== 布局工具（全屏流式，不封顶宽度）===== */
.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-tight {
  padding: 64px 0;
  position: relative;
}

/* ===== 分区栏目感：白色交替带 + 顶部渐隐发丝分隔线 ===== */
.section.alt {
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(47, 107, 255, 0.04), transparent 70%),
    #ffffff;
}
.section::before,
.section-tight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 107, 255, 0.28), transparent);
  pointer-events: none;
}

/* 锁点跳转（导航二级菜单）时预留固定头部高度 */
section[id],
[id^="sol-"],
[id^="cat-"] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.center {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: rgba(34, 230, 255, 0.06);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin: 18px 0 14px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 920px;
  margin: 0 auto;
}

.grad-text {
  padding: 0 6px 0 0;
  background: var(--grad-brand);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-pan 6s linear infinite;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-cta);
  color: var(--cta-ink);
  box-shadow: 0 12px 30px -14px rgba(77, 141, 255, 0.65);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 38px -12px rgba(77, 141, 255, 0.8);
}

/* 主按钮扫光 */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover::after {
  left: 150%;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  background: var(--surface-2);
  border-color: var(--cyan);
}

.btn .arrow {
  transition: transform 0.25s ease;
}

.btn:hover .arrow {
  transform: translateX(5px);
}

/* ===== 卡片 ===== */
.card {
  position: relative;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card .icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  margin-bottom: 20px;
  color: var(--cyan);
}

.card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
}

/* 网格布局：超宽屏自动增加列数，铺满全屏 */
.grid {
  display: grid;
  gap: clamp(18px, 2vw, 30px);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

.grid-fixed-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== 滚动揭示动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* 入场变体（与 .reveal 配合使用）*/
.reveal-l { transform: translateX(-46px); }
.reveal-r { transform: translateX(46px); }
.reveal-scale { transform: scale(0.9); }
.reveal-l.in, .reveal-r.in, .reveal-scale.in { transform: none; }

/* ===== 关键帧 ===== */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}

@keyframes floatX {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -14px); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes dash {
  to { stroke-dashoffset: 0; }
}

@keyframes shine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes gradient-pan {
  to { background-position: 220% center; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(16px, -30px); }
  100% { transform: translate(0, 0); }
}


@keyframes eq {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

@keyframes scan {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}

/* ===== 首页 Hero 入场动画 ===== */
.hero-copy > * {
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.31s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.44s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.57s; }
.hero-visual { opacity: 0; animation: rise 0.9s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

/* ===== 环境光效（漂浮粒子 / 滚动进度）===== */
.fx-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.fx-particles span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  animation: drift linear infinite;
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 130;
  background: var(--grad-brand);
  box-shadow: 0 0 12px var(--cyan);
}

/* 首页未滚动时：导航融入首屏大图，做成悬浮玻璃胶囊，不再是顶部压黑 */
body.home .site-header:not(.scrolled) {
  background: transparent;
}
body.home .site-header:not(.scrolled) .inner {
  width: calc(100% - 28px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 9px 10px 9px 18px;
  border-radius: 999px;
  /* 白调磨砂玻璃：蓝色大图上更通透轻盈 */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 30px -14px rgba(10, 30, 80, 0.35);
}
body.home .site-header:not(.scrolled) .logo-text {
  color: #0b1a3a;
}
body.home .site-header:not(.scrolled) .logo-text small {
  color: rgba(11, 26, 58, 0.55);
}
body.home .site-header:not(.scrolled) .nav-link {
  color: rgba(11, 26, 58, 0.72);
}
body.home .site-header:not(.scrolled) .nav-link:hover,
body.home .site-header:not(.scrolled) .nav-link.active {
  color: #0b1a3a;
}
body.home .site-header:not(.scrolled) .menu-toggle {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(11, 26, 58, 0.12);
}
body.home .site-header:not(.scrolled) .menu-toggle span {
  background: #0b1a3a;
}
/* 移动端菜单展开后是白底，文字保持深色 */
body.home .site-header:not(.scrolled) .main-nav.open .nav-link {
  color: var(--text-dim);
}
body.home .site-header:not(.scrolled) .main-nav.open .nav-link:hover {
  color: var(--text);
}

/* 动效默认常开，不跟随系统 prefers-reduced-motion 设置 */

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .grid-fixed-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  .grid-fixed-3 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .btn { padding: 12px 22px; }
}
.site-header[data-astro-cid-nen7h5rs] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s, height .3s, border-color .3s;
  border-bottom: 1px solid #0000;
}

.site-header[data-astro-cid-nen7h5rs].scrolled {
  height: 64px;
  background: #ffffffd1;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -20px #142d6e59;
}

.inner[data-astro-cid-nen7h5rs] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.logo[data-astro-cid-nen7h5rs] {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
}

.logo-mark[data-astro-cid-nen7h5rs] {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark[data-astro-cid-nen7h5rs] img[data-astro-cid-nen7h5rs] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-text[data-astro-cid-nen7h5rs] {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text[data-astro-cid-nen7h5rs] small[data-astro-cid-nen7h5rs] {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
  font-weight: 600;
}

.main-nav[data-astro-cid-nen7h5rs] {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  transform: translateX(-50%);
}

.nav-link[data-astro-cid-nen7h5rs] {
  position: relative;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: 10px;
  transition: color .25s, background .25s;
}

.nav-link[data-astro-cid-nen7h5rs]:after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: 0;
  transition: transform .3s;
}

.nav-link[data-astro-cid-nen7h5rs]:hover {
  color: var(--text);
}

.nav-link[data-astro-cid-nen7h5rs]:hover:after, .nav-link[data-astro-cid-nen7h5rs].active:after {
  transform: scaleX(1);
}

.nav-link[data-astro-cid-nen7h5rs].active {
  color: var(--text);
}

.menu-toggle[data-astro-cid-nen7h5rs] {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle[data-astro-cid-nen7h5rs] span[data-astro-cid-nen7h5rs] {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.menu-toggle[data-astro-cid-nen7h5rs].open span[data-astro-cid-nen7h5rs]:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[data-astro-cid-nen7h5rs].open span[data-astro-cid-nen7h5rs]:nth-child(2) {
  opacity: 0;
}

.menu-toggle[data-astro-cid-nen7h5rs].open span[data-astro-cid-nen7h5rs]:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (width <= 960px) {
  .menu-toggle[data-astro-cid-nen7h5rs] {
    display: flex;
  }

  .main-nav[data-astro-cid-nen7h5rs] {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 24px 26px;
    background: #fffffff7;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, transform .3s, visibility .3s;
  }

  .main-nav[data-astro-cid-nen7h5rs].open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav-link[data-astro-cid-nen7h5rs] {
    padding: 14px 16px;
    font-size: 16px;
  }

  .nav-link[data-astro-cid-nen7h5rs]:after {
    display: none;
  }
}

.nav-item[data-astro-cid-nen7h5rs] {
  display: inline-flex;
  align-self: stretch;
  align-items: center;
}

.nav-item[data-astro-cid-nen7h5rs] .caret[data-astro-cid-nen7h5rs] {
  font-size: 10px;
  margin-left: 5px;
  opacity: .65;
  display: inline-block;
  transition: transform .25s;
}

.nav-item[data-astro-cid-nen7h5rs]:hover .caret[data-astro-cid-nen7h5rs] {
  transform: rotate(180deg);
}

.mega[data-astro-cid-nen7h5rs] {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding-top: 10px;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s, transform .3s cubic-bezier(.2, .8, .2, 1), visibility .3s;
  z-index: 50;
}

.nav-item[data-astro-cid-nen7h5rs]:hover .mega[data-astro-cid-nen7h5rs], .nav-item[data-astro-cid-nen7h5rs]:focus-within .mega[data-astro-cid-nen7h5rs] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-inner[data-astro-cid-nen7h5rs] {
  width: calc(100% - 28px);
  max-width: 1240px;
  margin: 0 auto;
  background: linear-gradient(#fff, #f8fbff);
  border: 1px solid #fff;
  border-radius: 24px;
  box-shadow: inset 0 2px #fff9, 0 24px 56px -18px #0a1e5047;
  padding: 20px 22px 24px;
}

.mega-head[data-astro-cid-nen7h5rs] {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--muted);
  margin: 2px 8px 12px;
}

.mega-grid[data-astro-cid-nen7h5rs] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

.mega-item[data-astro-cid-nen7h5rs] {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 3px 14px;
  padding: 16px 18px;
  border: 1px solid #0000;
  border-radius: 16px;
  transition: background .2s, border-color .2s, transform .2s;
}

.mega-item[data-astro-cid-nen7h5rs]:hover {
  background: linear-gradient(140deg, #f5f9ff, #eef5ff);
  border-color: #ddebff;
  box-shadow: 0 10px 24px -14px #0a1e5038;
  transform: translateY(-2px);
}

.mi-title[data-astro-cid-nen7h5rs] {
  grid-column: 1;
  grid-row: 1;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.mi-desc[data-astro-cid-nen7h5rs] {
  grid-column: 1;
  grid-row: 2;
  font-size: 13.5px;
  color: var(--text-dim);
}

.mi-arrow[data-astro-cid-nen7h5rs] {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 18px;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .2s, color .2s;
}

.mega-item[data-astro-cid-nen7h5rs]:hover .mi-title[data-astro-cid-nen7h5rs] {
  color: var(--blue);
}

.mega-group[data-astro-cid-nen7h5rs] {
  border: 1px solid #0000;
  border-radius: 16px;
  padding: 10px 14px;
}

.mega-group[data-astro-cid-nen7h5rs]:hover {
  border-color: var(--border);
  background: #2f6bff0a;
}

.mg-title[data-astro-cid-nen7h5rs] {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 4px 0 8px;
}

.mg-link[data-astro-cid-nen7h5rs] {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .2s, background .2s;
}

.mg-link[data-astro-cid-nen7h5rs]:hover {
  color: var(--blue);
  background: #2f6bff0f;
}

.mega-item[data-astro-cid-nen7h5rs]:hover .mi-arrow[data-astro-cid-nen7h5rs] {
  opacity: 1;
  transform: none;
  color: var(--blue);
}

@media (width <= 960px) {
  .nav-item[data-astro-cid-nen7h5rs] {
    display: block;
  }

  .nav-item[data-astro-cid-nen7h5rs] .caret[data-astro-cid-nen7h5rs] {
    display: none;
  }

  .mega[data-astro-cid-nen7h5rs] {
    position: static;
    transform: none;
    background: none;
    border: none;
    box-shadow: none;
    padding-top: 0;
  }

  .main-nav[data-astro-cid-nen7h5rs].open .mega[data-astro-cid-nen7h5rs] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mega-inner[data-astro-cid-nen7h5rs] {
    width: 100%;
    max-width: none;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 0 6px;
  }

  .mega-head[data-astro-cid-nen7h5rs] {
    display: none;
  }

  .mega-grid[data-astro-cid-nen7h5rs] {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mega-item[data-astro-cid-nen7h5rs] {
    padding: 8px 14px 8px 34px;
  }

  .mi-title[data-astro-cid-nen7h5rs] {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
  }

  .mi-desc[data-astro-cid-nen7h5rs], .mi-arrow[data-astro-cid-nen7h5rs] {
    display: none;
  }

  .mega-group[data-astro-cid-nen7h5rs]:hover {
    border-color: #0000;
    background: none;
  }

  .mg-title[data-astro-cid-nen7h5rs] {
    margin: 6px 0 2px 24px;
  }

  .mg-link[data-astro-cid-nen7h5rs] {
    padding: 6px 14px 6px 38px;
    font-size: 13.5px;
  }
}
.site-footer[data-astro-cid-jo6i4kqk] {
  position: relative;
  margin-top: 40px;
  padding-top: 70px;
  background: linear-gradient(#eef4ff, #e3ecfa);
  border-top: 1px solid var(--border);
}

.site-footer[data-astro-cid-jo6i4kqk]:before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--grad-brand);
  filter: blur(.5px);
  opacity: .6;
}

.footer-grid[data-astro-cid-jo6i4kqk] {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}

.f-logo[data-astro-cid-jo6i4kqk] {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.f-mark[data-astro-cid-jo6i4kqk] {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  overflow: hidden;
  flex-shrink: 0;
}

.f-mark[data-astro-cid-jo6i4kqk] img[data-astro-cid-jo6i4kqk] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.f-desc[data-astro-cid-jo6i4kqk] {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 380px;
}

.f-contact[data-astro-cid-jo6i4kqk] {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.link-col[data-astro-cid-jo6i4kqk] h4[data-astro-cid-jo6i4kqk] {
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--text);
}

.link-col[data-astro-cid-jo6i4kqk] ul[data-astro-cid-jo6i4kqk] {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.link-col[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk] {
  color: var(--text-dim);
  font-size: 14px;
  transition: color .25s, padding-left .25s;
}

.link-col[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk]:hover {
  color: var(--cyan);
  padding-left: 5px;
}

.qr-col[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-dim);
  font-size: 13px;
}

.qr-box[data-astro-cid-jo6i4kqk] {
  width: 128px;
  height: 138px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  overflow: hidden;
}

.qr-img[data-astro-cid-jo6i4kqk] {
  width: 84px;
  height: 84px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
}

.qr-box[data-astro-cid-jo6i4kqk] small[data-astro-cid-jo6i4kqk] {
  color: var(--muted);
  font-size: 12px;
}

.copyright[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

@media (width <= 1080px) {
  .footer-grid[data-astro-cid-jo6i4kqk] {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .brand-col[data-astro-cid-jo6i4kqk] {
    grid-column: 1 / -1;
  }

  .qr-col[data-astro-cid-jo6i4kqk] {
    grid-column: 1 / -1;
  }
}

@media (width <= 640px) {
  .footer-grid[data-astro-cid-jo6i4kqk] {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .copyright[data-astro-cid-jo6i4kqk] {
    font-size: 12px;
  }
}
body.hl-editing [data-edit-path] {
    outline: 1px dashed rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
    border-radius: 4px;
    cursor: text;
    transition: outline-color 0.18s ease, background 0.18s ease;
  }
  body.hl-editing [data-edit-path]:hover {
    outline-color: #2f6bff;
    background: rgba(47, 107, 255, 0.07);
  }
  body.hl-editing [data-edit-path]:focus {
    outline: 2px solid #2f6bff;
    background: rgba(47, 107, 255, 0.1);
  }
  body.hl-editing [data-edit-path]:empty::before {
    content: "（空）";
    color: #e5484d;
  }

  #hlToolbar {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 9999;
    background: #0b1a3a;
    color: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 236px;
    font-family: var(--font-sans);
  }
  #hlToolbar .hl-label {
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: move;
    touch-action: none;
    user-select: none;
    margin: -4px -4px 0;
    padding: 4px;
    border-radius: 8px;
  }
  #hlToolbar .hl-label:hover {
    background: rgba(255, 255, 255, 0.06);
  }
  #hlToolbar.dragging {
    box-shadow: 0 22px 50px -12px rgba(0, 0, 0, 0.75);
    cursor: grabbing;
  }
  #hlToolbar .hl-grip {
    color: #7f95c8;
    font-size: 12px;
    letter-spacing: -1px;
    line-height: 1;
  }
  #hlToolbar .hl-row {
    display: flex;
    gap: 8px;
  }
  #hlToolbar button {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 9px 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
  }
  #hlToolbar .hl-save {
    background: linear-gradient(120deg, #12b5e6, #2f6bff);
    color: #fff;
  }
  #hlToolbar .hl-discard,
  #hlToolbar .hl-exit {
    background: #243557;
    color: #cfe0ff;
  }
  #hlToolbar .hl-status {
    color: #9db4e0;
    min-height: 16px;
  }
  #hlToolbar .hl-hint {
    color: #8aa0cf;
    font-size: 12px;
    line-height: 1.45;
  }.rail-wrap[data-astro-cid-l442qzxd] {
  position: fixed;
  right: 0;
  top: 42%;
  z-index: 80;
  display: flex;
  align-items: stretch;
  transform: translateY(-50%) translateX(var(--qr-w, 128px));
  transition: transform .38s cubic-bezier(.22, .8, .3, 1);
}

.rail-wrap[data-astro-cid-l442qzxd]:hover, .rail-wrap[data-astro-cid-l442qzxd]:focus-within {
  transform: translateY(-50%) translateX(0);
}

.qr-box[data-astro-cid-l442qzxd] {
  width: var(--qr-w, 128px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: #ffffffeb;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 0 14px;
}

.qr-box[data-astro-cid-l442qzxd] img[data-astro-cid-l442qzxd] {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.qr-box[data-astro-cid-l442qzxd] small[data-astro-cid-l442qzxd] {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.rail[data-astro-cid-l442qzxd] {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 16px;
  width: 44px;
  background: #ffffffeb;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: 14px 0 0 14px;
  box-shadow: -8px 10px 30px -14px #142d6e59;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  transition: color .25s, box-shadow .25s;
}

.rail-wrap[data-astro-cid-l442qzxd]:hover .rail[data-astro-cid-l442qzxd], .rail-wrap[data-astro-cid-l442qzxd]:focus-within .rail[data-astro-cid-l442qzxd] {
  color: var(--blue);
  box-shadow: -12px 14px 36px -12px #142d6e73;
}

.rail[data-astro-cid-l442qzxd] .ico[data-astro-cid-l442qzxd] {
  display: grid;
  place-items: center;
  color: #07c160;
}

.rail[data-astro-cid-l442qzxd] .txt[data-astro-cid-l442qzxd] {
  writing-mode: vertical-rl;
  text-orientation: upright;
}

@media (width <= 640px) {
  .rail-wrap[data-astro-cid-l442qzxd] {
    display: none;
  }
}
main {
    padding-top: var(--header-h);
    min-height: 60vh;
  }

  /* 首页首屏大图直通页面顶部，导航胶囊悬浮在大图上 */
  body.home main {
    padding-top: 0;
  }

  /* 首页吸附滚动：仅首屏大图参与吸附，其余分区自由滚动 */
  html:has(body.home) {
    scroll-snap-type: y proximity;
  }
  body.home main > section.hero {
    scroll-snap-align: start;
  }
  /* 产品中心：展示区整屏磁吸（仅该版块参与吸附，其余自由滚动） */
  html:has(body.products) {
    scroll-snap-type: y proximity;
  }
  /* 新闻资讯：列表区整屏磁吸（同产品中心的处理） */
  html:has(body.news) {
    scroll-snap-type: y proximity;
  }
  /* 在线编辑模式下关闭吸附，改长文本时不跳动 */
  html:has(body.hl-editing) {
    scroll-snap-type: unset;
  }

  /* 手机端/触屏设备关闭磁吸自动滑动：窄屏下整屏区块已退化为普通流，继续吸附会造成页面自己跳动 */
  @media (max-width: 980px), (hover: none) and (pointer: coarse) {
    html:has(body.home),
    html:has(body.news),
    html:has(body.products) {
      scroll-snap-type: unset;
    }
  }

  .to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: #ffffff;
    background: var(--grad-cta);
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: var(--glow);
    z-index: 90;
  }

  .to-top.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .to-top:hover {
    transform: translateY(-4px);
  }