/* =========================================================
   艺洛 Yilo 官网样式
   风格：宣纸暖白底 + 墨色文字 + 一点印章红；衬线标题，留白克制
   ========================================================= */

:root {
  --paper: #F8F6F1;      /* 主底色：宣纸暖白 */
  --paper-2: #EFEBE3;    /* 次级底色：区块分隔 */
  --ink: #1B1A17;        /* 主文字 / 深色区块底 */
  --ink-2: #45423C;      /* 正文 */
  --mute: #6B675F;       /* 辅助文字（在 --paper 上对比度 ≥ 4.5） */
  --line: #DED8CC;       /* 细分隔线 */
  --seal: #A8352A;       /* 印章红，只做点缀 */
  --on-ink: #EDE9E0;     /* 深色区块上的文字 */
  --on-ink-mute: #A9A398;

  --serif: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --serif-cn: "Noto Serif SC", "Songti SC", serif;
  --sans: "Inter", "PingFang SC", system-ui, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
/* 中文访客：等 main.js 把英文替换成中文后再显示，避免先闪一下英文（lang.js 有 1.5 秒兜底） */
html[data-i18n="pending"] body { visibility: hidden; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.cn { font-family: var(--serif-cn); }

/* ---------- 文字层级 ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
}
.display em, .h2 em, .lead em { font-style: italic; }
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.1;
  margin: 0;
}
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}
.lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
.body-text { color: var(--ink-2); max-width: 62ch; }
.body-text p { margin: 0 0 1em; }
.caption { font-size: 13px; color: var(--mute); line-height: 1.6; }
.caption em { font-family: var(--serif); font-size: 15px; color: var(--ink); }

/* 章节编号："01 — Works" */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 56px;
}
.sec-head .num { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--mute); margin-right: 14px; }

/* 竖排中文点缀 */
.vertical {
  writing-mode: vertical-rl;
  font-family: var(--serif-cn);
  font-weight: 300;
  letter-spacing: 0.5em;
  color: var(--mute);
  font-size: 15px;
}

/* ---------- 链接与按钮 ---------- */
.link {
  font-size: 14px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: opacity .2s;
}
.link:hover { opacity: .6; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  font: 500 14px/1 var(--sans); letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .25s, color .25s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn.light:hover { background: transparent; color: var(--on-ink); }
.btn.block { width: 100%; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .seal {
  width: 32px; height: 32px; background: var(--seal); color: var(--paper);
  display: grid; place-items: center; font-family: var(--serif-cn); font-weight: 600; font-size: 17px;
}
.brand .name { font-size: 13px; font-weight: 600; letter-spacing: 0.3em; }
.nav { display: flex; align-items: center; gap: 8px 34px; flex-wrap: wrap; font-size: 14px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.active { border-bottom-color: var(--ink); }
.nav .lang { display: inline-flex; align-items: center; gap: 4px; color: var(--mute); font-size: 13px; }
.nav .lang button {
  background: none; border: 0; padding: 8px 4px; min-height: 36px; font: inherit; color: var(--mute); cursor: pointer;
  border-bottom: 1px solid transparent;
}
.nav .lang button:hover { color: var(--ink); }
.nav .lang button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- 首页主视觉 ---------- */
/* 上排：标题（左）+ 简介与按钮（右，底边对齐）；下排：代表作横跨整行，画作是主角 */
.hero { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "head text" "fig fig";
  column-gap: clamp(32px, 5vw, 80px); row-gap: clamp(32px, 4vw, 56px); align-items: end;
}
.hero .head { grid-area: head; display: grid; gap: 24px; }
.hero .head .display { font-size: clamp(46px, 6.6vw, 104px); max-width: 12em; }
.hero .text { grid-area: text; display: flex; flex-direction: column; gap: 28px; padding-bottom: 10px; }
.hero .text p { font-size: 18px; color: var(--ink-2); max-width: 30em; margin: 0; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero figure { grid-area: fig; margin: 0; position: relative; }
/* 长卷局部按 12:5 取景：电脑上首屏能看到画的大半，又不至于把下一节完全挤出去 */
.hero figure img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; object-position: 50% 45%; }
.hero figcaption { margin-top: 14px; }

/* ---------- 宣言 ---------- */
.manifesto { padding: clamp(48px, 7vw, 112px) 0 clamp(64px, 9vw, 140px); }
.manifesto .grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; }

/* ---------- 作品网格（瀑布流，保留原作比例） ---------- */
.works-grid { column-count: 3; column-gap: clamp(24px, 3.5vw, 56px); }
.works-grid.cols-4 { column-count: 4; }
.work-card { break-inside: avoid; margin: 0 0 clamp(40px, 5vw, 72px); display: block; text-decoration: none; }
.work-card .frame { background: var(--paper-2); padding: clamp(14px, 2vw, 28px); transition: background .4s; }
.work-card img { width: 100%; box-shadow: 0 1px 2px rgba(27, 26, 23, .08), 0 8px 24px rgba(27, 26, 23, .06); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.work-card:hover img { transform: scale(1.02); }
.work-card .meta { margin-top: 16px; display: grid; gap: 2px; }
.work-card .artist { font-size: 13px; letter-spacing: .04em; }
.work-card .title { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.3; }
.work-card .title .cn { font-style: normal; font-size: 14px; color: var(--mute); margin-left: 6px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mute); margin-top: 6px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3D7A5A; }
.status.partner::before { background: var(--seal); }
.status.sold::before { background: transparent; border: 1px solid var(--mute); }

/* ---------- 深色"求画"区块 ---------- */
.ink-band { background: var(--ink); color: var(--on-ink); padding: clamp(80px, 10vw, 160px) 0; position: relative; overflow: hidden; }
.ink-band .eyebrow, .ink-band .caption { color: var(--on-ink-mute); }
.ink-band .grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
/* 印章：竖排白字红底，作为"求画"板块的点题 */
.seal-stamp {
  flex: none; writing-mode: vertical-rl;
  background: var(--seal); color: #F8F1E8;
  font-family: var(--serif-cn); font-weight: 600; font-size: 19px; line-height: 1; letter-spacing: .18em;
  padding: 12px 8px 9px; border-radius: 2px;
}
.band-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 22px 0; border-top: 1px solid rgba(237, 233, 224, 0.16); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--on-ink-mute); }
.steps strong { font-family: var(--serif); font-weight: 500; font-size: 22px; display: block; }
.steps span { font-size: 14px; color: var(--on-ink-mute); }
.steps.light li { border-top-color: var(--line); }
.steps.light li::before, .steps.light span { color: var(--mute); }

/* ---------- 画家 ---------- */
.artist-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.artist-card { text-decoration: none; display: grid; gap: 16px; align-content: start; } /* 同排卡片被拉高时，多出的空间留在底部，不撑大图片框 */
.artist-card .img { overflow: hidden; background: var(--paper-2); }
.artist-card img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.artist-card:hover img { transform: scale(1.03); }
.artist-card .name { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.artist-card .name .cn { font-size: 16px; color: var(--mute); margin-left: 6px; }

/* 画家列表页：大字行 */
.artist-list { border-top: 1px solid var(--line); }
.artist-line {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 2fr) 120px; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s;
}
.artist-line:hover { padding-left: 16px; }
.artist-line .name { font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); line-height: 1.1; }
.artist-line .name .cn { font-size: .45em; color: var(--mute); margin-left: 12px; }
.artist-line img { width: 120px; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s; }
.artist-line:hover img { transform: scale(1.04); }

/* ---------- 两种收藏方式 ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.way { border-top: 1px solid var(--ink); padding-top: 24px; display: grid; gap: 14px; align-content: start; }
.way p { margin: 0; color: var(--ink-2); }

/* ---------- 页面标题区 ---------- */
.page-head { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(40px, 5vw, 72px); }
.page-head .grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: end; }

/* ---------- 作品筛选 ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 56px; font-size: 14px; }
.filters .tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.filters .tabs button { background: none; border: 0; padding: 8px 0; font: inherit; color: var(--mute); cursor: pointer; border-bottom: 1px solid transparent; }
.filters .tabs button.on, .filters .tabs button:hover { color: var(--ink); border-bottom-color: var(--ink); }
.filters label { display: flex; align-items: center; gap: 10px; color: var(--mute); }
.filters select { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 4px; min-height: 40px; }
.filters .right { margin-left: auto; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.filters input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ink); }
.empty { padding: 80px 0; text-align: center; color: var(--mute); }
/* 详情页编号无效时的"未找到"提示 */
.not-found { grid-column: 1 / -1; display: grid; gap: 20px; justify-items: start; padding: clamp(48px, 8vw, 120px) 0; }
.not-found .caption { margin: 0; }

/* ---------- 作品详情 ---------- */
.work-detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); padding: 32px 0 clamp(64px, 8vw, 120px); align-items: start; }
.work-detail .stage { background: var(--paper-2); padding: clamp(24px, 5vw, 72px); display: grid; place-items: center; position: sticky; top: 104px; }
.work-detail .stage img { max-height: 76vh; width: auto; box-shadow: 0 2px 4px rgba(27, 26, 23, .08), 0 18px 48px rgba(27, 26, 23, .12); }
.work-detail .info { display: grid; gap: 32px; }
.specs { margin: 0; display: grid; grid-template-columns: 120px 1fr; font-size: 14px; border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--mute); }
.actions { display: grid; gap: 10px; }
.inscription { background: var(--paper-2); padding: 28px 32px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.inscription .vertical { color: var(--ink); font-size: 20px; letter-spacing: .3em; }
.back { font-size: 13px; color: var(--mute); text-decoration: none; }
.back:hover { color: var(--ink); }

/* ---------- 画家详情 ---------- */
.artist-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: end; padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 104px); }
.artist-hero .facts { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 14px; color: var(--mute); }
.two-col { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line); }
.cv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.cv ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.cv li { padding: 10px 0; border-top: 1px solid var(--line); }
.cv .cv-wide { grid-column: 1 / -1; }   /* 协会与任职：条目多，占满一行 */
.studio { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; padding-bottom: clamp(56px, 7vw, 104px); }
.studio img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 求画页 ---------- */
.subjects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.subject { display: grid; gap: 14px; align-content: start; }
.subject .img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.subject .img img { width: 100%; height: 100%; object-fit: cover; }
.subject p { margin: 0; font-size: 14px; color: var(--ink-2); }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { text-align: left; padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-weight: 500; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.price-table td:first-child { font-family: var(--serif); font-size: 22px; }
.table-scroll { overflow-x: auto; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; font-family: var(--serif); font-size: 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; color: var(--mute); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--ink-2); max-width: 64ch; }

/* ---------- 表单 ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea {
  font: 16px/1.5 var(--sans); color: var(--ink); letter-spacing: 0; text-transform: none;
  background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 10px 0; min-height: 46px; border-radius: 0;
}
.field textarea { resize: vertical; min-height: 120px; }
/* 下拉框 / 输入框不按内容撑开，始终占满所在栏，长文字用省略号收尾 */
.field input, .field select, .field textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.field select { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.field select, .filters select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231B1A17' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.ink-band { color-scheme: dark; }
.ink-band .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23EDE9E0' stroke-width='1.3'/%3E%3C/svg%3E");
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--seal); }
.form-note { font-size: 14px; color: var(--seal); min-height: 1.5em; margin: 0; }
.ink-band .form-note { color: #E8A090; }
.ink-band .field { color: var(--on-ink-mute); }
.ink-band .field input, .ink-band .field select, .ink-band .field textarea { color: var(--on-ink); border-bottom-color: var(--on-ink-mute); }
.ink-band .field select option { color: var(--ink); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding: clamp(72px, 9vw, 128px) 0 40px; }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; padding-bottom: 72px; }
.site-footer .h2 a { text-decoration: none; border-bottom: 1px solid rgba(237, 233, 224, .3); }
.site-footer .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; font-size: 14px; }
.site-footer .cols a { text-decoration: none; display: block; padding: 4px 0; color: var(--on-ink); }
.site-footer .cols a:hover { color: var(--on-ink-mute); }
.site-footer .bottom { border-top: 1px solid rgba(237, 233, 224, .14); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--on-ink-mute); }
.site-footer .eyebrow { color: var(--on-ink-mute); margin-bottom: 12px; }

/* ---------- 进场动画（尊重"减少动态效果"设置） ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 演示提示条 ---------- */
.demo-bar { background: var(--paper-2); color: var(--mute); font-size: 12px; text-align: center; padding: 8px var(--gutter); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .works-grid, .works-grid.cols-4 { column-count: 2; }
  .artist-row, .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .manifesto .grid, .ink-band .grid, .page-head .grid, .work-detail,
  .artist-hero, .two-col, .site-footer .top, .cv, .studio { grid-template-columns: 1fr; }
  .work-detail .stage { position: relative; top: auto; }   /* 手机上取消粘性定位，但保留定位上下文给 AR 按钮 */
  .artist-line { grid-template-columns: 1fr 80px; }
  .artist-line .hide-sm { display: none; }
  .artist-line img { width: 80px; }
  .form { grid-template-columns: 1fr; }
  .filters .right { margin-left: 0; }
}
@media (max-width: 480px) {
  .works-grid, .works-grid.cols-4 { column-count: 1; }
  .artist-row, .subjects { grid-template-columns: 1fr; }
}

/* ---------- 中文版排版微调 ---------- */
/* 中文没有真正的斜体，浏览器会把字硬拉斜，很难看；改为正体 */
html[lang="zh-CN"] em, html[lang="zh-CN"] .work-card .title { font-style: normal; }
/* 中文标题里的强调词：用印章红代替斜体（深色区块里用浅一点的红，保证对比度） */
html[lang="zh-CN"] .display em, html[lang="zh-CN"] .h2 em { color: var(--seal); }
html[lang="zh-CN"] .ink-band .h2 em { color: #E8A090; }
/* 中文大标题字距略放开、行高略加大 */
html[lang="zh-CN"] .display, html[lang="zh-CN"] .h2, html[lang="zh-CN"] .lead { letter-spacing: 0.02em; line-height: 1.3; }
html[lang="zh-CN"] .display { font-weight: 300; }
html[lang="zh-CN"] .eyebrow { letter-spacing: 0.3em; }

/* =========================================================
   手机端（≤ 760px）
   ========================================================= */

/* 菜单按钮：桌面隐藏 */
.menu-toggle { display: none; }
.no-scroll { overflow: hidden; }

/* 页头与菜单：平板竖屏（≤1023px）导航放不下一行，也改用菜单按钮 */
@media (max-width: 1023px) {
  /* 页头：手机上不用毛玻璃（backdrop-filter 会让全屏菜单被限制在页头盒子里） */
  .site-header { backdrop-filter: none; background: var(--paper); }
  .site-header .wrap { min-height: 64px; flex-wrap: nowrap; }
  .brand, .menu-toggle { position: relative; z-index: 2; }

  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; margin-right: -10px; padding: 0 10px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .3s; }
  .menu-open .menu-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  /* 全屏菜单 */
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start; gap: 4px;
    padding: 120px var(--gutter) 40px; background: var(--paper);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s, visibility 0s .3s;
    overflow-y: auto;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s; }
  .nav a {
    font-family: var(--serif); font-size: 34px; line-height: 1.2;
    padding: 10px 0; min-height: 56px; display: flex; align-items: center;
    border-bottom: 0;
  }
  /* 当前页：右侧一个印章红小方块（不用斜体，中文斜体是浏览器硬拉的，很难看） */
  .nav a.active { border-bottom: 0; }
  .nav a.active::after { content: ""; width: 7px; height: 7px; background: var(--seal); margin-left: 14px; }
  .nav .lang { margin-top: auto; padding-top: 32px; font-size: 15px; gap: 8px; }
  .nav .lang button { min-height: 44px; min-width: 44px; font-size: 15px; }
}

@media (max-width: 760px) {
  /* 通用间距收紧 */
  .sec-head { margin-bottom: 32px; flex-wrap: wrap; }
  .hero { padding-top: 24px; }
  .hero .text { gap: 24px; }
  .hero .text p { font-size: 17px; }
  .hero .ctas .btn { flex: 1 1 100%; }
  .manifesto { padding-top: 24px; }
  .manifesto .grid { gap: 20px; }
  .ink-band .grid { gap: 48px; }

  /* 作品筛选：画种标签横向滑动，不换成多行 */
  .filters { gap: 8px 20px; margin-bottom: 36px; }
  .filters .tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters .tabs::-webkit-scrollbar { display: none; }
  .filters .tabs button { white-space: nowrap; min-height: 44px; flex: none; }   /* 不允许被压缩，否则文字会叠到下一个标签上 */
  .filters .right { width: 100%; justify-content: space-between; gap: 12px 20px; }

  /* 作品详情 */
  .work-detail { padding-top: 8px; gap: 32px; }
  .work-detail .stage { padding: 20px; }
  .work-detail .stage:has(.ar-chip) { padding-bottom: 76px; }   /* 有 AR 按钮时底部留位置，不压住作品；没有时不留空白 */
  .work-detail .stage img { max-height: 64vh; }
  .work-detail .info { gap: 24px; }
  .specs { grid-template-columns: 96px 1fr; }
  .inscription { padding: 20px; gap: 16px; }

  /* 画家 */
  .artist-hero { gap: 32px; }
  .artist-hero > * { min-width: 0; }
  .artist-hero img { width: 100%; max-width: 420px; }
  .cv { gap: 24px; margin-top: 32px; }

  /* 价格表：保持可读，横向滚动 */
  .price-table { min-width: 520px; }
  .price-table td:first-child { font-size: 19px; }

  /* FAQ 字号 */
  .faq summary { font-size: 19px; min-height: 44px; align-items: center; }

  /* 表单：手机上输入框字号保持 16px，避免 iOS 聚焦时自动放大页面 */
  .field input, .field select, .field textarea { font-size: 16px; }
  .form .btn { width: 100%; justify-self: stretch !important; }

  /* 页脚 */
  .site-footer .top { padding-bottom: 48px; }
  .site-footer .cols a { padding: 8px 0; }
}

@media (max-width: 480px) {
  .hero .text .btn { min-height: 50px; }
  .display { font-size: clamp(40px, 11vw, 56px); }
  .subject .img { aspect-ratio: 4 / 3; }
}

/* =========================================================
   细节打磨
   ========================================================= */

/* 浅灰底色区块里，作品衬底改用纸色，否则"装裱"感消失 */
.tone { background: var(--paper-2); }
.tone .work-card .frame { background: var(--paper); }

/* 横排作品（数量少时用，比瀑布流整齐）：统一方形衬底，作品按原比例居中 */
.works-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 56px); }
.works-row .work-card { margin: 0; }
.works-row .work-card .frame { position: relative; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; }
.works-row .work-card img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 76%; max-height: 80%; }

/* ---------- 参考图片上传区（替代浏览器默认的文件按钮） ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.dropzone {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 20px;
  padding: 22px 24px; margin-top: 6px; cursor: pointer;
  border: 1px dashed rgba(237, 233, 224, .32);
  text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--on-ink-mute);
  transition: border-color .25s, background-color .25s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--on-ink); background: rgba(237, 233, 224, .04); }
.dropzone:focus-within { outline: 2px solid #E8A090; outline-offset: 3px; }
.dz-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(237, 233, 224, .32); color: var(--on-ink); transition: transform .3s;
}
.dropzone:hover .dz-icon, .dropzone.drag .dz-icon { transform: rotate(90deg); }
.dz-text { display: grid; gap: 2px; }
.dz-icon { grid-row: span 2; }
.dz-text strong { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.3; color: var(--on-ink); }
.dz-text span { line-height: 1.5; }
.dz-hint { grid-column: 2; font-size: 12px; opacity: .85; }
.dz-files { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; text-transform: none; letter-spacing: 0; }
.dz-files:empty { display: none; }
.dz-files li {
  display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 14px;
  padding: 8px 8px 8px 8px; background: rgba(237, 233, 224, .05);
}
.dz-files img { width: 48px; height: 48px; object-fit: cover; display: block; }
.dz-files .name { color: var(--on-ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-files .size { color: var(--on-ink-mute); font-size: 12px; }
.dz-files button {
  width: 36px; height: 36px; border: 0; background: none; color: var(--on-ink-mute); cursor: pointer;
  display: grid; place-items: center; transition: color .2s;
}
.dz-files button:hover { color: var(--on-ink); }
.dz-note { font-size: 12px; color: #E8A090; text-transform: none; letter-spacing: 0; min-height: 0; margin: 0; }
@media (max-width: 760px) {
  .dropzone { padding: 18px; gap: 4px 14px; }
}

/* ---------- 画家一句话定位 ---------- */
.role { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.4; color: var(--ink-2); }
html[lang="zh-CN"] .role { font-style: normal; font-size: 15px; letter-spacing: .04em; }
.artist-card .role { margin-top: 4px; }

/* ---------- 作品页：画家标签（带小头像） ---------- */
.filters .artist-tabs { flex-basis: 100%; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.tabs-label { color: var(--mute); font-size: 14px; margin-right: 4px; }
.artist-tabs button { display: inline-flex; align-items: center; gap: 8px; }
.artist-tabs img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: center 30%; }

/* ---------- 版画与周边 ---------- */
.soon {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--seal); }
html[lang="zh-CN"] .soon { letter-spacing: .2em; }
.ed-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(40px, 6vw, 88px) 0; border-top: 1px solid var(--line);
}
.ed-row:nth-child(even) .img { order: 2; }
.ed-row .img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.ed-row .img img { width: 100%; height: 100%; object-fit: cover; }
.ed-text { display: grid; gap: 20px; }
.ed-text .num { font-family: var(--serif); font-style: italic; font-size: 18px; letter-spacing: 0; text-transform: none; margin-right: 14px; }
.ed-text ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ed-text li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* ---------- 订阅（只用于深色区块：页脚、上新提醒） ---------- */
.newsletter { display: grid; gap: 12px; margin-top: 36px; max-width: 480px; }
.nl-label { font-size: 14px; color: var(--on-ink-mute); line-height: 1.6; }
.nl-row { display: flex; border-bottom: 1px solid var(--on-ink-mute); transition: border-color .2s; }
.nl-row:focus-within { border-bottom-color: var(--on-ink); }
.nl-row input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--on-ink);
  font: 16px/1.5 var(--sans); padding: 12px 0; min-height: 48px;
}
.nl-row input::placeholder { color: var(--on-ink-mute); }
.nl-row input:focus-visible { outline: none; }
.nl-row button {
  background: none; border: 0; color: var(--on-ink); font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 0 4px 0 16px; min-height: 48px; cursor: pointer; transition: opacity .2s;
}
.nl-row button:hover { opacity: .65; }
.newsletter .form-note { color: #E8A090; font-size: 13px; margin: 0; }
.ink-band .newsletter { margin-top: 0; }

/* ---------- AR 上墙 ---------- */
.ar-chip {
  position: absolute; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: rgba(248, 246, 241, .94); color: var(--ink); border: 1px solid var(--line); border-radius: 22px;
  font: 500 13px/1 var(--sans); letter-spacing: .02em; cursor: pointer;
  box-shadow: 0 4px 18px rgba(27, 26, 23, .08); transition: background .2s, border-color .2s;
}
.ar-chip:hover { background: #FFFFFF; border-color: var(--ink); }
.ar-chip .ar-pill { margin-left: 2px; }
.ar-pill {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 8px;
  border: 1px solid currentColor; border-radius: 9px; font: 600 10px/1 var(--sans); letter-spacing: .08em; opacity: .8;
}
.status .ar-pill { color: var(--ink-2); }
.ar-dialog {
  width: min(1040px, calc(100vw - 32px)); height: min(820px, calc(100vh - 32px)); max-width: none; max-height: none;
  padding: 0; border: 0; background: var(--paper); color: var(--ink);
  display: none; grid-template-rows: auto 1fr auto;
}
.ar-dialog[open] { display: grid; }
.ar-dialog::backdrop { background: rgba(27, 26, 23, .55); backdrop-filter: blur(4px); }
.ar-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px 12px; }
.ar-head .h3 { margin: 6px 0 4px; }
.ar-head .h3 .cn { font-size: 16px; color: var(--mute); margin-left: 6px; }
.ar-head .caption { margin: 0; }
.ar-close { width: 44px; height: 44px; flex: none; border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.ar-stage { position: relative; min-height: 0; background: linear-gradient(#EEEAE2, #E4DFD5); }
.ar-stage model-viewer { width: 100%; height: 100%; --poster-color: transparent; --progress-bar-color: var(--seal); }
.ar-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--mute); font-size: 14px; }
.ar-launch { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); white-space: nowrap; }
.ar-foot { padding: 14px 28px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.ar-foot .caption { margin: 0; max-width: 60ch; }
.ar-foot .link { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 2px; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; }
@media (max-width: 760px) {
  /* 写在 .ar-chip 基础规则之后，才能覆盖它的 right */
  .ar-chip { right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .ar-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; }
  .ar-head { padding: 16px 16px 8px; }
  .ar-foot { padding: 12px 16px 20px; }
}

/* ---------- 首页"寻礼"三格入口 ---------- */
.gift-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.gift-tile {
  position: relative; display: grid; gap: 12px; align-content: start; text-decoration: none; overflow: hidden;
  padding: clamp(28px, 3vw, 40px); min-height: 240px; background: var(--paper-2); transition: background .3s;
}
.gift-tile:hover { background: #E8E3D9; }
.gift-tile .gt-char {
  font-family: var(--serif-cn); font-weight: 300; font-size: 88px; line-height: 1; color: var(--seal); opacity: .9;
  margin-bottom: 8px; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.gift-tile:hover .gt-char { transform: translateY(-4px); }
.gift-tile .caption { margin: 0; }

/* 作品详情：寄送方式 */
.ship-note { margin: -12px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 14px; color: var(--ink-2); }
.ship-note .eyebrow { font-size: 11px; }
.ship-note .link { font-size: 13px; }
.ship-note.ship-alt { margin-top: -18px; font-size: 13px; color: var(--seal); }

/* 关于页故事区：左图右文 */
.two-col.story-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; padding-top: 0; border-top: 0; }

/* 简洁页脚：用于以深色区块收尾的页面，避免重复"来信请至" */
.site-footer.minimal { padding-top: 0; }
/* 分隔线画在内容层上（而不是带内边距的 .wrap 上），两端才能与正文对齐 */
.site-footer.minimal .mini { border-top: 1px solid rgba(237, 233, 224, .14); padding-top: 40px; }
.site-footer .mini { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding-bottom: 36px; font-size: 14px; }
.site-footer .mini nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer .mini a { color: var(--on-ink); text-decoration: none; padding: 6px 0; }
.site-footer .mini a:hover { color: var(--on-ink-mute); }
.site-footer .mini .brand .name { color: var(--on-ink); }

/* 键盘操作的焦点样式 */
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
.ink-band :focus-visible, .site-footer :focus-visible { outline-color: #E8A090; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }

/* 锚点跳转时不被固定页头挡住 */
[id] { scroll-margin-top: 112px; }

/* 标题行尾不留孤字，段落断行更均匀 */
.display, .h2, .h3, .lead { text-wrap: balance; }
p, .caption { text-wrap: pretty; }

@media (max-width: 760px) {
  .works-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none;
  }
  .works-row::-webkit-scrollbar { display: none; }
  .works-row .work-card { scroll-snap-align: start; }
  .two-col.story-grid { grid-template-columns: 1fr; gap: 28px; }
  .gift-tiles { grid-template-columns: 1fr; }
  .gift-tile { min-height: 0; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; }
  .gift-tile .gt-char { grid-row: span 2; font-size: 56px; margin: 0; }
  .ed-row { grid-template-columns: 1fr; gap: 28px; }
  .ed-row:nth-child(even) .img { order: 0; }
  .ed-row .img { aspect-ratio: 4 / 3; }
  .filters .artist-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters .artist-tabs::-webkit-scrollbar { display: none; }
  .tabs-label { flex: none; }
  .hero .head { margin-bottom: 32px; }
  .seal-stamp { font-size: 16px; }
  [id] { scroll-margin-top: 80px; }
}

/* =========================================================
   触屏与小屏细节（2026-11-05 响应式检查后补充）
   ========================================================= */

/* 作品页画种筛选：短词（如 All / Oil）按钮至少 44px 宽 */
.filters .tabs button { min-width: 44px; }

/* 触屏设备：放大独立文字链接的点击区域（透明伪元素，不改变排版） */
@media (pointer: coarse) {
  .link, .back { position: relative; }
  .link::after, .back::after { content: ""; position: absolute; inset: -12px -6px; }
}

/* 手机端：10–11px 的标签、徽标、年份统一提到 12px，保证可读 */
@media (max-width: 760px) {
  html body .ar-pill, html body .ship-note .eyebrow, html body .fw-video-tag,
  html body .sh-reco-badge, html body .cfg-reco, html body .nm-reco,
  html body .nm-tag, html body .nm-pick, html body .gf-animal-years,
  html body .demo-tag, html body .tc-specs dt, html body .when .s, html body .tracking .k { font-size: 12px; }
}

/* ---------- 作品详情：横幅作品整行展示（main.js pageWork 按宽高比 ≥ 1.4 加 .wide） ----------
   长卷、横幅放在左右两栏里只有约 480px 宽，画面细节看不清；改为图片独占一行，信息放到图片下方 */
.work-detail .stage { padding: clamp(20px, 3vw, 48px); }   /* 竖幅：减小留白，让画本身更大 */
.work-detail .stage img { max-height: calc(100vh - 260px); }  /* 竖幅：粘性大图连同缩略图一屏放得下 */
.work-detail.wide { grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
.work-detail.wide .stage { position: relative; top: auto; }
/* width:auto + max-width/max-height：按原比例缩放，不会被拉伸，也不会出现留白框 */
.work-detail.wide .stage img { width: auto; max-width: 100%; max-height: 78vh; }
.work-detail.wide .info { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.work-detail .info-main, .work-detail .info-specs { display: grid; gap: 32px; align-content: start; min-width: 0; }
.work-detail.wide .info-specs { padding-top: 34px; }   /* 与左栏"← 全部作品"下方的画家名大致对齐 */
@media (max-width: 1023px) {
  .work-detail.wide .info { grid-template-columns: minmax(0, 1fr); }
  .work-detail.wide .info-specs { padding-top: 0; }
}
@media (max-width: 760px) {
  .work-detail .stage { padding: 20px; }
  .work-detail .stage img { max-height: 64vh; }
  .work-detail.wide .stage img { max-height: 64vh; }
  .work-detail.wide .info, .work-detail .info-main, .work-detail .info-specs { gap: 24px; }
}

/* =========================================================
   首页：主视觉手机排序、画家卡用代表作做封面（2026-11-18）
   ========================================================= */
@media (max-width: 760px) {
  /* 手机：标题 → 画 → 简介按钮，画不再被挤到按钮下面 */
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "fig" "text"; row-gap: 28px; }
  .hero figure img { aspect-ratio: 4 / 3; }
  .hero .text { padding-bottom: 0; }
}

/* 画家卡：还没有肖像照时用代表作当封面，作品按原比例居中在纸色衬底上，左下角钤姓氏小印 */
.artist-card .img.cover { position: relative; aspect-ratio: 4 / 5; }
.artist-card .img.cover img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 76%; max-height: 76%; box-shadow: 0 1px 2px rgba(27, 26, 23, .08), 0 8px 24px rgba(27, 26, 23, .06); }
.mini-seal {
  position: absolute; left: 12px; bottom: 12px; width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--seal); color: #F8F1E8; font-family: var(--serif-cn); font-weight: 600; font-size: 17px; line-height: 1; border-radius: 2px;
}
.artist-line .cover-thumb { width: 120px; aspect-ratio: 4 / 5; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; }
.artist-line .cover-thumb img { width: auto; height: auto; max-width: 82%; max-height: 82%; aspect-ratio: auto; object-fit: contain; }
@media (max-width: 760px) { .artist-line .cover-thumb { width: 80px; } }
/* 手机：首页画家与精选作品一样横向滑动，4 张卡不再竖排占两屏 */
@media (max-width: 760px) {
  .artist-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none;
  }
  .artist-row::-webkit-scrollbar { display: none; }
  .artist-row .artist-card { scroll-snap-align: start; }
}
