﻿:root {
  color-scheme: dark;
  --ink: #e3eeee;
  --muted: #99b7bd;
  --accent: #78e1cc;
  --line: #a4d2cd24;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-color: #3c626b #101b22;
}
body {
  margin: 0;
  min-height: 100dvh;
  padding: 32px 5% 80px;
  background:
    radial-gradient(ellipse at 15% 10%, #1b414647, transparent 50%),
    radial-gradient(ellipse at 85% 65%, #233b5040, transparent 48%), #101b22;
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#a4d2cd03 1px, transparent 1px),
    linear-gradient(90deg, #a4d2cd03 1px, transparent 1px);
  background-size: 64px 64px;
}
a {
  color: inherit;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 4px;
}
::selection {
  background: #4d9c8f75;
  color: #fff;
}
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.details-site-header {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.details-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.7px;
  text-decoration: none;
}
.details-wordmark > span > span {
  color: var(--muted);
  font-weight: 400;
}
.brand-mark {
  color: var(--accent);
  font-size: 38px;
  line-height: 1;
}
.back-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #bdd7d8;
  font-size: 12px;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.back-nav:hover {
  background: #244b4e;
  border-color: #78e1cc60;
}
.back-nav > span {
  font-size: 20px;
  color: var(--accent);
}
kbd {
  color: #89a7ad;
  border: 1px solid var(--line);
  padding: 2px 4px;
  border-radius: 3px;
  font:
    10px Consolas,
    monospace;
}
.details-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: auto;
  background: #14262ee8;
  border: 1px solid #82b4b435;
  border-radius: 14px;
  box-shadow: 0 24px 100px #0005;
  overflow: hidden;
  animation: detailsPopIn 0.35s ease-out both;
}
.details-wrapper[data-group="1"] {
  --accent: #69cde5;
}
.details-wrapper[data-group="2"] {
  --accent: #efb474;
}
.details-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 25px;
  border-bottom: 1px solid var(--line);
  background: #192e3680;
  min-height: 54px;
}
.document-label {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #a0b9bd;
  font:
    10px Consolas,
    monospace;
  letter-spacing: 2px;
}
.window-dots {
  display: flex;
  gap: 5px;
}
.window-dots i {
  width: 6px;
  height: 6px;
  border: 1px solid #68958e;
  border-radius: 50%;
}
.window-dots i:first-child {
  background: var(--accent);
  border-color: var(--accent);
}
.topbar-category {
  color: var(--muted);
  font-size: 10px;
}
.details-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 46px;
  padding: 40px 42px;
  border-bottom: 1px solid var(--line);
}
.image-container {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #101e26;
  box-shadow: 0 12px 35px #0002;
}
.main-cover {
  width: 100%;
  height: auto;
  display: block;
}
.project-heading {
  min-width: 0;
}
.project-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.category-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
}
.category-tag i {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
time {
  color: #77969f;
  font:
    10px Consolas,
    monospace;
  letter-spacing: 1px;
}
.title-block {
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.35;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 20px 0 16px;
  overflow-wrap: anywhere;
}
.project-tagline {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
  overflow-wrap: anywhere;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.project-tag {
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.resources-jump {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}
.resources-jump:hover {
  gap: 24px;
}
.content-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 42px;
  padding: 36px 42px 46px;
  align-items: start;
}
.content-body.without-resources {
  grid-template-columns: minmax(0, 1fr);
}
.without-resources .project-article {
  max-width: 800px;
}
.project-article {
  min-width: 0;
}
.section-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 23px;
  color: #799da5;
  font:
    10px Consolas,
    monospace;
  letter-spacing: 1.5px;
}
.section-label span {
  color: #b5ccce;
  font:
    11px "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  letter-spacing: 0;
}
.markdown-content {
  font-size: 15px;
  line-height: 1.95;
  color: #c5d8da;
  overflow-wrap: anywhere;
}
.markdown-content > :first-child {
  margin-top: 0;
}
.markdown-content > :last-child {
  margin-bottom: 0;
}
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  color: #e3eeee;
  line-height: 1.5;
  font-weight: 600;
  margin: 1.8em 0 0.75em;
}
.markdown-content h1 {
  font-size: 26px;
}
.markdown-content h2 {
  font-size: 22px;
}
.markdown-content h3 {
  font-size: 18px;
}
.markdown-content p,
.markdown-content ul,
.markdown-content ol {
  margin: 0 0 1.2em;
}
.markdown-content ul,
.markdown-content ol {
  padding-left: 1.5em;
}
.markdown-content li {
  padding-left: 0.2em;
  margin-bottom: 0.35em;
}
.markdown-content li::marker {
  color: var(--accent);
}
.markdown-content a {
  color: var(--accent);
  text-underline-offset: 4px;
}
.markdown-content a:hover {
  color: #efffff;
}
.markdown-content strong {
  color: #e7f3f1;
}
.markdown-content blockquote {
  margin: 1.5em 0;
  padding: 14px 20px;
  border-left: 2px solid var(--accent);
  background: #76bcb008;
  color: #a9c7cc;
  border-radius: 0 6px 6px 0;
}
.markdown-content blockquote > :last-child {
  margin-bottom: 0;
}
.markdown-content code {
  padding: 3px 6px;
  background: #091a2380;
  border: 1px solid #a4d2cd18;
  border-radius: 4px;
  color: #b4ddd4;
  font:
    0.88em/1.7 Consolas,
    monospace;
}
.markdown-content pre {
  max-width: 100%;
  margin: 1.5em 0;
  overflow: auto;
  padding: 20px;
  background: #0d1d25;
  border: 1px solid var(--line);
  border-radius: 8px;
  tab-size: 4;
}
.markdown-content pre code {
  padding: 0;
  border: 0;
  background: none;
  white-space: pre;
  overflow-wrap: normal;
}
.markdown-content img,
.markdown-content video {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.markdown-content iframe {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.markdown-content table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 13px;
}
.markdown-content th,
.markdown-content td {
  padding: 10px 15px;
  border: 1px solid #a4d2cd26;
  text-align: left;
}
.markdown-content th {
  color: #d7e9e8;
  background: #24414a;
  font-weight: 600;
}
.markdown-content tr:nth-child(even) {
  background: #ffffff03;
}
.markdown-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.markdown-content input[type="checkbox"] {
  accent-color: var(--accent);
}
.empty-description {
  color: var(--muted);
}
.project-resources {
  padding: 21px 18px;
  border: 1px solid var(--line);
  background: #1c333b66;
  border-radius: 9px;
  scroll-margin-top: 24px;
}
.project-resources .section-label {
  gap: 8px;
  font-size: 9px;
  margin-bottom: 18px;
}
.button-grid {
  display: grid;
  gap: 9px;
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  padding: 12px;
  border: 1px solid #a4d2cd20;
  border-radius: 6px;
  background: #132830;
  color: #d6e8e6;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.action-btn:hover {
  background: #274a50;
  border-color: #78e1cc65;
}
.action-btn .icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(0.8);
}
.btn-text {
  min-width: 0;
  flex: 1;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.counter-badge {
  color: #98b6bb;
  background: #304d5666;
  border-radius: 3px;
  font:
    10px Consolas,
    monospace;
  padding: 3px 5px;
}
.details-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 42px;
  border-top: 1px solid var(--line);
  background: #10212a60;
}
.details-footer > span {
  color: #76989e;
  font:
    9px Consolas,
    monospace;
  letter-spacing: 1.5px;
}
.details-footer i {
  color: var(--accent);
  font-size: 16px;
  font-style: normal;
  margin-left: 8px;
}
.details-footer a {
  color: #aecacc;
  font-size: 11px;
  text-decoration: none;
}
.details-footer a:hover {
  color: var(--accent);
}
#areaM {
  background: #101b22e8;
  backdrop-filter: blur(10px);
}
@keyframes detailsPopIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes detailsPopOut {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}
.details-wrapper.closing {
  animation: detailsPopOut 0.15s ease-in both;
  pointer-events: none;
}
@media (max-width: 900px) {
  .details-hero {
    padding: 28px;
    gap: 28px;
  }
  .content-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 28px;
    gap: 30px;
  }
  .button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .details-footer {
    padding: 22px 28px;
  }
}
@media (max-width: 600px) {
  body {
    padding: 22px 4% 70px;
  }
  .details-site-header {
    gap: 12px;
    margin-bottom: 22px;
  }
  .details-wordmark {
    font-size: 17px;
    gap: 6px;
  }
  .brand-mark {
    font-size: 30px;
  }
  .back-nav {
    font-size: 11px;
    padding: 7px 9px;
    gap: 6px;
  }
  .back-nav kbd {
    display: none;
  }
  .details-wrapper {
    border-radius: 10px;
  }
  .details-topbar {
    padding: 15px 18px;
    min-height: 49px;
  }
  .document-label {
    font-size: 9px;
    letter-spacing: 1px;
    gap: 11px;
  }
  .details-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
    padding: 20px;
  }
  .title-block {
    font-size: 29px;
    margin: 15px 0 12px;
  }
  .project-tagline {
    font-size: 13px;
  }
  .resources-jump {
    margin-top: 18px;
  }
  .content-body {
    padding: 26px 20px;
  }
  .markdown-content {
    font-size: 14px;
  }
  .markdown-content h1 {
    font-size: 23px;
  }
  .markdown-content h2 {
    font-size: 20px;
  }
  .markdown-content pre {
    padding: 15px;
  }
  .project-resources {
    padding: 18px 14px;
  }
  .button-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .details-footer {
    padding: 18px 20px;
  }
  .details-footer > span {
    font-size: 8px;
    letter-spacing: 0.6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
