:root {
  --paper: #f8f6f1;
  --card: #fffefa;
  --ink: #3c382f;
  --muted: #948979;
  --line: #e4ddd2;
  --accent: #98604f;
  --accent-pale: #f3e9e4;
  --serif: "Songti SC", "STSong", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 13px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button, a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 44px; border-bottom: 1px solid var(--line); background: rgba(255,254,250,.9); }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 42px; height: 45px; display: grid; place-items: center; color: var(--accent); border: 1px solid #bea28f; border-radius: 3px; }
.brand-mark svg { width: 33px; height: 33px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.brand-copy strong { display: block; font-family: var(--serif); font-size: 23px; font-weight: 500; letter-spacing: 2px; line-height: 1.25; }
.brand-copy small { display: block; margin-top: 2px; color: #8b8378; font-size: 10px; letter-spacing: 1px; }
nav { align-self: stretch; display: flex; align-items: stretch; gap: 28px; }
nav a { position: relative; display: flex; align-items: center; gap: 5px; padding: 0 2px; border: 0; background: transparent; color: #8f887c; white-space: nowrap; }
nav a.active { color: var(--ink); font-weight: 600; }
nav a.active::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 2px; background: var(--accent); }
nav span { min-width: 17px; height: 17px; display: inline-grid; place-items: center; padding: 0 4px; border-radius: 20px; background: #ece6dd; font-size: 9px; }

.site-main { width: 100%; max-width: 1600px; margin: 0 auto; padding: 24px 44px 0; }
.contact-card { display: grid; grid-template-columns: minmax(0,1fr) 96px; align-items: center; gap: 18px; margin-bottom: 18px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 6px; background: #f1ede6; }
.contact-card>div>span { display: block; color: var(--accent); font-size: 9px; letter-spacing: 1px; }
.contact-card h2 { margin: 2px 0 3px; font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.25; }
.contact-card p { margin: 0; color: #8d8172; font-size: 10px; }
.contact-card div>a { display: inline-block; margin-top: 5px; color: #8a7666; font-size: 10px; }
.contact-code, .contact-code img { width: 96px; }
.contact-code { overflow: hidden; border-radius: 4px; background: white; }

.filter-panel { padding: 16px 18px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); scroll-margin-top: 16px; }
.filter-row { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 18px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.filter-row>strong { margin-top: 4px; font-size: 11px; }
.data-row { padding-top: 0; }
.catalog-data { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.equation { display: flex; align-items: center; gap: 7px; padding-right: 18px; border-right: 1px solid var(--line); }
.equation span { display: flex; align-items: baseline; gap: 4px; color: #9a8b7a; font-size: 8px; white-space: nowrap; }
.equation b { color: #514738; font: 17px/1 Georgia, serif; }
.equation i { color: #baa997; font-style: normal; font-size: 9px; }
.latest { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; color: #958674; font-size: 9px; }
.latest em { padding: 1px 5px; border-radius: 3px; background: var(--accent-pale); color: var(--accent); font-style: normal; font-size: 8px; }
.latest b { color: var(--accent); font: 13px Georgia, serif; }
.filter-options, .filter-thumbs { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.filter-chip { min-height: 30px; padding: 5px 11px; border: 1px solid #f0ece5; border-radius: 4px; background: #f0ece5; color: #8d8170; font-size: 11px; }
.filter-chip:hover { border-color: #cab7a5; }
.filter-chip.selected { border-color: #c5a28d; background: var(--accent-pale); color: var(--accent); }
.filter-thumb { width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; padding: 0; border: 1px solid #ddd4c7; border-radius: 4px; background: #f1eee8; }
.filter-thumb img { width: 100%; height: 100%; object-fit: contain; }
.filter-thumb:hover, .filter-thumb.selected { border-color: var(--accent); background: var(--accent-pale); }
.expand-button { width: 88px; height: 40px; border: 1px dashed #d8cbbc; border-radius: 4px; background: #fbf8f2; color: #9a8269; font-size: 10px; }
.expand-button:hover { border-color: #bca48e; background: var(--accent-pale); color: var(--accent); }
.filter-hint { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid var(--line); color: red; font-size: 12px; text-align: left; }

.active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.active-filters>span { color: #afa18e; font-size: 9px; }
.active-filters button { padding: 4px 8px; border: 0; border-radius: 3px; background: var(--accent-pale); color: var(--accent); font-size: 10px; }
.active-filters .clear { background: transparent; color: #a2907c; }

.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 23px 19px; margin-top: 18px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid #e8e2d8; border-radius: 5px; background: var(--card); }
.product-image { position: relative; aspect-ratio: 2/3; overflow: hidden; background: #eeece5; }
.product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.product-card:hover .product-image img { transform: scale(1.02); }
.favorite { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255,254,250,.88); color: #9e907c; font-size: 17px; }
.favorite.saved { color: var(--accent); }
.demo-badge { position: absolute; top: 9px; left: 9px; padding: 3px 6px; border-radius: 2px; background: rgba(255,253,247,.82); color: #8e806b; font-size: 8px; }
.product-info { padding: 13px 13px 10px; }
.product-code { color: #aa9179; font: 10px Georgia, serif; letter-spacing: 1px; }
.product-info h3 { margin: 6px 0 9px; font-size: 11px; font-weight: 500; line-height: 1.6; }
.product-price { display: flex; justify-content: space-between; gap: 6px; color: #a4947f; font-size: 9px; }
.product-price b { color: var(--accent); font-size: 10px; font-weight: 500; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f0eae0; }
.product-tag { display: flex; align-items: center; gap: 5px; color: #a4947f; font-size: 9px; }
.product-tag i { width: 7px; height: 7px; border-radius: 50%; }
.sample-link { color: var(--accent); font-size: 9px; }
.directory-card .product-image { aspect-ratio: 3/4; }
.empty-state { margin-top: 18px; padding: 60px 15px; border: 1px dashed #dfd5c7; border-radius: 5px; text-align: center; background: #fbf9f5; }
.empty-state h2 { margin: 0; font-family: var(--serif); font-weight: 400; }
.empty-state p { color: var(--muted); }
.empty-state button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }

.quote-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 4px 0 17px; }
.quote-header span { color: var(--accent); font-size: 9px; letter-spacing: 2px; }
.quote-header h1 { margin: 4px 0 5px; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.quote-header p { margin: 0; color: #978b7c; font-size: 11px; }
.button { flex-shrink: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.quote-frame { height: calc(100dvh - 205px); min-height: 650px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: white; }
.quote-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.quote-note { margin: 9px 2px 0; color: #a59684; font-size: 10px; }
.quote-note a { margin-left: 3px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

footer { margin-top: 35px; padding: 20px 0 26px; border-top: 1px solid var(--line); color: #b4a590; font-size: 9px; text-align: center; }
.filter-shortcut { position: fixed; right: max(22px,env(safe-area-inset-right)); bottom: max(22px,env(safe-area-inset-bottom)); z-index: 10; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 14px; border: 1px solid #d7c8b8; border-radius: 999px; background: rgba(255,254,250,.95); color: var(--accent); box-shadow: 0 7px 22px rgba(60,45,30,.14); font-size: 11px; font-weight: 600; }

@media (max-width: 1200px) {
  .site-header, .site-main { padding-left: 28px; padding-right: 28px; }
  nav { gap: 18px; }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .site-header { gap: 18px; }
  .brand-copy strong { font-size: 20px; }
  nav { gap: 12px; }
  nav button { font-size: 11px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .site-header { min-height: 75px; flex-wrap: wrap; gap: 0; padding: 12px 18px 0; }
  .brand-mark { width: 33px; height: 36px; }
  .brand-mark svg { width: 28px; height: 28px; }
  .brand-copy strong { font-size: 21px; }
  .brand-copy small { max-width: 250px; font-size: 9px; letter-spacing: 0; }
  nav { order: 3; width: 100%; height: 45px; justify-content: space-between; gap: 0; overflow-x: auto; scrollbar-width: none; }
  nav button { flex-shrink: 0; padding: 0 2px; font-size: 11px; }
  .site-main { padding: 18px 18px 0; }
  .contact-card { grid-template-columns: minmax(0,1fr) 90px; gap: 12px; padding: 10px 13px; }
  .contact-code, .contact-code img { width: 90px; }
  .contact-card p { line-height: 1.55; }
  .filter-panel { padding: 14px; }
  .filter-row { grid-template-columns: 72px minmax(0,1fr); gap: 10px; padding: 11px 0; }
  .filter-row>strong { font-size: 11px; }
  .catalog-data { gap: 8px 10px; }
  .equation { padding-right: 10px; }
  .filter-hint { text-align: left; }
  .product-grid { gap: 15px 11px; }
  .product-info { padding: 10px 9px; }
  .product-info h3 { font-size: 10px; }
  .product-bottom { flex-wrap: wrap; }
  .quote-header { align-items: flex-start; flex-direction: column; gap: 12px; padding-top: 0; }
  .quote-header h1 { font-size: 23px; }
  .quote-header p { font-size: 10px; }
  .quote-frame { height: calc(100dvh - 225px); min-height: 560px; }
  .filter-shortcut { right: max(16px,env(safe-area-inset-right)); bottom: max(16px,env(safe-area-inset-bottom)); min-height: 40px; padding: 7px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 轻量版：组合详情与合并打样 */
.image-trigger { position: relative; width: 100%; height: 100%; display: block; padding: 0; border: 0; background: transparent; }
.view-image { position: absolute; left: 50%; bottom: 14px; opacity: 0; transform: translate(-50%,7px); padding: 5px 9px; border-radius: 3px; background: rgba(60,48,37,.72); color: #fffaf2; font-size: 9px; white-space: nowrap; transition: opacity .2s,transform .2s; }
.image-trigger:hover .view-image, .image-trigger:focus-visible .view-image { opacity: 1; transform: translate(-50%,0); }
.favorite { z-index: 2; }

.sample-selection { position: sticky; top: 10px; z-index: 8; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 13px; margin-bottom: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,254,250,.96); box-shadow: 0 5px 18px rgba(55,43,31,.07); font-size: 11px; backdrop-filter: blur(8px); }
.sample-selection label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.sample-selection input, .sample-checkbox input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.sample-selection>span { color: var(--muted); }
.sample-selection>span b { color: var(--accent); }
.sample-selection .primary-button { margin-left: auto; }
.text-button { padding: 0; border: 0; background: transparent; color: #8a7666; }
.primary-button, .secondary-button, .request-button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 7px 13px; border-radius: 5px; font-weight: 600; }
.primary-button { border: 1px solid var(--ink); background: var(--ink); color: #fffaf2; }
.primary-button:hover { border-color: var(--accent); background: var(--accent); }
.primary-button:disabled { cursor: default; opacity: .4; }
.secondary-button { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.request-button { gap: 5px; border: 1px solid var(--accent); background: var(--accent-pale); color: var(--accent); }
.request-button em { min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 20px; background: var(--accent); color: white; font-size: 9px; font-style: normal; }
.sample-checkbox { position: absolute; z-index: 2; top: 9px; left: 9px; display: flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 3px; background: rgba(255,254,250,.92); color: #786b5d; font-size: 10px; cursor: pointer; }
.tab-saved .product-price { margin-top: 9px; }

.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 22px; background: rgba(37,32,27,.52); backdrop-filter: blur(3px); }
.modal { width: min(1080px,100%); max-height: calc(100dvh - 44px); overflow: auto; border: 1px solid #d9cfc1; border-radius: 8px; background: var(--card); box-shadow: 0 24px 70px rgba(29,23,18,.2); }
.modal-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); background: rgba(255,254,250,.96); backdrop-filter: blur(8px); }
.modal-header h2 { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.modal-header button { width: 31px; height: 31px; padding: 0; border: 0; border-radius: 50%; background: #f0ece5; color: #786d60; font-size: 22px; line-height: 1; }
.modal-content { min-height: 100px; }

.detail-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); }
.detail-image { position: relative; min-height: 610px; display: grid; place-items: center; overflow: hidden; background: #efede7; }
.detail-image img { width: 100%; height: 100%; max-height: 76dvh; object-fit: contain; }
.detail-image a { position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; border-radius: 4px; background: rgba(255,254,250,.9); color: #7d6c5d; font-size: 10px; }
.detail-info { padding: 38px 30px; }
.detail-eyebrow { margin: 0 0 13px; color: #9a8a77; font-size: 9px; letter-spacing: 2px; }
.detail-code { color: #8e735b; font: 17px Georgia,serif; letter-spacing: 1px; }
.detail-info dl { margin: 27px 0; }
.detail-info dl>div { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail-info dt { color: #a0907d; font-size: 10px; }
.detail-info dd { margin: 0; color: #5f554a; font-size: 11px; overflow-wrap: anywhere; }
.detail-price { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 17px; color: #9c8e7c; font-size: 11px; }
.detail-price b { color: var(--accent); font-weight: 600; }
.detail-favorite { width: 100%; }
.detail-note { margin: 20px 0 0; color: #a29584; font-size: 9px; line-height: 1.8; }

.sampling-modal { width: min(1120px,100%); }
.sampling-form { padding: 22px; }
.sampling-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(330px,.9fr); gap: 18px; align-items: start; }
.sample-panel { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 6px; background: #fdfbf7; }
.sample-panel>h3 { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 12px; font-size: 15px; font-weight: 500; }
.sample-panel>h3 span { color: var(--muted); font-size: 10px; font-weight: 400; }
.sample-line { display: grid; grid-template-columns: 52px minmax(0,1fr) 64px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sample-line>img { width: 52px; height: 74px; object-fit: contain; border-radius: 3px; background: #eeebe4; }
.sample-line small, .sample-line b { display: block; }
.sample-line small { color: #8c765f; font: 10px Georgia,serif; }
.sample-line b { margin-top: 5px; color: var(--accent); font-size: 10px; font-weight: 500; }
.sample-line label { color: var(--muted); font-size: 9px; }
.sample-line input { width: 100%; margin-top: 4px; padding: 7px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); }
.sample-summary { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 11px; }
.sample-summary b, .sample-summary strong { color: var(--accent); font-size: 13px; }
.sample-panel>label, .field-grid label { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; color: #786d60; font-size: 10px; }
.sample-panel input, .sample-panel textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; }
.sample-panel textarea { resize: vertical; line-height: 1.65; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.static-note { margin: 8px 0 13px; color: #a08e79; font-size: 9px; line-height: 1.8; }
.submit-sample { width: 100%; min-height: 42px; }

.request-success, .request-empty { padding: 55px 24px; text-align: center; }
.success-mark { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; background: var(--accent-pale); color: var(--accent); font-size: 22px; }
.request-success>p { margin: 0; color: var(--muted); }
.request-success h3 { margin: 8px 0 4px; font: 21px Georgia,serif; }
.request-success>span { color: var(--accent); }
.success-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.request-success .static-note { max-width: 460px; margin: 16px auto 0; }
.request-list { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.request-card { padding: 17px; border: 1px solid var(--line); border-radius: 6px; background: #fdfbf7; }
.request-card>header { display: flex; justify-content: space-between; gap: 15px; }
.request-card header small { color: var(--muted); font-size: 9px; }
.request-card header h3 { margin: 3px 0 0; font: 15px Georgia,serif; }
.request-card header>span { color: var(--accent); font-size: 11px; }
.request-items { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 14px 0; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.request-items>div { min-width: 0; display: flex; align-items: center; gap: 8px; }
.request-items img { width: 38px; height: 54px; flex-shrink: 0; object-fit: contain; border-radius: 3px; background: #eeebe4; }
.request-items span { min-width: 0; }
.request-items b, .request-items small { display: block; overflow-wrap: anywhere; }
.request-items b { font: 9px Georgia,serif; }
.request-items small { color: var(--muted); font-size: 9px; }
.request-card>footer { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 16px; margin: 0; padding: 0; border: 0; color: var(--muted); text-align: left; }
.request-card>footer strong { margin-left: auto; color: var(--accent); font-size: 10px; }
.request-card>footer button { padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; background: white; color: #7d6c5d; font-size: 9px; }
.request-empty p { margin: 0 0 7px; font-family: var(--serif); font-size: 20px; }
.request-empty span { color: var(--muted); font-size: 10px; }
.toast { position: fixed; z-index: 80; left: 50%; top: 22px; transform: translateX(-50%); padding: 9px 15px; border-radius: 5px; background: #40382e; color: white; box-shadow: 0 8px 30px rgba(0,0,0,.15); font-size: 11px; }

@media (max-width: 800px) {
  .detail-layout, .sampling-layout { grid-template-columns: 1fr; }
  .detail-image { min-height: 0; height: 50dvh; }
  .detail-info { padding: 25px 22px; }
  .request-items { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .view-image { display: none; }
  .sample-selection { top: 7px; gap: 8px 10px; padding: 10px; }
  .sample-selection .primary-button { margin-left: auto; }
  .modal-backdrop { padding: 9px; }
  .modal { max-height: calc(100dvh - 18px); }
  .modal-header { padding: 13px 14px; }
  .modal-header h2 { font-size: 16px; }
  .detail-image { height: 45dvh; }
  .detail-info { padding: 21px 17px; }
  .detail-info dl { margin: 20px 0; }
  .sampling-form { padding: 12px; }
  .sampling-layout { gap: 12px; }
  .sample-panel { padding: 14px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .sample-panel input, .sample-panel textarea, .sample-line input { font-size: 16px; }
  .request-list { padding: 12px; }
  .request-items { grid-template-columns: 1fr; }
  .request-card>footer strong { margin-left: 0; }
  .success-actions { flex-direction: column; }
   
}
.showmore {
    display: block;
    line-height: 20px;
    cursor:pointer;padding-left:5px;
}
    .showmore img {
        width:35px;height:35px;
    }
    .navpage {
        line-height: 25px;
        text-align: center;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .navpage a { margin-left:5px;margin-right:5px;
    }
    .navpage .current {
        color: red;
        margin-left: 5px;
        margin-right: 5px;
    }
.showall {
    display: block;
    line-height: 30px;
    text-align: center;
    color: #aa9179;

}