/* ============================================================
   ATELIER — 暗色 · 现代极简 · 响应式
   ============================================================ */
:root {
  --bg: #10343e;
  --bg-soft: #163f4a;
  --bg-card: #1b4753;
  --line: #2a5763;
  --line-soft: #173a44;
  --text: #e9f1f3;
  --text-dim: #92aab1;
  --text-faint: #5f7a82;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, .12);
  --danger: #a64b3c;
  --ok: #4c7a5c;
  --serif: "Didot", "Bodoni 72", "Times New Roman", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Segoe UI", sans-serif;
  --header-h: 64px;
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #141414; }

.app { flex: 1; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(16, 52, 62, .85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--accent); font-size: 18px; }
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 6px;
  font-weight: 600;
}
.site-nav { display: flex; gap: 32px; margin-left: 8px; }
.site-nav a {
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--text-dim);
  padding: 8px 2px;
  position: relative;
  transition: color .2s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-faint);
  font-size: 13px;
  padding: 6px 14px;
  transition: all .2s;
  letter-spacing: 1px;
}
.lang-btn.active { background: var(--text); color: var(--bg); font-weight: 600; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 16px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 64px;
  margin-top: 96px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-brand { font-family: var(--serif); letter-spacing: 8px; font-size: 17px; }
.footer-text { font-size: 11px; letter-spacing: 4px; color: var(--text-faint); }
.footer-copy { font-size: 12px; color: var(--text-faint); margin-top: 12px; }

/* ---------- 通用 ---------- */
.page-head { padding: 64px 0 8px; }
.kicker {
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--text-faint);
  text-transform: uppercase;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: 2px;
  margin-top: 10px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 72px 0 28px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: 2px;
}
.section-link { font-size: 13px; color: var(--text-dim); letter-spacing: 2px; transition: color .2s; }
.section-link:hover { color: var(--accent); }
.divider { height: 1px; background: var(--line-soft); margin: 48px 0; }

/* 标签 */
.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}
.tag-sold { color: var(--danger); border-color: rgba(166, 75, 60, .5); }

/* 已售遮罩 */
.sold-mask {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, .55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sold-text {
  font-size: 13px;
  letter-spacing: 6px;
  color: #cfcfcf;
  border: 1px solid #9a9aa0;
  padding: 8px 22px;
  border-radius: 999px;
}

/* ---------- 首页 Hero ---------- */
.hero {
  padding: clamp(72px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line-soft);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.hero-logo {
  font-size: clamp(64px, 12vw, 148px);
  font-family: var(--serif);
  letter-spacing: .08em;
  line-height: 1;
  font-weight: 500;
}
.hero-sub {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 8px;
  color: var(--text-faint);
  text-transform: uppercase;
}
.hero-quote {
  margin-top: clamp(32px, 5vw, 56px);
  max-width: 560px;
  font-size: 17px;
  color: var(--text-dim);
  line-height: 2;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* ---------- 作品/商品网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.wcard { cursor: pointer; transition: opacity .2s; }
.wcard:hover { opacity: .85; }
.wcard-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
}
.wcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.wcard:hover .wcard-img img { transform: scale(1.03); }
.wcard-year {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #ddd;
  background: rgba(16, 52, 62, .6);
  padding: 3px 10px;
  border-radius: 999px;
}
.wcard-body { padding: 14px 2px 0; }
.wcard-title { font-size: 15px; letter-spacing: .5px; }
.wcard-artist { font-size: 12px; color: var(--text-faint); margin-top: 3px; }

.pcard {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: border-color .2s;
}
.pcard:hover { border-color: var(--line); }
.pcard-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.pcard-body { padding: 16px 18px 18px; }
.pcard-artist { font-size: 11px; letter-spacing: 2px; color: var(--text-faint); text-transform: uppercase; }
.pcard-name { font-size: 14px; margin-top: 6px; line-height: 1.5; }
.pcard-price { font-size: 16px; color: var(--accent); font-weight: 500; margin-top: 10px; }

/* 横向滚动条（首页精选） */
.hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 300px);
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.hscroll > * { scroll-snap-align: start; }
.hscroll::-webkit-scrollbar { height: 2px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--line); }

/* ---------- 筛选条 ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 36px;
}
.filter-item {
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .2s;
}
.filter-item:hover { color: var(--text); }
.filter-item.active { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }

/* ---------- 艺术家卡片 ---------- */
.acard {
  cursor: pointer;
  text-align: center;
  transition: opacity .2s;
}
.acard:hover { opacity: .85; }
.acard-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  margin: 0 auto;
}
.acard-name { font-size: 17px; margin-top: 16px; font-weight: 500; letter-spacing: 1px; }
.acard-tagline { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.acard-count { font-size: 12px; color: var(--text-dim); margin-top: 8px; letter-spacing: 2px; }

/* ---------- 详情页 ---------- */
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding: 48px 0 0;
  align-items: start;
}
.detail-img-wrap {
  position: relative;
  background: #000;
  border: 1px solid var(--line-soft);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.detail-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { position: sticky; top: calc(var(--header-h) + 24px); }
.detail-cat { font-size: 11px; letter-spacing: 4px; color: var(--text-faint); text-transform: uppercase; }
.detail-title { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 500; letter-spacing: 1px; margin-top: 12px; line-height: 1.3; }
.detail-meta { margin-top: 18px; font-size: 13px; color: var(--text-dim); letter-spacing: 1px; }
.detail-meta .sep { margin: 0 10px; color: var(--text-faint); }
.detail-price { font-family: var(--serif); font-size: 32px; color: var(--accent); margin-top: 24px; }
.detail-desc { margin-top: 24px; font-size: 15px; color: var(--text-dim); line-height: 2; }
.detail-status { margin-top: 20px; }
.detail-links { margin-top: 32px; border-top: 1px solid var(--line-soft); }
.link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line-soft);
  transition: color .2s;
  cursor: pointer;
}
.link-row:hover { color: var(--accent); }
.link-row .k { font-size: 12px; letter-spacing: 2px; color: var(--text-faint); }
.link-row .v { font-size: 14px; }

/* 艺术家详情头 */
.artist-head { text-align: center; padding: 64px 0 8px; }
.artist-head .avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  margin: 0 auto;
}
.artist-head .name { font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); margin-top: 24px; font-weight: 500; letter-spacing: 2px; }
.artist-head .tagline { font-size: 14px; color: var(--text-dim); margin-top: 8px; letter-spacing: 2px; }
.artist-head .style-tag { display: inline-block; margin-top: 16px; font-size: 12px; letter-spacing: 2px; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 5px 18px; }
.artist-bio { max-width: 640px; margin: 40px auto 0; font-size: 15px; color: var(--text-dim); line-height: 2.1; text-align: center; }

/* 空态 */
.empty { padding: 100px 0; text-align: center; color: var(--text-faint); font-size: 14px; letter-spacing: 3px; }

/* 加载 */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 160px 0;
  color: var(--text-faint);
}
.loading-mark { font-size: 36px; color: var(--accent); animation: spin 2.4s linear infinite; }
.loading-text { font-size: 11px; letter-spacing: 6px; margin-top: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 淡入 */
.fade-in { animation: fadeIn .4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    gap: 0;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); letter-spacing: 4px; }
  .nav-toggle { display: block; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-info { position: static; }
  .detail-img-wrap { aspect-ratio: 4 / 3; }
  .hero-logo { letter-spacing: .04em; }
  .section-head { margin-top: 56px; }
  .artist-bio { text-align: left; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wcard-title { font-size: 13px; }
  .page-head { padding-top: 40px; }
}

/* 无障碍 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
