:root {
  --red: #d94a3d;
  --red-dark: #b8362e;
  --ink: #20201e;
  --muted: #77736d;
  --paper: #fbf8f2;
  --cream: #f3eadc;
  --gold: #d5a755;
  --line: #e7dfd3;
  --white: #fff;
  --shadow: 0 18px 50px rgba(50, 37, 28, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.topbar {
  padding: 8px 24px;
  color: #f9eee5;
  background: var(--ink);
  font-size: 12px;
  letter-spacing: .12em;
  text-align: center;
}

.site-header {
  width: min(1440px, calc(100% - 48px));
  min-height: 84px;
  margin: auto;
  display: grid;
  grid-template-columns: 260px minmax(280px, 640px) 130px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 14px; }
.brand-generated { width: 255px; height: 70px; overflow: hidden; }
.brand img.brand-full { width: 255px; height: auto; max-height: 70px; border-radius: 0; object-fit: contain; mix-blend-mode: multiply; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-family: "STSong", "SimSun", serif; font-size: 23px; letter-spacing: .11em; white-space: nowrap; }
.brand-copy small { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .22em; }
.search {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: visible;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(217,74,61,.09); }
.search > span { padding-left: 19px; color: var(--muted); font-size: 24px; transform: rotate(-15deg); }
.search input { min-width: 0; flex: 1; height: 100%; padding: 0 14px; border: 0; outline: 0; background: transparent; }
.search button { align-self: stretch; padding: 0 25px; border: 0; color: #fff; background: var(--red); font-weight: 700; }
.search button[type="submit"] { border-radius: 0 999px 999px 0; }
.search-suggestions { position:absolute;z-index:60;top:calc(100% + 8px);right:0;left:0;padding:10px;background:#fff;border:1px solid #e1e4e8;border-radius:10px;box-shadow:0 10px 28px rgba(28,31,36,.16); }
.search-suggestion-title { padding:4px 8px 7px;color:#777d86;font-size:11px; }
.search-suggestion-list { display:flex;flex-wrap:wrap;gap:6px; }
.search-suggestion-list button { min-height:32px;padding:5px 10px;border:1px solid #e1e4e8;border-radius:18px;color:#3f444c;background:#f8f9fa;font-size:12px; }
.search-suggestion-list button:hover,.search-suggestion-list button:focus-visible { color:#fff;border-color:var(--red);background:var(--red); }
.search-suggestion-clear { float:right;padding:2px 6px;border:0;color:#8a8f97;background:transparent;font-size:11px; }
.quote-button { height: 44px; padding: 0 15px; border: 1px solid var(--ink); border-radius: 99px; background: transparent; font-weight: 700; }
.quote-button span { display: inline-grid; width: 22px; height: 22px; margin-left: 6px; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-size: 12px; }

.main-nav { border-block: 1px solid var(--line); background: rgba(251,248,242,.92); }
.nav-inner { width: min(1440px, calc(100% - 48px)); height: 48px; margin: auto; display: flex; align-items: center; gap: 36px; }
.nav-inner a { position: relative; color: #5d5954; font-size: 14px; font-weight: 700; }
.nav-inner a:hover, .nav-inner a.active { color: var(--red); }
.nav-inner a.active::after { content: ""; position: absolute; right: 10%; bottom: -16px; left: 10%; height: 2px; background: var(--red); }

main { overflow: hidden; }
.hero {
  width: min(1440px, calc(100% - 48px));
  min-height: 560px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  border-radius: 28px;
  background: #efe4d3;
  overflow: hidden;
}
.hero-content { z-index: 2; padding: clamp(54px, 7vw, 96px); align-self: center; }
.eyebrow { margin: 0 0 12px; color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .24em; }
.hero h1 { margin: 0; font-family: "STSong", "SimSun", serif; font-size: clamp(48px, 6vw, 86px); line-height: 1.03; letter-spacing: -.04em; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-lead { max-width: 440px; margin: 24px 0 30px; color: #5f5a53; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.primary-button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 99px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 22px rgba(217,74,61,.2);
  font-weight: 800;
  transition: transform .2s, background .2s;
}
.primary-button:hover { background: var(--red-dark); transform: translateY(-2px); }
.text-button { border: 0; background: none; font-weight: 800; }
.hero-stats { margin-top: 54px; display: flex; gap: 34px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: Georgia, serif; font-size: 24px; }
.hero-stats span { margin-top: 4px; color: var(--muted); font-size: 11px; }

.hero-art { position: relative; min-height: 560px; background: linear-gradient(145deg, #de5a4d, #c73d33); overflow: hidden; }
.sun { position: absolute; top: 74px; right: 82px; width: 152px; height: 152px; border-radius: 50%; background: #efba5e; opacity: .95; }
.arch { position: absolute; bottom: -80px; border: 2px solid rgba(255,246,233,.6); border-bottom: 0; border-radius: 220px 220px 0 0; }
.arch-one { left: 70px; width: 430px; height: 480px; }
.arch-two { left: 145px; width: 280px; height: 365px; }
.garment-card {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: rgba(255,255,255,.45);
  background: rgba(255,247,235,.16);
  box-shadow: 0 20px 55px rgba(92,20,15,.2);
  backdrop-filter: blur(8px);
  font: 800 18px Georgia, serif;
  letter-spacing: .25em;
}
.garment-card::before { content: ""; width: 48%; height: 34%; border: 4px solid currentColor; border-top: 0; clip-path: polygon(0 0, 50% 72%, 100% 0, 100% 100%, 0 100%); }
.garment-card span { position: absolute; bottom: 25%; }
.card-one { left: 16%; bottom: 12%; width: 240px; height: 320px; transform: rotate(-8deg); }
.card-two { right: 10%; bottom: 4%; width: 230px; height: 300px; transform: rotate(9deg); background: rgba(33,31,28,.18); }
.hero-seal { position: absolute; right: 30px; top: 40%; padding: 14px 11px; border: 1px solid rgba(255,255,255,.65); color: #fff; font-family: "STSong", serif; font-size: 20px; line-height: 1.15; }

.category-section, .catalog { width: min(1440px, calc(100% - 48px)); margin: 88px auto 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-heading h2, .catalog-toolbar h2 { margin: 0; font-family: "STSong", serif; font-size: 38px; }
.section-heading > p, .catalog-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.all-category-button { padding: 10px 0; border: 0; color: var(--red); background: transparent; font-size: 13px; font-weight: 800; }
.category-chips { display: flex; gap: 10px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: thin; }
.chip { flex: 0 0 auto; padding: 12px 20px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: #58544f; }
.chip:hover, .chip.active { border-color: var(--ink); color: #fff; background: var(--ink); }

.catalog { margin-top: 62px; }
.active-filters { margin: -8px 0 20px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; border-radius: 10px; background: #f1e6d8; color: #625b53; font-size: 12px; }
.active-filters button { margin-left: auto; border: 0; color: var(--red); background: transparent; font-weight: 800; }
.catalog-toolbar { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.catalog-toolbar p { margin-top: 7px; }
.catalog-toolbar label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.catalog-toolbar select { padding: 10px 34px 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
.product-card { min-width: 0; }
.product-media { position: relative; aspect-ratio: .86; overflow: hidden; border-radius: 15px; background: #eee8df; cursor: pointer; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-media img { transform: scale(1.045); }
.product-media .badge { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 60px); padding: 6px 9px; overflow: hidden; border-radius: 6px; color: var(--red-dark); background: rgba(255,249,242,.92); font-size: 10px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.add-quote {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  font-size: 22px;
  transition: color .2s, background .2s, transform .2s;
}
.add-quote:hover, .add-quote.added { color: #fff; background: var(--red); transform: translateY(-2px); }
.product-info { padding: 14px 3px 0; }
.product-category { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.product-info h3 { height: 44px; margin: 8px 0 9px; overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.product-bottom { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.price strong { color: var(--red); font-family: Georgia, serif; font-size: 21px; }
.price small { margin-left: 3px; color: var(--muted); font-size: 10px; }
.sales { color: #9a958e; font-size: 10px; }
.skeleton { min-height: 420px; border-radius: 15px; background: linear-gradient(90deg,#eee8df 25%,#f7f2eb 50%,#eee8df 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-state { padding: 90px 20px; text-align: center; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { font-size: 22px; }
.empty-state span { margin-top: 8px; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 48px 0 96px; }
.pagination button { min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pagination button:hover, .pagination button.active { border-color: var(--red); color: #fff; background: var(--red); }
.pagination button:disabled { opacity: .4; cursor: default; }

.advantages { display: grid; grid-template-columns: repeat(4,1fr); border-block: 1px solid var(--line); background: #f3eadc; }
.advantages article { min-height: 230px; padding: 48px clamp(22px,4vw,60px); border-right: 1px solid var(--line); }
.advantages article:last-child { border: 0; }
.advantages span { color: var(--red); font-family: Georgia, serif; font-size: 12px; }
.advantages h3 { margin: 25px 0 9px; font-family: "STSong", serif; font-size: 24px; }
.advantages p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
footer { padding: 62px 24px 38px; color: #f6eee3; background: var(--ink); text-align: center; }
.footer-brand { justify-content: center; }
.footer-brand img.brand-full { filter: invert(1) grayscale(1) brightness(2); mix-blend-mode: screen; }
.footer-brand .brand-copy small { color: #aaa39b; }
footer > p { color: #aaa39b; font-size: 12px; }
.copyright { margin-top: 35px; }

.product-dialog { width: min(1260px, calc(100% - 18px)); max-height: calc(100vh - 18px); padding: 0; border: 0; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); overflow: auto; }
.product-dialog::backdrop { background: rgba(27,24,21,.62); backdrop-filter: blur(3px); }
.close-dialog { position: sticky; z-index: 8; top: 16px; float: right; width: 42px; height: 42px; margin: 16px 16px -58px 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 5px 20px rgba(0,0,0,.14); font-size: 28px; }
.detail-layout { display: grid; grid-template-columns: .95fr 1.05fr; min-height: 620px; }
.detail-gallery { padding: 28px; background: #efe9e0; }
.detail-main-image { width: 100%; aspect-ratio: .9; border-radius: 14px; background: #fff; object-fit: contain; }
.thumbnails { display: grid; grid-template-columns: repeat(6,1fr); gap: 7px; margin-top: 10px; }
.thumbnails button { aspect-ratio: 1; padding: 0; border: 1px solid transparent; border-radius: 8px; background: #fff; overflow: hidden; }
.thumbnails button.active { border-color: var(--red); }
.thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { padding: 54px 48px 48px; }
.detail-copy .status { display: inline-flex; padding: 6px 9px; border-radius: 5px; color: var(--red-dark); background: #f5dcd7; font-size: 10px; font-weight: 800; }
.detail-copy h2 { margin: 15px 0 8px; font-family: "STSong", serif; font-size: 32px; line-height: 1.35; }
.detail-number { color: var(--muted); font-size: 12px; }
.detail-price { margin: 30px 0; padding: 20px; border-radius: 12px; background: #f3e8da; }
.detail-price span { color: var(--muted); font-size: 12px; }
.detail-price strong { display: block; margin-top: 5px; color: var(--red); font: 34px Georgia, serif; }
.detail-actions { display: flex; gap: 10px; margin-bottom: 30px; }
.ghost-button { min-height: 46px; padding: 0 22px; border: 1px solid var(--line); border-radius: 99px; background: transparent; font-weight: 700; }
.attribute-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 28px; padding: 0; list-style: none; }
.attribute-list li { padding: 8px 10px; border-radius: 6px; color: #625e59; background: #fff; font-size: 11px; }
.detail-section { margin-top: 28px; }
.detail-section h3 { margin: 0 0 12px; font-family: "STSong", serif; font-size: 20px; }
.detail-nav { position: sticky; z-index: 6; top: 0; padding: 13px 30px; display: flex; justify-content: center; gap: 32px; border-bottom: 1px solid var(--line); background: rgba(251,248,242,.94); backdrop-filter: blur(12px); }
.detail-nav button { padding: 7px 3px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 13px; font-weight: 800; }
.detail-nav button:hover { color: var(--red); border-color: var(--red); }
.detail-scroll-note { position: sticky; z-index: 6; top: 0; padding: 13px 76px 13px 24px; border-bottom: 1px solid var(--line); color: #665f56; background: rgba(251,248,242,.95); backdrop-filter: blur(12px); font-size: 12px; line-height: 1.6; text-align: center; }
.detail-down-hint { align-self: center; color: var(--muted); font-size: 11px; }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 22px; }
.size-option { min-width: 54px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-align: center; }
.size-option strong, .size-option small { display: block; }
.size-option strong { font-size: 12px; }
.size-option small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.detail-below { padding: 0 clamp(20px,7vw,90px) 80px; background: #fff; }
.detail-block { padding-top: 58px; scroll-margin-top: 55px; }
.detail-block-title { margin-bottom: 26px; text-align: center; }
.detail-block-title .eyebrow { margin-bottom: 9px; }
.detail-block-title h2 { margin: 0; font-family: "STSong", serif; font-size: 31px; }
.detail-block-title p { max-width: 620px; margin: 9px auto 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.size-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.size-chart-grid img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: zoom-in; }
.size-chart-empty { padding: 26px; border-radius: 12px; color: #766e63; background: #f5eee4; text-align: center; font-size: 12px; line-height: 1.8; }
.detail-long-images { width: min(790px, 100%); margin: auto; display: grid; gap: 0; }
.detail-long-images img { width: 100%; height: auto; display: block; background: #f3eee7; cursor: zoom-in; }
.detail-photo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.detail-photo-grid img { width: 100%; aspect-ratio: 1; border-radius: 10px; background: #f3eee7; object-fit: cover; cursor: zoom-in; }
.image-count { display: inline-flex; margin-left: 7px; padding: 3px 7px; border-radius: 99px; color: var(--red); background: #f5dcd7; font: 700 10px sans-serif; vertical-align: middle; }
.sku-table-wrap { max-height: 300px; border: 1px solid var(--line); border-radius: 10px; overflow: auto; }
.sku-table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
.sku-table th, .sku-table td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: left; }
.sku-table th { position: sticky; top: 0; background: #f1e9de; }
.partial-note { margin: 20px 0; padding: 14px; border-left: 3px solid var(--gold); color: #6d5d46; background: #fff5df; font-size: 12px; line-height: 1.7; }
.detail-loading { padding: 100px; text-align: center; color: var(--muted); }

.quote-drawer { position: fixed; z-index: 30; top: 0; right: 0; width: min(430px, 100%); height: 100%; padding: 28px; display: flex; flex-direction: column; background: var(--paper); box-shadow: -20px 0 60px rgba(0,0,0,.2); transform: translateX(105%); transition: transform .3s ease; }
.quote-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: "STSong", serif; font-size: 30px; }
.drawer-head button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 28px; }
.quote-list { flex: 1; overflow: auto; }
.quote-empty { padding: 80px 10px; color: var(--muted); text-align: center; }
.quote-item { display: grid; grid-template-columns: 72px 1fr 28px; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.quote-item img { width: 72px; height: 86px; border-radius: 8px; background: #eee8df; object-fit: cover; }
.quote-item strong { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.quote-item span { display: block; margin-top: 7px; color: var(--red); font: 14px Georgia, serif; }
.cart-item-note { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.cart-item-note textarea { display: block; width: 100%; min-height: 48px; margin-top: 4px; padding: 7px; resize: vertical; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.quote-item button { align-self: start; border: 0; color: var(--muted); background: transparent; font-size: 20px; }
.drawer-foot { display: flex; gap: 10px; padding-top: 20px; }
.drawer-foot .primary-button { flex: 1; }
.overlay { position: fixed; z-index: 29; inset: 0; visibility: hidden; opacity: 0; background: rgba(26,23,21,.46); transition: opacity .3s; }
.overlay.open { visibility: visible; opacity: 1; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 26px; padding: 12px 18px; border-radius: 99px; color: #fff; background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 12px); transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.category-dialog { width: min(980px, calc(100% - 30px)); max-height: calc(100vh - 46px); padding: 34px; border: 0; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.category-dialog::backdrop, .image-viewer::backdrop { background: rgba(27,24,21,.64); backdrop-filter: blur(4px); }
.category-dialog-head { display: flex; justify-content: space-between; gap: 20px; }
.category-dialog-head h2 { margin: 0; font-family: "STSong", serif; font-size: 34px; }
.category-dialog-head p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.category-dialog-head button { width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 50%; background: #eee6dc; font-size: 26px; }
.category-search { height: 46px; margin: 24px 0; padding: 0 16px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 99px; background: #fff; }
.category-search span { color: var(--muted); font-size: 20px; }
.category-search input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; }
.category-tree { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.category-group { padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.category-group h3 { margin: 0 0 13px; display: flex; justify-content: space-between; font-family: "STSong", serif; font-size: 18px; }
.category-group h3 button { padding: 0; border: 0; background: transparent; font: inherit; font-weight: 800; }
.category-group h3 button:hover { color: var(--red); }
.category-group h3 small { color: var(--muted); font: 500 10px sans-serif; }
.category-links { display: flex; flex-wrap: wrap; gap: 7px; }
.category-links button { padding: 7px 9px; border: 0; border-radius: 6px; color: #625d57; background: #f5f0e9; font-size: 11px; }
.category-links button:hover { color: #fff; background: var(--red); }
.image-viewer { width: min(1200px, calc(100% - 24px)); height: calc(100vh - 24px); padding: 52px 16px 16px; border: 0; background: transparent; overflow: hidden; }
.image-viewer button { position: fixed; z-index: 3; top: 22px; right: 30px; width: 42px; height: 42px; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.72); font-size: 27px; }
.image-viewer img { max-width: 100%; max-height: calc(100dvh - 100px); height: auto; margin: auto; display: block; object-fit: contain; border-radius: 8px; background: #fff; touch-action: pan-y; }
.image-viewer .viewer-nav { top: 50%; width: 48px; height: 58px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.45); border-radius: 8px; font-size: 42px; line-height: 1; }
.image-viewer .viewer-prev { right: auto; left: 22px; }
.image-viewer .viewer-next { right: 22px; }
.viewer-image-count { position: fixed; right: 50%; bottom: 18px; transform: translateX(50%); padding: 7px 12px; border-radius: 999px; color: #fff; background: rgba(0,0,0,.72); font-size: 13px; font-variant-numeric: tabular-nums; }
@media(max-width:600px){.image-viewer{width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:60px 8px 52px;border:0}.image-viewer .viewer-prev{left:8px}.image-viewer .viewer-next{right:8px}.image-viewer .viewer-nav{width:38px;height:48px;font-size:34px}.image-viewer button#closeImageViewer{top:12px;right:12px}}
.back-top { position: fixed; z-index: 20; right: 22px; bottom: 22px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; }
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

@media (max-width: 1020px) {
  .site-header { grid-template-columns: 230px 1fr auto; }
  .brand-copy small { display: none; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 56px 44px; }
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .advantages { grid-template-columns: repeat(2,1fr); }
  .advantages article:nth-child(2) { border-right: 0; }
  .advantages article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .topbar { padding-inline: 12px; letter-spacing: .04em; }
  .site-header { width: calc(100% - 28px); grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; }
  .brand-generated { width: 205px; height: 55px; }
  .brand img.brand-full { width: 205px; max-height: 55px; }
  .brand-copy strong { font-size: 18px; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .quote-button { grid-column: 2; grid-row: 1; font-size: 0; }
  .quote-button::before { content: "选款"; font-size: 12px; }
  .quote-button span { font-size: 11px; }
  .nav-inner { width: calc(100% - 28px); gap: 24px; overflow-x: auto; }
  .nav-inner a { flex: 0 0 auto; }
  .hero { width: calc(100% - 28px); min-height: auto; grid-template-columns: 1fr; margin-top: 14px; }
  .hero-content { padding: 48px 28px; }
  .hero h1 { font-size: 50px; }
  .hero-stats { margin-top: 42px; gap: 23px; }
  .hero-art { min-height: 360px; }
  .category-section, .catalog { width: calc(100% - 28px); margin-top: 66px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 8px; }
  .catalog-toolbar { align-items: flex-start; }
  .catalog-toolbar h2, .section-heading h2 { font-size: 30px; }
  .catalog-toolbar label { font-size: 0; }
  .catalog-toolbar select { font-size: 12px; }
  .product-grid { grid-template-columns: repeat(2,1fr); gap: 24px 10px; }
  .product-info h3 { font-size: 13px; }
  .product-media .badge { display: none; }
  .advantages { grid-template-columns: 1fr; }
  .advantages article { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-gallery { padding: 18px; }
  .detail-copy { padding: 30px 22px 38px; }
  .detail-copy h2 { font-size: 25px; }
  .thumbnails { grid-template-columns: repeat(5,1fr); }
  .detail-nav { justify-content: flex-start; gap: 22px; overflow-x: auto; }
  .detail-nav button { flex: 0 0 auto; }
  .detail-below { padding-inline: 14px; }
  .size-chart-grid, .category-tree { grid-template-columns: 1fr; }
  .detail-photo-grid { grid-template-columns: repeat(2,1fr); }
  .category-dialog { padding: 24px 16px; }
}
