/* ==========================================================================
   Easton Gallery — 样式
   深绿底 · 奶白字 · 黄铜细线 · 左侧固定导航栏
   ========================================================================== */

:root {
  --ground:   #0e2a23;   /* 页面底色：深瓶绿 */
  --ground-2: #143630;   /* 展板 / 面板 */
  --ground-3: #1b433b;   /* 悬停 */
  --cream:    #efe8d8;   /* 标题、主文字 */
  --cream-2:  #d3cbb8;   /* 正文 */
  --muted:    #9ea79c;   /* 次要文字 */
  --brass:    #c4a86c;   /* 黄铜：标签、细线、当前项 */
  --brass-dim: rgba(196,168,108,.38);
  --line:     rgba(239,232,216,.13);

  --serif: Baskerville, "Baskerville Old Face", "Libre Baskerville", "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans:  "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;

  --rail: 256px;
  --pad:  clamp(22px, 4.5vw, 72px);
  --band: clamp(60px, 8.5vw, 124px);
  --max:  1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden; background: var(--ground); color: var(--cream-2);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, li a, dd a { color: var(--cream); border-bottom: 1px solid var(--brass-dim); transition: border-color .2s; }
p a:hover, li a:hover, dd a:hover { border-color: var(--brass); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--cream); margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.06; }
h2 { font-size: clamp(27px, 2.6vw, 36px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0 0 1.1em; }
strong { color: var(--cream); font-weight: 600; }
::selection { background: var(--brass); color: var(--ground); }

.eyebrow {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 18px;
}
.lead { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; color: var(--cream-2); }
.small { font-size: 14px; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--cream); color: var(--ground); padding: 8px 12px; }

/* --- 左侧导航栏 --------------------------------------------------------- */

.rail {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--rail); z-index: 40;
  padding: 44px 36px 36px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; background: var(--ground);
}
.brand { display: block; line-height: 1; }
.brand__name { display: block; font-family: var(--serif); font-size: 31px; letter-spacing: .06em; color: var(--cream); }
.brand__sub  { display: block; font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--brass); margin-top: 9px; padding-left: 2px; }

.rail__toggle { display: none; }
.rail__nav { display: flex; flex-direction: column; gap: 13px; margin-top: 64px; }
.rail__nav a {
  position: relative; font-family: var(--serif); font-size: 19px; color: var(--cream); opacity: .74;
  padding-left: 0; transition: opacity .2s, padding .25s;
}
.rail__nav a:hover { opacity: 1; }
.rail__nav a[aria-current="page"] { opacity: 1; color: var(--brass); padding-left: 22px; }
.rail__nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--brass);
}
.rail__foot { margin-top: auto; font-size: 13px; line-height: 1.55; color: var(--muted); }
.rail__foot .eyebrow { margin-bottom: 8px; }
.rail__foot a { color: var(--cream); display: inline-block; border-bottom: 1px solid var(--brass-dim); }
.rail__foot a:hover { border-color: var(--brass); }
.rail__tag { display: block; margin-top: 16px; }

/* --- 页面主体 ------------------------------------------------------------ */

.page { margin-left: var(--rail); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.band { padding: var(--band) 0; border-top: 1px solid var(--line); }
.band--first { border-top: 0; }
.band__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.band__head .eyebrow { margin-bottom: 10px; }
.more { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); white-space: nowrap; border-bottom: 1px solid transparent; }
.more:hover { border-color: var(--brass); }

.pagehead { padding: clamp(56px, 8vw, 112px) 0 clamp(36px, 5vw, 64px); }
.pagehead .lead { max-width: 62ch; margin-top: 22px; }
.pagehead h1 { max-width: 24ch; }

/* --- 按钮 ---------------------------------------------------------------- */

.btn {
  display: inline-block; padding: 15px 26px; border: 1px solid var(--brass);
  font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream); background: transparent; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: rgba(196,168,108,.12); }
.btn--solid { background: var(--cream); color: var(--ground); border-color: var(--cream); }
.btn--solid:hover { background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* --- 首页开篇 ------------------------------------------------------------ */

.open {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center;
  min-height: min(82vh, 860px); padding: clamp(56px, 7vw, 96px) 0;
}
.open h1 { font-size: clamp(36px, 3.9vw, 56px); max-width: 11em; }
.open .lead { max-width: 50ch; margin-top: 26px; }
.open__art { display: block; min-width: 0; }
.open__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.open__cap b { font-weight: 500; color: var(--cream-2); }
.open__cap span:last-child { color: var(--brass); white-space: nowrap; }

/* --- 展板（图片承托面） ---------------------------------------------------- */

.plate {
  display: grid; min-width: 0; place-items: center; background: var(--ground-2); padding: 9%;
  transition: background .25s;
}
.plate img { max-width: 100%; max-height: 100%; width: auto; height: auto; min-width: 0; box-shadow: 0 22px 44px rgba(0,0,0,.42); }
.plate img.cutout { box-shadow: none; filter: drop-shadow(0 18px 22px rgba(0,0,0,.45)); }
a:hover .plate { background: var(--ground-3); }

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

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: clamp(22px, 3vw, 40px); }
.tile { display: block; min-width: 0; }
.tile .plate { aspect-ratio: 4 / 5; }
.tile .plate img { max-height: 100%; transition: transform .35s ease; }
.tile:hover .plate img { transform: translateY(-4px); }
.tile__cap { padding: 16px 2px 0; }
.tile__ref { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.tile__title { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.25; color: var(--cream); margin-top: 6px; }
.tile__sub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.tile__price { display: block; font-size: 14px; color: var(--cream-2); margin-top: 8px; }

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

.filters { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 44px; align-items: center; }
.filters button {
  background: none; border: 0; padding: 6px 0; cursor: pointer; font-family: var(--sans);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.filters button:hover { color: var(--cream); }
.filters button[aria-pressed="true"] { color: var(--brass); border-color: var(--brass); }
.filters .count { margin-left: auto; font-size: 13px; color: var(--muted); }

/* --- 三栏说明 / 步骤 ------------------------------------------------------ */

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.trio__n { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--brass); margin-bottom: 18px; }
.trio h3 { margin-bottom: 12px; }
.trio p { font-size: 16px; }
.trio p:last-child { margin-bottom: 0; }

.callout {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center;
  background: var(--ground-2); padding: clamp(32px, 4vw, 56px);
}
.callout h2 { margin-bottom: 12px; }
.callout p { max-width: 60ch; margin: 0; }

/* --- 作品详情 ------------------------------------------------------------ */

.crumbs { padding: 30px 0 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--brass); }
.crumbs span { margin: 0 10px; opacity: .5; }

.stage { margin-top: 28px; }
.stage .plate { padding: clamp(24px, 5vw, 72px); }
.stage .plate img { max-height: 78vh; cursor: zoom-in; }
.stage__hint { text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }

.work { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); padding: clamp(44px, 6vw, 80px) 0 var(--band); }
.work__text .eyebrow { margin-bottom: 14px; }
.work__text h1 { font-size: clamp(34px, 3.6vw, 50px); }
.work__text .subject { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); margin: 12px 0 28px; }
.work__text .lead { margin-bottom: 26px; }
.work__text p { max-width: 62ch; }

.facts { position: sticky; top: 40px; align-self: start; border-top: 1px solid var(--brass-dim); padding-top: 26px; }
.facts__price { font-family: var(--serif); font-size: 36px; color: var(--cream); line-height: 1; }
.facts__price small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.facts .btn { display: block; text-align: center; margin: 26px 0 8px; }
.facts .small { margin-bottom: 26px; }
.facts dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 0 18px; font-size: 14.5px; }
.facts dt { color: var(--muted); padding: 11px 0; border-top: 1px solid var(--line); }
.facts dd { margin: 0; color: var(--cream-2); padding: 11px 0; border-top: 1px solid var(--line); }
.facts__note { margin-top: 22px; font-size: 13px; color: var(--muted); line-height: 1.6; }

.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(6,19,15,.96); display: none; place-items: center;
  padding: 24px; cursor: zoom-out;
}
.lightbox[data-open="true"] { display: grid; }
.lightbox img { max-width: 94vw; max-height: 94vh; width: auto; height: auto; box-shadow: 0 30px 60px rgba(0,0,0,.5); }

/* --- 文章页 -------------------------------------------------------------- */

.prose { max-width: 66ch; }
.prose h2 { margin: clamp(40px, 5vw, 64px) 0 16px; font-size: clamp(24px, 2.2vw, 30px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 30px 0 10px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brass); }
.prose dl { margin: 0 0 1.4em; }
.prose dt { color: var(--cream); font-family: var(--serif); font-size: 20px; margin-top: 22px; }
.prose dd { margin: 6px 0 0; }
.prose blockquote { margin: 28px 0; padding-left: 22px; border-left: 1px solid var(--brass); font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--cream); }
.prose .plain { list-style: none; padding: 0; }
.prose .plain li { padding: 12px 0; border-top: 1px solid var(--line); margin: 0; }
.prose .plain li:last-child { border-bottom: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 0 0 1.4em; }
.prose th, .prose td { text-align: left; padding: 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 500; width: 38%; padding-right: 20px; }
.prose tr:last-child td, .prose tr:last-child th { border-bottom: 1px solid var(--line); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.aside { border-top: 1px solid var(--brass-dim); padding-top: 24px; font-size: 15px; }
.aside h3 { font-size: 20px; margin-bottom: 12px; }
.aside p:last-child { margin-bottom: 0; }
.aside + .aside { margin-top: 32px; }

/* --- 表单 ---------------------------------------------------------------- */

.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 32px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  color: var(--cream); font-family: var(--sans); font-size: 17px; padding: 10px 0; outline: none; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brass); }
.field textarea { min-height: 140px; resize: vertical; }
.field select option { background: var(--ground-2); color: var(--cream); }
.form .btn { justify-self: start; }
.form__note { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); margin: 0; }

/* --- 页脚 ---------------------------------------------------------------- */

.foot { border-top: 1px solid var(--brass-dim); padding: clamp(48px, 6vw, 80px) 0 40px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.foot .brand__name { font-size: 26px; }
.foot__blurb { font-size: 14.5px; color: var(--muted); max-width: 34ch; margin-top: 22px; }
.foot__col .eyebrow { margin-bottom: 14px; }
.foot__col a { display: block; font-size: 15px; color: var(--cream-2); padding: 4px 0; }
.foot__col a:hover { color: var(--cream); }
.foot__col p { font-size: 14.5px; color: var(--muted); margin: 10px 0 0; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.foot__row nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__row nav a:hover { color: var(--cream); }

.spacer { height: var(--band); }
.collection__note { margin-top: 44px; max-width: 60ch; }

/* --- 404 ----------------------------------------------------------------- */

.lost { padding: clamp(80px, 14vw, 180px) 0; max-width: 56ch; }

/* --- 响应式 -------------------------------------------------------------- */

@media (max-width: 1100px) {
  :root { --rail: 220px; }
  .rail { padding: 36px 28px 28px; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .facts { position: static; }
  .facts dl { grid-template-columns: 140px 1fr; }
}

@media (max-width: 960px) {
  .rail {
    position: sticky; width: auto; height: 64px; padding: 0 20px; border-right: 0; border-bottom: 1px solid var(--line);
    flex-direction: row; align-items: center; justify-content: space-between;
  }
  .brand { display: flex; align-items: baseline; gap: 10px; }
  .brand__name { font-size: 24px; }
  .brand__sub { margin-top: 0; }
  .rail__toggle {
    display: inline-block; background: none; border: 1px solid var(--brass-dim); color: var(--cream);
    font-family: var(--sans); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; padding: 9px 14px; cursor: pointer;
  }
  .rail__nav { display: none; }
  .rail__nav[data-open="true"] {
    display: flex; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; margin: 0; padding: 36px 24px;
    background: var(--ground); gap: 22px; overflow: auto; z-index: 39;
  }
  .rail__nav[data-open="true"] a { font-size: 30px; opacity: 1; }
  .rail__nav[data-open="true"] a[aria-current="page"] { padding-left: 26px; }
  .rail__foot { display: none; }
  .page { margin-left: 0; }

  .open { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 40px; }
  .open__art { order: -1; }
  .open h1 { max-width: none; }
  .trio { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .callout { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .filters .count { margin-left: 0; width: 100%; }
  .band__head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .tile__title { font-size: 17px; }
  .facts dl { grid-template-columns: 1fr; gap: 0; }
  .facts dt { border-top: 1px solid var(--line); padding-bottom: 2px; }
  .facts dd { border-top: 0; padding-top: 0; }
}

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