/* ============================================================
   灵感画廊 · PROMPT GALLERY
   纸感编辑部美学：暖纸底 + 浓墨字 + 克莱因蓝点缀 + 信号橙火花
   ============================================================ */

:root {
  --paper: #f4f0e6;
  --paper-2: #ece6d6;
  --card: #fbf9f3;
  --ink: #17140e;
  --ink-2: rgba(23, 20, 14, 0.62);
  --ink-3: rgba(23, 20, 14, 0.38);
  --line: rgba(23, 20, 14, 0.14);
  --accent: #2b3fe0;
  --accent-soft: rgba(43, 63, 224, 0.09);
  --spark: #ff5a1f;
  --radius: 18px;
  --head-h: 64px;
  --font-d: "Fraunces", "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-s: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 0.9, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-s);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* clip 不产生滚动容器，sticky/定位不受影响，且彻底消除横向可滚动区 */
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}

::selection { background: var(--accent); color: var(--paper); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(23, 20, 14, 0.22); border-radius: 99px; border: 3px solid var(--paper); }
::-webkit-scrollbar-track { background: transparent; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { user-select: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* 纸张噪点 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================ 顶栏 ============================ */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--head-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 26px; height: 26px; transition: transform 0.5s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-d); font-weight: 900; font-size: 16px; letter-spacing: 0.06em; }
.brand-text em { font-family: var(--font-m); font-style: normal; font-size: 8.5px; letter-spacing: 0.32em; color: var(--ink-2); }

.head-middle { flex: 1; display: flex; justify-content: center; max-width: 500px; }

.search-top { position: relative; width: 100%; }
.search-top svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 13px; height: 13px; color: var(--ink-3); pointer-events: none; }
.search-top input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 249, 243, 0.6);
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--ink);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.search-top input::placeholder { color: var(--ink-3); }
.search-top input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--card);
  box-shadow: 0 2px 8px rgba(23, 20, 14, 0.06);
}
.search-top input::-webkit-search-cancel-button { -webkit-appearance: none; }

.head-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); font-size: 13px; flex-shrink: 0; }
.head-nav a { position: relative; padding: 4px 0; color: var(--ink-2); transition: color 0.25s; }
.head-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.head-nav a:hover { color: var(--ink); }
.head-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.head-stats { font-family: var(--font-m); font-size: 10.5px; letter-spacing: 0.12em; color: var(--ink-3); }

/* ============================ 首屏 ============================ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--head-h) + 48px) clamp(20px, 6vw, 80px) 72px;
  overflow: hidden;
}

.hero-outline {
  position: absolute;
  right: -2vw;
  bottom: -4vw;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(120px, 22vw, 340px);
  line-height: 0.8;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 880px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(251, 249, 243, 0.6);
}

.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--spark); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: 0.5; } }

.hero-title {
  margin-top: 34px;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(46px, 8.6vw, 118px);
  line-height: 1.14;
  letter-spacing: 0.01em;
}

.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span { display: inline-block; transform: translateY(112%); animation: rise 0.9s var(--ease-out) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-title em {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.hero-title .fullstop { font-style: normal; color: var(--spark); }

.hero-sub {
  margin-top: 28px;
  max-width: 540px;
  font-size: 15px;
  color: var(--ink-2);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:active { transform: scale(0.96); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); box-shadow: 0 10px 30px -10px rgba(43, 63, 224, 0.55); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats dt { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-3); text-transform: uppercase; }
.hero-stats dd { font-family: var(--font-d); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; margin-top: 4px; }

/* ========================= 图片流动带 ========================= */

.strip {
  padding: 8px 0 30px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.mq { display: flex; width: max-content; animation: mq 52s linear infinite; }
.mq + .mq { margin-top: 14px; }
.mq.rev { animation-direction: reverse; animation-duration: 60s; }
.strip:hover .mq { animation-play-state: paused; }

.mq-set { display: flex; gap: 14px; padding-right: 14px; }
.mq-set img {
  height: 172px;
  width: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  transition: transform 0.4s var(--ease-out), filter 0.4s;
  filter: saturate(0.92);
}
.mq-set img:hover { transform: translateY(-4px) scale(1.02); filter: saturate(1.05); }

@keyframes mq { to { transform: translateX(-50%); } }

/* ========================= 分类文字带 ========================= */

.ticker {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-1.2deg) scale(1.03);
  margin: 26px -10px 0;
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(23, 20, 14, 0.5);
}

.ticker-track { display: flex; width: max-content; padding: 12px 0; animation: mq 30s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track .tk { display: flex; align-items: center; }
.ticker-track span {
  font-family: var(--font-d);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 0 16px;
}
.ticker-track b { color: var(--spark); font-weight: 400; font-size: 13px; }

/* ============================ 筛选栏 ============================ */

.filter {
  position: sticky;
  top: var(--head-h);
  z-index: 90;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0;
}

.filter-scroll-btn {
  flex-shrink: 0;
  width: 44px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, var(--paper) 0%, transparent 100%);
  border: none;
  color: var(--ink);
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.3s;
  z-index: 2;
}
.filter-scroll-btn:hover { background: linear-gradient(to right, var(--paper) 20%, transparent 100%); }
.filter-scroll-btn.show { opacity: 1; pointer-events: auto; }
.filter-scroll-left { background: linear-gradient(to right, var(--paper) 0%, transparent 100%); }
.filter-scroll-right { background: linear-gradient(to left, var(--paper) 0%, transparent 100%); }

.filter-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px clamp(16px, 3vw, 32px);
  overflow: hidden;
}

.pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 2px;
  scroll-behavior: smooth;
}
.pills::-webkit-scrollbar { display: none; }

.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.pill:hover { border-color: var(--ink); transform: translateY(-1px); }
.pill .n { font-family: var(--font-m); font-size: 10.5px; color: var(--ink-3); }
.pill.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill.on .n { color: rgba(244, 240, 230, 0.55); }
.pill .ic { font-size: 14px; line-height: 1; }

/* ============================ 灵感墙 ============================ */

.wall {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px clamp(16px, 3vw, 32px) 90px;
  scroll-margin-top: calc(var(--head-h) + 60px);
}

.wall-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.wall-head h2 { font-family: var(--font-d); font-weight: 900; font-size: clamp(30px, 4vw, 44px); letter-spacing: 0.02em; }
.wall-note { font-family: var(--font-m); font-size: 10.5px; letter-spacing: 0.18em; color: var(--ink-3); }
.wall-count { margin-left: auto; font-family: var(--font-m); font-size: 11px; color: var(--ink-2); }

.masonry { columns: 300px; column-gap: 20px; }

/* ---------- 卡片 ---------- */

.card {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
}
.card.in { animation: cardIn 0.65s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 45ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.card.in:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 20, 14, 0.3);
  box-shadow: 0 2px 0 rgba(23, 20, 14, 0.05), 0 24px 44px -18px rgba(23, 20, 14, 0.28);
}

.thumb {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, var(--paper-2) 32%, #f7f3e9 46%, var(--paper-2) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.thumb.done { animation: none; background: var(--paper-2); }

.thumb img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 0.8s var(--ease-out), filter 0.5s;
}
.thumb img.loaded { opacity: 1; }
.card:hover .thumb img.loaded { transform: scale(1.05); }

.thumb .chip { position: absolute; z-index: 2; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.chip.cat { top: 10px; left: 10px; background: rgba(244, 240, 230, 0.88); color: var(--ink); border: 1px solid rgba(23, 20, 14, 0.1); }
.chip.ar { top: 10px; right: 10px; background: rgba(23, 20, 14, 0.68); color: var(--paper); }

.thumb .peek {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 10px;
  background: linear-gradient(transparent, rgba(15, 12, 8, 0.62));
  color: #f4f0e6;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.card:hover .peek { opacity: 1; transform: none; }

.card .body { padding: 14px 16px 15px; }

.card .title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .prompt {
  margin-top: 9px;
  padding-left: 10px;
  border-left: 2px solid rgba(43, 63, 224, 0.35);
  font-family: var(--font-m);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
}

.model {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-m);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}
.model b { color: var(--spark); font-weight: 400; }

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease-out);
}
.copy svg { width: 12px; height: 12px; }
.copy:hover { background: var(--ink); color: var(--paper); }
.copy:active { transform: scale(0.94); }
.copy.done { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 加载哨兵 / 结尾 / 空态 ---------- */

.sentinel { display: flex; justify-content: center; padding: 26px 0 8px; }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: dot 1.1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 40% { transform: translateY(-7px); background: var(--accent); } }
.sentinel.hidden { display: none; }

.endmark {
  text-align: center;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  padding: 30px 0 6px;
}

.empty { text-align: center; padding: 70px 0 40px; }
.empty-title { font-family: var(--font-d); font-weight: 900; font-size: 26px; }
.empty-sub { color: var(--ink-2); font-size: 13px; margin: 10px 0 22px; }

/* ============================ 页脚 ============================ */

.site-foot {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 9vw, 110px) clamp(20px, 6vw, 80px) 34px;
}

.foot-big {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(30px, 5.4vw, 62px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  max-width: 900px;
}
.foot-big .spark { color: var(--spark); font-weight: 400; }

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid rgba(244, 240, 230, 0.16);
}
.foot-brand { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.2em; }
.foot-h { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.24em; color: rgba(244, 240, 230, 0.45); margin-bottom: 14px; }
.foot-desc { font-size: 12.5px; line-height: 1.9; color: rgba(244, 240, 230, 0.62); margin-top: 12px; }
.foot-desc a { color: var(--paper); border-bottom: 1px solid rgba(244, 240, 230, 0.4); transition: color 0.25s, border-color 0.25s; }
.foot-desc a:hover { color: var(--spark); border-color: var(--spark); }

.foot-cats { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-cats a { font-size: 13px; color: rgba(244, 240, 230, 0.72); transition: color 0.25s, padding-left 0.25s var(--ease-out); }
.foot-cats a:hover { color: var(--paper); padding-left: 6px; }

.foot-base {
  margin-top: 60px;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(244, 240, 230, 0.35);
}

/* ============================ 灯箱 ============================ */

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(10px, 3vmin, 36px); }
.lightbox[hidden] { display: none; }

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease both;
}
@keyframes fadeIn { from { opacity: 0; } }

.lb-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  background: var(--paper);
  border: 1px solid rgba(23, 20, 14, 0.25);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  animation: pop 0.4s var(--ease-out) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }

.lb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(244, 240, 230, 0.9);
  color: var(--ink);
  transition: transform 0.4s var(--ease-out), background 0.25s, color 0.25s;
}
.lb-close svg { width: 13px; height: 13px; }
.lb-close:hover { transform: rotate(90deg); background: var(--ink); color: var(--paper); }

.lb-media { background: #100e0a; display: grid; place-items: center; min-height: 280px; }
.lb-media img { max-width: 100%; max-height: 90vh; width: auto; height: auto; object-fit: contain; display: block; }

.lb-info { display: flex; flex-direction: column; gap: 15px; padding: 28px 26px 22px; overflow-y: auto; max-height: 90vh; }

.lb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-chips .chip { position: static; border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent); backdrop-filter: none; }
.lb-chips .chip.dim { background: transparent; color: var(--ink-2); }

.lb-title { font-family: var(--font-d); font-weight: 900; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.35; }

.lb-prompt {
  flex: 1;
  min-height: 130px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  font-family: var(--font-m);
  font-size: 12px;
  line-height: 1.85;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.lb-copy { justify-content: center; width: 100%; padding: 14px; }
.lb-copy svg { width: 14px; height: 14px; }
.lb-copy.done { background: var(--accent); border-color: var(--accent); }

.lb-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 12px; }
.lb-meta dt { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-3); padding-top: 2px; }
.lb-meta dd { color: var(--ink-2); word-break: break-all; }
.lb-meta a { color: var(--accent); border-bottom: 1px solid rgba(43, 63, 224, 0.35); }

.lb-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.lb-nav .btn { padding: 9px 16px; font-size: 12px; }
.lb-count { font-family: var(--font-m); font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-3); }

/* ============================ 其余组件 ============================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 300;
  transform: translate(-50%, 18px);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-m);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--spark); font-weight: 400; }

.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  box-shadow: 0 10px 26px -10px rgba(23, 20, 14, 0.3);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease-out), background 0.25s, color 0.25s;
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--ink); color: var(--paper); }

/* ============================ 响应式 ============================ */

@media (max-width: 900px) {
  .head-stats { display: none; }
  .lb-panel { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .lb-media img { max-height: 44vh; }
  .lb-info { max-height: none; overflow: visible; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding-bottom: 54px; }
  .hero-stats { gap: 22px; }
  .filter-inner { flex-wrap: wrap; }
  .search { width: 100%; }
  .search input, .search input:focus { width: 100%; }
  .wall-head h2 { font-size: 30px; }
  .mq-set img { height: 128px; }
  .ticker-track span { font-size: 14px; }
}

/* ======================== 减少动态偏好 ======================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .mq, .ticker-track { animation: none; }
  .card { opacity: 1; }
  .thumb img { opacity: 1; }
}
        /* "source": "https://apimodels.app/zh/gpt-image-2-5-prompts/portrait-photography" */