/* bias.beauty /clip-analysis (风格测试). Builds on home.css + face-analysis.css. Each style carries its own colour (--c). */

/* ---------- hero ---------- */
.st-hero { overflow: hidden; }

.st-ticker { display: flex; align-items: baseline; gap: 10px; margin: -6px 0 24px; font-size: 15px; color: var(--muted); height: 40px; }
.st-ticker b { position: relative; display: inline-block; font: 400 30px/40px var(--brand); color: var(--c, var(--you)); transition: color .4s; }
.st-ticker b.out { animation: tick-out .32s var(--ease) forwards; }
.st-ticker b.in { animation: tick-in .42s var(--ease) both; }
@keyframes tick-out { to { opacity: 0; transform: translateY(-14px); filter: blur(4px); } }
@keyframes tick-in { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

/* demo radar inside the empty drop zone */
.st-drop .drop-empty { gap: 4px; padding-top: 18px; }
.st-demo { width: min(270px, 70vw); height: auto; margin-bottom: 6px; overflow: visible; color: var(--ink); }
.st-demo .web, .st-radar .web { fill: none; stroke: var(--line); stroke-width: 1; }
.st-demo .spoke, .st-radar .spoke { stroke: var(--line); stroke-width: 1; }
.st-demo .shape { fill: color-mix(in srgb, var(--c) 22%, transparent); stroke: var(--c); stroke-width: 2; stroke-linejoin: round; transition: fill .6s, stroke .6s; }
.st-demo .pt { fill: var(--c); transition: fill .6s; }
.st-demo text { font: 600 12.5px var(--sans); fill: var(--muted); text-anchor: middle; dominant-baseline: middle; transition: fill .4s; }
.st-demo text.top { fill: var(--c); font-weight: 700; }

/* chosen photo + scanning */
.st-photo { border-radius: 0; }
.st-pic { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.st-photo.develop .st-pic { animation: develop 1s var(--ease) both; }
.st-photo.scanning .st-pic { filter: saturate(.55) brightness(.85); transition: filter .6s; }
.st-scan-tags { position: absolute; inset: 0; pointer-events: none; line-height: 1.4; }
.st-scan-tags span { position: absolute; font: 600 12px var(--sans); color: #fff; padding: 4px 10px; border-radius: 999px; background: rgba(20, 20, 31, .62); border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 0 16px -4px var(--c); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: tagpop .5s var(--ease) both; white-space: nowrap; }
.st-scan-tags span.gone { animation: tagout .4s var(--ease) forwards; }
@keyframes tagpop { from { opacity: 0; transform: translateY(8px) scale(.8); } }
@keyframes tagout { to { opacity: 0; transform: translateY(-8px) scale(.9); } }

/* ---------- result ---------- */
.st-result { scroll-margin-top: 64px; }
.st-board { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: start; }
@media (max-width: 920px) { .st-board { grid-template-columns: 1fr; gap: 32px; } }
.st-card-wrap { position: sticky; top: 84px; perspective: 1400px; }
@media (max-width: 920px) { .st-card-wrap { position: static; max-width: 400px; margin: 0 auto; width: 100%; } }

.st-card { --c: #7215fd; position: relative; display: flex; flex-direction: column; aspect-ratio: 3 / 4.25; border-radius: 22px; overflow: hidden; isolation: isolate; color: #fff;
    background: linear-gradient(160deg, color-mix(in srgb, var(--c) 92%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 55%, #0b0b14) 100%);
    box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--c) 80%, transparent), 0 2px 0 rgba(255, 255, 255, .25) inset; transform-style: preserve-3d; }
.st-card.flip { animation: cardin 1.1s cubic-bezier(.2, .9, .25, 1.05) both; }
@keyframes cardin { from { opacity: 0; transform: rotateY(-100deg) translateY(30px) scale(.9); } 60% { opacity: 1; } to { transform: none; } }
.st-card::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .32) 46%, rgba(255, 255, 255, .06) 54%, transparent 66%); transform: translateX(-120%); animation: sheen 4.5s ease-in-out 1.2s infinite; mix-blend-mode: overlay; }
.st-card-photo { position: relative; flex: 1 1 auto; min-height: 0; margin: 14px 14px 0; border-radius: 14px; overflow: hidden; }
.st-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.st-card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--c) 70%, transparent) 100%); }
.st-card-body { position: relative; z-index: 2; padding: 14px 22px 40px; margin-top: -54px; }
.st-card-kicker { display: inline-block; font: 600 12px var(--sans); padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.st-card-name { display: block; font: 400 clamp(46px, 6vw, 60px)/1.1 var(--brand); margin: 8px 0 4px; letter-spacing: .02em; text-shadow: 0 4px 24px rgba(0, 0, 0, .22); }
.st-card.flip .st-card-name { animation: namein .7s var(--ease) .7s both; }
@keyframes namein { from { opacity: 0; transform: translateY(16px) skewX(-8deg); filter: blur(6px); } }
.st-card-say { margin: 0; font-size: 15px; line-height: 1.55; opacity: .92; }
.st-card-also { margin: 8px 0 0; font-size: 13px; opacity: .8; min-height: 1em; }
.st-card-also i { font-style: normal; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c2, #fff); box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); margin-right: 6px; vertical-align: 1px; }
.st-card-brand { position: absolute; left: 22px; bottom: 14px; z-index: 2; font: 600 11px var(--sans); letter-spacing: .08em; opacity: .7; }
.st-card-actions { justify-content: center; margin-top: 16px; }

.st-main { display: grid; gap: 28px; }
.st-block { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
@media (max-width: 640px) { .st-block { padding: 18px; border-radius: 16px; } }
.st-block h3 { font-size: 21px; }
.st-block > .muted { margin: 4px 0 0; font-size: 14px; }

/* six-style radar */
.st-radar-wrap { display: grid; place-items: center; margin: 10px 0 6px; }
.st-radar { width: min(100%, 400px); height: auto; overflow: visible; }
.st-radar .shape { fill: color-mix(in srgb, var(--c) 18%, transparent); stroke: var(--c); stroke-width: 2.2; stroke-linejoin: round; }
.st-radar .vx { cursor: pointer; }
.st-radar .vx circle { fill: var(--surface); stroke: var(--vc); stroke-width: 2.5; transition: r .25s var(--ease); }
.st-radar .vx text { font: 600 13.5px var(--sans); fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.st-radar .vx text.w { font-size: 11.5px; font-weight: 500; fill: var(--muted); }
.st-radar .vx text.w .n { font: 700 12.5px var(--mono, var(--sans)); fill: var(--ink); }
.st-radar .vx.on text.w .n { fill: var(--vc); }
.st-radar .vx.on circle { fill: var(--vc); }
.st-radar .vx.on text:not(.w) { fill: var(--vc); }
.st-radar .vx:focus { outline: none; }
.st-radar .vx:focus-visible circle { stroke-width: 4; }

.st-styles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.st-styles button { appearance: none; width: 100%; display: grid; grid-template-columns: 14px 5em minmax(0, 1fr) 3.4em 3.6em; align-items: center; gap: 12px; padding: 10px 8px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .2s; }
.st-styles button:hover, .st-styles li.on button { background: color-mix(in srgb, var(--vc) 10%, transparent); }
.st-styles .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--vc); }
.st-styles b { font-size: 16px; }
.st-styles .bar { position: relative; height: 8px; border-radius: 999px; background: var(--tile); overflow: hidden; }
.st-styles .bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); border-radius: inherit; background: var(--vc); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) calc(var(--i) * 90ms); }
.st-styles.in .bar i { transform: scaleX(1); }
.st-styles .num { font: 700 19px/1 var(--mono, var(--sans)); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--ink); }
.st-styles .num small, .st-dims .num small { font: 600 11px var(--sans); margin-left: 2px; color: var(--muted); }
.st-styles li:first-child .num { color: var(--vc); }
.st-styles .word { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
@media (max-width: 420px) {
    .st-styles button { grid-template-columns: 12px 4.4em minmax(0, 1fr) 3em 3.2em; gap: 8px; padding: 10px 4px; }
    .st-styles b { font-size: 15px; }
    .st-styles .num { font-size: 17px; }
}
.st-styles .say { grid-column: 2 / -1; font-size: 14px; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.st-styles li.on .say { max-height: 4em; }

/* six impression dimensions */
.st-dims { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .st-dims { grid-template-columns: 1fr; } }
.st-dims li { padding: 14px 16px; border-radius: 14px; background: var(--tile); }
.st-dims .hd { display: flex; align-items: baseline; gap: 10px; }
.st-dims .hd .num { font: 700 17px/1 var(--mono, var(--sans)); font-variant-numeric: tabular-nums; color: var(--you); }
.st-dims .hd .lv { margin-left: auto; }
.st-dims b { font-size: 16px; }
.st-dims .lv { font-size: 12.5px; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: var(--you-wash); color: var(--you); }
.st-dims .lv.hi { background: var(--you); color: #fff; }
.st-dims .lv.lo { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.st-dims .cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin: 10px 0 8px; }
.st-dims .cells i { height: 7px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 18%, transparent); }
.st-dims .cells i.f { background: var(--you); transform: scaleY(0); transition: transform .35s var(--ease) calc(var(--d) + var(--k) * 45ms); }
.st-dims.in .cells i.f { transform: none; }
.st-dims p { margin: 0; font-size: 13.5px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    .st-styles .bar i, .st-dims .cells i.f { transform: none !important; }
}
