/* About panel layer: main content/prose, title bar, and reading panel styles. */
/* ── content ── */
.hacker-content {
  position: relative;
  z-index: 10;
}
/* One outer reading surface; the inner response is separated by its title bar. */
.about-shell .prose {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  background: linear-gradient(160deg, rgba(12, 20, 15, 0.72), rgba(4, 9, 6, 0.84));
  border: 1px solid rgba(157, 181, 166, 0.26);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.about-shell {
  width: var(--about-panel-width);
  max-width: calc(100% - 2em);
  margin: 0 auto 2rem;
}
/* ── toast ── */
.hacker-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 56;
  padding: 0.5rem 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 24px rgba(0, 255, 100, 0.12);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.hacker-toast.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 1360px) {
  .hacker-toast {
    left: calc(var(--about-right, 100vw) + 12px);
    right: auto;
    width: max-content;
    max-width: calc(100vw - var(--about-right, 100vw) - 28px);
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
}
/* ── progress bar ── */
.hacker-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: calc(var(--read-progress, 0) * 100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(0, 255, 100, 0.9));
  box-shadow: 0 0 12px rgba(0, 255, 100, 0.25);
  z-index: 100;
  pointer-events: none;
}
/* ── back to top ── */
.hacker-back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 3.5rem;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.88);
  color: rgba(255, 255, 255, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 55;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
}
.hacker-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hacker-back-to-top:hover {
  box-shadow: 0 0 20px rgba(0, 255, 100, 0.25);
  border-color: rgba(0, 255, 100, 0.5);
  color: rgba(0, 255, 100, 0.95);
}
/* ── title ── */
.about-title {
  margin-bottom: 1rem;
}
.hacker-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.62em;
  letter-spacing: 0.04em;
}
.hacker-title-bar {
  position: relative;
  height: 3px;
  margin: 0.75rem 0 0.1rem;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.1);
}
.hacker-title-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 35%;
  background: linear-gradient(
    90deg,
    rgba(11, 15, 20, 0.4),
    rgba(255, 0, 51, 0.7),
    rgba(156, 163, 175, 0.6),
    rgba(11, 15, 20, 0.4)
  );
  animation: hacker-bar-sweep 3.8s linear infinite;
}
@keyframes hacker-bar-sweep {
  to {
    left: 100%;
  }
}
/* Reading window shares the tool window surface and title bar. */
.hacker-response {
  border: 1px solid rgba(157, 181, 166, 0.14);
  background: rgba(3, 8, 5, 0.22);
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}
.hacker-response-header {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7rem 1.2rem;
  background: rgba(24, 34, 28, 0.7);
  border-bottom: 1px solid var(--hacker-border);
}
.hacker-window-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.hacker-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hacker-window-dots span:nth-child(1) {
  background: #ff5f57;
}
.hacker-window-dots span:nth-child(2) {
  background: #febc2e;
}
.hacker-window-dots span:nth-child(3) {
  background: #28c840;
}
.hacker-response-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75em;
  color: #d1dfd6;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hacker-body {
  padding: 1rem;
  background: transparent;
  font-family: var(--hacker-ui-font);
  font-size: 0.9375rem;
  line-height: 1.85;
}
/* ── prose body ── */
.hacker-body > p,
.hacker-body > .about-signature {
  white-space: pre-line;
}

.hacker-body a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration-color: rgba(255, 255, 255, 0.35);
}
.hacker-body a:hover {
  color: rgba(0, 255, 100, 0.95);
  text-decoration-color: rgba(0, 255, 100, 0.6);
}
/* ── cursor ── */
.hacker-cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: rgba(0, 255, 100, 0.9);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: hacker-cursor-blink 1s step-end infinite;
}
@keyframes hacker-cursor-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
/* ── section titles ── */
.about-section-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin: 2rem 0 0.65rem;
}
.about-title-text {
  position: relative;
  display: block;
}
.about-title-sizing {
  color: transparent;
}
.about-title-typing {
  position: absolute;
  inset: 0;
}
/* ── manifest box ── */
.about-manifest {
  margin: 1rem 0 1.4rem;
  padding: 0.8rem 0.95rem;
  border: 0;
  border-left: 2px solid #55856a;
  border-radius: 0 4px 4px 0;
  background: rgba(64, 113, 80, 0.09);
}
.about-manifest ul {
  margin: 0;
  padding-left: 1.1rem;
}
.about-manifest li {
  margin: 0.38rem 0;
}
.about-manifest li::marker {
  color: rgba(255, 255, 255, 0.5);
}
/* ── signature ── */
.about-signature {
  margin-top: 1.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
/* ── regenerate ── */
.hacker-regenerate {
  display: block;
  margin: 2em auto 0;
  padding: 0.5em 1.2em;
  font-size: 0.85em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.hacker-regenerate:hover:not(:disabled) {
  color: rgba(0, 255, 100, 0.95);
  border-color: rgba(0, 255, 100, 0.4);
  background: rgba(0, 255, 100, 0.06);
  box-shadow: 0 0 14px rgba(0, 255, 100, 0.15);
}
/* ── prose container: Anonymous 全等宽 ── */
.prose {
  width: 720px;
  max-width: calc(100% - 2em);
  margin: auto;
  padding: 1em;
  color: rgba(255, 255, 255, 0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}
.prose p {
  color: rgba(255, 255, 255, 0.82);
}
.prose hr {
  border-color: rgba(255, 255, 255, 0.15);
}
.title {
  margin-bottom: 1em;
  padding: 1em 0;
  text-align: center;
  line-height: 1;
}
.title.about-title {
  padding-top: 0.5em;
}
.title h1 {
  margin: 0 0 0.5em 0;
  position: relative;
  font-family: 'Times New Roman', 'Noto Serif CJK SC', 'Songti SC', 'SimSun', serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  letter-spacing: 0.08em;
  color: #b6f6c5;
  text-shadow:
    0 0 6px rgba(145, 255, 181, 0.24),
    0 0 20px rgba(55, 205, 115, 0.12);
}
@supports (background-clip: text) {
  .title h1 {
    background: linear-gradient(
      180deg,
      #edfff3,
      #cbffdd 43%,
      transparent 43%,
      transparent 44.3%,
      #dcffe8 44.3%,
      #89e4ad
    );
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
@media (forced-colors: active) {
  .title h1 {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
  }
}
/* ── mouse glow (green) ── */
.hacker-mouse-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  left: calc(var(--mouse-x, -9999px) - 150px);
  top: calc(var(--mouse-y, -9999px) - 150px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
}
/* ── load scan ── */
.hacker-load-scan {
  position: fixed;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(11, 15, 20, 0.3),
    rgba(255, 0, 51, 0.7),
    rgba(156, 163, 175, 0.6),
    rgba(11, 15, 20, 0.3)
  );
  box-shadow: 0 0 12px rgba(255, 0, 51, 0.4);
  animation: hacker-scan 0.8s ease-out forwards;
  pointer-events: none;
  z-index: 20;
}
@keyframes hacker-scan {
  0% {
    top: 0;
    opacity: 1;
  }
  100% {
    top: 100vh;
    opacity: 0.2;
  }
}
/* ── flash on regenerate ── */
.hacker-flash {
  animation: hacker-flash-anim 0.3s ease-out;
}
@keyframes hacker-flash-anim {
  0% {
    filter: brightness(2) saturate(0.5);
  }
  100% {
    filter: none;
  }
}

.about-shell .hacker-body > .about-section-title:first-child {
  margin-top: 0;
}
.about-shell .hacker-body > p {
  margin-top: 0;
}
.about-shell .about-signature {
  border-left: 1px solid #55856a;
  padding-left: 1rem;
  margin-left: 0;
  color: #a3b7aa;
}
.about-shell .title.about-title {
  padding: 0.75rem 0 0.5rem;
  margin-bottom: 1.75rem;
}
.about-shell .title h1 {
  line-height: 1.2;
}
.about-shell .title hr {
  border: 0;
  border-top: 1px solid rgba(157, 181, 166, 0.16);
}
.about-shell .hacker-regenerate {
  border-radius: 4px;
  border-color: var(--hacker-border);
}
@media (max-width: 600px) {
  .about-shell .hacker-body {
    padding: 1.1rem;
  }
  .about-shell .title h1 {
    letter-spacing: 0.04em;
  }
}

.about-page .hacker-body .about-section-title {
  scroll-margin-top: 7rem;
  font-family: var(--hacker-ui-font);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  color: #f5dbab;
  padding-left: 0.65rem;
  border-left: 2px solid #ad8c55;
  letter-spacing: 0.015em;
}
.about-page .hacker-body .about-contact-title {
  color: #ffda93;
  border-left: 3px solid #efbd66;
  padding: 0.55rem 0.65rem;
  background: linear-gradient(90deg, #efbd661a, transparent);
  text-shadow: 0 0 14px #efbd6630;
}
.about-page .about-contact-copy a {
  color: #ffda93;
  text-decoration-color: #ad8c55;
  text-underline-offset: 0.2em;
  font-weight: 600;
}
.about-page .hacker-body .about-section-title:target {
  border-left-color: #ffda93;
}
