:root {
  --panel: rgba(255, 255, 255, .08);
  --panel2: rgba(255, 255, 255, .13);
  --text: #eef3ff;
  --muted: #9aa7c7;
  --brand: #6ee7ff;
  --brand2: #a78bfa;
  --border: rgba(255, 255, 255, .16);
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  --radius: 24px
}
* {
  box-sizing: border-box
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at 10% 10%, rgba(103, 232, 249, .25), transparent 28%), radial-gradient(circle at 85% 0, rgba(167, 139, 250, .22), transparent 30%), linear-gradient(135deg, #040712, #090b22 60%, #050816);
  color: var(--text);
  min-height: 100vh
}
body.light {
  --panel: rgba(255, 255, 255, .78);
  --panel2: rgba(255, 255, 255, .95);
  --text: #10152b;
  --muted: #53607c;
  --border: rgba(25, 31, 55, .12);
  background: linear-gradient(135deg, #f8fbff, #edf2ff)
}
a {
  color: inherit;
  text-decoration: none
}
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  z-index: -2
}
.orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(50px);
  opacity: .35;
  z-index: -1;
  animation: float 9s ease-in-out infinite
}
.orb.one {
  left: -120px;
  top: 130px;
  background: #22d3ee
}
.orb.two {
  right: -130px;
  top: 280px;
  background: #8b5cf6;
  animation-delay: -2s
}
@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1)
  }
  50% {
    transform: translate3d(30px, -30px, 0) scale(1.12)
  }
}
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 22, .62);
  border-bottom: 1px solid var(--border)
}
body.light .nav {
  background: rgba(248, 251, 255, .72)
}
.nav-inner {
  max-width: 1180px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900
}
.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  display: grid;
  place-items: center;
  color: #07101f
}
.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}
.nav-links a, .ghost-btn, .primary-btn, .tag {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  transition: .25s;
  cursor: pointer
}
.nav-links a:hover, .ghost-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 231, 255, .65)
}
.primary-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #07101f;
  font-weight: 800;
  border: none
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 44px 20px 80px
}
.eyebrow {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase
}
.h1 {
  font-size: clamp(42px, 8vw, 80px);
  line-height: .95;
  margin: 14px 0;
  background: linear-gradient(135deg, #fff, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}
.lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px
}
.glass {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px)
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px
}
.card {
  padding: 28px;
  transition: .25s
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 231, 255, .55)
}
.card p {
  color: var(--muted);
  line-height: 1.7
}
.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  outline: none
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px
}
.tag {
  font-size: 13px;
  padding: 7px 10px;
  color: var(--muted)
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transform: translateY(30px);
  opacity: 0;
  transition: .25s;
  z-index: 200
}
.toast.show {
  transform: translateY(0);
  opacity: 1
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: .7s
}
.reveal.visible {
  opacity: 1;
  transform: none
}
footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  color: var(--muted)
}
@media(max-width:860px) {
  .grid {
    grid-template-columns: 1fr
  }
  .nav-inner {
    align-items: flex-start;
    flex-direction: column
  }
  .h1 {
    font-size: 46px
  }
}
/* 精美白天/夜晚主题切换按钮 */ .theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 23, 42, .82), rgba(30, 41, 59, .66));
  color: var(--text);
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .06), 0 10px 32px rgba(0, 0, 0, .18)
}
.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 231, 255, .7);
  box-shadow: 0 14px 42px rgba(34, 211, 238, .16), inset 0 0 18px rgba(255, 255, 255, .08)
}
.theme-icon {
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .24));
  transition: opacity .25s ease, transform .25s ease
}
.theme-track {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #172554, #312e81);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35);
  overflow: hidden
}
.theme-track:before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  left: 25px;
  top: 5px;
  background: #fff;
  box-shadow: 8px 6px 0 rgba(255, 255, 255, .72), -5px 10px 0 rgba(255, 255, 255, .45);
  opacity: .8;
  transition: .25s
}
.theme-thumb {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  left: 2px;
  top: 2px;
  background: radial-gradient(circle at 35% 35%, #fff, #dbeafe 58%, #93c5fd);
  box-shadow: 0 0 14px rgba(147, 197, 253, .8);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), background .25s ease, box-shadow .25s ease
}
body.light .theme-toggle {
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(224, 242, 254, .86));
  box-shadow: 0 12px 36px rgba(14, 165, 233, .14), inset 0 0 18px rgba(255, 255, 255, .8)
}
body.light .theme-track {
  background: linear-gradient(135deg, #7dd3fc, #fde68a)
}
body.light .theme-track:before {
  opacity: 0
}
body.light .theme-thumb {
  transform: translateX(20px);
  background: radial-gradient(circle at 35% 35%, #fff7ed, #facc15 60%, #fb923c);
  box-shadow: 0 0 16px rgba(250, 204, 21, .9)
}
body.light .theme-icon.moon {
  opacity: .38;
  transform: scale(.86)
}
body:not(.light) .theme-icon.sun {
  opacity: .42;
  transform: scale(.86)
}
