/* ===== any-nodes 门户官网 · 科技深色 · 青蓝 Cyan ===== */
:root {
  --bg:        #060a12;
  --bg-2:      #0a1019;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(120, 200, 230, 0.14);
  --border-hi: rgba(24, 224, 255, 0.45);
  --text:      #e7eef5;
  --muted:     #8499ac;
  --cyan:      #18e0ff;
  --cyan-2:    #3b82f6;
  --grad:      linear-gradient(135deg, #18e0ff 0%, #3b82f6 100%);
  --maxw:      1140px;
  --radius:    16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-size: .95rem; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-primary { background: var(--grad); color: #03121a; box-shadow: 0 8px 26px rgba(24,224,255,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(24,224,255,.42); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-hi); background: var(--surface-2); }
.btn-block { width: 100%; }

/* ===== 导航 ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 10, 18, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { filter: drop-shadow(0 0 8px rgba(24,224,255,.4)); flex-shrink: 0; }
.brand-lockup { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-size: 1.2rem; font-weight: 800; letter-spacing: .5px; }
.brand-tagline { font-size: .62rem; color: var(--muted); letter-spacing: .03em; font-weight: 500; margin-top: 2px; white-space: nowrap; }
@media (max-width: 720px) { .brand-tagline { display: none; } }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a { font-size: .95rem; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links > a:hover { color: var(--text); }
.nav-links > a.nav-cta { color: #03121a; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px; font-size: .8rem; font-weight: 700; cursor: pointer;
  letter-spacing: .5px; transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--border-hi); color: var(--cyan); }
.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-btn span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
/* 全站固定节点背景:置于内容之下、body 底色之上,各板块透出 */
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero-glow {
  position: absolute; z-index: 1; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(24,224,255,.16), transparent 70%);
}
.hero-inner { position: relative; z-index: 2; padding: 120px 24px 80px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .82rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid var(--border-hi); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 28px; background: rgba(24,224,255,.06);
}
.hero-title { font-size: clamp(2rem, 6vw, 4rem); font-weight: 800; line-height: 1.12; letter-spacing: -.5px; }
.hero-sub { max-width: 680px; margin: 24px auto 0; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.18rem); }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero-stats { display: flex; justify-content: center; gap: clamp(28px, 7vw, 72px); margin-top: 70px; flex-wrap: wrap; }
.stat-num { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; }
.stat-num span { font-size: .55em; color: var(--cyan); }
.stat-lbl { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid var(--border-hi); border-radius: 14px;
}
.scroll-hint::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--cyan); border-radius: 2px; animation: scrolly 1.6s infinite;
}
@keyframes scrolly { 0%{opacity:0;top:8px} 40%{opacity:1} 80%{opacity:0;top:22px} 100%{opacity:0} }

/* ===== 通用区块 ===== */
.section { padding: 100px 0; position: relative; }
.section-alt { background: rgba(6, 10, 18, 0.42); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker {
  display: inline-block; font-size: .8rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px; font-weight: 700;
}
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; }
.section-lead { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ===== 卡片网格 ===== */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-auto { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.vcard, .scard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s, border-color .2s, background .2s;
}
.vcard:hover, .scard:hover { transform: translateY(-4px); border-color: var(--border-hi); background: var(--surface-2); }
.vcard-ico, .scard-ico { font-size: 1.9rem; margin-bottom: 16px; }
.vcard h3, .scard h3 { font-size: 1.12rem; margin-bottom: 10px; }
.vcard p, .scard p { color: var(--muted); font-size: .95rem; }

/* ===== 项目卡片 ===== */
.pcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.pcard-media {
  height: 128px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(24,224,255,.22), rgba(59,130,246,.18));
}
/* 顶部色带:节点点阵装饰,不放文字(标题已在卡片体内，避免重复) */
.pcard-media::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.5px);
  background-size: 18px 18px; opacity: .45;
}
.pcard-feature { grid-row: span 1; border-color: var(--border-hi); box-shadow: 0 0 40px rgba(24,224,255,.08); }
.pcard-body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tag {
  align-self: flex-start; font-size: .74rem; letter-spacing: .08em; color: var(--cyan);
  background: rgba(24,224,255,.08); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px;
}
.pcard-body h3 { font-size: 1.16rem; line-height: 1.35; }
.pcard-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.link-more { color: var(--cyan); font-weight: 600; font-size: .92rem; align-self: flex-start; }
.link-more:hover { text-decoration: underline; }

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci { font-size: 1.3rem; }
.ci-lbl { color: var(--muted); font-size: .82rem; }
.contact-list a { color: var(--cyan); transition: color .2s; }
.contact-list a:hover { color: var(--text); text-decoration: underline; }
.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-size: .98rem; font-family: inherit; outline: none; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--border-hi); }
.form-note { color: var(--muted); font-size: .8rem; margin-top: 14px; text-align: center; }

/* ===== 页脚 ===== */
.footer { background: rgba(8, 13, 22, 0.55); border-top: 1px solid var(--border); padding-top: 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; }
.footer-brand p { color: var(--muted); margin-top: 8px; font-size: .92rem; max-width: 320px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; text-align: center; color: var(--muted); font-size: .85rem; }

/* ===== 滚动出现动画 ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 920px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed; top: 68px; right: 0; width: min(78vw, 300px); height: calc(100vh - 68px);
    flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px;
    background: rgba(8, 13, 22, 0.97); backdrop-filter: blur(16px);
    border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .3s; z-index: 99;
  }
  .nav-links.open { transform: none; }
  .nav-links > a { width: 100%; padding: 12px 0; font-size: 1.05rem; }
  .nav-links > a.nav-cta { margin-top: 8px; }
  .menu-btn { display: flex; }
  .menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn.open span:nth-child(2) { opacity: 0; }
  .menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cards-4, .cards-3, .cards-auto { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

/* ===== 降级:尊重减少动效 ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint::before { animation: none; }
}



.vcard, .scard {
  position: relative;
  overflow: hidden;
  /* 基础的卡片样式保留你原有的设置 */
}

/* 顶部强调线 */
.vcard::before, .scard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #18e0ff, #3b82f6); /* 呼应你 Logo 的渐变色 */
}

.pcard-media {
  height: 100px; /* 从原先的 200px 左右降到 100px-120px */
  /* 其他渐变和底纹样式保持不变 */
}
/* 假设你的卡片父容器类名是 .cards-auto */
.cards-auto {
  display: grid;
  /* 使用 auto-fit 配合合适的基础宽度，在宽屏下会自动变为三列甚至四列 */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 24px;
}
/* 给每个卡片的配图区加一个极简的科技感发光图标或文字 */
.pcard-media::before {
  content: 'IoT'; /* 或者使用具体的图标 */
  position: absolute;
  right: 20px;
  bottom: -10px;
  font-size: 80px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03); /* 极低透明度的巨大文字作为背景字 */
  font-style: italic;
}