: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, .filter-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, .filter-btn:hover, .filter-btn.active {
  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)
}
.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 20px 0
}
.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  outline: none
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}
.card {
  padding: 22px;
  transition: .25s
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 231, 255, .55)
}
.card p {
  color: var(--muted);
  line-height: 1.7
}
.icon {
  font-size: 30px;
  margin-bottom: 12px
}
.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)
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .58);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px
}
.modal.show {
  display: flex
}
.modal-box {
  max-width: 720px;
  width: 100%;
  padding: 26px;
  max-height: 86vh;
  overflow: auto
}
.close {
  float: right;
  font-size: 24px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer
}
.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
  }
  .toolbar {
    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)
}
/* 软件品牌图标 */ .tool-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px
}
.tool-head h3 {
  margin: 0 0 4px;
  font-size: 22px
}
.tool-head small {
  color: var(--muted)
}
.software-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  color: white;
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -.04em;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .26);
  transition: transform .25s ease, box-shadow .25s ease
}
.software-icon.large {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  font-size: 24px
}
.software-icon:before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle at 28% 20%, rgba(255, 255, 255, .65), transparent 22%), linear-gradient(135deg, rgba(255, 255, 255, .28), transparent 42%);
  transform: rotate(18deg)
}
.software-icon span {
  position: relative;
  z-index: 1;
  text-shadow: 0 8px 18px rgba(0, 0, 0, .28)
}
.card:hover .software-icon {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 20px 46px rgba(34, 211, 238, .18), inset 0 1px 0 rgba(255, 255, 255, .3)
}
.software-icon.wps {
  background: linear-gradient(135deg, #ef4444, #f97316)
}
.software-icon.everything {
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #2b1600
}
.software-icon.vscode {
  background: linear-gradient(135deg, #38bdf8, #2563eb)
}
.software-icon.git {
  background: linear-gradient(135deg, #f97316, #ef4444)
}
.software-icon.node {
  background: linear-gradient(135deg, #22c55e, #15803d)
}
.software-icon.ffmpeg {
  background: linear-gradient(135deg, #84cc16, #166534)
}
.software-icon.resolve {
  background: conic-gradient(from 20deg, #38bdf8, #a78bfa, #ef4444, #facc15, #38bdf8)
}
.software-icon.potplayer {
  background: linear-gradient(135deg, #fde047, #f59e0b);
  color: #2b1600
}
.software-icon.iina {
  background: linear-gradient(135deg, #111827, #64748b)
}
.software-icon.zip {
  background: linear-gradient(135deg, #64748b, #1f2937)
}
.software-icon.raycast {
  background: linear-gradient(135deg, #ff5c5c, #ff8a80)
}
.software-icon.handbrake {
  background: linear-gradient(135deg, #22c55e, #facc15);
  color: #12310f
}
.modal-tool-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px
}
.modal-tool-head h2 {
  margin: 0 0 4px
}
