:root {
  --bg: #090b10;
  --bg-soft: #111722;
  --panel: #161d27;
  --panel-2: #1e2835;
  --text: #f6f8fb;
  --muted: #a6b1be;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #2ee59d;
  --accent-2: #ffcc66;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 0, rgba(46, 229, 157, 0.14), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(255, 204, 102, 0.12), transparent 22rem),
    linear-gradient(180deg, #0e141d 0, var(--bg) 48rem);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 16, 0.9);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: auto 1fr minmax(260px, 360px);
  gap: 22px;
  align-items: center;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 22px;
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #07110d;
  background: linear-gradient(135deg, var(--accent), #8df5c7);
}

.nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

.search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search input {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.search input:focus {
  border-color: rgba(46, 229, 157, 0.65);
}

.search button,
.primary-btn,
.secondary-btn,
.card-btn,
.more-btn {
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}

.search button,
.primary-btn,
.card-btn {
  border: 0;
  color: #07110d;
  background: var(--accent);
  font-weight: 800;
}

.search button {
  height: 40px;
  padding: 0 16px;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 54px;
}

.hero {
  position: relative;
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: end;
  gap: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111722;
  padding: 50px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(9, 11, 16, 0.96), rgba(9, 11, 16, 0.7) 54%, rgba(9, 11, 16, 0.22));
}

.hero-art {
  position: absolute;
  inset: 0;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-copy,
.hero-stats {
  position: relative;
  z-index: 2;
}

.kicker {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p:not(.kicker) {
  max-width: 560px;
  color: #d3dbe4;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.secondary-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 29, 39, 0.86);
}

.hero-stats span,
.hero-stats p {
  color: var(--muted);
}

.hero-stats strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 42px;
}

.section,
.split {
  margin-top: 34px;
}

.page-head {
  margin: 20px 0 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(46, 229, 157, 0.14), rgba(255, 255, 255, 0.04)),
    var(--panel);
}

.page-head h1 {
  margin-bottom: 12px;
}

.page-head p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-head {
  margin-bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2,
.recommend-panel h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.more-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.cover-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--panel-2);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.card:hover .card-img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 8px;
  border-radius: 999px;
  color: #07110d;
  background: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 12px;
}

.card h3 {
  min-height: 40px;
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.card p {
  min-height: 18px;
  margin-bottom: 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 13px;
}

.type-section {
  margin-top: 34px;
}

.type-section-head {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.type-section-head h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.type-section-head span,
.type-more {
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
}

.rank-panel,
.recommend-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li {
  min-height: 52px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.rank-list li:last-child {
  border-bottom: 0;
}

.rank-list b {
  color: var(--accent-2);
}

.rank-list span,
.recommend-item em {
  color: var(--muted);
  font-style: normal;
}

.recommend-list {
  display: grid;
  gap: 12px;
}

.recommend-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}

.recommend-item img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius);
}

.recommend-item strong,
.recommend-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 26px 20px;
}

.empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .topbar-inner {
    grid-template-columns: 1fr;
  }

  .nav {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
    padding: 32px 22px;
  }

  h1 {
    font-size: 38px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
