/* ==================================================================
   LUMEN — gallery UI
   1. tokens      5. collections   9. lightbox
   2. base        6. toolbar      10. palette / sheet / toast
   3. nav         7. grid cards   11. motion + responsive
   4. hero        8. artists/cta
   ================================================================== */

/* ───────────────────────────── 1. TOKENS ───────────────────────── */
:root {
  --bg:          #0a0a0c;
  --bg-2:        #101014;
  --surface:     #16161b;
  --surface-2:   #1d1d23;
  --line:        rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --text:        #f3f1ed;
  --muted:       #9d9da7;
  --faint:       #6b6b76;
  --accent:      #ff5c38;
  --accent-soft: rgba(255,92,56,.14);
  --accent-ink:  #140603;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.35), 0 6px 18px -10px rgba(0,0,0,.7);
  --shadow-md: 0 18px 50px -22px rgba(0,0,0,.85), 0 2px 6px rgba(0,0,0,.4);
  --shadow-lg: 0 40px 120px -30px rgba(0,0,0,.9);

  --ease:     cubic-bezier(.22,1,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-io:  cubic-bezier(.65,0,.35,1);

  --nav-h: 68px;
  --gutter: clamp(18px, 3.2vw, 52px);
  --maxw: 1600px;
  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

[data-theme="light"] {
  --bg:          #f7f4ef;
  --bg-2:        #efeae2;
  --surface:     #fffefc;
  --surface-2:   #f4efe8;
  --line:        rgba(24,20,14,.10);
  --line-strong: rgba(24,20,14,.20);
  --text:        #17140f;
  --muted:       #5f5a52;
  --faint:       #8b857c;
  --accent:      #e8471c;
  --accent-soft: rgba(232,71,28,.10);
  --accent-ink:  #fff8f5;
  --shadow-sm: 0 1px 2px rgba(60,40,20,.10), 0 8px 22px -14px rgba(60,40,20,.35);
  --shadow-md: 0 20px 50px -26px rgba(60,40,20,.45), 0 2px 6px rgba(60,40,20,.08);
  --shadow-lg: 0 40px 120px -30px rgba(60,40,20,.45);
}

/* ────────────────────────────── 2. BASE ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
/* film grain — keeps large flat areas from feeling dead */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--bg); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 10000;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 500;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* buttons ------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn svg { width: 17px; height: 17px; }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); box-shadow: 0 8px 26px -12px var(--accent); }
.btn--accent:hover { filter: brightness(1.07); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface); border-color: var(--text); }
.btn--small { padding: 8px 14px; font-size: 13px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { color: var(--text); background: var(--surface); border-color: var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: pulse 2.6s var(--ease-io) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,92,56,.45); }
  70%  { box-shadow: 0 0 0 9px rgba(255,92,56,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,92,56,0); }
}
kbd {
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  padding: 2px 6px; border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--muted);
}

/* ────────────────────────────── 3. NAV ─────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-102%); }
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 42px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__mark { color: var(--accent); display: grid; place-items: center; }
.brand__mark svg { width: 26px; height: 26px; transition: transform .6s var(--ease); }
.brand:hover .brand__mark svg { transform: rotate(90deg); }
.brand__word { font-size: 17px; font-weight: 600; letter-spacing: .22em; }

.nav__links { display: flex; gap: 4px; margin-inline-start: 8px; }
.nav__link {
  position: relative;
  padding: 8px 13px; border-radius: var(--radius-pill);
  font-size: 14px; color: var(--muted);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 1px;
  width: 16px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: translateX(-50%);
}
.nav__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

.nav__search {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 8px 0 14px;
  min-width: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--faint); font-size: 14px;
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.nav__search:hover { border-color: var(--line-strong); color: var(--muted); }
.nav__search svg { width: 17px; height: 17px; }
.nav__search span { margin-inline-end: auto; }
.nav__menu { display: none; }

.nav__scrollbar {
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent));
  transition: width .15s linear;
}
[data-theme="light"] .ico-sun { display: none; }
[data-theme="dark"]  .ico-moon { display: none; }

/* ────────────────────────────── 4. HERO ────────────────────────── */
.hero { position: relative; padding: clamp(52px, 9vw, 118px) 0 0; overflow: hidden; }
.hero__glow {
  position: absolute; z-index: -1;
  top: -46vh; left: 50%; translate: -50% 0;
  width: min(1080px, 112vw); aspect-ratio: 1.4;
  background:
    radial-gradient(46% 52% at 36% 44%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%),
    radial-gradient(40% 46% at 70% 30%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 72%);
  filter: blur(30px);
  opacity: .9;
  pointer-events: none;
  mask-image: radial-gradient(62% 62% at 50% 50%, #000 38%, transparent 100%);
  -webkit-mask-image: radial-gradient(62% 62% at 50% 50%, #000 38%, transparent 100%);
}
.hero__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(18px, 2.4vw, 28px);
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 7.6vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.025em;
  max-width: 16ch;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
  position: relative;
}
.hero__sub {
  max-width: 52ch;
  font-size: clamp(15px, 1.15vw, 17.5px);
  color: var(--muted);
  line-height: 1.6;
}

.search {
  display: flex; align-items: center; gap: 10px;
  width: min(680px, 100%);
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.search:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 5px var(--accent-soft), var(--shadow-sm);
}
.search__ico { width: 20px; height: 20px; color: var(--faint); flex: 0 0 auto; }
.search input {
  flex: 1 1 auto; min-width: 0;
  border: 0; background: none; outline: none;
  font-size: 15.5px; padding: 10px 0;
}
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--faint); }
.search__clear:hover { color: var(--text); background: var(--surface-2); }
.search__clear svg { width: 15px; height: 15px; }

.trending { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 0; }
.trending__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-inline-end: 2px; }
.pill {
  padding: 6px 13px; border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
  transition: all .25s var(--ease);
}
.pill:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface); transform: translateY(-1px); }

.marquee {
  position: relative;
  margin-top: clamp(44px, 6vw, 84px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track { display: flex; width: max-content; gap: 46px; animation: slide 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 30px);
  color: var(--muted); white-space: nowrap;
  transition: color .3s var(--ease);
}
.marquee__item:hover { color: var(--text); }
.marquee__item span { font-family: var(--font-sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.marquee__sep { color: var(--accent); font-size: 15px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ─────────────────────────── 5. COLLECTIONS ────────────────────── */
.section { max-width: var(--maxw); margin-inline: auto; padding: clamp(52px, 7vw, 104px) var(--gutter) 0; scroll-margin-top: calc(var(--nav-h) + 90px); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(22px, 3vw, 36px); }
.section__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.05; letter-spacing: -.02em;
}
.section__sub { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted); padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--text); border-color: var(--line-strong); }
.link-arrow:hover span { transform: translateX(4px); }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr);
  gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.col {
  position: relative; display: block;
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  transition: transform .5s var(--ease), border-color .3s var(--ease);
}
.col img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .6s var(--ease); opacity: 0; }
.col img.is-loaded { opacity: 1; }
.col:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.col:hover img { transform: scale(1.06); }
.col::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,6,8,.88) 0%, rgba(6,6,8,.30) 42%, transparent 72%);
}
.col__body { position: absolute; inset: auto 0 0 0; padding: 18px; z-index: 1; color: #fff; }
.col__name { font-family: var(--font-serif); font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
.col__meta { display: block; margin-top: 7px; font-size: 12.5px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.col__note { display: block; margin-top: 3px; font-size: 12.5px; color: rgba(255,255,255,.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ──────────────────────────── 6. TOOLBAR ───────────────────────── */
.section--feed { padding-inline: 0; }
.section--feed .section__head { padding-inline: var(--gutter); }
.toolbar {
  position: sticky; top: var(--nav-h); z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), top .45s var(--ease);
}
.toolbar.is-stuck { border-bottom-color: var(--line); }
/* 顶部导航上滑隐藏时，工具栏接管顶部——否则顶部会空出一条内容裸露的缝 */
:root.nav-hidden .toolbar { top: 0; }
.toolbar__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); white-space: nowrap;
  font-size: 13.5px; color: var(--muted);
  transition: all .25s var(--ease);
}
.chip svg { width: 15px; height: 15px; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.is-on svg { color: var(--accent); }
.chip--toggle svg { transition: transform .3s var(--ease); }
.chip--toggle[aria-pressed="true"] { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--text); }
.chip--toggle[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); transform: scale(1.12); }
.chip__n { font-variant-numeric: tabular-nums; opacity: .65; }
.toolbar__right { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }

.select { position: relative; display: inline-flex; align-items: center; }
.select__label { position: absolute; left: 14px; font-size: 13.5px; color: var(--faint); pointer-events: none; }
.select select {
  appearance: none; -webkit-appearance: none;
  padding: 9px 34px 9px 54px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13.5px; cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.select select:hover { border-color: var(--line-strong); background: var(--surface); }
.select svg { position: absolute; right: 12px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.select option { background: var(--surface); color: var(--text); }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-pill); border: 1px solid var(--line); }
.seg__btn {
  display: grid; place-items: center; width: 34px; height: 30px;
  border-radius: var(--radius-pill); color: var(--faint);
  transition: all .25s var(--ease);
}
.seg__btn svg { width: 16px; height: 16px; }
.seg__btn:hover { color: var(--text); }
.seg__btn.is-on { background: var(--surface-2); color: var(--text); }

/* ─────────────────────────── 7. GRID CARDS ─────────────────────── */
.grid { position: relative; padding: 22px var(--gutter) 0; }
.grid.no-anim .card, .grid.no-anim .card * { transition: none !important; }

.card {
  position: absolute; top: 0; left: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform .62s var(--ease), width .4s var(--ease), height .4s var(--ease),
              opacity .28s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.card.is-entering { animation: cardIn .6s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.card.is-leaving { opacity: 0; filter: saturate(.6); pointer-events: none; z-index: 0; }
@keyframes cardIn {
  from { opacity: 0; transform: translate3d(var(--px, 0), calc(var(--py, 0px) + 26px), 0) scale(.97); }
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--card-tint, transparent);
  opacity: .55;
  transition: opacity .6s var(--ease);
}
.card.is-ready::after { opacity: 0; }

.card__open { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; border-radius: inherit; }
.card__img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02);
  transition: opacity .7s var(--ease), transform 1.1s var(--ease);
  background: var(--card-tint, var(--surface-2));
}
.card.is-ready .card__img { opacity: 1; transform: none; }
.card:hover .card__img { transform: scale(1.045); }
.card:hover { box-shadow: var(--shadow-md); }

.card__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(8,8,10,.86) 0%, rgba(8,8,10,.28) 40%, transparent 68%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.card__meta {
  position: absolute; z-index: 3; inset: auto 0 0 0;
  padding: 16px 18px; pointer-events: none;
  color: #fff;
  transform: translateY(8px); opacity: 0;
  transition: transform .45s var(--ease), opacity .35s var(--ease);
}
.card__cat { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.card__title { font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; margin-top: 4px; }
.card__author { font-size: 12.5px; color: rgba(255,255,255,.68); margin-top: 2px; }
.card:hover .card__scrim,
.card:hover .card__meta,
.card:focus-within .card__scrim,
.card:focus-within .card__meta { opacity: 1; }
.card:hover .card__meta, .card:focus-within .card__meta { transform: none; }

.card__like {
  position: absolute; z-index: 4; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(12,12,14,.42);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff;
  opacity: 0; transform: translateY(-6px) scale(.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .25s var(--ease);
}
.card__like svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.card:hover .card__like, .card:focus-within .card__like { opacity: 1; transform: none; }
.card__like:hover { background: rgba(12,12,14,.72); }
.card__like:hover svg { transform: scale(1.12); }
.card__like[aria-pressed="true"] { opacity: 1; transform: none; background: var(--accent); color: var(--accent-ink); }
.card__like[aria-pressed="true"] svg { fill: currentColor; }
.card__like.is-pop svg { animation: pop .45s var(--ease-out); }
@keyframes pop { 0% { transform: scale(1); } 42% { transform: scale(1.42); } 100% { transform: scale(1); } }

.grid--uniform .card__img { object-fit: cover; }
.card__badge {
  position: absolute; z-index: 4; top: 12px; left: 12px;
  padding: 5px 10px; border-radius: var(--radius-pill);
  font-size: 11px; letter-spacing: .04em;
  background: rgba(12,12,14,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; opacity: 0; transition: opacity .35s var(--ease);
}
.card:hover .card__badge { opacity: 1; }
.card__badge--new { background: var(--accent); color: var(--accent-ink); opacity: 1; }

/* empty + load more --------------------------------------------- */
.empty { display: none; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: clamp(56px, 10vw, 120px) var(--gutter); }
.empty.is-on { display: flex; }
.empty svg { width: 120px; height: 90px; color: var(--muted); margin-bottom: 12px; }
.empty h3 { font-family: var(--font-serif); font-weight: 400; font-size: 26px; }
.empty p { color: var(--muted); font-size: 14.5px; max-width: 40ch; }
.empty .btn { margin-top: 14px; }
.noscript-note {
  margin: 0 var(--gutter); padding: 22px 24px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  color: var(--muted); font-size: 14.5px; text-align: center;
}

.loadmore { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: clamp(40px, 6vw, 76px) var(--gutter) 0; }
.loadmore.is-done { display: none; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────────── 8. ARTISTS / CTA ──────────────────────── */
.artists { padding-bottom: clamp(40px, 5vw, 76px); }
.artists__card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 88% 8%, var(--accent-soft), transparent 55%),
    var(--bg-2);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 4.4vw, 68px);
  align-items: center;
}
.artists__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.04; letter-spacing: -.02em;
  margin: 16px 0 14px; max-width: 18ch;
}
.artists__title em { font-style: italic; color: var(--accent); }
.artists__sub { color: var(--muted); max-width: 46ch; font-size: 15.5px; }
.artists__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.stats { display: flex; gap: clamp(20px, 3vw, 44px); margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.stats dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.stats dd { font-family: var(--font-serif); font-size: 30px; line-height: 1.1; margin-top: 6px; }
.stats dd span { font-family: var(--font-sans); font-size: 14px; color: var(--muted); margin-left: 2px; }

.artists__stack { position: relative; height: clamp(280px, 34vw, 440px); }
.artists__stack img {
  position: absolute; width: 58%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transition: transform .8s var(--ease), opacity .6s var(--ease);
  opacity: 0;
}
.artists__stack img.is-loaded { opacity: 1; }
.artists__stack img:nth-child(1) { left: 0;    top: 8%;  transform: rotate(-5deg); z-index: 1; }
.artists__stack img:nth-child(2) { left: 22%;  top: 20%; transform: rotate(2deg);  z-index: 2; }
.artists__stack img:nth-child(3) { left: 44%;  top: 4%;  transform: rotate(7deg);  z-index: 3; }
.artists__card:hover .artists__stack img:nth-child(1) { transform: rotate(-8deg) translateY(-8px); }
.artists__card:hover .artists__stack img:nth-child(2) { transform: rotate(1deg)  translateY(-4px); }
.artists__card:hover .artists__stack img:nth-child(3) { transform: rotate(9deg)  translateY(-10px); }

/* ────────────────────────── 8b. FOOTER ────────────────────────── */
.footer {
  margin-top: clamp(48px, 6vw, 96px);
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, transparent, var(--bg-2));
}
.footer__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(44px, 6vw, 84px) var(--gutter) clamp(34px, 4vw, 54px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr);
  gap: clamp(30px, 5vw, 84px);
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer__note { color: var(--muted); font-size: 14.5px; max-width: 40ch; line-height: 1.6; }
.subscribe { display: flex; gap: 8px; width: min(430px, 100%); margin-top: 4px; }
.subscribe input {
  flex: 1 1 auto; min-width: 0;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 14px; outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.subscribe input::placeholder { color: var(--faint); }
.subscribe input:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.footer__cols > div { display: flex; flex-direction: column; }
.footer__cols h4 {
  font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 14px;
}
.footer__cols a {
  padding: 6px 0; font-size: 14.5px; color: var(--muted); width: fit-content;
  transition: color .22s var(--ease), transform .3s var(--ease);
}
.footer__cols a:hover { color: var(--text); transform: translateX(3px); }
.footer__bar {
  max-width: var(--maxw); margin-inline: auto;
  padding: 20px var(--gutter) calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--faint);
}
.footer__made { display: inline-flex; align-items: center; gap: 5px; }
.footer__made svg { width: 13px; height: 13px; color: var(--accent); }

/* ─────────────────────────── 9. LIGHTBOX ───────────────────────── */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; }
.lb__scrim { position: absolute; inset: 0; background: rgba(6,6,8,.92); backdrop-filter: blur(22px) saturate(120%); -webkit-backdrop-filter: blur(22px) saturate(120%); animation: fade .4s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }

.lb__top {
  position: absolute; z-index: 6; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 2.4vw, 30px);
  color: #fff;
}
/* 顶部渐隐遮罩：亮色照片上图标也能看清 */
.lb__top::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 132px;
  background: linear-gradient(180deg, rgba(6, 6, 8, .58), transparent);
  pointer-events: none;
}
.lb__top .icon-btn {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lb__counter { font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .06em; color: rgba(255,255,255,.72); }
.lb__slash { margin: 0 5px; opacity: .45; }
.lb__topactions { display: flex; gap: 6px; }
.lb__icon { color: rgba(255,255,255,.75); }
.lb__icon:hover { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); }
.lb__icon[aria-pressed="true"] { color: var(--accent); background: rgba(255,92,56,.14); }
.lb__icon[aria-pressed="true"] svg { fill: currentColor; }

.lb__nav {
  position: absolute; z-index: 3; top: 50%; translate: 0 -50%;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: background .25s var(--ease), transform .25s var(--ease), opacity .3s var(--ease);
}
.lb__nav svg { width: 22px; height: 22px; }
.lb__nav:hover { background: rgba(255,255,255,.18); }
.lb__nav--prev { left: clamp(12px, 2vw, 26px); }
.lb__nav--next { right: clamp(12px, 2vw, 26px); }
.lb__nav:hover { transform: translateY(-50%) scale(1.06); }

.lb__stage {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: clamp(74px, 9vh, 104px) clamp(70px, 9vw, 128px) clamp(96px, 12vh, 128px);
  transition: padding-right .5s var(--ease);
}
.lb__img {
  max-width: 100%; max-height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.lb__img.is-ready { opacity: 1; }
.lb__loader { position: absolute; display: grid; place-items: center; }
.lb__loader[hidden] { display: none; }

.lb__caption {
  position: absolute; z-index: 3; left: clamp(16px, 2.4vw, 30px); bottom: clamp(18px, 3vh, 30px);
  color: #fff; pointer-events: none; max-width: min(46vw, 460px);
  transition: opacity .35s var(--ease);
}
.lb__caption h3 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.lb__caption p { font-size: 13px; color: rgba(255,255,255,.62); margin-top: 3px; }

.lb__panel {
  position: absolute; z-index: 4; top: 0; right: 0; bottom: 0;
  width: min(382px, 40vw);
  padding: 76px 28px 28px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 22px;
  overflow-y: auto;
  transform: translateX(102%);
  transition: transform .55s var(--ease);
  color: var(--text);
}
.lb.is-info .lb__panel { transform: none; }
.lb.is-info .lb__stage { padding-right: min(430px, 42vw); }
.lb.is-info .lb__nav--next { right: min(400px, 39vw); }
.lb.is-info .lb__caption { opacity: 0; }

.lb__panelhead { display: flex; align-items: center; gap: 12px; }
.lb__avatar {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; letter-spacing: .04em;
}
.lb__authorname { font-size: 14.5px; font-weight: 500; }
.lb__authorhandle { font-size: 12.5px; color: var(--faint); }
.lb__panelhead > div:nth-child(2) { margin-inline-end: auto; }

.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.meta > div { background: var(--bg); padding: 12px 14px; }
.meta dt { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.meta dd { font-size: 14px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.lb__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.lb__tags span { padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.lb__panelactions { display: flex; gap: 9px; flex-wrap: wrap; }
.lb__panelactions .btn { flex: 1 1 auto; }
/* 「复制图片链接」是论坛发图的主路径，独占一行做主动作 */
.lb__panelactions .lb__copyimg { flex: 1 1 100%; }
.lb__panelactions .lb__copypage { font-size: 12.5px; }
.lb__license { font-size: 12px; color: var(--faint); line-height: 1.6; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }

.lb__progress { position: absolute; z-index: 5; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .3s var(--ease); }

/* ────────────── 10. PALETTE / SHEET / TOAST ───────────────────── */
.palette { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding-top: min(14vh, 150px); }
.palette__scrim { position: absolute; inset: 0; background: rgba(6,6,8,.6); backdrop-filter: blur(10px); animation: fade .3s var(--ease) both; }
.palette__box {
  position: relative; width: min(640px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: popIn .4s var(--ease-out) both;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.palette__field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette__field svg { width: 19px; height: 19px; color: var(--faint); }
.palette__field input { flex: 1; border: 0; background: none; outline: none; font-size: 16px; }
.palette__list { list-style: none; padding: 8px; margin: 0; max-height: min(52vh, 430px); overflow-y: auto; }
.palette__list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; }
.palette__list li[aria-selected="true"] { background: var(--surface-2); }
.palette__list img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; background: var(--surface-2); }
.palette__list .p-kind { margin-inline-start: auto; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.palette__list mark { background: none; color: var(--accent); }
.palette__list .p-empty { color: var(--faint); cursor: default; justify-content: center; }
.palette__foot { display: flex; gap: 18px; padding: 11px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.palette__foot kbd { margin-inline-end: 3px; }

.sheet { position: fixed; inset: 0; z-index: 250; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(6,6,8,.6); backdrop-filter: blur(8px); animation: fade .3s var(--ease) both; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--surface); border-top: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px 20px calc(22px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 4px;
  animation: sheetUp .42s var(--ease-out) both;
}
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet__panel a { padding: 14px 6px; font-size: 17px; border-bottom: 1px solid var(--line); }
.sheet__panel a:last-of-type { border-bottom: 0; }
.sheet__panel .btn { margin-top: 12px; }

.toast {
  position: fixed; z-index: 400; left: 50%; bottom: 28px; translate: -50% 0;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  animation: toastIn .4s var(--ease-out) both;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } }
.toast i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ────────────────────── 11. MOTION / REVEAL / RESPONSIVE ──────── */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in:nth-child(2) { transition-delay: .06s; }
.js .reveal.is-in:nth-child(3) { transition-delay: .12s; }
.js .reveal.is-in:nth-child(4) { transition-delay: .18s; }

@media (max-width: 1100px) {
  .nav__search { min-width: 0; }
  .nav__search span { display: none; }
  .nav__search { padding-inline: 11px; }
  .nav__search kbd { display: none; }
  .lb__panel { width: min(360px, 52vw); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__menu { display: grid; }
  .artists__card { grid-template-columns: 1fr; }
  .artists__stack { height: clamp(240px, 56vw, 340px); margin-top: 10px; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .lb__nav { width: 44px; height: 44px; }
  .lb__caption { max-width: 70vw; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --nav-h: 60px; }
  .toolbar__inner { gap: 10px; }
  .toolbar__right { flex: 1 1 100%; width: 100%; margin-inline-start: 0; justify-content: space-between; }
  .toolbar__right .select { flex: 1 1 auto; min-width: 0; }
  .toolbar__right .select select { width: 100%; }
  .chips { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chips > * { flex: 0 0 auto; }
  .toolbar__right .chip { white-space: nowrap; }
  .chips::-webkit-scrollbar { display: none; }
  .stats { flex-wrap: wrap; gap: 18px 28px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb__panel {
    width: 100%; top: auto; height: min(72vh, 560px);
    border-left: 0; border-top: 1px solid var(--line);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(102%);
    padding-top: 22px;
  }
  .lb.is-info .lb__panel { transform: none; }
  .lb.is-info .lb__stage { padding-right: clamp(70px, 9vw, 128px); padding-bottom: 0; }
  .lb.is-info .lb__nav--next { right: clamp(12px, 2vw, 26px); }
  .lb__caption { bottom: auto; top: 62px; }
  .lb__caption h3 { font-size: 15px; }
}
@media (max-width: 460px) {
  .search { flex-wrap: nowrap; }
  .search__go { padding-inline: 16px; }
  .hero__title { font-size: clamp(2.4rem, 12vw, 3.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ───────────────── 11. 中文排版微调 ─────────────────
   中文没有词间距，靠字距“呼吸”会显得松散，所以把西文那套
   负字距、斜体强调换掉；正文行高也给得比西文宽松一些。   */
body { line-height: 1.7; letter-spacing: 0; }

/* 大字号标题：去掉负字距，中文才不挤 */
.hero__title, .artists__title, .section__title,
.col__name, .empty h3, .stats dd { letter-spacing: 0; }
.hero__title { line-height: 1.12; max-width: 14em; }
.artists__title { line-height: 1.2; }
.card__title, .lb__caption h3, .card__author { letter-spacing: 0; }

/* 强调词：中文没有真正的斜体，合成倾斜很脏，
   改成“强调色 + 一条细下划线” */
.hero__title em, .artists__title em { font-style: normal; }
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em;
  height: .05em; min-height: 2px; border-radius: 999px;
  background: currentColor; opacity: .38;
}

/* 小标签：中文全大写无意义，只保留字距 */
.eyebrow, .trending__label, .stats dt, .meta dt,
.card__cat, .footer__cols h4 { text-transform: none; }
.card__cat { letter-spacing: .18em; }
.marquee__item span { letter-spacing: .16em; text-transform: none; }
.palette__list .p-kind { letter-spacing: .1em; text-transform: none; }

/* 中文段落宽度按字号算更舒服（ch 对中文不准） */
.hero__sub { max-width: 30em; line-height: 1.85; }
.footer__note { max-width: 26em; line-height: 1.75; }

/* 卡片作者行、按钮、选项不再收紧字距 */
.btn, .chip, .pill, .nav__link, .select select, .lb__license, .artists__sub { letter-spacing: 0; }
.lb__license { line-height: 1.75; }
