/* ===== 通用 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #ffffff;
  --tile: #f0f0f0;
  --ink: #1a1a1a;
  --muted: #888;
  --line: #e5e5e5;
  --accent: #1a1a1a;
  --price: #d23a2e;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #d8d8d8;
  -webkit-font-smoothing: antialiased;
}

/* ===== 手机外壳（商店与详情页） ===== */
.phone {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.12);
}

/* 顶部导航 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  padding: 14px 18px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.topbar .back {
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  width: 24px;
}
.topbar .title {
  font-size: 19px;
  font-weight: 700;
  flex: 1;
}
.topbar .tools {
  display: flex;
  gap: 8px;
}
.topbar .tools .pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #555;
  text-decoration: none;
}

/* 分类标签 */
.tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: #555;
  background: #fff;
  cursor: pointer;
}
.tab.active {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 700;
}

/* 商品网格 */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
}
.card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card .thumb {
  background: var(--tile);
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}
.card .thumb .brand {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #444;
  font-weight: 600;
}
.card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px 16px 14px;
}
.card .name {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .price {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 700;
}
.card .price::before { content: "¥"; font-size: 14px; margin-right: 1px; }

/* 制作人页脚 */
.credit {
  text-align: center;
  color: #bbb;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 16px 0 40px;
}

/* 悬浮购物车 */
.fab-cart {
  position: fixed;
  right: max(18px, calc(50vw - 215px + 18px));
  bottom: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  z-index: 20;
}

/* ===== 详情页 ===== */
.detail-hero {
  background: var(--tile);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-hero img {
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
}
.detail-head {
  padding: 18px 18px 8px;
}
.detail-head .d-name {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}
.detail-head .d-price {
  margin-top: 10px;
  color: var(--price);
  font-size: 24px;
  font-weight: 700;
}
.detail-head .d-price::before { content: "¥"; font-size: 16px; }
.detail-head .d-code {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.section-title {
  padding: 16px 18px 4px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}
.spec {
  padding: 4px 18px 24px;
}
.spec .row {
  display: flex;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.spec .row .k {
  flex: 0 0 96px;
  color: var(--muted);
}
.spec .row .v {
  flex: 1;
  color: var(--ink);
  line-height: 1.5;
}
.buybar {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}
.buybar a, .buybar button {
  flex: 1;
  border: none;
  border-radius: 24px;
  padding: 13px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.buybar .ghost { background: #f2f2f2; color: #333; flex: 0 0 110px; }
.buybar .primary { background: var(--price); color: #fff; }

/* 管理入口浮标 */
.admin-link {
  position: fixed;
  left: max(18px, calc(50vw - 215px + 18px));
  bottom: 28px;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 20px;
  z-index: 20;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* ===== 典藏前台视觉升级：纸张、展签与博物馆出版物风格 ===== */
.phone {
  --paper: #f4f0e8;
  --paper-light: #f8f5ef;
  --ink-warm: #29241f;
  --bronze: #936942;
  --hairline: rgba(74, 56, 40, .13);
  background: var(--paper);
  box-shadow: 0 0 36px rgba(48, 36, 25, .14);
}
.phone .topbar {
  padding: 14px 18px;
  background: rgba(244, 240, 232, .96);
  border-bottom-color: var(--hairline);
  backdrop-filter: blur(12px);
}
.topbar .wordmark {
  color: var(--ink-warm);
  font: 700 15px/1 Georgia, "Times New Roman", serif;
  letter-spacing: 3px;
  text-decoration: none;
}
.phone .topbar .title {
  color: #8f8275;
  font: 11px/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: 3px;
  text-align: center;
}
.phone .topbar .tools .pill {
  width: 32px; height: 32px; background: transparent; border: 1px solid var(--hairline);
  border-radius: 2px; color: #766757; font: 24px/27px Georgia, serif;
}
.museum-head {
  position: relative;
  padding: 42px 20px 25px;
  overflow: hidden;
}
.museum-head::after {
  content: "K";
  position: absolute; right: -6px; top: -38px;
  color: rgba(125, 91, 61, .055);
  font: 230px/1 Georgia, "Times New Roman", serif;
}
.museum-head .head-rule { width: 30px; height: 2px; margin-bottom: 15px; background: var(--bronze); }
.museum-head .eyebrow {
  position: relative; z-index: 1; color: #806f5e;
  font: 10px/1.3 Georgia, "Times New Roman", serif; letter-spacing: 2.4px;
}
.museum-head h1 {
  position: relative; z-index: 1; margin-top: 8px;
  color: var(--ink-warm); font-family: STSong, SimSun, serif;
  font-size: 37px; font-weight: 500; letter-spacing: 4px;
}
.museum-head .head-meta {
  position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 13px; color: #554c43; font-size: 14px; letter-spacing: 5px;
}
.museum-head .head-meta span:last-child {
  color: #a0968b; font: 9px/1 Georgia, serif; letter-spacing: 1.2px;
}
.museum-search {
  display: flex; align-items: center; height: 44px; margin: 0 16px 14px; padding: 0 14px;
  background: rgba(255,255,255,.58); border: 1px solid var(--hairline); border-radius: 2px;
  box-shadow: 0 8px 22px rgba(61, 45, 31, .035);
}
.museum-search span { color: #8a7662; font: 24px/1 Georgia, serif; }
.museum-search input {
  flex: 1; min-width: 0; margin-left: 10px; border: 0; outline: 0; background: transparent;
  color: #322c27; font: 14px/1.2 inherit;
}
.museum-search input::placeholder { color: #a1988e; }
.phone .tabs {
  gap: 25px; padding: 11px 16px; background: rgba(244,240,232,.96);
  border-top: 1px solid rgba(74,56,40,.07); border-bottom-color: var(--hairline);
}
.phone .tab {
  padding: 7px 1px 8px; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: transparent; color: #857a6f; font-size: 13px;
}
.phone .tab.active { border-color: var(--bronze); color: var(--ink-warm); font-weight: 600; }
.phone .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px; padding: 17px 13px 28px; background: var(--paper);
}
.phone .card { min-width: 0; }
.phone .card .thumb {
  aspect-ratio: 4 / 5; border: 1px solid rgba(75,56,39,.08); border-radius: 2px;
  background: #e9e3d9; box-shadow: 0 9px 20px rgba(55,40,27,.075);
}
.phone .card .thumb::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 10px;
  height: 1px; background: rgba(80,63,47,.12); z-index: 2;
}
.phone .card .thumb .brand,
.phone .card .thumb .serial {
  position: absolute; top: 10px; z-index: 2; color: #74685c;
  font: 700 9px/1 Georgia, serif; letter-spacing: 2px;
}
.phone .card .thumb .brand { left: 11px; }
.phone .card .thumb .serial { right: 11px; color: #9d9286; font-weight: 400; letter-spacing: 1px; }
.phone .card .thumb img { padding: 34px 13px 20px; }
.phone .card .card-meta {
  margin-top: 9px; color: var(--bronze); font-size: 10px; letter-spacing: 1.5px;
}
.phone .card .name {
  display: flex; gap: 5px; justify-content: space-between; margin-top: 4px;
  color: var(--ink-warm); font-family: STSong, SimSun, serif; font-size: 16px;
}
.phone .card .name span {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.phone .card .name i { color: #988b7d; font: normal 13px/1.5 Georgia, serif; }
.phone .card .price { margin-top: 5px; color: #4c4137; font: 16px/1.2 Georgia, serif; }
.phone .card .price::before { font-size: 11px; }
.phone .credit { color: #a39a90; font: 10px/1.3 Georgia, serif; letter-spacing: 2px; padding: 10px 0 48px; }
.phone .credit::before { content: ""; display: block; width: 24px; height: 1px; margin: 0 auto 10px; background: #b5aa9d; }
.phone .credit-admin { display: block; margin-top: 12px; color: #b6aea5; font: 10px/1.2 inherit; letter-spacing: 1px; text-decoration: none; }
.no-results { grid-column: 1 / -1; padding: 90px 0; color: #958b80; text-align: center; font-size: 14px; }
.detail-kicker {
  display: flex; justify-content: space-between; padding: 13px 17px;
  border-bottom: 1px solid var(--hairline); color: #877969;
  font: 9px/1 Georgia, serif; letter-spacing: 2px;
}
.phone .detail-hero {
  position: relative; aspect-ratio: 1 / 1.05; overflow: hidden;
  background: linear-gradient(145deg, #e5ded2, #f0ebe3 52%, #ded5c8);
}
.phone .detail-hero::before {
  content: ""; position: absolute; inset: 18px; border: 1px solid rgba(83,64,47,.13);
}
.phone .detail-hero::after {
  content: "K"; position: absolute; right: -10px; bottom: -58px;
  color: rgba(84,62,44,.045); font: 240px/1 Georgia, serif;
}
.phone .detail-hero img { position: relative; z-index: 1; max-width: 86%; max-height: 86%; }
.phone .detail-head { padding: 22px 20px 19px; background: var(--paper-light); }
.detail-head .d-category { color: var(--bronze); font-size: 10px; letter-spacing: 1.8px; }
.phone .detail-head .d-name {
  margin-top: 7px; color: var(--ink-warm); font-family: STSong, SimSun, serif;
  font-size: 26px; font-weight: 500; letter-spacing: 1px;
}
.detail-head .d-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 13px; }
.phone .detail-head .d-price { margin: 0; color: #5b4635; font: 22px/1 Georgia, serif; }
.phone .detail-head .d-price::before { font-size: 13px; }
.phone .detail-head .d-code { margin: 0 0 2px; color: #aaa095; font: 9px/1 Georgia, serif; letter-spacing: 1.4px; }
.phone .section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 21px 20px 9px; color: #342e28; font-family: STSong, SimSun, serif;
  font-size: 16px; font-weight: 500; letter-spacing: 2px;
}
.phone .section-title small { color: #9e9489; font: 9px/1 Georgia, serif; letter-spacing: 1.3px; }
.phone .spec { padding: 0 20px 26px; }
.phone .spec .row { padding: 13px 0; border-bottom-color: var(--hairline); font-size: 14px; }
.phone .spec .row .k { flex-basis: 94px; color: #94897d; font-size: 12px; letter-spacing: 1px; }
.phone .spec .row .v { color: #39322c; }
.phone .buybar {
  gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(248,245,239,.97); border-top-color: var(--hairline);
  box-shadow: 0 -6px 18px rgba(48,35,24,.045);
}
.phone .buybar a { border-radius: 2px; letter-spacing: 1px; }
.phone .buybar .ghost { background: #e9e3da; color: #4b433b; }
.phone .buybar .primary { background: #302a25; color: #f8f4ed; }

/* ===== 后台管理（宽屏表格） ===== */
.admin-wrap {
  max-width: 1400px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}
.admin-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: #1a1a1a;
  color: #fff;
}
.admin-bar h1 { font-size: 18px; font-weight: 700; }
.admin-bar .spacer { flex: 1; }
.admin-bar a, .admin-bar button {
  font-size: 13.5px;
  border: 1px solid #555;
  background: #2a2a2a;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.admin-bar button.save { background: #2e7d32; border-color: #2e7d32; }
.admin-bar button.add { background: #1565c0; border-color: #1565c0; }
.admin-bar button.reset { background: #6d4c41; border-color: #6d4c41; }
.admin-hint {
  padding: 10px 24px;
  font-size: 13px;
  color: #666;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
}
.table-scroll { overflow-x: auto; padding-bottom: 40px; }
table.sheet {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  min-width: 1300px;
}
table.sheet th, table.sheet td {
  border: 1px solid #dcdcdc;
  padding: 0;
  vertical-align: top;
}
table.sheet thead th {
  background: #f3f4f6;
  padding: 10px 8px;
  font-weight: 700;
  white-space: nowrap;
}
table.sheet td .cell {
  width: 100%;
  border: none;
  padding: 7px 8px;
  font: inherit;
  resize: vertical;
  background: transparent;
  min-height: 34px;
  font-family: inherit;
}
table.sheet td .cell:focus {
  outline: 2px solid #1565c0;
  background: #eef5ff;
}
table.sheet td.thumb-cell { width: 78px; text-align: center; padding: 4px; }
table.sheet td.thumb-cell img {
  width: 64px; height: 64px; object-fit: contain; background: #f4f4f4; border-radius: 3px;
}
table.sheet td.thumb-cell .rot-row { display: flex; justify-content: center; gap: 4px; margin-top: 3px; }
table.sheet td.thumb-cell .rot-row button.rotbtn {
  background: #fff; border: 1px solid #999; color: #555;
  border-radius: 4px; padding: 1px 6px; cursor: pointer; font-size: 12px; line-height: 1.4;
}
table.sheet td.thumb-cell .rot-row button.rotbtn:hover { background: #f0f0f0; }
table.sheet td.op-cell { width: 64px; text-align: center; }
table.sheet td.op-cell button {
  background: #fff; border: 1px solid #d23a2e; color: #d23a2e;
  border-radius: 5px; padding: 5px 8px; cursor: pointer; font-size: 12px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 22px;
  border-radius: 24px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

/* ===== 一键修图弹窗 ===== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: none; align-items: center; justify-content: center; z-index: 100;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 12px; width: min(920px, 94vw);
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
}
.modal-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.modal-head h2 { font-size: 17px; flex: 1; }
.modal-head .x { cursor: pointer; font-size: 22px; color: #888; border: none; background: none; }
.modal-body { padding: 16px 20px; overflow-y: auto; }
.method-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.method-row label { font-size: 14px; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.method-row .hint { font-size: 12px; color: #999; }
.src-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.src-item {
  border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  cursor: pointer; background: #f4f4f4; position: relative; aspect-ratio: 1/1;
}
.src-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.src-item.sel { border-color: #1565c0; }
.src-item .src-no {
  position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,.6);
  color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px;
}

/* 序号列：窄一点、居中 */
table.sheet th.col-no, table.sheet td.col-no { width: 42px; }
table.sheet td.col-no .cell-no { text-align: center; padding: 7px 2px; }

/* 手机端后台顶栏：按钮换行、隐藏左侧竖排标题（顶部横幅已有同名标题） */
@media (max-width: 680px) {
  .admin-bar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .admin-bar h1 { display: none; }
  .admin-bar .spacer { display: none; }
  .admin-bar #count { font-size: 12px; width: 100%; order: -1; margin-bottom: 2px; }
  .admin-bar a, .admin-bar button { font-size: 13px; padding: 8px 12px; flex: 1 1 auto; text-align: center; }
}
.src-item.used::after {
  content: "已入库"; position: absolute; top: 4px; left: 4px;
  background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px;
}
.modal-foot {
  padding: 14px 20px; border-top: 1px solid var(--line);
  display: flex; gap: 10px; align-items: center;
}
.modal-foot .grow { flex: 1; font-size: 13px; color: #666; }
.modal-foot button {
  border: none; border-radius: 8px; padding: 10px 20px; font-size: 14px;
  font-weight: 600; cursor: pointer;
}
.modal-foot .go { background: #1565c0; color: #fff; }
.modal-foot .go:disabled { background: #aac4e6; cursor: not-allowed; }
.spinner {
  width: 16px; height: 16px; border: 2px solid #fff; border-top-color: transparent;
  border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 导出按钮 */
.admin-bar button.exp { background: #455a64; border-color: #455a64; }

/* 表格内下拉 */
table.sheet td select.cell {
  width: 100%; border: none; background: transparent; padding: 7px 6px;
  font: inherit; min-height: 34px; cursor: pointer;
}
table.sheet td select.cell:focus { outline: 2px solid #1565c0; background: #eef5ff; }

/* 看大图 */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center; z-index: 300; cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }

/* 打印标题：屏幕隐藏，打印显示 */
.print-title { display: none; }

/* ===== 打印 / 存 PDF ===== */
@media print {
  body { background: #fff; }
  .no-print, .admin-link, .fab-cart { display: none !important; }
  .admin-wrap { max-width: none; box-shadow: none; }
  .print-title { display: block; text-align: center; font-size: 20px; font-weight: 700; margin: 8px 0 14px; }
  .table-scroll { overflow: visible; padding: 0; }
  table.sheet { min-width: 0; width: 100%; font-size: 11px; }
  table.sheet thead { display: table-header-group; }
  table.sheet th, table.sheet td { border: 1px solid #999; }
  /* 表单控件打印成纯文本外观 */
  table.sheet td .cell, table.sheet td select.cell, table.sheet td textarea.cell {
    border: none !important; outline: none !important; background: transparent !important;
    -webkit-appearance: none; appearance: none; resize: none; min-height: 0;
    white-space: pre-wrap; overflow: visible;
  }
  table.sheet td select.cell { padding: 4px; }
  table.sheet td.thumb-cell img { width: 70px; height: 70px; }
  table.sheet td.thumb-cell .rot-row { display: none !important; }
  tr { page-break-inside: avoid; }
}

/* ===== Web 典藏展厅：桌面与移动端响应式首页 ===== */
.collection-page {
  --museum-paper: #f2eee6;
  --museum-paper-light: #f8f5ef;
  --museum-ink: #25211d;
  --museum-muted: #82776b;
  --museum-bronze: #9b6a40;
  --museum-line: rgba(62, 48, 35, .15);
  background: var(--museum-paper);
}
.collection-page .collection-shell {
  width: 100%; max-width: none; min-height: 100vh; margin: 0;
  background: var(--museum-paper); box-shadow: none;
}
.collection-page .collection-nav {
  height: 76px; padding: 0 clamp(24px, 5vw, 76px);
  background: rgba(242, 238, 230, .9); border-color: var(--museum-line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.collection-page .wordmark { display: flex; align-items: baseline; gap: 9px; font-size: 20px; }
.collection-page .wordmark small { color: var(--museum-muted); font: 9px/1 Georgia, serif; letter-spacing: 2px; }
.collection-page .collection-nav .title { font-size: 10px; letter-spacing: 4px; }
.collection-page .nav-links { display: flex; align-items: center; gap: 28px; }
.collection-page .nav-links a {
  color: #5f554b; font-size: 13px; text-decoration: none; letter-spacing: 1px;
  transition: color .2s ease;
}
.collection-page .nav-links a:hover { color: var(--museum-bronze); }
.collection-page .nav-links .manage-link {
  padding: 9px 15px; border: 1px solid var(--museum-line); color: var(--museum-ink);
}
.web-hero {
  min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  border-bottom: 1px solid var(--museum-line); overflow: hidden;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(70px, 9vw, 140px) clamp(34px, 8vw, 130px);
  position: relative;
}
.hero-copy::before {
  content: "典"; position: absolute; left: -2vw; bottom: -11vw;
  color: rgba(84, 61, 41, .035); font: 30vw/1 STSong, SimSun, serif; pointer-events: none;
}
.collection-page .eyebrow {
  color: var(--museum-bronze); font: 10px/1.5 Georgia, "Times New Roman", serif; letter-spacing: 3px;
}
.hero-copy h1 {
  margin-top: 27px; color: var(--museum-ink); font: 400 clamp(54px, 6.2vw, 94px)/1.2 STSong, SimSun, serif;
  letter-spacing: .05em;
}
.hero-copy h1 em { color: var(--museum-bronze); font-style: normal; }
.hero-intro {
  max-width: 510px; margin-top: 30px; color: #6d6359; font: 15px/2 "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .08em;
}
.hero-action {
  display: flex; align-items: center; justify-content: space-between; width: 185px;
  margin-top: 38px; padding: 12px 0; border-bottom: 1px solid #725437;
  color: var(--museum-ink); text-decoration: none; font-size: 13px; letter-spacing: 2px;
}
.hero-action span { color: var(--museum-bronze); font: 20px/1 Georgia, serif; }
.hero-stats { display: flex; gap: clamp(30px, 5vw, 72px); margin-top: clamp(48px, 7vw, 92px); }
.hero-stats div { display: flex; flex-direction: column; gap: 8px; }
.hero-stats strong { color: var(--museum-ink); font: 28px/1 Georgia, serif; font-weight: 400; }
.hero-stats div:last-child strong { font-size: 14px; letter-spacing: 2px; padding-top: 8px; }
.hero-stats span { color: #998e83; font-size: 10px; letter-spacing: 2px; }
.hero-object {
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  padding: clamp(38px, 6vw, 90px); background: #dfd7ca; position: relative;
}
.hero-object::before {
  content: "K"; position: absolute; right: -2vw; top: -7vw;
  color: rgba(255,255,255,.16); font: 30vw/1 Georgia, serif;
}
.hero-frame {
  width: min(100%, 580px); aspect-ratio: 4 / 5; position: relative;
  display: flex; align-items: center; justify-content: center; padding: 10%;
  background: rgba(244, 239, 231, .54); border: 1px solid rgba(79, 58, 40, .17);
  box-shadow: 0 32px 80px rgba(58, 42, 29, .14); transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.hero-object:hover .hero-frame { transform: translateY(-7px); }
.hero-frame::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(79, 58, 40, .09); }
.hero-frame .frame-no { position: absolute; left: 27px; top: 26px; color: #857667; font: 9px/1 Georgia, serif; letter-spacing: 2px; }
.hero-frame img { width: 100%; height: 78%; object-fit: contain; filter: drop-shadow(0 23px 15px rgba(51,39,28,.15)); }
.frame-caption {
  position: absolute; left: 27px; right: 27px; bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between;
  border-top: 1px solid rgba(79,58,40,.12); padding-top: 15px;
}
.frame-caption span { color: var(--museum-bronze); font-size: 10px; letter-spacing: 2px; }
.frame-caption strong { color: var(--museum-ink); font: 400 17px/1 STSong, SimSun, serif; letter-spacing: 1px; }
.collection-section { max-width: 1480px; margin: 0 auto; padding: clamp(78px, 9vw, 130px) clamp(20px, 5vw, 72px); }
.collection-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.collection-heading h2 { margin-top: 12px; color: var(--museum-ink); font: 400 clamp(38px, 4vw, 60px)/1.1 STSong, SimSun, serif; letter-spacing: 5px; }
.collection-heading > p { max-width: 330px; color: var(--museum-muted); font-size: 13px; line-height: 1.8; text-align: right; }
.collection-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  margin-top: 54px; border-top: 1px solid var(--museum-line); border-bottom: 1px solid var(--museum-line);
}
.collection-page .collection-tools .tabs {
  flex: 1; gap: 30px; padding: 0; border: 0; background: transparent;
}
.collection-page .collection-tools .tab {
  padding: 20px 1px 18px; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: transparent; color: #81766b; font: 13px/1 inherit; white-space: nowrap;
}
.collection-page .collection-tools .tab.active { border-color: var(--museum-bronze); color: var(--museum-ink); }
.collection-page .collection-tools .museum-search {
  width: min(310px, 30vw); height: 42px; margin: 0; padding: 0 13px; flex: 0 0 auto;
  background: rgba(255,255,255,.33); border-color: var(--museum-line);
}
.result-line {
  display: flex; justify-content: space-between; margin-top: 30px;
  color: #8e8378; font-size: 10px; letter-spacing: 2px;
}
.collection-page .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(30px, 4vw, 58px) clamp(14px, 2.2vw, 34px);
  padding: 24px 0 0; background: transparent;
}
.collection-page .card { animation: cardIn .55s both; animation-delay: var(--delay); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.collection-page .card .thumb {
  aspect-ratio: 4 / 5; background: #e8e1d6; border-color: rgba(75,56,39,.1);
  box-shadow: 0 16px 35px rgba(55,40,27,.07); transition: transform .35s ease, box-shadow .35s ease;
}
.collection-page .card:hover .thumb { transform: translateY(-6px); box-shadow: 0 24px 42px rgba(55,40,27,.13); }
.collection-page .card .thumb img { padding: 15% 10% 10%; transition: transform .5s ease; }
.collection-page .card:hover .thumb img { transform: scale(1.025); }
.image-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(87,66,47,.09); font: 130px/1 Georgia, serif;
}
.collection-page .card .card-meta { display: flex; justify-content: space-between; margin-top: 14px; }
.collection-page .card .card-meta span { color: #a3988d; font: 8px/1.4 Georgia, serif; letter-spacing: 1px; }
.collection-page .card .name { margin-top: 7px; font-size: 19px; }
.collection-page .card .card-foot {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 11px; padding-top: 11px;
  border-top: 1px solid rgba(74,56,40,.1); color: #91867a; font-size: 11px;
}
.collection-page .card .card-foot strong { color: #544538; font: 400 14px/1 Georgia, serif; }
.collection-page .no-results {
  min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.collection-page .no-results strong { color: #655b51; font: 400 20px/1 STSong, SimSun, serif; }
.collection-page .no-results span { color: #9b9187; font-size: 12px; }
.web-footer {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px;
  padding: 42px clamp(24px, 5vw, 76px); border-top: 1px solid var(--museum-line); color: #92877c;
}
.footer-brand { color: var(--museum-ink); font: 700 17px/1 Georgia, serif; letter-spacing: 4px; text-decoration: none; }
.web-footer > p { font-size: 10px; letter-spacing: 2px; }
.collection-page .web-footer .credit { display: flex; justify-content: flex-end; gap: 18px; padding: 0; color: #92877c; }
.collection-page .web-footer .credit::before { display: none; }
.collection-page .web-footer .credit-admin { display: inline; margin: 0; color: #92877c; }

@media (max-width: 1080px) {
  .web-hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding-left: 6vw; padding-right: 5vw; }
  .collection-page .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .collection-page .collection-tools .tabs { gap: 20px; }
}
@media (max-width: 760px) {
  .collection-page .collection-nav { height: 62px; padding: 0 18px; }
  .collection-page .wordmark small, .collection-page .collection-nav .title, .collection-page .nav-links > a:not(.manage-link) { display: none; }
  .collection-page .nav-links .manage-link { padding: 7px 10px; font-size: 11px; }
  .web-hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 510px; padding: 78px 24px 60px; }
  .hero-copy h1 { font-size: clamp(50px, 14vw, 68px); }
  .hero-intro { font-size: 13px; }
  .hero-stats { gap: 30px; margin-top: 54px; }
  .hero-stats strong { font-size: 23px; }
  .hero-object { min-height: 520px; padding: 34px; }
  .collection-section { padding: 76px 14px; }
  .collection-heading { align-items: flex-start; }
  .collection-heading > p { display: none; }
  .collection-tools { display: block; margin-top: 38px; border-bottom: 0; }
  .collection-page .collection-tools .tabs { gap: 24px; border-bottom: 1px solid var(--museum-line); }
  .collection-page .collection-tools .museum-search { width: 100%; height: 46px; margin-top: 16px; }
  .collection-page .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .collection-page .card .name { font-size: 16px; }
  .collection-page .card .card-meta span { display: none; }
  .collection-page .card .card-foot { display: block; }
  .collection-page .card .card-foot strong { display: block; margin-top: 6px; }
  .web-footer { grid-template-columns: 1fr auto; padding: 30px 20px; }
  .web-footer > p:not(.credit) { display: none; }
}
@media (max-width: 390px) {
  .hero-stats div:last-child { display: none; }
  .hero-object { min-height: 450px; padding: 24px; }
  .collection-page .grid { column-gap: 9px; }
}
