/* =========================================================
   嘉兴市卓显科技有限公司 — 企业官网样式
   科技感：深蓝黑底 + 青色点缀
   ========================================================= */

:root {
  --bg: #070b14;
  --bg-elevated: #0d1424;
  --bg-card: #111a2e;
  --bg-card-hover: #162038;
  --border: rgba(120, 160, 255, 0.12);
  --border-strong: rgba(80, 220, 220, 0.35);
  --text: #e8eefc;
  --text-muted: #93a0bf;
  --text-dim: #6b7898;
  --accent: #2ee6d6;
  --accent-2: #4d8dff;
  --accent-glow: rgba(46, 230, 214, 0.35);
  --warning: #ffb020;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 11, 20, 0.94);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041018;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.logo-mark.sm {
  width: 36px;
  height: 36px;
  font-size: 12px;
  border-radius: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong { font-size: 16px; font-weight: 700; }
.logo-text small {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

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

.nav a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-cta {
  background: linear-gradient(135deg, rgba(46,230,214,0.15), rgba(77,141,255,0.15)) !important;
  color: var(--accent) !important;
  border: 1px solid var(--border-strong);
  margin-left: 8px;
}

.nav-cta:hover {
  background: linear-gradient(135deg, rgba(46,230,214,0.25), rgba(77,141,255,0.25)) !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: 0.25s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1bb8c9);
  color: #041018;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(77, 141, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(46, 230, 214, 0.12), transparent 50%),
    linear-gradient(180deg, #0a1222 0%, var(--bg) 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120,160,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.6;
}

.hero-content { position: relative; max-width: 780px; }

.hero-eyebrow,
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.hero-stats span {
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Product nav bar ---------- */
.product-nav-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(13, 20, 36, 0.92);
  backdrop-filter: blur(12px);
  border-block: 1px solid var(--border);
}

.product-nav-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-nav-scroll::-webkit-scrollbar { display: none; }

.pn-item {
  flex: 0 0 auto;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: 0.2s;
}

.pn-item:hover,
.pn-item.active {
  color: var(--accent);
  border-color: var(--border-strong);
  background: rgba(46, 230, 214, 0.08);
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header.light .section-desc { color: #b8c4e0; }

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

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

/* ---------- Products ---------- */
.product-group + .product-group {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.group-title {
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
}

.group-title h3 {
  font-size: 24px;
  font-weight: 800;
}

.group-title p {
  color: var(--text-dim);
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card.featured {
  border-color: rgba(46, 230, 214, 0.28);
}

.card-visual {
  position: relative;
  height: 220px;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 80%, rgba(46,230,214,0.08), transparent 55%),
    linear-gradient(160deg, #0a1528, #121c32);
  border-bottom: 1px solid var(--border);
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover .card-visual img {
  transform: scale(1.04);
}

.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(77, 141, 255, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
}

.card-body h4 {
  font-size: 18px;
  font-weight: 700;
}

.card-body > p {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
}

.specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

.specs li {
  padding-left: 14px;
  position: relative;
}

.specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

.card-link:hover { text-decoration: underline; }

.more-note {
  margin-top: 28px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* ---------- Scenarios ---------- */
.scenarios {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(77,141,255,0.12), transparent 60%),
    var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.scenario-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.scenario-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.sc-icon {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1;
}

.scenario-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.scenario-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.sc-products {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Advantages ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.adv-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.adv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.6;
}

.adv-num {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: rgba(46, 230, 214, 0.25);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.adv-card h4 {
  font-size: 17px;
  margin-bottom: 10px;
}

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

/* ---------- About ---------- */
.about {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.about-copy h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 20px;
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.about-copy strong { color: var(--text); }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.about-tags li {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--accent);
  background: rgba(46, 230, 214, 0.06);
}

.about-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
}

.panel-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.panel-item:last-child { border-bottom: none; }

.panel-item strong {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.panel-item span {
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.contact-info {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.info-block h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.info-block p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  font-size: 14px;
}

.info-list .label {
  color: var(--text-dim);
  font-weight: 500;
}

.info-list .value.placeholder {
  color: var(--warning);
  font-size: 13px;
}

.hint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

.contact-form {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
}

.form-row textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 13px;
  color: var(--accent);
  text-align: center;
  padding: 8px;
  background: rgba(46, 230, 214, 0.08);
  border-radius: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
  background: #050810;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.footer-brand strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.footer-brand p {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

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

.copyright {
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .product-grid,
  .product-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    background: rgba(7, 11, 20, 0.98);
    border-bottom: 1px solid var(--border);
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 16px;
    font-size: 16px;
  }

  .nav-cta { margin-left: 0; text-align: center; }

  .hero { padding: 48px 0 64px; }

  .hero-stats { gap: 20px 28px; }

  .section { padding: 64px 0; }

  .product-grid,
  .product-grid.cols-2,
  .scenario-grid,
  .adv-grid {
    grid-template-columns: 1fr;
  }

  .card-visual { height: 200px; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 28px, var(--container)); }

  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }

  .info-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.img-credit {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* ---------- Software solutions ---------- */
.software {
  background: var(--bg);
}

.software-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.software-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.software-card.reverse {
  direction: rtl;
}

.software-card.reverse > * {
  direction: ltr;
}

.software-visual {
  min-height: 260px;
  background: #0a1528;
}

.software-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 260px;
}

.software-body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.software-body h3 {
  font-size: 22px;
  font-weight: 800;
}

.software-body > p {
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .software-card,
  .software-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .software-visual img { min-height: 200px; max-height: 280px; }
}


/* ---------- Product card image fit (full device visible) ---------- */
.card-visual--fit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background:
    radial-gradient(circle at 50% 70%, rgba(46,230,214,0.07), transparent 55%),
    linear-gradient(160deg, #0a1528, #0e182c);
}

.card-visual--fit img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.card-visual--tall {
  height: 320px;
}

.card-visual--wide {
  height: 260px;
}

.product-card:hover .card-visual--fit img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .card-visual--tall { height: 280px; }
  .card-visual--wide { height: 220px; }
}

/* Badge over fit visuals */
.card-visual .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #041018;
  background: linear-gradient(135deg, var(--accent), #1bb8c9);
  border-radius: 999px;
}

/* ---------- Quote secondary page ---------- */
.quote-page .quote-hero {
  padding: 48px 0 28px;
  background:
    radial-gradient(ellipse 70% 50% at 30% 0%, rgba(77, 141, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #0a1222 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.quote-page .quote-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.quote-hero-desc {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 15px;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.back-link:hover { text-decoration: underline; }

.quote-section {
  padding-top: 40px;
}

.quote-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.quote-home-btn {
  margin-top: 20px;
  width: 100%;
}

.quote-form .req {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 980px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }
}

.copyright.icp a{color:inherit;text-decoration:none}
.copyright.icp a:hover{text-decoration:underline}
