:root {
  --bg: #0d1020;
  --panel: rgba(20, 25, 48, 0.88);
  --panel-light: rgba(31, 40, 74, 0.7);
  --line: rgba(140, 158, 255, 0.18);
  --text: #eef2ff;
  --muted: #aab4df;
  --primary: #8b5cf6;
  --primary-2: #ec4899;
  --primary-3: #60a5fa;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 20%),
    radial-gradient(circle at bottom center, rgba(96, 165, 250, 0.12), transparent 18%),
    linear-gradient(180deg, #090d19 0%, #0d1020 50%, #0a0e1c 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.75;
}

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

button,
input {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 20, 0.74);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.35);
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: white;
  background: rgba(139, 92, 246, 0.18);
}

.hero {
  padding: 52px 0 28px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.hero-left,
.hero-card,
.card,
.detail-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 26, 49, 0.92), rgba(14, 18, 35, 0.92));
  box-shadow: var(--shadow);
}

.hero-left {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}

.hero-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5d8ff;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero-left h1 {
  font-size: 42px;
  line-height: 1.28;
  margin-bottom: 18px;
}

.hero-left p {
  color: var(--muted);
  font-size: 16px;
  max-width: 720px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  min-width: 120px;
  border-radius: 12px;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(140, 158, 255, 0.18);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-card {
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18), transparent 65%);
  pointer-events: none;
}

.hero-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.hero-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.hero-card li + li {
  margin-top: 10px;
}

.main-area {
  padding-bottom: 42px;
}

.card {
  padding: 24px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.toolbar-left h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.toolbar-left p {
  color: var(--muted);
}

.toolbar-right {
  min-width: 280px;
}

.search-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(140, 158, 255, 0.16);
  background: rgba(9, 12, 24, 0.78);
  color: var(--text);
  outline: none;
}

.search-input::placeholder {
  color: #7f8cc2;
}

.search-input:focus {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.chip {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(140, 158, 255, 0.14);
  transition: 0.25s ease;
}

.chip:hover,
.chip.active {
  color: white;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(236, 72, 153, 0.24));
}

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

.anime-card {
  position: relative;
  overflow: hidden;
}

.anime-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-2), var(--primary-3));
  opacity: 0.95;
}

.anime-card-inner {
  padding-left: 8px;
}

.anime-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.anime-title {
  font-size: 24px;
  margin-bottom: 6px;
  line-height: 1.35;
}

.anime-sub {
  color: var(--muted);
  font-size: 14px;
}

.anime-desc {
  color: var(--muted);
  margin: 14px 0 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.meta-badge,
.type-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.type-badge {
  background: rgba(139, 92, 246, 0.16);
  color: #e5d5ff;
  border: 1px solid rgba(139, 92, 246, 0.16);
}

.meta-badge {
  background: rgba(96, 165, 250, 0.12);
  color: #cfe5ff;
  border: 1px solid rgba(96, 165, 250, 0.16);
}

.reason-box {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #dfe7ff;
  margin-bottom: 18px;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.link-btn {
  color: #f4c7ff;
  font-weight: 700;
}

.link-btn:hover {
  color: white;
}

.light-note {
  color: var(--muted);
  font-size: 13px;
}

.about-section {
  margin-top: 22px;
}

.about-section h2 {
  font-size: 28px;
  margin-bottom: 14px;
}

.about-section > p {
  color: var(--muted);
}

.about-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-item {
  padding: 18px;
  border-radius: 16px;
  background: var(--panel-light);
  border: 1px solid rgba(140, 158, 255, 0.14);
}

.about-item h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.about-item p {
  color: var(--muted);
}

.detail-page {
  padding: 42px 0 18px;
}

.detail-card {
  padding: 30px;
}

.detail-title {
  font-size: 40px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.detail-sub {
  color: var(--muted);
  margin-bottom: 18px;
}

.detail-section {
  margin-top: 24px;
}

.detail-section h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.detail-section p,
.detail-section li {
  color: #dfe7ff;
}

.detail-section ul {
  padding-left: 18px;
}

.detail-section li + li {
  margin-top: 8px;
}

.footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  background: rgba(8, 10, 20, 0.68);
  padding: 22px 0;
  text-align: center;
  color: var(--muted);
}

.empty-box {
  grid-column: 1 / -1;
  padding: 46px 20px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 26, 49, 0.92), rgba(14, 18, 35, 0.92));
  color: var(--muted);
  box-shadow: var(--shadow);
}

@media (max-width: 1000px) {
  .hero-inner,
  .about-grid,
  .anime-list {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-right {
    min-width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .hero-left,
  .hero-card,
  .card,
  .detail-card {
    padding: 20px;
  }

  .hero-left h1,
  .detail-title {
    font-size: 30px;
  }

  .anime-title {
    font-size: 21px;
  }

  .toolbar-left h2,
  .about-section h2 {
    font-size: 24px;
  }
}