/* 程序坞：暗桌面、居中字、底下一排会被指针吸起来的图标。 */
:root {
  --ink: #eef2fb;
  --muted: #98a1b6;
  --line: rgba(255, 255, 255, .12);
  --base: 46px;
  --max: 78px;
  --gap: 7px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  overflow: hidden;
  background: #07080d;
  color: var(--ink);
  font: 15px/1.6 ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 桌面壁纸：两块极光 + 一层细噪点，别让纯黑显得空 */
.scene {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(70% 55% at 18% 12%, rgba(64, 96, 255, .28), transparent 62%),
    radial-gradient(60% 50% at 82% 78%, rgba(255, 78, 150, .18), transparent 60%),
    radial-gradient(90% 70% at 50% 120%, rgba(30, 210, 190, .12), transparent 70%),
    #07080d;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 3px 3px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  color: rgba(238, 242, 251, .72);
  font-size: 12.5px;
  letter-spacing: .02em;
}

.topbar__brand { font-weight: 600; }

.topbar__clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px 80px;
  text-align: center;
}

.hero__kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* 渐变字：从白到近乎透明，和原稿那个 bg-clip-text 一个意思 */
.hero__word {
  margin: 0;
  font-size: clamp(88px, 18vw, 190px);
  line-height: .95;
  font-weight: 680;
  letter-spacing: -.05em;
  background: linear-gradient(180deg, #ffffff 8%, rgba(190, 200, 230, .45) 72%, rgba(140, 150, 190, .06) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 34ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ── 程序坞 ── */
.dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: var(--gap);
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(40, 44, 60, .62), rgba(18, 20, 28, .72));
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

.dock__item {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--base);
  height: var(--base);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  color: var(--ink);
  text-decoration: none;
  /* 尺寸由 JS 逐帧写进 style，这里只保证图标跟着缩放 */
  will-change: width, height;
}

/* 图标按容器百分比走：容器涨，图标跟着涨，不会变成大圆里的小点 */
.dock__item svg {
  width: 52%;
  height: 52%;
  pointer-events: none;
}

.dock__item:hover {
  border-color: rgba(255, 255, 255, .28);
}

.dock__item:focus-visible {
  outline: 2px solid #8fb4ff;
  outline-offset: 3px;
}

/* 标签：延迟一点再出来，鼠标只是路过时不会闪一堆提示 */
.dock__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 18, 26, .92);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .16s ease, transform .16s ease;
}

.dock__tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 18, 26, .92);
  transform: translateY(-50%) rotate(45deg);
}

.dock__item:hover .dock__tip,
.dock__item:focus-visible .dock__tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dock__item:hover .dock__tip {
  transition-delay: .22s;
}

/* 分隔线：和图标同高的一条竖线 */
.dock__sep {
  align-self: center;
  width: 1px;
  height: 36px;
  margin: 0 4px;
  background: rgba(255, 255, 255, .22);
}

@media (max-width: 620px) {
  :root {
    --base: 42px;
    --max: 56px;
    --gap: 4px;
  }
  .hero__lede { font-size: 13.5px; }
  .dock { bottom: 16px; padding: 8px 9px; border-radius: 19px; }
  .dock__item { border-radius: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .dock__tip { transition: none; }
}
