:root {
  --ink: #17202a;
  --muted: #5f6b7a;
  --line: #e4e9ef;
  --soft: #f6f8fb;
  --panel: #ffffff;
  --brand: #0878a7;
  --brand-2: #12a48b;
  --accent: #f4a321;
  --dark: #111827;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(228, 233, 239, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  color: #263341;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 22px;
}

.section {
  padding: 84px 0;
}

.section.soft {
  background: var(--soft);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 20px;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 760px;
}

.hero {
  padding: 88px 0 64px;
  background:
    linear-gradient(120deg, rgba(17, 24, 39, 0.95), rgba(8, 120, 167, 0.82)),
    url("wafer-marking.jpg") center / cover;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 46px;
  align-items: center;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.82);
}

.hero-media {
  border-radius: var(--radius);
}

.hero-media img {
  width: min(500px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.22));
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  background: var(--brand);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--brand);
  border-color: rgba(255, 255, 255, 0.55);
}

.button.ghost {
  color: var(--brand);
  background: transparent;
  border-color: var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 46px;
}

.stat {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding-top: 16px;
}

.stat strong {
  display: block;
  font-size: 28px;
}

.stat span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.card p,
.card ul {
  margin: 14px 0 0;
  color: var(--muted);
}

.card ul {
  padding-left: 20px;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: center;
  min-height: 250px;
}

.product-card img {
  width: 190px;
  max-height: 190px;
  object-fit: contain;
  margin-left: auto;
}

.grid.three .product-card {
  grid-template-columns: 1fr;
  align-items: start;
}

.grid.three .product-card img {
  width: 100%;
  max-height: 160px;
  margin: 10px auto 0;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef8f7;
  color: #0d6f65;
  font-size: 13px;
  font-weight: 700;
}

.page-hero {
  padding: 74px 0 52px;
  background: linear-gradient(120deg, #f6f8fb, #e9f7f5);
  border-bottom: 1px solid var(--line);
}

.page-hero.dark {
  color: #fff;
  background:
    linear-gradient(120deg, rgba(17, 24, 39, 0.95), rgba(8, 120, 167, 0.88)),
    url("wafer-marking.jpg") center / cover;
}

.page-hero.dark .lead {
  color: rgba(255, 255, 255, 0.82);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 42px;
  align-items: center;
}

.split > *,
.grid > * {
  min-width: 0;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.feature-pill {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 800;
  color: #263341;
}

.spec-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.spec-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-label {
  padding: 18px;
  background: #f8fafc;
  font-weight: 800;
  border-right: 1px solid var(--line);
}

.spec-value {
  padding: 18px;
  color: var(--muted);
}

.function-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 26px;
}

.function-visual {
  display: grid;
  gap: 18px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.function-visual h3 {
  margin: 4px 0 10px;
  font-size: clamp(20px, 2vw, 25px);
}

.function-visual p {
  margin: 0;
  color: var(--muted);
}

.feature-diagram {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.feature-diagram svg {
  display: block;
  width: 100%;
  min-width: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.feature-diagram text {
  fill: #334155;
  font-size: 17px;
  font-weight: 800;
}

.feature-diagram .small {
  fill: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.aod-work-diagram {
  margin-top: 22px;
}

.image-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.clean-product-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.product-hero-image {
  width: min(520px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 18px 28px rgba(17, 24, 39, 0.16));
}

.system-structure-panel img {
  width: min(760px, 100%);
  margin: 0 auto;
}

.caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.simulator-frame-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
  overflow: hidden;
}

.simulator-frame {
  width: 100%;
  min-height: 1120px;
  border: 0;
  background: #f8fafc;
}

.optic-view {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
  overflow: hidden;
}

.optic-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.optic-toolbar strong,
.optic-toolbar span {
  display: block;
}

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

.optic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.optic-tags span {
  padding: 5px 9px;
  border: 1px solid #cdeee9;
  border-radius: 999px;
  color: #0d6f65;
  background: #eef8f7;
  font-size: 12px;
  font-weight: 800;
}

.optic-sim-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.optic-controls {
  display: grid;
  gap: 16px;
  align-content: start;
}

.control-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 16px;
}

.control-group h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.range-control {
  display: block;
  margin-top: 14px;
}

.range-control span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

.range-control b {
  color: var(--ink);
}

.range-control output {
  color: #0d6f65;
  font-weight: 800;
  white-space: nowrap;
}

.range-control input {
  width: 100%;
  accent-color: #0d9488;
}

.optic-stage {
  min-width: 0;
}

.optic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  gap: 20px;
  padding: 22px;
}

.optic-diagram {
  overflow-x: auto;
}

.optic-diagram svg {
  width: 100%;
  min-width: 720px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.optic-diagram text {
  fill: #334155;
  font-size: 15px;
  font-weight: 800;
}

.optic-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 20px;
}

.optic-side ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.optic-side li + li {
  margin-top: 12px;
}

.optic-side strong {
  color: var(--ink);
}

.optic-spot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 0 22px 22px;
}

.spot-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 18px;
}

.spot-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.spot-plane {
  position: relative;
  height: 220px;
  margin-top: 14px;
  border: 1px solid #dbe4ed;
  border-radius: var(--radius);
  background:
    linear-gradient(#eef2f6 1px, transparent 1px),
    linear-gradient(90deg, #eef2f6 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
}

.spot-axis {
  position: absolute;
  background: #cbd5e1;
}

.spot-axis.x {
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1px;
}

.spot-axis.y {
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1px;
}

.spot-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.12), 0 0 22px rgba(16, 185, 129, 0.55);
}

.dot-a {
  left: 50%;
  top: 50%;
}

.dot-b {
  left: 50%;
  top: 50%;
  opacity: 0.7;
  background: #38bdf8;
  box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.12), 0 0 18px rgba(56, 189, 248, 0.45);
}

.dot-c {
  left: 50%;
  top: 50%;
  opacity: 0.45;
  background: #6366f1;
  box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.12), 0 0 18px rgba(99, 102, 241, 0.45);
}

.timing-panel {
  display: grid;
  gap: 16px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #dbe4ed;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, #e8eef5 0 1px, transparent 1px 48px),
    #fff;
}

.timing-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.timing-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.timing-row i {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.28);
}

.timing-row [data-timing="data"] {
  background: #38bdf8;
}

.timing-row [data-timing="latch"] {
  background: #6366f1;
}

.beam-3d {
  position: relative;
  height: 220px;
  margin-top: 14px;
  border: 1px solid #dbe4ed;
  border-radius: var(--radius);
  background: radial-gradient(circle at 72% 50%, #ecfeff, #f8fafc 58%);
  overflow: hidden;
}

.beam-line {
  position: absolute;
  height: 4px;
  left: 22px;
  right: 64px;
  top: 50%;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), #10b981);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.5);
}

.beam-a {
  transform: rotate(-13deg);
}

.beam-b {
  transform: rotate(13deg);
}

.beam-lens {
  position: absolute;
  right: 64px;
  top: 36px;
  width: 28px;
  height: 148px;
  border-radius: 50%;
  border: 2px solid #60a5fa;
  background: rgba(191, 219, 254, 0.42);
}

.beam-focus {
  position: absolute;
  right: 42px;
  top: calc(50% - 9px);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.12), 0 0 24px rgba(16, 185, 129, 0.65);
}

.comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.downloads {
  display: grid;
  gap: 14px;
}

.download-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.download-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.timeline {
  border-left: 3px solid var(--brand);
  padding-left: 24px;
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline-year {
  color: var(--brand);
  font-weight: 900;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card strong {
  display: block;
  margin-bottom: 8px;
}

.mode-page {
  background: #111827;
  color: #e5edf5;
}

.mode-page .site-header {
  background: rgba(17, 24, 39, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.mode-page .brand,
.mode-page .nav-links {
  color: #fff;
}

.mode-panel {
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}

.mode-panel h2 {
  font-size: 26px;
  color: #f9c74f;
}

.mode-panel p {
  color: #cbd5e1;
}

.mode-canvas {
  width: 100%;
  height: auto;
  background: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.highlight {
  color: #ff6b6b;
  font-weight: 800;
}

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.74);
  padding: 28px 0;
  font-size: 13px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

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

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding: 0 0 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-grid,
  .split,
  .grid.two,
  .grid.three,
  .grid.four,
  .product-card,
  .contact-grid,
  .function-visual-grid,
  .optic-sim-grid,
  .optic-layout,
  .optic-spot-grid {
    grid-template-columns: 1fr;
  }

  .product-card img {
    margin: 0;
  }

  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    display: block;
  }

  .optic-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .optic-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 58px 0;
  }

  .hero {
    padding: 62px 0 46px;
  }

  .simulator-frame {
    min-height: 1680px;
  }

  .stats,
  .comparison,
  .download-item,
  .spec-row {
    grid-template-columns: 1fr;
  }

  .arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }

  .spec-label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
