/* ==========================================================================
   宁波科芯仪器设备有限公司 — 深色科技风单页
   ========================================================================== */

:root {
  --bg: #05070d;
  --bg-2: #0a0f1a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --primary: #00d4ff;
  --primary-2: #3b82f6;
  --grad: linear-gradient(135deg, #00d4ff 0%, #3b82f6 100%);
  --text: #e6ecf5;
  --text-muted: #8a94a6;
  --text-dim: #5b6472;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #1b2434;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #28354b;
}

/* ==========================================================================
   背景层
   ========================================================================== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 12% 8%, rgba(0, 212, 255, 0.10), transparent 60%),
    radial-gradient(700px 500px at 88% 22%, rgba(59, 130, 246, 0.10), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(0, 212, 255, 0.05), transparent 60%);
}

/* ==========================================================================
   导航栏
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5, 7, 13, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.site-logo {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.25s ease;
}

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

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.nav-tel svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.nav-tel:hover {
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: clamp(18px, 2.6vw, 26px);
  color: var(--primary);
  letter-spacing: 6px;
  font-weight: 500;
  margin-bottom: 26px;
}

.hero-desc {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  color: #041018;
  background: var(--grad);
  box-shadow: 0 8px 28px rgba(0, 212, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 212, 255, 0.5);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
  animation: scroll-dot 1.6s infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================================
   通用 Section
   ========================================================================== */
.section {
  position: relative;
  z-index: 1;
  padding: 110px 24px;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015) 50%, transparent);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   关于我们
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.about-text b {
  color: var(--text);
  font-weight: 600;
}

.about-points {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

.check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.12);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}

.check::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg) translateY(-1px);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 212, 255, 0.1);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   产品中心
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  padding: 30px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.product-card:hover::before {
  opacity: 0.04;
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0, 212, 255, 0.1);
  margin-bottom: 18px;
  position: relative;
}

.product-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 2px;
  position: relative;
}

.product-card em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  position: relative;
}

.product-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  position: relative;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--primary);
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.06);
  position: relative;
}

/* ==========================================================================
   代理品牌
   ========================================================================== */
.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.brand-card {
  padding: 44px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.brand-logo {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  color: #041018;
  background: var(--grad);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.35);
  letter-spacing: 1px;
}

.brand-logo.da {
  font-size: 18px;
  background: linear-gradient(135deg, #f0f4ff, #c7d2fe);
  color: #1e293b;
  box-shadow: 0 10px 30px rgba(199, 210, 254, 0.25);
}

.brand-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.brand-card em {
  font-style: normal;
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.brand-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 22px;
}

.brand-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.brand-tags li {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* ==========================================================================
   应用领域
   ========================================================================== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.app-item {
  padding: 34px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.app-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.4);
}

.app-num {
  font-size: 34px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 212, 255, 0.4);
  display: block;
  margin-bottom: 10px;
}

.app-item h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.app-item p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   联系我们
   ========================================================================== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card--wide {
  grid-column: 1 / -1;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 212, 255, 0.1);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.contact-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.contact-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.25s ease;
}

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


/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(5, 7, 13, 0.6);
  padding: 48px 24px 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand .site-logo {
  height: 46px;
}

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

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-dim);
  transition: color 0.25s ease;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* ==========================================================================
   滚动显现动画
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px;
    background: rgba(5, 7, 13, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px;
    font-size: 16px;
  }
  .nav-tel {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brand-grid {
    grid-template-columns: 1fr;
  }
  .contact-info {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 100px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .about-cards {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-brand {
    flex-direction: column;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
