/* Quiet glass surfaces for the research showcase. Keep long reading areas calm. */
.research-showcase {
  --glass-edge: rgb(255 255 255 / 9%);
  --glass-fill: rgb(18 19 22 / 88%);
  --glass-blue: rgb(92 141 255 / 24%);
  --glass-shadow: 0 26px 68px rgb(0 0 0 / 52%), 0 5px 18px rgb(0 0 0 / 32%);
  overflow-x: clip;
}

.research-showcase .site-header {
  background: rgb(13 14 16 / 82%);
  border-bottom-color: rgb(255 255 255 / 9%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}

.research-showcase .primary-nav a[aria-current="location"] {
  border-bottom-color: var(--accent, #5c8dff);
  text-shadow: 0 0 16px rgb(92 141 255 / 30%);
}

.research-showcase .chapter-contents,
.research-showcase .perspective-switch,
.research-showcase .perspective-headings {
  background-color: rgb(15 16 19 / 84%);
  border-color: rgb(255 255 255 / 10%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}

.research-showcase .chapter-contents {
  box-shadow: 0 18px 48px rgb(0 0 0 / 45%), inset 0 1px rgb(255 255 255 / 5%);
}

.research-showcase .perspective-tabs button[aria-selected="true"] {
  border-color: rgb(115 160 255 / 48%);
  box-shadow: inset 0 1px rgb(255 255 255 / 8%), 0 0 18px rgb(92 141 255 / 12%);
}

/* Each chapter reads as one substantial panel; the shared opening spans its full row. */
.research-showcase .topic-section {
  position: relative;
  isolation: isolate;
  margin: 0 0 clamp(24px, 3.2vw, 42px);
  padding: clamp(34px, 4vw, 58px) clamp(22px, 3.2vw, 44px) clamp(32px, 3.8vw, 52px);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: clamp(14px, 1.7vw, 22px);
  background:
    radial-gradient(ellipse 78% 190px at 50% 0%, rgb(255 255 255 / 4.2%), transparent 78%),
    linear-gradient(145deg, rgb(255 255 255 / 3.8%), transparent 30%),
    linear-gradient(180deg, rgb(24 25 29 / 97%), rgb(12 13 16 / 98%));
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgb(255 255 255 / 13%),
    inset 0 0 0 1px rgb(255 255 255 / 2.5%);
  scroll-margin-top: calc(var(--header) + var(--perspective-bar) + 18px);
}

.research-showcase .topic-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(132deg,
    rgb(255 255 255 / 30%),
    rgb(255 255 255 / 8%) 16%,
    transparent 36%,
    transparent 66%,
    rgb(255 255 255 / 5%) 82%,
    rgb(255 255 255 / 18%));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  /* Stay glued to the panel while it tilts in perspective; otherwise the
     masked glass edge lags behind the transformed content. */
  transform: translateZ(0);
  backface-visibility: hidden;
  pointer-events: none;
}

.research-showcase .topic-section:first-of-type {
  padding-top: clamp(30px, 3.5vw, 46px);
}

.research-showcase .topic-heading {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.research-showcase .topic-heading .chapter-position > span:first-child {
  border-color: var(--accent, #5c8dff);
}

.research-showcase .topic-heading h1,
.research-showcase .topic-heading h2 {
  color: #fff;
  text-shadow: 0 2px 22px rgb(255 255 255 / 5%);
}

/* Individual reading structures stay quiet inside the larger chapter surface. */
.research-showcase .cell-content .chapter-scene,
.research-showcase .native-workbench,
.research-showcase .record-output,
.research-showcase .research-notes,
.research-showcase .chapter-bridge .handoff-stage {
  border-color: rgb(255 255 255 / 10%);
  box-shadow: inset 0 1px rgb(255 255 255 / 4%), 0 10px 28px rgb(0 0 0 / 20%);
}

.research-showcase .cell-content .chapter-scene {
  background: linear-gradient(145deg, rgb(255 255 255 / 2.4%), transparent 40%), rgb(12 13 16 / 76%);
  border-radius: 10px;
}

/* Sub-blocks live on the same surface as the panel: one body, no nested cards. */
.research-showcase .topic-section {
  contain: paint;
}

.research-showcase .topic-unit-grid:not(.topic-unit-shared) {
  border: 0;
  border-radius: 0;
  background: none;
}

.research-showcase .topic-unit-grid:not(.topic-unit-shared) > .perspective-cell {
  background: none;
}

.research-showcase .topic-unit.is-linked .topic-unit-grid {
  box-shadow: none;
}

.research-showcase .topic-unit.is-linked .perspective-cell {
  background: rgb(255 255 255 / 2.5%);
  box-shadow: none;
}

.research-showcase .chapter-scene .native-workbench,
.research-showcase .cell-content .chapter-scene .native-workbench {
  border-radius: 9px;
}

.research-showcase .topic-unit-key[aria-pressed="true"] {
  color: #fff;
}

.research-showcase .topic-unit-key[aria-pressed="true"] strong {
  text-shadow: 0 0 14px rgb(92 141 255 / 25%);
}

.research-showcase .lane-divider:focus-visible .lane-divider-control {
  outline: 1px solid var(--accent, #5c8dff);
  outline-offset: -12px;
}

@media (max-width: 820px) {
  .research-showcase .topic-section {
    margin-bottom: 22px;
    padding: 30px 22px 32px;
  }
}

@media (max-width: 640px) {
  .research-showcase .topic-section {
    margin-bottom: 18px;
    padding: 26px 16px 28px;
    border-radius: 14px;
  }

  .research-showcase .topic-section:first-of-type {
    padding-top: 25px;
  }

  .research-showcase .topic-heading {
    margin-bottom: 20px;
  }
}

@media (max-width: 360px) {
  .research-showcase .topic-section {
    padding-inline: 12px;
    border-radius: 12px;
  }

  .research-showcase .topic-unit-grid:not(.topic-unit-shared) {
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .research-showcase .primary-nav a[aria-current="location"] {
    text-shadow: none;
  }
}

@media print {
  .research-showcase {
    overflow: visible;
  }

  .research-showcase .site-header,
  .research-showcase .chapter-contents,
  .research-showcase .perspective-switch,
  .research-showcase .perspective-headings {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .research-showcase .topic-section {
    margin: 0 0 18px;
    padding: 28px 24px;
    border: 1px solid #555;
    border-radius: 10px;
    background: #111;
    color: #f5f5f5;
    box-shadow: none;
  }

  .research-showcase .topic-section::before {
    display: none;
  }
}

/* A light red wash makes the problem statement distinct from the proposed mechanism. */
.research-showcase .pain-point,.research-showcase #highlights .highlight-pain{
 background:linear-gradient(110deg,rgba(255,128,146,.12),rgba(255,128,146,.055));
 border:1px solid rgba(255,146,156,.14);border-left:3px solid #ff929c;
 border-radius:0 10px 10px 0;padding:16px 18px;color:#ffb6bf;
}
.research-showcase .pain-point>span,.research-showcase #highlights .highlight-pain>span{color:#ff929c}
.research-showcase .topic-unit-key{gap:14px}.research-showcase .topic-unit-key .unit-key-action{margin-left:auto;font-size:10px;white-space:nowrap;color:#a8b7ce}

/* Merged units read top-down: teaching first, then the technical lane. */
.research-showcase .topic-unit-grid.is-single{display:block!important;grid-template-columns:none!important;column-gap:0!important;row-gap:0;border:0;background:none}
.research-showcase .topic-unit-grid.is-single>.perspective-cell{border:0;padding:0;background:none}
.research-showcase .topic-unit-grid.is-single>.unit-lane{margin-top:30px;padding-top:26px}
.unit-tech-points h4{font-size:12px;font-weight:600;letter-spacing:.05em;color:#9db9ff;margin:16px 0 6px}
.unit-tech-points h4:first-child{margin-top:0}
.unit-tech-points ul{margin:0 0 4px;padding-left:18px;color:#c9d1dd;font-size:13px;line-height:1.95}
.research-showcase .unit-tech-fold{margin:18px 0 0;border:1px solid rgb(255 255 255 / 10%);border-radius:6px;padding:10px 16px;background:rgb(255 255 255 / 2%)}
.research-showcase .unit-tech-fold>summary{cursor:pointer;color:#9db9ff;font-size:13px;line-height:1.8}
.research-showcase .unit-tech-fold[open]>summary{margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid rgb(255 255 255 / 8%)}

/* Chrome cleanup: keep the glass panel and the dividers, drop decorative bars,
   label chips and state lines that add no reading value. */
.research-showcase .perspective-headings{display:none!important}
.research-showcase{--perspective-bar:0px}
.research-showcase.reader-ready .lane-divider{background:none}
.research-showcase .topic-unit-key:before{display:none}
.research-showcase .topic-unit-key>span:first-child,
.research-showcase .topic-unit-key strong,
.research-showcase .unit-key-action{background:none;padding-inline:0}
.research-showcase .topic-unit-grid:not(.topic-unit-shared)> .perspective-cell[data-current="true"]{box-shadow:none}

/* Tabs remain quiet text controls. */
.research-showcase .scene-tabs button{border:0;border-radius:0;background:none;color:#8b93a1;padding:8px 12px;font-size:13px;position:relative;transition:color .18s}
.research-showcase .scene-tabs button:hover{background:none;border:0;color:#e6ebf3}
.research-showcase .scene-tabs button[aria-pressed=true]{background:none;border:0;color:#fff;font-weight:600}
.research-showcase .scene-tabs button[aria-pressed=true]:after{content:'';position:absolute;left:10px;right:10px;bottom:0;height:2px;border-radius:2px;background:#fff}

/* Closing invitation: one large, centred control with a warm glow. */
.research-showcase .chapter-bridge-closing{display:flex;justify-content:center;margin:38px 0 6px;padding:0;border:0}
.research-showcase .chapter-transition-closing{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:20px;margin:0;padding:24px 38px;border:1px solid rgb(255 154 98 / 42%);border-radius:20px;background:radial-gradient(ellipse at 50% 20%,rgb(255 126 148 / 12%),transparent 72%),rgb(20 13 13 / 96%);color:#fff;font-size:clamp(19px,2vw,26px);line-height:1.65;letter-spacing:.01em;text-align:center;animation:closing-breathe 4.4s ease-in-out infinite;transition:border-color .25s,transform .25s,box-shadow .25s}
.research-showcase .chapter-transition-closing strong{font-weight:600;color:#fff}
.research-showcase .chapter-transition-closing svg{width:25px;height:25px;flex:none;stroke:#ffb383;filter:drop-shadow(0 0 9px rgb(255 140 110 / 55%))}
.research-showcase .chapter-transition-closing:hover{border-color:rgb(255 176 126 / 72%);transform:translateY(-1px);color:#fff}
@keyframes closing-breathe{0%,100%{box-shadow:0 0 30px rgb(255 110 132 / 15%),inset 0 1px 0 rgb(255 255 255 / 10%)}50%{box-shadow:0 0 48px rgb(255 132 142 / 27%),inset 0 1px 0 rgb(255 255 255 / 15%)}}
@media(prefers-reduced-motion:reduce){.research-showcase .chapter-transition-closing{animation:none;box-shadow:0 0 36px rgb(255 120 138 / 20%)}}
@media(max-width:640px){.research-showcase .chapter-transition-closing{display:flex;width:100%;padding:18px 20px;gap:12px;font-size:17px}}

/* Research comparisons open in one dialog instead of stretching the technical column. */
.research-notes[hidden]{display:none!important}
.research-showcase .research-notes-trigger{display:flex;align-items:baseline;gap:10px;width:100%;margin:20px 0 0;padding:13px 16px;border:1px solid rgb(255 255 255 / 12%);border-radius:12px;background:rgb(255 255 255 / 3%);color:#dfe6f2;font:inherit;text-align:left;cursor:pointer;transition:border-color .2s,background .2s}
.research-showcase .research-notes-trigger:hover{border-color:rgb(163 148 255 / 55%);background:rgb(163 148 255 / 8%)}
.research-showcase .research-notes-trigger strong{font-size:13px;font-weight:650;letter-spacing:.01em}
.research-showcase .research-notes-trigger span{color:#8b93a1;font-size:12px}
.research-showcase .research-notes-trigger:after{content:'↗';margin-left:auto;color:#a394ff;font-size:13px}
.research-modal{position:fixed;inset:0;margin:auto;width:min(940px,92vw);height:fit-content;max-height:86vh;padding:0;overflow:hidden;border:1px solid rgb(255 255 255 / 14%);border-radius:18px;background:#0c0d12;color:#e8eefb;box-shadow:0 40px 120px rgb(0 0 0 / 60%)}
.research-modal::backdrop{background:rgb(0 0 0 / 74%);backdrop-filter:blur(3px)}
.research-modal-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 24px;border-bottom:1px solid rgb(255 255 255 / 10%);background:#0c0d12}
.research-modal-head h3{margin:0;color:#fff;font-size:16px;font-weight:650}
.research-modal-close{padding:7px 14px;border:1px solid rgb(255 255 255 / 18%);border-radius:999px;background:none;color:#cfd7e6;font:inherit;font-size:12px;cursor:pointer;transition:border-color .2s,color .2s}
.research-modal-close:hover{border-color:rgb(163 148 255 / 60%);color:#fff}
.research-modal-body{max-height:calc(86vh - 62px);overflow:auto;padding:8px 24px 28px}
.research-modal-body .research-notes{padding-top:0}
@media(max-width:640px){
  .research-modal{width:100vw;max-height:92vh;border-radius:14px}
  .research-modal-body{max-height:calc(92vh - 58px);padding:4px 16px 22px}
}
@media print{.research-notes[hidden]{display:block!important}}

/* One line per study: name plus the question it asks, details on demand. */
.research-study[hidden]{display:none!important}
.research-list{display:grid;gap:8px;margin:14px 0 0}
.research-showcase .research-notes-trigger{display:block;position:relative;padding:14px 42px 14px 16px}
.research-showcase .research-notes-trigger strong{display:block;font-size:13px;line-height:1.5}
.research-showcase .research-notes-trigger span{display:block;margin-top:5px;line-height:1.55}
.research-showcase .research-notes-trigger:after{position:absolute;top:14px;right:15px;margin-left:0}
.research-showcase .solution-more{width:100%;margin:18px 0 0;padding:14px 18px;border:1px dashed rgb(255 255 255 / 22%);border-radius:12px;background:none;color:#cfd7e6;font:inherit;font-size:13px;cursor:pointer;transition:border-color .2s,color .2s}
.research-showcase .solution-more:hover{border-color:rgb(163 148 255 / 60%);color:#fff}
.research-modal-body .chunk h3{margin-top:6px}


/* 现有研究: one narrow column of softly lit rows, brighter on hover. */
.research-showcase .research-notes>h3{font-size:16px;line-height:1.4;letter-spacing:.02em}
.research-showcase .research-list{max-width:560px}
.research-showcase .research-notes-trigger{max-width:560px;border-color:rgb(163 148 255 / 22%);box-shadow:0 0 0 1px rgb(163 148 255 / 6%),0 0 20px rgb(163 148 255 / 7%);transition:border-color .25s,background .25s,box-shadow .25s}
.research-showcase .research-notes-trigger:hover{border-color:rgb(163 148 255 / 62%);background:rgb(163 148 255 / 10%);box-shadow:0 0 0 1px rgb(163 148 255 / 38%),0 0 34px rgb(163 148 255 / 24%)}
.research-showcase .research-notes-trigger:focus-visible{outline:2px solid rgb(163 148 255 / 70%);outline-offset:2px}
.research-showcase .research-notes-trigger strong{font-size:14px}
.research-showcase .research-notes-trigger span{font-size:12.5px}

/* The seven merged units have room for paired studies; narrow technical lanes
   keep their existing single column. The query uses the reading area's width. */
.research-showcase .topic-unit.is-merged .research-notes{container:merged-research / inline-size}
.research-showcase .topic-unit.is-merged .research-list{max-width:none}
.research-showcase .topic-unit.is-merged .research-notes-trigger{max-width:none}
.research-showcase .topic-unit.is-merged .research-list>.research-notes-trigger:only-child{grid-column:1 / -1}
@container merged-research (min-width:600px){
  .research-showcase .topic-unit.is-merged .research-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
}

/* A short stream follows a static route; it never grows into a progress bar. */
.research-showcase .flow-strip.flow-stream{position:relative;display:grid;grid-template-columns:repeat(var(--flow-columns,7),minmax(0,1fr));gap:22px 0;margin:18px 0 0;padding:0 0 22px;overflow:hidden;isolation:isolate}
.research-showcase .flow-stream:before,.research-showcase .flow-stream button:after,.research-showcase .flow-stream button:before{display:none!important}
.research-showcase .flow-stream button{display:grid;align-content:center;min-width:0;min-height:40px;padding:8px 5px;line-height:1.6;border:0;border-radius:0;background:none;color:#8995a7;text-align:center;position:relative;transition:color .18s;z-index:1;animation:none!important;opacity:1!important;font-size:12px}
.research-showcase .flow-stream .flow-label-base,.research-showcase .flow-stream .flow-label-glow{grid-area:1 / 1;display:block;flex:none;min-width:0;margin:0;padding:0;border:0;background:none;font:inherit;line-height:inherit}.flow-label-glow{color:#f4f8ff;text-shadow:0 0 11px #c7e1ff9e;opacity:0;pointer-events:none}.flow-stream[data-flow-running=true] .flow-label-glow{will-change:opacity}
.research-showcase .flow-stream .flow-route{position:absolute;inset:0;pointer-events:none;overflow:visible}
.flow-route path{stroke:#5d6c8055;stroke-width:1;fill:none}
.flow-beams{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:2}
.flow-beam{position:absolute;left:0;top:0;width:6.25px;height:1.5px;opacity:0;transform-origin:left center;background:#e4f0ff;will-change:transform,opacity}.flow-beam:first-child{box-shadow:0 0 6px #c7e1ff88}
.research-showcase .flow-stream[data-flow-running=false] .flow-beam{opacity:0}
@media(prefers-reduced-motion:reduce){.flow-beams{display:none}.flow-beam{will-change:auto}}

.research-showcase .flow-stream button.active{color:#aab7c9;background:none;border:0;font-weight:600}.research-showcase .flow-stream button:hover{color:#c8d4e5;background:none;border:0}
.chapter-transition-closing{animation-play-state:paused!important}.chapter-transition-closing.motion-running{animation-play-state:running!important}
body.showcase-motion-suspended *{animation-play-state:paused!important}
/* A modal suspends the obscured page, while its own transition remains active.
   Reduced-motion and hidden-page states still stop the dialog via data-motion. */
@media(prefers-reduced-motion:no-preference){
 body.showcase-motion-suspended .vision-dialog[open][data-motion=running] :is(.vision-transition-beam,.vision-transition-beam>i),
 body.showcase-motion-suspended .vision-dialog[open][data-motion=running] .vision-change-before:before,
 body.showcase-motion-suspended .vision-dialog[open][data-motion=running] .vision-change-result:before{animation-play-state:running!important}
}

.research-modal,.research-modal-body{overscroll-behavior:contain}

.flow-stream[data-flow-straight=true] .flow-beams{clip-path:inset(0 var(--flow-end-gap) 0 var(--flow-start-x))}
