/* Precision Industrial — Static Corporate Site */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --text: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --accent: #0EA5E9;
  --accent-hover: #0284C7;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --amber: #F59E0B;
  --success: #059669;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --font-display: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1280px;
  --nav-height: 72px;
}

[data-theme="dark"] {
  --bg: #0B1120;
  --surface: #111827;
  --surface-2: #1F2937;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --border: #334155;
  --accent: #38BDF8;
  --accent-hover: #0EA5E9;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-title { font-size: clamp(28px, 4vw, 36px); font-weight: 700; margin-bottom: 8px; }
.section-sub { color: var(--text-muted); font-size: 16px; max-width: 560px; margin-bottom: 40px; }
.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 18px; max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { opacity: 0.8; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
[hidden] { display: none !important; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
html[lang="zh-CN"] .logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.site-header .logo { line-height: 1.1; }
.logo span { color: var(--accent); }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.icon-btn:hover { border-color: var(--accent); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--surface);
  padding: 24px;
  z-index: 150;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.mobile-nav a.active { color: var(--accent); }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 80px;
  background:
    linear-gradient(135deg, var(--accent-soft) 0%, transparent 55%),
    repeating-linear-gradient(90deg, transparent, transparent 79px, var(--border) 79px, var(--border) 80px),
    repeating-linear-gradient(0deg, transparent, transparent 79px, var(--border) 79px, var(--border) 80px);
  background-size: auto, 80px 80px, 80px 80px;
}
.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero-desc { color: var(--text-muted); font-size: 17px; margin-bottom: 28px; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Legacy placeholder — kept for fallback */
.device-mock {
  width: 58%;
  height: 38%;
  background: linear-gradient(180deg, #475569 0%, #1E293B 100%);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  position: relative;
}
.device-mock::after {
  content: '';
  position: absolute;
  top: 12%;
  left: 8%;
  right: 8%;
  height: 8%;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.8;
}
.device-mock.printer { width: 50%; height: 45%; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-sm); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 56px; }
  .hero-visual { max-height: 280px; }
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-top: -40px;
  position: relative;
  z-index: 1;
}
.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 700px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--surface-2); }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-grid.cols-2 { grid-template-columns: 1fr; }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .card-grid.cols-4 { grid-template-columns: 1fr; }
}

/* Product cards */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.product-thumb {
  aspect-ratio: 4/3;
  background: var(--surface-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-thumb .device-mock { width: 45%; height: 50%; }
.product-body { padding: 20px 24px 24px; }
.product-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 6px;
}
.product-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.product-body p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filter-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  color: var(--text-muted);
}
.filter-tab:hover,
.filter-tab.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* CTA banner */
.cta-banner {
  margin: 0 0 80px;
  padding: 48px;
  border-radius: var(--radius-xl);
  background: var(--text);
  color: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin-bottom: 8px; }
.cta-banner p { font-size: 15px; opacity: 0.8; max-width: 480px; }

/* Cert badges */
.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cert-badge {
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* News list */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.news-item:first-child { border-top: 1px solid var(--border); }
.news-item:hover { color: var(--accent); }
.news-date { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.news-item h3 { font-size: 16px; font-weight: 600; }
.news-arrow { color: var(--text-muted); font-size: 18px; }

@media (max-width: 600px) {
  .news-item { grid-template-columns: 1fr; gap: 8px; }
}

/* Product detail */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span[aria-hidden="true"] {
  color: var(--border);
}
#breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.product-gallery {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 24px;
}
.product-gallery .device-mock { width: 55%; height: 45%; }
.product-info h1 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 8px; }
.product-sku {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
}
.product-info > p { color: var(--text-muted); margin-bottom: 24px; }
.feature-list { margin-bottom: 28px; }
.feature-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 14px;
  color: var(--text-muted);
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 32px;
}
.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  font-weight: 600;
  width: 35%;
  color: var(--text-muted);
  background: var(--surface-2);
}
.spec-table tr:last-child td,
.spec-table tr:last-child th { border-bottom: none; }

@media (max-width: 800px) {
  .product-detail-grid { grid-template-columns: 1fr; }
}

/* About timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 4px;
}
.timeline-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.timeline-item p { font-size: 14px; color: var(--text-muted); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info-block { margin-bottom: 32px; }
.contact-info-block h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.contact-info-block p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.contact-info-block a { color: var(--accent); }
.contact-info-block a:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  background: var(--text);
  color: var(--bg);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; opacity: 0.7; margin-top: 12px; max-width: 280px; line-height: 1.6; }
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  opacity: 0.85;
  padding: 4px 0;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  opacity: 0.6;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Utilities */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
