:root {
  --green: #83b735;
  --green-soft: #e8f1d2;
  --text: #242424;
  --muted: #666;
  --line: #e8e8e8;
  --page: #f7f7f7;
  --white: #fff;
  --red: #ff3f32;
  --blue: #3b82ff;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-anchor: none;
  -webkit-text-size-adjust: 100%;
  touch-action: pan-y;
}

body {
  width: 100%;
  min-width: 0;
  max-width: 100vw;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--page);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  touch-action: pan-y;
}

#top {
  scroll-margin-top: 72px;
}

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

main,
section,
aside,
div,
form {
  max-width: 100%;
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

a,
input,
select,
.demo-card,
.demo-thumb,
.category,
.lightbox-stage,
.lightbox-thumb {
  touch-action: manipulation;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 40px;
  width: min(1230px, calc(100% - 44px));
  height: 58px;
  margin: 0 auto;
}

.brand img {
  display: block;
  width: 155px;
  height: auto;
}

.text-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  color: #1f1f1f;
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.brand .brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.brand .brand-logo[hidden] {
  display: none;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  color: #2c2c2c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 58px;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--green);
}

.main-nav span {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
}

.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 118px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: #0d0d0d;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.buy-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(131, 183, 53, 0.14);
  font-size: 12px;
}

.landing-hero {
  padding: 82px 0 70px;
}

.title-block {
  position: relative;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto 54px;
  padding-top: clamp(66px, 8vw, 92px);
  text-align: center;
}

.big-number {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  height: auto;
  margin: 0;
  color: var(--green);
  font-size: clamp(104px, 12vw, 145px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -5px;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, 0.46) 74%, rgba(0, 0, 0, 0.05) 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, 0.46) 74%, rgba(0, 0, 0, 0.05) 100%);
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.title-block p {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
  color: #6f6f6f;
  font-size: 13px;
  line-height: 1.8;
}

.demo-shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 34px;
  width: min(1470px, calc(100% - 58px));
  margin: 0 auto;
  align-items: start;
}

.demo-sidebar {
  position: sticky;
  top: 82px;
  z-index: 5;
}

.demo-search {
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  height: 36px;
  margin-bottom: 10px;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}

.demo-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 14px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 11px;
}

.demo-search button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  color: #777;
  background: transparent;
}

.demo-search svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.category-list {
  display: grid;
  gap: 2px;
}

.category {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  height: 35px;
  padding: 0 10px 0 14px;
  border: 0;
  border-radius: 999px;
  color: #666;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease;
}

.category b {
  display: inline-flex;
  min-width: 28px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #777;
  background: #e7e7e7;
  font-size: 10px;
  font-weight: 800;
}

.category:hover {
  color: #333;
  background: #eee;
}

.category.active {
  color: #3f4b28;
  background: var(--green-soft);
}

.category.active b {
  color: #fff;
  background: var(--green);
}

.catalog-tools {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.view-toggle,
.sort-control {
  min-height: 36px;
  border: 1px solid #e1e1e1;
  border-radius: 999px;
  background: #fff;
  color: #4b4b4b;
  font-size: 12px;
  font-weight: 800;
}

.view-toggle {
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.view-toggle {
  display: none;
}

.sort-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 14px;
}

.sort-control span {
  color: #777;
}

.sort-control select {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #222;
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.view-toggle.is-active {
  border-color: var(--green);
  color: #2f4b10;
  background: var(--green-soft);
}

.demo-content {
  min-width: 0;
}

.notice {
  display: none;
  margin-bottom: 24px;
  padding: 18px 22px;
  border-radius: var(--radius);
  color: #555;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.notice.is-visible {
  display: block;
}

.demo-grid {
  --demo-columns: 4;
  --demo-gap: 30px;
  display: grid;
  grid-template-columns: repeat(var(--demo-columns), minmax(0, 1fr));
  gap: var(--demo-gap);
}

.demo-card {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn 0.45s ease forwards;
  cursor: pointer;
}

.demo-card.is-hidden {
  display: none;
}

.demo-card:focus-visible {
  outline: 3px solid rgba(131, 183, 53, 0.35);
  outline-offset: 6px;
  border-radius: 14px;
}

.demo-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.demo-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  opacity: 0;
  transform: translateX(-100%);
}

.demo-card:hover .demo-thumb {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.13);
}

.demo-card:hover .demo-thumb::after {
  opacity: 1;
  animation: shine 0.75s ease;
}

.demo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(6px, 1.5vw, 18px);
  object-fit: contain;
}

.label {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  height: 25px;
  min-width: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.label.new {
  background: var(--blue);
}

.demo-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding-top: 10px;
}

.demo-title-group {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.demo-title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.demo-series {
  overflow: hidden;
  color: #777;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: max-width 0.25s ease, opacity 0.25s ease;
}

.live-preview svg {
  flex: 0 0 auto;
  width: 30px;
  height: 18px;
}

.demo-card:hover .live-preview {
  max-width: 135px;
  opacity: 1;
}

.site-footer {
  border-top: 1px solid #e2e2e2;
  background: #f7f7f7;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  width: min(1230px, calc(100% - 44px));
  min-height: 96px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 auto;
  color: #777;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

.footer-address {
  text-align: center;
}

.footer-address a {
  color: #222;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-address a:hover {
  color: var(--green);
}

.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 15;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #999;
  background: #fff;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.12);
  font-size: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.4svh, 28px) clamp(16px, 2vw, 32px) max(56px, env(safe-area-inset-bottom) + 48px);
  background: rgba(18, 18, 18, 0.42);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

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

.lightbox-panel {
  --lightbox-media-width: 720px;
  --lightbox-stage-width: 720px;
  --lightbox-stage-height: 540px;
  --lightbox-detail-width: 460px;
  display: grid;
  grid-template-columns: minmax(0, var(--lightbox-media-width)) minmax(0, var(--lightbox-detail-width));
  align-items: start;
  gap: 18px;
  width: fit-content;
  max-width: calc(100vw - 28px);
  max-height: min(940px, calc(100svh - 82px));
  min-width: 0;
  margin: 0;
  padding: clamp(14px, 1.4vw, 18px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.lightbox.is-open .lightbox-panel {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.lightbox-gallery {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  width: var(--lightbox-media-width);
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  align-content: start;
  justify-items: center;
  gap: clamp(8px, 1.4svh, 14px);
  overflow: hidden;
}

.lightbox-stage {
  display: grid;
  width: var(--lightbox-stage-width);
  height: var(--lightbox-stage-height);
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  place-items: center;
  border-radius: 14px;
  background: transparent;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.lightbox-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}

.lightbox-panel figcaption {
  max-width: min(900px, 100%);
  color: #222;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.lightbox-thumbs {
  display: flex;
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  height: clamp(86px, 10svh, 108px);
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 2px 2px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.product-detail {
  display: flex;
  align-self: start;
  width: var(--lightbox-detail-width);
  min-width: 0;
  max-width: 100%;
  max-height: calc(100svh - 120px);
  flex-direction: column;
  gap: 13px;
  padding: 24px;
  border-radius: 16px;
  background: #f8f8f8;
  overflow-x: hidden;
  overflow-y: auto;
}

.product-kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.product-detail h2 {
  margin: 0;
  min-width: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.product-title-logo {
  display: block;
  width: clamp(58px, 8vw, 96px);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.product-description {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.product-specs {
  display: grid;
  max-width: 100%;
  gap: 10px;
  overflow-x: hidden;
}

.product-spec {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid #e6e6e6;
  overflow-x: hidden;
}

.product-spec span {
  min-width: 0;
  color: #777;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.product-spec-value {
  color: #222;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.product-spec-table {
  display: grid;
  max-width: 100%;
  gap: 5px;
  min-width: 0;
  overflow-x: hidden;
}

.product-spec-line {
  display: grid;
  grid-template-columns: minmax(58px, max-content) minmax(0, 1fr);
  column-gap: 10px;
  align-items: baseline;
  min-width: 0;
  max-width: 100%;
}

.product-spec-line em {
  min-width: 0;
  color: #222;
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.75;
  text-align: right;
  white-space: nowrap;
}

.product-spec-line em::after {
  content: ":";
}

.product-spec-line strong {
  min-width: 0;
  color: #222;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.75;
  overflow-wrap: break-word;
  word-break: normal;
}

.product-spec-line.is-plain {
  grid-template-columns: minmax(0, 1fr);
}

.product-spec-line.is-total em,
.product-spec-line.is-total strong {
  color: #a40000;
}

.product-empty {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #e6e6e6;
  color: #777;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.product-notes {
  padding: 16px;
  border-radius: 14px;
  background: #fff;
}

.product-notes h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.product-notes ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #666;
  line-height: 1.7;
}

.product-disclaimer {
  margin: 0;
  color: #aaa;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.75;
}

.product-disclaimer span {
  margin-right: 4px;
}

.lightbox-thumbs::-webkit-scrollbar {
  display: none;
}

.lightbox-thumb {
  flex: 0 0 clamp(58px, 5.5vw, 72px);
  aspect-ratio: 3 / 4;
  padding: 5px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lightbox-thumb:hover {
  transform: translateY(-2px);
}

.lightbox-thumb.is-active {
  border-color: var(--green);
  box-shadow: 0 10px 22px rgba(131, 183, 53, 0.18);
}

.lightbox-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
}

.lightbox-empty {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  color: #777;
  background: #f3f3f3;
  font-size: 13px;
  font-weight: 700;
}

.lightbox-controls {
  position: fixed;
  inset: 0;
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.lightbox.is-open ~ .lightbox-controls {
  opacity: 1;
}

.lightbox.is-open ~ .lightbox-controls .lightbox-close,
.lightbox.is-open ~ .lightbox-controls .lightbox-action-bar {
  pointer-events: auto;
}

.lightbox-close,
.lightbox-nav,
.lightbox-product-nav {
  border: 0;
  color: #222;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-product-nav:hover {
  background: #fff;
}

.lightbox-close:hover {
  transform: translateY(-2px);
}

.lightbox-action-bar {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom) + 10px);
  z-index: 140;
  display: flex;
  width: min(560px, calc(100vw - 48px));
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.lightbox-nav {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  pointer-events: auto;
}

.lightbox-nav:hover {
  transform: translateY(-2px);
}

.lightbox-product-nav {
  display: flex;
  flex: 0.88 1 0;
  min-width: 0;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  pointer-events: auto;
}

.lightbox-product-nav:hover {
  transform: translateY(-2px);
}

.nav-label,
.product-nav-label {
  display: block;
  letter-spacing: 0;
  white-space: nowrap;
}

body.lightbox-open {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shine {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav {
    gap: 18px;
  }

  .demo-grid {
    --demo-columns: 3;
  }

  .lightbox-panel {
    grid-template-columns: minmax(0, var(--lightbox-media-width)) minmax(0, var(--lightbox-detail-width));
    width: fit-content;
    max-width: calc(100vw - 44px);
  }
}

@media (min-width: 901px) and (max-height: 860px) {
  .lightbox {
    padding-top: clamp(8px, 1.5svh, 18px);
    padding-bottom: max(50px, env(safe-area-inset-bottom) + 44px);
  }

  .lightbox-panel {
    grid-template-columns: minmax(0, var(--lightbox-media-width)) minmax(0, var(--lightbox-detail-width));
    width: fit-content;
    max-width: calc(100vw - 36px);
    max-height: calc(100svh - 66px);
    gap: 12px;
    padding: 12px;
  }

  .lightbox-gallery {
    gap: 8px;
  }

  .lightbox-thumbs {
    height: 82px;
    gap: 8px;
  }

  .lightbox-thumb {
    flex-basis: 56px;
    aspect-ratio: 3 / 4;
    padding: 3px;
    border-radius: 11px;
  }

  .product-detail {
    gap: 8px;
    padding: 16px;
  }

  .product-detail h2 {
    font-size: clamp(26px, 2.6vw, 36px);
  }

  .product-description,
  .product-spec-value,
  .product-spec-line em,
  .product-spec-line strong {
    font-size: 12px;
    line-height: 1.55;
  }

  .product-spec {
    padding: 8px 0;
  }

  .product-notes {
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    width: calc(100% - 28px);
    gap: 18px;
  }

  .main-nav {
    display: none;
  }

  .footer-inner {
    width: calc(100% - 28px);
    min-height: 88px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }

  .footer-address {
    text-align: center;
  }

  .demo-shell {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    max-width: 680px;
  }

  .demo-sidebar {
    position: static;
  }

  .category-list {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px 7px;
    padding-bottom: 4px;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-list::-webkit-scrollbar {
    display: none;
  }

  .category {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    gap: 8px;
    justify-content: space-between;
    padding: 0 9px 0 12px;
  }

  .category span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.is-category-expanded .category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    overflow: visible;
    white-space: normal;
  }

  body.is-category-expanded .category {
    width: 100%;
  }

  .catalog-tools {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .view-toggle {
    display: inline-flex;
  }

  .sort-control {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    padding: 5px 10px;
  }

  .sort-control span {
    font-size: 10px;
  }
}

@media (max-width: 767px) {
  .site-header {
    width: 100%;
  }

  .header-inner {
    width: min(520px, calc(100vw - 28px));
    height: 54px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .text-brand {
    min-width: 0;
    min-height: 54px;
    overflow: hidden;
    font-size: clamp(15px, 3.8vw, 18px);
    text-overflow: ellipsis;
  }

  .buy-button {
    min-width: auto;
    height: 32px;
    padding: 0 13px;
  }

  .landing-hero {
    width: 100%;
    padding: 46px 0 52px;
  }

  .title-block {
    width: min(430px, calc(100vw - 30px));
    margin-right: auto;
    margin-bottom: 32px;
    margin-left: auto;
    text-align: center;
  }

  .big-number {
    height: auto;
    margin-bottom: 2px;
    font-size: clamp(64px, 18vw, 98px);
    letter-spacing: -3px;
    text-align: center;
  }

  h1 {
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(22px, 5.2vw, 28px);
    line-height: 1.16;
    text-align: center;
  }

  .title-block p {
    max-width: 100%;
    text-align: center;
  }

  .demo-shell {
    width: min(520px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .demo-content,
  .demo-sidebar,
  .demo-search,
  .demo-grid {
    width: 100%;
    min-width: 0;
  }

  .demo-search {
    height: 44px;
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .demo-search input {
    font-size: 16px;
  }

  .demo-search button {
    width: 44px;
    height: 44px;
  }

  .category-list {
    width: 100%;
    max-width: 100%;
  }

  .demo-grid {
    --demo-columns: 2;
    --demo-gap: 16px 14px;
  }

  .demo-grid.is-large-view {
    --demo-columns: 1;
    --demo-gap: 22px;
  }

  .demo-card {
    width: 100%;
  }

  .demo-thumb {
    aspect-ratio: 1 / 1;
  }

  .demo-grid.is-large-view .demo-title {
    font-size: 15px;
  }

  .demo-grid.is-large-view .demo-series {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 54px;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .text-brand {
    min-width: 0;
    min-height: 54px;
    overflow: hidden;
    font-size: clamp(15px, 4vw, 18px);
    text-overflow: ellipsis;
  }

  .buy-button {
    min-width: auto;
    height: 32px;
    padding: 0 13px;
  }

  .demo-search {
    height: 44px;
    grid-template-columns: 1fr 44px;
  }

  .demo-search input {
    font-size: 16px;
  }

  .demo-search button {
    width: 44px;
    height: 44px;
  }

  .landing-hero {
    padding: 48px 0 52px;
  }

  .title-block {
    width: min(430px, calc(100% - 32px));
    margin-bottom: 34px;
  }

  .big-number {
    height: auto;
    margin-bottom: 2px;
    font-size: clamp(70px, 21vw, 100px);
    letter-spacing: -3px;
  }

  h1 {
    font-size: clamp(22px, 5.7vw, 28px);
    line-height: 1.16;
  }

  .demo-grid {
    --demo-columns: 2;
    --demo-gap: 18px 14px;
  }

  .demo-grid.is-large-view {
    --demo-columns: 1;
    --demo-gap: 22px;
  }

  .demo-thumb {
    aspect-ratio: 1 / 1;
  }

  .lightbox {
    grid-template-columns: 1fr;
    place-items: start center;
    padding: max(12px, env(safe-area-inset-top) + 8px) 6px max(82px, env(safe-area-inset-bottom) + 70px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lightbox-close {
    position: fixed !important;
    top: max(16px, env(safe-area-inset-top) + 10px);
    right: max(10px, env(safe-area-inset-right) + 8px);
    z-index: 140;
    width: 46px;
    height: 46px;
    border: 4px solid rgba(255, 255, 255, 0.72);
    background: #fff;
    font-size: 30px;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
    transform: scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  }

  .lightbox-action-bar {
    position: fixed !important;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom) + 10px);
    z-index: 140;
    width: min(520px, calc(100vw - 28px));
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .lightbox-nav,
  .lightbox-product-nav {
    position: static !important;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 44px;
    padding: 0 8px;
    background: #fff;
    font-size: 12px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
  }

  .lightbox.is-open ~ .lightbox-controls {
    opacity: 0;
  }

  .lightbox.is-open ~ .lightbox-controls .lightbox-close,
  .lightbox.is-open ~ .lightbox-controls .lightbox-action-bar {
    pointer-events: none;
  }

  .lightbox.is-open ~ .lightbox-controls .lightbox-action-bar .lightbox-nav,
  .lightbox.is-open ~ .lightbox-controls .lightbox-action-bar .lightbox-product-nav {
    pointer-events: none;
  }

  .lightbox.is-open.is-controls-visible ~ .lightbox-controls {
    opacity: 1;
  }

  .lightbox.is-open.is-controls-visible ~ .lightbox-controls .lightbox-close,
  .lightbox.is-open.is-controls-visible ~ .lightbox-controls .lightbox-action-bar {
    opacity: 1;
    pointer-events: auto;
  }

  .lightbox.is-open.is-controls-visible ~ .lightbox-controls .lightbox-action-bar .lightbox-nav,
  .lightbox.is-open.is-controls-visible ~ .lightbox-controls .lightbox-action-bar .lightbox-product-nav {
    pointer-events: auto;
  }

  .lightbox.is-open.is-controls-visible ~ .lightbox-controls .lightbox-close {
    transform: scale(1);
  }

  .lightbox.is-open.is-controls-visible ~ .lightbox-controls .lightbox-action-bar {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .lightbox-close:hover {
    transform: scale(1.04);
  }

  .lightbox-nav:hover,
  .lightbox-product-nav:hover {
    transform: translateY(-2px);
  }

  .lightbox-panel {
    grid-template-columns: minmax(0, var(--lightbox-media-width));
    width: min(calc(100vw - 12px), var(--lightbox-media-width) + clamp(16px, 5.2vw, 28px));
    max-width: calc(100vw - 12px);
    height: auto;
    max-height: none;
    margin: 0;
    padding: clamp(8px, 2.6vw, 14px);
    border-radius: 24px;
    overflow: visible;
  }

  .product-detail {
    width: 100%;
    max-height: none;
    gap: 10px;
    padding: 18px;
    overflow: visible;
  }

  .product-detail h2 {
    font-size: 28px;
  }

  .product-title-logo {
    width: clamp(74px, 22vw, 116px);
  }

  .product-spec {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .lightbox-stage {
    width: var(--lightbox-stage-width);
    height: var(--lightbox-stage-height);
    max-width: 100%;
    min-height: 0;
    place-items: center;
    padding: 0;
    border-radius: 18px;
  }

  .lightbox-stage img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .lightbox-thumbs {
    height: 86px;
  }

  .lightbox-thumb {
    flex-basis: 58px;
    aspect-ratio: 3 / 4;
  }

  .demo-title {
    font-size: 12px;
  }

  .live-preview {
    display: none;
  }
}

@media (max-width: 600px) {
  .title-block {
    width: min(390px, calc(100% - 30px));
    margin-bottom: 30px;
  }

  .big-number {
    font-size: clamp(60px, 20vw, 88px);
    letter-spacing: -2px;
  }

  h1 {
    font-size: clamp(20px, 5.35vw, 25px);
    letter-spacing: -0.3px;
  }

  .title-block p {
    font-size: 12.5px;
    line-height: 1.75;
  }
}

@media (max-width: 420px) {
  .header-inner,
  .demo-shell {
    width: calc(100% - 24px);
  }

  .buy-button {
    padding: 0 11px;
    font-size: 10px;
  }

  .title-block {
    width: calc(100% - 28px);
  }

  .big-number {
    font-size: clamp(56px, 19vw, 76px);
  }

  h1 {
    font-size: clamp(19px, 5.1vw, 22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
