﻿/* ---------------------------------------------------------------
   MoeDock — 夜色桌面
   palette: 夜 #0A0E1F / 面板 #121834 / 月光 #EEF1FF
            女仆蓝 #6C8CFF / 魔女紫 #B08CFF / 台灯 #FFC978
   --------------------------------------------------------------- */

:root {
  --bg: #0a0e1f;
  --bg-2: #0d1330;
  --panel: #121834;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #eef1ff;
  --dim: rgba(238, 241, 255, 0.62);
  --dim-2: rgba(238, 241, 255, 0.42);
  --maid: #6c8cff;
  --witch: #b08cff;
  --lamp: #ffc978;
  --max: 1120px;
  --font: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: inherit; }

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------- top bar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 31, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img { border-radius: 8px; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.nav a {
  color: var(--dim);
  text-decoration: none;
  transition: color 140ms ease;
}

.nav a:hover { color: var(--ink); }

.nav-dl {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink) !important;
}

/* ---------------- hero ---------------- */

.hero { padding-top: 44px; }

.desk {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 18% 6%, #25336e 0%, rgba(37, 51, 110, 0) 55%),
    radial-gradient(90% 70% at 92% 12%, rgba(176, 140, 255, 0.22) 0%, rgba(176, 140, 255, 0) 60%),
    linear-gradient(180deg, #18214a 0%, #101736 58%, #0b1026 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  touch-action: pan-y;
  user-select: none;
}

.desk::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.4px 1.4px at 28% 12%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.8px 1.8px at 46% 26%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 64% 14%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.6px 1.6px at 78% 30%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.3px 1.3px at 88% 18%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.2px 1.2px at 36% 40%, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

.desk-glow {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  left: -12%;
  bottom: -34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 120, 0.16), rgba(255, 201, 120, 0) 68%);
  pointer-events: none;
}

.desk-chips {
  position: absolute;
  top: 22px;
  left: 24px;
  display: flex;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--dim);
  font-size: 12px;
}

.chip i {
  width: 16px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffd88f, #e0a94e);
}

/* pets inside the desk */

.pet {
  position: absolute;
  bottom: 44px;
  height: 62%;
  cursor: grab;
  transition: filter 200ms ease;
  touch-action: none;
}

.pet:active { cursor: grabbing; }

.pet img {
  display: block;
  height: 100%;
  width: auto;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.42));
  pointer-events: none;
  -webkit-user-drag: none;
}

.pet:hover img {
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.5)) brightness(1.03);
}

.pet-maid { left: 17%; }

.pet-witch { right: 15%; }

.pet.hop img {
  animation: hop 520ms cubic-bezier(0.22, 0.9, 0.25, 1);
}

@keyframes hop {
  0%   { transform: translateY(0) scale(1, 1); }
  18%  { transform: translateY(2px) scale(1.05, 0.95); }
  45%  { transform: translateY(-22px) scale(0.98, 1.03); }
  72%  { transform: translateY(0) scale(1.04, 0.96); }
  86%  { transform: translateY(-4px) scale(0.99, 1.01); }
  100% { transform: translateY(0) scale(1, 1); }
}

.bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 6px) scale(0.94);
  padding: 9px 14px;
  border-radius: 12px;
  background: #fffdf7;
  color: #241f30;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  background: #fffdf7;
  transform: rotate(45deg);
  border-radius: 2px;
}

.bubble.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.drag-hint {
  position: absolute;
  left: 32%;
  top: 22%;
  color: rgba(255, 201, 120, 0.85);
  font-size: 12px;
  letter-spacing: 0.04em;
  transform: rotate(-8deg);
  display: flex;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.drag-hint span { padding-top: 2px; }

.drag-hint.is-gone { opacity: 0; }

.taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: rgba(8, 11, 26, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.tb-start,
.tb-app {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}

.tb-start { border-radius: 5px; background: rgba(255, 201, 120, 0.55); }

.tb-app-live {
  background: var(--maid);
  box-shadow: 0 0 0 2px rgba(108, 140, 255, 0.25);
}

.tb-clock {
  margin-left: auto;
  font-size: 11px;
  color: var(--dim-2);
  font-variant-numeric: tabular-nums;
}

/* hero copy */

.hero-copy {
  padding: 52px 0 0;
  max-width: 700px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lede {
  margin: 20px 0 0;
  max-width: 30em;
  font-size: 17px;
  color: var(--dim);
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--lamp);
  color: #26190a;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(255, 201, 120, 0.7);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -12px rgba(255, 201, 120, 0.8);
}

.btn-meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(38, 25, 10, 0.62);
}

.btn-quiet {
  color: var(--dim);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(238, 241, 255, 0.25);
  padding-bottom: 2px;
}

.btn-quiet:hover { color: var(--ink); border-color: var(--ink); }

.fineprint {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--dim-2);
}

/* ---------------- sections ---------------- */

section { padding-top: 110px; }

h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.015em;
  font-weight: 700;
}

.section-lede {
  margin: 12px 0 0;
  max-width: 34em;
  color: var(--dim);
  font-size: 15.5px;
}

/* cast */

.cast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 38px;
}

.member {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}

.member-art {
  position: relative;
  height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.member-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(18, 24, 52, 0), var(--panel));
}

.member-art img {
  height: 300px;
  width: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.4));
}

.member-maid .member-art {
  background: radial-gradient(90% 90% at 50% 20%, rgba(108, 140, 255, 0.28), rgba(108, 140, 255, 0) 70%);
}

.member-witch .member-art {
  background: radial-gradient(90% 90% at 50% 20%, rgba(176, 140, 255, 0.26), rgba(176, 140, 255, 0) 70%);
}

.member-body { padding: 4px 26px 28px; }

.member-role {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--maid);
}

.member-witch .member-role { color: var(--witch); }

.member-body h3 {
  margin: 2px 0 10px;
  font-size: 30px;
  letter-spacing: 0.02em;
}

.member-body p {
  margin: 0;
  color: var(--dim);
  font-size: 15px;
  max-width: 30em;
}

.quotes {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.quotes li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--dim-2);
  font-size: 13.5px;
}

.quotes li:last-child { border-bottom: 0; }

/* how */

.rows {
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.row dt {
  font-weight: 700;
  font-size: 15.5px;
}

.row dd {
  margin: 0;
  color: var(--dim);
  font-size: 15px;
  max-width: 46em;
}

/* download */

.download {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  padding-bottom: 60px;
}

.download-main p {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 15px;
  max-width: 36em;
}

.btn-large {
  margin-top: 26px;
  padding: 16px 26px;
  font-size: 17px;
  width: fit-content;
}

.download-side {
  border-left: 1px solid var(--line);
  padding-left: 36px;
}

.download-side h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.download-side h3 + ul { margin-bottom: 26px; }

.download-side ul {
  margin: 0;
  padding: 0 0 0 16px;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.9;
}

.checksum {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--dim-2);
}

.checksum summary {
  cursor: pointer;
  width: fit-content;
  color: var(--dim);
}

.checksum p {
  margin: 8px 0 0;
  color: var(--dim-2);
}

.checksum code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  color: var(--dim);
  word-break: break-all;
}

/* footer */

.foot {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  margin-top: 40px;
  font-size: 12.5px;
  color: var(--dim-2);
}

.foot p { margin: 4px 0; }

.foot-dim { color: rgba(238, 241, 255, 0.28); }

/* ---------------- responsive ---------------- */

@media (max-width: 860px) {
  .cast-grid { grid-template-columns: 1fr; }
  .download { grid-template-columns: 1fr; gap: 34px; }
  .download-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 26px; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .desk { aspect-ratio: 4 / 3; }
  .pet { height: 56%; }
  .pet-maid { left: 8%; }
  .pet-witch { right: 6%; }
  .drag-hint { display: none; }
  .desk-chips { display: none; }
  section { padding-top: 76px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  .nav a:not(.nav-dl) { display: none; }
  .hero-copy h1 br { display: none; }
  .member-art { height: 250px; }
  .member-art img { height: 236px; }
}

/* one orchestrated entrance, no per-section reveals */

@media (prefers-reduced-motion: no-preference) {
  .desk { animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero-copy { animation: fade 700ms 120ms ease both; }
  .pet-maid { animation: pet-in 800ms 220ms cubic-bezier(0.2, 0.9, 0.25, 1.2) both; }
  .pet-witch { animation: pet-in 800ms 340ms cubic-bezier(0.2, 0.9, 0.25, 1.2) both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pet-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pet.hop img { animation: none; }
}

