:root {
  --ink: #171c1a;
  --muted: #626c68;
  --line: #dbe4df;
  --paper: #f6f8f6;
  --white: #ffffff;
  --green: #008a4c;
  --green-deep: #045b38;
  --shadow: 0 18px 50px rgba(20, 33, 29, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 68px;
  padding: 0 34px;
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(22, 32, 29, 0.08);
  backdrop-filter: blur(16px);
}

.brand { width: max-content; }

.brand-word {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #e32222;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 36px;
  padding: 0;
  background: transparent;
}

.brand-logo-wrap img {
  width: 100px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.primary-nav {
  justify-content: flex-start;
  margin-left: 118px;
}
.utility-nav { justify-content: flex-end; gap: 16px; font-size: 13px; }
.site-nav a { padding: 9px 0; }

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  display: grid;
  min-width: 190px;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.compact-dropdown {
  min-width: 150px;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 800;
}

.dropdown-menu a:hover {
  background: #eef4f1;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-menu {
  position: fixed;
  z-index: 35;
  top: 68px;
  left: 50%;
  display: grid;
  width: min(1040px, calc(100% - 44px));
  grid-template-columns: 1fr 1.25fr 220px;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.mega-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-preview {
  display: grid;
  min-height: 230px;
  place-items: center;
  border-radius: 8px;
  background: #f3f6f4;
}

.mega-preview img {
  max-height: 220px;
  object-fit: contain;
}

.mega-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mega-products button,
.sub-menu a,
.shop-grid a {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.mega-products button {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 6px 10px;
  text-align: left;
}

.mega-products img {
  width: 54px;
  height: 44px;
  object-fit: contain;
  border-radius: 5px;
  background: #f4f7f5;
}

.mega-links {
  display: grid;
  gap: 8px;
  align-content: start;
}

.mega-links a,
.mega-links span {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.home-panel {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.promo-slide,
.panel-media,
.panel-tint,
.light-tint {
  position: absolute;
  inset: 0;
}

.promo-slide {
  opacity: 0;
  transition: opacity 380ms ease;
}

.promo-slide.is-active { opacity: 1; }

.promo-slide img,
.panel-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

video.panel-media {
  background: #101412;
}

.promo-slide img {
  object-position: center;
}

.panel-tint {
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3));
}

.light-tint {
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.2));
}

.panel-copy {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  color: var(--ink);
  text-align: center;
}

.panel-copy.center {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--white);
  transform: translate(-50%, -50%);
}

.panel-copy.top {
  margin: 0 auto;
  padding-top: 118px;
}

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

.dark .eyebrow,
.panel-copy.center .eyebrow { color: #88f0b6; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 12px;
  font-size: 72px;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: 0;
}

.panel-copy p {
  margin-right: auto;
  margin-left: auto;
  max-width: 680px;
  color: rgba(23, 28, 26, 0.78);
  font-size: 20px;
}

.panel-copy.center p { color: rgba(255, 255, 255, 0.9); }
.mission-line { font-weight: 900; }

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 900;
}

.primary-action { background: var(--green); color: var(--white); }
.secondary-action { border: 1px solid rgba(255, 255, 255, 0.78); color: var(--white); }
.dark-action { border-color: rgba(23, 28, 26, 0.32); color: var(--ink); background: rgba(255, 255, 255, 0.58); }

.carousel-controls {
  position: absolute;
  z-index: 3;
  bottom: 34px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.carousel-controls button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
}

.carousel-dots button.is-active { background: var(--white); }

.play-chip {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.26);
  cursor: pointer;
  font-weight: 900;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.play-symbol {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.subpage {
  padding-top: 68px;
}

.sub-hero,
.catalog-frame,
.content-framework,
.explore-grid,
.support-layout,
.shop-grid {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
}

.sub-hero {
  padding: 88px 0 36px;
  text-align: center;
}

.sub-hero p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 20px;
}

.catalog-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: start;
  padding-bottom: 48px;
}

.hover-gallery {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(22, 32, 29, 0.05);
}

.gallery-main {
  width: 100%;
  height: clamp(280px, 42vw, 540px);
  object-fit: contain;
  border-radius: 8px;
  background: #f7faf8;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.thumb-grid button {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8faf9;
  cursor: pointer;
  font-weight: 800;
  place-items: center;
}

.thumb-grid img {
  width: 100%;
  height: 66px;
  object-fit: contain;
  border-radius: 5px;
  background: var(--white);
}

.thumb-grid button.is-active {
  border-color: var(--green);
  color: var(--green-deep);
}

.sub-menu {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 10px;
}

.sub-menu a {
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.content-framework,
.explore-grid,
.support-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 0 90px;
}

.content-framework article,
.explore-grid article,
.support-layout article {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(22, 32, 29, 0.05);
}

.content-framework p,
.explore-grid p,
.support-layout p {
  color: var(--muted);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 90px;
}

.shop-grid a {
  display: grid;
  min-height: 180px;
  place-items: center;
  font-size: 24px;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 26px 20px;
  color: rgba(255, 255, 255, 0.76);
  background: #202523;
  font-size: 13px;
  font-weight: 800;
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.site-footer a:hover {
  color: var(--white);
}

.social-links {
  gap: 12px;
  color: rgba(255, 255, 255, 0.62);
  text-transform: lowercase;
}

.social-icon,
.lang-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: currentColor;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.social-icon {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.social-links a:hover .social-icon {
  color: var(--white);
}

.lang-icon.large {
  width: 42px;
  height: 42px;
  color: var(--green-deep);
  font-size: 15px;
}

.copyright {
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
  font-weight: 600;
}

.stock-mega {
  top: 68px;
  left: 0;
  right: 0;
  display: grid;
  width: 100%;
  height: 80vh;
  grid-template-columns: minmax(0, 4fr) minmax(220px, 1fr);
  gap: 0;
  padding: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  overflow: hidden;
  transform: translateY(-10px);
}

.stock-mega.is-open {
  transform: translateY(0);
}

.mega-stock {
  padding: 24px 34px;
  overflow: hidden;
}

.mega-stock h2,
.stock-head h1 {
  margin: 0 0 22px;
  font-size: 38px;
  line-height: 1.05;
  text-align: center;
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 14px;
}

.stock-card {
  display: grid;
  min-height: 178px;
  grid-template-rows: minmax(74px, 1fr) auto auto auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(22, 32, 29, 0.05);
}

.stock-card.no-details {
  min-height: 188px;
  grid-template-rows: minmax(126px, 1fr) auto;
}

.stock-image {
  display: grid;
  min-height: 78px;
  place-items: center;
  border-radius: 7px;
  background: #f6f8f7;
}

.stock-card.no-details .stock-image {
  min-height: 130px;
  padding: 3px;
}

.stock-image img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}

.stock-card.no-details .stock-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.stock-card h3 {
  margin: 0;
  font-size: 14px;
  text-align: center;
}

.stock-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.stock-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.stock-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.stock-actions span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.learn-link {
  color: var(--green-deep);
  background: #eef8f3;
}

.order-link {
  color: var(--white);
  background: var(--green);
}

.mega-catalog {
  padding: 32px 26px;
  border-left: 1px solid var(--line);
  background: #f5f8f6;
}

.mega-catalog h3,
.standard-catalog h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.mega-catalog div,
.standard-catalog {
  display: grid;
  gap: 10px;
  align-content: start;
}

.mega-catalog a,
.standard-catalog a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  font-weight: 900;
}

.stock-page {
  background: #f3f7f5;
}

.stock-shell {
  width: min(1380px, calc(100% - 56px));
  margin: 0 auto;
  padding: 72px 0 42px;
}

.stock-head {
  text-align: center;
}

.stock-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(220px, 1fr);
  gap: 24px;
  align-items: start;
}

.stock-grid-page {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.standard-catalog {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(22, 32, 29, 0.05);
}

.shop-notice-page {
  display: grid;
  min-height: calc(100svh - 126px);
  padding-top: 68px;
  place-items: center;
}

.shop-notice {
  display: grid;
  width: min(320px, calc(100% - 40px));
  min-height: 120px;
  padding: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.shop-notice p {
  margin: 0;
}

.compact-page-menu {
  max-width: 860px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: min(860px, calc(100% - 56px));
  margin: 0 auto;
  padding: 0 0 90px;
}

.language-grid a {
  display: grid;
  min-height: 132px;
  place-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(22, 32, 29, 0.05);
}

.detail-page {
  min-height: calc(100svh - 126px);
  background: #f3f7f5;
}

.detail-stage {
  display: grid;
  width: min(1040px, calc(100% - 56px));
  margin: 0 auto;
  padding: 54px 0 70px;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.detail-stage img {
  width: 100%;
  max-height: 68svh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(22, 32, 29, 0.08);
}

.detail-stage p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.account-panel {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12, 16, 14, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.account-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.account-card {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.account-card h2 {
  margin-bottom: 4px;
  font-size: 26px;
}

.account-card label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.account-card input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.account-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #eef4f1;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px 12px;
    min-height: 118px;
    padding: 10px 14px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
  }

  .site-nav {
    width: 100%;
    gap: 14px;
    font-size: 13px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-left: 0;
    justify-content: center;
    overflow: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .utility-nav {
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    gap: 12px;
    overflow: visible;
    font-size: 12px;
    align-self: center;
  }

  .mega-menu { display: none; }
  .subpage { padding-top: 112px; }

  .brand-logo-wrap {
    width: 102px;
    height: 34px;
    padding: 0;
  }

  .brand-logo-wrap img {
    width: 96px;
  }

  .dropdown-menu {
    display: grid;
    top: calc(100% + 2px);
    right: 0;
    left: auto;
    min-width: 172px;
    transform: translate(0, 8px);
    z-index: 80;
  }

  .primary-nav .dropdown-menu {
    left: 0;
    right: auto;
  }

  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu,
  .has-dropdown.is-open .dropdown-menu {
    transform: translate(0, 0);
  }

  h1 { font-size: 52px; }
  h2 { font-size: 38px; }

  .panel-copy.top { padding-top: 138px; }

  .catalog-frame,
  .stock-layout,
  .content-framework,
  .explore-grid,
  .support-layout,
  .shop-grid {
    grid-template-columns: 1fr;
  }

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

  .standard-catalog {
    position: static;
  }

  .sub-menu {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 9px 12px;
    font-size: 12px;
  }

  .primary-nav { overflow: visible; }
  .utility-nav {
    gap: 9px;
    font-size: 11px;
  }

  .site-nav a { padding: 7px 0; }

  .home-panel { min-height: 92svh; }
  .promo-slide img,
  .panel-media { object-position: center; }

  .brand-word {
    font-size: 24px;
  }

  h1 { font-size: 40px; }
  h2 { font-size: 30px; }

  .panel-copy { width: min(100% - 28px, 760px); }
  .panel-copy p { font-size: 17px; }
  .panel-copy.top { padding-top: 132px; }

  .primary-action,
  .secondary-action { min-width: 128px; }

  .sub-hero,
  .stock-shell,
  .catalog-frame,
  .content-framework,
  .explore-grid,
  .support-layout,
  .shop-grid {
    width: min(100% - 32px, 1180px);
  }

  .sub-hero { padding-top: 54px; }
  .hover-gallery { padding: 14px; }
  .gallery-main { height: 300px; }
  .sub-menu { grid-template-columns: 1fr; }
  .stock-card { min-height: 168px; }
  .stock-card.no-details { min-height: 164px; }
  .stock-card.no-details .stock-image { min-height: 112px; }
  .language-grid { width: min(100% - 32px, 860px); }
}
