/* ===== TouchCompute — Pixel Style ===== */

:root {
  --bg: #1e1c19;
  --bg-alt: #262320;
  --surface: #2d2a26;
  --surface-light: #3a3630;
  --border: #4a4540;
  --border-light: #5c5650;
  --text: #f0e6d8;
  --text-muted: #a89f92;
  --accent: #e8b86d;
  --accent-dark: #c99a4f;
  --green: #7eb09b;
  --green-dark: #5a8f7a;
  --red: #c97b6b;
  --pixel: 4px;
  --font-pixel: 'Press Start 2P', 'Ark Pixel', monospace;
  --font-body: 'VT323', 'Ark Pixel', monospace;
  --px-unit: 4px;
  --shadow: 4px 4px 0 var(--border);
  --shadow-sm: 2px 2px 0 var(--border);
  --content-pad: clamp(16px, 4vw, 64px);
  --section-pad: clamp(48px, 7vw, 96px);
  --header-h: 64px;
  --ai-glow: #7eb09b;
  --ai-core: #e8b86d;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  width: 100%;
  overflow-x: clip;
  image-rendering: pixelated;
  text-rendering: geometricPrecision;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* CRT effects — subtle */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
}

.crt-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.25) 100%);
}

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

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

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

/* ===== Pixel Box ===== */
.pixel-box {
  background: var(--surface);
  border: var(--pixel) solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  image-rendering: pixelated;
}

.pixel-box:not(.ai-scene):not(.contact-fab):not(.stat)::before {
  content: '';
  position: absolute;
  top: var(--px-unit);
  left: var(--px-unit);
  width: calc(var(--px-unit) * 2);
  height: calc(var(--px-unit) * 2);
  background: var(--accent);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.pixel-box::after {
  content: '';
  position: absolute;
  top: calc(-1 * var(--pixel));
  left: calc(-1 * var(--pixel));
  right: calc(-1 * var(--pixel));
  bottom: calc(-1 * var(--pixel));
  border: var(--pixel) solid transparent;
  pointer-events: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 20px;
  padding: 10px 20px;
  border: var(--pixel) solid var(--border);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  text-decoration: none;
  white-space: normal;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: none !important;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--shadow);
  border-color: var(--accent-dark);
}

.btn-primary:hover {
  background: #f0c87d;
  color: var(--bg);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.btn-ghost:hover {
  background: var(--surface-light);
  color: var(--accent);
}

.btn-sm {
  font-size: 18px;
  padding: 8px 14px;
}

.btn-block {
  width: 100%;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: var(--pixel) solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--content-pad);
  z-index: 100;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}

.logo:hover {
  color: var(--accent);
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  position: relative;
  image-rendering: pixelated;
  box-shadow: var(--shadow-sm);
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--bg);
  clip-path: polygon(
    0 0, 100% 0, 100% 30%, 70% 30%, 70% 70%, 30% 70%, 30% 30%, 0 30%
  );
}

.logo-text {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: -0.5px;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a,
.nav-contact-trigger {
  color: var(--text-muted);
  font-size: 18px;
  text-decoration: none;
  transition: color 0.15s;
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0;
}

.site-nav a:hover,
.nav-contact-trigger:hover {
  color: var(--accent);
}

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

.lang-toggle {
  background: var(--bg);
  border: var(--pixel) solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 18px;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s;
}

.lang-toggle:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.lang-toggle .lang-zh,
.lang-toggle .lang-en {
  transition: color 0.15s;
}

html[lang="zh-CN"] .lang-toggle .lang-zh {
  color: var(--accent);
}

html[lang="en"] .lang-toggle .lang-en {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--text);
}

/* ===== Hero ===== */
.hero {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: calc(var(--header-h) + clamp(32px, 5vw, 64px)) var(--content-pad) clamp(48px, 6vw, 96px);
}

.hero-content,
.hero-visual {
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  font-size: 16px;
  padding: 8px 14px;
  color: var(--green);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 3vw, 22px);
  line-height: 1.8;
  margin-bottom: 20px;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-desc {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--text-muted);
  max-width: 100%;
  margin-bottom: 16px;
  line-height: 1.65;
}

.hero-desc-secondary {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-muted);
  max-width: 100%;
  margin-bottom: 32px;
  line-height: 1.6;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat {
  padding: 14px clamp(12px, 2vw, 18px);
  text-align: center;
  flex: 1 1 auto;
}

.stat-value {
  display: block;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}

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

/* ===== AI Hero Scene ===== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.ai-scene {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: clamp(280px, 42vw, 520px);
  position: relative;
  overflow: hidden;
  background: #141820;
  border-color: var(--border-light);
}

.ai-scene-bg {
  position: absolute;
  inset: 0;
}

.ai-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 176, 155, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 176, 155, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
  0% { background-position: 0 0; }
  100% { background-position: 24px 24px; }
}

.ai-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: glowPulse 4s ease-in-out infinite;
}

.ai-glow-1 {
  width: 45%;
  height: 45%;
  top: 10%;
  left: 20%;
  background: var(--ai-glow);
}

.ai-glow-2 {
  width: 40%;
  height: 40%;
  bottom: 5%;
  right: 10%;
  background: var(--ai-core);
  animation-delay: 2s;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.08); }
}

.ai-neural {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.neural-lines line {
  stroke: var(--ai-glow);
  stroke-width: 2;
  stroke-dasharray: 8 6;
  animation: dataFlow 2s linear infinite;
  opacity: 0.6;
}

.neural-lines line:nth-child(odd) { animation-duration: 1.6s; }
.neural-lines line:nth-child(3n) { animation-duration: 2.4s; stroke: var(--ai-core); opacity: 0.45; }

@keyframes dataFlow {
  to { stroke-dashoffset: -28; }
}

.neural-nodes .node {
  fill: var(--surface-light);
  stroke: var(--ai-glow);
  stroke-width: 2;
  animation: nodePulse 2s ease-in-out infinite;
}

.neural-nodes .n-core {
  fill: var(--ai-core);
  stroke: #f0c87d;
  animation: corePulse 1.5s ease-in-out infinite;
}

.neural-nodes .n1 { animation-delay: 0s; }
.neural-nodes .n2 { animation-delay: 0.3s; }
.neural-nodes .n3 { animation-delay: 0.6s; }
.neural-nodes .n4 { animation-delay: 0.9s; }
.neural-nodes .n5 { animation-delay: 1.2s; }
.neural-nodes .n6 { animation-delay: 0.4s; }
.neural-nodes .n7 { animation-delay: 0.7s; }
.neural-nodes .n8 { animation-delay: 1s; }
.neural-nodes .n9 { animation-delay: 1.3s; }

@keyframes nodePulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; filter: drop-shadow(0 0 6px var(--ai-glow)); }
}

@keyframes corePulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; filter: drop-shadow(0 0 12px var(--ai-core)); }
}

.ai-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: clamp(72px, 14vw, 110px);
  height: clamp(72px, 14vw, 110px);
}

.chip-body {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 4px solid var(--ai-core);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 24px rgba(232, 184, 109, 0.3);
  animation: chipFloat 3s ease-in-out infinite;
}

.chip-label {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.5vw, 22px);
  color: var(--ai-core);
}

.chip-pins {
  position: absolute;
  inset: -8px;
  pointer-events: none;
}

.chip-pins span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--ai-glow);
  animation: pinBlink 1.5s ease-in-out infinite;
}

.chip-pins span:nth-child(1) { top: -4px; left: 20%; animation-delay: 0s; }
.chip-pins span:nth-child(2) { top: -4px; right: 20%; animation-delay: 0.2s; }
.chip-pins span:nth-child(3) { bottom: -4px; left: 20%; animation-delay: 0.4s; }
.chip-pins span:nth-child(4) { bottom: -4px; right: 20%; animation-delay: 0.6s; }
.chip-pins span:nth-child(5) { left: -4px; top: 30%; animation-delay: 0.8s; }
.chip-pins span:nth-child(6) { left: -4px; bottom: 30%; animation-delay: 1s; }
.chip-pins span:nth-child(7) { right: -4px; top: 30%; animation-delay: 1.2s; }
.chip-pins span:nth-child(8) { right: -4px; bottom: 30%; animation-delay: 1.4s; }

@keyframes pinBlink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; box-shadow: 0 0 6px var(--ai-glow); }
}

.chip-ring {
  position: absolute;
  inset: -16px;
  border: 2px dashed var(--ai-glow);
  opacity: 0.4;
  animation: ringRotate 12s linear infinite;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

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

.ai-gpu-rack {
  position: absolute;
  bottom: 8%;
  left: 6%;
  display: flex;
  gap: clamp(6px, 1vw, 12px);
  z-index: 3;
}

.gpu-unit {
  width: clamp(36px, 6vw, 56px);
  height: clamp(56px, 10vw, 88px);
  background: var(--surface-light);
  border: 3px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
}

.gpu-fan {
  width: 70%;
  aspect-ratio: 1;
  border: 3px solid var(--border-light);
  border-radius: 50%;
  position: relative;
  animation: fanSpin 2s linear infinite;
}

.gpu-fan::before,
.gpu-fan::after {
  content: '';
  position: absolute;
  background: var(--border-light);
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  transform: translateY(-50%);
}

.gpu-fan::after {
  transform: translateY(-50%) rotate(90deg);
}

.gpu-unit:nth-child(2) .gpu-fan { animation-duration: 1.6s; }
.gpu-unit:nth-child(3) .gpu-fan { animation-duration: 2.2s; }

@keyframes fanSpin {
  to { transform: rotate(360deg); }
}

.gpu-light {
  width: 8px;
  height: 8px;
  background: var(--ai-glow);
  animation: blink 1.5s ease-in-out infinite;
}

.gpu-unit:nth-child(2) .gpu-light { animation-delay: 0.5s; background: var(--ai-core); }
.gpu-unit:nth-child(3) .gpu-light { animation-delay: 1s; }

.ai-tokens {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.token-bit {
  position: absolute;
  font-family: var(--font-pixel);
  font-size: clamp(10px, 1.5vw, 16px);
  color: var(--ai-core);
  background: rgba(30, 28, 25, 0.8);
  border: 2px solid var(--accent-dark);
  padding: 4px 6px;
  animation: tokenDrift 5s ease-in-out infinite;
}

.token-bit:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.token-bit:nth-child(2) { top: 22%; right: 12%; animation-delay: 0.8s; color: var(--ai-glow); border-color: var(--green-dark); }
.token-bit:nth-child(3) { top: 55%; right: 8%; animation-delay: 1.6s; }
.token-bit:nth-child(4) { bottom: 28%; left: 28%; animation-delay: 2.4s; color: var(--ai-glow); border-color: var(--green-dark); }
.token-bit:nth-child(5) { top: 38%; left: 4%; animation-delay: 3.2s; }
.token-bit:nth-child(6) { bottom: 18%; right: 22%; animation-delay: 4s; color: var(--ai-glow); }

@keyframes tokenDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.7; }
  25% { transform: translate(8px, -12px) rotate(5deg); opacity: 1; }
  50% { transform: translate(-4px, -20px) rotate(-3deg); opacity: 0.85; }
  75% { transform: translate(12px, -8px) rotate(2deg); opacity: 1; }
}

.ai-data-stream {
  position: absolute;
  top: 0;
  right: 4%;
  width: clamp(20px, 3vw, 32px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  z-index: 1;
  opacity: 0.5;
}

.ai-data-stream span {
  display: block;
  height: 3px;
  background: var(--ai-glow);
  animation: streamPulse 1.2s ease-in-out infinite;
}

.ai-data-stream span:nth-child(odd) { background: var(--ai-core); width: 60%; margin-left: auto; }
.ai-data-stream span:nth-child(3n) { animation-delay: 0.3s; }
.ai-data-stream span:nth-child(4n) { animation-delay: 0.6s; }
.ai-data-stream span:nth-child(5n) { animation-delay: 0.9s; }

@keyframes streamPulse {
  0%, 100% { opacity: 0.2; transform: scaleX(0.6); }
  50% { opacity: 1; transform: scaleX(1); }
}

.ai-hud {
  position: absolute;
  bottom: 8%;
  right: 6%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(20, 24, 32, 0.85);
  border: 2px solid var(--border);
  padding: 8px 12px;
}

.hud-line {
  font-family: var(--font-pixel);
  font-size: clamp(6px, 1vw, 9px);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  animation: hudBlink 3s ease-in-out infinite;
}

.hud-accent {
  color: var(--ai-glow);
}

.hud-line:nth-child(3) {
  color: var(--ai-core);
  animation-delay: 1s;
}

@keyframes hudBlink {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== Sections ===== */
.section {
  width: 100%;
  padding: var(--section-pad) var(--content-pad);
}

.section-alt {
  background: var(--bg-alt);
  width: 100%;
}

.section-alt > * {
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 14px;
  padding: 6px 12px;
  color: var(--green);
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.5vw, 18px);
  line-height: 1.8;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 20px;
}

/* ===== Services ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 24px);
}

.service-card {
  padding: 32px;
  transition: transform 0.15s;
}

.service-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--border);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  position: relative;
}

.token-icon .icon-pixel {
  width: 100%;
  height: 100%;
  background: var(--accent);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.token-icon .icon-pixel::after {
  content: 'T';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--bg);
}

.compute-icon .icon-pixel {
  width: 100%;
  height: 100%;
  background: var(--green);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.compute-icon .icon-pixel::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 3px solid var(--bg);
}

.compute-icon .icon-pixel::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: var(--bg);
}

.service-card h3 {
  font-family: var(--font-pixel);
  font-size: 12px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.service-card > p,
.service-intro {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.65;
  font-size: 19px;
}

.service-features {
  list-style: none;
  margin-bottom: 20px;
}

.service-features li {
  font-size: 18px;
  color: var(--text-muted);
  padding: 4px 0 4px 20px;
  position: relative;
}

.service-features li::before {
  content: '■';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 8px;
  top: 10px;
}

.service-link {
  font-size: 18px;
}

/* ===== About ===== */
.about-block {
  padding: clamp(24px, 4vw, 48px);
}

.section-header-left {
  text-align: left;
  margin-bottom: 28px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ===== Service Detail ===== */
.service-detail-header {
  margin-bottom: 36px;
}

.service-detail-intro {
  color: var(--text-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
  max-width: 100%;
  margin-top: 16px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 20px);
  margin-bottom: 24px;
}

.capability-item {
  padding: 24px;
}

.capability-item h3 {
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--accent);
}

.capability-item p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

.detail-highlight {
  padding: 28px 32px;
  border-color: var(--green-dark);
}

.detail-highlight h3 {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--green);
  margin-bottom: 12px;
  line-height: 1.6;
}

.detail-highlight p {
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1.7;
}

/* ===== Scenarios ===== */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 20px);
}

.scenario-card {
  padding: 28px;
}

.scenario-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}

.scenario-card h3 {
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.scenario-card p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 20px);
}

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

.feature-item {
  padding: 28px;
}

.feature-num {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.feature-item h3 {
  font-family: var(--font-pixel);
  font-size: 11px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.5;
}

/* ===== Steps ===== */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.steps-4 .step {
  flex: 1 1 160px;
}

.step {
  flex: 1 1 180px;
  padding: clamp(20px, 3vw, 28px);
  text-align: center;
}

.step-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-pixel);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-sm);
}

.step h3 {
  font-family: var(--font-pixel);
  font-size: 11px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.step p {
  color: var(--text-muted);
  font-size: 18px;
}

.step-arrow {
  color: var(--border-light);
  font-size: 20px;
  flex-shrink: 0;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 17px;
  margin-top: 8px;
  line-height: 1.5;
  max-width: 100%;
}

/* ===== Contact FAB & Modal ===== */
.contact-fab {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--accent);
  border-color: var(--accent-dark);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.15s;
}

.contact-fab:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--border);
}

.contact-fab:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.fab-icon {
  width: 18px;
  height: 14px;
  border: 3px solid var(--bg);
  position: relative;
  flex-shrink: 0;
}

.fab-icon::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 2px;
  width: 10px;
  height: 6px;
  border: 3px solid var(--bg);
  border-bottom: none;
}

.fab-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.5px;
}

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.contact-overlay[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.contact-modal {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--bg);
  border: var(--pixel) solid var(--border);
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.contact-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-modal-header {
  margin-bottom: 28px;
  padding-right: 32px;
}

.contact-modal-tag {
  display: block;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--green);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.contact-modal-header h2 {
  font-family: var(--font-pixel);
  font-size: 14px;
  line-height: 1.6;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 2px solid var(--border);
}

.contact-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-list li:first-child {
  padding-top: 0;
}

.contact-list-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-list-value {
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

a.contact-list-value:hover {
  color: var(--accent);
}

.footer-contact-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-muted);
  padding: 4px 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}

.footer-contact-btn:hover {
  color: var(--accent);
}

body.contact-open {
  overflow: hidden;
}

/* ===== Footer ===== */
.site-footer {
  border-top: var(--pixel) solid var(--border);
  background: var(--surface);
  padding: clamp(32px, 5vw, 48px) var(--content-pad) 24px;
  width: 100%;
}

.footer-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 48px);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand .logo-text {
  font-family: var(--font-pixel);
  font-size: 10px;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 18px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  font-family: var(--font-pixel);
  font-size: 9px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 18px;
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  width: 100%;
  padding-top: 24px;
  border-top: 2px solid var(--border);
  text-align: center;
}

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

/* ===== Mobile Nav ===== */
.mobile-nav-open .site-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: var(--pixel) solid var(--border);
  padding: 16px var(--content-pad);
  gap: 12px;
  z-index: 99;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}

.mobile-nav-open .site-nav a,
.mobile-nav-open .site-nav .nav-contact-trigger {
  padding: 8px 0;
  text-align: left;
  width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .capability-grid,
  .scenario-grid,
  .feature-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .step {
    max-width: none;
    min-width: 0;
  }

  .step-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --content-pad: 16px;
    --section-pad: 48px;
    --header-h: 56px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 40px;
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(14px, 4.5vw, 18px);
    line-height: 1.65;
  }

  .hero-desc,
  .hero-desc-secondary {
    font-size: clamp(18px, 4.5vw, 22px);
    line-height: 1.55;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
  }

  .stat {
    padding: 10px 8px;
    min-width: 0;
  }

  .stat-label {
    font-size: 14px;
    line-height: 1.3;
  }

  .ai-scene {
    aspect-ratio: 16 / 11;
    min-height: 0;
    max-height: 280px;
  }

  .service-card,
  .capability-item,
  .scenario-card,
  .feature-item,
  .step,
  .about-block {
    padding: 20px;
  }

  .section-header h2 {
    font-size: clamp(13px, 4vw, 17px);
  }

  .section-header p {
    font-size: 18px;
  }

  .service-detail-intro {
    font-size: 18px;
  }

  .contact-fab {
    padding: 10px 12px;
    gap: 6px;
  }

  .fab-label {
    font-size: 7px;
  }

  /* 中文移动端沿用变量，微调即可 */
  html[lang="zh-CN"] {
    --zh-body: 17px;
    --zh-md: 15px;
    --zh-lg: 20px;
  }

  html[lang="zh-CN"] .logo-text {
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--header-h) + 24px);
  }

  .hero-content {
    order: 2;
  }

  .hero-desc,
  .hero-desc-secondary {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: 1;
    width: 100%;
  }

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

  .about-block {
    padding: clamp(20px, 4vw, 28px);
  }

  .site-nav {
    display: none;
  }

  .header-actions .btn-sm {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .header-actions {
    flex-shrink: 0;
  }
}

@media (max-width: 560px) {
  .capability-grid,
  .scenario-grid,
  .feature-grid,
  .feature-grid-3 {
    grid-template-columns: 1fr;
  }

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

  body {
    font-size: 18px;
  }

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

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

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

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat {
    width: 100%;
  }

  .ai-scene {
    max-height: 220px;
  }

  .ai-tokens .token-bit:nth-child(n+4) {
    display: none;
  }

  .ai-hud {
    padding: 4px 8px;
    bottom: 4%;
    right: 3%;
    max-width: 42%;
  }

  .hud-line {
    font-size: 5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ai-gpu-rack {
    transform: scale(0.75);
    transform-origin: bottom left;
    left: 2%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

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

  .contact-fab {
    bottom: 12px;
    right: 12px;
    padding: 8px 10px;
  }

  .contact-modal {
    padding: 24px 20px;
  }

  html[lang="zh-CN"] {
    --zh-body: 16px;
    --zh-md: 14px;
    --zh-lg: 18px;
  }

  html[lang="zh-CN"] .logo-text {
    font-size: 10px;
  }
}

/* ===== Chinese Typography — Ark Pixel, aligned with EN scale ===== */
html[lang="zh-CN"] {
  --font-pixel: 'Ark Pixel', monospace;
  --font-body: 'Ark Pixel', monospace;
  --zh-body: clamp(18px, 2vw, 20px);
  --zh-sm: 12px;
  --zh-md: 16px;
  --zh-lg: clamp(18px, 2.8vw, 22px);
}

html[lang="zh-CN"] body {
  font-size: var(--zh-body);
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
  text-rendering: optimizeSpeed;
}

html[lang="zh-CN"] .logo-text { font-size: var(--zh-sm); }
html[lang="zh-CN"] .site-nav a,
html[lang="zh-CN"] .nav-contact-trigger { font-size: var(--zh-md); }
html[lang="zh-CN"] .btn,
html[lang="zh-CN"] .lang-toggle { font-size: var(--zh-md); }

html[lang="zh-CN"] .hero-title {
  font-size: var(--zh-lg);
  line-height: 1.45;
}

html[lang="zh-CN"] .hero-desc,
html[lang="zh-CN"] .hero-desc-secondary {
  font-size: var(--zh-body);
  line-height: 1.55;
}

html[lang="zh-CN"] .hero-badge,
html[lang="zh-CN"] .section-tag { font-size: var(--zh-sm); }

html[lang="zh-CN"] .stat-value { font-size: var(--zh-md); }
html[lang="zh-CN"] .stat-label { font-size: var(--zh-sm); }

html[lang="zh-CN"] .section-header h2,
html[lang="zh-CN"] .service-detail-header h2 {
  font-size: var(--zh-lg);
  line-height: 1.45;
}

html[lang="zh-CN"] .section-header p,
html[lang="zh-CN"] .about-content p,
html[lang="zh-CN"] .service-intro,
html[lang="zh-CN"] .service-card > p,
html[lang="zh-CN"] .capability-item p,
html[lang="zh-CN"] .scenario-card p,
html[lang="zh-CN"] .feature-item p,
html[lang="zh-CN"] .step p,
html[lang="zh-CN"] .service-detail-intro,
html[lang="zh-CN"] .detail-highlight p,
html[lang="zh-CN"] .service-features li,
html[lang="zh-CN"] .service-link,
html[lang="zh-CN"] .contact-list-value,
html[lang="zh-CN"] .footer-brand p,
html[lang="zh-CN"] .footer-col a,
html[lang="zh-CN"] .footer-contact-btn,
html[lang="zh-CN"] .footer-desc {
  font-size: var(--zh-body);
  line-height: 1.55;
}

html[lang="zh-CN"] .service-card h3,
html[lang="zh-CN"] .capability-item h3,
html[lang="zh-CN"] .scenario-card h3,
html[lang="zh-CN"] .feature-item h3,
html[lang="zh-CN"] .step h3,
html[lang="zh-CN"] .detail-highlight h3 {
  font-size: var(--zh-md);
  line-height: 1.45;
}

html[lang="zh-CN"] .feature-num { font-size: var(--zh-sm); }
html[lang="zh-CN"] .step-icon { font-size: var(--zh-md); }
html[lang="zh-CN"] .fab-label { font-size: var(--zh-sm); }
html[lang="zh-CN"] .contact-modal-tag { font-size: var(--zh-sm); }
html[lang="zh-CN"] .contact-modal-header h2 { font-size: var(--zh-lg); }
html[lang="zh-CN"] .footer-brand .logo-text { font-size: var(--zh-sm); }
html[lang="zh-CN"] .footer-col h4 { font-size: var(--zh-sm); }
html[lang="zh-CN"] .hud-line { font-size: var(--zh-sm); }
html[lang="zh-CN"] .contact-list-label { font-size: var(--zh-sm); }
