.web-detail {
  --ink: #24221e;
  --muted: #6d655b;
  --gold: #89613b;
  --line: #e3ddd3;
  --surface: #f6f3ee;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 14px/1.55 Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}
.web-detail *, .web-detail *::before, .web-detail *::after { box-sizing: border-box; }
.web-detail a { color: inherit; text-decoration: none; }
.web-detail button { font: inherit; color: inherit; cursor: pointer; }
.web-detail :is(button, a, [tabindex]):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.web-detail-header { border-bottom: 1px solid var(--line); background: #fff; }
.web-detail-header > div {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  max-width: 1192px;
  margin: auto;
  padding: 0 24px;
}
.web-detail-header > div > span { font-size: 15px; font-weight: 600; }
.web-detail-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.web-detail-back > span { font-size: 23px; font-weight: 400; line-height: 1; }
.web-detail-brand { justify-self: end; display: flex; }
.web-detail-brand img { display: block; width: 70px; height: 30px; object-fit: contain; }
.web-detail-main { max-width: 1192px; padding: 0 24px; margin: auto; }
.web-detail-main > :is(.web-detail-overview, .web-detail-introduction) { width: 100%; min-width: 0; max-width: none; }
.web-detail-crumb { display: flex; gap: 10px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.web-detail-crumb a:hover { color: var(--gold); }
.web-detail-overview { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.web-detail-media { display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.web-detail-media:not(:has(.web-detail-thumbs)) { grid-template-columns: minmax(0, 1fr); }
.web-detail-gallery { position: relative; min-width: 0; isolation: isolate; overflow: hidden; border-radius: 4px; }
.web-detail-slides {
  display: flex;
  aspect-ratio: 3 / 4;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.web-detail-slides::-webkit-scrollbar { display: none; }
.web-detail-slide { display: block; flex: 0 0 100%; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; scroll-snap-align: start; }
.web-detail-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; user-select: none; -webkit-user-drag: none; }
.web-detail-count {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-end: 12px;
  padding: 3px 9px;
  border: 1px solid #fff;
  border-radius: 3px;
  background: #ffffffea;
  color: var(--ink);
  font-size: 11px;
  pointer-events: none;
}
.web-detail-step {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  min-height: 57px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fffffff0;
  font-size: 33px !important;
  line-height: 1;
  opacity: .3;
}
.web-detail-step:is(:hover, :focus-visible) { opacity: 1; }
.web-detail-step[data-detail-step="-1"] { left: 10px; }
.web-detail-step[data-detail-step="1"] { right: 10px; }
.web-detail-thumbs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(5px, 1.35vw, 14px);
  width: 70%;
}
.web-detail-thumbs button, .web-detail-thumb-empty {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px;
  background: var(--surface);
}
.web-detail-thumbs button[aria-pressed="true"] { border-color: var(--gold); }
.web-detail-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.web-detail-thumb-empty { color: #8c8479; font-size: 12px; }
.web-detail-no-image { display: grid; place-items: center; aspect-ratio: 3 / 4; margin: 0; background: var(--surface); color: var(--muted); }
.web-detail-summary { min-width: 0; padding-top: 16px; font-family: "Noto Serif SC", "Songti SC", SimSun, "Noto Serif CJK SC", Georgia, serif; }
.web-detail-title { padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.web-detail-title h1 { margin: 0; font-size: clamp(32px, 3.6vw, 48px); font-weight: 700; line-height: 1.18; overflow-wrap: anywhere; }
.web-detail-title h1::after { content: ""; display: block; width: 46px; height: 2px; margin-top: 16px; background: var(--gold); }
.web-detail-options { margin-top: 24px; container-type: inline-size; }
.web-detail-options h2 { margin: 0 0 14px; font-size: 22px; font-weight: 700; }
.web-detail-variants { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; gap: clamp(4px, 1.6cqi, 8px); }
.web-detail-variants a {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  gap: 3px;
  padding: 5px 2px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  font-size: 11px;
  font-size: clamp(10px, 3.45cqi, 14px);
}
.web-detail-variants a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-detail-variants a:is([aria-current="true"], :hover) {
  border-color: var(--gold);
  background: #f7f2eb;
  color: #714c2d;
}
.web-detail-variants i { flex: 0 0 7px; height: 7px; border: 1px solid #0004; border-radius: 50%; background: var(--swatch); }
.web-detail-facts { margin: 22px 0 0; display: grid; gap: 12px; font-size: 15px; }
.web-detail-facts > div { display: grid; grid-template-columns: 5em minmax(0, 1fr); align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.web-detail-facts dt { color: var(--muted); }
.web-detail-facts dd { min-width: 0; margin: 0; }
.web-detail-facts > div:not(.web-detail-size-row) dd, .web-detail-size-row dd > span { overflow: hidden; text-overflow: ellipsis; }
.web-detail-size-row dd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.web-detail .web-detail-size-row a { flex: none; color: var(--gold); font-size: .93em; }
.web-detail-consult { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
.web-detail-consult a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 3px; border: 1px solid var(--gold); font-size: 13px; }
.web-detail a.web-detail-inquire { background: #2c261f; color: #fff; border-color: #2c261f; }
.web-detail a.web-detail-more { display: none; color: #714c2d; background: #fff; }
.web-detail-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.web-detail-features li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
  font: 500 12px/1.35 Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.web-detail-feature-icon {
  display: block;
  width: min(100%, 78px);
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--surface);
}
img.web-detail-feature-icon { object-fit: cover; }
span.web-detail-feature-icon { background: var(--surface) url('/assets/product-feature-icons.webp') no-repeat; }
.web-detail-introduction { margin: 40px 0 56px; border-top: 1px solid var(--line); padding-top: 22px; scroll-margin-top: 12px; }
.web-detail-introduction p { margin: 0 0 12px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.web-detail-introduction a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.web-detail-photos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.web-detail-photos figure { margin: 0; min-width: 0; }
.web-detail .detail-image-open { width: 100%; display: block; border: 0; padding: 0; background: var(--surface); cursor: zoom-in; }
.web-detail .detail-image-open img { display: block; width: 100%; height: auto; }
.web-detail-photos figcaption { padding: 8px 0 3px; font-size: 12px; color: var(--muted); }
.web-detail-extra { margin-top: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.web-detail-extra p { margin-top: 8px; }
.web-detail-extra summary { cursor: pointer; }
.web-detail-extra ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.web-detail-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px max(14px, calc((100vw - 1144px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.web-detail-top { position: fixed; right: 16px; bottom: 18px; z-index: 2; display: none; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; box-shadow: 0 2px 9px #0000000d; }
.web-detail-top.visible { display: grid; }
.web-detail-dialog { width: min(96vw, 1100px); max-width: none; max-height: 92vh; margin: auto; border: none; padding: 40px 12px 12px; background: #fff; color: var(--ink); }
.web-detail-dialog::backdrop { background: #1a1612ca; }
.web-detail-dialog img { display: block; max-width: 100%; height: auto; margin: auto; }
.web-detail-dialog button { position: absolute; right: 8px; top: 4px; min-width: 33px; min-height: 33px; border: 1px solid var(--line); border-radius: 3px; background: #fff; line-height: 1; font-size: 21px; }
.web-detail-dialog[data-detail-zoom] { height: 92vh; height: 92dvh; max-height: 92dvh; padding: 0; overflow: hidden; background: transparent; }
.web-detail-dialog[data-detail-zoom] button { z-index: 1; }
.web-detail-dialog[data-detail-zoom] .web-detail-viewer { height: 100%; overflow: hidden; touch-action: none; user-select: none; cursor: zoom-in; }
.web-detail-dialog[data-detail-zoom] img { width: 100%; height: 100%; object-fit: contain; }
.web-detail-dialog[data-detail-zoom] .web-detail-viewer[data-zoomed] { cursor: grab; }
.web-detail-dialog[data-detail-zoom] .web-detail-viewer[data-zoomed]:active { cursor: grabbing; }
.web-detail-dialog[data-detail-chart] { width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; background: #111; }
.web-detail-dialog[data-detail-chart]::backdrop { background: #111; }
.web-detail-dialog[data-detail-chart] .web-detail-viewer { width: calc(100% - 10px); margin-inline: auto; }
.web-detail-dialog[data-detail-chart] button, .web-detail-size-guide button {
  position: absolute;
  z-index: 1;
  inset-block-start: calc(12px + env(safe-area-inset-top));
  inset-inline-end: calc(12px + env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #232323e6;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}
.web-detail-size-guide { width: min(calc(100% - 10px), 500px); max-width: none; max-height: 88dvh; border: 0; border-radius: 10px; padding: 0; color: var(--ink); }
.web-detail-size-guide::backdrop { background: #111c; }
.web-detail-size-guide button { inset-block-start: 10px; inset-inline-end: 10px; }
.web-detail-size-sheet { padding: 22px 18px; }
.web-detail-size-sheet h2 { margin: 0 52px 12px 0; font-size: 21px; }
.web-detail-size-sheet p, .web-detail-size-sheet dl { margin: 0 0 14px; }
.web-detail-size-sheet dl > div { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--line); padding: 8px 0; }
.web-detail-size-sheet dd { margin: 0; color: var(--muted); }
.web-detail .web-detail-size-sheet a { color: var(--gold); }
body.web-detail:has(.web-detail-dialog[open], .web-detail-size-guide[open]) { overflow: hidden; }

@media (max-width: 720px) {
  .web-detail-header > div { min-height: 48px; padding: 0 12px; }
  .web-detail-header > div > span { font-size: 14px; }
  .web-detail-brand img { width: 54px; height: 24px; }
  .web-detail-main { padding: 0 8px; }
  .web-detail-crumb { display: none; }
  .web-detail-overview { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .web-detail-media { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .web-detail-gallery { margin-top: 5px; }
  .web-detail-step { width: 38px; min-height: 44px; border: 0; font-size: 29px !important; opacity: .72; }
  .web-detail-step[data-detail-step="-1"] { left: 7px; }
  .web-detail-step[data-detail-step="1"] { right: 7px; }
  .web-detail-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 230px); margin: 0 auto; gap: 6px; }
  .web-detail-summary { --fact-gold: #a87736; --detail-rule: #ebe5dc; padding: 17px 12px 0; }
  .web-detail-title { position: relative; padding-bottom: 12px; border-bottom-color: var(--detail-rule); }
  .web-detail-title h1 { padding-inline-end: 98px; font-size: clamp(25px, 6.5vw, 30px); line-height: 1.15; }
  .web-detail-title h1::after { width: 36px; margin-top: 6px; background: var(--fact-gold); }
  .web-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 0;
    margin: 5px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--detail-rule);
    font: 11px/1.35 Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  }
  .web-detail-facts > div { grid-template-columns: max-content minmax(0, 1fr); align-items: start; gap: 6px; }
  .web-detail-facts > div:nth-child(odd) { padding-inline-end: 7px; }
  .web-detail-facts > div:nth-child(even) { padding-inline-start: 9px; border-inline-start: 1px solid var(--detail-rule); }
  .web-detail-facts dt { display: flex; align-items: center; position: relative; gap: 5px; }
  .web-detail-facts dt::before { content: ""; width: 18px; height: 18px; border-radius: 4px; background: #f8f2e8; }
  .web-detail-facts dt::after { content: ""; position: absolute; inset-inline-start: 4px; width: 10px; height: 8px; color: var(--fact-gold); }
  [data-detail-fact="code"] dt::after { background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 2.5px); }
  [data-detail-fact="style"] dt::after { width: 7px; height: 7px; inset-inline-start: 5.5px; border: 1px solid; transform: rotate(45deg); box-shadow: 1.5px 1.5px 0 -1px currentColor; }
  [data-detail-fact="material"] dt::after { background: repeating-linear-gradient(45deg, transparent 0 2px, currentColor 2px 2.7px), repeating-linear-gradient(-45deg, transparent 0 2px, currentColor 2px 2.7px); }
  [data-detail-fact="size"] dt::after { height: 6px; border: 1px solid; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 3px) top / 100% 2px no-repeat; }
  .web-detail-facts dd { padding-top: 2px; white-space: normal; overflow-wrap: anywhere; }
  .web-detail-facts > div:not(.web-detail-size-row) dd, .web-detail-size-row dd > span { overflow: visible; text-overflow: clip; }
  .web-detail-facts > div[data-detail-fact="code"] dd { white-space: nowrap; overflow-x: auto; scrollbar-width: none; font-size: clamp(9px, 2.65vw, 11px); }
  .web-detail .web-detail-size-row a { position: absolute; top: 0; inset-inline-end: 0; display: flex; align-items: center; gap: 4px; min-height: 29px; color: var(--fact-gold); font-size: 11px; white-space: nowrap; }
  .web-detail-options { margin-top: 12px; }
  .web-detail-options h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 17px; }
  .web-detail-options h2::before { content: ""; width: 3px; height: 14px; border-radius: 1px; background: var(--fact-gold); }
  .web-detail-variants { gap: 7px; }
  .web-detail-variants:not(:has(a:nth-child(4))) { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .web-detail-variants a { min-height: 30px; gap: 5px; padding: 4px; border-radius: 5px; background: #fbfaf8; font: 11px/1.3 Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
  .web-detail-variants a:is([aria-current="true"], :hover) { border-color: var(--fact-gold); background: #faf3e8; }
  .web-detail-variants a[aria-current="true"] i { outline: 1px solid var(--fact-gold); outline-offset: 1px; }
  .web-detail-features { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--detail-rule); }
  .web-detail-features li { font-size: 10.8px; }
  .web-detail-feature-icon { width: min(90%, 70.2px); }
  .web-detail-consult {
    position: fixed;
    z-index: 3;
    inset: auto 0 0;
    gap: 8px;
    margin: 0;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
  }
  .web-detail-consult:has(.web-detail-more) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web-detail a.web-detail-more { display: flex; }
  .web-detail-introduction { margin: 23px 0 28px; padding: 12px 4px 0; }
  .web-detail-top { bottom: calc(68px + env(safe-area-inset-bottom)); }
  .web-detail-footer { padding-bottom: calc(73px + env(safe-area-inset-bottom)); }
}
