:root {
  --bg: #0b0f1a;
  --panel: rgba(255, 255, 255, .06);
  --stroke: rgba(255, 255, 255, .08);
  --text: #e6f0ff;
  --muted: #9fb0c6;
  --brand: #00E5FF;
  --brand-2: #7C4DFF;
  --ok: #2ce38c;
  --warn: #ffcc66;
  --danger: #ff6b6b;
  --shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
  --radius: 14px;
  --blur: 14px;
  --max-w: 1200px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --transition: all .2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, rgba(0,229,255,.18), transparent 60%),
  radial-gradient(900px 700px at 90% 10%, rgba(124,77,255,.16), transparent 60%),
  linear-gradient(180deg, #0a0e18 0%, #0b1020 40%, #0b0f1a 100%);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
  "Hiragino Sans GB", "Microsoft YaHei", Arial, "Noto Sans CJK SC", sans-serif;
  letter-spacing: .2px;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brand);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* 导航样式 */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(130%) blur(10px);
  background: linear-gradient(180deg, rgba(11,15,26,.85), rgba(11,15,26,.55));
  border-bottom: 1px solid var(--stroke);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: conic-gradient(from 210deg, var(--brand), var(--brand-2), var(--brand));
  box-shadow: 0 0 24px rgba(0,229,255,.35);
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  color: var(--text);
  transition: var(--transition);
  cursor: pointer;
  font: inherit;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  color: var(--text);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #0b0f1a;
  font-weight: 700;
}

.btn.primary:hover {
  box-shadow: 0 8px 30px rgba(0,229,255,.4), 0 4px 10px rgba(124,77,255,.3);
  color: #0b0f1a;
}

/* 英雄区样式 */
.hero {
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
}

.h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: .4px;
}

.grad {
  background: linear-gradient(90deg, #fff, #D0F4FF 35%, #C9BEFF 70%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 40px rgba(0,229,255,.15);
}

.hero p {
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

.stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.stat {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--panel);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--stroke);
  font-weight: 600;
}

/* 通用面板样式 */
.panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
}

.device-card {
  padding: 18px;
}

.device-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.chip {
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed var(--stroke);
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  font-weight: 600;
  transition: var(--transition);
}

.chip:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* 区块通用样式 */
section {
  padding: 56px 0;
}

.sec-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 32px;
  position: relative;
  display: inline-block;
}

.sec-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 2px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  padding: 24px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.muted {
  color: var(--muted);
}

/* 节点地图样式 - 优化部分 */
.map {
  position: relative;
  height: 400px;
  overflow: hidden;
  margin: 24px 0;
  border-radius: var(--radius);
  background: rgba(15, 26, 46, 0.3);
  border: 1px solid var(--stroke);
}

.map-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cpattern id='smallGrid' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 20 0 L 0 0 0 20' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='0.5'/%3E%3C/pattern%3E%3Cpattern id='grid' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Crect width='100' height='100' fill='url(%23smallGrid)'/%3E%3Cpath d='M 100 0 L 0 0 0 100' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)' /%3E%3C/svg%3E");
  opacity: 0.6;
}

.glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(700px 260px at 15% 50%, rgba(0,229,255,.18), transparent 60%),
  radial-gradient(700px 260px at 85% 50%, rgba(124,77,255,.18), transparent 60%);
  filter: blur(20px);
  opacity: .9;
  pointer-events: none;
}

.nodes {
  position: absolute;
  inset: 0;
}

.node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15,26,46,.8);
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  z-index: 2;
  transform: translateY(0);
  animation: float 4s ease-in-out infinite;
}

/* 节点动画延迟，创造错落感 */
.node:nth-child(1) { animation-delay: 0s; }
.node:nth-child(2) { animation-delay: 0.5s; }
.node:nth-child(3) { animation-delay: 1s; }
.node:nth-child(4) { animation-delay: 1.5s; }
.node:nth-child(5) { animation-delay: 2s; }
.node:nth-child(6) { animation-delay: 2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.node:hover {
  transform: scale(1.08) translateY(0);
  z-index: 10;
  animation-play-state: paused;
}

.node.ok {
  outline: 2px solid rgba(44,227,140,.5);
}

.node.warn {
  outline: 2px solid rgba(255,204,102,.4);
}

.node .status {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.node.ok .status {
  background-color: var(--ok);
  box-shadow: 0 0 8px rgba(44,227,140,.6);
}

.node.warn .status {
  background-color: var(--warn);
  box-shadow: 0 0 8px rgba(255,204,102,.6);
}

.node .info {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--muted);
  margin-left: 4px;
}

.node svg {
  width: 14px;
  height: 14px;
}

/* 节点连接线 */
.connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.connection-line {
  position: absolute;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform-origin: 0 0;
  height: 1px;
  opacity: 0.15;
  z-index: 1;
}

/* 节点列表优化 - 重点改进部分 */
.nodes-list {
  margin-top: 30px;
  position: relative;
}

.nodes-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.nodes-list-title {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nodes-list-title svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
}

/* 滚动控制按钮 */
.scroll-controls {
  display: flex;
  gap: 8px;
}

.scroll-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--stroke);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.7;
}

.scroll-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.scroll-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: transparent;
}

/* 美化滚动条 */
.nodes-marquee {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 0 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
  -ms-overflow-style: none;
  position: relative;
}

/* 滚动条轨道渐变效果 */
.nodes-marquee::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, var(--bg) 100%);
  pointer-events: none;
  z-index: 1;
}

.nodes-marquee::-webkit-scrollbar {
  height: 4px;
}

.nodes-marquee::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 2px;
}

.nodes-marquee::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 2px;
  transition: var(--transition);
}

.nodes-marquee::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
}

.node-card {
  scroll-snap-align: start;
  min-width: 280px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.node-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.node-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.node-card-region {
  font-weight: 700;
  font-size: 1.1rem;
}

.node-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.node-card-details {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.node-card-detail {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 价格样式 */
.toggle {
  display: inline-flex;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow: hidden;
}

.toggle button {
  padding: 8px 14px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
}

.toggle button:hover {
  background: rgba(255,255,255,.05);
}

.toggle button.active {
  background: var(--panel);
  color: var(--text);
}

.pricing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.price.highlight {
  outline: 2px solid rgba(0,229,255,.35);
  transform: scale(1.02);
  z-index: 10;
}

.price h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.price .num {
  font-size: 2.25rem;
  font-weight: 900;
  margin: 12px 0;
  color: var(--brand);
}

.price ul {
  margin: 0 0 24px;
  padding-left: 24px;
  flex-grow: 1;
}

.price li {
  margin-bottom: 8px;
  position: relative;
}

.price li::before {
  content: '✓';
  position: absolute;
  left: -20px;
  color: var(--ok);
}

.price .cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* 用户评价样式 */
.marquee {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 16px;
  scrollbar-width: thin;
}

.marquee::-webkit-scrollbar {
  height: 6px;
}

.marquee::-webkit-scrollbar-thumb {
  background: var(--stroke);
  border-radius: 3px;
}

.quote {
  scroll-snap-align: start;
  min-width: 300px;
  max-width: 400px;
}

.quote p {
  margin-bottom: 12px;
  font-style: italic;
}

/* FAQ样式 */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq .item {
  border-bottom: 1px solid var(--stroke);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--brand);
  transition: var(--transition);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 0 0 16px;
  padding-left: 0;
}

/* 页脚样式 */
footer {
  padding: 40px 0;
  color: var(--muted);
  border-top: 1px solid var(--stroke);
  margin-top: 40px;
}

.foot {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.menu {
  display: none;
}

/* 响应式设计 */
@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .pricing {
    grid-template-columns: 1fr;
  }

  .device-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--stroke);
    padding: 16px 0;
  }

  .nav-links.active {
    display: flex;
    animation: fadeIn .3s ease;
  }

  .nav-links a {
    padding: 12px 20px;
    width: 100%;
    text-align: center;
  }

  .menu {
    display: inline-flex;
  }

  .price.highlight {
    transform: none;
    margin: 20px 0;
  }

  .map {
    height: 320px;
  }

  .node {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .device-list {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 10px;
  }

  .stat {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 40px 0 20px;
  }

  section {
    padding: 40px 0;
  }

  .map {
    height: 280px;
  }

  .node {
    padding: 6px 8px;
    font-size: 0.85rem;
  }

  .node .info {
    display: none;
  }

  .scroll-controls {
    display: none;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}