/* ================================================
   启高科技 企业官网 - 全局样式
   色彩体系: 深蓝 #0F3460 | 白 #FFFFFF | 荧光蓝 #38B6FF | 浅灰蓝 #E8F4FC
================================================ */

/* === CSS Variables === */
:root {
  --primary: #0F3460;
  --white: #FFFFFF;
  --accent: #38B6FF;
  --light-bg: #E8F4FC;
  --text-dark: #333333;
  --text-light: #666666;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 52, 96, 0.08);
  --shadow-hover: 0 8px 32px rgba(15, 52, 96, 0.14);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-cn: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-en: 'Roboto', sans-serif;
  
  /* Responsive Typography Variables */
  --h1: 52px;
  --h2: 40px;
  --h3: 32px;
}

/* 强制隐藏移动端装饰图标通用类 */
.mobile-icon-hidden {
  display: block;
}

@media (max-width: 767px) {
  .mobile-icon-hidden {
    display: none !important;
  }
}

@media (max-width: 767px) {
  :root {
    --h1: 22px;
    --h2: 18px;
    --h3: 16px;
  }
}

/* === Reset & Base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 767px) {
  html {
    font-size: 14px;
  }
}

body {
  font-family: var(--font-cn);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }
}

/* 移动端横向滑动工具类 */
.mobile-tabs-scroll {
  display: flex !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  gap: 12px;
}

.mobile-tabs-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* 移动端排版修正 */
@media (max-width: 767px) {
    h1 { font-size: var(--h1) !important; }
    h2 { font-size: var(--h2) !important; }
    h3 { font-size: var(--h3) !important; }
    color: var(--h1) !important;
}

/* 移动端纯净化工具类 (Mobile Purity Utilities) */
@media (max-width: 767px) {
  .hidden-mobile, 
  .hero-3d-scene, 
  .glass-panel, 
  .cube-3d, 
  .octa-3d, 
  .orbit-ring, 
  .float-tag, 
  .grid-floor,
  .serv-cube,
  .retail-smart,
  .manufacture-smart,
  .medical-smart {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    background-image: none !important;
  }
  
  .mobile-shadow-none {
    box-shadow: none !important;
  }
  
  .mobile-border-thin {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
  }
  
  .mobile-rounded-sm {
    border-radius: 8px !important;
  }
  
  /* 简化卡片效果 */
  .mobile-flat-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 12px !important;
  }
  
  /* 强制溢出控制与边距重置 */
  body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .container {
    padding: 0 20px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  /* 移动端间距压缩：将默认的 py-20/py-16 等大幅留白收紧 */
  section {
    padding-top: 2.5rem !important;    /* 40px */
    padding-bottom: 2.5rem !important; /* 40px */
  }
  
  /* 针对头部板块的特殊间距处理 */
  #hero-section, .hero-section {
    padding-top: 5rem !important;      /* 80px，保留顶部导航空间 */
    padding-bottom: 3rem !important;
  }
  
  /* 需求 2: 缩小板块间的留白 */
  .py-24, .py-20, .py-32 {
    padding-top: 2.5rem !important; /* 40px */
    padding-bottom: 2.5rem !important; /* 40px */
  }
  
  /* 需求 3: 进一步减小 tab 字体，允许自适应换行 */
  .cap-btn, .prod-tab-btn, .serv-tab-btn, .ind-tab-btn {
    font-size: 11px !important;
    padding: 10px 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }
  
  /* 需求 4: 减小卡片左右内外边距，并统一样式 */
  .card-compact, .mobile-flat-card {
    padding: 1.25rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
  }

  /* 移动端文本对齐覆盖 */
  .mobile-text-center {
    text-align: center !important;
  }
  
  .mobile-w-full {
    width: 100% !important;
  }
  
  /* 针对常用 p-8, p-12 的卡片进行自动压缩 */
  .p-8, .p-12, .md\:p-12 {
    padding: 1.25rem !important; /* 20px on mobile */
  }

  /* 辅助：首页 Banner 居中 */
  .hero-mobile-center {
    text-align: center !important;
    align-items: center !important;
  }

  /* 需求 5: 深度隐藏配图与装饰图标 */
  .mobile-flat-card img, 
  .mobile-card-compact img, 
  .cap-pane img, 
  .prod-panel img,
  .serv-panel img,
  .ind-panel img,
  [data-purpose="hero-banner"] img,
  .hero-mobile-center img,
  section[data-purpose="hero-banner"] img,
  .workflow-step img,
  .workflow-step i,
  .group img,
  .group i.fa-solid,
  .bg-blue-50 i, .bg-red-50 i, .bg-orange-50 i, .bg-blue-100 i,
  .inline-flex.items-center i,
  .absolute.inset-0.z-0 img {
    display: none !important;
  }

  /* 修复移动端滚动条异常 (Scrollbar Fixes V2) */
  .min-h-\[520px\], .min-h-\[640px\], .min-h-\[480px\], .relative.min-h-\[520px\] {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
  }
  
  .prod-panel, .serv-panel, .ind-panel, .cap-pane {
    display: none !important; /* 核心修复：防止非激活面板占用空间 */
    position: relative !important;
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  
  .prod-panel.active, .serv-panel.active, .ind-panel.active, .cap-pane.active {
    display: block !important; /* 仅显示激活面板 */
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
  
  /* 解决绝对定位导致的父容器塌陷与滚动条 */
  .relative.min-h-\[520px\] > .prod-panel, 
  .relative.min-h-\[520px\] > .serv-panel {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
  }

  .serv-panel > div, .prod-panel > div {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* 强制单列堆叠 */
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  @media (min-width: 768px) {
    .grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  /* 强化 Tab 栏换行 */
  [onclick*="switchProdTab"], [onclick*="switchServTab"], [onclick*="switchIndTab"],
  .prod-tab-btn, .serv-tab-btn, .ind-tab-btn {
    flex-wrap: wrap !important;
    white-space: normal !important;
  }

  /* 恢复合作伙伴 Logo (Restore Partner Logos) */
  [data-purpose="partners"] .group img {
    display: block !important;
    visibility: visible !important;
    opacity: 0.6 !important;
    height: auto !important;
    width: auto !important;
    pointer-events: auto !important;
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* === 导航栏 === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(232, 244, 252, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(56, 182, 255, 0.1);
  box-shadow: 0 2px 20px rgba(15, 52, 96, 0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.logo-cn {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}

.logo-en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-item {
  position: relative;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 400;
  color: var(--primary);
  transition: var(--transition);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 1px;
  transition: width 0.35s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--accent);
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 70%;
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === 首屏 Banner (3D 毛玻璃科技版) === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(56, 182, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(56, 182, 255, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, #080e27 0%, #0a1628 30%, #0F3460 70%, #132b52 100%);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* 3D 场景 */
.hero-3d-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  perspective: 1200px;
  pointer-events: none;
}

/* 发光网格地面 */
.grid-floor {
  position: absolute;
  bottom: -10%;
  left: -20%;
  width: 140%;
  height: 50%;
  background:
    linear-gradient(90deg, rgba(56, 182, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(56, 182, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(55deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 80%);
}

/* ---- 浮动毛玻璃面板 ---- */
.glass-panel {
  position: absolute;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 182, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 0;
  overflow: hidden;
}

.glass-inner {
  padding: 20px 22px;
}

.glass-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  margin-top: 10px;
  font-weight: 400;
}

/* 面板 1 - 柱状图 */
.glass-1 {
  width: 200px;
  height: 160px;
  top: 18%;
  right: 8%;
  animation: glass-float-1 8s ease-in-out infinite;
  z-index: 3;
}

.glass-chart {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 80px;
}

.g-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, rgba(56, 182, 255, 0.3), rgba(56, 182, 255, 0.8));
  border-radius: 4px 4px 0 0;
  animation: g-bar-grow 1.5s ease-out forwards;
  transform-origin: bottom;
  transform: scaleY(0);
  position: relative;
}

.g-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #38B6FF;
  box-shadow: 0 0 8px #38B6FF;
  border-radius: 4px;
}

.g-bar:nth-child(1) {
  animation-delay: 0.5s;
}

.g-bar:nth-child(2) {
  animation-delay: 0.7s;
}

.g-bar:nth-child(3) {
  animation-delay: 0.9s;
}

.g-bar:nth-child(4) {
  animation-delay: 1.1s;
}

.g-bar:nth-child(5) {
  animation-delay: 1.3s;
}

@keyframes g-bar-grow {
  to {
    transform: scaleY(1);
  }
}

/* 面板 2 - 环形图 */
.glass-2 {
  width: 170px;
  height: 155px;
  top: 52%;
  right: 16%;
  animation: glass-float-2 9s ease-in-out infinite;
  z-index: 2;
}

.glass-ring {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.glass-ring svg {
  width: 100%;
  height: 100%;
}

.ring-progress {
  animation: ring-fill 2s ease-out 0.5s forwards;
  stroke-dasharray: 0 190;
}

@keyframes ring-fill {
  to {
    stroke-dasharray: 130 60;
  }
}

/* 面板 3 - 节点网络 */
.glass-3 {
  width: 160px;
  height: 140px;
  top: 30%;
  right: 30%;
  animation: glass-float-3 7s ease-in-out infinite;
  z-index: 2;
}

.glass-nodes {
  position: relative;
  width: 100px;
  height: 80px;
  margin: 0 auto;
}

.gn-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gn-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38B6FF;
  box-shadow: 0 0 8px rgba(56, 182, 255, 0.6);
}

.gn-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
}

.gn-1 {
  top: 10%;
  left: 10%;
  animation: gn-pulse 2s ease-in-out infinite;
}

.gn-2 {
  top: 10%;
  right: 10%;
  animation: gn-pulse 2s ease-in-out 0.5s infinite;
}

.gn-3 {
  bottom: 10%;
  left: 15%;
  animation: gn-pulse 2s ease-in-out 1s infinite;
}

.gn-4 {
  bottom: 10%;
  right: 15%;
  animation: gn-pulse 2s ease-in-out 1.5s infinite;
}

@keyframes gn-pulse {

  0%,
  100% {
    box-shadow: 0 0 6px rgba(56, 182, 255, 0.4);
  }

  50% {
    box-shadow: 0 0 14px rgba(56, 182, 255, 0.9);
  }
}

/* 面板浮动动画 */
@keyframes glass-float-1 {

  0%,
  100% {
    transform: translateY(0) rotateY(-2deg);
  }

  50% {
    transform: translateY(-15px) rotateY(1deg);
  }
}

@keyframes glass-float-2 {

  0%,
  100% {
    transform: translateY(0) rotateX(1deg);
  }

  50% {
    transform: translateY(-12px) rotateX(-2deg);
  }
}

@keyframes glass-float-3 {

  0%,
  100% {
    transform: translateY(0) rotateZ(0deg);
  }

  50% {
    transform: translateY(-18px) rotateZ(1deg);
  }
}

/* ---- 3D 旋转立方体 ---- */
.cube-3d {
  position: absolute;
  width: 70px;
  height: 70px;
  top: 22%;
  right: 42%;
  transform-style: preserve-3d;
  animation: cube-spin 20s linear infinite;
}

.cube-face {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(56, 182, 255, 0.2);
  background: rgba(56, 182, 255, 0.03);
  box-shadow: inset 0 0 20px rgba(56, 182, 255, 0.05);
}

.cube-face.front {
  transform: translateZ(35px);
}

.cube-face.back {
  transform: translateZ(-35px) rotateY(180deg);
}

.cube-face.left {
  transform: translateX(-35px) rotateY(-90deg);
}

.cube-face.right {
  transform: translateX(35px) rotateY(90deg);
}

.cube-face.top {
  transform: translateY(-35px) rotateX(90deg);
}

.cube-face.bottom {
  transform: translateY(35px) rotateX(-90deg);
}

@keyframes cube-spin {
  from {
    transform: rotateX(25deg) rotateY(0deg);
  }

  to {
    transform: rotateX(25deg) rotateY(360deg);
  }
}

/* ---- 3D 旋转八面体 ---- */
.octa-3d {
  position: absolute;
  width: 50px;
  height: 50px;
  bottom: 30%;
  right: 5%;
  transform-style: preserve-3d;
  animation: octa-spin 15s linear infinite;
}

.octa-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(56, 182, 255, 0.25);
  border-radius: 50%;
}

.ring-a {
  transform: rotateX(60deg);
}

.ring-b {
  transform: rotateY(60deg);
}

.ring-c {
  transform: rotateZ(60deg);
}

.octa-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #38B6FF;
  box-shadow: 0 0 15px #38B6FF, 0 0 30px rgba(56, 182, 255, 0.3);
}

@keyframes octa-spin {
  from {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }

  to {
    transform: rotateX(360deg) rotateY(180deg) rotateZ(360deg);
  }
}

/* ---- 发光轨道环 ---- */
.orbit-ring {
  position: absolute;
  border: 1px solid rgba(56, 182, 255, 0.08);
  border-radius: 50%;
}

.orbit-1 {
  width: 500px;
  height: 500px;
  top: 10%;
  right: -5%;
  border-top-color: rgba(56, 182, 255, 0.25);
  animation: orbit-rotate 30s linear infinite;
}

.orbit-2 {
  width: 350px;
  height: 350px;
  top: 25%;
  right: 3%;
  border-bottom-color: rgba(56, 182, 255, 0.2);
  animation: orbit-rotate 22s linear infinite reverse;
}

@keyframes orbit-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ---- 浮动数据标签 ---- */
.float-tag {
  position: absolute;
  background: rgba(56, 182, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 182, 255, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38B6FF;
  box-shadow: 0 0 6px #38B6FF;
  animation: tag-blink 2s ease-in-out infinite;
}

@keyframes tag-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.tag-1 {
  top: 68%;
  right: 38%;
  animation: glass-float-3 6s ease-in-out infinite;
}

.tag-2 {
  top: 15%;
  right: 25%;
  animation: glass-float-1 7s ease-in-out infinite;
}

.tag-3 {
  bottom: 18%;
  right: 12%;
  animation: glass-float-2 8s ease-in-out infinite;
}

/* ---- 文案层 ---- */
.hero-content {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
  padding-top: 72px;
  min-height: 100vh;
}

.hero-text {
  flex: 0 0 50%;
  max-width: 580px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 182, 255, 0.1);
  border: 1px solid rgba(56, 182, 255, 0.2);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38B6FF;
  box-shadow: 0 0 8px #38B6FF;
  animation: tag-blink 2s ease-in-out infinite;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.title-highlight {
  background: linear-gradient(135deg, #38B6FF, #6dd5ff, #38B6FF);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
  letter-spacing: 1px;
}

/* Actions */
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-btn {
  position: relative;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-cn);
  letter-spacing: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #38B6FF, #0F3460);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(56, 182, 255, 0.3);
  border: 1px solid rgba(56, 182, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5cc8ff, #38B6FF);
  box-shadow: 0 6px 30px rgba(56, 182, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(56, 182, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(56, 182, 255, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  pointer-events: none;
}

.btn-primary:hover .btn-glow {
  width: 200px;
  height: 200px;
}

/* Hero Metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.hm-item {
  text-align: center;
}

.hm-num {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hm-unit {
  font-size: 16px;
  color: var(--accent);
  font-weight: 500;
}

.hm-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
  letter-spacing: 1px;
}

.hm-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  opacity: 0.5;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: rotate(45deg) translateY(8px);
    opacity: 1;
  }
}

/* === Section Common === */
.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 3px;
}

.title-line {
  width: 80px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 16px;
  border-radius: 1px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-light);
  font-weight: 300;
}

/* === 核心业务 === */
.business {
  background: var(--white);
}

.hex-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(232, 244, 252, 0.3) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(232, 244, 252, 0.3) 2px, transparent 2px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.5;
}

.business-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.biz-card {
  flex: 0 0 calc(33.333% - 40px);
  max-width: 340px;
  background: rgba(232, 244, 252, 0.5);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  border: 1px solid rgba(232, 244, 252, 0.8);
  transition: var(--transition);
  position: relative;
}

.biz-card:hover {
  transform: scale(1.02);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  background: rgba(232, 244, 252, 0.7);
}

.biz-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

.biz-icon svg {
  width: 100%;
  height: 100%;
}

.biz-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.biz-desc {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 16px;
}

.biz-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  padding: 4px 12px;
  border: 1px solid rgba(56, 182, 255, 0.3);
  border-radius: 20px;
  font-weight: 500;
}

.biz-connector {
  width: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.biz-connector svg {
  width: 100%;
}

.flow-line {
  animation: flow 2s linear infinite;
}

@keyframes flow {
  from {
    stroke-dashoffset: 20;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* === 启数道产品 === */
.product {
  background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 50%, var(--white) 100%);
}

.product-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}

.product-text {
  flex: 1;
}

.product-full-name {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
  font-weight: 300;
}

.product-features {
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.feature-bullet {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
}

.feature-item p {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.7;
}

.product-stats {
  display: flex;
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-unit {
  font-size: 16px;
  color: var(--accent);
  font-weight: 500;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

/* Product visual */
.product-visual {
  flex: 1;
  position: relative;
}

.platform-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 52, 96, 0.08);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.platform-layer {
  width: 100%;
  padding: 20px 24px;
  border-radius: 8px;
  border: 1px solid rgba(15, 52, 96, 0.1);
  background: var(--white);
  transition: var(--transition);
  position: relative;
}

.platform-layer:hover {
  border-color: var(--accent);
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(56, 182, 255, 0.1);
}

.layer-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

/* Layer icons */
.layer-icons {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.mini-chart {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 24px;
}

.mc-bar {
  width: 6px;
  background: linear-gradient(to top, var(--primary), var(--accent));
  border-radius: 2px;
  opacity: 0.6;
}

.mini-pie {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  border-top-color: var(--primary);
  opacity: 0.5;
}

.mini-line {
  width: 40px;
  height: 20px;
  border-bottom: 2px solid var(--accent);
  border-radius: 0 0 50% 50%;
  opacity: 0.4;
}

/* Layer nodes */
.layer-nodes {
  display: flex;
  gap: 30px;
  align-items: center;
  position: relative;
}

.node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--white);
  position: relative;
  z-index: 1;
}

.node-line {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.node-line.rl {
  left: 55px;
}

/* Layer db */
.layer-db {
  display: flex;
  gap: 20px;
}

.db-icon {
  width: 30px;
  height: 24px;
  border: 2px solid var(--primary);
  border-radius: 4px 4px 0 0;
  position: relative;
  opacity: 0.5;
}

.db-icon::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -2px;
  right: -2px;
  height: 8px;
  border: 2px solid var(--primary);
  border-radius: 0 0 4px 4px;
  border-top: none;
}

/* Layer connector */
.layer-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 30px;
  position: relative;
}

.connector-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  opacity: 0.3;
}

.data-flow-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: flow-down 2s ease-in-out infinite;
}

@keyframes flow-down {
  0% {
    top: 0;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

/* === 核心优势 === */
.advantages {
  background: var(--white);
  position: relative;
}

.adv-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.advantages .container {
  position: relative;
  z-index: 1;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.adv-card {
  background: var(--white);
  border: 1px solid var(--light-bg);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.adv-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.adv-number {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.adv-unit {
  font-size: 18px;
  color: var(--accent);
  font-weight: 500;
}

.adv-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin: 12px 0 8px;
}

.adv-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

/* === 行业方案 === */
.solutions {
  background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
}

.solution-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.sol-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(232, 244, 252, 0.8);
  transition: var(--transition);
  position: relative;
}

.sol-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.sol-bg {
  height: 200px;
  background: var(--light-bg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sol-scene {
  width: 100%;
  height: 100%;
}

.sol-content {
  padding: 28px 30px;
}

.sol-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}

.sol-points {
  list-style: none;
  margin-bottom: 18px;
}

.sol-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 6px;
}

.sol-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.sol-link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.sol-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.sol-link:hover::after {
  width: 100%;
}

.sol-link .arrow {
  transition: transform 0.3s ease;
}

.sol-link:hover .arrow {
  transform: translateX(4px);
}

/* === 联系我们 === */
.contact {
  background: var(--white);
  padding-bottom: 80px;
}

.contact-inner {
  display: flex;
  gap: 60px;
  align-items: stretch;
}

.contact-info {
  flex: 1;
  background: var(--primary);
  border-radius: var(--radius);
  padding: 48px 40px;
  color: var(--white);
}

.contact-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.contact-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-item h4 {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
}

.info-item p {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
}

/* 表单 */
.contact-form-wrap {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  border: 1px solid var(--light-bg);
}

.form-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 14px;
  font-family: var(--font-cn);
  border: 1px solid var(--light-bg);
  border-radius: 8px;
  background: var(--light-bg);
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 2px;
  font-family: var(--font-cn);
}

.btn-submit:hover {
  background: var(--accent);
  box-shadow: 0 4px 20px rgba(56, 182, 255, 0.3);
}

/* === 页脚 === */
.footer {
  background: var(--white);
  padding: 40px 0 24px;
  position: relative;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  margin-bottom: 40px;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-logo-cn {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}

.footer-logo-en {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--accent);
  margin-left: 8px;
}

.footer-slogan {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  color: var(--primary);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-light);
}

.footer-copyright a {
  color: var(--text-light);
}

.footer-copyright a:hover {
  color: var(--accent);
}

/* === 动画 === */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === 响应式 - 平板 (768px - 1199px) === */
@media (max-width: 1199px) {
  .hero-content {
    text-align: center;
  }

  .hero-text {
    flex: none;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-badge {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-metrics {
    justify-content: center;
  }

  .glass-3 {
    display: none;
  }

  .cube-3d {
    display: none;
  }

  .business-cards {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .biz-card {
    flex: 0 0 calc(50% - 20px);
    max-width: none;
  }

  .biz-connector {
    display: none;
  }

  .product-inner {
    flex-direction: column;
    gap: 40px;
  }

  .product-text .section-title {
    text-align: center !important;
  }

  .product-full-name {
    text-align: center;
  }

  .product-stats {
    justify-content: center;
  }

  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .adv-card {
    aspect-ratio: auto;
    padding: 24px 16px;
  }

  .contact-inner {
    flex-direction: column;
  }
}

/* === 响应式 - 手机 (<768px) === */
@media (max-width: 767px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-item {
    font-size: 20px;
    padding: 12px 24px;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-content {
    padding-top: 80px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-3d-scene .glass-panel,
  .hero-3d-scene .cube-3d,
  .hero-3d-scene .octa-3d,
  .hero-3d-scene .orbit-ring,
  .hero-3d-scene .float-tag {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 16px;
  }

  .hm-divider {
    width: 40px;
    height: 1px;
  }

  .hm-num {
    font-size: 24px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .section-desc {
    font-size: 15px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .biz-card {
    flex: 0 0 100%;
  }

  .product-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 28px;
  }

  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .adv-number {
    font-size: 28px;
  }

  .adv-title {
    font-size: 14px;
  }

  .adv-desc {
    font-size: 11px;
  }

  .solution-cards {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: 32px 24px;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }

  .footer-nav {
    gap: 16px;
  }
}