:root {
  --bg: #f7f5ef;
  --paper: #eeebe3;
  --ink: #181917;
  --forest: #123f36;
  --muted: #77776f;
  --line: #d9d4c9;
  --bronze: #a7773d;
  --white: #fff;
  --motion-fast: 160ms;
  --motion-base: 250ms;
  --motion-slow: 360ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.site-nav { position: sticky; top: 0; z-index: 30; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(247,245,239,.94); backdrop-filter: blur(16px); }
.brand { letter-spacing: .18em; text-transform: uppercase; }
.brand span { color: var(--bronze); }
.nav-main { display: flex; align-items: center; gap: 28px; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.nav-main a:hover, .nav-main a.active { color: var(--bronze); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-button { min-height: 36px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer; }
.language-option { color: inherit; opacity: .48; transition: color .2s ease, opacity .2s ease; }
.language-divider { margin: 0 6px; color: var(--muted); }
html[lang="en"] .language-option-en,
html[lang="zh-CN"] .language-option-zh { color: var(--bronze); opacity: 1; font-weight: 600; }
.catalog-menu { display: none; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; }
.catalog-menu span { width: 17px; height: 1px; background: currentColor; box-shadow: 0 5px currentColor, 0 -5px currentColor; }
.catalog-hero { padding: 86px 0 58px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--bronze); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", "PingFang SC", "Microsoft YaHei", serif; font-weight: 400; letter-spacing: 0; }
.catalog-hero h1 { max-width: 850px; margin-top: 18px; font-size: 4.6rem; line-height: 1.06; }
.catalog-hero p { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin: 58px auto 92px; border: 1px solid var(--line); background: var(--line); }
.category-card { display: grid; grid-template-columns: minmax(0, 1fr) 42%; min-height: 310px; background: var(--bg); overflow: hidden; }
.category-copy { display: flex; flex-direction: column; justify-content: space-between; padding: 34px; }
.category-index { color: var(--bronze); font-size: .7rem; letter-spacing: .18em; }
.category-card h2 { margin: 16px 0 12px; font-size: 2rem; }
.category-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.category-meta { margin-top: 24px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.category-image { overflow: hidden; background: var(--paper); }
.category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--motion-base) var(--ease-out); }
.category-card:hover .category-image img { transform: scale(1.015); }
.breadcrumb { display: flex; gap: 10px; padding-top: 30px; color: var(--muted); font-size: .8rem; }
.category-head { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 60px; align-items: end; padding: 48px 0; border-bottom: 1px solid var(--line); }
.category-head h1 { margin-top: 14px; font-size: 4rem; }
.category-head p { margin: 0; color: var(--muted); line-height: 1.8; }
.category-switcher { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.category-switcher a { padding: 9px 12px; border: 1px solid var(--line); font-size: .75rem; }
.category-switcher a.active { border-color: var(--forest); background: var(--forest); color: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; padding: 36px 0 92px; }
.product-card { border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.product-card button { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.product-card img { width: 100%; aspect-ratio: 4/5; object-fit: contain; background: var(--paper); }
.product-info { padding: 17px; border-top: 1px solid var(--line); }
.product-code { color: var(--bronze); font-size: .68rem; letter-spacing: .16em; }
.product-info h3 { margin-top: 8px; font-size: 1.05rem; }
.product-info p { display: -webkit-box; overflow: hidden; margin: 7px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dialog { width: min(920px, calc(100% - 32px)); padding: 0; border: 0; background: var(--bg); box-shadow: 0 24px 90px rgba(0,0,0,.28); }
.dialog::backdrop { background: rgba(10,12,11,.7); }
.dialog-grid { display: grid; grid-template-columns: 1.08fr .92fr; }
.dialog-media { min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--paper); }
.dialog-image { min-height: 490px; background: var(--paper); }
.dialog-image img { width: 100%; height: 100%; object-fit: contain; }
.dialog-thumbs { display: flex; gap: 8px; min-height: 82px; padding: 10px; overflow-x: auto; border-top: 1px solid var(--line); }
.dialog-thumbs:empty { display: none; }
.dialog-thumbs button { flex: 0 0 62px; width: 62px; height: 62px; padding: 0; overflow: hidden; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.dialog-thumbs button.active { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.dialog-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.dialog-copy { display: flex; flex-direction: column; padding: 42px; }
.dialog-close { align-self: flex-end; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.3rem; }
.dialog-copy h2 { margin: 46px 0 14px; font-size: 2.2rem; }
.dialog-copy p { color: var(--muted); line-height: 1.75; }
.dialog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.dialog-tags span { padding: 7px 10px; border: 1px solid var(--line); font-size: .74rem; }
.inquiry-link { margin-top: auto; display: inline-flex; justify-content: center; align-items: center; min-height: 48px; background: var(--ink); color: var(--white); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.catalog-footer { padding: 46px 0; background: var(--ink); color: rgba(255,255,255,.65); }
.catalog-footer .container { display: flex; justify-content: space-between; gap: 20px; }
@media (max-width: 900px) {
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .category-head { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 980px) {
  .nav-main { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .nav-main.open { display: flex; }
  .nav-main a { width: 100%; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav-main a:last-child { border-bottom: 0; }
  .catalog-menu { display: grid; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 40px, 1180px); }
  .site-nav { height: auto; min-height: 68px; padding: 14px 20px; gap: 16px; }
  .nav-main { padding-inline: 20px; }
  .catalog-hero { padding: 58px 0 38px; }
  .catalog-hero h1 { font-size: 2.6rem; }
  .category-grid { margin: 36px auto 64px; }
  .category-card { grid-template-columns: 1fr; }
  .category-copy { min-height: 250px; padding: 26px; }
  .category-image { height: 290px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-info { padding: 13px; }
  .dialog-grid { grid-template-columns: 1fr; max-height: 90vh; overflow: auto; }
  .dialog-image { min-height: 340px; }
  .dialog-copy { padding: 26px; }
  .dialog-copy h2 { margin-top: 26px; }
  .category-head h1 { font-size: 2.6rem; }
  .catalog-footer .container { flex-direction: column; }
}
