
/* =========================
   全局基础样式
   ========================= */
@font-face {
  font-family: 'Unifont';
  src: local('Unifont'), local('Unifont Regular'),
       url('../fonts/unifont.ttf') format('truetype');
  font-display: swap;
  unicode-range: U+4E00-9FFF, U+3400-4DBF, U+3000-303F, U+FF00-FFEF;
}

@font-face {
  font-family: 'Zpix';
  src: local('Zpix'), local('Zpix Regular'),
       url('../fonts/zpix.woff2') format('woff2'),
       url('../fonts/zpix.ttf') format('truetype');
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Unifont', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  -webkit-font-smoothing: antialiased;
}

.pixel-font {
  font-family: inherit;
  letter-spacing: normal;
}

html[lang="en"] body {
  font-family: 'Zpix', 'Unifont', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html[lang="zh-CN"] body {
  font-family: 'Unifont', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}


a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* 字体统一为正常可读风格，pixel-font 继承 */

/* =========================
   布局：左侧菜单 + 右侧内容
   ========================= */
.site-wrapper {
  display: block;
  min-height: 100vh;
  background: #0a0a0a;
  position: relative;
}

.site-wrapper::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 2px,
      transparent 2px,
      transparent 24px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 2px,
      transparent 2px,
      transparent 24px
    );
  background-size: 24px 24px, 24px 24px;
  opacity: 0.2;
  animation: mosaicShift 16s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 160px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo {
  display: none;
}

.logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.logo-text {
  font-size: 12px;
  color: #d7e3ff;
  text-shadow:
    0 0 4px rgba(0, 255, 255, 0.6),
    0 0 10px rgba(0, 128, 255, 0.8);
}

.sidebar-toggle {
  display: none;
  border: 1px solid rgba(135, 180, 255, 0.65);
  background: radial-gradient(circle at 0 0, #1b1b2f, #05050b);
  color: #e0ebff;
  padding: 6px 9px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  align-items: center;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
  color: #cccccc;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: #ffffff;
}

.nav-item.active {
  color: #ffffff;
  font-weight: 500;
}

  .sidebar-footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
  }

.lang-switcher {
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn {
  border: none;
  background: transparent;
  color: #cccccc;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.content {
  flex: 1;
  margin-left: 0;
  padding: 0 42px 100px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 2px,
      transparent 2px,
      transparent 24px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 2px,
      transparent 2px,
      transparent 24px
    );
  background-size: 24px 24px, 24px 24px;
  opacity: 0.16;
  animation: mosaicShift 16s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.content > * {
  position: relative;
  z-index: 1;
}

body.business .content,
body.news .content,
body.contact .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-bottom: 0;
  gap: 32px;
}

/* =========================
   首页 Hero + 科技网格与粒子
   ========================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 2px,
      transparent 2px,
      transparent 24px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 2px,
      transparent 2px,
      transparent 24px
    );
  background-size: 24px 24px, 24px 24px;
  opacity: 0.28;
  animation: mosaicShift 16s linear infinite;
  mix-blend-mode: screen;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}


.hero-inner {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: 48px;
  color: #ffffff;
  margin: 0 0 32px;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 24px;
  color: #cccccc;
  margin: 0 0 32px;
  font-weight: 300;
}

.hero-description {
  font-size: 14px;
  line-height: 1.7;
  color: #c2d0ff;
  max-width: none;
  white-space: nowrap;
  margin: 0 auto;
  text-align: center;
}

html[lang="en"] .hero-description {
  white-space: nowrap;
  margin: 0 auto;
  text-align: center;
}

/* 修复：移除无选择器的属性块 */

.particle {
  position: absolute;
  bottom: -10%;
  left: 50%;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #ffffff, #b0f6ff);
  box-shadow:
    0 0 10px rgba(0, 255, 255, 0.8),
    0 0 22px rgba(130, 80, 255, 0.8);
  opacity: 0.8;
  transform: translateX(var(--x));
  animation: float-up var(--duration) linear var(--delay) infinite;
}

/* =========================
   通用页面头部
   ========================= */
.page-header {
  margin-bottom: 26px;
  text-align: center;
}
.business .page-header {
  margin-top: 8px;
  margin-bottom: 16px;
}

.page-title {
  font-size: 18px;
  margin: 0 0 14px;
  color: #f8f5ff;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
}

.page-subtitle {
  margin: 0;
  font-size: 13px;
  color: #aebcf7;
}

/* =========================
   业务模块
   ========================= */
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 180px);
  gap: 24px;
  justify-content: center;
  margin: 0;
}

.business-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  min-height: 240px;
}

.business-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.business-icon {
  width: 48px;
  height: 48px;
  margin: 0 0 12px 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.business-icon svg {
  opacity: 0.8;
}

.business-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px;
  color: #ffffff;
}

.business-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #cccccc;
  margin: 0;
}

/* =========================
   动态列表
   ========================= */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  padding: 0 16px;
}

.news-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 680px;
}

/* 移除装饰线 */

.news-title {
  margin: 0 0 8px;
  font-size: 16px;
  color: #ffffff;
  font-weight: 500;
}

.news-title a:hover {
  color: #cccccc;
}

.news-desc {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #cccccc;
}

.news-link {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.news-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* =========================
   联系方式
   ========================= */
.contact-card {
  max-width: 400px;
  margin: 40px auto 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
}

.contact-item {
  margin-bottom: 20px;
}

.contact-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 8px;
}

.contact-value {
  font-size: 18px;
  color: #cccccc;
  word-break: break-all;
}

.contact-value:hover {
  color: #ffffff;
}

/* =========================
   页脚
   ========================= */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: #aaaaaa;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-text:hover {
  color: #cccccc;
}

/* =========================
   响应式
   ========================= */
@media (max-width: 1024px) {
  .business-grid {
    grid-template-columns: repeat(2, 180px);
  }
}

@media (max-width: 900px) {
  .home .hero {
    align-items: flex-start;
    padding-top: 24px;
  }
  .sidebar {
    position: sticky;
    top: 0;
    inset: unset;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    padding-bottom: 8px;
    z-index: 20;
  }

  .sidebar-top {
    justify-content: center;
  }

  .sidebar-toggle {
    display: none;
  }

  .nav {
    margin-top: 6px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  .sidebar.open .nav {
    max-height: none;
  }

  .content {
    margin-left: 0;
    margin-top: 0;
    padding: 48px 18px 90px;
  }

  .hero-inner {
    padding: 24px 22px;
  }
}

@media (max-width: 600px) {
  .business-grid {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .hero-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 11px;
    margin-bottom: 18px;
  }

  .hero-description {
    font-size: 12px;
  }

  /* 首页单独更紧凑的上间距（移动端） */
  .home .content {
    padding-top: 32px;
  }

  .home .hero-inner {
    padding-top: 6px;
  }
}

@media (min-width: 901px) {
  .nav {
    margin-top: auto;
    margin-bottom: auto;
  }
}

/* =========================
   动画
   ========================= */
@keyframes grid-pan-1 {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-80px, -80px, 0);
  }
}

@keyframes grid-pan-2 {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(80px, 80px, 0);
  }
}

@keyframes float-up {
  0% {
    transform: translate3d(var(--x), 0, 0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translate3d(calc(var(--x) + 10%), -115%, 0);
    opacity: 0;
  }
}

@keyframes mosaicShift {
  0% {
    background-position: 0 0, 0 0;
    filter: hue-rotate(0deg) saturate(1);
  }
  50% {
    background-position: 60px 30px, -60px -30px;
    filter: hue-rotate(40deg) saturate(1.15);
  }
  100% {
    background-position: 0 0, 0 0;
    filter: hue-rotate(0deg) saturate(1);
  }
}


