:root {
  color-scheme: dark;
  --ink: #f7f9ff;
  --muted: rgba(235, 241, 255, .68);
  --glass: rgba(255, 255, 255, .028);
  --glass-hover: rgba(255, 255, 255, .05);
  --edge: rgba(255, 255, 255, .18);
  --shadow: rgba(2, 7, 27, .34);
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  display: grid;
  place-items: center;
  padding: 56px 24px 42px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background:
    radial-gradient(circle at 16% 14%, rgba(145, 186, 255, .54), transparent 26rem),
    radial-gradient(circle at 83% 77%, rgba(183, 119, 255, .44), transparent 31rem),
    radial-gradient(circle at 81% 15%, rgba(73, 231, 222, .24), transparent 21rem),
    linear-gradient(142deg, #101a3c 0%, #26376e 47%, #342453 100%);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: min(46vw, 540px);
  aspect-ratio: 1;
  border-radius: 43% 57% 62% 38% / 44% 43% 57% 56%;
  content: "";
  filter: blur(1px);
  opacity: .82;
  animation: drift 18s ease-in-out infinite alternate;
}

body::before {
  top: -12%;
  right: -9%;
  background: linear-gradient(135deg, rgba(159, 211, 255, .42), rgba(133, 90, 246, .04));
}

body::after {
  bottom: -17%;
  left: -9%;
  background: linear-gradient(135deg, rgba(98, 237, 225, .16), rgba(120, 139, 255, .38));
  animation-delay: -7s;
}

.container {
  width: min(100%, 960px);
}

header {
  margin: 0 0 42px;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .18);
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(237, 246, 255, .65);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .21em;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 320;
  letter-spacing: -.055em;
}

.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(188, 255, 225, .25);
  border-radius: 999px;
  color: rgba(223, 255, 238, .9);
  background: rgba(48, 195, 130, .12);
  font-size: 11px;
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #70f0b6;
  box-shadow: 0 0 12px #70f0b6;
}

/* ============================================================
   液态玻璃卡片（源自 Gitee 纯CSS液态玻璃 的 contrast 熔合技巧）
   核心：父容器 filter: contrast() 锐化卡片上的模糊高光/暗核 → 液态凝结
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  filter: contrast(2) saturate(1.05);
}

.card {
  z-index: 500;
  position: relative;
  isolation: isolate;
  min-height: 218px;
  overflow: hidden;
  padding: 30px;
  border: 1px double rgba(255, 255, 255, .16);
  border-radius: 28px;
  color: var(--ink);
  /* 玻璃底：几乎无色透明，透过星空背景 */
  background: rgba(255, 255, 255, .03);
  box-shadow:
    inset 2px -2px 1px -1px rgba(255, 255, 255, .85),
    inset -2px 2px 1px -1px rgba(255, 255, 255, .85),
    inset 6px -6px 1px -6px rgba(255, 255, 255, .5),
    inset -6px 6px 1px -6px rgba(255, 255, 255, .5),
    inset 0 0 2px rgba(0, 0, 0, .78),
    0 14px 34px rgba(2, 7, 27, .32);
  text-decoration: none;
  backdrop-filter: blur(2px) saturate(112%);
  -webkit-backdrop-filter: blur(2px) saturate(112%);
  filter: brightness(.96);
  cursor: pointer;
  transition: transform .42s cubic-bezier(.2, .8, .2, 1), background .42s ease, box-shadow .42s ease, backdrop-filter .42s ease, -webkit-backdrop-filter .42s ease;
}

/* 液态暗核：内部黑色细边 blur(8px)，contrast 后凝结成玻璃厚度 */
.card::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border: 1px solid rgba(0, 0, 0, .6);
  border-radius: 23px;
  filter: blur(8px);
  pointer-events: none;
}

/* 玻璃反光：对角白色渐变 blur(3px)，形成斜向晶莹高光 */
.card::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, .72) 0%,
    transparent 23%,
    transparent 77%,
    rgba(255, 255, 255, .68) 100%
  );
  filter: blur(3px);
  pointer-events: none;
}

/* 内容压在液态层之上，加轻微投影补偿 contrast 对文字的锐化 */
.card > * {
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .22));
}

.card:hover,
.card:focus-visible {
  /* 毛玻璃变浓：更白、更不透明、背景更糊 */
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  filter: brightness(1);
  box-shadow:
    inset 2px -2px 1px -1px rgba(255, 255, 255, .98),
    inset -2px 2px 1px -1px rgba(255, 255, 255, .92),
    inset 0 0 2px rgba(0, 0, 0, .78),
    0 24px 46px rgba(2, 7, 27, .5);
  outline: none;
  transform: translateY(-5px) scale(1.015);
}

.icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 17px;
  background: rgba(255, 255, 255, .025);
  box-shadow: inset 1px -1px 1px rgba(255, 255, 255, .5), inset -1px 1px 1px rgba(255, 255, 255, .42), 0 10px 21px rgba(13, 26, 75, .17);
  font-size: 25px;
}

.card-title { margin-bottom: 8px; font-size: 22px; font-weight: 590; letter-spacing: -.025em; }
.card-desc { max-width: 28ch; color: rgba(248, 251, 255, .78); font-size: 14px; line-height: 1.6; }
.card-url { margin-top: 16px; color: rgba(229, 241, 255, .51); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .02em; }

footer { margin-top: 34px; color: rgba(230, 240, 255, .5); text-align: center; font-size: 12px; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0); }
  to { transform: translate3d(-5%, 8%, 0) rotate(22deg); }
}

@media (max-width: 620px) {
  body { padding: 40px 16px 30px; }
  header { margin-bottom: 30px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card { min-height: 185px; padding: 24px; border-radius: 24px; }
  .icon { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}