@font-face {
  font-family: "JetBrains Mono";
  src: url("./JetBrainsMono-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}

:root {
  /* 色彩系统 */
  --dcp-foundation: #f9f9f9;
  --dcp-structure: #0a0a0a;
  --dcp-structure-light: rgba(10, 10, 10, 0.12);
  --dcp-soul: #ff389f;
  --dcp-soul-glow: rgba(255, 56, 159, 0.4);
  --gradient1: linear-gradient(45deg,
      rgba(37, 119, 161, 0.36) -10.3%,
      #a6acc6 33.33%,
      #fa5dae 68.3%);
  --dcp-text-main: #1a1a1a;
  --dcp-text-muted: #666666;
  --dcp-ax: #9dd9f8;

  /* 字体系统 */
  --font-sans: "Noto Sans SC", "PingFang SC", -apple-system, sans-serif;
  --font-mono:
    "JetBrains Mono", "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    monospace;

  /* 字号系统 */
  --text-h1: clamp(2.1rem, 5.4vw, 4.3rem);
  --text-h2: clamp(1.5rem, 3vw, 3.3rem);
  --text-h3: clamp(1.25rem, 2.2vw, 2.25rem);
  --text-h4: clamp(1.15rem, 1.8vw, 1.75rem);
  --text-h5: clamp(1.1rem, 1.4vw, 1.4rem);
  --text-base: clamp(1rem, 1.1vw, 1.125rem);
  --text-sm: clamp(0.875rem, 0.9vw, 1rem);
  --text-xs: clamp(0.75rem, 0.75vw, 0.875rem);

  /* 基础间距系统 */
  --space-4xs: clamp(0.125rem, 0.2vw, 0.25rem);
  --space-3xs: clamp(0.25rem, 0.35vw, 0.5rem);
  --space-2xs: clamp(0.5rem, 0.6vw, 0.75rem);
  --space-xs: clamp(0.75rem, 0.9vw, 1rem);
  --space-sm: clamp(1rem, 1.2vw, 1.5rem);
  --space-md: clamp(1.4rem, 1.8vw, 2.0rem);
  --space-lg: clamp(2.2rem, 3.2vw, 3.7rem);
  --space-xl: clamp(4rem, 6vw, 6rem);
  --space-2xl: clamp(6rem, 10vw, 10rem);
  --space-3xl: clamp(8rem, 14vw, 14rem);

  /* 其他 */
  --header-height: clamp(3.5rem, 5vw, 4.25rem);
  --header-height-full: clamp(3.7rem, 5.5vw, 5.5rem);
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--dcp-foundation);
  color: var(--dcp-text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: var(--text-base);
}

* {
  box-sizing: border-box;
}

.gradient-text {
  font-weight: 600;
  background: var(--gradient1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 网格背景 */
.dcp-bg {
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.03) 1px, transparent 1px);
  background-size: clamp(2rem, 3vw, 2.5rem) clamp(2rem, 3vw, 2.5rem);
  background-position: center top;
}

/* =========================================
     交互动画类
     ========================================= */
.reveal-elem {
  opacity: 0;
  transform: translateY(var(--space-md));
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-elem.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* =========================================
     导航菜单 & Header
     ========================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  min-height: var(--header-height-full);
  background: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-2xs) var(--space-xs) var(--space-2xs);
  z-index: 1000;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    min-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3xs);
  transition: gap 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled .header-brand {
  gap: 0;
  height: 100%;
}

.header-whiteout {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 1000;
  opacity: 1;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
  visibility: visible;
}

header.loaded .header-whiteout {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

header.no-whiteout .header-whiteout {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

header.force-hide .header-whiteout {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: none !important;
  display: none;
}

header.scrolled {
  background: rgba(249, 249, 249, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-height: clamp(3.5rem, 5vw, 4.25rem);
  padding: 0 var(--space-md);
  justify-content: center;
}

.logo {
  height: clamp(3.6rem, 5.2vw, 5.2rem);
  width: auto;
  display: block;
  transition: filter 0.4s ease;
}

header.scrolled .logo {
  filter: invert(1);
}

.nav-system {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

@media (min-width: 769px) {
  header.scrolled .desktop-logo {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }

  header.scrolled .header-brand {
    flex-direction: row;
  }
}

.nav-link {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  padding: var(--space-2xs) var(--space-xs);
  transition: color 0.4s ease;
}

header.scrolled .nav-link {
  color: var(--dcp-text-main);
}

.nav-link::before,
.nav-link::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: transparent !important;
  background: var(--gradient1) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.nav-link::before {
  content: "[";
  left: var(--space-3xs);
}

.nav-link::after {
  content: "]";
  right: var(--space-3xs);
}

.nav-link:hover {
  font-weight: 600;
  color: transparent !important;
  background: var(--gradient1) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.nav-link:hover::before {
  opacity: 1;
  left: 0;
}

.nav-link:hover::after {
  opacity: 1;
  right: 0;
}

.btn-dither {
  position: relative;
  color: #000000;
  background-color: #fff;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--dcp-structure);
  padding: var(--space-sm) var(--space-lg);
  font-weight: 600;
}

header.scrolled .btn-dither {
  border-color: var(--dcp-text-main);
  color: var(--dcp-text-main);
}

.btn-dither:hover {
  background:
    repeating-linear-gradient(130deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(10, 10, 10, 0.1) 3px);
  color: #000000 !important;
}

header.scrolled .btn-dither:hover {
  background: var(--dcp-text-main);
  color: #ffffff !important;
}

.mobile-logo {
  display: none;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  width: 16px;
  height: 12px;
  position: relative;
  cursor: pointer;
  padding: 2px;
  box-sizing: content-box;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.hamburger::before {
  top: 0;
}

.hamburger::after {
  bottom: 0;
}

.hamburger span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

header.scrolled .hamburger::before,
header.scrolled .hamburger::after,
header.scrolled .hamburger span {
  background: var(--dcp-text-main);
}

.hamburger.active span {
  opacity: 0;
}

.hamburger.active::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.active::after {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

header.scrolled .hamburger {
  color: var(--dcp-text-main);
}

.mobile-menu {
  display: none;
}

/*====================
     滚动装饰线
     ==================*/
.marquee-container {
  height: clamp(12rem, 25vw, 22rem);
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 5.51%,
      #b8e2f7 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll-left 45s linear infinite;
}

.marquee-text {
  font-family: var(--font-mono);
  font-size: clamp(8rem, 16vw, 16rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  padding-right: var(--space-md);
  line-height: 1;
  text-transform: uppercase;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* =========================================
     首屏 ASCII 动画
     ========================================= */
#ascii-wrapper {
  position: relative;
  width: 100%;
  margin-top: var(--header-height);
  min-height: calc(100dvh - var(--header-height));
  overflow: hidden;
  background: #fff;
  display: block;
}

#ascii-player {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) !important;
  margin: 0;
  border: 0;
  font-family: "Courier New", Courier, monospace;
  line-height: 1;
  white-space: pre;
  transition: color 1.5s ease-out;
  user-select: none;
  font-size: var(--text-xs);
  /* canvas 重建期间作为降级底层，避免白帧 */
  visibility: visible;
}

/* 两个断点使用不同动画名：
   跨越 900px 时 animation-name 改变 → 浏览器立即重播动画
   fill-mode:both 让旧 canvas 先变透明，等 JS 重建完（120ms 防抖）再淡入，
   消除断点处的宽度闪烁 */
#ascii-wrapper canvas {
  animation: cv-in-desktop 0.15s ease both;
}

@media (max-width: 900px) {
  #ascii-wrapper canvas {
    /* delay 0.13s > 120ms 防抖，确保新 canvas 插入后再淡入 */
    animation: cv-in-mobile 0.15s ease 0.13s both;
  }
}

@keyframes cv-in-desktop {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes cv-in-mobile {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-overlay {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  pointer-events: auto;
  width: 90%;
  max-width: 62.5rem;
  padding: var(--space-sm);
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.922) 0%,
      rgba(255, 255, 255, 0.58) 50%,
      rgba(255, 255, 255, 0) 100%);
  animation: hero-focus 3s cubic-bezier(0.16, 1, 0.3, 1) 800ms forwards;
  animation-fill-mode: both;
}

@keyframes hero-focus {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: translate(-50%, -45%) scale(1.05);
  }

  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translate(-50%, -50%) scale(1);
  }
}

.slogan-en {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  margin: 0 0 var(--space-sm) 0;
  background: var(--gradient1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.slogan-cn {
  font-family: var(--font-sans);
  font-size: var(--text-h2);
  font-weight: 600;
  color: var(--dcp-structure);
  margin: 0;
  line-height: 1.2;
}

.cursor-blink {
  display: inline-block;
  width: clamp(0.25rem, 0.3vw, 0.75rem);
  height: 0.85em;
  background-color: var(--dcp-text-main);
  vertical-align: middle;
  margin-left: var(--space-xs);
  margin-bottom: var(--space-2xs);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.scroll-indicator {
  position: fixed;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  z-index: 30;
  transition: opacity 0.5s;
}

.meta-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dcp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.4;
}

.scroll-line {
  width: 1px;
  height: var(--space-md);
  background: var(--dcp-structure);
  animation: scanline 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: top;
}

@keyframes scanline {
  0% {
    transform: scaleY(0);
  }

  50% {
    transform: scaleY(1);
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* =========================================
     全局布局组件
     ========================================= */
.sys-section {
  width: 100%;
  position: relative;
  padding: var(--space-2xl) 0;
}

.bg-white {
  background-color: #ffffff;
}

.container {
  max-width: 125rem;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
}

.section-header {
  margin-bottom: var(--space-xl);
  position: relative;
  padding-left: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  border-left: 4px solid var(--dcp-structure);
}

.section-en {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--dcp-text-muted);
  letter-spacing: 0.15em;
}

.section-cn {
  font-family: var(--font-sans);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--dcp-structure);
  margin: 0;
}

/* Footer */
footer {
  background: var(--dcp-structure);
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.footer-logo-img {
  height: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.footer-slogan-center {
  font-size: var(--text-sm);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1em;
  text-indent: 1em;
  text-transform: uppercase;
}

.footer-info-container {
  max-width: 100rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col.left {
  text-align: left;
}

.footer-col.right {
  text-align: right;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.footer-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-weight: 300;
}

.footer-text strong {
  color: #ffffff;
  font-weight: 500;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--dcp-ax);
}

.footer-bottom {
  max-width: 100rem;
  margin: var(--space-md) auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================================
     弹窗系统 (DCP 风格)
     ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border: 1px solid var(--dcp-structure);
  width: 90%;
  max-width: 33.75rem;
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  transform: translateY(var(--space-md));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--space-md) var(--space-md) 0 rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  cursor: pointer;
  color: var(--dcp-structure);
  transition:
    color 0.3s,
    transform 0.3s;
  background: none;
  border: none;
  outline: none;
}

.modal-close:hover {
  color: var(--dcp-soul);
  transform: scale(1.1);
}

.modal-header {
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid var(--dcp-structure);
  padding-bottom: var(--space-sm);
}

.modal-title {
  font-size: var(--text-h3);
  font-weight: 700;
  margin: 0 0 var(--space-xs) 0;
}

.modal-subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--dcp-text-muted);
  margin-top: var(--space-sm);
}

.dcp-input-group {
  position: relative;
  margin-bottom: var(--space-md);
}

.dcp-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--dcp-structure-light);
  padding: var(--space-xs) 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--dcp-structure);
  background: transparent;
  outline: none;
  transition: border-color 0.3s;
}

.dcp-input:focus {
  border-bottom-color: var(--dcp-structure);
}

.dcp-input::placeholder {
  color: #ccc;
  font-weight: 300;
}

.dcp-input-label {
  position: absolute;
  top: calc(var(--space-xs) * -1.5);
  left: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--dcp-structure);
  font-weight: 700;
}

.btn-submit {
  width: 100%;
  background: var(--dcp-structure);
  color: #fff;
  border: 1px solid var(--dcp-structure);
  padding: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-submit:hover {
  background: #ffffffa7;
  color: var(--dcp-structure);
  border-color: var(--dcp-structure);
}

/* 提交成功状态 */
.modal-success {
  display: none;
  text-align: center;
  padding: var(--space-lg) 0;
}

.success-icon {
  font-family: var(--font-mono);
  font-size: var(--text-h2);
  color: var(--dcp-soul);
  margin-bottom: var(--space-sm);
}

.success-text {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--dcp-structure);
  font-weight: 400;
}

/* =========================================
     SYS.CAPABILITIES 阶梯式工业流水线布局
     ========================================= */
.arch-pipeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
  padding: var(--space-md) 0;
}

/* 贯穿全局的工业管线 */
.arch-pipeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: repeating-linear-gradient(180deg,
      var(--dcp-structure-light),
      var(--dcp-structure-light) var(--space-xs),
      transparent var(--space-xs),
      transparent var(--space-sm));
  z-index: 0;
}

.pipeline-step {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--dcp-structure);
  width: 75%;
  position: relative;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 阶梯排布 */
.pipeline-step:nth-child(1) {
  align-self: flex-start;
}

.pipeline-step:nth-child(2) {
  align-self: center;
}

.pipeline-step:nth-child(3) {
  align-self: flex-end;
}

.pipeline-step:hover {
  transform: translate(calc(var(--space-xs) * -1), calc(var(--space-xs) * -1));
  box-shadow: var(--space-sm) var(--space-sm) 0 rgba(10, 10, 10, 0.05);
  border-color: var(--dcp-structure);
  z-index: 10;
}

/* 矩阵编号区 */
.step-num-box {
  width: 8.75rem;
  flex-shrink: 0;
  border-right: 1px solid var(--dcp-structure);
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 2px,
      rgba(10, 10, 10, 0.02) 2px,
      rgba(10, 10, 10, 0.02) 4px);
  position: relative;
  overflow: hidden;
}

.pipeline-step:nth-child(even) .step-num-box {
  order: 2;
  border-right: none;
  border-left: 1px solid var(--dcp-structure);
}

.step-num {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 100;
  color: var(--dcp-structure-light);
  line-height: 1;
  transition: color 0.4s ease;
}

.pipeline-step:hover .step-num {
  color: var(--dcp-structure);
}

/* 内容区 */
.step-content {
  padding: var(--space-xl) var(--space-lg);
  flex-grow: 1;
}

.step-code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--dcp-structure);
  background: rgba(10, 10, 10, 0.05);
  padding: var(--space-4xs) var(--space-2xs);
  display: inline-block;
  margin-bottom: var(--space-md);
}

.pipeline-step:hover .step-code {
  background: var(--dcp-structure);
  color: #ffffff;
}

/* =========================================
     卡片网格样式1
     ========================================= */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-lg);
}

.dash-panel {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--dcp-structure-light);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.dash-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 1px;
  background: var(--dcp-structure-light);
  transform-origin: left;
  transition: transform 0.4s ease, background 0.4s ease;
}

.dash-panel:hover {
  border-color: var(--dcp-structure);
  transform: translateY(calc(var(--space-2xs) * -1));
  box-shadow: var(--space-sm) var(--space-sm) 0 rgba(10, 10, 10, 0.04);
  z-index: 5;
}

.dash-panel:hover::before {
  background: var(--gradient1);
  height: 2px;
}

.dash-panel img:not(.img-auto) {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-bottom: 1px solid var(--dcp-structure);
  filter: grayscale(100%) contrast(1.2);
  transition: filter 0.5s;
}

.dash-panel:hover img {
  filter: grayscale(0%) contrast(1);
}

.dash-content {
  padding: var(--space-lg) var(--space-md);
}

.dash-label {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--dcp-structure);
  background: rgba(10, 10, 10, 0.03);
  padding: 4px 8px;
  letter-spacing: 0.05em;
}

.arch-title {
  font-size: var(--text-h4);
  font-weight: 700;
  margin: 0 0 var(--space-xs) 0;
}

.arch-desc {
  font-size: var(--text-sm);
  color: var(--dcp-text-muted);
  font-weight: 300;
  line-height: 1.8;
  margin: 0;
}

/* =========================================
     带底纹卡片网格样式2
     ========================================= */
.agent-showcase {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  background: repeating-linear-gradient(180deg,
      transparent,
      transparent 2px,
      rgba(10, 10, 10, 0.03) 2px,
      rgba(10, 10, 10, 0.03) 4px);
  border: 1px solid var(--dcp-structure);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  position: relative;
  z-index: 10;
}

.agent-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--dcp-structure-light);
  padding: var(--space-lg) var(--space-md);
  transition: all 0.4s ease;
  overflow: hidden;
}

.agent-card:hover {
  border-color: var(--dcp-structure);
  box-shadow: 4px 4px 0 rgba(10, 10, 10, 0.05);
  transform: translate(-2px, -2px);
}

.agent-card::after {
  content: "+";
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: var(--font-mono);
  color: var(--dcp-structure-light);
  font-size: var(--text-sm);
  transition: all 0.4s;
}

.agent-card.active {
  background: #ffffff;
  cursor: pointer;
  border: 2px solid var(--dcp-structure);
}

.agent-card.active:hover {
  border-color: var(--dcp-soul);
}

.agent-id {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  color: var(--dcp-structure);
  margin: 0 0 var(--space-xs) 0;
  line-height: 1;
  transition: color 0.3s;
}

.agent-node-id {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #ccc;
  margin-bottom: var(--space-lg);
  display: block;
  border-bottom: 1px dashed var(--dcp-structure-light);
  padding-bottom: 4px;
}

.agent-card.active:hover .agent-id {
  color: var(--dcp-soul);
}

.agent-action-btn {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 700;
  background: var(--gradient1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-flex;
  align-items: center;
  opacity: 0.8;
  transition: all 0.3s;
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
}

.agent-action-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(90deg,
      var(--gradient1) 0px,
      var(--gradient1) 6px,
      transparent 6px,
      transparent 10px);
  transition: height 0.3s;
  animation: gradient-flow 2s linear infinite;
}

.agent-action-btn:hover::after {
  height: 2px;
}

@keyframes gradient-flow {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 20px 0;
  }
}


@media (max-width: 1024px) {}

@media (max-width: 768px) {

  .agent-action-btn:hover {
    opacity: 1;
    letter-spacing: 0.05em;
  }
}

/* hero 按钮组响应式 */
.hero-btn-group {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .hero-btn-group {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-btn-group a,
  .hero-btn-group button {
    text-align: center;
    display: block;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 6. 终端列表风格 */
.terminal-list {
  list-style: none;
  padding: 0;
  margin: var(--space-xs) 0 0 0;
}

.terminal-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.875rem;
  font-size: var(--text-sm);
  color: var(--dcp-text-muted);
  line-height: 1.8;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.terminal-list li:last-child {
  margin-bottom: 0;
}

.terminal-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  color: rgba(10, 10, 10, 0.25);
  font-weight: 500;
  font-size: 0.9em;
  transition: color 0.3s ease, transform 0.3s ease;
}

.terminal-list li:hover {
  color: var(--dcp-structure);
}

.terminal-list li:hover::before {
  color: var(--dcp-soul);
  transform: translateX(2px);
}

.terminal-list li strong {
  font-family: var(--font-sans);
  color: var(--dcp-structure);
  font-weight: 600;
  font-size: 1em;
  letter-spacing: 0.02em;
  margin-right: 4px;
}

.img-auto {
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 40px;
  border-bottom: 0;
  filter: none;
}

@media (max-width: 1024px) {

  .dashboard-grid,
  .agent-grid {
    grid-template-columns: 1fr;
  }

  .dash-panel:nth-child(2) {
    transform: none !important;
  }

  .dash-panel:nth-child(2):hover {
    transform: translate(calc(var(--space-xs) * -1), calc(var(--space-xs) * -1)) !important;
  }

  /* 流水线在移动端变为等宽堆叠 */
  .arch-pipeline::before {
    left: var(--space-md);
  }

  .pipeline-step {
    width: 100%;
    flex-direction: column;
  }

  .pipeline-step:nth-child(1),
  .pipeline-step:nth-child(2),
  .pipeline-step:nth-child(3) {
    align-self: center;
  }

  .step-num-box {
    width: 100%;
    height: 5rem;
    border-right: none !important;
    border-bottom: 1px solid var(--dcp-structure);
  }

  .pipeline-step:nth-child(even) .step-num-box {
    border-left: none;
    order: 0;
  }

  .footer-info-container {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer-col.left,
  .footer-col.right {
    text-align: left;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: left;
    align-items: flex-start;
  }

  .marquee-text {
    font-size: clamp(5rem, 15vw, 9rem);
  }

  .hero-overlay {
    padding: var(--space-sm);
  }
}

/* =========================================
   Hero / ASCII 响应式断点 — 与 player.js isMobile(≤900) 对齐
   ========================================= */
@media (max-width: 900px) {
  #ascii-wrapper {
    margin-top: var(--header-height);
    /* Hero-overlay drives the height on mobile */
    height: auto !important;
    min-height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  #ascii-player {
    /* Fill wrapper height and crop overflowing ASCII content */
    top: 0 !important;
    height: 100% !important;
    min-height: 100%;
  }

  .hero-overlay {
    width: 95%;
    /* Participate in normal flow so it sets the wrapper's height */
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    animation: none;
    opacity: 1;
    filter: none;
  }
}

@media (max-width: 768px) {
  :root {
    --text-h1: clamp(2rem, 5.4vw, 4rem);
  }

  header {
    height: var(--header-height);
    min-height: var(--header-height);
    padding: 0 var(--space-md);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* 移动端隐藏桌面 header-brand，logo 单独放在 header 内左对齐 */
  .header-brand {
    display: none;
  }

  .mobile-logo {
    display: block;
    height: 1rem;
    width: auto;
    flex-shrink: 0;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* 滚动后保持 logo 左、汉堡右，不被 header.scrolled justify-content:center 覆盖 */
  header.scrolled {
    justify-content: space-between;
  }

  .btn-dither {
    padding: var(--space-2xs) var(--space-xs);
    font-size: var(--text-xs);
  }

  .mobile-menu {
    display: block;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #000;
    padding: var(--space-xs) var(--space-md);
    transform: translateY(calc(var(--space-xs) * -1));
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 999;
    text-align: center;
  }

  header.scrolled .mobile-menu {
    background: #fff;
  }

  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .nav-system {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: var(--space-sm);
    border-top: 1px dashed var(--dcp-structure-light);
    padding-top: var(--space-xs);
  }

  .agent-showcase {
    padding: var(--space-xl) var(--space-xs) var(--space-md);
  }

  .step-content {
    padding: var(--space-md) var(--space-sm);
  }

  .log-content {
    padding: var(--space-md) var(--space-sm);
  }

  .footer-slogan-center {
    font-size: var(--text-xs);
    letter-spacing: 0.5em;
    text-indent: 0.5em;
  }

  .modal-box {
    padding: var(--space-lg) var(--space-sm);
  }
}

/* =========================================
   SYS.ABOUT 视觉布局
   ========================================= */
.about-grid {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-text-content {
  flex: 1;
  min-width: 320px;
}

.about-visual-box {
  flex: 1;
  position: relative;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(45deg, rgba(10, 10, 10, 0.02), rgba(10, 10, 10, 0.02) 2px, transparent 2px, transparent 8px);
  border: 1px solid var(--dcp-structure-light);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.about-img-placeholder:hover {
  border-color: var(--dcp-structure);
  transform: translate(-5px, -5px);
  box-shadow: 10px 10px 0px rgba(10, 10, 10, 0.05);
}

.about-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* =========================================
   四大壁垒 (优势网格)
   ========================================= */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.adv-panel {
  border: 1px solid var(--dcp-structure);
  background: #ffffff;
  padding: 50px 40px;
  overflow: hidden;
  max-height: 350px;
  transition:
    max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.adv-panel:hover {
  transform: translate(-8px, -8px);
  box-shadow: 12px 12px 0px rgba(10, 10, 10, 0.05);
  border-color: var(--dcp-structure);
  max-height: 600px;
}

.adv-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 15px 0;
}

.adv-desc {
  font-size: 0.95rem;
  color: var(--dcp-text-muted);
  line-height: 1.7;
  margin: 0;
  font-weight: 300;
}

/* =========================================
   核心智库团队 (错位排版)
   ========================================= */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.team-row {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.team-card {
  width: 300px;
  background: transparent;
  border: 1px solid transparent;
  padding: 15px;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: crosshair;
}

.team-card:hover {
  background: #ffffff;
  border-color: var(--dcp-structure);
  transform: translateY(-10px);
  box-shadow: 15px 15px 0px rgba(10, 10, 10, 0.05);
  z-index: 10;
}

.team-avatar-box {
  aspect-ratio: 3 / 4;
  width: 100%;
  clip-path: polygon(40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 40px);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  transition: all 0.5s ease;
  background: #ffffff;
}

.team-avatar-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 20px 20px;
  z-index: 1;
}

.team-card .ascii-avatar {
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  white-space: pre;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: block;
  line-height: 1;
  color: var(--dcp-structure);
  background: transparent;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--dcp-structure);
  transition: background 0.5s, -webkit-text-fill-color 0.5s;
}

.team-card:hover .ascii-avatar {
  background: var(--gradient1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.team-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--dcp-structure);
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 15px;
}

.team-desc {
  font-size: 0.95rem;
  color: var(--dcp-text-muted);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .about-grid {
    flex-direction: column;
    gap: 40px;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .team-row {
    flex-direction: column;
    align-items: center;
  }

  .team-card {
    width: 100%;
    max-width: 320px;
  }
}