:root {
  --bg: #f5f6f3;
  --panel: #fff;
  --text: #18201c;
  --muted: #66736b;
  --line: #dfe5df;
  --accent: #0f766e;
  --accent2: #b94f35;
  --shadow: 0 10px 30px rgba(22, 32, 26, .10);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.top {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 220px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 28px; border-bottom: 1px solid var(--line);
  background: rgba(245,246,243,.95); backdrop-filter: blur(12px);
}
.logo { display: flex; gap: 10px; align-items: center; font-weight: 800; }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: white; background: #23352c; }
.search input { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: white; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,118,110,.13); }
.top button, .side button, .back, .primary { border-radius: 8px; border: 1px solid var(--line); background: white; min-height: 38px; padding: 0 12px; }
.menu { display: none; }
.wrap { display: grid; grid-template-columns: 280px 1fr; gap: 22px; width: min(1480px, 100%); margin: 0 auto; padding: 22px 28px 46px; }
.side { position: sticky; top: 82px; align-self: start; max-height: calc(100vh - 104px); overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.side-title { display: flex; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); font-weight: 800; }
.side nav { padding: 8px; }
.cat, .subcat { display: flex; justify-content: space-between; width: 100%; margin: 2px 0; border: 0 !important; text-align: left; background: transparent !important; }
.cat { font-weight: 800; }
.subcat { padding-left: 24px !important; color: #26372e; }
.cat:hover, .subcat:hover, .active { background: #edf2ee !important; }
.count { color: var(--muted); font-size: 12px; font-weight: 600; }
.hero { display: grid; grid-template-columns: 1fr 360px; gap: 22px; margin-bottom: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); }
.hero h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 54px); line-height: 1; letter-spacing: 0; }
.hero p { margin: 0; color: var(--muted); line-height: 1.65; }
.hero-art { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; min-height: 220px; }
.tile { border-radius: 8px; background: linear-gradient(135deg, #dfe8e3, #809889); position: relative; overflow: hidden; }
.tile:nth-child(2) { background: linear-gradient(135deg, #efe1d6, #b7674d); }
.tile:nth-child(3) { background: linear-gradient(135deg, #dfe7f0, #587fab); }
.tile:nth-child(4) { background: linear-gradient(135deg, #efe7d2, #b38b35); }
.tile:before, .ph:before { content:""; position:absolute; width:62%; height:36%; left:19%; top:34%; border-radius:999px; background:rgba(255,255,255,.7); box-shadow: inset 0 -15px 0 rgba(0,0,0,.08); }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; }
.crumb button { border: 0; background: transparent; color: var(--accent); padding: 0; }
.sort select { height: 38px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 0 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 8px 22px rgba(22,32,26,.07); }
.card button { width: 100%; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; }
.thumb, .ph { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: linear-gradient(135deg, #e2e8e5, #8da497); }
.thumb[src=""], .thumb:not([src]) { display: none; }
.badge { position: absolute; top: 9px; left: 9px; padding: 4px 7px; border-radius: 8px; background: rgba(255,255,255,.9); font-size: 12px; font-weight: 800; }
.body { padding: 12px; }
.body h3 { min-height: 44px; margin: 0 0 8px; font-size: 15px; line-height: 1.45; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; }
.tag { padding: 4px 7px; border-radius: 8px; background: #edf2ee; }
.detail { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(290px,.8fr); gap: 20px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery img, .gallery .ph { border: 1px solid var(--line); border-radius: 8px; background: white; }
.panel { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 18px; box-shadow: var(--shadow); }
.panel h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; }
.rows { margin: 18px 0; display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.row span:first-child { color: var(--muted); }
.primary { display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--accent); color: white; font-weight: 800; }
.empty { padding: 40px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; color: var(--muted); background: white; }
.drawer { display: none; }
@media (max-width: 980px) {
  .top { grid-template-columns: auto 1fr auto; padding: 12px 16px; }
  .menu { display: inline-block; }
  .wrap { grid-template-columns: 1fr; padding: 16px; }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 30; width: min(86vw, 320px); max-height: none; border-radius: 0; transform: translateX(-105%); transition: transform .18s ease; }
  .side.open { transform: translateX(0); }
  .drawer.open { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(22,32,26,.36); }
  .hero, .detail { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .top { grid-template-columns: auto 1fr; }
  .search { grid-column: 1 / -1; }
  .top > button:last-child { display: none; }
  .hero { padding: 18px; }
  .hero-art { min-height: 170px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .body { padding: 10px; }
  .body h3 { min-height: 58px; font-size: 13px; }
  .gallery { grid-template-columns: 1fr; }
}
