* { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- 背景：流动渐变（无发光） ---------- */
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #d7e3f4;
  padding: 20px 14px 60px;
  min-height: 100vh;
  background: #070b14;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,140,180,.10), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(90,60,180,.12), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0,80,160,.06), transparent 60%);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, -2%, 0) scale(1.08); }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 85%);
}

.wrap { max-width: 1100px; margin: 0 auto; }

/* ---------- 标题 ---------- */
.logo {
  text-align: center;
  margin: 0 auto 8px;
  line-height: 0;
}
.logo img {
  display: inline-block;
  width: 100%;
  max-width: 520px;
  height: auto;
}

.sub {
  text-align: center;
  font-size: 15px;
  color: #7b8aa3;
  margin: 10px 0 26px;
  letter-spacing: 1px;
}

/* ---------- 搜索框 ---------- */
.search {
  width: 100%;
  padding: 18px 24px;
  font-size: 19px;
  color: #e8f4ff;
  background: rgba(16, 23, 38, .72);
  border: 1px solid rgba(120, 160, 190, .18);
  border-radius: 14px;
  outline: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .25s, background .25s;
}
.search::placeholder { color: #5f7089; letter-spacing: 1px; }
.search:focus {
  background: rgba(16, 23, 38, .9);
  border-color: rgba(120, 180, 210, .45);
}

/* ---------- 按钮切换栏（无边框） ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.tab {
  padding: 12px 26px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #9bb3c4;
  background: rgba(30, 42, 62, .85);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: color .2s, background .2s, transform .2s;
}
.tab:hover {
  color: #cfe9f5;
  background: rgba(42, 58, 84, .95);
}
.tab:active { transform: translateY(1px); }

.tab.on {
  color: #04121c;
  background: #7fd4e8;
}

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 12px;
}

/* ---------- 卡片 ---------- */
.card {
  background: linear-gradient(165deg, rgba(24,34,54,.92), rgba(13,19,32,.92));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.04) inset,
    0 6px 18px rgba(0,0,0,.35);
  transition:
    transform .35s cubic-bezier(.22,.61,.36,1),
    box-shadow .35s cubic-bezier(.22,.61,.36,1),
    border-color .35s,
    background .35s;
  will-change: transform;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.10);
  background: linear-gradient(165deg, rgba(28,40,62,.95), rgba(15,22,37,.95));
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 14px 32px rgba(0,0,0,.5),
    0 4px 12px rgba(0,0,0,.35);
}

/* ---------- 封面 ---------- */
.cover-link {
  display: block;
  height: 130px;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: opacity .3s;
}
.cover-link:hover { opacity: .9; }

.cover {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  background: #0e1626;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.cover.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  background: #0e1626;
  color: #45566b;
}
.cover-link:hover .cover { transform: scale(1.04); }

/* ---------- 名称 ---------- */
.name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: #eaf6ff;
  letter-spacing: .3px;
}

/* ---------- 小字标签（无边框） ---------- */
.tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #8fb6c8;
  background: rgba(255,255,255,.06);
  padding: 5px 12px;
  border-radius: 999px;
  transition: color .25s, background .25s;
}
.card:hover .tag {
  color: #cfe9f5;
  background: rgba(255,255,255,.10);
}

/* ---------- 下载按钮（无边框） ---------- */
.dl {
  display: block;
  text-align: center;
  padding: 14px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #04121c;
  background: #7fd4e8;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.dl:hover { background: #95dff0; }
.dl:active { transform: translateY(1px); }

.dl.disabled {
  color: #5c6b80;
  background: rgba(40,52,72,.55);
  border: none;
  cursor: default;
}
.dl.disabled:hover { background: rgba(40,52,72,.55); }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  font-size: 18px;
  color: #5f7089;
  padding: 60px 0;
  letter-spacing: 1px;
}

/* ---------- 手机 ---------- */
@media (max-width: 480px) {
  .logo img { max-width: 320px; }
  .search { padding: 15px 18px; font-size: 17px; }
  .tab { padding: 10px 18px; font-size: 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .card { padding: 10px; }
  .cover, .cover-link { height: 110px; }
}