:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6eaf0;
  --paper: #ffffff;
  --wash: #f5f7fb;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --header: 68px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

body.is-locked { overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header);
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  margin-right: auto;
}

.brand-logo {
  flex: none;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav { display: flex; gap: 22px; }

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

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

.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--wash);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 28px 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.lead { margin: 0; color: var(--muted); font-size: 17px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: #cbd5e1; }

.hero-visual {
  background: var(--wash);
  border-radius: 16px;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 28px 80px;
  overflow: hidden;
}

.about-watermark {
  position: absolute;
  left: 4%;
  top: 6%;
  z-index: 0;
  margin: 0;
  color: rgba(15, 23, 42, 0.05);
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.about-copy p {
  margin: 0 0 14px;
  color: #334155;
  font-size: 15.5px;
}

.about-copy p:last-child { margin-bottom: 0; }

.about-photo { margin: 0; }

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.products {
  background: var(--wash);
  padding: 72px 28px;
}

.section-head,
.product-grid,
.show-more,
.contact-list {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

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

.section-head h2 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p { margin: 0; color: var(--muted); }

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

.product-card[hidden] { display: none; }

.product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  appearance: none;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: left;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8fafc;
}

.product-meta {
  display: flex;
  align-items: center;
  padding: 10px 14px 12px;
  background: #fff;
  color: var(--ink);
}

.product-code {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product-card:hover { border-color: #dbe3ee; }

.show-more {
  display: flex;
  margin-top: 20px;
}

.show-more[hidden] { display: none; }

.contact { padding: 72px 28px 88px; }

.contact-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.contact-list li:last-child { border-bottom: 0; }

.contact-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: none;
  gap: 8px;
  width: 120px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.contact-label svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--accent);
}

.contact-list p,
.contact-list a {
  margin: 0;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}

.contact-list a:hover { color: var(--accent); }

.float-bar {
  position: fixed;
  z-index: 35;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 84px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.float-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.float-item + .float-item { border-top: 1px solid var(--line); }

.float-item svg { width: 22px; height: 22px; }

.float-item:hover { color: var(--accent-dark); }

.site-footer {
  padding: 20px 28px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer p { margin: 0; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.lightbox[hidden] { display: none; }

.lightbox figure {
  margin: 0;
  max-width: min(1100px, 86vw);
}

.lightbox img {
  max-height: 78vh;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
}

.lightbox figcaption {
  margin-top: 10px;
  color: #fff;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.lightbox-nav {
  width: 40px;
  height: 64px;
  border-radius: 8px;
  font-size: 32px;
}

@media (max-width: 960px) {
  .hero,
  .about-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-watermark { top: 0; font-size: 64px; }
}

@media (max-width: 720px) {
  .site-header { padding: 0 16px; gap: 10px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .hero, .about, .products, .contact { padding-left: 16px; padding-right: 16px; }
  .contact-list li { flex-direction: column; gap: 4px; }
  .contact-label { width: auto; }
  .hero { padding-top: 36px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .float-bar {
    top: auto;
    bottom: 12px;
    right: 12px;
    transform: none;
    display: flex;
    width: auto;
    border-radius: 999px;
  }
  .float-item { width: auto; padding: 10px 12px; }
  .float-item span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .float-item + .float-item { border-top: 0; border-left: 1px solid var(--line); }
  .lightbox-nav { display: none; }
}
