/* ============================================================
   Bridge · 设计系统（白色版）
   暖白纸面 × 琥珀强调 · Space Grotesk + Instrument Serif
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/static/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/static/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #faf9f6;
  --panel: #ffffff;
  --ink: #1d1e21;
  --mut: #62676e;
  --mut2: #6e737b;
  --line: rgba(29, 30, 33, 0.09);
  --line2: rgba(29, 30, 33, 0.17);
  --acc: #c87d1a;
  --acc-deep: #9a5f0e;
  --acc-soft: rgba(200, 125, 26, 0.13);
  --ok: #3f9c46;
  --err: #c65a3d;
  --serif: "Instrument Serif", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Space Grotesk", "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
          "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --top-h: 56px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scrollbar-width: thin; scrollbar-color: #d9d6d1 transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(200, 125, 26, 0.22); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d9d6d1; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #c6c2bc; }
:focus-visible { outline: 2px solid rgba(200, 125, 26, 0.65); outline-offset: 2px; border-radius: 6px; }
button { font-family: var(--sans); }
a { color: inherit; }

.wrap { width: min(1560px, 100% - clamp(36px, 8vw, 112px)); margin-inline: auto; }

/* ---- 氛围层 ---- */
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 40% at 16% -8%, rgba(231, 165, 78, 0.11), transparent 62%),
    radial-gradient(42% 32% at 94% -12%, rgba(118, 138, 200, 0.07), transparent 60%);
  animation: breathe 16s ease-in-out infinite;
}
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.05;
  mix-blend-mode: multiply;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---- 顶栏 ---- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 249, 246, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: var(--top-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 30px; height: 30px; }
.m-arc { fill: none; stroke: var(--acc); stroke-width: 2.3; stroke-linecap: round; }
.m-base { fill: none; stroke: #2a2b2f; stroke-width: 2.3; stroke-linecap: round; }
.m-dot { fill: var(--acc); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.brand:hover .m-dot { transform: translateY(-1.6px); }
.wordmark { font: 400 21px/1 var(--serif); letter-spacing: 0.015em; color: var(--ink); }
.top-nav { display: flex; align-items: center; gap: 14px; }
.stat { display: inline-flex; align-items: center; }
.stat i {
  width: 8px; height: 8px; border-radius: 50%; background: #c6c9cd; display: block;
  transition: background 0.4s, box-shadow 0.4s;
}
.stat.ok i { background: var(--ok); box-shadow: 0 0 8px rgba(63, 156, 70, 0.5); }
.stat.down i { background: var(--err); box-shadow: 0 0 8px rgba(198, 90, 61, 0.45); }
.ghost {
  appearance: none; background: none; border: 1px solid transparent; color: var(--mut);
  font: 500 13px var(--sans); padding: 7px 13px; border-radius: 9px; cursor: pointer;
  transition: 0.22s;
}
.ghost:hover { color: var(--ink); background: rgba(29, 30, 33, 0.05); border-color: var(--line); }

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(48px, 8.8vh, 108px) 0 10px; transition: padding 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.eyebrow {
  font: 500 11px/1 var(--sans); letter-spacing: 0.32em; color: var(--mut2);
  margin: 0 0 22px; text-transform: uppercase;
}
.display {
  font: 400 clamp(54px, 8.4vw, 116px)/0.95 var(--serif);
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  background: linear-gradient(180deg, #232529 8%, #666a72 98%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--ink);
  transition: font-size 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  width: fit-content;
}
.tagline {
  font: 500 15px/1.6 var(--sans); letter-spacing: 0.16em; color: var(--mut);
  margin: 0 0 38px; transition: margin 0.4s ease;
}
.hero-side {
  position: absolute; right: 0; top: 56%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
  transition: opacity 0.4s ease;
}
.hero-side::before {
  content: "SOURCES · 来源"; order: -1;
  font: 500 10px var(--sans); letter-spacing: 0.3em; color: var(--mut2);
}
.hero-side span {
  font: 400 11.5px var(--sans); letter-spacing: 0.2em; color: var(--mut2);
  display: inline-flex; align-items: center; gap: 11px;
}
.hero-side span::before {
  content: ""; width: 20px; height: 1px; background: rgba(29, 30, 33, 0.22);
  transition: background 0.25s;
}
.hero-side span:hover::before { background: var(--acc); }
body.searching .hero-side { opacity: 0; pointer-events: none; }
body.searching .hero { padding: clamp(18px, 3.4vh, 40px) 0 8px; }
body.searching .display { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 14px; opacity: 0.94; }
body.searching .eyebrow { display: none; }
body.searching .tagline { display: none; }
body.searching .suggest { display: none; }
body.mode-reverse .searchbar,
body.mode-reverse .hint,
body.mode-reverse .suggest { display: none; }
body.mode-reverse .hero-side { opacity: 0; pointer-events: none; }

/* ---- 模式切换 ---- */
.tabs {
  position: relative; display: inline-flex; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  font: 500 14px var(--sans); color: var(--mut);
  padding: 10px 2px 12px; margin-right: 26px; transition: color 0.25s;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); }
.tab-ink {
  position: absolute; bottom: -1px; left: 0; height: 2px; width: 0;
  background: var(--acc); border-radius: 2px;
  box-shadow: 0 0 12px rgba(200, 125, 26, 0.4);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- 搜索栏 ---- */
.searchbar {
  display: flex; align-items: center; gap: 13px;
  width: min(880px, 100%); height: 64px; padding: 0 18px;
  border-radius: 18px; border: 1px solid rgba(29, 30, 33, 0.14);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(24, 24, 28, 0.04), 0 18px 44px -26px rgba(24, 24, 28, 0.4);
  transition: border-color 0.28s, box-shadow 0.35s, height 0.4s ease;
}
.searchbar:hover { border-color: rgba(29, 30, 33, 0.22); }
.searchbar:focus-within {
  border-color: rgba(200, 125, 26, 0.55);
  box-shadow: 0 0 0 4px var(--acc-soft), 0 20px 50px -26px rgba(24, 24, 28, 0.45);
}
body.searching .searchbar { height: 58px; }
.searchbar .ic { width: 21px; height: 21px; flex: none; stroke: #71767e; fill: none; stroke-width: 1.7; stroke-linecap: round; }
.searchbar:focus-within .ic { stroke: var(--acc); }
#q {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0;
  font: 500 17px/1.4 var(--sans); color: var(--ink); letter-spacing: 0.01em;
}
#q::placeholder { color: #989ea6; }
#q::-webkit-search-cancel-button { display: none; }
.cc {
  appearance: none; background: none; border: 0; padding: 4px; cursor: pointer;
  display: none; color: var(--mut2); transition: color 0.2s;
}
.cc:hover { color: var(--ink); }
.cc svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; display: block; }
.searchbar.hasq .cc { display: block; }
.go {
  appearance: none; border: 0; cursor: pointer; flex: none;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--acc); color: #241a08; display: grid; place-items: center;
  transition: 0.22s; box-shadow: 0 8px 20px -10px rgba(200, 125, 26, 0.75);
}
.go:hover { background: #daa04a; transform: translateY(-1px); }
.go:active { transform: translateY(0) scale(0.97); }
.go svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
kbd {
  font: 500 11px/1 var(--sans); color: #5f646b;
  border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 6px;
  padding: 4px 7px; background: #ffffff; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(24, 24, 28, 0.04);
}
.hint { font: 400 12.5px/1.8 var(--sans); color: var(--mut); margin: 15px 0 0; letter-spacing: 0.02em; }
.hint kbd { padding: 2px 6px; font-size: 10.5px; }
body.searching .hint { display: none; }

.suggest { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 30px; }
.suggest > span { font: 400 12px var(--sans); color: var(--mut2); letter-spacing: 0.12em; margin-right: 4px; }
.suggest button {
  appearance: none; background: none; cursor: pointer;
  font: 500 12.5px var(--sans); color: var(--mut);
  border: 1px dashed rgba(29, 30, 33, 0.34); border-radius: 999px; padding: 7px 14px;
  transition: 0.22s;
}
.suggest button:hover {
  color: var(--acc-deep); border-color: rgba(200, 125, 26, 0.55); background: var(--acc-soft);
  transform: translateY(-1px);
}

/* ---- 以图搜图 ---- */
.reverse { padding: 4px 0 0; }
.dropzone {
  margin: 8px 0 6px; padding: clamp(34px, 7vh, 72px) 22px;
  border: 1.5px dashed rgba(29, 30, 33, 0.22); border-radius: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; transition: 0.3s; background: rgba(29, 30, 33, 0.015);
}
.dropzone:hover, .dropzone.over { border-color: rgba(200, 125, 26, 0.6); background: var(--acc-soft); }
.dz-ic { width: 54px; height: 54px; stroke: var(--mut); fill: none; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }
.dropzone:hover .dz-ic, .dropzone.over .dz-ic { stroke: var(--acc); }
.dz-arrow { opacity: 0.9; }
.dz-title { font: 500 17px var(--sans); margin: 6px 0 0; }
.dz-cta {
  display: inline-flex; align-items: center; padding: 9px 24px; margin-top: 2px;
  border: 1px solid rgba(200, 125, 26, 0.5); border-radius: 999px;
  color: var(--acc-deep); background: var(--acc-soft); font: 500 13.5px var(--sans);
  transition: 0.22s;
}
.dropzone:hover .dz-cta, .dropzone.over .dz-cta { background: rgba(200, 125, 26, 0.22); }
.dz-sub { font: 400 12.5px var(--sans); color: var(--mut); margin: 0; }
.rev-panel { padding: 8px 0 0; }
.rev-your {
  display: flex; align-items: center; gap: 16px; margin: 6px 0 8px;
  padding: 14px; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(29, 30, 33, 0.02); width: fit-content; min-width: min(420px, 100%);
}
.rev-your img { width: 78px; height: 78px; object-fit: cover; border-radius: 12px; background: #efeeeb; }
.rev-your .t1 { font: 500 14.5px var(--sans); margin: 0 0 4px; }
.rev-your .t2 { font: 400 12px var(--sans); color: var(--mut); margin: 0; }
.rev-head { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 16px; }
.rev-head h3 { font: 500 15.5px var(--sans); margin: 0; }
.rev-head .n { font: 400 12px var(--sans); color: var(--mut2); }
.rev-loading { display: flex; align-items: center; gap: 12px; padding: 26px 2px; color: var(--mut); font: 400 13.5px var(--sans); }
.bigspin {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid rgba(29, 30, 33, 0.14); border-top-color: var(--acc);
  animation: rot 0.9s linear infinite;
}
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.site {
  display: flex; gap: 13px; align-items: center; padding: 11px;
  border: 1px solid var(--line); border-radius: 15px; text-decoration: none;
  background: rgba(29, 30, 33, 0.018); transition: 0.25s; min-width: 0;
}
.site:hover { border-color: var(--line2); background: rgba(29, 30, 33, 0.045); transform: translateY(-2px); }
.site img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; background: #efeeeb; flex: none; }
.site .st { min-width: 0; }
.site .d { font: 500 10.5px var(--sans); letter-spacing: 0.1em; color: var(--acc-deep); text-transform: uppercase; margin-bottom: 3px; }
.site .tt { font: 500 13px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.site .dd {
  font: 400 11.5px/1.5 var(--sans); color: var(--mut);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- 结果区 ---- */
.results { padding-bottom: 10px; }
.resultbar {
  position: sticky; top: var(--top-h); z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 13px 0; margin: 0;
  background: linear-gradient(180deg, rgba(250, 249, 246, 0.96), rgba(250, 249, 246, 0.82));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; order: 1; }
.chips::-webkit-scrollbar { display: none; }
.chips.scrollable {
  mask-image: linear-gradient(90deg, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
}
.meta { order: 2; flex: none; font: 400 12.5px var(--sans); color: #565b62; letter-spacing: 0.03em; text-align: right; font-variant-numeric: tabular-nums; }
.meta b { color: var(--ink); font-weight: 500; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px 0 15px;
  border-radius: 999px; border: 1px solid var(--line2); background: #ffffff;
  color: #53585f; font: 500 13px var(--sans); cursor: pointer; white-space: nowrap;
  transition: 0.22s;
}
.chip:hover { color: var(--ink); border-color: rgba(29, 30, 33, 0.3); background: #ffffff; transform: translateY(-1px); box-shadow: 0 4px 12px -8px rgba(24, 24, 28, 0.5); }
.chip.on { color: var(--acc-deep); border-color: rgba(200, 125, 26, 0.5); background: var(--acc-soft);
  box-shadow: 0 4px 14px -8px rgba(200, 125, 26, 0.6); }
.chip .n {
  font: 500 10.5px/1 var(--sans); color: #565b62;
  background: rgba(29, 30, 33, 0.07); border-radius: 999px; padding: 4px 8px;
}
.chip.on .n { color: var(--acc-deep); background: rgba(200, 125, 26, 0.18); }
.chip.err { color: var(--err); border-color: rgba(198, 90, 61, 0.4); }
.chip:active { transform: translateY(0) scale(0.97); }
.spin {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  border: 1.6px solid rgba(29, 30, 33, 0.16); border-top-color: var(--acc);
  animation: rot 0.8s linear infinite;
}
.spin.err { border-top-color: var(--err); }

/* ---- 瀑布流 ---- */
.grid { position: relative; padding: 20px 0 4px; }
.card {
  position: absolute; top: 0; left: 0;
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: top 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
              left 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
              width 0.35s ease;
}
.card .ph {
  position: relative; border-radius: 14px; overflow: hidden; background: #f0efec;
  transition: box-shadow 0.35s ease;
}
.card:hover .ph { box-shadow: 0 20px 55px -28px rgba(24, 24, 28, 0.5); }
.card .ph::before {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: 1;
  background: linear-gradient(100deg, #efeeeb 30%, #e4e2dd 42%, #efeeeb 54%);
  background-size: 220% 100%; animation: shim 1.6s linear infinite;
  transition: opacity 0.55s ease 0.05s;
}
.card.loaded .ph::before { opacity: 0; }
.card.broken .ph::before { animation: none; opacity: 0.5; }
.card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.001); opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease;
}
.card img.ok { opacity: 1; }
.card:hover img { transform: scale(1.045); }
.card.broken { cursor: pointer; }
.card.broken .ph { display: grid; place-items: center; }
.card.broken .ph::after { content: "图片加载失败 · 点击重试"; font: 400 12px var(--sans); color: var(--mut2); }
.ov {
  position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(12, 13, 16, 0.88) 78%);
  opacity: 0; transform: translateY(8px); transition: 0.28s ease; pointer-events: none;
  display: flex; flex-direction: column; gap: 7px;
}
.card:hover .ov { opacity: 1; transform: none; pointer-events: auto; }
.ov .t {
  font: 500 12.5px/1.45 var(--sans); color: #f4f2ee;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ov .mm { font: 400 11px var(--sans); color: #c3c9d2; display: flex; align-items: center; gap: 7px; }
.acts { display: flex; gap: 6px; margin-top: 1px; }
.acts button {
  appearance: none; width: 30px; height: 30px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(18, 19, 23, 0.62);
  backdrop-filter: blur(6px); color: rgba(255, 255, 255, 0.92); display: grid; place-items: center;
  transition: 0.2s;
}
.acts button:hover { background: var(--acc); border-color: var(--acc); color: #241a08; transform: translateY(-1px); }
.acts button svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  font: 500 10px/1 var(--sans); letter-spacing: 0.08em; padding: 4px 9px;
  border-radius: 999px; background: rgba(12, 13, 16, 0.6); color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(5px);
  opacity: 0; transition: opacity 0.25s;
}
.grid.mixed .card .badge { opacity: 0.95; }

/* 骨架 */
.card.sk { animation: none; }
.card.sk .ph {
  height: var(--h, 240px); border-radius: 14px;
  background: linear-gradient(100deg, #efeeeb 30%, #e2e0db 42%, #efeeeb 54%);
  background-size: 220% 100%; animation: shim 1.5s linear infinite;
}
.card.sk .ph::before { display: none; }
.card.sk:nth-child(3n) .ph { --h: 300px; }
.card.sk:nth-child(4n) .ph { --h: 185px; }
.card.sk:nth-child(5n) .ph { --h: 264px; }

.notice { padding: 46px 0 20px; font: 400 14px/1.9 var(--sans); color: var(--mut2); }
.notice b { color: var(--mut); font-weight: 500; }

.more { display: flex; justify-content: center; padding: 16px 0 8px; }
.morebtn {
  appearance: none; cursor: pointer;
  font: 500 13.5px var(--sans); color: var(--ink);
  background: #ffffff; border: 1px solid var(--line2);
  padding: 12px 32px; border-radius: 999px; transition: 0.25s;
  box-shadow: 0 2px 8px -6px rgba(24, 24, 28, 0.5);
}
.morebtn:hover { border-color: rgba(200, 125, 26, 0.5); color: var(--acc-deep); background: var(--acc-soft); transform: translateY(-1px); }
.morebtn.loading { pointer-events: none; opacity: 0.55; }
.morebtn:active { transform: translateY(0) scale(0.98); }

/* ---- 灯箱 ---- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.lb-blur {
  position: absolute; inset: -6%;
  background: center / cover no-repeat;
  filter: blur(72px) saturate(1.25) brightness(0.55);
  opacity: 0; transition: opacity 0.5s ease;
}
.lightbox.in .lb-blur { opacity: 1; }

.lb-back {
  position: absolute; inset: 0; background: rgba(15, 16, 20, 0.55);
  backdrop-filter: blur(26px) saturate(115%); -webkit-backdrop-filter: blur(26px) saturate(115%);
  opacity: 0; transition: opacity 0.3s ease;
}
.lightbox.in .lb-back { opacity: 1; }
.lb-stage { position: relative; z-index: 2; margin: 0; display: grid; place-items: center; }
.lb-stage img {
  max-width: min(94vw, 1680px); max-height: calc(100vh - 96px); border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 46px 140px -30px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: scale(0.965);
  transition: opacity 0.3s ease, transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  background: #17181c;
}
.lightbox.in .lb-stage img { opacity: 1; transform: none; }
.lb-hd {
  position: absolute; top: 72px; left: 50%; transform: translateX(-50%); z-index: 4;
  font: 500 12px var(--sans); letter-spacing: 0.08em; color: rgba(244, 245, 248, 0.85);
  background: rgba(15, 16, 20, 0.55); border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(8px);
}
.lb-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 22px 44px;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.45), transparent);
}
.lb-meta { display: flex; gap: 14px; align-items: baseline; min-width: 0; }
.lb-src { font: 500 11px var(--sans); letter-spacing: 0.14em; color: #e2a955; text-transform: uppercase; flex: none; }
.lb-title { font: 400 14px var(--sans); color: rgba(244, 245, 248, 0.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-ic {
  appearance: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; flex: none;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: #f2f3f5;
  display: grid; place-items: center; transition: 0.2s; backdrop-filter: blur(10px);
}
.lb-ic:hover { border-color: rgba(231, 165, 78, 0.65); color: #e2a955; transform: rotate(90deg); }
.lb-ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.lb-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 44px 24px 22px;
  background: linear-gradient(0deg, rgba(10, 11, 14, 0.45), transparent);
}
.lb-count { font: 500 13px var(--sans); color: rgba(244, 245, 248, 0.62); letter-spacing: 0.1em; }
.lb-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lb-acts button, .lb-acts a {
  appearance: none; text-decoration: none; cursor: pointer;
  font: 500 12.5px var(--sans); color: #eef0f3;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 9px 17px; border-radius: 999px; backdrop-filter: blur(10px); transition: 0.2s;
}
.lb-acts button:hover, .lb-acts a:hover { border-color: rgba(231, 165, 78, 0.65); color: #e2a955; background: rgba(255, 255, 255, 0.12); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center; color: #f2f3f5; transition: 0.2s; backdrop-filter: blur(10px);
}
.lb-nav:hover { border-color: rgba(231, 165, 78, 0.65); color: #e2a955; background: rgba(255, 255, 255, 0.14); }
.lb-nav.prev { left: max(14px, calc(50vw - min(47vw, 840px) - 62px)); }
.lb-nav.next { right: max(14px, calc(50vw - min(47vw, 840px) - 62px)); }
.lb-nav svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#lb-dl { background: var(--acc); border-color: var(--acc); color: #241a08; }
#lb-dl:hover { background: #daa04a; border-color: #daa04a; color: #241a08; }

/* ---- Toast ---- */
.toasts {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  font: 500 13px var(--sans); color: var(--ink);
  background: rgba(255, 255, 255, 0.98); border: 1px solid var(--line2);
  padding: 11px 18px; border-radius: 12px;
  box-shadow: 0 16px 50px -16px rgba(24, 24, 28, 0.4);
  animation: tin 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); flex: none; }
.toast.out { animation: tout 0.28s forwards; }

/* ---- 关于 ---- */
.about {
  border: 1px solid var(--line2); border-radius: 20px; background: #ffffff; color: var(--ink);
  max-width: 560px; width: calc(100vw - 40px); padding: 30px 32px;
  box-shadow: 0 40px 120px -30px rgba(24, 24, 28, 0.45);
}
.about::backdrop { background: rgba(24, 24, 28, 0.32); backdrop-filter: blur(9px); }
.about h2 { font: 400 27px/1.2 var(--serif); margin: 0 0 14px; }
.about h2 em { font-style: italic; color: var(--acc-deep); }
.about p { font: 400 13.5px/1.85 var(--sans); color: var(--mut); margin: 10px 0; }
.about ul { font: 400 13px/2 var(--sans); color: var(--mut); padding-left: 18px; margin: 10px 0; }
.about b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.about kbd { padding: 2px 7px; margin: 0 2px; }
.about .dim { color: var(--mut2); font-size: 12px; }
.okbtn {
  appearance: none; cursor: pointer; margin-top: 16px;
  font: 500 13.5px var(--sans); color: #241a08;
  background: var(--acc); border: 0; border-radius: 999px; padding: 11px 26px;
  transition: 0.2s;
}
.okbtn:hover { background: #daa04a; transform: translateY(-1px); }

/* ---- 页脚 ---- */
.foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 46px;
  padding: 26px 0 42px; font: 400 12px var(--sans); color: var(--mut);
}
.foot .dim { color: var(--mut2); }

/* ---- 响应式 ---- */
@media (max-width: 1180px) { .hero-side { display: none; } }
@media (max-width: 880px) {
  .card .ph { border-radius: 12px; }
}
@media (max-width: 640px) {
  :root { --top-h: 52px; }
  .hero-side { display: none; }
  .resultbar { top: var(--top-h); flex-wrap: wrap; gap: 10px; }
  .meta { order: 3; width: 100%; text-align: left; }
  .searchbar { height: 58px; padding: 0 14px; }
  .searchbar kbd { display: none; }
  #q { font-size: 15.5px; }
  body.searching .eyebrow, body.searching .tagline { display: none; }
  body.searching .display { display: none; }
  body.searching .hero { padding-top: 16px; }
  .lb-stage img { max-height: 72vh; }
  .lb-nav { display: none; }
  .lb-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lb-acts button, .lb-acts a { padding: 8px 13px; font-size: 12px; }
  .sites { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .ov { opacity: 1; transform: none; pointer-events: auto; }
  .ov .mm { display: none; }
  .acts button { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* ---- 键帧 ---- */
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes shim { 0% { background-position: 120% 0; } 100% { background-position: -80% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes tin { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes tout { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes breathe { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }

/* ---- 加载更多按钮里的 mini spinner（新增） ---- */
.more-loading {
  display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px;
  border-radius: 50%; border: 1.6px solid rgba(29, 30, 33, 0.18); border-top-color: var(--acc);
  animation: rot 0.8s linear infinite;
}
