:root {
  color-scheme: dark;
  --bg: #101112;
  --panel: #191b1d;
  --text: #f3f3f1;
  --muted: #a4a7aa;
  --line: #35383b;
  --gold: #d5bb91;
  --ease: cubic-bezier(.2,.7,.2,1);
  --gutter: clamp(20px,6vw,112px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Arial,"Microsoft YaHei",sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--gold); color: #111; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button,a,input { touch-action: manipulation; }
button,a { transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .25s var(--ease); }
:where(a,button,input,[tabindex]):focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
[hidden] { display: none !important; }
header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); background: #101112f2; backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 3; }
.logo { font-size: 32px; font-weight: 900; letter-spacing: 4px; font-style: italic; flex-shrink: 0; line-height: 1.2; }
.logo span { display: block; font-size: 12px; letter-spacing: 2px; font-style: normal; margin-top: 7px; }
nav { display: flex; gap: 32px; font-size: 14px; }
nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; color: #c4c5c7; white-space: nowrap; }
nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
nav a:focus-visible::after { transform: scaleX(1); }
.hero { min-height: 640px; height: 80vh; max-height: 950px; position: relative; overflow: hidden; display: flex; align-items: center; padding: var(--gutter); background: radial-gradient(ellipse at 75% 40%,#3c3c3c,#111 65%); }
.hero-copy { z-index: 1; position: relative; max-width: 600px; }
.eyebrow { font-size: 14px; letter-spacing: 3px; color: var(--gold); }
h1 { font-size: clamp(36px,5vw,76px); line-height: 1.2; margin: 28px 0; letter-spacing: -.035em; }
p { line-height: 1.9; color: #b9babc; }
.hero-copy>p { font-size: 18px; }
.cta,.reset-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 30px; border: 1px solid var(--gold); border-radius: 3px; background: var(--gold); color: #171717; font-weight: 600; }
.cta { margin-top: 22px; }
.cta:active,.reset-button:active { transform: translateY(1px) scale(.98); background: #bfa379; }
.hero-wheel { position: absolute; width: 62%; height: 90%; right: -5%; object-fit: contain; mix-blend-mode: lighten; opacity: .8; }
.hero-bottom { position: absolute; bottom: 28px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; gap: 24px; font-size: 12px; letter-spacing: 2px; color: #aaa; }
.collection,.service,.about { padding: 90px var(--gutter); }
h2 { font-size: clamp(28px,3vw,44px); line-height: 1.35; margin: 16px 0 30px; letter-spacing: -.025em; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin: 30px 0 20px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 4px; padding: 4px; background: #1a1c1e; border: 1px solid #303337; border-radius: 6px; }
.filters button { min-height: 44px; color: #b9bbbe; border: 1px solid transparent; border-radius: 3px; background: transparent; padding: 10px 20px; font-size: 14px; }
.filters button.active { background: var(--gold); color: #161616; border-color: var(--gold); box-shadow: 0 2px 8px #0003; font-weight: 600; }
.filters button:active { transform: scale(.97); }
.search-box { display: flex; align-items: center; position: relative; width: 320px; max-width: 100%; border: 1px solid #41454a; border-radius: 5px; background: #1b1d20; transition: border-color .2s,box-shadow .2s; }
.search-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px #d5bb911a; }
.search-box svg { position: absolute; left: 15px; width: 20px; height: 20px; fill: none; stroke: #a4a7aa; stroke-width: 1.6; pointer-events: none; }
input { min-width: 0; width: 100%; min-height: 48px; border: 0; background: transparent; color: white; padding: 12px 46px 12px 44px; border-radius: 5px; }
input:focus-visible { outline-offset: 4px; }
input::placeholder { color: #9b9fa4; }
input::-webkit-search-cancel-button { -webkit-appearance: none; }
#clear-search { position: absolute; right: 2px; width: 44px; height: 44px; border: 0; border-radius: 3px; background: transparent; color: #b9bbbe; font-size: 24px; }
.muted { font-size: 14px; color: var(--muted); }
#count { margin: 18px 0 24px; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.card { display: block; width: 100%; min-width: 0; font: inherit; background: var(--panel); border: 1px solid #303337; border-radius: 6px; color: white; text-align: left; padding: 0; overflow: hidden; }
.photo { background: #1f2123; aspect-ratio: 1.2; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #b9babc; border-bottom: 1px solid #303337; }
.photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.photo-placeholder { font-size: 14px; }
.card-info { display: block; padding: 24px; }
.tag { display: block; font-size: 12px; letter-spacing: 2px; color: var(--gold); }
.card-title { display: block; font-size: 24px; font-weight: 700; margin: 10px 0 20px; overflow-wrap: anywhere; }
.card-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: #bfc1c4; border-top: 1px solid #34373a; padding-top: 16px; }
.card-plus { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid #555a60; border-radius: 50%; color: var(--gold); font-size: 21px; transition: background .2s,color .2s; flex-shrink: 0; }
.card:active { transform: scale(.99); border-color: var(--gold); }
.empty-state { grid-column: 1/-1; padding: 64px 20px; text-align: center; background: var(--panel); border: 1px dashed #4c5055; border-radius: 6px; }
.empty-state h3 { font-size: 24px; margin: 0; }
.service { background: #dedbd5; color: #171717; }
.service .eyebrow { color: #77603d; }
.services { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 50px; margin-top: 50px; }
.services article { border-top: 1px solid #aaa; padding-top: 20px; }
.services p { color: #555; }
.about { max-width: 1100px; }
footer { border-top: 1px solid var(--line); padding: 30px var(--gutter); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-size: 14px; color: #aaa; }
dialog { background: #181a1c; color: #eee; border: 1px solid #4c5156; border-radius: 10px; width: 1000px; max-width: calc(100vw - 40px); max-height: 90vh; max-height: 90dvh; padding: 0; box-shadow: 0 32px 100px #0009; overscroll-behavior: contain; }
dialog[open] { animation: dialog-in .22s var(--ease); }
dialog::backdrop { background: #000b; backdrop-filter: blur(6px); }
.dialog-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; border-bottom: 1px solid #393d42; background: #181a1cf5; backdrop-filter: blur(12px); }
.dialog-bar>span { font-size: 12px; letter-spacing: 1px; color: #afb2b6; }
#close { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; background: #24272a; color: #eee; border: 1px solid #4b5056; border-radius: 4px; min-height: 44px; padding: 8px 14px; font-size: 14px; }
#close span { font-size: 22px; line-height: 1; }
#detailContent { padding: 28px; }
.detail-top { display: flex; align-items: center; gap: 32px; }
.detail-top img,.detail-placeholder { width: 38%; border: 1px solid #3e4247; border-radius: 5px; }
.detail-placeholder { aspect-ratio: 1.2; display: grid; place-items: center; color: var(--muted); }
.detail-top h2 { margin-bottom: 12px; }
.spec-count { font-size: 14px; color: #d1b78e; }
.table-hint { margin: 32px 0 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #eee; font-size: 16px; }
.table-hint span { color: var(--muted); font-size: 14px; }
.table-wrap { overflow: auto; max-height: 410px; border: 1px solid #3b4045; border-radius: 5px; scrollbar-color: #686059 #202225; scrollbar-width: thin; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; white-space: nowrap; }
td,th { text-align: left; padding: 14px 16px; border-bottom: 1px solid #34383d; }
th { position: sticky; top: 0; color: #dbc39e; background: #25282c; font-weight: 600; z-index: 1; }
tbody tr:nth-child(even) { background: #ffffff03; }
tbody tr:last-child td { border-bottom: 0; }
.detail-note { margin: 20px 0 0; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (hover:hover) and (pointer:fine) {
  nav a:hover { color: white; }
  nav a:hover::after { transform: scaleX(1); }
  .cta:hover,.reset-button:hover { background: #e5d0ad; border-color: #e5d0ad; box-shadow: 0 6px 24px #d5bb9120; transform: translateY(-2px); }
  .filters button:not(.active):hover { color: white; background: #303438; }
  .search-box:hover { border-color: #70767c; }
  #clear-search:hover,#close:hover { background: #3b4045; color: white; }
  .card:hover { border-color: #9c886a; transform: translateY(-4px); box-shadow: 0 14px 32px #0004; }
  .card:hover img { transform: scale(1.04); }
  .card:hover .card-plus { background: var(--gold); color: #161616; border-color: var(--gold); }
  tbody tr:hover { background: #d5bb910c; }
}
@media (max-width:1000px) { .grid { gap: 18px; } .card-info { padding: 18px; } .services { gap: 28px; } }
@media (max-width:760px) {
  html { scroll-padding-top: 130px; }
  header { min-height: 80px; flex-wrap: wrap; column-gap: 20px; row-gap: 8px; padding-block: 12px; }
  nav { gap: 20px; }
  .logo { font-size: 24px; }
  .logo span { font-size: 12px; letter-spacing: 1px; }
  .hero { height: 700px; min-height: 0; align-items: start; padding-top: 52px; }
  .hero-wheel { width: 95%; height: 55%; bottom: 20px; right: -15%; }
  .hero-bottom { font-size: 12px; letter-spacing: .5px; gap: 20px; }
  .section-title { display: block; }
  .toolbar { align-items: stretch; gap: 14px; }
  .filters { width: 100%; }
  .filters button { flex: 1; padding: 10px 8px; white-space: nowrap; }
  .search-box { width: 100%; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .card-info { padding: 16px; }
  .card-title { font-size: 20px; margin-bottom: 14px; }
  .card-action { font-size: 14px; padding-top: 12px; }
  .card-plus { width: 26px; height: 26px; }
  .tag { font-size: 12px; letter-spacing: 1px; }
  .collection,.service,.about { padding: 60px var(--gutter); }
  .services { grid-template-columns: 1fr; gap: 15px; }
  .detail-top { flex-direction: column; align-items: stretch; gap: 16px; }
  .detail-top img,.detail-placeholder { width: 100%; max-height: 260px; object-fit: contain; }
  .detail-top .eyebrow { margin-top: 8px; }
  dialog { max-width: calc(100vw - 24px); }
  .dialog-bar { padding: 12px 18px; }
  #detailContent { padding: 20px 18px; }
  footer { font-size: 12px; }
}
@media (max-width:480px) {
  header { justify-content: center; }
  .logo { text-align: center; }
  nav { width: 100%; justify-content: space-between; gap: 12px; }
  nav a { min-height: 36px; }
  .card-info { padding: 12px; }
  .card-title { font-size: 18px; }
  .card-action { align-items: start; gap: 6px; }
  .card-plus { width: 22px; height: 22px; font-size: 18px; }
  .hero-bottom span:last-child { display: none; }
  .dialog-bar>span { font-size: 12px; letter-spacing: 0; }
}
@media (max-width:340px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
}

/* Wholesale inquiry — static, browser-local form */
nav .inquiry-link { color: var(--gold); }
.wholesale { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.3fr); gap: clamp(32px,6vw,100px); padding: 90px var(--gutter); border-top: 1px solid var(--line); background: radial-gradient(ellipse at 0 0,#24221e 0,transparent 55%),#141618; }
.wholesale-intro { align-self: start; }
.wholesale-intro h2 { margin-top: 20px; }
.inquiry-note { padding: 22px; margin: 32px 0; border: 1px solid #5a5142; border-left: 3px solid var(--gold); border-radius: 4px; background: #d5bb9107; }
.inquiry-note strong { color: #dec7a3; font-size: 16px; }
.inquiry-note p { font-size: 14px; margin-bottom: 0; }
.inquiry-form { min-width: 0; padding: 30px; background: #1b1e21; border: 1px solid #393e43; border-radius: 8px; }
.form-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 0 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: #f3f3f1; font-weight: 600; }
.form-caption span { font-size: 14px; color: var(--muted); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 18px; }
.form-grid label { display: flex; flex-direction: column; gap: 9px; min-width: 0; color: #d4d6d8; font-size: 14px; }
.form-grid input,.form-grid select,.form-grid textarea,#inquiry-summary { width: 100%; min-width: 0; background: #121416; border: 1px solid #444b53; color: #f3f3f1; border-radius: 4px; padding: 12px 14px; min-height: 48px; font: inherit; font-size: 16px; transition: border-color .2s,box-shadow .2s; }
.form-grid textarea,#inquiry-summary { resize: vertical; line-height: 1.7; }
.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,#inquiry-summary:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #d5bb911a; outline: 2px solid var(--gold); outline-offset: 3px; }
.form-grid select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23b9bbbe' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-position: right 12px center; background-repeat: no-repeat; cursor: pointer; }
.quantity-field { position: relative; display: block; }
.quantity-field input { padding-right: 104px; }
.quantity-field>span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; pointer-events: none; }
.quantity-field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.full-width { grid-column: 1/-1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid #60656b; border-radius: 4px; background: transparent; color: #dddfe1; font: inherit; font-size: 14px; }
.secondary-button:active { transform: scale(.98); background: #393e44; }
.form-footnote { margin-bottom: 0; }
.inquiry-result { border-top: 1px solid #4a4f55; padding-top: 28px; margin-top: 28px; }
.inquiry-result h3 { font-size: 20px; margin: 0; color: var(--gold); }
.inquiry-result .form-actions { margin-top: 16px; }
#inquiry-status { margin-bottom: 0; }
.detail-inquire { display: flex; width: fit-content; margin-top: 22px; color: var(--gold); border-color: #9c886a; }
@media (hover:hover) and (pointer:fine) { .secondary-button:hover { border-color: var(--gold); background: #d5bb9112; color: #e4cfae; } }
@media (max-width:1000px) { .wholesale { grid-template-columns: 1fr; gap: 28px; } .wholesale-intro { max-width: 700px; } }
@media (max-width:760px) { .wholesale { padding: 60px var(--gutter); } .inquiry-form { padding: 24px; } }
@media (max-width:540px) { .form-grid { grid-template-columns: 1fr; gap: 20px; } .inquiry-form { padding: 20px 16px; } .form-actions>button { flex: 1 1 auto; } nav { gap: 12px; } nav a { font-size: 14px; } }
