/* 米花私人工作台 · 浏览页样式
   视觉参考 bigmodel.cn 的极简（2026-11-11 她指定的）：很浅的冷灰白底、纯白卡片、不加阴影、
   近黑的字、标题用中等粗细的大字、搜索是一颗大胶囊、按钮是黑的。颜色都留给素材图。
   字号 5 档（12 / 14 / 16 / 22 / 40），字重只用 400 和 500，圆角 4 档（4 / 8 / 12 / 胶囊）。 */
:root {
  color-scheme: light;
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --fill: #F0F1F4;
  --fill-2: #E7E9ED;
  --ink: #131212;
  --ink-2: #5E5E66;
  --ink-3: #9A9CA5;
  --line: #ECEDF0;
  --line-2: #DFE1E6;
  --like: #F0384E;
  --c-site: #3D63F5;
  --c-technique: #8B5CF6;
  --c-image: #0FA47A;
  --c-note: #E08A00;
  --r-xs: 4px;
  --r-s: 8px;
  --r-m: 12px;
  --r-pill: 999px;
  --fs-xs: 12px;
  --fs-s: 14px;
  --fs-m: 16px;
  --fs-l: 22px;
  --fs-xl: 40px;
  --font: "MiSans", "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, monospace;
  --side-w: 232px;
  --panel-w: 420px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --hair: 0 0 0 1px rgba(19, 18, 18, .04);
  --key: inset 0 1px 0 rgba(255, 255, 255, .12);
  --lift: 0 0 0 1px rgba(19, 18, 18, .03), 0 1px 2px rgba(19, 18, 18, .04), 0 10px 24px rgba(19, 18, 18, .06), 0 28px 56px rgba(19, 18, 18, .07);
  --pop: 0 0 0 1px rgba(19, 18, 18, .06), 0 20px 50px rgba(19, 18, 18, .14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; font-family: var(--font); font-size: var(--fs-s); line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; font-weight: 400; }
b { font-weight: 500; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
::selection { background: #D9E2FF; }

.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100vh; }

/* ---------- 左边：很轻的一列分类 ---------- */
.side { display: flex; flex-direction: column; min-height: 0; padding: 20px 12px 16px; overflow-y: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; }
.brand-mark { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); }
.brand-mark svg { width: 17px; height: 17px; transition: transform .7s var(--ease); }
.brand:hover .brand-mark svg { transform: rotate(60deg); }
.brand b { font-size: var(--fs-m); font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.nav { display: grid; gap: 2px; }
.nav-h { margin: 22px 0 6px; padding: 0 10px; font-size: var(--fs-xs); color: var(--ink-3); }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border-radius: var(--r-s); text-align: left; color: var(--ink-2); transition: background .15s, color .15s; }
.nav-item:hover { color: var(--ink); background: rgba(19, 18, 18, .04); }
.nav-item[aria-current="true"] { background: var(--card); color: var(--ink); font-weight: 500; }
.nav-item .i { width: 17px; height: 17px; color: var(--ink-3); }
.nav-item[aria-current="true"] .i { color: var(--ink); }
.nav-item .label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* min-width: 0 才缩得动，长名字收成省略号，右边的数字不被挤出去 */
.nav-item .n { flex: none; }
.nav-item .n { margin-left: auto; font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 400; }
.nav-item.is-empty { opacity: .4; }
.side-foot { margin-top: auto; padding: 24px 0 0; }
.about { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; margin-bottom: 8px; border-radius: var(--r-s); color: var(--ink-2); border: 1px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(110deg, #E2CFFF, #C4D8FF 55%, #FFE2CF) border-box; transition: color .15s, background .2s; }
.about:hover { color: var(--ink); background: linear-gradient(#fff, #fff) padding-box, linear-gradient(110deg, #D2B8FF, #A9C6FF 55%, #FFCFB0) border-box; }
.about .i { width: 16px; height: 16px; }
.about .go { margin-left: auto; width: 14px; height: 14px; color: var(--ink-3); transition: transform .25s var(--ease); }
.about:hover .go { transform: translateX(3px); }
.btn-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px; border-radius: var(--r-s); background: var(--ink); color: #fff; font-weight: 500; transition: background .15s, transform .15s var(--ease); }
.btn-add:hover { background: #2B2A2A; }
.btn-add:active { transform: scale(.98); }
.btn-add .i { width: 16px; height: 16px; }
.btn-add em { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: var(--fs-xs); line-height: 18px; font-weight: 500; }
.side-hint { margin-top: 8px; text-align: center; font-size: var(--fs-xs); color: var(--ink-3); }

/* ---------- 中间 ---------- */
.main { position: relative; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; }
.wrap { position: relative; max-width: 1600px; margin: 0 auto; padding: 0 48px 120px; }
/* 标题后面一片很淡的光：三团大色块叠在一起，以标题为中心，往下淡出，缓慢漂移 */
.aurora { position: absolute; left: 0; right: 0; top: 0; height: 640px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.aurora i { position: absolute; top: 0; left: 50%; border-radius: 50%; filter: blur(80px); will-change: transform; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 620px; height: 340px; margin: 110px 0 0 -640px; background: #E8D2FF; opacity: .55; }
.aurora i:nth-child(2) { width: 660px; height: 360px; margin: 150px 0 0 20px; background: #C9DCFF; opacity: .6; animation-delay: -8s; animation-duration: 26s; }
.aurora i:nth-child(3) { width: 420px; height: 240px; margin: 10px 0 0 -210px; background: #FFE6D6; opacity: .4; animation-delay: -14s; animation-duration: 30s; }
@keyframes drift { from { transform: translate3d(-40px, -10px, 0) scale(1); } to { transform: translate3d(50px, 24px, 0) scale(1.12); } }
.head { padding: 88px 0 32px; text-align: center; }
.head h1 { font-size: var(--fs-xl); line-height: 1.2; font-weight: 500; letter-spacing: -.015em; color: #080808; animation: rise .7s var(--ease) both; }
.head-sub { margin-top: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 2px; animation: rise .7s var(--ease) .08s both; }
.head-sub button { color: var(--ink-2); height: 28px; padding: 0 10px; border-radius: var(--r-pill); transition: color .15s, background .15s; }
.head-sub button:hover { color: var(--ink); background: rgba(19, 18, 18, .05); }
.head-sub button b { color: var(--ink); margin-right: 4px; }
.head-sub i { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.slogan { font-size: var(--fs-m); color: var(--ink-2); text-wrap: balance; }
.slogan b { color: var(--ink); margin: 0 1px; background: linear-gradient(transparent 64%, #E3D9FF 64%); }

.bar-sentinel { height: 1px; }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 12px 0; animation: rise .7s var(--ease) .14s both; }
.bar::before { content: ""; position: absolute; inset: 0 -100vmax; z-index: -1; background: rgba(247, 248, 250, .8); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
  border-bottom: 1px solid transparent; opacity: 0; transition: opacity .25s, border-color .25s; }
.bar.stuck::before { opacity: 1; border-bottom-color: var(--line); }
.search { flex: 0 1 620px; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px; margin-right: 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .72); border: 1px solid #fff;
  transition: background .2s, border-color .2s, box-shadow .25s, height .3s var(--ease); }
.search:hover { background: #fff; box-shadow: 0 8px 28px rgba(19, 18, 18, .05); }
.search:focus-within { background: #fff; border-color: var(--ink); box-shadow: 0 12px 36px rgba(19, 18, 18, .08); }
.bar.stuck .search { height: 44px; }
.search .i { color: var(--ink-3); transition: color .2s; }
.search:focus-within .i { color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: var(--fs-m); }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search kbd { font: var(--fs-xs) var(--font-mono); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r-xs); padding: 0 6px; transition: opacity .2s; }
.search:focus-within kbd { opacity: 0; }
.search.has kbd { display: none; }
/* 搜索是人找；「交给 AI」是把同一句需求变成发给 AI 的话 */
.ask { display: none; align-items: center; gap: 5px; height: 34px; padding: 0 12px 0 10px; margin-right: -10px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: var(--fs-s); font-weight: 500; white-space: nowrap; transition: background .15s, transform .15s var(--ease); animation: popin .25s var(--ease) both; }
.search.has .ask { display: inline-flex; }
.ask:hover { background: #2B2A2A; }
.ask:active { transform: scale(.96); }
.ask .i { width: 15px; height: 15px; color: #C9B8FF; }
.bar.stuck .ask { height: 30px; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: var(--r-s); color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s, transform .15s var(--ease); }
.tool.icon { width: 40px; padding: 0; justify-content: center; }
.tool:hover { background: rgba(19, 18, 18, .05); color: var(--ink); }
.tool:active { transform: scale(.96); }
.tool[aria-pressed="true"] { background: var(--ink); color: #fff; }

.facets { padding: 8px 0 0; animation: rise .7s var(--ease) .2s both; }
.facet-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center; }
.facet { display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 0 8px 0 12px; border-radius: var(--r-s); color: var(--ink-2); transition: background .15s, color .15s; }
.facet:hover, .facet[aria-expanded="true"] { background: var(--card); color: var(--ink); }
.facet .i { width: 15px; height: 15px; color: var(--ink-3); transition: transform .2s; }
.facet[aria-expanded="true"] .i { transform: rotate(180deg); }
.facet b { margin-left: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ink); color: #fff; font-size: var(--fs-xs); line-height: 18px; text-align: center; font-weight: 500; }
.facet.has { color: var(--ink); font-weight: 500; }
.swatches { display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; padding-left: 16px; border-left: 1px solid var(--line-2); height: 20px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(19, 18, 18, .12); transition: transform .18s var(--ease), box-shadow .15s; }
.swatch:hover { transform: scale(1.25); }
.swatch[aria-pressed="true"] { transform: scale(1.1); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.500px var(--ink); }
.swatch.is-empty { opacity: .25; }
.active-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.active-row:not(:empty) { margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--fill); color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.chip:hover { background: var(--fill-2); color: var(--ink); }
.chip .n { font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: #fff; }
.chip[aria-pressed="true"] .n, .chip.on .n { color: rgba(255, 255, 255, .6); }
.chip.is-empty { opacity: .4; }
.chip .i { width: 13px; height: 13px; stroke-width: 2; }
.chip.sw::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.chip.clear { background: none; color: var(--ink-3); padding: 0 6px; }
.chip.clear:hover { color: var(--ink); }

/* 让 AI 来找：首页一条，点例子或按钮就复制好发给 AI 的话。
   四块排一行：图标、两行字、例子、按钮。例子那块放不下的整颗换行藏起来，不露半截 */
.aibar { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 0 14px; margin-top: 36px; padding: 14px 14px 14px 16px; border-radius: 16px; border: 1px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(110deg, #E2CFFF, #C4D8FF 55%, #FFE2CF) border-box; animation: rise .7s var(--ease) .24s both; }
.ai-mark { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #D9CCFF; font-style: normal; }
.ai-mark .i { width: 18px; height: 18px; }
.ai-l { display: grid; line-height: 1.5; white-space: nowrap; margin-right: 10px; }
.ai-l b { font-weight: 500; }
.ai-l span { font-size: var(--fs-xs); color: var(--ink-3); }
.ai-l span i { font-style: normal; color: var(--ink-2); }
.ai-eg { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 6px; height: 34px; overflow: hidden; }
.eg { flex: none; height: 34px; padding: 0 14px; border-radius: var(--r-pill); background: var(--fill); color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s, transform .15s var(--ease); }
.eg:hover { background: var(--ink); color: #fff; }
.eg:active { transform: scale(.97); }
.ai-copy { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--r-s); background: var(--ink); color: #fff; font-weight: 500; white-space: nowrap; transition: background .15s, transform .15s var(--ease); }
.ai-copy:hover { background: #2B2A2A; }
.ai-copy:active { transform: scale(.97); }
.ai-copy .i { width: 15px; height: 15px; }
.aibar + .shelf { padding-top: 44px; }

/* 调研专题：一排白卡，每轮调研一张。和标题左对齐；给投影留出位置；滚得动的那头淡出 */
.shelf { padding: 56px 0 0; animation: rise .7s var(--ease) .26s both; }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.sec-h h2 { font-size: var(--fs-l); font-weight: 500; }
.sec-h span { color: var(--ink-3); }
.sec-h .arrows { margin-left: auto; display: flex; gap: 6px; align-self: center; }
.arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid #fff; color: var(--ink); transition: background .15s, color .15s, opacity .2s, transform .15s var(--ease); }
.arrow:hover { background: var(--ink); color: #fff; }
.arrow:active { transform: scale(.94); }
.arrow:disabled { opacity: .35; pointer-events: none; }
.arrow .i { width: 16px; height: 16px; }
.shelf-row { --pad: 28px; display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad);
  margin: -16px calc(var(--pad) * -1) -44px; padding: 16px var(--pad) 60px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent); }
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-row.more-l { --fade-l: 72px; }
.shelf-row.more-r { --fade-r: 72px; }
.tcard { flex: 0 0 clamp(264px, 21vw, 316px); display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 20px; border-radius: 16px; background: var(--card); border: 1px solid #fff; text-align: left; scroll-snap-align: start;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.tcard:active { transform: translateY(-1px) scale(.995); }
.tcard-pics { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: var(--fill); }
.tcard-pics img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .6s var(--ease); }
.tcard:hover .tcard-pics img { transform: scale(1.04); }
.tcard-pics img:first-child { grid-row: span 2; }
.tcard-pics.n1 { grid-template-columns: 1fr; }
.tcard-pics.n2 { grid-template-rows: 1fr; }
.tcard-pics.n2 img:first-child { grid-row: auto; }
.tcard .tag { align-self: flex-start; margin: 0 12px; }
.tcard b { margin: 4px 12px 0; font-size: var(--fs-m); font-weight: 500; }
.tcard .desc { margin: 0 12px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; }
.tcard .more { margin: 8px 12px 0; display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.tcard .more .i { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.tcard:hover .more .i { transform: translateX(4px); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-xs); background: var(--fill); color: var(--ink-2); font-size: var(--fs-xs); white-space: nowrap; }

.result-head { display: flex; align-items: baseline; gap: 12px; padding: 56px 0 20px; }
.result-head h2 { font-size: var(--fs-l); font-weight: 500; }
.result-head .num, .result-tip { color: var(--ink-3); }

/* ---------- 图墙 ---------- */
.wall { display: flex; align-items: flex-start; gap: 16px; }
.col { flex: 1 1 0; min-width: 0; display: grid; gap: 16px; }
.wall-end { height: 1px; }
.empty { width: 100%; padding: 72px 0; text-align: center; color: var(--ink-2); }
.empty b { display: block; font-size: var(--fs-l); color: var(--ink); margin-bottom: 6px; }
.empty button { margin-top: 16px; height: 36px; padding: 0 16px; border-radius: var(--r-s); background: var(--ink); color: #fff; font-weight: 500; }

.card { position: relative; min-width: 0; padding: 6px 6px 0; border-radius: 16px; background: var(--card); border: 1px solid #fff; cursor: pointer; outline: 0;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); animation: rise .55s var(--ease) both; animation-delay: calc(var(--k, 0) * 22ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.card:active { transform: translateY(-1px) scale(.995); transition-duration: .12s; }
.card:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.tile { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--ph, var(--fill)); }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .4s, transform .7s var(--ease), filter .3s; }
.tile img.ok { opacity: 1; }
.card:hover .tile img { transform: scale(1.035); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(19, 18, 18, .05); pointer-events: none; }
.cap { padding: 12px 10px 14px; display: grid; gap: 3px; }
.cap h3 { font-size: var(--fs-s); font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cap p { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--ink-3); min-width: 0; }
.cap p i { width: 6px; height: 6px; border-radius: 50%; background: var(--hue); flex: none; }
.cap p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hue-site { --hue: var(--c-site); }
.hue-technique { --hue: var(--c-technique); }
.hue-image { --hue: var(--c-image); }
.hue-note { --hue: var(--c-note); }
.wall.s { gap: 12px; }
.wall.s .col { gap: 12px; }
.wall.s .card { padding: 4px 4px 0; border-radius: 12px; }
.wall.s .tile { border-radius: 8px; }
.wall.s .cap { padding: 8px 8px 10px; }
.wall.s .cap p { display: none; }
/* 手法、调研结论的封面是借来的图，左下角标一下类型 */
.badge { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px; border-radius: var(--r-pill); max-width: calc(100% - 20px);
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); font-size: var(--fs-xs); font-weight: 500; }
.badge em { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.badge .i { width: 11px; height: 11px; stroke-width: 2; }
.noshot { display: grid; align-content: center; justify-items: center; gap: 4px; aspect-ratio: 16 / 10; padding: 16px; text-align: center;
  background: radial-gradient(140% 120% at 20% 0%, color-mix(in srgb, var(--hue) 14%, #fff), #F3F4F7 70%); }
.noshot b { font-size: var(--fs-m); font-weight: 500; overflow-wrap: anywhere; }
.noshot small { font-size: var(--fs-xs); color: var(--ink-3); }

.quick { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s var(--ease); z-index: 2; }
.card:hover .quick, .card:focus-within .quick, .card.liked .quick, .card.rejected .quick { opacity: 1; transform: none; }
.qbtn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 2px 8px rgba(19, 18, 18, .12); transition: transform .18s var(--ease), background .15s, color .15s; }
.qbtn:hover { transform: scale(1.1); background: #fff; }
.qbtn.like:hover { color: var(--like); }
.qbtn .i { width: 16px; height: 16px; }
.card.liked .qbtn.like { background: var(--like); color: #fff; }
.card.liked .qbtn.like .i { fill: currentColor; animation: pop .4s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.card.liked:not(:hover) .qbtn.no, .card.rejected:not(:hover) .qbtn.like { display: none; }
.card.rejected .qbtn.no { background: var(--ink); color: #fff; }
.card.rejected { background: rgba(255, 255, 255, .5); }
.card.rejected .tile img.ok { filter: grayscale(1); opacity: .4; }
.card.rejected .cap { opacity: .55; }
.card.rejected .cap h3 { text-decoration: line-through; text-decoration-color: var(--ink-3); }

/* ---------- 小浮层 ---------- */
.pop { position: fixed; z-index: 60; min-width: 240px; max-width: 460px; padding: 16px; border-radius: var(--r-m); background: #fff; box-shadow: var(--pop); animation: popin .2s var(--ease) both; transform-origin: top center; }
@keyframes popin { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.pop h3 { font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: 12px; }
.pop .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pop .row { display: flex; gap: 8px; margin-top: 12px; }
.pop input[type="text"] { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border-radius: var(--r-s); border: 0; background: var(--fill); outline: 0; }
.pop input[type="text"]:focus { box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.pop .done { height: 36px; padding: 0 16px; border-radius: var(--r-s); background: var(--ink); color: #fff; font-weight: 500; }
.menu { display: grid; gap: 2px; min-width: 180px; margin: -6px; }
.menu button { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: var(--r-s); text-align: left; color: var(--ink-2); }
.menu button:hover { background: var(--fill); color: var(--ink); }
.menu button[aria-checked="true"] { color: var(--ink); font-weight: 500; }
.menu button .i { margin-left: auto; width: 16px; height: 16px; }

/* ---------- 点开一条：左边看图，右边说明和评价 ---------- */
.detail { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); background: var(--bg); animation: fade .22s both; }
@keyframes fade { from { opacity: 0; } }
.stage-wrap { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #EEF0F3; }
.stage { position: relative; flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; padding: 48px 80px; }
.stage img.big, .stage video.big { max-width: 100%; max-height: calc(100vh - 96px - var(--foot, 0px)); border-radius: var(--r-m); box-shadow: 0 2px 6px rgba(19, 18, 18, .05), 0 24px 70px rgba(19, 18, 18, .14); cursor: zoom-in; animation: zoomin .4s var(--ease) both; background: #fff; view-transition-name: hero; }
.detail.vt img.big, .detail.vt .panel, .detail.vt { animation: none; }
.detail.to-next img.big, .detail.to-next .brief { animation: from-right .4s var(--ease) both; }
.detail.to-prev img.big, .detail.to-prev .brief { animation: from-left .4s var(--ease) both; }
.detail.to-next, .detail.to-prev, .detail.to-next .panel, .detail.to-prev .panel { animation: none; }
.detail.to-next .panel > *, .detail.to-prev .panel > * { animation: fade .3s both; }
@keyframes from-right { from { opacity: 0; transform: translateX(36px); } }
@keyframes from-left { from { opacity: 0; transform: translateX(-36px); } }
@keyframes zoomin { from { opacity: 0; transform: scale(.97); } }
.stage.zoom { place-items: start center; }
.stage.zoom img.big { max-height: none; cursor: zoom-out; }
.s-nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .15s, transform .18s var(--ease); z-index: 3; }
.s-nav:hover { background: #fff; transform: scale(1.06); box-shadow: 0 6px 18px rgba(19, 18, 18, .1); }
.s-nav:active { transform: scale(.96); }
.s-nav.prev { left: 20px; }
.s-nav.next { right: 20px; }
.s-back { position: absolute; left: 20px; top: 20px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px 0 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-weight: 500; transition: background .15s; }
.s-back:hover { background: #fff; }
.s-count { position: absolute; right: 24px; top: 28px; z-index: 3; color: var(--ink-3); font-size: var(--fs-xs); }
.s-foot { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 8px 20px 16px; flex: none; color: var(--ink-2); }
.film { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding: 3px; }
.film button { width: 60px; height: 44px; border-radius: var(--r-s); overflow: hidden; opacity: .5; flex: none; transition: opacity .15s; background: #fff; }
.film button:hover { opacity: .85; }
.film button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.film img { width: 100%; height: 100%; object-fit: cover; }
.seen b { color: var(--ink); }
.ghost { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-s); background: #fff; color: var(--ink); font-weight: 500; transition: background .15s, color .15s; }
.ghost:hover { background: var(--ink); color: #fff; }
.ghost .i { width: 14px; height: 14px; }

/* 调研结论：先看图和三句话，全文收着 */
/* 这里不用网格排，用普通的块：网格会按里面最宽的一行（全文顶上那排不换行的目录按钮）来定宽，把整个左侧撑出横向滚动 */
.stage.doc-stage { display: block; padding: 0; background: var(--bg); }
.brief { width: min(860px, 100%); margin: 0 auto; padding: 96px 48px 140px; animation: rise .5s var(--ease) both; }
.brief .kicker { color: var(--ink-3); margin-bottom: 14px; }
.brief h1 { font-size: var(--fs-xl); line-height: 1.25; font-weight: 500; letter-spacing: -.015em; color: #080808; text-wrap: balance; }
.brief .lede { margin-top: 20px; font-size: var(--fs-l); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.brief .lede q { quotes: none; color: var(--ink); }
.brief .lede .val { font-weight: 500; color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 8px; margin-top: 40px; }
.gallery button { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-s); overflow: hidden; background: var(--fill); }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; border-radius: var(--r-m); aspect-ratio: auto; }
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n1 button:first-child { aspect-ratio: 16 / 9; }
.gallery.n2 button:nth-child(2), .gallery.n3 button:nth-child(n+2) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery button span { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 2px 8px; border-radius: var(--r-xs); background: rgba(255, 255, 255, .92); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s var(--ease); }
.gallery button:hover span { opacity: 1; transform: none; }
/* 三段要点：左边小标题，右边一行一个要点 */
.b-sec { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 0 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.gallery + .b-sec, .lede + .b-sec { margin-top: 48px; }
.b-sec h3 { display: flex; align-items: baseline; gap: 10px; font-size: var(--fs-m); font-weight: 500; position: sticky; top: 24px; align-self: start; }
.b-sec h3 em { font-style: normal; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-3); }
.b-sec .rich { gap: 14px; font-size: var(--fs-m); color: var(--ink); }
.b-sec .rich li { padding-left: 20px; line-height: 1.75; }
.b-sec .rich li::before { left: 2px; top: .8em; width: 6px; height: 6px; background: var(--ink); }
.b-sec.avoid .rich li::before { width: 10px; height: 2px; border-radius: 1px; top: .86em; left: 0; background: var(--like); }
.b-sec .rich .lead { display: inline-block; }
.b-sec .rich q { padding: 3px 12px; margin: 3px 6px 3px 0; border-radius: 8px; }
.near { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.near button { aspect-ratio: 4 / 3; border-radius: var(--r-s); overflow: hidden; background: var(--fill); transition: transform .25s var(--ease), box-shadow .25s; }
.near button:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.near img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.fulltext { margin-top: 8px; border-top: 1px solid var(--line); }
.fulltext > summary { display: flex; align-items: center; gap: 10px; height: 76px; cursor: pointer; font-size: var(--fs-m); font-weight: 500; list-style: none; transition: color .15s; }
.fulltext > summary::-webkit-details-marker { display: none; }
.fulltext > summary .i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.fulltext > summary:hover .i { transform: translateX(3px); }
.fulltext[open] > summary .i { transform: rotate(90deg); }
.fulltext > summary small { margin-left: auto; color: var(--ink-3); font-weight: 400; font-size: var(--fs-xs); font-family: var(--font-mono); }
.toc { position: sticky; top: 0; z-index: 2; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; margin-bottom: 8px; background: rgba(247, 248, 250, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.toc:empty { display: none; }
.toc::-webkit-scrollbar { display: none; }
.toc button { flex: none; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--card); color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.toc button:hover { background: var(--ink); color: #fff; }
.doc { padding: 8px 0 40px; font-size: var(--fs-m); line-height: 1.9; color: #3A3A40; animation: rise .4s var(--ease) both; }
.doc > * { max-width: 720px; }
.doc > .tbl, .doc > pre { max-width: none; }
.doc h1 { font-size: var(--fs-l); font-weight: 500; color: var(--ink); margin: 8px 0 16px; }
.doc h2 { font-size: var(--fs-l); font-weight: 500; color: var(--ink); margin: 56px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 60px; max-width: none; }
.doc h3 { font-size: var(--fs-m); font-weight: 500; color: var(--ink); margin: 36px 0 10px; }
.doc h4 { font-size: var(--fs-s); font-weight: 500; color: var(--ink); margin: 24px 0 6px; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--ink-3); }
.doc ul:has(> .todo) { list-style: none; padding-left: 0; display: grid; gap: 4px; }
.doc .todo { display: flex; gap: 12px; align-items: baseline; margin: 0; padding: 8px 12px; border-radius: var(--r-s); background: var(--card); }
.doc .todo i { flex: none; width: 14px; height: 14px; border-radius: 4px; border: 1.500px solid var(--line-2); transform: translateY(2px); }
.doc b { color: var(--ink); }
.doc a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { text-decoration-color: var(--ink); }
.doc code { font-family: var(--font-mono); font-size: .86em; background: var(--fill); padding: 1px 6px; border-radius: var(--r-xs); color: var(--ink); overflow-wrap: anywhere; }
.doc pre { background: var(--ink); color: #F3F4F6; padding: 16px 18px; border-radius: var(--r-s); overflow: auto; font-size: var(--fs-s); line-height: 1.6; }
.doc pre code { background: none; padding: 0; color: inherit; }
.doc blockquote { margin: 0 0 16px; padding: 12px 18px; border-radius: var(--r-s); background: var(--card); color: var(--ink-2); }
.doc .tbl { overflow-x: auto; margin: 4px 0 24px; border-radius: var(--r-m); background: var(--card); border: 1px solid #fff; }
.doc table { border-collapse: collapse; width: 100%; font-size: var(--fs-s); line-height: 1.7; }
.doc th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: var(--fs-xs); white-space: nowrap; border-bottom: 1px solid var(--line); }
.doc th, .doc td { padding: 12px 16px; vertical-align: top; }
.doc td { border-bottom: 1px solid var(--line); min-width: 96px; }
.doc td:first-child { color: var(--ink); font-weight: 500; }
.doc tr:last-child td { border-bottom: 0; }
.doc tbody tr { transition: background .15s; }
.doc tbody tr:hover { background: var(--bg); }
.doc img { max-width: 100%; border-radius: var(--r-s); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc-loading { padding: 24px 0; color: var(--ink-3); }

.panel { min-height: 0; overflow-y: auto; background: var(--card); padding: 20px 28px 48px; animation: slide .35s var(--ease) both; }
@keyframes slide { from { transform: translateX(28px); opacity: 0; } }
.panel-top { display: flex; align-items: center; gap: 4px; margin-bottom: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px; border-radius: var(--r-pill); background: var(--fill); font-size: var(--fs-xs); font-weight: 500; }
.pill em { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.pill .i { width: 11px; height: 11px; stroke-width: 2; }
.icon-btn { width: 36px; height: 36px; border-radius: var(--r-s); display: grid; place-items: center; color: var(--ink-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--fill); color: var(--ink); }
.panel-top .icon-btn:first-of-type { margin-left: auto; }
.panel h2 { font-size: var(--fs-l); line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; }
.by { margin-top: 4px; color: var(--ink-3); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-s); background: var(--fill); color: var(--ink); max-width: 100%; transition: background .15s, color .15s; }
.link-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn:hover { background: var(--fill-2); }
.link-btn.main { background: var(--ink); color: #fff; font-weight: 500; }
.link-btn.main:hover { background: #2B2A2A; }
.link-btn .i { width: 15px; height: 15px; }
.dots { display: flex; gap: 6px; margin-top: 16px; }
.dots span { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(19, 18, 18, .1); }
.dots span:hover::after { content: attr(data-hex); position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -6px); padding: 2px 8px; border-radius: var(--r-xs); background: var(--ink); color: #fff; font: var(--fs-xs) var(--font-mono); white-space: nowrap; z-index: 3; }

.taste { margin-top: 24px; }
.taste-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tbtn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: var(--r-s); background: var(--fill); color: var(--ink-2); font-weight: 500; transition: background .15s, color .15s, transform .15s var(--ease); }
.tbtn:hover { color: var(--ink); background: var(--fill-2); }
.tbtn:active { transform: scale(.98); }
.tbtn.like[aria-pressed="true"] { background: var(--like); color: #fff; }
.tbtn.like[aria-pressed="true"] .i { fill: currentColor; animation: pop .4s var(--ease); }
.tbtn.no[aria-pressed="true"] { background: var(--ink); color: #fff; }
.taste .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.taste .chip { height: 28px; padding: 0 11px; font-size: var(--fs-xs); }
.reason-input, .tag-add { height: 28px; width: 88px; padding: 0 11px; border: 0; border-radius: var(--r-pill); background: var(--fill); outline: 0; font-size: var(--fs-xs); }
.reason-input:focus, .tag-add:focus, .field-box:focus { box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.tag-add:focus { width: 132px; }
.field-box { display: block; width: 100%; margin-top: 10px; padding: 10px 12px; border: 0; border-radius: var(--r-s); background: var(--fill); outline: 0; resize: vertical; min-height: 64px; line-height: 1.6; }
.field-box::placeholder, .reason-input::placeholder, .tag-add::placeholder { color: var(--ink-3); }
.saved { margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-3); min-height: 19px; }
.saved.flash { color: var(--c-image); }

.sec { margin-top: 28px; }
.sec > h3 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: var(--fs-xs); color: var(--ink-3); }
.sec > h3 small { margin-left: auto; font-size: var(--fs-xs); }
.tagbox { display: flex; flex-wrap: wrap; gap: 6px; }
.tagbox .chip { height: 28px; padding: 0 5px 0 11px; gap: 2px; font-size: var(--fs-xs); }
.tagbox .chip .go:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tagbox .chip .rm { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.tagbox .chip .rm:hover { background: var(--ink); color: #fff; }
.tagbox .chip .rm .i { width: 10px; height: 10px; stroke-width: 2.4; }
/* 文字的排法：一句一行，句首关键词加粗，原话高亮，数值用等宽字 */
.rich { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rich li { position: relative; padding-left: 16px; line-height: 1.7; }
.rich li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.rich strong, .doc strong { font-weight: 500; color: var(--ink); background: linear-gradient(transparent 62%, #FFE9A8 62%); }
.rich .lead { font-weight: 500; color: var(--ink); margin-right: 8px; }
.rich .lead::after { content: ""; }
.rich q, .doc q { quotes: none; display: inline-block; margin: 2px 4px 2px 0; padding: 1px 9px; border-radius: 6px; background: #FFF3CF; color: #5C4300; line-height: 1.7; }
.rich .val { font-family: var(--font-mono); font-size: .92em; font-weight: 500; color: var(--ink); }
.rich code, .rich .hex { font-family: var(--font-mono); font-size: .86em; padding: 1px 6px; border-radius: var(--r-xs); background: var(--fill); color: var(--ink); white-space: nowrap; }
.rich .hex i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(19, 18, 18, .12); }
/* AI 写的说明：收起时只露第一句，点一下展开成一行一个要点 */
.say { display: grid; gap: 2px; margin: 0 -12px; }
.say-row { position: relative; padding: 12px 40px 12px 12px; border-radius: var(--r-s); transition: background .15s; }
.say-row.more { cursor: pointer; }
.say-row:hover { background: var(--bg); }
.say-row h4 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: var(--fs-s); font-weight: 500; }
.say-row h4 small { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 400; }
.say-row.more h4::after { content: ""; width: 6px; height: 6px; margin-left: -2px; border-right: 1.500px solid var(--ink-3); border-bottom: 1.500px solid var(--ink-3); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.say-row.more.open h4::after { transform: translateY(1px) rotate(-135deg); }
.say-row .view { color: var(--ink-2); }
.say-row .none { color: var(--ink-3); }
.say-row:not(.open) .rich li:not(:first-child) { display: none; }
.say-row:not(.open) .rich li { padding-left: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.say-row:not(.open) .rich li::before { display: none; }
.say-row.open .rich li { animation: rise .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); color: var(--ink); }
.say-row .text { white-space: pre-wrap; overflow-wrap: anywhere; outline: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--ink); border-radius: 6px; padding: 8px 10px; margin: 0 -10px; color: var(--ink); line-height: 1.7; }
.say-row .edit { position: absolute; top: 8px; right: 6px; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-3); opacity: 0; transition: opacity .15s; }
.say-row:hover .edit { opacity: 1; }
.say-row .edit:hover { background: var(--fill-2); color: var(--ink); }
.say-row .edit .i { width: 14px; height: 14px; }
.rel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rel button { border-radius: var(--r-s); overflow: hidden; background: var(--fill); aspect-ratio: 1; transition: transform .2s var(--ease), box-shadow .2s; }
.rel button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(19, 18, 18, .12); }
.rel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rel .txt { display: grid; align-content: end; height: 100%; padding: 10px; text-align: left; font-size: var(--fs-xs); line-height: 1.4; color: var(--ink-2); }
.whys { display: grid; gap: 6px; }
.whys details { padding: 10px 12px; border-radius: var(--r-s); background: var(--bg); }
.whys summary { cursor: pointer; font-weight: 500; }
.whys p { margin-top: 6px; color: var(--ink-2); }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.meta dt { color: var(--ink-3); white-space: nowrap; }
.meta dd { color: var(--ink); overflow-wrap: anywhere; }
.meta dd button { text-align: left; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.meta dd button:hover { text-decoration-color: var(--ink); }
.stars { display: inline-flex; gap: 4px; vertical-align: middle; }
.stars i { width: 7px; height: 7px; border-radius: 50%; background: var(--fill-2); }
.stars i.on { background: var(--ink); }
.forai { margin-top: 28px; padding: 14px 16px; border-radius: var(--r-s); background: var(--bg); font-size: var(--fs-xs); color: var(--ink-3); }
.forai p { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: var(--fs-s); }
.forai .ai-mark { width: 24px; height: 24px; }
.forai .ai-mark .i { width: 13px; height: 13px; }
.forai code { display: block; margin: 8px 0 12px; font-family: var(--font-mono); color: var(--ink-2); overflow-wrap: anywhere; }
.forai-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.raw { margin: 12px 0 0; padding: 14px; max-height: 340px; overflow: auto; border-radius: var(--r-s); background: var(--ink); color: #E9E9EE; font: var(--fs-xs)/1.65 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; animation: rise .3s var(--ease) both; }

/* ---------- 加素材 ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(247, 248, 250, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: fade .2s both; }
.sheet-card { width: min(640px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 32px; border-radius: 20px; background: #fff; box-shadow: var(--pop); animation: up .35s var(--ease) both; }
@keyframes up { from { transform: translateY(20px) scale(.985); opacity: 0; } }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.sheet-head h2 { font-size: var(--fs-l); font-weight: 500; line-height: 1.3; }
.sheet-head p { color: var(--ink-2); margin-top: 4px; }
.sheet-head .icon-btn { margin-left: auto; flex: none; }
.drop { display: grid; place-items: center; gap: 4px; padding: 36px 20px; border-radius: var(--r-m); text-align: center; cursor: pointer; color: var(--ink-2); background: var(--bg); border: 1px dashed var(--line-2); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--ink); background: #fff; }
.drop .glyph { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; color: #fff; background: var(--ink); }
.drop b { font-size: var(--fs-m); color: var(--ink); }
.field { display: flex; gap: 8px; margin-top: 12px; }
.field input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-s); background: var(--fill); outline: 0; }
.field input:focus { box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.field input::placeholder { color: var(--ink-3); }
.field button { height: 44px; padding: 0 18px; border-radius: var(--r-s); background: var(--ink); color: #fff; font-weight: 500; flex: none; }
.field button:hover { background: #2B2A2A; }
.sheet h3 { margin: 24px 0 10px; font-size: var(--fs-xs); color: var(--ink-3); }
.inbox { display: grid; gap: 8px; }
.inbox-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-s); background: var(--bg); }
.inbox-item .th { width: 52px; height: 52px; border-radius: 6px; flex: none; background: var(--fill-2); display: grid; place-items: center; color: var(--ink-2); overflow: hidden; }
.inbox-item .th img, .inbox-item .th video { width: 100%; height: 100%; object-fit: cover; }
.inbox-item .tx { min-width: 0; flex: 1; display: grid; }
.inbox-item .tx b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item .tx span { font-size: var(--fs-xs); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.howto { margin-top: 20px; padding: 18px 20px; border-radius: var(--r-m); background: var(--bg); }
.howto p { color: var(--ink-2); }
.howto code { display: block; margin: 10px 0 12px; padding: 10px 12px; border-radius: var(--r-s); background: #fff; font-family: var(--font); overflow-wrap: anywhere; }

.dropzone { position: fixed; inset: 12px; z-index: 80; display: grid; place-items: center; border-radius: 24px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 2px var(--ink); pointer-events: none; animation: fade .15s both; }
.dropzone div { display: grid; justify-items: center; gap: 4px; }
.dropzone .i { width: 40px; height: 40px; margin-bottom: 10px; }
.dropzone b { font-size: var(--fs-l); }
.dropzone span { color: var(--ink-2); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 16px); padding: 10px 18px; border-radius: var(--r-pill); background: var(--ink); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s, transform .28s var(--ease); max-width: min(680px, calc(100vw - 48px)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #C62828; }
.skeleton { height: 240px; border-radius: var(--r-m); background: linear-gradient(100deg, #fff 30%, #F1F2F5 50%, #fff 70%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 细节 ----------
   排版和配色不动，只磨边缘、排字和几处顺手的小东西。
   边缘：白卡、缩略图、浮着的圆按钮加一圈几乎看不见的细线；黑按钮顶上一线高光（不加外投影，白底上会糊出一圈灰边）。
   排字：标题按词断行（脚本切好词，加 .ph）；选中文字用淡紫；数字用等宽。
   顺手：按钮的说明换成自己的小提示，快捷键显示成键帽；详情右栏的顶栏吸住；大图左下角一行快捷键；色点点一下复制色值。 */
::selection { background: #E3D9FF; }
html { -webkit-tap-highlight-color: transparent; }
.head h1, .panel h2, .sheet-head h2, .cap h3, .tcard b, .sec-h h2 { text-wrap: balance; text-spacing-trim: trim-start; }
.tcard .desc, .say-row .view, .howto p, .sheet-head p { text-wrap: pretty; }
.ph { word-break: keep-all; overflow-wrap: anywhere; }
/* 边缘 */
.card, .tcard, .arrow { box-shadow: var(--hair); }
.nav-item[aria-current="true"] { box-shadow: var(--hair), 0 1px 2px rgba(19, 18, 18, .04); }
.search { box-shadow: 0 0 0 1px rgba(19, 18, 18, .03), 0 1px 2px rgba(19, 18, 18, .03); }
/* 搜索框里的「交给 AI」：星标一直是淡紫。以前搜索框一聚焦，里面所有图标都被染成黑的，这颗在黑底上就看不见了。悬停时星标转一下 */
.search .ask .i, .search:focus-within .ask .i { color: #C9B8FF; transition: transform .35s var(--ease), color .2s; }
.ask:hover .i { transform: rotate(90deg) scale(1.12); color: #E3D9FF; }
.search kbd, .s-keys kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; font: 11px var(--font-mono); color: var(--ink-2); background: #fff; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; }
.btn-add, .ai-copy, .ask, .link-btn.main, .field button, .pop .done, .empty button, .tbtn.no[aria-pressed="true"] { box-shadow: var(--key); }
.tbtn.like[aria-pressed="true"] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 1px 2px rgba(240, 56, 78, .3); }
.s-back, .s-nav { box-shadow: var(--hair), 0 2px 8px rgba(19, 18, 18, .05); }
.tcard-pics, .near button, .rel button, .film button { position: relative; }
.tcard-pics::after, .gallery button::after, .near button::after, .rel button::after, .film button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(19, 18, 18, .06); pointer-events: none; }
.stage img.big, .stage video.big { outline: 1px solid rgba(19, 18, 18, .06); outline-offset: -1px; }
.panel, .stage.doc-stage { scrollbar-gutter: stable; }
/* 详情：右栏顶上那一行吸住，往下滚时底下出一条细线 */
.panel-top { position: sticky; top: -28px; z-index: 5; margin: -20px -28px 8px; padding: 20px 28px 12px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.panel-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: 0; }
@supports (animation-timeline: scroll()) {
  .panel-top::after { animation: hairline linear both; animation-timeline: scroll(nearest block); animation-range: 0 32px; }
}
@keyframes hairline { to { opacity: 1; } }
.s-count { font-family: var(--font-mono); letter-spacing: -.02em; }
/* 大图左下角：一行快捷键 */
.s-keys { position: absolute; left: 20px; bottom: 18px; z-index: 3; display: flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--ink-3); pointer-events: none; }
.s-keys span { margin: 0 10px 0 3px; }
.stage-wrap:has(.doc-stage) .s-keys, .stage-wrap:has(.s-foot) .s-keys { display: none; }
/* 色点：点一下复制色值 */
.dots span { cursor: copy; transition: transform .18s var(--ease); }
.dots span:hover { transform: scale(1.18); }
.dots span:active { transform: scale(.94); }
/* 筛选跟着内容走：手法、网站先摆它自己的分类 */
/* 这一排永远只有一行：最多六个词，多的收进「更多」；窗口太窄放不下时横着滑，不换行 */
.cat-row { display: flex; flex-wrap: nowrap; justify-content: safe center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-row .chip { flex: none; }
.chip.more { gap: 3px; padding-right: 9px; }
.chip.more .i { width: 14px; height: 14px; }
.menu button .n { margin-left: auto; padding-left: 16px; font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cat-row:not(:empty) { margin-bottom: 12px; }
.cat-row .chip { height: 34px; padding: 0 14px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(19, 18, 18, .03); }
.cat-row .chip:hover { background: #fff; }
.cat-row .chip[aria-pressed="true"] { background: var(--ink); box-shadow: var(--key); }
/* 「筛选」按钮和它的浮层：别的筛选项都收在这里，点一下就生效 */
.facet-row:empty { display: none; }
.tool b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: var(--fs-xs); line-height: 18px; text-align: center; font-weight: 500; }
.tool[aria-expanded="true"] { background: var(--card); color: var(--ink); }
.pop:has(.filters) { width: 500px; max-width: calc(100vw - 24px); max-height: min(620px, calc(100vh - 150px)); overflow-y: auto; }
.filters h3 { margin: 18px 0 10px; }
.filters .chip.more { background: none; color: var(--ink-3); padding: 0 6px; }
.filters .chip.more:hover { color: var(--ink); }
.filters h3:first-child { margin-top: 0; }
.filters .swatches { margin: 0; padding: 2px; border: 0; height: auto; gap: 10px; flex-wrap: wrap; }
.filters .swatch { width: 20px; height: 20px; }
.filters .none { color: var(--ink-3); }
/* 小提示 */
.tip { position: fixed; left: 0; top: 0; z-index: 95; display: flex; align-items: center; gap: 8px; width: max-content; max-width: 300px; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: var(--fs-xs); line-height: 1.5; box-shadow: 0 8px 22px rgba(19, 18, 18, .2); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .2s var(--ease); }
.tip.show { opacity: 1; transform: none; }
.tip kbd { flex: none; min-width: 18px; padding: 0 5px; border-radius: 4px; background: rgba(255, 255, 255, .16); font: 11px/18px var(--font-mono); text-align: center; }
@media (max-width: 1180px) { .s-keys { display: none; } }
@media (hover: none) { .tip { display: none; } }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
::view-transition-group(hero) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(hero), ::view-transition-new(hero) { animation-duration: .42s; height: 100%; object-fit: cover; object-position: top; border-radius: 12px; }

@media (max-width: 1180px) {
  :root { --side-w: 204px; --panel-w: 380px; }
  .wrap { padding: 0 28px 80px; }
  .stage { padding: 40px 64px; }
}
@media (max-width: 860px) {
  /* 窄窗口：侧栏变成顶上两行。第一行名字 + 产品介绍、加素材；第二行类型和评价，排不下就横着滑 */
  body { overflow: auto; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px 4px; overflow: visible; }
  .side::after { content: ""; order: 1; flex-basis: 100%; }
  .side .nav-h, #nav-topic, #nav-project, .side-hint { display: none; }
  .brand { padding: 0 4px 0 0; min-width: 0; }
  .brand b { overflow: hidden; text-overflow: ellipsis; }
  .nav { order: 2; display: flex; flex-wrap: nowrap; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-item { width: auto; flex: none; height: 32px; }
  .nav-item .n { margin-left: 2px; }
  .side-foot { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; padding: 0; }
  .about { height: 36px; margin: 0; padding: 0 12px; }
  .about .go { display: none; }
  .btn-add { width: auto; height: 36px; padding: 0 14px; }
  .main { overflow: visible; overflow-x: clip; } /* 搜索条背后那层毛玻璃左右各伸出很远，不裁掉会把整页撑宽 */
  .search { min-width: 0; margin-right: 4px; } /* 不设 min-width: 0，输入框的默认宽度会把搜索框撑出屏幕 */
  .tool { flex: none; padding: 0 10px; }
  .wrap { padding: 0 16px 60px; }
  .head { padding-top: 40px; }
  .sec-h .arrows { display: none; }
  .aibar { grid-template-columns: auto minmax(0, 1fr); gap: 12px 12px; }
  .ai-l { white-space: normal; }
  .ai-eg { grid-column: 1 / -1; justify-content: flex-start; height: auto; }
  .ai-copy { grid-column: 1 / -1; justify-content: center; }
  .tool span { display: none; }
  .detail { grid-template-columns: 1fr; grid-template-rows: 48vh 1fr; }
  .stage { padding: 56px 16px 16px; }
  .stage img.big { max-height: calc(48vh - 80px); }
  .s-nav { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .brief { padding: 72px 20px 60px; }
  .b-sec { grid-template-columns: 1fr; gap: 12px; }
  .b-sec h3 { position: static; }
}
/* ---------- 展示版（公开、只读）：去掉所有能改东西的入口，评价只当文字显示 ---------- */
.show-note { display: none; }
[data-mode="show"] .show-note { display: block; padding: 10px 10px 0; font-size: var(--fs-xs); color: var(--ink-3); text-align: center; }
[data-mode="show"] :is(.btn-add, .side-hint, .say-row .edit, .tag-add, .chip .rm) { display: none; }
[data-mode="show"] .quick { pointer-events: none; }
[data-mode="show"] :is(.card:not(.liked):not(.rejected) .quick, .qbtn[aria-pressed="false"]) { display: none; }
.taste-ro { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 12px 14px; border-radius: var(--r-s); background: var(--fill); }
.taste-ro .i { width: 16px; height: 16px; }
.taste-ro.liked .i { color: var(--like); }
.taste-ro span { color: var(--ink-2); }
.taste-note-ro { margin-top: 8px; padding: 0 2px; color: var(--ink-2); white-space: pre-wrap; }

@media (max-width: 560px) {
  /* 手机宽：产品介绍只留图标，名字和两个按钮排进一行；搜索框让出位置给右边的工具 */
  .about { width: 36px; padding: 0; justify-content: center; }
  .about span { display: none; }
  .bar { gap: 0; }
  .search { height: 48px; padding: 0 16px; gap: 8px; }
  .search kbd { display: none; }
  .tool { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 滚动条：全站一种 ----------
   细细一条圆角的灰，平时不显示，鼠标移到那块区域上才出来；移到滚动条上再深一点、粗一点。
   深色的代码块里用浅色。横着滑的那几排（专题、目录、小图）不显示滚动条。 */
::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 10px; background-clip: content-box; background-color: transparent; }
:hover::-webkit-scrollbar-thumb { background-color: rgba(19, 18, 18, .16); }
::-webkit-scrollbar-thumb:hover { border-width: 2px; background-color: rgba(19, 18, 18, .32); }
::-webkit-scrollbar-thumb:active { border-width: 2px; background-color: rgba(19, 18, 18, .44); }
@supports not selector(::-webkit-scrollbar) { /* 不认上面那套写法的浏览器 */
  * { scrollbar-width: thin; scrollbar-color: transparent transparent; }
  *:hover { scrollbar-color: rgba(19, 18, 18, .2) transparent; }
}
.raw:hover::-webkit-scrollbar-thumb, .doc pre:hover::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .28); }
.raw::-webkit-scrollbar-thumb:hover, .doc pre::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .5); }
.film { scrollbar-width: none; }
.film::-webkit-scrollbar { display: none; }
