/* v20: existing portfolio, no splash screen. Isolated home/detail enhancements. */
body.v20-home { --v20-ink:#252647; --v20-accent:#6263bd; --v20-soft:#eeedff; }
body.v20-home .hero { background:linear-gradient(115deg,#f9f8fc 12%,#efeffc 68%,#f3f7fc); animation:none; isolation:isolate; }
body.v20-home .hero::before { opacity:.18; animation:none; }
body.v20-home .hero-copy { opacity:1; transform:none; }
body.v20-home .hero h1 { font-size:clamp(48px,4.8vw,70px); line-height:1.17; letter-spacing:-.045em; }
body.v20-home .hero h1 .v20-title-line { display:block; white-space:nowrap; }
body.v20-home .hero h1 em { display:inline; color:var(--v20-accent); font-style:normal; background:none; -webkit-text-fill-color:currentColor; }
body.v20-home .hero-lead { max-width:450px; font-size:15px; line-height:1.9; }
body.v20-home .identity-row { margin-bottom:22px; background:#ffffffb0; color:#555775; }
body.v20-home .hero-ai-action { background:var(--v20-ink); color:#fff; box-shadow:0 8px 22px #555da81c; }
body.v20-home .eyebrow { color:#6263a5; }
.v20-stage-wrap { min-width:0; perspective:1200px; transform-origin:50% 45%; }
body.v20-home .hero-stage { width:100%; right:0; min-width:0; max-width:none; opacity:1; transform:none; background:linear-gradient(145deg,#fff 4%,#efedff 72%,#e7edf9); border-color:#fff; box-shadow:0 22px 55px #53538f20; }
body.v20-home .stage-state > p:not(.slide-kicker) { color:#585973; }
body.v20-home .stage-slide h2 { font-size:clamp(30px,2.65vw,39px); line-height:1.12; letter-spacing:-.04em; }
body.v20-home .stage-default .mini-flow span { background:#ffffffb8; border-color:#c9cae0; color:#444570; }
body.v20-home .hero-stage .stage-glow { background:radial-gradient(circle at var(--mx,70%) var(--my,24%),#fff 0%,transparent 42%); }
.v20-scroll-cue { display:flex; gap:14px; align-items:center; font-size:10px; letter-spacing:.14em; color:#646580; margin-top:23px; }
.v20-scroll-cue i { width:56px; height:2px; background:#d9daeb; position:relative; overflow:hidden; }
.v20-scroll-cue i b { position:absolute; inset:0; background:#6668b5; transform:scaleX(.12); transform-origin:left; }
body.v20-home .project-visual.visual-agent { background:linear-gradient(135deg,#eeedfd,#f8f9fc); }
body.v20-home .project-visual.visual-kb { background:linear-gradient(135deg,#e9edf9,#f4f3fc); }
body.v20-home .cap-card > span { display:inline-grid; place-items:center; width:35px; height:35px; border-radius:10px; background:#efedfa; color:#595a9a; transition:transform .25s ease; }
@media(hover:hover) and (pointer:fine) { body.v20-home .cap-card:has(.tech-chip:hover) > span { transform:scale(1.09); } }

/* Readable process text is always present; only the connecting stroke progresses. */
.detail-grid .v20-flow-section { grid-column:1 / -1; }
.v20-process { margin:22px 0 0; padding:0; list-style:none; }
.v20-process li { display:grid; grid-template-columns:42px minmax(0,1fr); column-gap:17px; position:relative; padding:0 0 29px; min-height:94px; }
.v20-process li:last-child { padding-bottom:0; min-height:58px; }
.v20-node { display:grid; place-items:center; align-self:start; width:38px; height:38px; border-radius:50%; background:#f0f0f7; border:1px solid #d2d3e4; color:#71728b; font-size:11px; font-weight:800; transition:background .25s,color .25s,box-shadow .25s; z-index:1; }
.v20-process li.is-reached .v20-node { background:#6263ad; border-color:#6263ad; color:#fff; box-shadow:0 0 0 5px #6263ad10; }
.v20-track { position:absolute; top:38px; bottom:0; width:2px; left:18px; background:#dddde9; overflow:hidden; }
.v20-track b { display:block; width:100%; height:100%; background:#7072c1; transform-origin:top; transform:scaleY(0); }
.v20-step h4 { margin:5px 0 6px; font-size:17px; color:#292a43; }
.v20-step p { margin:0; color:#676878; font-size:13px; line-height:1.8; }
.v20-process-note { margin-top:16px!important; font-size:11px!important; color:#79798a!important; }

/* Gallery retains the proven selection/lightbox implementation, adds side peeks. */
.v20-gallery-stage { position:relative; overflow:hidden; padding:14px 0; margin-inline:-8px; }
.project-gallery .v20-gallery-stage .gallery-main { position:relative; z-index:2; width:84%; margin:0 auto; border-radius:15px; box-shadow:0 12px 24px #272c5117; }
.v20-gallery-stage .gallery-open,.v20-gallery-stage .gallery-open.is-wide { display:flex!important; align-items:center; justify-content:center; height:clamp(330px,53vh,550px)!important; max-height:none!important; overflow:hidden!important; background:#f0f1f8; position:relative; touch-action:pan-y pinch-zoom; }
.v20-gallery-stage .gallery-open img,.v20-gallery-stage .gallery-open.is-wide img { width:100%!important; height:100%!important; max-width:100%!important; max-height:100%!important; margin:0!important; object-fit:contain; object-position:center; pointer-events:none; }
.v20-gallery-stage .gallery-open::after { content:'⤢ 查看完整图片'; position:absolute; top:12px; right:12px; padding:7px 11px; background:#ffffffed; border:1px solid #cdd0e1; border-radius:999px; color:#363954; font-size:11px; z-index:2; box-shadow:0 3px 12px #0000000c; }
.v20-gallery-peek { position:absolute; top:35px; width:74%; height:calc(100% - 87px); padding:0; border:1px solid #cdd1e2; background:#e5e8f4; border-radius:15px; overflow:hidden; opacity:.7; cursor:pointer; }
.v20-gallery-peek img { width:100%; height:100%; object-fit:cover; object-position:top; opacity:.65; pointer-events:none; }
.v20-gallery-peek[data-side=prev] { right:95%; transform:rotate(-3deg); }
.v20-gallery-peek[data-side=next] { left:95%; transform:rotate(3deg); }
.v20-gallery-peek:focus-visible { outline:3px solid #6263bd; outline-offset:-4px; }
.v20-gallery-stage .gallery-main figcaption { min-height:43px; background:white; }
.project-gallery .gallery-thumbs { gap:10px; padding:12px 2px 8px; scroll-behavior:smooth; }
.project-gallery .gallery-thumbs button { padding:5px; width:115px; white-space:normal; text-align:left; font-size:10px; line-height:1.5; border-radius:9px; }
.v20-thumb-image { display:block; width:100%; height:55px; margin-bottom:6px; object-fit:cover; object-position:top; border-radius:5px; background:#eee; pointer-events:none; }
.project-gallery .gallery-thumbs button.active { box-shadow:0 0 0 1px #7779bb; }
.v20-gallery-stage:focus-visible { outline:2px solid #6263bd; outline-offset:2px; }

@media(min-width:1121px) {
  body.v20-home.preview-compact .hero { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:45px; padding-block:55px; min-height:700px; }
  body.v20-home .v20-stage-wrap { margin-top:25px; }
}
@media(min-width:721px) and (max-width:1120px) { .v20-stage-wrap { width:min(100%,620px); justify-self:center; } }
@media(max-width:720px) {
  body.v20-home .hero { background:none; }
  body.v20-home .hero-copy { order:0; min-height:0; padding:25px 21px 23px; background:linear-gradient(135deg,#f1eefb,#fbfcff); }
  body.v20-home .identity-row { margin-bottom:18px; }
  body.v20-home .hero h1 { font-size:clamp(31px,8.7vw,43px); line-height:1.18; letter-spacing:-.04em; }
  body.v20-home .hero h1 .v20-title-line { display:inline; white-space:normal; }
  body.v20-home .hero h1 .v20-title-line:last-child { display:block; }
  body.v20-home .hero-lead { margin-top:14px; font-size:12px; line-height:1.85; }
  body.v20-home .v20-stage-wrap { order:1; width:100%; margin-top:20px; }
  body.v20-home .hero-stage { min-height:355px; margin:0; }
  body.v20-home .stage-slide h2 { font-size:29px; }
  body.v20-home .mobile-quick { order:2; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:17px; gap:5px; }
  body.v20-home .mobile-quick a { min-height:67px; padding:10px 7px; border-radius:12px; box-shadow:none; }
  body.v20-home .mobile-quick small { font-size:7px; letter-spacing:0; }
  body.v20-home .mobile-quick strong { font-size:10px; margin-top:9px; }
  body.v20-home .mobile-quick span { display:none; }
  body.v20-home .mobile-quick a.dark { background:#55569a; border-color:#55569a; }
  .v20-scroll-cue { margin-top:17px; font-size:8px; }
  .v20-gallery-stage .gallery-open,.v20-gallery-stage .gallery-open.is-wide { height:clamp(210px,28dvh,255px)!important; }
  .project-gallery .v20-gallery-stage .gallery-main { width:86%; }
  .v20-gallery-stage .gallery-main figcaption { padding:9px 10px; font-size:10px; }
  .v20-gallery-stage .gallery-open::after { top:7px; right:7px; font-size:9px; padding:5px 8px; }
  .project-gallery .gallery-thumbs button { width:88px; }
  .v20-thumb-image { height:43px; }
  .v20-process li { grid-template-columns:35px minmax(0,1fr); gap:12px; padding-bottom:23px; }
  .v20-node { width:32px; height:32px; font-size:10px; }
  .v20-track { left:15px; top:32px; }
  .v20-step h4 { font-size:15px; }
  .v20-step p { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) {
  .v20-stage-wrap,.v20-title-line,.v20-gallery-stage .gallery-main { transform:none!important; opacity:1!important; }
  .v20-track b { transform:scaleY(1)!important; }
  .v20-node,.v20-home .cap-card > span { transition:none!important; }
  .project-gallery .gallery-thumbs { scroll-behavior:auto; }
}
