:root {
  --red: #9a0003; --red-dk: #730002; --red-tint: #f7eceb;
  --ink: #1f1a17; --muted: #6b625b; --line: #e6dfd7; --paper: #faf8f4; --card: #fff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti TC", "Songti SC", "PMingLiU", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  --r: 6px; --shadow: 0 1px 2px rgba(31,26,23,.06), 0 4px 14px rgba(31,26,23,.06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* header */
.site-header { background: #fff; border-top: 4px solid var(--red); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.brand-sub { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { text-decoration: none; border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav a.ext::after { content: " ↗"; color: var(--muted); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: none; font: inherit; font-size: 13px; padding: 4px 10px; cursor: pointer; color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--red); color: #fff; }
.lang button:disabled { color: #b9b0a8; cursor: not-allowed; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

main.wrap { padding: 32px 16px 56px; min-height: 60vh; outline: none; }
section { margin-bottom: 48px; }
.loading, .empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* hero */
.hero { padding: 40px 0 8px; max-width: 760px; }
.kicker { color: var(--red); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; font-weight: 600; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); }
.lede { color: var(--muted); font-size: 17px; margin: 14px 0 24px; max-width: 640px; }
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border: 1px solid #cfc6bd; border-radius: var(--r); background: #fff; }
.search.big input { padding: 14px 16px; font-size: 17px; }
.search button, .btn { font: inherit; font-weight: 600; background: var(--red); color: #fff; border: 0; border-radius: var(--r); padding: 10px 18px; cursor: pointer; }
.search button:hover, .btn:hover { background: var(--red-dk); }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.sec-head h2 { font-size: 24px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cat { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--r); padding: 12px 14px; color: var(--ink); }
.cat:hover { text-decoration: none; border-color: #cfc6bd; border-left-color: var(--red); box-shadow: var(--shadow); }
.cat span { font-weight: 600; }
.cat small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); font-size: 14px; }
.chip:hover { border-color: var(--red); color: var(--red); text-decoration: none; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-1px); }
.ph { aspect-ratio: 4 / 3; background: #f1ede7; display: flex; align-items: center; justify-content: center; }
.ph img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.noimg { color: #a39a91; font-size: 13px; }
.cb { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.meta { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.card h3 { font-family: var(--sans); font-size: 14.5px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin-top: auto; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--red); }

/* browse */
.browse-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.browse-top h1 { font-size: 32px; }
.browse-top .search { flex: 1 1 300px; min-width: 0; max-width: 560px; }
.browse { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; position: sticky; top: 92px; }
.filters summary { font-weight: 600; cursor: pointer; }
.filters form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.filters fieldset { border: 0; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.filters legend { padding: 0; margin-bottom: 4px; }
.filters select, .filters input[type=number], .sort select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #cfc6bd; border-radius: var(--r); background: #fff; color: var(--ink); width: 100%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters .check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.frow { display: flex; align-items: center; gap: 14px; }
.link { color: var(--red); font-size: 14px; }
.res-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.res-head p { margin: 0; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { width: auto; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.pager a, .pager span { padding: 6px 12px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--ink); }
.pager a:hover { border-color: var(--red); text-decoration: none; }
.pager .cur { background: var(--red); border-color: var(--red); color: #fff; }
.pager .dis { color: #b9b0a8; }
.pager .gap { border: 0; background: none; }

/* lot */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; margin-bottom: 20px; color: var(--muted); }
.lot { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.stage { background: #fff; border: 1px solid var(--line); border-radius: var(--r); min-height: 320px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.stage img { max-height: 72vh; width: auto; cursor: zoom-in; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs button { width: 76px; height: 76px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.info h1 { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 20px; }
.hammer { background: var(--red-tint); border-left: 4px solid var(--red); border-radius: var(--r); padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; margin-bottom: 26px; }
.hammer span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-dk); font-weight: 600; }
.hammer strong { font-family: var(--serif); font-size: 32px; color: var(--red); }
.hammer small { color: var(--muted); }
.info h2 { font-size: 18px; margin-bottom: 8px; }
.desc p { margin: 0 0 12px; }
.desc .zh { color: #3d3531; }
.lotnav { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 16px; }
.disclaimer { color: var(--muted); font-size: 13px; margin-top: 24px; }

/* auctions */
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 34px; }
.auc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.auc { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; color: var(--ink); }
.auc:hover { text-decoration: none; box-shadow: var(--shadow); }
.auc-ph { width: 96px; height: 96px; background: #f1ede7; border-radius: 4px; overflow: hidden; }
.auc-ph img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.auc h2 { font-size: 20px; }
.auc p { margin: 2px 0 6px; color: var(--muted); font-size: 14px; }

/* footer */
.site-footer { background: var(--ink); color: #e9e3dc; font-size: 14px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.f-brand { display: flex; gap: 14px; align-items: flex-start; }
.f-brand img { border-radius: 3px; }
.site-footer .muted { color: #b3aaa1; margin: 8px 0 0; }
.site-footer h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #b3aaa1; margin-bottom: 10px; font-weight: 600; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 10px; }
.social { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-base { border-top: 1px solid #3a332e; padding-top: 16px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #b3aaa1; font-size: 12.5px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 10px 0; }
  .browse { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; }
  .lot { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 520px) {
  main.wrap { padding-top: 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cb { padding: 10px; }
  .card h3 { font-size: 13.5px; }
  .price { font-size: 17px; }
  .brand-name { font-size: 18px; }
  .hero { padding-top: 16px; }
  .auc-list { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat { padding: 10px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

/* ---- v2: static pages, tracker, charts ---- */
.crumbs .sep { color: #b9b0a8; }
.crumbs a { color: var(--red); }
.page-head h1 small { font-size: .55em; color: var(--muted); font-weight: 400; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 20px; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; }
a.stage { color: inherit; }
.thumbs a { display: block; width: 76px; height: 76px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.thumbs a[aria-current="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.history, .similar { margin-top: 48px; }
.chart { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .gl { stroke: #eee8e1; }
.chart .ax { font: 12px var(--sans); fill: var(--muted); }
.chart .vl { font: 600 11.5px var(--sans); fill: var(--ink); }
.chart .bar { fill: var(--red); opacity: .85; }
.chart a:hover .bar { opacity: 1; fill: var(--red-dk); }
.chart .dot { fill: #b9ada2; opacity: .75; }
.chart a:hover .dot { fill: var(--ink); opacity: 1; }
.chart .med { stroke: var(--ink); stroke-width: 2.5; }
.chart .me { fill: var(--red); stroke: #fff; stroke-width: 2; }
.chart .melab { font: 600 12px var(--sans); fill: var(--red); }
.chart-note { color: var(--muted); font-size: 14.5px; margin: -6px 0 12px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.legend .k { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 8px; }
.legend .k.me { background: var(--red); } .legend .k.dot { background: #b9ada2; } .legend .k.med { width: 16px; height: 3px; border-radius: 0; background: var(--ink); }
.teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--red-tint); border: 1px solid #ecd3d1; border-radius: var(--r); padding: 22px 24px; }
.teaser h2 { font-size: 22px; } .teaser p { margin: 4px 0 0; color: #4a3f3a; }
.btn { display: inline-block; text-decoration: none !important; }
/* tracker */
.tk-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.tk-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); min-width: 220px; }
.tk-controls select { font: inherit; font-size: 15px; padding: 9px 10px; border: 1px solid #cfc6bd; border-radius: var(--r); background: #fff; color: var(--ink); }
.seg { display: inline-flex; border: 1px solid #cfc6bd; border-radius: var(--r); overflow: hidden; background: #fff; }
.seg button { font: inherit; font-size: 14px; border: 0; background: none; padding: 9px 14px; cursor: pointer; color: var(--ink); }
.seg button + button { border-left: 1px solid #cfc6bd; }
.seg button[aria-pressed="true"] { background: var(--red); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.stats span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats strong { font-family: var(--serif); font-size: 24px; }
.panel { margin-bottom: 18px; }
.panel h2 { font-size: 20px; margin-bottom: 10px; }
.tk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bands { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.band { display: grid; grid-template-columns: 100px 1fr 56px; align-items: center; gap: 10px; font-size: 14px; }
.band .track { background: #f1ede7; border-radius: 3px; height: 14px; overflow: hidden; }
.band .track div { background: var(--red); height: 100%; opacity: .85; }
.band b { text-align: right; font-weight: 600; }
.toplist { list-style: none; counter-reset: r; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.toplist li { counter-increment: r; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.toplist li:first-child { border-top: 0; }
.toplist li::before { content: counter(r); color: var(--muted); font-size: 13px; }
.toplist a { color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.toplist .tl-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }
.toplist .tl-m { font-size: 12px; color: var(--muted); }
.toplist b { font-family: var(--serif); color: var(--red); white-space: nowrap; }
.lotnav { gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .tk-two { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-controls label { min-width: 0; flex: 1 1 100%; }
}
@media (max-width: 700px) {
  .chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chart svg { min-width: 640px; }
  .toplist .tl-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .toplist li { grid-template-columns: 22px 1fr; }
  .toplist b { grid-column: 2; }
}

/* v3 */
.chart .ax2 { font: 10.5px var(--sans); fill: #a39a91; }
.chip span { color: var(--muted); }
.auc .when { color: var(--ink); margin: 2px 0 0; font-size: 14px; }
.salehist { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.salehist h2 { font-size: 18px; margin-bottom: 8px; }
.salehist .note { background: #fff8e6; border: 1px solid #f0dfb0; border-radius: var(--r); padding: 8px 12px; font-size: 14px; margin: 0 0 10px; }
.salehist table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.salehist th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.salehist td { padding: 8px; border-bottom: 1px solid var(--line); }
.salehist td:last-child, .salehist th:last-child { text-align: right; white-space: nowrap; font-family: var(--serif); font-weight: 600; }
.salehist tr.this td { background: var(--red-tint); }
