/* ==========================================================================
   Vining Fine Art — 样式表
   设计语言：老派艺术商。暖宣纸底、衬线字体、居中对称、朱红印章色点缀，
   每件货品都放进一张白色卡纸里，像拍卖图录里的图版（货品图本身是黑底方图）。
   ========================================================================== */

:root {
  --paper:   #f5f1e8;   /* 宣纸底 */
  --plate:   #fffdf8;   /* 卡纸白 */
  --ink:     #201c17;
  --ink-2:   #4a4239;
  --muted:   #7d7266;
  --faint:   #a2988a;
  --line:    #d9cfbd;
  --hair:    #e6dfd1;
  --seal:    #9c3b2e;   /* 印泥朱 */
  --dark:    #1e1a15;   /* 页脚墨 */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", "Songti SC", "STSong", serif;

  --pad:  clamp(20px, 5vw, 56px);
  --band: clamp(56px, 8vw, 118px);
  --max:  1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--seal); color: var(--plate); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.measure { max-width: 660px; margin-inline: auto; }

/* --- 排版基元 ------------------------------------------------------------ */

.smallcaps {
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 { font-weight: 400; margin: 0; }

.display {
  font-size: clamp(30px, 4.6vw, 54px); line-height: 1.14; letter-spacing: -.008em;
  text-wrap: balance;
}
.title-2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; }

.quote {
  font-style: italic; font-size: clamp(19px, 2.3vw, 27px); line-height: 1.5;
  text-align: center; text-wrap: balance; color: var(--ink-2);
}

.prose p { margin: 0 0 1.3em; }
.prose p:last-child { margin-bottom: 0; }
.dim { color: var(--muted); }
.center { text-align: center; }

/* 章节题头：两侧细线夹居中标题 */
.head {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 34px);
  margin-bottom: clamp(30px, 4vw, 54px);
}
.head::before, .head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.head h2 { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* 印章式装饰分隔 */
.ornament { display: flex; align-items: center; gap: 16px; margin: clamp(30px, 5vw, 60px) 0; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ornament i { width: 7px; height: 7px; background: var(--seal); transform: rotate(45deg); }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
hr.double { border: 0; border-top: 3px double var(--line); margin: 0; }

/* 链接 */
.a-seal { color: var(--seal); border-bottom: 1px solid rgba(156,59,46,.35); transition: border-color .2s; }
.a-seal:hover { border-bottom-color: var(--seal); }

.more {
  display: inline-block; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--seal); border-bottom: 1px solid rgba(156,59,46,.4); padding-bottom: 3px;
  transition: border-color .25s;
}
.more:hover { border-bottom-color: var(--seal); }

.btn {
  display: inline-block; font-family: var(--serif);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--seal); background: none; border: 1px solid var(--seal);
  padding: 15px 34px; cursor: pointer; transition: background .25s, color .25s;
}
.btn:hover { background: var(--seal); color: var(--plate); }
.btn--light { color: #e9dfd0; border-color: rgba(233,223,208,.5); }
.btn--light:hover { background: #e9dfd0; color: var(--dark); }

/* --- 顶栏（居中对称，与 Cambria 的左右分栏刻意相反） --------------------- */

.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead__inner { padding: clamp(22px, 3.5vw, 40px) var(--pad) 0; text-align: center; }

.logo { display: inline-flex; align-items: center; }
.logo img {
  height: clamp(48px, 6vw, 64px); width: auto;
  transition: opacity .25s ease;
}
.logo:hover img { opacity: .65; }
.logo__rule {
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--faint); margin-top: 12px;
}
@media (max-width: 560px) { .logo__rule { letter-spacing: .18em; font-size: 9.5px; } }

.nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(16px, 3.4vw, 44px);
  margin-top: clamp(18px, 2.6vw, 30px);
  border-top: 1px solid var(--hair); padding-top: 14px; padding-bottom: 14px;
}
.nav a {
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 3px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--seal); border-bottom-color: var(--seal); }

.nav-toggle { display: none; }

@media (max-width: 700px) {
  .nav { gap: 14px 22px; }
  .nav a { font-size: 10.5px; letter-spacing: .16em; }
}

/* --- 图版（卡纸装裱）---------------------------------------------------- */

.plate {
  background: var(--plate);
  border: 1px solid var(--line);
  padding: clamp(16px, 2.6vw, 34px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 44px -34px rgba(70,52,28,.55);
}
.plate img { width: auto; }

/* 单件展示时卡纸随图收窄，像真的装裱；网格里的卡纸仍然等宽。
   margin 写在这里、不要在 HTML 里内联 margin:0，否则卡纸会偏到左边 */
.plate--solo { width: fit-content; max-width: 100%; margin: 0 auto; padding: clamp(22px, 4vw, 56px); }

.plate--hero img { max-height: min(60vh, 560px); }

/* --- 首页 ---------------------------------------------------------------- */

.hero { padding-block: clamp(38px, 6vw, 76px) 0; }
.hero .plate {
  opacity: 0; animation: fade 1.1s ease .12s forwards;
}
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero .plate { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

.hero__caption { text-align: center; margin-top: 26px; }
.hero__caption h1 { font-size: clamp(21px, 2.5vw, 29px); line-height: 1.3; margin-bottom: 8px; }
.hero__caption p { margin: 0; font-size: 14px; color: var(--muted); }
.hero__caption .more { margin-top: 20px; }

.band { padding-block: var(--band); }

/* --- 作品网格 ------------------------------------------------------------ */

/* 货品图是黑底方图，整张铺满卡纸的内框，四周留一圈白边，像拍卖图录的图版 */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(34px, 4.4vw, 68px) clamp(22px, 3vw, 44px);
  align-items: start;
}
@media (max-width: 940px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid { gap: 34px 14px; } }

.item { display: flex; flex-direction: column; }
.item .plate { padding: clamp(10px, 1.8vw, 24px); transition: box-shadow .35s ease, border-color .35s ease; }
.item .plate img { width: 100%; height: auto; aspect-ratio: 1 / 1; background: #1a1714; }
.item:hover .plate { border-color: var(--faint); box-shadow: 0 26px 50px -32px rgba(70,52,28,.7); }

.item__caption { text-align: center; padding-top: 18px; }
.item__no {
  display: block; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--seal); margin-bottom: 8px;
}
.item__title { display: block; font-size: 18px; line-height: 1.3; min-height: 2.6em; }
@media (max-width: 540px) {
  .item__title { font-size: 15px; }
  .item__sub { font-size: 12px; }
  .item__price { font-size: 14px; }
}
.item__sub { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.item__price { display: block; font-size: 15px; color: var(--ink); margin-top: 9px; }

/* --- 筛选 ---------------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; }
.filters button {
  font-family: var(--serif); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  background: none; border: 0; border-bottom: 1px solid transparent; color: var(--muted);
  padding: 4px 0; cursor: pointer; transition: color .2s, border-color .2s;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--seal); border-bottom-color: var(--seal); }

/* --- 作品详情（居中图录式，与 Cambria 的左右分栏刻意相反）---------------- */

.entry { max-width: 940px; margin-inline: auto; }
.entry > .plate { margin-bottom: clamp(26px, 4vw, 46px); }
.entry > .plate img { max-height: min(72vh, 720px); cursor: zoom-in; }

.entry__head { text-align: center; }
.entry__no { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--seal); }
.entry__head h1 { font-size: clamp(25px, 3.3vw, 40px); line-height: 1.18; margin: 12px 0 10px; text-wrap: balance; }
.entry__attr { font-size: 14.5px; color: var(--muted); margin: 0; font-style: italic; }
.entry__lead { margin: 26px auto 0; max-width: 620px; text-align: center; font-size: 17.5px; color: var(--ink-2); }

/* 著录表 */
.catalogue { max-width: 780px; margin: 0 auto; border-top: 3px double var(--line); }
.catalogue > div {
  display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 24px;
  padding: 14px 0; border-bottom: 1px solid var(--hair);
}
.catalogue dt { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); padding-top: 6px; }
.catalogue dd { margin: 0; font-size: 15.5px; line-height: 1.65; }
.catalogue .seal-text { color: var(--seal); }
@media (max-width: 560px) {
  .catalogue > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .catalogue dt { padding-top: 0; }
}

.note { max-width: 660px; margin: 0 auto; }
.note p { font-size: 16.5px; line-height: 1.8; }

/* 询价区 */
.offer {
  background: var(--dark); color: #e5dbcc; text-align: center;
  padding: clamp(32px, 5vw, 56px) var(--pad);
  max-width: 780px; margin: 0 auto;
}
.offer .smallcaps { color: #a89b88; }
.offer p { margin: 14px auto 26px; max-width: 46ch; color: #cfc3b1; font-size: 15.5px; }

/* 上一件 / 下一件 */
.pager {
  max-width: 940px; margin: var(--band) auto 0; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 18px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.pager a:hover { color: var(--seal); }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(31,27,22,.94); padding: 4vh 4vw; cursor: zoom-out;
  align-items: center; justify-content: center;
}
.lightbox[data-open="true"] { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; background: var(--plate); padding: 10px; }
.lightbox__close {
  position: absolute; top: 20px; right: 24px; background: none; border: 0; cursor: pointer;
  font-family: var(--serif); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: #cfc3b1;
}

/* --- 通用内容页 ---------------------------------------------------------- */

.page-head { text-align: center; padding-block: clamp(44px, 7vw, 92px) clamp(22px, 3vw, 40px); }
.page-head .display { margin-bottom: 18px; }
.page-head p { max-width: 620px; margin: 0 auto; color: var(--ink-2); }

.columns { column-count: 2; column-gap: clamp(28px, 4vw, 62px); }
.columns p { margin: 0 0 1.3em; break-inside: avoid; }
@media (max-width: 760px) { .columns { column-count: 1; } }

/* 事实表 */
.facts { max-width: 780px; margin-inline: auto; border-top: 3px double var(--line); }
.facts > div {
  display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--hair);
}
.facts dt { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); padding-top: 6px; }
.facts dd { margin: 0; font-size: 15.5px; }
@media (max-width: 560px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }

/* 条款页 */
.legal { max-width: 680px; margin-inline: auto; }
.legal h2 { font-size: 19px; margin: 42px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 16px; line-height: 1.78; color: var(--ink-2); }
.legal ul { padding-left: 22px; margin: 0 0 1.3em; }
.legal li { margin-bottom: .5em; }

/* 笔记页 */
.notes { max-width: 700px; margin-inline: auto; }
.notes article { padding-block: clamp(30px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.notes article:last-child { border-bottom: 0; }
.notes h2 { font-size: clamp(21px, 2.4vw, 27px); margin-bottom: 6px; }
.notes .smallcaps { display: block; margin-bottom: 14px; }

/* 表单 */
.form { max-width: 560px; margin-inline: auto; display: grid; gap: 24px; }
.field label { display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--serif); font-size: 16px; color: var(--ink);
  background: var(--plate); border: 1px solid var(--line); padding: 11px 13px;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--seal); }
.field textarea { resize: vertical; min-height: 120px; }
.field ::placeholder { color: var(--faint); opacity: 1; }
.form__note { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }

/* --- 页脚（居中堆叠，与 Cambria 的横排刻意相反）------------------------- */

.foot {
  background: var(--dark); color: #b7ab99;
  margin-top: var(--band);
  padding: clamp(48px, 7vw, 80px) var(--pad) 34px;
  text-align: center;
}

/* 顶部的朱红印章菱形，呼应正文里的分隔装饰 */
.foot__crest { display: flex; justify-content: center; margin-bottom: 24px; }
.foot__crest i {
  width: 9px; height: 9px; background: var(--seal); transform: rotate(45deg);
  box-shadow: 0 0 0 5px rgba(156,59,46,.16);
}

.foot__name {
  margin: 0; font-size: clamp(17px, 2.2vw, 23px);
  letter-spacing: .2em; text-transform: uppercase; color: #e5dbcc;
}
.foot__tag {
  margin: 9px 0 0; font-size: 10.5px; letter-spacing: .3em;
  text-transform: uppercase; color: #7a6f60;
}

.foot__rule {
  border: 0; border-top: 1px solid rgba(183,171,153,.22);
  max-width: 420px; margin: clamp(28px, 4vw, 42px) auto;
}

.foot__nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px clamp(18px, 3vw, 34px);
}
.foot__nav a {
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: #b7ab99; transition: color .2s ease;
}
.foot__nav a:hover { color: #e5dbcc; }
.foot__nav--fine { margin-top: 14px; }
.foot__nav--fine a { font-size: 10.5px; color: #7a6f60; letter-spacing: .14em; }
.foot__nav--fine a:hover { color: #b7ab99; }

.foot__mail {
  display: inline-block; margin-top: clamp(26px, 4vw, 38px);
  font-size: clamp(16px, 1.8vw, 19px); color: #e5dbcc;
  border-bottom: 1px solid rgba(229,219,204,.35); padding-bottom: 3px;
  transition: border-color .25s ease;
}
.foot__mail:hover { border-bottom-color: #e5dbcc; }

.foot__note { margin: 14px 0 0; font-size: 12.5px; color: #7a6f60; }

.foot__base { margin: 0; font-size: 11.5px; color: #6b6153; letter-spacing: .04em; }

/* 占位提示条 —— 交付前删掉这段和页面里的 .placeholder-bar 即可 */
.placeholder-bar {
  background: #efe6cf; border-bottom: 1px solid #ddd0b0;
  font-size: 12.5px; color: #6a5a34; text-align: center; padding: 9px 16px;
}
