:root {
  --bg: #ffffff;
  --surface: #f3f3f0;
  --surface-2: #f1e9e1;
  --ink: #20221f;
  --muted: #6d716b;
  --line: #dedfda;
  --clay: #8c4f39;
  --brown-light: #c7aa8b;
  --brown-deep: #654236;
  --serif: "Songti SC", "Noto Serif SC", "STSong", serif;
  --sans: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --page: min(1320px, calc(100vw - 56px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--brown-deep); outline-offset: 3px; }

.announcement {
  min-height: 32px;
  padding: 7px 20px;
  color: #30251f;
  background: var(--brown-light);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  letter-spacing: .06em;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav {
  width: var(--page);
  height: 70px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  width: max-content;
  align-items: baseline;
  gap: 10px;
}
.brand-cn { font: 500 21px/1 var(--serif); letter-spacing: .16em; }
.brand-en { color: var(--muted); font-size: 10px; letter-spacing: .18em; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 34px; font-size: 14px; }
.nav-links a { padding: 22px 0; }
.nav-links a[aria-current="page"] { color: var(--clay); }
.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.mobile-creator-link { display: none; font-size: 14px; }
.wechat-button {
  min-height: 40px;
  padding: 0 20px;
  color: #30251f;
  background: var(--brown-light);
  border: 1px solid var(--brown-light);
  border-radius: 999px;
  cursor: pointer;
}

.page { width: var(--page); margin: auto; }
.catalog-head {
  padding: 36px 0 20px;
}
.catalog-kicker { margin: 0 0 4px; color: var(--clay); font-size: 12px; letter-spacing: .13em; }
.catalog-title { margin: 0; font: 500 clamp(32px, 4vw, 48px)/1.25 var(--serif); letter-spacing: .04em; }
.catalog-note { max-width: 460px; margin: 0; color: var(--muted); font-size: 14px; }
.filter-row {
  position: sticky;
  top: 70px;
  z-index: 30;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-button {
  min-height: 36px;
  padding: 0 16px;
  flex: 0 0 auto;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
}
.filter-button.active { color: #fff; background: var(--brown-deep); border-color: var(--brown-deep); }
.result-count { flex: 0 0 auto; color: var(--muted); font-size: 13px; }

.product-grid {
  padding: 28px 0 88px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px 18px;
}
.product-card[hidden] { display: none; }
.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}
.product-image img { height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.018); }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
  backdrop-filter: blur(8px);
}
.badge.sold { color: #fff; background: rgba(32,34,31,.72); }
.product-info { padding-top: 13px; }
.product-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.product-name { margin: 0; font: 500 17px/1.4 var(--serif); }
.product-price { flex: 0 0 auto; font-size: 15px; }
.product-meta { margin-top: 5px; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.artist-link:hover { color: var(--clay); }
.product-tools { margin-top: 9px; padding-top: 9px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.product-code { color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.copy-link-button { padding: 2px 0; color: var(--brown-deep); background: none; border: 0; font-size: 12px; cursor: pointer; }

.service-strip {
  margin-bottom: 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.service-item { padding: 26px 28px; }
.service-item + .service-item { border-left: 1px solid var(--line); }
.service-item b { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 500; }
.service-item span { color: var(--muted); font-size: 13px; }

.section-head { padding: 58px 0 34px; border-bottom: 1px solid var(--line); }
.section-head h1 { margin: 0; font: 500 clamp(34px, 5vw, 54px)/1.25 var(--serif); letter-spacing: .04em; }
.section-head p { max-width: 560px; margin: 12px 0 0; color: var(--muted); }

.creator-grid {
  padding: 32px 0 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.creator-card { border: 1px solid var(--line); background: #fff; }
.creator-card-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.creator-card-image img { height: 100%; object-fit: cover; transition: transform .35s ease; }
.creator-card:hover .creator-card-image img { transform: scale(1.02); }
.creator-card-body { padding: 24px; }
.creator-card-index { color: var(--clay); font-size: 11px; letter-spacing: .12em; }
.creator-card h2 { margin: 14px 0 2px; font: 500 27px/1.35 var(--serif); }
.creator-place { color: var(--muted); font-size: 13px; }
.creator-desc { min-height: 74px; margin: 16px 0 22px; color: var(--muted); font-size: 14px; }
.creator-enter { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); color: var(--brown-deep); font-size: 14px; }
.creator-enter a:hover { color: var(--clay); }

.creator-detail {
  padding: 48px 0 70px;
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(320px, 4fr);
  gap: 7vw;
  align-items: start;
}
.creator-detail-image { aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--surface); }
.creator-detail-image img { height: 100%; object-fit: cover; }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--muted); font-size: 13px; }
.creator-index { color: var(--clay); font-size: 12px; letter-spacing: .14em; }
.creator-detail h1 { margin: 14px 0 4px; font: 500 clamp(44px, 6vw, 72px)/1.1 var(--serif); letter-spacing: .08em; }
.creator-detail .creator-place { font-size: 14px; }
.creator-quote { margin: 40px 0 24px; font: 400 25px/1.65 var(--serif); }
.creator-bio { color: var(--muted); }
.creator-facts { margin-top: 34px; padding-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid var(--line); }
.creator-fact b { display: block; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .08em; }
.creator-fact span { display: block; margin-top: 5px; font: 500 16px/1.4 var(--serif); }
.works-section { padding: 52px 0 90px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.works-title { margin: 0 0 26px; font: 500 30px/1.35 var(--serif); }
.works-section .product-grid { padding: 0; }

.product-detail {
  padding: 42px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr);
  gap: 7vw;
  align-items: start;
}
.product-detail-image { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.product-detail-image img { height: 100%; object-fit: cover; }
.product-detail-info { position: sticky; top: 122px; }
.product-detail-info h1 { margin: 8px 0 4px; font: 500 clamp(34px, 4vw, 52px)/1.25 var(--serif); }
.detail-artist { color: var(--muted); font-size: 14px; }
.detail-price { margin: 30px 0; font-size: 22px; }
.detail-status { display: inline-block; padding: 5px 10px; color: var(--brown-deep); background: var(--surface-2); border-radius: 999px; font-size: 12px; }
.detail-description { margin: 26px 0; color: var(--muted); }
.detail-list { margin: 0; border-top: 1px solid var(--line); }
.detail-row { padding: 13px 0; display: grid; grid-template-columns: 86px 1fr; gap: 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-row dt { color: var(--muted); }
.detail-row dd { margin: 0; }
.detail-actions { margin-top: 28px; display: grid; grid-template-columns: 1fr 132px; gap: 10px; }
.detail-contact { width: 100%; min-height: 52px; color: #30251f; background: var(--brown-light); border: 0; border-radius: 0; cursor: pointer; }
.detail-copy { min-height: 52px; color: var(--ink); background: #fff; border: 1px solid var(--ink); border-radius: 0; cursor: pointer; }
.detail-tip { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.site-footer { padding: 46px 0 82px; border-top: 1px solid var(--line); }
.footer-inner { width: var(--page); margin: auto; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.footer-brand { font: 500 24px/1 var(--serif); letter-spacing: .13em; }
.footer-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 13px; }
.footer-links a,
.footer-contact {
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: inherit;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.footer-links a:hover,
.footer-contact:hover { color: var(--clay); }

.mobile-contact { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20,22,20,.48);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-panel { width: min(480px, 100%); padding: 40px; position: relative; background: #fff; transform: translateY(12px); transition: transform .2s ease; }
.modal.open .modal-panel { transform: translateY(0); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; background: none; border: 0; font-size: 22px; cursor: pointer; }
.modal h2 { margin: 0; font: 500 30px/1.35 var(--serif); }
.modal-desc { margin: 8px 0 24px; color: var(--muted); font-size: 14px; }
.wechat-layout { display: grid; gap: 18px; justify-items: center; }
.qr-code-frame { position: relative; width: min(280px, 100%); aspect-ratio: 1; overflow: hidden; background: #fff; }
.qr-code-frame img { position: absolute; top: -49.35%; left: -21.61%; width: 143.23%; max-width: none; height: auto; }
.wechat-id-button { width: min(280px, 100%); padding: 14px 18px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); text-align: center; cursor: pointer; }
.wechat-id-button:hover { border-color: var(--brown-deep); }
.wechat-id-button:focus-visible { outline: 2px solid var(--brown-deep); outline-offset: 3px; }
.wechat-label { display: block; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.wechat-id { display: block; margin: 4px 0 3px; font: 500 21px/1.4 var(--serif); }
.copy-feedback { display: block; color: var(--brown-deep); font-size: 12px; }
.modal-tip { margin: 22px 0 0; padding-top: 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }

@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .mobile-creator-link { display: block; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .creator-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  :root { --page: calc(100vw - 28px); }
  body { padding-bottom: 70px; }
  .announcement { min-height: 28px; padding: 5px 12px; font-size: 11px; }
  .nav { height: 56px; gap: 10px; }
  .brand-cn { font-size: 18px; }
  .brand-en { display: none; }
  .nav-actions { gap: 14px; }
  .wechat-button { display: none; }
  .catalog-head { padding: 25px 0 16px; display: block; }
  .catalog-kicker { font-size: 11px; }
  .catalog-title { font-size: 30px; }
  .catalog-note { margin-top: 7px; font-size: 13px; }
  .filter-row { top: 56px; margin-left: -14px; margin-right: -14px; padding: 10px 14px; }
  .filter-button { min-height: 34px; padding: 0 14px; font-size: 13px; }
  .result-count { display: none; }
  .product-grid { padding: 16px 0 56px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
  .badge { top: 7px; left: 7px; padding: 4px 7px; font-size: 10px; }
  .product-info { padding-top: 9px; }
  .product-name { font-size: 15px; }
  .product-price { font-size: 14px; }
  .product-meta { display: block; font-size: 12px; }
  .product-meta span:last-child { display: none; }
  .service-strip { margin-bottom: 60px; grid-template-columns: 1fr; }
  .service-item { padding: 18px 20px; }
  .service-item + .service-item { border-left: 0; border-top: 1px solid var(--line); }
  .section-head { padding: 30px 0 22px; }
  .section-head h1 { font-size: 34px; }
  .section-head p { margin-top: 8px; font-size: 14px; }
  .creator-grid { padding: 20px 0 64px; grid-template-columns: 1fr; gap: 16px; }
  .creator-card { display: grid; grid-template-columns: 42% 58%; }
  .creator-card-image { aspect-ratio: auto; min-height: 210px; }
  .creator-card-body { padding: 18px; }
  .creator-card h2 { margin-top: 8px; font-size: 23px; }
  .creator-desc { min-height: 0; margin: 11px 0 15px; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .creator-enter { font-size: 13px; }
  .creator-detail { padding: 22px 0 48px; grid-template-columns: 1fr; gap: 28px; }
  .creator-detail-image { aspect-ratio: 4 / 3.5; }
  .back-link { margin-bottom: 18px; }
  .creator-detail h1 { font-size: 46px; }
  .creator-quote { margin: 28px 0 18px; font-size: 21px; }
  .creator-facts { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .creator-fact span { font-size: 14px; }
  .works-section { padding: 36px 0 58px; }
  .works-section .product-grid { padding-bottom: 0; }
  .product-detail { padding: 18px 0 60px; grid-template-columns: 1fr; gap: 28px; }
  .product-detail-info { position: static; }
  .product-detail-info h1 { font-size: 34px; }
  .detail-price { margin: 20px 0; }
  .site-footer { padding: 36px 0 48px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .mobile-contact { position: fixed; left: 12px; right: 12px; bottom: 9px; z-index: 60; min-height: 50px; display: flex; align-items: center; justify-content: center; color: #30251f; background: var(--brown-light); border: 0; border-radius: 0; box-shadow: 0 8px 26px rgba(45,34,28,.2); cursor: pointer; }
  .product-page .mobile-contact { display: none; }
  .product-page { padding-bottom: 0; }
  .detail-actions { grid-template-columns: 1fr 112px; }
  .modal-panel { padding: 34px 22px 26px; }
  .qr-code-frame, .wechat-id-button { width: min(260px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
