/* 乾硕科技 · 3D打印耗材官网 */

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --accent: #6366f1;
  --accent-2: #ec4899;
  --accent-3: #06b6d4;
  --gradient-hero: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f97316 100%);
  --gradient-card: linear-gradient(145deg, rgba(99,102,241,0.15), rgba(236,72,153,0.08));
  --radius: 16px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#layer-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10,10,15,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

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

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

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher select {
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  max-width: 180px;
}

.lang-switcher select:focus {
  outline: none;
  border-color: var(--accent);
}

body.rtl { direction: rtl; }
body.rtl .header-inner,
body.rtl .hero-grid,
body.rtl .oem-grid,
body.rtl .contact-grid { direction: rtl; }
body.rtl .oem-list li { padding-left: 0; padding-right: 24px; }
body.rtl .oem-list li::before { left: auto; right: 0; content: '←'; }
body.rtl .contact-card:hover { transform: translateX(-4px); }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.logo-icon {
  width: 46px;
  height: auto;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(99, 102, 241, 0.35));
}

.logo-icon-sm {
  width: 36px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: #fff;
}

.logo-text > span {
  color: #fff;
}

.logo-text small {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.92;
}

/* PC 外文：仅显示 QSENCE TECH（更大） */
@media (min-width: 901px) {
  body:not(.brand-bilingual) .logo-name {
    display: none !important;
  }

  body:not(.brand-bilingual) .site-header .logo-sub {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.18em;
    opacity: 1;
  }

  body:not(.brand-bilingual) .footer-brand-text .logo-sub {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.16em;
    opacity: 1;
  }
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* 产品导航下拉（全站共享） */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-item-dropdown > a::after {
  content: '▾';
  font-size: 10px;
  opacity: 0.6;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  padding-top: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 1100;
}

.nav-item-dropdown.open .nav-dropdown,
.nav-item-dropdown:hover .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted) !important;
  font-size: 13px !important;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text) !important;
}

.nav-dropdown .dd-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

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

.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 8px 32px rgba(99,102,241,0.35);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-full { width: 100%; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 60px) 0 80px;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 100px;
  font-size: 13px;
  color: #a5b4fc;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

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

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

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero visual - abstract 3D printer */
.hero-visual {
  position: relative;
  height: 480px;
}

.printer-scene {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  margin: 0 auto;
}

/* Printer frame */
.printer-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.frame-post {
  position: absolute;
  width: 6px;
  background: linear-gradient(180deg, rgba(99,102,241,0.5), rgba(99,102,241,0.15));
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(99,102,241,0.2);
}

.frame-post-bl { bottom: 72px; left: 18%; height: 280px; }
.frame-post-br { bottom: 72px; right: 18%; height: 280px; }
.frame-post-fl { bottom: 72px; left: 22%; height: 260px; opacity: 0.35; width: 4px; }
.frame-post-fr { bottom: 72px; right: 22%; height: 260px; opacity: 0.35; width: 4px; }

.frame-beam {
  position: absolute;
  top: 48px;
  left: 18%;
  right: 18%;
  height: 6px;
  background: linear-gradient(90deg, rgba(99,102,241,0.2), rgba(99,102,241,0.6), rgba(99,102,241,0.2));
  border-radius: 3px;
}

.frame-beam-front {
  top: 54px;
  left: 22%;
  right: 22%;
  height: 3px;
  opacity: 0.4;
}

/* Print chamber & bed */
.print-chamber {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 240px;
  perspective: 600px;
  z-index: 1;
}

.gantry-zone {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.gantry-rail {
  position: absolute;
  top: auto;
  bottom: calc(118px + var(--head-z, 0px));
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(236,72,153,0.45);
  box-shadow: 0 0 8px rgba(236,72,153,0.35);
  transition: bottom 0.15s ease;
}

.print-head {
  position: absolute;
  top: auto;
  bottom: calc(102px + var(--head-z, 0px));
  left: 50%;
  transform: translateX(calc(-50% + var(--head-x, 0px)));
  z-index: 5;
  will-change: transform;
  transition: bottom 0.15s ease;
}

.print-head-block {
  width: 28px;
  height: 18px;
  background: linear-gradient(145deg, #2a2a38, #1a1a24);
  border: 1px solid rgba(99,102,241,0.4);
  border-radius: 4px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.nozzle-assembly {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nozzle-tip {
  width: 8px;
  height: 14px;
  background: linear-gradient(180deg, #888, #444);
  border-radius: 0 0 3px 3px;
  margin-top: 2px;
}

.nozzle-tip::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: #f97316;
  border-radius: 50%;
  margin: 2px auto 0;
  box-shadow: 0 0 12px #f97316, 0 0 24px rgba(249,115,22,0.6);
  animation: extrudePulse 0.8s ease-in-out infinite;
}

.extrusion-glow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: var(--extrusion-h, 0px);
  background: linear-gradient(180deg, rgba(249,115,22,0.9), rgba(249,115,22,0));
  border-radius: 2px;
  opacity: 0.7;
  transition: height 0.15s ease;
}

@keyframes extrudePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.print-bed {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotateX(52deg);
  transform-origin: center bottom;
  width: 220px;
  height: 200px;
  background: linear-gradient(145deg, #1a1a24, #0e0e14);
  border: 2px solid rgba(99,102,241,0.35);
  border-radius: 10px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.5),
    inset 0 0 40px rgba(99,102,241,0.06);
}

.bed-grid {
  position: absolute;
  inset: 8px;
  background-image:
    linear-gradient(rgba(99,102,241,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.22) 1px, transparent 1px);
  background-size: 14px 14px;
  border-radius: 6px;
  opacity: 0.85;
}

.bed-edge-front {
  position: absolute;
  bottom: -4px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: rgba(99,102,241,0.25);
  border-radius: 0 0 4px 4px;
}

.layer-stack {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  align-items: center;
  gap: 2px;
}

.layer {
  height: 7px;
  border-radius: 2px;
  flex-shrink: 0;
  transform-origin: center;
  animation: layerDeposit 0.35s ease-out backwards;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.layer.printing {
  animation: layerPrint 0.4s ease-out forwards;
}

@keyframes layerDeposit {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 0.92; }
}

@keyframes layerPrint {
  0% { transform: scaleX(0); opacity: 0; filter: brightness(1.4); }
  100% { transform: scaleX(1); opacity: 0.92; filter: brightness(1); }
}

/* Filament feed */
.filament-feed {
  position: absolute;
  top: 20px;
  right: 8%;
  width: 56px;
  height: 140px;
  z-index: 1;
}

.feed-spool {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 6px solid #2a2a35;
  background: conic-gradient(#6366f1, #ec4899, #f97316, #06b6d4, #6366f1);
  box-shadow: inset 0 0 16px rgba(0,0,0,0.4), 0 6px 20px rgba(0,0,0,0.3);
  animation: spoolSpin 6s linear infinite;
  margin: 0 auto;
}

.feed-path {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 80px;
  opacity: 0.5;
}

/* Print status HUD */
.print-status {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(18,18,26,0.85);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.5s infinite;
}

.status-layer {
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

@keyframes spoolSpin {
  to { transform: rotate(360deg); }
}

.floating-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tag {
  position: absolute;
  padding: 8px 14px;
  background: rgba(22,22,31,0.9);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  animation: float 5s ease-in-out infinite;
}

.tag-pla { top: 10%; left: 0; color: #f72585; animation-delay: 0s; }
.tag-petg { top: 30%; right: -10px; color: #06b6d4; animation-delay: -1s; }
.tag-cf { bottom: 40%; left: -20px; color: #a78bfa; animation-delay: -2s; }
.tag-tpu { bottom: 15%; right: 10%; color: #34d399; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Notice bar */
.notice-bar {
  position: relative;
  z-index: 1;
  padding: 16px 0;
  background: rgba(99,102,241,0.08);
  border-top: 1px solid rgba(99,102,241,0.15);
  border-bottom: 1px solid rgba(99,102,241,0.15);
}

.notice-bar p {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.notice-bar strong { color: #a5b4fc; }

/* Section head */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head.light .section-label,
.section-head.light h2,
.section-head.light p { color: inherit; }

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

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

/* Categories */
.categories {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.tab-btn.active {
  background: var(--gradient-hero);
  border-color: transparent;
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

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

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  border-color: rgba(99,102,241,0.3);
}

.product-card-header {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #ececee;
}

.product-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

.product-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 75%, var(--bg-card));
  pointer-events: none;
}

.product-card-body {
  padding: 24px;
}

.product-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-tagline {
  font-size: 13px;
  color: var(--accent-3);
  font-weight: 500;
  margin-bottom: 12px;
}

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

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.spec-chip {
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  font-size: 11px;
}

.spec-chip strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.spec-chip span { color: var(--text-muted); }

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tag {
  padding: 4px 10px;
  background: rgba(99,102,241,0.12);
  border-radius: 100px;
  font-size: 11px;
  color: #a5b4fc;
  font-weight: 500;
}

/* Color showcase */
.color-showcase {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #0f0f18 50%, var(--bg) 100%);
}

.color-catalog {
  margin-bottom: 48px;
}

.color-material-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.color-mat-tab {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.color-mat-tab:hover {
  color: var(--text);
  border-color: rgba(99,102,241,0.35);
}

.color-mat-tab.active {
  background: var(--gradient-hero);
  border-color: transparent;
  color: #fff;
}

.color-catalog-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.color-catalog-head h3 {
  font-size: 22px;
  font-weight: 600;
}

.color-catalog-count {
  font-size: 13px;
  color: var(--text-muted);
}

.color-catalog-grid {
  max-width: 960px;
  margin: 0 auto 16px;
}

/* 色彩色块（首页 + 产品页共用） */
.prod-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 16px 12px;
  margin-bottom: 28px;
}

.prod-color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.prod-color-name {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  word-break: keep-all;
}

.prod-color-swatch {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.08),
    0 4px 12px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.prod-color-swatch-light {
  border-color: rgba(255,255,255,0.22);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.06),
    0 4px 12px rgba(0,0,0,0.2);
}

.color-catalog-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.color-catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 24px 0;
}

.effect-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.effect-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s;
}

.effect-card:hover { transform: translateY(-4px); }

.effect-preview {
  height: 100px;
}

.effect-silk { background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff); }
.effect-glow { background: radial-gradient(circle at 30% 30%, #d8f3dc, #1b4332 70%); }
.effect-marble { background: linear-gradient(45deg, #ced4da 25%, #495057 25%, #495057 50%, #ced4da 50%); background-size: 20px 20px; }
.effect-cf { background: repeating-linear-gradient(45deg, #212529, #212529 4px, #343a40 4px, #343a40 8px); }

.effect-card h3 {
  padding: 16px 20px 4px;
  font-size: 16px;
}

.effect-card p {
  padding: 0 20px 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Capabilities */
.capabilities {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.cap-card {
  padding: 32px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.cap-card:hover { border-color: rgba(99,102,241,0.4); }

.cap-icon {
  font-size: 32px;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.cap-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

.spec-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-item {
  padding: 24px 32px;
  background: var(--bg-card);
  text-align: center;
}

.spec-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spec-value {
  font-size: 18px;
  font-weight: 600;
}

/* OEM */
.oem {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, rgba(236,72,153,0.04) 100%);
}

.oem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.oem-content h2 {
  font-size: 2rem;
  margin: 12px 0 24px;
}

.oem-list {
  list-style: none;
  margin-bottom: 32px;
}

.oem-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 15px;
}

.oem-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.oem-spool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.oem-spool {
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--c1), var(--c2), var(--c1));
  border: 12px solid #2a2a35;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  animation: spoolSpin 12s linear infinite;
}

.oem-spool:nth-child(2) { animation-delay: -3s; }
.oem-spool:nth-child(3) { animation-delay: -6s; }
.oem-spool:nth-child(4) { animation-delay: -9s; }

/* Contact */
.contact {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  margin: 12px 0 16px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: block;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.contact-card:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateX(4px);
}

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

.contact-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.contact-card-emails .contact-email-link {
  display: block;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-card-emails .contact-email-link + .contact-email-link {
  margin-top: 6px;
}

.contact-card-emails .contact-email-link:hover {
  color: var(--accent);
}

.contact-qr-block {
  margin-top: 28px;
}

.contact-qr-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.contact-qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 420px;
}

.contact-qr-item {
  margin: 0;
  text-align: center;
}

.contact-qr-img-wrap {
  padding: 10px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.contact-qr-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 4px;
}

.contact-qr-item figcaption {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.2s;
}

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

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.form-status {
  font-size: 13px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  line-height: 1.5;
}

.form-status-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.form-status-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

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

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

.footer-brand strong { display: block; color: #fff; }
.footer-brand-text span { display: block; font-size: 11px; color: #fff; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }

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

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .oem-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual { height: 360px; order: -1; }

  .printer-scene { max-width: 340px; transform: scale(0.92); transform-origin: center top; }
  .filament-feed { right: 2%; transform: scale(0.85); transform-origin: top right; }
  .frame-post-bl, .frame-post-br { height: 220px; }
  .frame-post-fl, .frame-post-fr { height: 200px; }
  .print-chamber { width: 220px; height: 200px; }
  .print-bed { width: 190px; height: 170px; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    padding: 24px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }

  .nav.open { display: flex; }

  .nav-item-dropdown {
    width: 100%;
  }

  .nav-item-dropdown > a {
    width: 100%;
    padding: 10px 0;
    justify-content: space-between;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 12px 8px;
    background: transparent;
    display: none !important;
    min-width: 0;
    width: 100%;
  }

  .nav-item-dropdown.open .nav-dropdown {
    display: block !important;
  }

  .nav-dropdown a {
    white-space: normal;
    padding: 12px 14px;
  }

  .nav-dropdown .nav-dd-all {
    font-weight: 600;
    color: var(--text) !important;
  }

  .nav-toggle { display: flex; }

  .header-cta { display: none; }

  .header-actions { gap: 8px; }

  .lang-switcher select { max-width: 140px; font-size: 12px; }

  .form-row { grid-template-columns: 1fr; }
}

/* 右下角联系图标 · 竖排 */
.contact-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + 1cm);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
}

.contact-float-item {
  position: relative;
  pointer-events: auto;
}

.contact-float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.contact-float-icon:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.contact-float-icon-wa {
  background: linear-gradient(145deg, #25d366, #128c7e);
}

.contact-float-icon-wechat {
  background: linear-gradient(145deg, #07c160, #059a4c);
}

.contact-float-icon-zalo {
  background: linear-gradient(145deg, #0068ff, #004ecb);
}

.contact-float-qr {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  width: 184px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(8px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
  z-index: 1001;
}

.contact-float-qr::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.08);
}

.contact-float-qr img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 196px;
  object-fit: contain;
  border-radius: 6px;
}

.contact-float-qr-zalo {
  width: 204px;
}

.contact-float-item-zalo .contact-float-qr {
  top: auto;
  bottom: 0;
  transform: translateY(0) translateX(8px) scale(0.96);
}

.contact-float-item-zalo:hover .contact-float-qr,
.contact-float-item-zalo:focus-within .contact-float-qr {
  transform: translateY(0) translateX(0) scale(1);
}

.contact-float-item-zalo .contact-float-qr::after {
  top: auto;
  bottom: 14px;
  transform: rotate(45deg);
}

.contact-float-qr-tip {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.3;
}

.contact-float-item:hover .contact-float-qr,
.contact-float-item:focus-within .contact-float-qr {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0) scale(1);
}

@media (max-width: 480px) {
  .contact-float {
    right: 12px;
    bottom: calc(12px + 1cm);
    gap: 8px;
  }

  .contact-float-icon {
    width: 40px;
    height: 40px;
  }

  .contact-float-qr {
    right: calc(100% + 8px);
    width: 160px;
  }
}

@media (max-width: 600px) {
  .hero-stats { gap: 24px; }
  .stat strong { font-size: 22px; }
  .product-grid { grid-template-columns: 1fr; }
}

/* 竖屏移动端 · 整体优化 */
@media (max-width: 768px) {
  :root {
    --header-h: 58px;
  }

  .container {
    width: min(1200px, 94vw);
  }

  /* 移动端仅显示 Logo 图标，隐藏公司名 */
  .site-header .logo-text {
    display: none;
  }

  .site-header .logo-icon {
    width: 42px;
  }

  .site-header .logo {
    gap: 0;
    min-width: 42px;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 28px) 0 56px;
  }

  .hero-visual {
    height: 300px;
    margin-bottom: 8px;
  }

  .printer-scene {
    max-width: 300px;
    transform: scale(0.88);
    transform-origin: center top;
  }

  .filament-feed {
    transform: scale(0.78);
    transform-origin: top right;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7.5vw, 2.35rem);
    margin-bottom: 16px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 12px;
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 15px;
    max-width: none;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
  }

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

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

  .hero-scroll {
    display: none;
  }

  .notice-bar {
    padding: 12px 0;
  }

  .notice-bar p {
    font-size: 13px;
    line-height: 1.55;
    padding: 0 4px;
  }

  .categories,
  .capabilities,
  .oem,
  .contact,
  .blog-teaser {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .section-head p {
    font-size: 14px;
  }

  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    margin-bottom: 28px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
    font-size: 13px;
    padding: 8px 16px;
  }

  .cap-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .spec-banner {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .spec-item {
    padding: 14px 12px;
  }

  .oem-spool-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contact-grid {
    gap: 32px;
  }

  .contact-qr-grid {
    max-width: none;
    gap: 10px;
  }

  .contact-qr-img-wrap {
    padding: 8px;
  }

  .contact-form {
    padding: 20px 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }

  .footer-copy {
    font-size: 12px;
    line-height: 1.6;
  }

  .contact-float {
    right: 10px;
    bottom: max(calc(12px + 1cm), env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 54px;
  }

  .lang-switcher select {
    max-width: 110px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .hero-visual {
    height: 260px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 14px;
  }

  .stat strong {
    font-size: 20px;
  }

  .spec-banner {
    grid-template-columns: 1fr;
  }

  .product-card-header {
    height: 180px;
  }

  .product-card-body {
    padding: 18px;
  }

  .btn {
    padding: 12px 22px;
  }
}
