Wiki-tmp/src/styles/features/experiments-panels.css

src / styles / features / experiments-panels.css

src/styles/features/experiments-panels.css · 26.5 KB

/* ==========================================================================
   CirCure Wet Lab · Experiments Panels Scoped Styles
   Follows WIKI_ARCHITECTURE_SPEC.md & Wiki-设计与排版规范.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Pipeline Navigator Card (7-Stage Sequential Route)
   -------------------------------------------------------------------------- */
.exp-pipeline-card {
  background: var(--route-paper, #fdfbf7);
  border: 1px solid var(--route-line, rgba(20, 53, 76, 0.12));
  border-radius: 12px;
  padding: clamp(16px, 2vw, 24px);
  margin: 16px 0 28px;
  box-shadow: 0 4px 16px rgba(20, 53, 76, 0.04);
  transition: border-color 0.2s ease;
}

.exp-pipeline-card__header {
  margin-bottom: 18px;
}

.exp-pipeline-card__title {
  font-family: var(--font-editorial, "Editorial New", Georgia, serif);
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--route-heading-ink, #14354c);
  margin: 0 0 6px 0;
  font-weight: 600;
}

.exp-pipeline-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--route-ink, #2c3e50);
  opacity: 0.85;
  margin: 0;
}

.exp-pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.exp-pipeline-steps__row {
  display: grid;
  gap: 10px;
}

.exp-pipeline-steps__row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.exp-pipeline-steps__row--4 {
  grid-template-columns: repeat(4, 1fr);
}

.exp-pipeline-step-btn {
  background: #ffffff;
  border: 1px solid var(--route-line, rgba(20, 53, 76, 0.12));
  border-radius: 8px;
  padding: 12px 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-pipeline-step-btn:hover {
  border-color: var(--route-subheading-ink, #88541e);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(136, 84, 30, 0.08);
}

.exp-pipeline-step-btn.is-active {
  background: var(--route-soft, #eef7fa);
  border-color: var(--route-heading-ink, #14354c);
  box-shadow: 0 0 0 1px var(--route-heading-ink, #14354c);
}

.exp-pipeline-step-btn__index {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: var(--route-subheading-ink, #88541e);
}

.exp-pipeline-step-btn__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--route-heading-ink, #14354c);
  line-height: 1.3;
}

.exp-pipeline-detail {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.85);
  border-left: 3px solid var(--route-subheading-ink, #88541e);
  border-radius: 0 8px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-pipeline-detail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.exp-pipeline-detail__lead {
  font-size: 14px;
  font-weight: 600;
  color: var(--route-heading-ink, #14354c);
}

.exp-pipeline-detail__jump-btn {
  background: #ffffff;
  border: 1px solid var(--route-line, rgba(20, 53, 76, 0.22));
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--route-subheading-ink, #88541e);
  cursor: pointer;
  transition: all 0.2s ease;
}

.exp-pipeline-detail__jump-btn:hover {
  background: var(--route-soft, #eef7fa);
  border-color: var(--route-subheading-ink, #88541e);
  transform: translateY(-1px);
}

.exp-pipeline-detail__row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--route-ink, #2c3e50);
}

.exp-pipeline-detail__label {
  font-weight: 600;
  min-width: 68px;
  color: var(--route-subheading-ink, #88541e);
}

/* --------------------------------------------------------------------------
   2. circRNA Biochemistry Diagram (Splicing & Primer Logic)
   -------------------------------------------------------------------------- */
.exp-biochem-panel {
  background: var(--route-paper, #fdfbf7);
  border: 1px solid var(--route-line, rgba(20, 53, 76, 0.12));
  border-radius: 12px;
  padding: clamp(16px, 2vw, 22px);
  margin: 20px 0;
}

.exp-biochem-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--route-line, rgba(20, 53, 76, 0.12));
  padding-bottom: 10px;
}

.exp-biochem-tab-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--route-ink, #2c3e50);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.exp-biochem-tab-btn:hover {
  background: rgba(20, 53, 76, 0.05);
}

.exp-biochem-tab-btn.is-active {
  background: var(--route-heading-ink, #14354c);
  color: #ffffff;
}

.exp-biochem-schematic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.exp-biochem-card {
  background: #ffffff;
  border: 1px solid var(--route-line, rgba(20, 53, 76, 0.12));
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-biochem-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--route-heading-ink, #14354c);
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-biochem-card__badge {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--route-marker-bg, #c6e5f2);
  color: var(--route-heading-ink, #14354c);
}

.exp-biochem-card__content {
  font-size: 13px;
  line-height: 1.6;
  color: var(--route-ink, #2c3e50);
}

.exp-biochem-card__visual {
  background: var(--route-soft, #f4fbfd);
  border: 1px dashed var(--route-line, rgba(20, 53, 76, 0.2));
  border-radius: 6px;
  padding: 12px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--route-heading-ink, #14354c);
  text-align: center;
}

/* --------------------------------------------------------------------------
   3. Screening Funnel (Round 1 Single-Epitope Screen)
   -------------------------------------------------------------------------- */
.exp-funnel-card {
  background: var(--route-paper, #fdfbf7);
  border: 1px solid var(--route-line, rgba(20, 53, 76, 0.12));
  border-radius: 12px;
  padding: clamp(16px, 2vw, 22px);
  margin: 20px 0;
}

.exp-funnel-stages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.exp-funnel-stage {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--route-line, rgba(20, 53, 76, 0.12));
  border-radius: 8px;
  padding: 12px 16px;
  gap: 16px;
  transition: transform 0.2s ease;
}

.exp-funnel-stage:hover {
  transform: translateX(4px);
  border-color: var(--route-subheading-ink, #88541e);
}

.exp-funnel-stage__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exp-funnel-stage__count {
  font-family: var(--font-editorial, "Editorial New", serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--route-subheading-ink, #88541e);
}

.exp-funnel-stage__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--route-heading-ink, #14354c);
}

.exp-funnel-stage__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--route-ink, #2c3e50);
}

/* --------------------------------------------------------------------------
   4. Safety Window Radar / Interactive Parameters
   -------------------------------------------------------------------------- */
.exp-safety-panel {
  background: var(--route-paper, #fdfbf7);
  border: 1px solid var(--route-line, rgba(20, 53, 76, 0.12));
  border-radius: 12px;
  padding: clamp(16px, 2vw, 22px);
  margin: 20px 0;
}

.exp-safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.exp-safety-pillar {
  background: #ffffff;
  border: 1px solid var(--route-line, rgba(20, 53, 76, 0.12));
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-safety-pillar__index {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--route-subheading-ink, #88541e);
  font-weight: 700;
}

.exp-safety-pillar__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--route-heading-ink, #14354c);
  margin: 0;
}

.exp-safety-pillar__metric {
  background: var(--route-soft, #eef7fa);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--route-heading-ink, #14354c);
}

.exp-safety-pillar__body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--route-ink, #2c3e50);
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. In Vivo NC3Rs EDA Protocol Timeline
   -------------------------------------------------------------------------- */
.exp-invivo-panel {
  background: var(--route-paper, #fdfbf7);
  border: 1px solid var(--route-line, rgba(20, 53, 76, 0.12));
  border-radius: 12px;
  padding: clamp(16px, 2vw, 22px);
  margin: 20px 0;
}

.exp-invivo-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--route-marker-bg, #c6e5f2);
}

.exp-invivo-node {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--route-line, rgba(20, 53, 76, 0.12));
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-invivo-node::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--route-heading-ink, #14354c);
  border: 2px solid #ffffff;
}

.exp-invivo-node__day {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: var(--route-subheading-ink, #88541e);
}

.exp-invivo-node__action {
  font-size: 13px;
  font-weight: 600;
  color: var(--route-heading-ink, #14354c);
}

.exp-invivo-node__desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--route-ink, #2c3e50);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .exp-funnel-stage {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .exp-pipeline-steps__row--3,
  .exp-pipeline-steps__row--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .exp-pipeline-steps__row--3,
  .exp-pipeline-steps__row--4 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Pre-rendered Full Paint & Performance Overrides for Experiments Route
   All content pre-rendered and visible on entry; eliminates on-scroll pop-in
   -------------------------------------------------------------------------- */
.wiki-page[data-wiki-route="/experiments"] [data-wiki-reveal],
.wiki-page[data-wiki-route="/experiments"] [data-wiki-reveal].is-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.wiki-page[data-wiki-route="/experiments"] .wiki-section {
  --wiki-section-reveal: 1 !important;
  --wiki-section-focus: 1 !important;
  --wiki-section-shift: 0px !important;
  --wiki-section-drift: 0px !important;
  opacity: 1 !important;
  transform: none !important;
}

.wiki-page[data-wiki-route="/experiments"] .wiki-section::before {
  display: none !important;
}

.wiki-page[data-wiki-route="/experiments"] .wiki-section__heading > span,
.wiki-page[data-wiki-route="/experiments"] .wiki-section__heading > div {
  transform: none !important;
  will-change: auto !important;
}

/* --------------------------------------------------------------------------
   Notes / Boundary Callout Typography & Layout
   Uses heading font (Fraunces), tight line-height, separated lines & card box
   -------------------------------------------------------------------------- */
.wiki-page[data-wiki-route="/experiments"] .wiki-boundary {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 20px 0 28px !important;
  padding: 14px 18px !important;
  background: rgba(136, 84, 30, 0.045) !important;
  border: 1px solid rgba(136, 84, 30, 0.16) !important;
  border-left: 3.5px solid var(--route-subheading-ink, #88541e) !important;
  border-radius: 0 8px 8px 0 !important;
  box-shadow: none !important;
}

.wiki-page[data-wiki-route="/experiments"] .wiki-boundary__label,
.wiki-page[data-wiki-route="/experiments"] .wiki-boundary > span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: var(--route-subheading-ink, #88541e) !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 2px !important;
}

.wiki-page[data-wiki-route="/experiments"] .wiki-boundary p,
.wiki-page[data-wiki-route="/experiments"] .wiki-boundary__body p {
  font-family: var(--font-heading), "Fraunces", Georgia, serif !important;
  font-size: 14.5px !important;
  line-height: 1.48 !important;
  color: var(--route-ink, #2c3e50) !important;
  font-style: normal !important;
  margin: 0 0 6px 0 !important;
}

.wiki-page[data-wiki-route="/experiments"] .wiki-boundary p:last-child,
.wiki-page[data-wiki-route="/experiments"] .wiki-boundary__body p:last-child {
  margin-bottom: 0 !important;
}

.wiki-page[data-wiki-route="/experiments"] .wiki-boundary strong {
  font-weight: 700 !important;
  color: var(--route-heading-ink, #14354c) !important;
}

/* --------------------------------------------------------------------------
   Step-by-Step Instructions: Structured, Compact SOP Steps
   Replaces loose, scattered paragraphs with tight protocol items
   -------------------------------------------------------------------------- */
.wiki-protocol-step-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 12px 0;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--route-soft, #eef7fa) 75%, #ffffff);
  border-left: 4px solid var(--route-subheading-ink, #88541e);
  border-radius: 0 8px 8px 0;
}

.wiki-protocol-step-section-heading__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--route-heading-ink, #14354c);
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.wiki-protocol-step-section-heading__title {
  margin: 0;
  font-family: var(--font-heading), "Fraunces", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--route-heading-ink, #14354c);
  letter-spacing: -0.01em;
}

.wiki-protocol-step-subheading {
  margin: 18px 0 8px 0;
  font-family: var(--font-heading), "Fraunces", Georgia, serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--route-heading-ink, #14354c);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wiki-protocol-step-subheading::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--route-subheading-ink, #88541e);
  border-radius: 2px;
}

.wiki-protocol-step-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 7px; /* Tight compact gap! */
}

.wiki-protocol-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(20, 53, 76, 0.025);
  border: 1px solid rgba(20, 53, 76, 0.07);
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.wiki-protocol-step-item:hover {
  background: rgba(20, 53, 76, 0.05);
  border-color: rgba(20, 53, 76, 0.16);
  transform: translateX(2px);
}

.wiki-protocol-step-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--route-heading-ink, #14354c);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  margin-top: 1px;
}

.wiki-protocol-step-text {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.54;
  color: var(--route-ink, #2c3e50);
  margin: 0;
}

.wiki-protocol-step-text strong {
  color: var(--route-heading-ink, #14354c);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Collapsible Subheading Protocol Drawer (手风琴隐藏栏)
   -------------------------------------------------------------------------- */
.wiki-protocol-drawer {
  margin: 18px 0;
  border-radius: 12px;
  border: 1px solid rgba(20, 53, 76, 0.14);
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(20, 53, 76, 0.03);
  transition: all 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.wiki-protocol-drawer.is-open {
  border-color: var(--route-subheading-ink, #88541e);
  box-shadow: 0 6px 20px rgba(136, 84, 30, 0.09);
}

.wiki-protocol-drawer__heading {
  margin: 0;
}

.wiki-page--experiments .wiki-content-heading {
  margin: 12px 0 0;
  color: var(--route-subheading-ink, #88541e);
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.35;
  padding: 0;
  border: 0;
}

.wiki-page--experiments .wiki-content-heading::before {
  content: none;
}

.wiki-page--experiments h5.wiki-content-heading {
  font-size: clamp(17px, 1.5vw, 19px);
}

.wiki-page--experiments .wiki-protocol-drawer__title {
  font-size: clamp(19px, 1.8vw, 22px);
}

.wiki-page--experiments .wiki-prose strong,
.wiki-page--experiments .wiki-protocol-step-text strong {
  color: var(--route-ink) !important;
}

.wiki-page--experiments {
  --exp-body-font-size: 18px;
}

.wiki-page.wiki-page--route.wiki-page--experiments .wiki-prose,
.wiki-page.wiki-page--route.wiki-page--experiments .wiki-prose p,
.wiki-page.wiki-page--route.wiki-page--experiments .wiki-prose-list,
.wiki-page.wiki-page--route.wiki-page--experiments .wiki-protocol-step-text,
.wiki-page.wiki-page--route.wiki-page--experiments .wiki-table-wrap tbody th,
.wiki-page.wiki-page--route.wiki-page--experiments .wiki-table-wrap tbody td {
  font-size: var(--exp-body-font-size);
  line-height: 1.75;
}

.wiki-page--experiments .wiki-protocol-step-text > .wiki-prose {
  margin: 0;
}

.wiki-page--experiments .wiki-protocol-step-text .wiki-prose p:last-child {
  margin-bottom: 0;
}

.wiki-page--experiments .wiki-prose-list:not(ol) {
  list-style-type: disc;
  padding-left: 1.4em;
}

.wiki-page--experiments .wiki-content-heading .wiki-cite {
  font-size: 0.8em;
  font-weight: 400;
}

.wiki-page--experiments .wiki-reference-item__link {
  overflow-wrap: anywhere;
}

.wiki-page--experiments .wiki-content-heading:first-child {
  margin-top: 0;
}

.exp-protocol-formula {
  overflow-wrap: anywhere;
}

.exp-protocol-formula__fraction {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  margin: 0 0.35em;
  text-align: center;
  max-width: 100%;
}

.exp-protocol-formula__fraction > span:first-child {
  border-bottom: 1px solid currentColor;
}

.wiki-page--experiments .wiki-prose-link {
  overflow-wrap: anywhere;
}

.wiki-page--experiments .wiki-protocol-drawer__title {
  white-space: normal;
  overflow-wrap: anywhere;
}

.wiki-protocol-drawer__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(20, 53, 76, 0.02);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.wiki-protocol-drawer.is-open .wiki-protocol-drawer__header {
  background: color-mix(in srgb, var(--route-base, #fdf5d1) 28%, #ffffff);
  border-bottom: 1px solid rgba(136, 84, 30, 0.12);
}

.wiki-protocol-drawer__header:hover {
  background: rgba(136, 84, 30, 0.04);
}

.wiki-protocol-drawer__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.wiki-protocol-drawer__index-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--route-subheading-ink, #88541e);
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wiki-protocol-drawer__title {
  margin: 0;
  font-family: var(--font-heading), "Fraunces", Georgia, serif !important;
  font-size: clamp(17px, 1.6vw, 19.5px);
  font-weight: 700;
  color: var(--route-subheading-ink, #88541e) !important;
  letter-spacing: -0.015em;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wiki-protocol-drawer.is-open .wiki-protocol-drawer__title,
.wiki-protocol-drawer__header:hover .wiki-protocol-drawer__title {
  color: var(--route-subheading-ink, #88541e) !important;
}

.wiki-protocol-drawer__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(136, 84, 30, 0.08);
  color: var(--route-subheading-ink, #88541e);
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, color 0.2s ease;
}

.wiki-protocol-drawer.is-open .wiki-protocol-drawer__chevron {
  transform: rotate(180deg);
  background: var(--route-subheading-ink, #88541e);
  color: #ffffff;
}

.wiki-protocol-drawer__body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
}

/* Crucial: Ensure all elements inside protocol drawer are 100% visible immediately upon expand */
.wiki-protocol-drawer,
.wiki-protocol-drawer *,
.wiki-protocol-drawer__body,
.wiki-protocol-drawer [data-wiki-reveal] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* --------------------------------------------------------------------------
   Sidebar TOC Protocol Hover Preview & Modal
   -------------------------------------------------------------------------- */
.wiki-outline__protocol-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--route-subheading-ink, #88541e);
  margin-left: auto;
  opacity: 0.75;
  transition: all 0.18s ease;
  cursor: pointer;
}

.wiki-outline__secondary:hover .wiki-outline__protocol-icon,
.wiki-outline__protocol-icon:hover {
  opacity: 1;
  color: var(--route-heading-ink, #14354c);
  background: rgba(20, 53, 76, 0.08);
}

.wiki-protocol-popover {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--route-line-strong, #aac7cc);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(20, 53, 76, 0.2);
  padding: 12px;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.wiki-protocol-popover__header {
  border-bottom: 1px solid rgba(20, 53, 76, 0.08);
  padding-bottom: 8px;
}

.wiki-protocol-popover__badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.wiki-protocol-popover__badge {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--route-subheading-ink, #88541e);
  color: #fff;
}

.wiki-protocol-popover__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--route-heading-ink, #14354c);
  opacity: 0.8;
}

.wiki-protocol-popover__title {
  margin: 0;
  font-family: var(--font-heading), "Fraunces", Georgia, serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--route-heading-ink, #14354c);
  line-height: 1.35;
}

.wiki-protocol-popover__tabs {
  display: flex;
  gap: 6px;
}

.wiki-protocol-popover__tab {
  flex: 1;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  border: 1px solid rgba(20, 53, 76, 0.12);
  background: #f8faf9;
  color: var(--route-ink, #2c3e50);
  cursor: pointer;
  transition: all 0.16s ease;
}

.wiki-protocol-popover__tab.is-active {
  background: var(--route-heading-ink, #14354c);
  color: #ffffff;
  border-color: var(--route-heading-ink, #14354c);
}

.wiki-protocol-popover__image-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f4f5;
  border: 1px solid rgba(20, 53, 76, 0.1);
  cursor: zoom-in;
}

.wiki-protocol-popover__thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  transition: transform 0.22s ease;
}

.wiki-protocol-popover__image-wrap:hover .wiki-protocol-popover__thumb {
  transform: scale(1.03);
}

.wiki-protocol-popover__overlay-hint {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(20, 53, 76, 0.85), transparent);
  padding: 10px 8px 6px;
  text-align: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wiki-protocol-popover__image-wrap:hover .wiki-protocol-popover__overlay-hint {
  opacity: 1;
}

.wiki-protocol-popover__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.wiki-protocol-popover__page-hint {
  font-size: 11px;
  color: var(--route-ink, #2c3e50);
  opacity: 0.75;
}

.wiki-protocol-popover__expand-btn {
  background: none;
  border: none;
  color: var(--route-subheading-ink, #88541e);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}

.wiki-protocol-popover__expand-btn:hover {
  text-decoration: underline;
}

/* Lightbox Modal Tweaks */
.wiki-protocol-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wiki-protocol-modal__code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--route-subheading-ink, #88541e);
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  margin-right: 6px;
}

.wiki-protocol-modal__tab-group {
  display: flex;
  gap: 8px;
}

.wiki-protocol-modal__tab {
  padding: 7px 14px;
  border: 1px solid var(--route-line-strong, #aac7cc);
  border-radius: 6px;
  background: #ffffff;
  color: var(--route-heading-ink, #14354c);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wiki-protocol-modal__tab.is-active {
  background: var(--route-heading-ink, #14354c);
  color: #ffffff;
  border-color: var(--route-heading-ink, #14354c);
}

.wiki-protocol-modal__boundary {
  padding: 10px 18px;
  background: #fff8e8;
  border-bottom: 1px solid #fae1af;
  font-size: 12.5px;
  line-height: 1.45;
  color: #664d1a;
}

.wiki-protocol-modal__boundary span {
  font-weight: 700;
}



← 返回文件树 · 在 GitHub 上查看