/* ==========================================================
   杭州知意人工智能科技有限公司 · 官网样式
   深色科技风 | 纯 CSS，无外部依赖
   ========================================================== */

/* ---------- 变量 ---------- */
:root {
  --bg: #05080f;
  --bg-2: #090e19;
  --bg-3: #0d1424;
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(0, 212, 255, 0.35);
  --text: #e6edf7;
  --text-muted: #8b9bb4;
  --text-dim: #5d6b82;
  --cyan: #00d4ff;
  --purple: #7b61ff;
  --green: #2ee6a8;
  --gradient: linear-gradient(135deg, #00d4ff 0%, #7b61ff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(123, 97, 255, 0.12));
  --glow-cyan: 0 0 24px rgba(0, 212, 255, 0.35);
  --glow-purple: 0 0 24px rgba(123, 97, 255, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.4), rgba(123, 97, 255, 0.4));
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.7), rgba(123, 97, 255, 0.7));
}

/* ---------- 工具类 ---------- */
.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

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

/* 滚动渐入动画 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.btn-lg {
  padding: 15px 36px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--gradient);
  color: #04121c;
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.28);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(0, 212, 255, 0.45), 0 6px 24px rgba(123, 97, 255, 0.35);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

/* ---------- 背景装饰 ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}

.bg-glow-1 {
  width: 560px;
  height: 560px;
  top: -220px;
  left: -120px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.28), transparent 65%);
  animation: glow-drift 16s ease-in-out infinite alternate;
}

.bg-glow-2 {
  width: 640px;
  height: 640px;
  top: -160px;
  right: -220px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.26), transparent 65%);
  animation: glow-drift 20s ease-in-out infinite alternate-reverse;
}

.bg-glow-3 {
  width: 500px;
  height: 500px;
  bottom: -260px;
  left: 38%;
  background: radial-gradient(circle, rgba(46, 230, 168, 0.14), transparent 65%);
  animation: glow-drift 24s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(60px, 40px, 0) scale(1.12);
  }
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.35));
  transition: transform 0.4s ease;
}

.logo:hover .logo-mark {
  transform: rotate(12deg) scale(1.06);
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 13px;
  font-weight: 700;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--gradient-soft);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan);
  vertical-align: middle;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 22px;
}

.nav-cta {
  padding: 10px 24px;
  font-size: 14px;
  flex-shrink: 0;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  padding: 9px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 0 90px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: rgba(0, 212, 255, 0.06);
  font-size: 14px;
  color: #a8d8ec;
  letter-spacing: 1px;
  backdrop-filter: blur(8px);
  margin-bottom: 34px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
  }
}

.hero-title {
  font-size: clamp(42px, 6.5vw, 84px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 2px;
  margin-bottom: 28px;
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.18);
}

.hero-desc {
  max-width: 640px;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-muted);
  margin-bottom: 44px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 76px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 42px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  font-family: var(--mono);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-suffix {
  font-size: 0.75em;
}

.stat-label {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 6px;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.35), transparent);
}

/* 向下滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 2px;
  animation: hint-float 2.6s ease-in-out infinite;
}

.scroll-hint:hover {
  color: var(--cyan);
}

.scroll-hint-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid currentColor;
  border-radius: 14px;
  position: relative;
}

.scroll-hint-mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: currentColor;
  transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

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

/* ---------- 通用 Section ---------- */
.section {
  padding: 110px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(9, 14, 25, 0.85) 18%, rgba(9, 14, 25, 0.85) 82%, transparent);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 68px;
}

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 18px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.05);
  margin-bottom: 22px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- 核心业务 ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.service-card {
  position: relative;
  padding: 38px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

/* 鼠标跟随光斑（由 JS 写入 --mx / --my） */
.service-card.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 212, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card.spotlight:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.32);
  background: var(--card-hover);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 212, 255, 0.08);
}

.service-icon {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  border: 1px solid rgba(0, 212, 255, 0.22);
  color: var(--cyan);
  margin-bottom: 26px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: var(--glow-cyan);
}

.service-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags li {
  font-size: 12.5px;
  color: #9fc7dc;
  padding: 4px 13px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.16);
  letter-spacing: 0.5px;
}

/* ---------- 技术能力 ---------- */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.tech-bar-item {
  margin-bottom: 28px;
}

.tech-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.tech-bar-name {
  font-size: 15px;
  color: #c3d2e4;
  letter-spacing: 0.5px;
}

.tech-bar-value {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cyan);
}

.tech-bar-track {
  height: 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.tech-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 7px;
  background: var(--gradient);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.5);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 终端窗口 */
.terminal {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(8, 12, 22, 0.92);
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 212, 255, 0.06);
  margin-bottom: 26px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #febc2e;
}

.dot-green {
  background: #28c840;
}

.terminal-title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.terminal-body {
  padding: 22px 24px;
  overflow-x: auto;
}

.terminal-code {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: #c8d6e8;
}

.t-comment {
  color: #55647d;
}

.t-keyword {
  color: #c792ea;
}

.t-cls {
  color: #ffcb6b;
}

.t-str {
  color: #8dffc9;
}

.t-fn {
  color: #82aaff;
}

.tech-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tech-feature {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.tech-feature:hover {
  border-color: rgba(123, 97, 255, 0.35);
  transform: translateY(-4px);
}

.tech-feature-icon {
  font-size: 22px;
  line-height: 1.3;
}

.tech-feature h4 {
  font-size: 15px;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.tech-feature p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- 关于我们 ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 22px;
  font-size: 15.5px;
  line-height: 1.95;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 34px;
}

.value-item {
  display: flex;
  gap: 12px;
}

.value-mark {
  color: var(--cyan);
  font-size: 13px;
  line-height: 1.9;
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.value-item h4 {
  font-size: 15.5px;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.value-item p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0;
}

/* 公司信息面板 */
.about-panel {
  position: relative;
}

.about-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: var(--gradient);
  opacity: 0.25;
  filter: blur(18px);
  z-index: 0;
}

.about-panel-inner {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(10, 15, 27, 0.95);
  padding: 34px 32px;
  backdrop-filter: blur(10px);
}

.about-panel-title {
  font-size: 18px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 1px;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-dim);
  flex-shrink: 0;
}

.info-value {
  color: #c3d2e4;
  text-align: right;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(46, 230, 168, 0.8);
  margin-right: 6px;
  animation: pulse 2s infinite;
}

.about-panel-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---------- 联系我们 ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 20px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.contact-item:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateX(6px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--cyan);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-item h4 {
  font-size: 16px;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.contact-item p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 表单 */
.contact-form {
  padding: 38px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(10, 15, 27, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 14px;
  color: #c3d2e4;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-dim);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.form-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(9, 14, 25, 0.6), #04070d);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-slogan {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 2px;
}

.footer-links h4 {
  font-size: 15px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.footer-links a,
.footer-links p {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-icp a {
  color: var(--text-dim);
  transition: color 0.25s ease;
}

.footer-icp a:hover {
  color: var(--cyan);
}

.contact-tel {
  color: #c3d2e4;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
}

.contact-tel:hover {
  color: var(--cyan);
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  background: rgba(10, 15, 27, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.back-to-top:hover {
  box-shadow: var(--glow-cyan);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .tech-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 78px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 20px 5%;
    background: rgba(5, 8, 15, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  .nav-link {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .nav-link.active {
    background: rgba(0, 212, 255, 0.08);
  }

  .nav-link::after {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

  .stat {
    min-width: 40%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 28px 22px;
  }

  .tech-features {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .scroll-hint {
    display: none;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  .hero-badge {
    font-size: 12px;
    padding: 7px 14px;
  }

  .logo-text {
    font-size: 19px;
  }
}

/* ---------- 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

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