/* ============================================================
   科汇盛联 — 官网样式系统
   设计规范：深海蓝 #0B1D33 / 工业橙 #E8751A / 信息青 #00B4D8
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Noto Sans SC', 'Inter', -apple-system, sans-serif;
  background: #0A0E17;
  color: #D0D4DC;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }
::selection { background: #E8751A; color: #fff; }

/* ---------- TYPOGRAPHY ---------- */
.text-gradient {
  background: linear-gradient(135deg, #E8751A, #00B4D8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00B4D8;
  border: 1px solid rgba(0, 180, 216, 0.3);
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #F8F9FA;
  margin-bottom: 16px;
  line-height: 1.3;
}
.section-desc {
  font-size: 16px;
  color: #8A94A6;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}
section { padding: 100px 0; position: relative; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo .logo-icon {
  filter: drop-shadow(0 0 10px rgba(0,180,216,0.12));
  transition: transform 0.4s ease;
}
.nav-logo:hover .logo-icon {
  transform: scale(1.08);
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #F8F9FA;
  letter-spacing: 1px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  color: #8A94A6;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E8751A;
  transition: width 0.2s;
}
.nav-link:hover,.nav-link.active { color: #F8F9FA}
.nav-link:hover::after,.nav-link.active::after { width: 100%}
.nav-cta {
  padding: 8px 24px;
  background: #E8751A;
  color: #fff !important;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: #D06500; transform: translateY(-1px); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #D0D4DC;
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 0;
}
#heroCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(11,29,51,0.6) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 50%, rgba(0,180,216,0.1) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
}
.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #00B4D8;
  border: 1px solid rgba(0,180,216,0.25);
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: #F8F9FA;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 16px;
  color: #8A94A6;
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: #E8751A;
  color: #fff;
}
.btn-primary:hover { background: #D06500; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232,117,26,0.3); }
.btn-secondary {
  background: transparent;
  color: #F8F9FA;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-secondary:hover { border-color: #00B4D8; color: #00B4D8; transform: translateY(-2px); }
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #6C757D;
  font-size: 12px;
  animation: bounce 2s infinite;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid #6C757D;
  border-bottom: 2px solid #6C757D;
  transform: rotate(45deg);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- METRICS ---------- */
.metrics {
  background: #0B1D33;
  padding: 60px 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}
.metric-card {
  text-align: center;
  position: relative;
  padding: 20px 8px;
}
.metric-number {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: #F8F9FA;
  line-height: 1;
}
.metric-plus, .metric-percent, .metric-unit {
  font-size: 20px;
  font-weight: 700;
  color: #E8751A;
  vertical-align: super;
  margin-left: 2px;
}
.metric-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #8A94A6;
  font-weight: 400;
}

/* ---------- ONTOLOGY ---------- */
.ontology {
  background: #0A0E17;
}
.ontology-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ontology-block {
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  transition: all 0.2s;
}
.ontology-block:hover {
  border-color: rgba(0,180,216,0.15);
  background: rgba(0,180,216,0.02);
}
.ontology-block.highlight {
  border-color: rgba(232,117,26,0.2);
  background: rgba(232,117,26,0.04);
}
.ontology-icon {
  margin-bottom: 12px;
}
.ontology-block h3 {
  font-size: 18px;
  font-weight: 600;
  color: #F8F9FA;
  margin-bottom: 8px;
}
.ontology-block p {
  font-size: 14px;
  color: #8A94A6;
  line-height: 1.7;
}
.ontology-block.highlight p { color: #B0B8C4; }
.ontology-visual {
  position: relative;
  width: 100%;
  height: 500px;
}
.graph-container {
  width: 100%;
  height: 100%;
  min-height: 400px;
}
#graphSvg {
  width: 100%;
  height: 100%;
}

/* ---------- SOLUTIONS ---------- */
.solutions {
  background: #0B1D33;
}
.solution-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #8A94A6;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.tab-btn:hover { border-color: rgba(0,180,216,0.3); color: #D0D4DC; }
.tab-btn.active {
  background: #E8751A;
  border-color: #E8751A;
  color: #fff;
}
.tab-content {
  display: none;
}
.tab-content.active { display: block; }
.solution-arch {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.arch-layer {
  width: 100%;
  padding: 16px 24px;
  background: var(--layer-color);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.2s;
}
.arch-layer:hover { transform: translateX(4px); }
.arch-layer span { font-size: 14px; font-weight: 600; color: #F8F9FA; }
.arch-layer small { font-size: 12px; color: #8A94A6; }
.arch-layer.result { border-left: 3px solid #E8751A; }
.arch-arrow { color: #00B4D8; font-size: 10px; opacity: 0.5; }

/* ---------- PRODUCTS ---------- */
.products {
  background: #0A0E17;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.product-card {
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  background: rgba(11,29,51,0.3);
  transition: all 0.3s;
}
.product-card:hover {
  border-color: rgba(0,180,216,0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.product-card.featured {
  border-color: rgba(232,117,26,0.2);
  position: relative;
}
.product-card.featured::before {
  content: '核心产品';
  position: absolute;
  top: -1px;
  right: 24px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #E8751A;
  background: rgba(232,117,26,0.1);
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
}
.product-header {
  margin-bottom: 20px;
}
.product-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--card-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.product-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #F8F9FA;
}
.product-desc {
  font-size: 14px;
  color: #8A94A6;
  line-height: 1.7;
  margin-bottom: 20px;
}
.product-features li {
  font-size: 13px;
  color: #B0B8C4;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}
.product-features li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #00B4D8;
  font-weight: 700;
}

/* ----------- FDE ------------ */
.fde {
  background: #0B1D33;
}
.fde-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.fde-image-stack {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
}
.fde-img {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.5s;
}
.fde-img-1 {
  top: 0; left: 0;
  width: 70%;
  height: 75%;
  z-index: 2;
  border: 1px solid rgba(0,180,216,0.15);
}
.fde-img-2 {
  bottom: 0; right: 0;
  width: 60%;
  height: 60%;
  z-index: 1;
  border: 1px solid rgba(232,117,26,0.15);
}
.fde-img svg { width: 100%; height: 100%; }
.fde-text .section-tag { margin-bottom: 16px; }
.fde-text h2 { font-size: clamp(24px, 3.5vw, 36px); margin-bottom: 20px; }
.fde-text > p { font-size: 15px; color: #8A94A6; line-height: 1.8; margin-bottom: 32px; }
.fde-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fde-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(0,180,216,0.05);
  border: 1px solid rgba(0,180,216,0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #D0D4DC;
}
.fde-badge small {
  font-weight: 400;
  color: #6C757D;
}
.badge-icon { font-size: 20px; }

/* ---------- CASES ---------- */
.cases { background: #0A0E17; }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  background: rgba(11,29,51,0.3);
  transition: all 0.3s;
}
.case-card:hover {
  border-color: rgba(0,180,216,0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.case-tags { margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.case-tag {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 500;
}
.case-tag.industry { background: rgba(0,180,216,0.1); color: #00B4D8; }
.case-tag.product { background: rgba(232,117,26,0.1); color: #E8751A; }
.case-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #F8F9FA;
  margin-bottom: 20px;
}
.case-metrics li {
  font-size: 13px;
  color: #8A94A6;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.case-num {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: #E8751A;
}
.case-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: #00B4D8;
  font-weight: 500;
  transition: color 0.2s;
}
.case-link:hover { color: #E8751A; }

/* ---------- PARTNERS ---------- */
.partners { background: #0B1D33; }
.partner-logos {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.partner-logo {
  opacity: 0.5;
  transition: opacity 0.3s;
}
.partner-logo:hover { opacity: 0.8; }
.about-story {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.about-story h3 {
  font-size: 20px;
  font-weight: 600;
  color: #F8F9FA;
  margin-bottom: 16px;
}
.about-story p {
  font-size: 14px;
  color: #8A94A6;
  line-height: 1.8;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #070B12;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.03);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: #F8F9FA;
}
.footer-motto {
  font-size: 13px;
  color: #6C757D;
  line-height: 1.7;
  max-width: 320px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: #8A94A6;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: #4A5A7A;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #D0D4DC; }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.03);
  text-align: center;
  font-size: 12px;
  color: #4A5A7A;
}

/* ---------- RESPONSIVE ---------- */
.desktop-only { display: block; }

@media (max-width: 1024px) {
  .ontology-layout,
  .fde-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ontology-visual { height: 350px; }
  .fde-image-stack { padding-bottom: 60%; }
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10,14,23,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: right 0.3s;
    gap: 24px;
  }
  .nav-menu.open { right: 0; }
  .hamburger { display: block; z-index: 1001; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .desktop-only { display: none; }

  .hero-title { font-size: 28px; }
  .hero-desc { font-size: 14px; }
  .hero {
    align-items: flex-start;
    padding-top: 90px;
  }
  .hero-content {
    padding: 0 0 60px;
  }
  .hero-badge {
    margin-bottom: 16px;
    font-size: 12px;
    padding: 5px 16px;
  }
  .hero-desc {
    margin-bottom: 28px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .solution-tabs { gap: 6px; }
  .tab-btn { font-size: 12px; padding: 8px 16px; }
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}