:root {
  --ink: #2b3641;
  --ink-soft: #46525f;
  --muted: #7c8794;
  --paper: #ffffff;
  --paper-warm: #f3f4f6;
  --accent: #0abf7a;
  --accent-hover: #08a86a;
  --line: #e7eaee;
  --white: #ffffff;
  --nav-bg: #5ba382;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main-content { flex: 1; }
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo {
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 18px;
  letter-spacing: -0.02em; color: white; transition: color 0.3s;
}
.nav.scrolled .logo { color: var(--ink); }
.logo span { color: #4ade80; transition: color 0.3s; }
.nav.scrolled .logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
  font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.9);
  letter-spacing: 0.03em; transition: color 0.3s; cursor: pointer;
}
.nav-links a:hover { color: white; }
.nav.scrolled .nav-links a { color: #15181d; }
.nav.scrolled .nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: #ffffff; font-weight: 400; }
.nav.scrolled .nav-links a.active { color: var(--accent); font-weight: 400; }
.lang-switch {
  display: flex; gap: 0; border: 1px solid rgba(255,255,255,0.4); border-radius: 4px; overflow: hidden;
  transition: border-color 0.3s;
}
.nav.scrolled .lang-switch { border-color: var(--line); }
.lang-btn {
  padding: 6px 14px; font-size: 14px; font-weight: 500; cursor: pointer;
  background: transparent; border: none; color: rgba(255,255,255,0.85); transition: all 0.3s;
}
.nav.scrolled .lang-btn { color: #15181d; }
.lang-btn.active { background: var(--accent); color: white; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 24px; color: white; }
.nav.scrolled .menu-toggle { color: var(--ink); }

/* ===== Hero Carousel ===== */
.hero {
  position: relative; height: 90vh; min-height: 600px;
  display: flex; align-items: center; color: white; overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide img, .hero-slide video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(8,32,22,0.62) 0%, rgba(14,45,30,0.48) 50%, rgba(8,110,75,0.26) 100%);
}
.hero-dots {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: all 0.3s; border: none;
}
.hero-dot.active { background: white; width: 28px; border-radius: 5px; }
.hero-slide-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center;
}
.hero-slide-content .hero-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%;
}
.hero-tag {
  display: inline-block; padding: 6px 16px; border: 1px solid rgba(255,255,255,0.55);
  border-radius: 2px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 24px; color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.hero h1, .hero h2 {
  font-size: clamp(36px, 5vw, 64px); color: #ffffff; font-weight: 800; margin-bottom: 24px;
  max-width: 700px; letter-spacing: -0.02em;
  text-shadow: 0 2px 3px rgba(0,0,0,0.45), 0 4px 14px rgba(0,0,0,0.3);
}
.hero p {
  font-size: 18px; color: #ffffff; max-width: 560px; margin-bottom: 40px;
  font-weight: 400; line-height: 1.7;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 3px 10px rgba(0,0,0,0.35);
}
.btn {
  display: inline-block; padding: 14px 32px; font-size: 14px; font-weight: 600;
  border-radius: 2px; cursor: pointer; transition: all 0.2s; border: none;
  font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.5); margin-left: 12px; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ===== Sections ===== */
section { padding: 96px 0; }
.section-label {
  font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 42px); margin-bottom: 16px; letter-spacing: -0.02em;
}
.section-desc { color: var(--muted); max-width: 600px; margin-bottom: 56px; font-size: 16px; }

/* ===== Products Grid ===== */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.product-card {
  background: white; border-radius: 4px; overflow: hidden; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--line);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.product-img { aspect-ratio: 4 / 3; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-body { padding: 24px; }
.product-body h3 { font-size: 18px; margin-bottom: 8px; }
.product-body p { font-size: 14px; color: var(--muted); }
.product-cat {
  display: inline-block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}

/* ===== Why Choose Us ===== */
.why-section { background: var(--paper-warm); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px;
}
.feature-item .feature-icon {
  width: 48px; height: 48px; background: var(--ink); border-radius: 2px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-item .feature-icon svg { width: 24px; height: 24px; stroke: white; }
.feature-item h4 { font-size: 16px; margin-bottom: 10px; }
.feature-item p { font-size: 14px; color: var(--muted); }

/* ===== About ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.about-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.about-video-card .video-label { text-align: center; margin-top: 12px; font-weight: 600; font-size: 15px; color: var(--ink); }
.about-img { border-radius: 4px; overflow: hidden; height: 400px; }
.about-video { border-radius: 4px; overflow: hidden; height: 220px; }
.about-img img, .about-video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0d0d0d; }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; }
.stats-row { display: flex; gap: 48px; margin-top: 32px; }
.stat-num { font-family: 'Montserrat', sans-serif; font-size: 36px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ===== Contact ===== */
.contact-section { background: var(--paper-warm); color: var(--ink); }
.contact-section .section-title { color: var(--ink); }
.contact-section .section-desc { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info h4 { color: var(--ink); font-size: 14px; margin-bottom: 8px; letter-spacing: 0.05em; }
.contact-info p { color: var(--ink-soft); margin-bottom: 24px; font-size: 14px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; background: white;
  border: 1px solid var(--line); border-radius: 2px; color: var(--ink);
  font-family: inherit; font-size: 14px;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { min-height: 120px; resize: vertical; }

.qr-codes { display: flex; gap: 24px; margin-top: 24px; }
.qr-item {
  text-align: center;
}
.qr-item img {
  width: 120px; height: 120px; object-fit: cover;
  border: 1px solid var(--line); border-radius: 4px;
}
.qr-item span {
  display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink);
}

/* ===== Footer ===== */
footer {
  background: var(--paper); color: var(--ink-soft); padding: 32px 0; font-size: 13px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

/* ===== Catalog View ===== */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-top: 120px; }
.sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.cat-group { margin-bottom: 4px; }
.cat-main {
  padding: 10px 12px; font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink); border-radius: 2px; transition: background 0.2s;
}
.cat-main:hover { background: var(--paper-warm); }
.cat-main .arrow { transition: transform 0.2s; font-size: 12px; color: var(--muted); }
.cat-group.open .cat-main .arrow { transform: rotate(90deg); }
.cat-sub { display: none; padding-left: 12px; }
.cat-group.open .cat-sub { display: block; }
.cat-sub-item {
  padding: 8px 12px; font-size: 13px; cursor: pointer; border-radius: 2px;
  color: var(--muted); transition: all 0.2s; margin-bottom: 2px;
}
.cat-sub-item:hover { color: var(--ink); background: var(--paper-warm); }
.cat-sub-item.active { color: var(--accent); font-weight: 600; background: var(--paper-warm); }
.cat-all-item {
  padding: 10px 12px; font-size: 14px; cursor: pointer; border-radius: 2px;
  color: var(--ink-soft); transition: all 0.2s; margin-bottom: 8px; font-weight: 500;
}
.cat-all-item:hover { background: var(--paper-warm); }
.cat-all-item.active { background: var(--accent); color: white; }

.catalog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.catalog-item {
  position: relative; border-radius: 4px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 1; background: var(--paper-warm);
}
.catalog-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.catalog-item:hover img { transform: scale(1.05); }
.catalog-item .item-label {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; background: rgba(0,0,0,0.55); color: white;
  font-size: 13px; font-weight: 500; text-align: center; white-space: nowrap;
  border-radius: 3px;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.97); align-items: center; justify-content: center;
  overflow: hidden;
}
.lightbox.open { display: flex; }
.lightbox-img-wrap {
  max-width: 90vw; max-height: 80vh; position: relative;
  cursor: grab; user-select: none;
}
.lightbox-img-wrap.dragging { cursor: grabbing; }
.lightbox-img-wrap img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  transition: transform 0.1s ease-out;
  transform-origin: 0 0;
}
.lightbox-hint {
  position: absolute; top: 80px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6);
  padding: 6px 14px; border-radius: 2px; font-size: 12px; pointer-events: none;
  z-index: 10;
}
.lightbox-close {
  position: absolute; top: 20px; right: 28px; color: white; font-size: 36px;
  cursor: pointer; background: none; border: none; line-height: 1;
  z-index: 10;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: white;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  font-size: 22px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 10;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-caption {
  position: absolute; bottom: 24px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,0.8); font-size: 14px;
  z-index: 10;
}

/* ===== Product Detail View ===== */
.detail-view { padding-top: 72px; min-height: 100vh; }
.detail-body { max-width: 1280px; margin: 0 auto; padding: 64px 24px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px;
  color: var(--muted); cursor: pointer; margin-bottom: 32px; transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.detail-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.detail-info h1 { font-size: 36px; margin-bottom: 16px; }
.detail-info .desc { color: var(--ink-soft); margin-bottom: 28px; line-height: 1.8; }
.detail-gallery {
  border-radius: 4px; position: sticky; top: 100px;
}
.detail-carousel { position: relative; overflow: hidden; border-radius: 4px; }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.carousel-slide { flex: 0 0 100%; position: relative; }
.carousel-slide img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; display: block; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; padding-top: 14px; }
.carousel-dots span {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--accent); box-sizing: border-box;
  cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.carousel-dots span.active { background: var(--accent); border-color: var(--accent); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table td:first-child { color: var(--muted); width: 140px; }
.spec-table td:last-child { font-weight: 500; }

/* ===== View switching ===== */
.view { display: none; }
.view.active { display: block; }

/* ===== Floating QR Contact ===== */
.float-qr {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  display: flex; flex-direction: column; gap: 12px;
}
.float-item {
  position: relative; width: 52px; height: 52px;
  border-radius: 50%; overflow: hidden; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: transform 0.25s;
}
.float-item:hover { transform: scale(1.1); }
.float-icon { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== QR Modal (click to open big image) ===== */
.qr-modal {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.8); align-items: center; justify-content: center;
}
.qr-modal.open { display: flex; }
.qr-modal-card {
  position: relative; background: #fff; border-radius: 12px; padding: 20px;
  text-align: center; max-width: 420px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.qr-modal-card img {
  width: 100%; height: auto; border-radius: 8px; display: block;
}
.qr-modal-card span {
  display: block; margin-top: 14px; font-size: 16px; font-weight: 600; color: var(--ink);
}
.qr-modal-close {
  position: absolute; top: -14px; right: -14px; width: 34px; height: 34px;
  border-radius: 50%; background: #fff; color: var(--ink); font-size: 20px; line-height: 1;
  cursor: pointer; border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 17px; }
  .nav-links a:hover { color: var(--accent); }
  .nav-links a.active { color: var(--accent); }
  .nav-links .lang-switch { align-self: flex-start; margin-top: 14px; border-color: var(--line); }
  .menu-toggle { display: block; }
  .about-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-videos { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .detail-gallery { position: static; }
  .detail-carousel .carousel-slide img { max-height: 360px; }
  section { padding: 64px 0; }
  .hero { height: 70vh; }
  .stats-row { flex-wrap: wrap; gap: 24px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; margin-bottom: 24px; }
  .cat-sub { padding-left: 8px; }
  .cat-sub-item { display: inline-block; margin-right: 4px; }
  .cat-all-item { display: inline-block; margin-right: 8px; margin-bottom: 8px; }
  .lightbox-nav { width: 36px; height: 36px; font-size: 18px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
