﻿/* ==========================================================================
   NEVIR · www.nevir.cn
   企业官网样式表
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #05070d;
  --bg-soft: #080c15;
  --bg-elev: #0c1220;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eefb;
  --text-dim: #b6c2d8;
  --muted: #7d8ba3;
  --brand: #00e0b8;
  --brand-2: #3b82f6;
  --brand-3: #7c5cff;
  --grad: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --container: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(820px 520px at 82% -8%, rgba(59, 130, 246, 0.22), transparent 62%),
    radial-gradient(680px 460px at 8% 4%, rgba(0, 224, 184, 0.14), transparent 60%),
    radial-gradient(900px 620px at 50% 108%, rgba(124, 92, 255, 0.14), transparent 65%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 12%, transparent 78%);
  pointer-events: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
}

p {
  margin: 0 0 1em;
  color: var(--text-dim);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(0, 224, 184, 0.28);
  color: #fff;
}

/* ---------- 无障碍 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid rgba(0, 224, 184, 0.8);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (max-width: 860px) {
  .hero__inner > .reveal.is-in {
    transform: none;
  }
}

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding: clamp(64px, 9vw, 118px) 0;
  position: relative;
}

.section--tight {
  padding: clamp(46px, 6vw, 76px) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 224, 184, 0.16);
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--text-dim);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #021312;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn--primary {
  background: var(--grad);
  color: #04121a;
  box-shadow: 0 14px 38px -16px rgba(0, 224, 184, 0.65);
}

.btn--primary:hover {
  color: #04121a;
  transform: translateY(-2px);
  box-shadow: 0 20px 46px -14px rgba(59, 130, 246, 0.7);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(0, 224, 184, 0.55);
  background: rgba(0, 224, 184, 0.09);
  color: var(--text);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

/* ---------- 导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header.is-stuck {
  background: rgba(5, 7, 13, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.brand:hover {
  color: #fff;
}

.brand__mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #04121a;
  font-size: 1.02rem;
  font-weight: 900;
  box-shadow: 0 10px 26px -12px rgba(0, 224, 184, 0.9);
}

.brand__sub {
  display: block;
  margin-top: -4px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__links a {
  position: relative;
  padding: 6px 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-dim);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: #fff;
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav__toggle span {
  top: 50%;
  margin-top: -1px;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  left: 0;
  transform: none;
}

.nav__toggle span::before {
  top: -6px;
}

.nav__toggle span::after {
  top: 6px;
}

.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 116px);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero h1 {
  margin-bottom: 20px;
}

.hero__desc {
  max-width: 560px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 34px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

/* Hero 右侧可视化面板 */
.topology {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: float 7s ease-in-out infinite;
}

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

.topology__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.topology__dots {
  display: flex;
  gap: 6px;
}

.topology__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.topology__dots i:first-child {
  background: var(--brand);
  box-shadow: 0 0 12px rgba(0, 224, 184, 0.9);
}

.topology__nodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.node {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 12, 21, 0.72);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.node:hover {
  border-color: rgba(0, 224, 184, 0.5);
  transform: translateY(-3px);
}

.node__label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.node__value {
  font-size: 1.28rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.node__value small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--brand);
  margin-left: 4px;
}

.node--wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
}

.bars i {
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), rgba(59, 130, 246, 0.25));
  animation: bars 1.8s ease-in-out infinite alternate;
}

.bars i:nth-child(1) { height: 34%; animation-delay: 0s; }
.bars i:nth-child(2) { height: 62%; animation-delay: 0.12s; }
.bars i:nth-child(3) { height: 46%; animation-delay: 0.24s; }
.bars i:nth-child(4) { height: 88%; animation-delay: 0.36s; }
.bars i:nth-child(5) { height: 56%; animation-delay: 0.48s; }
.bars i:nth-child(6) { height: 74%; animation-delay: 0.6s; }

@keyframes bars {
  from {
    transform: scaleY(0.55);
    opacity: 0.7;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ---------- 数据条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.stat {
  padding: 26px 22px;
  background: rgba(8, 12, 21, 0.86);
  text-align: center;
}

.stat__num {
  display: block;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.card:hover {
  background: var(--card-hover);
  border-color: var(--line-strong);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 224, 184, 0.32);
  border-radius: 13px;
  background: rgba(0, 224, 184, 0.09);
  color: var(--brand);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* ---------- 特性列表 ---------- */
.feature {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: 0;
}

.feature__idx {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  padding-top: 4px;
}

.feature h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  font-size: 0.94rem;
}

/* ---------- 两栏区块 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

/* ---------- 解决方案列表 ---------- */
.solution {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.solution:hover {
  border-color: rgba(0, 224, 184, 0.4);
  background: var(--card-hover);
}

.solution__badge {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.14);
  color: #8ab6ff;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.solution h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.solution p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- 评价 ---------- */
.quote {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.quote p {
  flex: 1;
  font-size: 0.96rem;
  color: var(--text);
}

.quote__by {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(0, 224, 184, 0.28), rgba(59, 130, 246, 0.28));
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.quote__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

.quote__role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: clamp(38px, 5vw, 62px);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: linear-gradient(130deg, rgba(0, 224, 184, 0.12), rgba(59, 130, 246, 0.12) 55%, rgba(124, 92, 255, 0.12));
  text-align: center;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 224, 184, 0.3), transparent 66%);
  pointer-events: none;
}

.cta h2 {
  margin-bottom: 12px;
}

.cta p {
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 26px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- 页面头（子页） ---------- */
.page-head {
  padding: clamp(52px, 7vw, 92px) 0 clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin-bottom: 12px;
}

.page-head p {
  max-width: 680px;
  margin: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb span {
  opacity: 0.5;
}

/* ---------- 表格 ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
  background: rgba(8, 12, 21, 0.6);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

thead th {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

tbody td {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

td strong {
  color: #fff;
}

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
}

.info-list {
  display: grid;
  gap: 14px;
}

.info {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.info__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 224, 184, 0.1);
  color: var(--brand);
}

.info__label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.info__value {
  color: #fff;
  font-weight: 500;
  word-break: break-all;
}

.form {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 12, 21, 0.72);
  box-shadow: var(--shadow);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.field label .req {
  color: #ff7b8a;
  margin-left: 3px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field select option {
  background: #0c1220;
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(0, 224, 184, 0.6);
  background: rgba(0, 224, 184, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 224, 184, 0.14);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(125, 139, 163, 0.75);
}

.form__note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.form__msg {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 224, 184, 0.35);
  border-radius: 10px;
  background: rgba(0, 224, 184, 0.08);
  color: var(--brand);
  font-size: 0.88rem;
}

.form__msg[hidden] {
  display: none;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 26px;
  margin-top: clamp(40px, 6vw, 70px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 12, 21, 0.4), rgba(5, 7, 13, 0.95));
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.footer__brand p {
  max-width: 340px;
  margin: 16px 0 0;
  font-size: 0.9rem;
}

.footer__col h4 {
  margin-bottom: 16px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.footer__col li + li {
  margin-top: 10px;
}

.footer__col a,
.footer__col span {
  font-size: 0.88rem;
  color: var(--muted);
}

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

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer__bottom p {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.icp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.icp:hover {
  color: var(--brand);
}

.icp svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(8, 12, 21, 0.9);
  color: var(--text-dim);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), visibility 0.3s;
  backdrop-filter: blur(8px);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  color: var(--brand);
  border-color: rgba(0, 224, 184, 0.6);
}

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero__inner,
  .split,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topology {
    animation: none;
  }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--nav-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    background: rgba(5, 7, 13, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav__links a::after {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav__actions .btn {
    display: none;
  }

  .grid--3,
  .grid--2,
  .grid--4,
  .stats,
  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats {
    gap: 1px;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 520px) {
  .container {
    padding-inline: 18px;
  }

  .topology {
    padding: 18px;
  }

  .topology__nodes {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
