:root {
  --green: #174c39;
  --dark: #132e25;
  --ink: #1e2c25;
  --muted: #58685e;
  --line: #d6ddd6;
  --serif: 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'Noto Serif SC', SimSun, serif;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
:lang(en) { --serif: Georgia, 'Times New Roman', serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, dl, dd, p, ul { margin: 0; }
html:has(dialog[open]) { overflow: hidden; }
ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button, a { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button { padding: 0; border: 0; background: transparent; }
a { color: inherit; text-decoration: none; }
button, a, input, textarea { transition: background-color .18s, color .18s, border-color .18s; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #b97432; outline-offset: 4px; }
button:disabled { opacity: .65; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; object-fit: cover; }
.layout { width: min(90%, 1450px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: 12px; left: 12px; background: white; padding: .75rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; font-weight: 600; padding: .62rem 1.3rem; border: 1px solid; border-radius: 2rem; font-size: .95rem; line-height: 1.5; }
.solid, .outline:hover { background: var(--green); color: white; border-color: var(--green); }
.solid:hover { background: var(--dark); border-color: var(--dark); }
.outline { color: var(--green); border-color: #80a292; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: clamp(460px, 40vw, 720px); color: #fffdf6; background: #1c3028; padding-top: clamp(1rem, 1.4vw, 1.7rem); }
.hero-film, .hero::before { position: absolute; width: 100%; height: 100%; inset: 0; }
.hero-film { z-index: -2; object-fit: cover; object-position: center; }
.hero::before { content: ''; z-index: -1; background: linear-gradient(90deg, #0d211ee6, #0b211ba1 28%, #172c2326 61%, #111d1808 92%), linear-gradient(180deg, #09150f40, transparent 40%, #101b1324); }
.hero :focus-visible { outline-color: #ffce96; }
.nav-shell { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; border-radius: 4rem; padding: .52rem 1.5rem .52rem 1.2rem; min-height: 4rem; background: rgba(15, 34, 28, .55); border: 1px solid #e4eee052; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.brand { display: inline-flex; justify-self: start; align-items: center; gap: .64rem; white-space: nowrap; }
.brand-mark { position: relative; display: block; width: 2.15rem; aspect-ratio: 1; flex: none; }
.brand-mark i { position: absolute; inset: 0; background: white; }
.brand-mark i:first-child { clip-path: polygon(50% 1%, 96% 24%, 50% 46%, 4% 24%); }
.brand-mark i:nth-child(2) { clip-path: polygon(1% 29%, 46% 52%, 46% 99%, 1% 76%, 1% 60%, 31% 75%, 31% 67%, 1% 52%); }
.brand-mark i:nth-child(3) { clip-path: polygon(54% 52%, 99% 29%, 99% 46%, 70% 61%, 70% 69%, 99% 54%, 99% 76%, 54% 99%); }
.wordmark { display: grid; gap: .2rem; }
.wordmark b { font-size: 1.28rem; letter-spacing: .045em; line-height: 1.15; }
.wordmark span { align-self: start; font: 600 .64rem/1 Arial,sans-serif; letter-spacing: .115em; }
.desktop-nav, .nav-tools, .language, .supplier { display: flex; align-items: center; }
.desktop-nav { gap: clamp(2rem, 4vw, 4rem); font-weight: 600; }
.desktop-nav > *, .language { min-height: 42px; display: flex; align-items: center; }
.desktop-nav > :hover, .language:hover { color: #f3d09f; }
.nav-tools { justify-self: end; gap: clamp(1rem, 2vw, 2rem); }
.supplier { padding: .55rem 1.1rem; border-radius: 2.25rem; border: 1px solid #ffffffbf; min-height: 42px; font-size: .95rem; font-weight: 600; white-space: nowrap; }
.supplier:hover { background-color: #ffffff24; }
.language { gap: .5rem; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.globe { width: 1.12rem; height: 1.12rem; position: relative; border-radius: 50%; border: 1.5px solid currentColor; }
.globe::before, .globe::after { content: ''; position: absolute; }
.globe::before { inset: -1px 3px; border-radius: 50%; border: 1px solid; }
.globe::after { inset: 45% 0 auto; border-top: 1px solid; }
.menu-toggle, #mobile-menu { display: none; }

.hero-content { margin-top: auto; position: relative; padding-block: 88px clamp(36px, 4vw, 72px); }
h1 { font: 600 clamp(56px, 5.2vw, 88px)/1.14 var(--serif); letter-spacing: -.02em; }
h1:lang(en) { font-weight: 400; line-height: 1; }
.film-tools { position: absolute; bottom: clamp(36px, 4vw, 72px); right: 0; display: flex; align-items: center; color: white; background: #0e201db3; border: 1px solid #ffffff61; border-radius: 6px; }
.film-tools button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: 14px; font-weight: 500; }
.film-tools button:hover { background: #ffffff21; }
#film-open { padding: 0 16px; position: relative; }
#film-open::before { content: ''; position: absolute; inset: 12px auto 12px 0; border-left: 1px solid #ffffff5c; }
#film-toggle svg { fill: currentColor; }
#film-toggle.playing .play, #film-toggle:not(.playing) .pause { display: none; }
#film-dialog { width: min(1120px, 94vw); background: #101714; color: white; border-radius: 8px; }
.film-heading { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 20px; }
.film-heading h2 { line-height: 1.4; font-size: 16px; font-weight: 500; }
#film-close { color: white; background: transparent; }
#film-close:hover { background: #ffffff1a; }
#film-player { display: block; width: 100%; aspect-ratio: 16/9; max-height: calc(100dvh - 92px); background: black; }
.search { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding: 4px 4px 4px 20px; width: min(100%, 464px); color: var(--dark); background: white; border-radius: 6px; }
.search:focus-within { outline: 2px solid #e5bd83; outline-offset: 3px; }
.search input { flex: 1; min-width: 0; height: 44px; padding: 0; background: transparent; border: 0; font-size: 16px; }
.search input:focus-visible { outline: none; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search button { min-height: 44px; padding: 0 24px; color: #fff; border-radius: 4px; background: var(--green); font-weight: 600; white-space: nowrap; }
.search button:hover { background: var(--dark); }
.search-icon { display: inline-block; position: relative; width: 16px; height: 16px; margin-right: 4px; border: 1.8px solid; border-radius: 50%; color: #476356; }
.search-icon::after { content: ''; position: absolute; width: 7px; height: 2px; bottom: -2px; right: -5px; background: currentColor; transform: rotate(45deg); border-radius: 1rem; }

.catalogue { scroll-margin-top: 8px; padding-block: clamp(32px, 3vw, 56px) 64px; }
.catalogue-heading, .title-line, .results-summary { display: flex; align-items: center; }
.catalogue-heading { justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding-bottom: 20px; border-bottom: 2px solid var(--dark); }
.title-line { align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.catalogue h2, .next h2, dialog h2, #no-results h3 { font: 600 clamp(34px, 3vw, 48px)/1.2 var(--serif); }
#stock-title:focus { outline: none; }
.sample-label { color: var(--muted); font-size: 14px; }
.catalogue-jump { color: var(--green); font-weight: 500; font-size: 14px; }
.catalogue-jump:hover { text-decoration: underline; text-underline-offset: 4px; }
.controls { display: flex; gap: 20px; }
.controls label { position: relative; min-width: 0; }
select { appearance: none; width: 100%; padding: 0 24px 0 0; min-height: 44px; border: none; border-radius: 0; background: white; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
select:hover { color: var(--green); }
select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.controls label::after { position: absolute; content: ''; right: 4px; top: calc(50% - 5px); width: 7px; height: 7px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.controls select { max-width: 176px; text-overflow: ellipsis; }
.results-summary { gap: 8px 16px; justify-content: space-between; padding-top: 12px; color: var(--muted); font-size: 14px; }
#results-text { overflow-wrap: anywhere; }
.results-summary button { color: var(--green); flex-shrink: 0; font-weight: 600; min-height: 44px; }
#stock-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; padding-top: 24px; }
#stock-list:empty { display: none; }
.stock-row { display: flex; flex-direction: column; min-width: 0; font-variant-numeric: tabular-nums; }
.product-link { display: block; text-align: left; width: 100%; color: inherit; }
.lot-photo { aspect-ratio: 1; width: 100%; height: auto; background: #f3ede5; object-fit: cover; }
.product-link .lot-photo { border-radius: 4px; }
.product-description { display: flex; justify-content: space-between; gap: 4px 8px; align-items: baseline; margin-top: 12px; }
.product-description strong { font-weight: 600; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.product-link:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.spec, .location, .stock-quantity, .stock-price span { font-size: 14px; line-height: 1.5; color: var(--muted); font-weight: 400; }
.location { flex-shrink: 0; }
.mobile-source { display: none; }
.spec { display: block; margin-top: 4px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.order-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; padding-top: 4px; }
.stock-price { white-space: nowrap; }
.stock-price strong, #detail-price { font-size: 22px; color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }
.ask-price { white-space: nowrap; min-height: 44px; min-width: 44px; align-items: center; display: flex; justify-content: flex-end; gap: 4px; color: var(--green); font-size: 15px; font-weight: 600; }
.ask-price:hover { text-decoration: underline; text-underline-offset: 4px; }
.stock-quantity { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; }
.stock-quantity span { white-space: nowrap; }
.list-progress { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
#loaded-count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.back-top { position: fixed; z-index: 3; bottom: max(16px, env(safe-area-inset-bottom)); right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fffffff2; color: var(--green); }
.back-top:hover { color: white; background: var(--green); }
#no-results { padding: 3rem 0; text-align: center; }
#no-results h3 { font-size: 1.7rem; }
#no-results p { color: var(--muted); margin-block: .75rem 1.5rem; }
#no-results .actions { justify-content: center; }
.next { background: #f0f4f0; }
.next-grid { display: grid; grid-template-columns: 1fr 1fr; padding-block: 3.6rem; }
.next-grid > div { padding-right: 2rem; }
.next-grid > div + div { padding-left: clamp(2rem, 5vw, 5rem); padding-right: 0; border-left: 1px solid #c6d2c8; }
.next h2 { font-size: clamp(1.75rem, 2.5vw, 2.5rem); }
.next p { margin-block: .75rem 1.45rem; color: var(--muted); line-height: 1.65; }
.footer { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .875rem; color: var(--muted); }
.footer a { color: var(--ink); font-weight: 650; flex-shrink: 0; }
.footer span { text-align: right; }

dialog { color: var(--ink); background: #fff; max-height: calc(100dvh - 2rem); max-width: calc(100% - 2rem); padding: 0; border: 0; border-radius: 8px; overscroll-behavior: contain; }
dialog::backdrop { background: #0b1d17a8; backdrop-filter: blur(4px); }
dialog h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.close { background: #f2f4f1; color: var(--ink); line-height: 1; width: 40px; height: 40px; flex: none; border-radius: 50%; font-size: 1.6rem; }
.close:hover { background: #dfe7e0; }
#detail-dialog { width: 53rem; }
.detail-layout { display: grid; grid-template-columns: 44% 1fr; }
.detail-photo { background: #f5f1ea; display: grid; align-items: center; }
.detail-photo .lot-photo { width: 100%; }
.detail-info { padding: 2rem 2rem 1.75rem; }
#detail-price { margin: .5rem 0 .65rem; }
.detail-meta { font-size: .875rem; color: var(--muted); display: flex; gap: .85rem; padding-right: 1.8rem; }
.detail-info h2 { margin-top: 1.15rem; }
#detail-facts > div { display: grid; grid-template-columns: minmax(5rem, 1fr) 1.65fr; gap: .8rem; padding-block: .65rem; border-bottom: 1px solid var(--line); font-size: .94rem; line-height: 1.5; }
#detail-facts dt { color: var(--muted); }
#detail-facts dd { text-align: right; font-weight: 550; }
#detail-note { margin-block: 1rem 1.4rem; color: var(--muted); line-height: 1.65; font-size: .95rem; }
#close-detail { position: absolute; top: 1rem; right: 1rem; background: #f1f4eff0; }
#request-dialog { padding: clamp(1.25rem, 3vw, 2.2rem); width: 34rem; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
#request-description, #request-feedback { line-height: 1.6; color: var(--muted); font-size: .95rem; }
#request-description { margin-top: .65rem; }
#request-form { display: grid; gap: 1.15rem; margin-top: 1.5rem; }
#request-form label { display: grid; grid-template-rows: 1fr auto; gap: .45rem; font-size: .95rem; font-weight: 500; }
#request-form input, textarea { padding: .7rem .8rem; border: 1px solid #9caca0; border-radius: .45rem; background: white; width: 100%; min-width: 0; font-size: 1rem; font-weight: 400; min-height: 44px; }
#request-form input[readonly] { background: #f2f5f1; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
#request-form .actions { margin-top: .2rem; }
#request-feedback:empty { display: none; }

@media (max-width: 1120px) {
  #stock-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
  .layout { width: 92%; }
  .nav-shell { gap: 12px; }
  .desktop-nav { gap: 20px; }
  .catalogue-heading { padding-bottom: 12px; gap: 8px; }
  .title-line { width: 100%; }
  .catalogue-jump { margin-left: auto; }
  .controls { width: 100%; justify-content: space-between; }
  .product-description strong { font-size: 17px; }
}
@media (max-width: 760px) {
  .layout { width: calc(100% - 32px); }
  .hero { min-height: clamp(356px, 52svh, 484px); padding-top: 12px; }
  .hero::before { background: linear-gradient(180deg, #0b171940 0%, transparent 28%, #06161357 54%, #051614ab 100%); }
  .nav-shell { display: flex; justify-content: space-between; min-height: 52px; padding: 4px 8px 4px 16px; }
  .brand-mark { width: 28px; }
  .brand { gap: 8px; }
  .wordmark b { font-size: 17px; }
  .wordmark span { font-size: 8px; }
  .desktop-nav, .supplier { display: none; }
  .nav-tools { gap: 8px; }
  .language { min-width: 44px; font-size: 14px; gap: 8px; }
  .menu-toggle { display: grid; place-content: center; width: 40px; height: 44px; gap: 6px; }
  .menu-toggle i { width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
  .menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i + i { transform: translateY(-4px) rotate(-45deg); }
  #mobile-menu { position: absolute; inset: calc(100% + 8px) 0 auto; background: #132e25fa; border: 1px solid #ffffff30; border-radius: 8px; display: grid; padding: 8px 20px; }
  #mobile-menu > * { min-height: 48px; display: flex; align-items: center; justify-content: start; }
  #mobile-menu > * + * { border-top: 1px solid #ffffff2b; }
  .hero-content { padding-block: 96px 24px; }
  h1 { font-size: clamp(36px, 10vw, 56px); line-height: 1.18; }
  h1:lang(en) { font-size: clamp(36px, 10vw, 56px); line-height: 1.1; }
  .search { margin-top: 20px; padding: 4px 4px 4px 16px; gap: 8px; width: 100%; }
  .search button { padding-inline: 16px; font-size: 15px; }
  .search input::placeholder { font-size: 14px; }
  .film-tools { bottom: 96px; background: #0b211d66; }
  .film-tools button { font-size: 13px; }
  #film-open { padding: 0 12px; }
  #film-open svg { display: none; }
  .catalogue { padding-block: 24px 40px; }
  .catalogue-heading { gap: 4px; padding: 0; border-bottom: 1px solid var(--line); }
  .title-line { gap: 4px 8px; }
  .catalogue h2 { font-size: 28px; }
  .sample-label, .catalogue-jump { font-size: 12px; }
  .controls { gap: 12px; display: grid; grid-template-columns: 1.12fr 1fr 1.04fr 1.04fr; }
  .controls select { max-width: none; min-width: 0; font-size: 13px; padding-right: 16px; }
  .controls label::after { width: 6px; height: 6px; right: 3px; top: calc(50% - 4px); }
  #stock-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; padding-top: 16px; }
  .product-description { margin-top: 8px; align-items: baseline; gap: 4px; }
  .product-description strong { font-size: 16px; }
  .location, .spec, .stock-price span, .stock-quantity { font-size: 12px; }
  .spec { margin-top: 2px; }
  .stock-quantity { gap: 0 8px; line-height: 1.5; }
  .order-info { padding-top: 0; }
  .stock-price strong { font-size: 18px; }
  .ask-price { font-size: 14px; gap: 2px; }
  .ask-price svg { width: 12px; }
  .next-grid { grid-template-columns: 1fr; padding-block: 32px; gap: 32px; }
  .next-grid > div { padding: 0; }
  .next-grid > div + div { border: 0; border-top: 1px solid #c6d2c8; padding: 32px 0 0; }
  .footer { font-size: 12px; padding-bottom: 52px; gap: 12px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-photo { place-items: center; }
  .detail-photo .lot-photo { width: min(100%, 36svh, 20rem); }
  .detail-info { padding: 20px; }
  #close-detail { top: 12px; right: 12px; }
  .detail-info .button { width: 100%; }
  .form-pair { grid-template-columns: 1fr; }
  .actions .button { font-size: 14px; padding-inline: 16px; }
}
@media (max-width: 480px) {
  .product-description strong { line-height: 1.45; font-size: 15px; }
  .product-description { display: block; }
  .location { display: none; }
  .mobile-source { display: inline; }
  .stock-quantity { justify-content: space-between; }
  .stock-quantity:lang(en) { justify-content: flex-start; }
  .controls:lang(en) { grid-template-columns: 1.2fr 1.1fr 1.2fr .9fr; gap: 8px; }
  .catalogue-jump:lang(en) { width: 100%; margin: 4px 0 0; }
  .hero-content:lang(en) .film-tools { bottom: 96px; }
  #film-open:lang(en) { padding-inline: 8px; font-size: 12px; }
}
@media (max-width: 370px) {
  .layout { width: calc(100% - 24px); }
  #stock-list { column-gap: 8px; }
  .controls { gap: 6px; }
  .controls select { font-size: 12px; padding-right: 12px; }
  .search-icon, .ask-price svg { display: none; }
  .stock-price strong { font-size: 16px; }
  .stock-price span:lang(en) { display: none; }
  .film-tools button { min-width: 40px; }
  #film-open { padding-inline: 8px; }
  .catalogue h2 { font-size: 25px; }
  .catalogue-jump { font-size: 12px; }
  .stock-quantity { font-size: 11px; }
}
@media (max-width: 1290px) {
  .order-info { display: contents; }
  .stock-price { margin-top: auto; padding-block: 6px 2px; }
  .ask-price { order: 1; justify-content: center; margin-top: 10px; border: 1px solid var(--green); border-radius: 6px; }
  .ask-price:hover { background: var(--green); color: white; text-decoration: none; }
}
@media (max-width: 390px) {
  .ask-price:lang(en) { font-size: 13px; }
  .ask-price:lang(en) svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.shop-label { display:block; margin-top:4px; color:var(--green); font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.product-link { min-width:0; overflow-wrap:anywhere; }
.location { max-width:40%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.product-description strong { min-width:0; }
.stock-quantity span, .stock-price { white-space:normal; overflow-wrap:anywhere; }
.detail-meta, .detail-info { overflow-wrap:anywhere; min-width:0; }
.merchant-login { margin-left:16px; display:inline-flex; min-height:44px; align-items:center; color:var(--green); font-weight:600; }
