:root {
  color-scheme: light;
  --bg: #eefcff;
  --text: #20234e;
  --muted: #61719f;
  --panel: rgba(255, 255, 255, 0.66);
  --panel-strong: #ffffff;
  --line: rgba(84, 127, 214, 0.2);
  --shadow: 0 22px 70px rgba(48, 92, 181, 0.18);
  --cyan: #47d8ff;
  --aqua: #7df5ff;
  --violet: #8d72ff;
  --pink: #f27bff;
  --yellow: #fff07a;
  --ink: #20234e;
}

body.dark {
  color-scheme: dark;
  --bg: #0e1433;
  --text: #f9f5ff;
  --muted: #b9c6f5;
  --panel: rgba(22, 29, 67, 0.7);
  --panel-strong: #18204e;
  --line: rgba(196, 237, 255, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 16%, rgba(125, 245, 255, 0.44), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(141, 114, 255, 0.32), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(83, 132, 157, 0.1);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-art,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(24, 38, 102, 0.76) 0%, rgba(61, 114, 205, 0.36) 46%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(0deg, rgba(49, 55, 142, 0.28), transparent 48%);
}

.topbar,
.hero-content {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.32);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--violet));
  color: #24203a;
  box-shadow: 0 0 24px rgba(125, 245, 255, 0.46);
}

.theme-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: 72px;
  height: 38px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.theme-toggle span {
  display: grid;
  place-items: center;
  border-radius: 999px;
}

body.dark .theme-toggle .moon,
body:not(.dark) .theme-toggle .sun {
  background: rgba(255, 255, 255, 0.9);
  color: #27233d;
}

.hero-content {
  max-width: 650px;
  padding: 92px 42px 54px;
  color: #ffffff;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: #d9fcff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10em;
  margin-bottom: 26px;
  font-size: 72px;
  line-height: 1.02;
}

.rainbow-title {
  background-image: linear-gradient(90deg, #ffffff, #7df5ff, #47d8ff, #8d72ff, #f27bff, #ffffff);
  background-size: 220% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 16px 52px rgba(23, 68, 150, 0.28);
  animation: titleShine 9s linear infinite;
}

.search {
  display: grid;
  grid-template-columns: 1fr 54px;
  width: min(100%, 560px);
  min-height: 62px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(25, 66, 139, 0.22);
}

.search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  background: transparent;
  color: #2b2940;
  font: inherit;
}

.search button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #ffffff;
  cursor: pointer;
}

.search svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.4;
}

.panel,
.link-board {
  margin-top: 22px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 26px;
}

.kicker {
  color: var(--violet);
}

#clock {
  margin: 0;
  color: var(--muted);
  font-size: 22px;
  font-weight: 800;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.site-card {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(235, 252, 255, 0.72)),
    var(--panel-strong);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-card:hover {
  transform: translateY(-4px);
  border-color: rgba(71, 216, 255, 0.68);
  box-shadow: 0 16px 36px rgba(58, 100, 200, 0.18);
}

.site-icon {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64), 0 10px 24px rgba(84, 127, 214, 0.2);
}

.site-icon img {
  width: 48px;
  height: 48px;
  display: block;
}

.text-logo {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #ffffff;
  font-size: 25px;
  font-weight: 900;
}

.site-card strong,
.site-card small {
  display: block;
}

.site-card strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.site-card small {
  color: var(--muted);
  line-height: 1.45;
}

.link-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.link-board article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.link-board h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.link-board a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.link-board a::after {
  content: "↗";
  color: var(--violet);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.time-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: grid;
  gap: 4px;
  min-width: 148px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(48, 92, 181, 0.18);
  backdrop-filter: blur(14px);
}

body.dark .time-dock {
  background: rgba(22, 29, 67, 0.72);
  color: #f9f5ff;
}

#time {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

#date {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.ink-effect {
  position: fixed;
  z-index: 20;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 18%, rgba(125, 245, 255, 0.62) 20% 42%, rgba(141, 114, 255, 0.28) 45% 66%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: inkFade 820ms ease-out forwards;
}

@keyframes titleShine {
  from {
    background-position: 0% center;
  }

  to {
    background-position: 220% center;
  }
}

@keyframes inkFade {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(7);
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 106px 24px 34px;
  }

  h1 {
    font-size: 48px;
  }

  .quick-grid,
  .link-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero {
    border-radius: 16px;
  }

  .topbar {
    padding: 14px;
  }

  .hero-content {
    padding: 112px 18px 28px;
  }

  h1 {
    max-width: 9em;
    font-size: 38px;
  }

  .search {
    grid-template-columns: 1fr 48px;
    min-height: 56px;
    border-radius: 8px;
  }

  .panel {
    padding: 18px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .quick-grid,
  .link-board {
    grid-template-columns: 1fr;
  }

  .time-dock {
    right: 10px;
    bottom: 10px;
    min-width: 128px;
    padding: 10px 12px;
  }

  #time {
    font-size: 20px;
  }
}