* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #111820;
  background: #f3f4f5;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

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

button,
input {
  font: inherit;
}

.static-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #eceff1;
}

.static-header__inner {
  display: flex;
  width: min(1660px, calc(100% - 48px));
  min-height: 74px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.static-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.static-brand img {
  width: 46px;
  height: 46px;
}

.static-brand strong,
.static-brand span {
  display: block;
}

.static-brand strong {
  font-size: 18px;
}

.static-brand span {
  color: #7b858c;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.static-nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 30px;
  color: #39434a;
  font-size: 13px;
}

.static-nav a:hover {
  color: #ff5000;
}

.static-category {
  width: min(1660px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.static-category__heading {
  padding: 34px 0 28px;
}

.static-category__heading a {
  display: inline-block;
  margin-bottom: 24px;
  color: #0c3450;
  font-weight: 600;
}

.static-category__heading p {
  margin: 0 0 8px;
  color: #df4b13;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.static-category__heading h1 {
  display: inline-block;
  margin: 0 14px 0 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 42px;
  font-weight: 500;
}

.static-category__heading span {
  color: #838d93;
  font-size: 11px;
}

.static-category__tabs {
  display: flex;
  margin-bottom: 24px;
  padding: 12px 0;
  overflow-x: auto;
  border-top: 1px solid #dfe3e5;
  border-bottom: 1px solid #dfe3e5;
  gap: 8px;
}

.static-category__tabs a {
  flex: 0 0 auto;
  padding: 7px 14px;
  color: #657078;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 12px;
}

.static-category__tabs a:hover,
.static-category__tabs a.active {
  color: #ff5000;
  background: #fff1e8;
  border-color: #ffd2bd;
}

.static-category__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 16px;
}

.static-category-card {
  display: block;
  min-width: 0;
  background: #fff;
  border: 1px solid #eceff1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.static-category-card:hover {
  box-shadow: 0 12px 32px rgba(26, 43, 54, 0.1);
  transform: translateY(-3px);
}

.static-category-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f3f3f3;
}

.static-category-card > div {
  padding: 14px;
}

.static-category-card h2 {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 5px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.static-category-card p {
  margin: 0 0 10px;
  color: #848d92;
  font-size: 10px;
}

.static-category-card strong {
  color: #ff5000;
  font-size: 18px;
}

.static-topline {
  color: #fff;
  background: #08273d;
  font-size: 10px;
  text-align: center;
  line-height: 32px;
}

.static-shell {
  width: min(1660px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 110px;
}

.static-crumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  color: #808990;
  font-size: 11px;
}

.static-crumb a {
  color: #0c3450;
  font-weight: 600;
}

.static-shopbar {
  display: flex;
  min-height: 76px;
  margin-bottom: 14px;
  padding: 9px 20px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.static-shopbar__identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.static-shopbar__identity img {
  width: 58px;
  height: 58px;
}

.static-shopbar__identity strong,
.static-shopbar__identity span {
  display: block;
}

.static-shopbar__identity strong {
  font-size: 15px;
}

.static-shopbar__identity span {
  color: #7d878d;
  font-size: 9px;
}

.static-shopbar__actions {
  display: flex;
  gap: 8px;
}

.static-shopbar__actions a {
  min-width: 74px;
  padding: 6px 18px;
  color: #35434a;
  border: 1px solid #dfe3e5;
  border-radius: 18px;
  text-align: center;
}

.static-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(468px, 33vw, 620px);
  align-items: start;
  background: #fff;
  gap: 20px;
  padding: 0 40px 28px;
}

.static-product__main {
  display: contents;
}

.static-gallery {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  width: min(612px, 100%);
  grid-template-columns: 68px minmax(0, 530px);
  align-items: start;
  gap: 14px;
}

.static-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.static-gallery__thumbs img,
.static-gallery__thumbs a {
  width: 68px;
  height: 68px;
}

.static-gallery__thumbs img {
  object-fit: cover;
  border: 1px solid #e5e8ea;
}

.static-gallery__main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f6f6f6;
}

.static-buy {
  position: sticky;
  top: 86px;
  grid-column: 2;
  grid-row: 1 / span 2;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  align-self: start;
  padding: 8px 0 20px 18px;
  scrollbar-width: thin;
}

.static-badge {
  padding: 7px 10px;
  color: #a96431;
  background: #fff7ed;
  font-size: 11px;
}

.static-title {
  margin: 14px 0 8px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}

.static-meta {
  display: flex;
  color: #8b9398;
  font-size: 11px;
  gap: 16px;
}

.static-price {
  margin: 14px 0 12px;
  color: #ff5000;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.static-price small {
  font-size: 16px;
}

.static-price em {
  color: #8b9296;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
}

.static-buy__line {
  display: grid;
  grid-template-columns: 42px 1fr;
  padding: 4px 0;
  color: #58636a;
  font-size: 11px;
  gap: 8px;
}

.static-buy__line span:first-child {
  color: #929a9f;
}

.static-buy__lines {
  margin: 8px 0 14px;
  padding: 10px 0;
  border-top: 1px solid #eceff1;
  border-bottom: 1px solid #eceff1;
}

.static-sku {
  margin-bottom: 18px;
}

.static-sku__label {
  margin-bottom: 8px;
  color: #858e94;
  font-size: 14px;
  line-height: 22px;
}

.static-sku__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.static-sku__option {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.static-sku__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.static-sku__option-body {
  display: inline-flex;
  min-height: 40px;
  padding: 3px 12px 3px 4px;
  align-items: center;
  gap: 8px;
  color: #252b2f;
  background: #fff;
  border: 1px solid #e1e4e6;
  font-size: 12px;
}

.static-sku--text .static-sku__option-body {
  min-width: 54px;
  padding: 0 14px;
  justify-content: center;
  font-size: 13px;
}

.static-sku__option-body img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.static-sku__option-body > span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.static-sku__option input:checked + .static-sku__option-body {
  color: #ff5000;
  border-color: #ff5000;
  box-shadow: inset 0 0 0 1px #ff5000;
}

.static-sku__option:hover .static-sku__option-body {
  border-color: #ff9d70;
}

.static-quantity {
  display: block;
  margin: 18px 0;
}

.static-quantity span {
  display: block;
  margin-bottom: 8px;
  color: #858e94;
}

.static-quantity__control {
  display: flex;
  align-items: center;
}

.static-quantity__control button,
.static-quantity__input {
  width: 38px;
  height: 38px;
  padding: 0;
  background: #fff;
  border: 1px solid #dfe3e5;
  border-radius: 0;
  text-align: center;
}

.static-quantity__control button {
  cursor: pointer;
}

.static-quantity__input {
  margin-left: -1px;
  appearance: textfield;
}

.static-quantity__control em {
  margin-left: 12px;
  color: #8b9398;
  font-size: 12px;
  font-style: normal;
}

.static-actions {
  position: fixed;
  right: max(20px, calc((100vw - 1660px) / 2));
  bottom: 0;
  z-index: 10;
  display: flex;
  width: 500px;
  min-height: 80px;
  padding: 12px 16px 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 28px rgba(18, 31, 38, 0.08);
  gap: 8px;
}

.static-actions a,
.static-actions button {
  height: 52px;
  border-radius: 3px;
}

.static-action-cart {
  display: flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #5f696f;
  background: #fff;
  font-size: 9px;
}

.static-action-cart svg {
  width: 23px;
  fill: none;
  stroke: #ff5000;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.static-action-buy {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(90deg, #ff9a00, #ff5000);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.static-action-favorite {
  display: flex;
  flex: 0 0 52px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #5f696f;
  background: #fff;
  border: 0;
  font-size: 20px;
  line-height: 1;
}

.static-action-favorite span {
  margin-top: 4px;
  font-size: 9px;
}

.static-action-favorite.is-active {
  color: #ff5000;
}

.static-detail {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  max-width: 920px;
  margin: 0;
  padding: 38px 0 70px;
}

.static-detail h2 {
  margin: 0 0 24px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 34px;
  font-weight: 500;
}

.static-reviews {
  margin-bottom: 52px;
  padding: 0 0 36px;
  border-bottom: 1px solid #e6e9eb;
}

.static-reviews__heading {
  display: flex;
  margin-bottom: 18px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.static-reviews__heading p {
  margin: 0 0 5px;
  color: #df4b13;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.static-reviews__heading h2 {
  margin: 0;
  font-size: 30px;
}

.static-reviews__heading > span {
  color: #8a9296;
  font-size: 10px;
}

.static-review__tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 22px;
  gap: 7px;
}

.static-review__tags span {
  padding: 5px 10px;
  color: #8b633e;
  background: #fff7ed;
  border-radius: 16px;
  font-size: 10px;
}

.static-review__list {
  display: grid;
  gap: 0;
}

.static-review__footer {
  display: flex;
  padding: 22px 0 4px;
  justify-content: center;
  border-top: 1px solid #edf0f1;
}

.static-review__toggle {
  min-width: 156px;
  padding: 10px 24px;
  color: #1d252b;
  background: #fff;
  border: 1px solid #d8dde0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.static-review__toggle:hover {
  color: #e54b12;
  background: #fff8f2;
  border-color: #f0a37e;
}

body.review-drawer-open {
  overflow: hidden;
}

.static-review-drawer[hidden] {
  display: none;
}

.static-review-drawer {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.static-review-drawer__backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(248, 249, 250, 0.16);
  backdrop-filter: blur(3px);
}

.static-review-drawer__panel {
  position: absolute;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  display: flex;
  width: min(1120px, 63vw);
  max-width: 100%;
  height: 100%;
  flex-direction: column;
  background: #fff;
  box-shadow: 1px 0 0 #dfe3e6;
  animation: static-review-drawer-in 220ms ease-out;
}

.static-review-drawer__header {
  display: flex;
  min-height: 76px;
  padding: 14px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #edf0f1;
}

.static-review-drawer__header p {
  margin: 0 0 3px;
  color: #df4b13;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.static-review-drawer__header h2 {
  margin: 0;
  font-size: 24px;
}

.static-review-drawer__close {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: #4f5960;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.static-review-drawer__close:hover {
  color: #111820;
  background: #f3f4f5;
}

.static-review-drawer__close:focus-visible {
  outline: 2px solid #ff6a22;
  outline-offset: 2px;
}

.static-review-drawer__body {
  overflow-y: auto;
  padding: 18px 28px 32px;
  overscroll-behavior: contain;
}

.static-review-drawer__tags {
  margin-bottom: 16px;
}

.static-review-drawer__tags span {
  padding: 7px 12px;
  color: #2f363b;
  background: #fff;
  border: 1px solid #dde1e3;
  border-radius: 7px;
}

.static-review-drawer__tags span:first-child {
  color: #f04d1a;
  background: #fff7f3;
  border-color: #ffcbb7;
}

.static-review-drawer__tools {
  display: flex;
  margin-bottom: 4px;
  padding: 10px 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #697279;
  border-bottom: 1px solid #edf0f1;
  font-size: 11px;
}

.static-review-drawer__list .static-review {
  padding: 20px 0;
}

@keyframes static-review-drawer-in {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.static-review {
  padding: 18px 0;
  border-top: 1px solid #edf0f1;
}

.static-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.static-review__head strong {
  font-size: 12px;
  font-weight: 600;
}

.static-review__head span,
.static-review__sku {
  color: #8c9499;
  font-size: 10px;
}

.static-review__sku {
  margin: 4px 0 8px;
}

.static-review__content {
  margin: 8px 0 10px;
  color: #3f484e;
  font-size: 12px;
  line-height: 1.8;
}

.static-review__images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.static-review__images img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border: 1px solid #edf0f1;
}

.static-review__empty {
  padding: 32px 20px;
  color: #858e93;
  background: #f7f8f8;
  font-size: 12px;
  text-align: center;
}

.static-params {
  display: grid;
  margin-bottom: 30px;
  padding: 22px;
  background: #fff;
  border: 1px solid #ebeef0;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.static-param {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px;
}

.static-param dt {
  color: #899198;
}

.static-param dd {
  margin: 0;
  word-break: break-word;
}

.static-detail__images {
  display: grid;
  gap: 10px;
}

.static-detail__images img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

@media (max-width: 900px) {
  .static-review-drawer__panel {
    width: 100%;
  }

  .static-review-drawer__header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .static-review-drawer__body {
    padding: 14px 16px 28px;
  }

  .static-header__inner {
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 10px;
  }

  .static-nav {
    display: flex;
    width: 100%;
    padding-bottom: 4px;
    overflow-x: auto;
    gap: 20px;
    white-space: nowrap;
  }

  .static-category {
    width: 100%;
    padding: 20px 16px 50px;
  }

  .static-category__heading h1 {
    font-size: 34px;
  }

  .static-category__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }

  .static-shell {
    width: 100%;
    padding: 0 0 90px;
  }

  .static-crumb,
  .static-shopbar {
    margin-right: 16px;
    margin-left: 16px;
  }

  .static-product__main {
    display: block;
    padding: 0;
  }

  .static-product {
    display: block;
    padding: 0;
  }

  .static-gallery {
    display: block;
  }

  .static-gallery__main {
    width: 100%;
  }

  .static-gallery__thumbs {
    padding: 10px 14px;
    overflow-x: auto;
    flex-direction: row;
  }

  .static-gallery__thumbs img,
  .static-gallery__thumbs a {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
  }

  .static-buy {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 24px 20px;
  }

  .static-actions {
    right: 0;
    left: 0;
    width: 100%;
  }

  .static-detail {
    width: 100%;
    padding: 36px 16px 56px;
  }

  .static-params {
    grid-template-columns: 1fr;
  }
}
