Wiki-tmp/src/styles/features/visual-design-panels.css

src / styles / features / visual-design-panels.css

src/styles/features/visual-design-panels.css · 11.5 KB

/* ============================================================================
   Visual Design Panels & Figure Sizing (Project Module)
   ----------------------------------------------------------------------------
   Micro-level scoped styling for artwork figures, palette swatches, and
   architecture flowchart on the /visual-design page.
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Figure Sizing Modifiers                                                    */
/* -------------------------------------------------------------------------- */

/* Logos (Fig 1: Project Logo, Fig 2: Team Logo) */
.wiki-page--visual-design .wiki-figure--logo img {
  max-width: min(320px, 80vw);
  width: 100%;
  height: auto;
  margin-inline: auto;
}

/* Team Flag (Fig 3) */
.wiki-page--visual-design .wiki-figure--flag img {
  max-width: min(460px, 88vw);
  width: 100%;
  height: auto;
  margin-inline: auto;
}

/* Lumi Mascot Circular Emblem (Fig 5) */
.wiki-page--visual-design .wiki-figure--emblem img {
  max-width: min(340px, 82vw);
  width: 100%;
  height: auto;
  margin-inline: auto;
}

/* Lumi Cursor Sprites (Rest, Active, Spark) */
.wiki-page--visual-design .wiki-figure--cursor-sprite img {
  max-width: min(220px, 65vw);
  width: 100%;
  height: auto;
  margin-inline: auto;
}

/* Watercolor Diagrams (Venn, Orbit) */
.wiki-page--visual-design .wiki-figure--diagram img {
  max-width: min(620px, 92vw);
  width: 100%;
  height: auto;
  margin-inline: auto;
}

/* -------------------------------------------------------------------------- */
/* Component 1: Palette Swatches                                              */
/* -------------------------------------------------------------------------- */

.palette-swatches {
  --palette-paper: #fffdf7;
  --palette-ink: var(--route-heading-ink, #243d2c);
  --palette-rule: color-mix(in srgb, var(--palette-ink) 15%, transparent);
  container: palette-swatches / inline-size;
  margin: 0;
  padding: 1.75rem 1.5rem;
  background:
    radial-gradient(ellipse at 0 0, color-mix(in srgb, var(--route-main, #b7d782) 18%, transparent), transparent 60%),
    var(--palette-paper);
  border: 1px solid var(--palette-rule);
  border-radius: 12px;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--palette-ink) 4%, transparent);
}

.palette-swatches__header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--palette-rule);
}

.palette-swatches__title {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--palette-ink);
  letter-spacing: -0.01em;
}

.palette-swatches__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

/* Six tracks place three equal cards above a centred pair. */
@container palette-swatches (min-width: 640px) {
  .palette-swatches__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .palette-swatches__card {
    grid-column: span 2;
  }

  .palette-swatches__card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .palette-swatches__card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.palette-swatches__card {
  --palette-pigment: var(--route-main, #b7d782);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.15rem 1rem;
  background:
    radial-gradient(ellipse at 0 0, color-mix(in srgb, var(--palette-pigment) 18%, transparent), transparent 72%),
    var(--palette-paper);
  border: 1px solid var(--palette-rule);
  border-radius: 10px;
}

.palette-swatches__card--wet-lab {
  --palette-pigment: #b4dff0;
}

.palette-swatches__card--dry-lab {
  --palette-pigment: #9bd6c0;
}

.palette-swatches__card--engagement {
  --palette-pigment: #f0b04a;
}

.palette-swatches__card--team {
  --palette-pigment: #f5cf6f;
}

.palette-swatches__card-header {
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--palette-rule);
}

.palette-swatches__module-name {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--palette-ink);
}

.palette-swatches__chips-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.65rem;
}

.palette-swatches__chip-item {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.5rem;
}

.palette-swatches__color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--palette-rule);
  flex-shrink: 0;
}

.palette-swatches__chip-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
  line-height: 1.3;
}

.palette-swatches__chip-role {
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--palette-ink) 78%, var(--palette-paper));
}

.palette-swatches__chip-hex {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--palette-ink);
}

/* -------------------------------------------------------------------------- */
/* Component 2: Architecture Flowchart                                        */
/* -------------------------------------------------------------------------- */

.architecture-flowchart {
  --architecture-paper: #fffdf7;
  --architecture-ink: var(--route-heading-ink, #243d2c);
  --architecture-wash: var(--route-main, #b7d782);
  --architecture-rule: color-mix(in srgb, var(--architecture-ink) 15%, transparent);
  margin: 0;
  padding: 1.75rem 1.5rem;
  background:
    radial-gradient(ellipse at 0 0, color-mix(in srgb, var(--architecture-wash) 19%, transparent), transparent 56%),
    radial-gradient(ellipse at 100% 100%, rgb(228 200 162 / 12%), transparent 48%),
    var(--architecture-paper);
  border: 1px solid var(--architecture-rule);
  border-radius: 12px;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--architecture-ink) 4%, transparent);
}

.architecture-flowchart__header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--architecture-rule);
}

.architecture-flowchart__title {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--architecture-ink);
  letter-spacing: -0.01em;
}

.architecture-flowchart__timeline {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.architecture-flowchart__step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.architecture-flowchart__badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.architecture-flowchart__index-pill {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 44% 56% 48% 52% / 53% 44% 56% 47%;
  background:
    radial-gradient(ellipse at 35% 30%, color-mix(in srgb, var(--architecture-wash) 40%, transparent), transparent 78%),
    color-mix(in srgb, var(--architecture-wash) 13%, var(--architecture-paper));
  color: var(--architecture-ink);
  font-family: var(--font-editorial);
  font-size: 1rem;
  font-weight: 600;
  z-index: 2;
}

.architecture-flowchart__rail-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(var(--architecture-rule), color-mix(in srgb, var(--architecture-ink) 5%, transparent));
  margin-top: 8px;
}

.architecture-flowchart__card {
  padding: 1.15rem 1.35rem;
  background:
    radial-gradient(ellipse at 0 0, color-mix(in srgb, var(--architecture-wash) 12%, transparent), transparent 72%),
    var(--architecture-paper);
  border: 1px solid var(--architecture-rule);
  border-radius: 9px;
}

.architecture-flowchart__card-header {
  margin-bottom: 0.75rem;
}

.architecture-flowchart__card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--architecture-ink);
}

.architecture-flowchart__highlights {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.architecture-flowchart__highlight-item {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--route-ink, #243d2c);
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}

.architecture-flowchart__highlight-item::marker {
  color: color-mix(in srgb, var(--architecture-ink) 50%, transparent);
}

.architecture-flowchart__highlight-item:last-child {
  margin-bottom: 0;
}

.architecture-flowchart__highlight-item strong {
  color: var(--route-heading-ink, #243d2c);
  font-weight: 600;
}

@media (max-width: 640px) {
  .palette-swatches,
  .architecture-flowchart {
    padding: 1.25rem 1rem;
  }
  .palette-swatches__grid {
    grid-template-columns: 1fr;
  }
  .architecture-flowchart__step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0.75rem;
  }
  .architecture-flowchart__index-pill {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Component 3: Lumi Mascot Cursor Showcase                                   */
/* -------------------------------------------------------------------------- */

.wiki-cursor-showcase {
  margin: 1.75rem 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.wiki-cursor-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-bottom: 0.85rem;
}

.wiki-cursor-showcase__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: color-mix(in srgb, #ffffff 82%, var(--route-base, #f3f7e0));
  border: 1px solid color-mix(in srgb, var(--route-heading-ink, #243d2c) 16%, transparent);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(36, 61, 44, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wiki-cursor-showcase__card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--route-main, #b7d782) 80%, transparent);
  box-shadow: 0 8px 20px rgba(36, 61, 44, 0.08);
}

.wiki-cursor-showcase__preview {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--route-soft, #dfee91) 60%, #fff) 0%,
    rgba(255, 255, 255, 0.5) 70%
  );
  border: 1px solid color-mix(in srgb, var(--route-main, #b7d782) 35%, transparent);
  margin-bottom: 0.9rem;
  transition: transform 0.3s ease;
}

.wiki-cursor-showcase__card:hover .wiki-cursor-showcase__preview {
  transform: scale(1.05);
}

.wiki-cursor-showcase__sprite {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.08));
}

.wiki-cursor-showcase__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wiki-cursor-showcase__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--route-main, #b7d782) 28%, transparent);
  color: var(--route-heading-ink, #243d2c);
  font-family: var(--font-sans, system-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.wiki-cursor-showcase__card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--route-heading-ink, #243d2c);
  margin-bottom: 0.35rem;
}

.wiki-cursor-showcase__desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--route-ink, #243d2c) 78%, transparent);
  margin: 0;
}

@media (max-width: 768px) {
  .wiki-cursor-showcase__grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .wiki-cursor-showcase__card {
    padding: 1rem;
  }
  .wiki-cursor-showcase__preview {
    width: 100px;
    height: 100px;
    margin-bottom: 0.6rem;
  }
  .wiki-cursor-showcase__sprite {
    width: 72px;
    height: 72px;
  }
}

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