﻿:root {
  --bg-0: #f3fbf6;
  --bg-1: #f7fbff;
  --bg-2: #fff7e8;
  --bg-card: rgba(255, 255, 255, 0.86);
  --text-0: #0f1f17;
  --text-1: #234336;
  --muted: #6a7f77;
  --green-0: #16a34a;
  --green-1: #22c55e;
  --green-2: #4ade80;
  --teal-0: #0ea5a4;
  --gold-0: #f59e0b;
  --orange-0: #fb923c;
  --shadow-0: 0 10px 30px rgba(22, 101, 52, 0.12);
  --shadow-1: 0 6px 16px rgba(15, 23, 42, 0.08);
  --radius-l: 22px;
  --radius-m: 16px;
  --radius-s: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-0);
  font-family: "HarmonyOS Sans SC", "OPPOSans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: radial-gradient(circle at 8% 10%, rgba(34, 197, 94, 0.18), transparent 46%),
    radial-gradient(circle at 90% 18%, rgba(14, 165, 164, 0.18), transparent 44%),
    linear-gradient(130deg, var(--bg-0), var(--bg-1) 55%, var(--bg-2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(15, 118, 110, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 18px 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
  position: sticky;
  top: 14px;
  backdrop-filter: blur(14px);
  z-index: 4;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(22, 197, 94, 0.35);
}

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

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef7f1;
  color: var(--text-1);
  font-size: 14px;
  transition: all 0.2s ease;
}

.nav-links a.is-active,
.nav-links a:hover {
  background: rgba(34, 197, 94, 0.2);
  color: #0f5132;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 10px 16px rgba(22, 163, 74, 0.28);
}

.btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-ghost {
  background: rgba(14, 165, 164, 0.12);
  color: #0f766e;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}

.hero {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.hero-card {
  background: var(--bg-card);
  border-radius: var(--radius-l);
  padding: 18px;
  box-shadow: var(--shadow-0);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35), transparent 70%);
  filter: blur(2px);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-m);
  padding: 14px 16px;
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(34, 197, 94, 0.1), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
}

.stat-foot {
  font-size: 12px;
  color: #16a34a;
}

.search-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
}

.search-box {
  display: grid;
  gap: 12px;
}

.search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f3fff8 100%);
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: var(--radius-m);
  box-shadow: 0 16px 28px rgba(16, 185, 129, 0.18);
}

.search-input:focus-within {
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18), 0 16px 28px rgba(16, 185, 129, 0.2);
}

.search-input input {
  border: none;
  flex: 1;
  font-size: 15px;
  outline: none;
  background: transparent;
}

.search-input input::placeholder {
  color: #9aa7a1;
}

.search-input .btn {
  box-shadow: 0 10px 16px rgba(22, 163, 74, 0.24);
}

.search-input .search-tag {
  background: rgba(34, 197, 94, 0.12);
  color: #0f766e;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: #eef2f7;
  color: var(--text-1);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.chip.is-active {
  background: rgba(34, 197, 94, 0.18);
  color: #0f5132;
  border-color: rgba(34, 197, 94, 0.4);
}

.rank-panel,
.stats-panel {
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  padding: 12px;
  display: grid;
  gap: 10px;
}

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

.stat-grid.is-compact .stat-card {
  padding: 10px 12px;
}

.stat-grid.is-compact .stat-value {
  font-size: 18px;
}

.stat-grid.is-compact .stat-foot {
  font-size: 11px;
}

.rank-tabs {
  display: flex;
  gap: 8px;
}

.rank-tabs button {
  border: none;
  background: #f1f5f9;
  color: #0f172a;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}

.rank-tabs button.is-active {
  background: rgba(34, 197, 94, 0.18);
  color: #0f5132;
}

.rank-list {
  display: grid;
  gap: 6px;
}

.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 13px;
}

.rank-item strong {
  color: #166534;
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.15);
  color: #9a3412;
  font-size: 12px;
}

.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
}

.section-sub {
  font-size: 13px;
  color: var(--muted);
}

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

.poster-card {
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: all 0.2s ease;
  position: relative;
}

.poster-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(15, 118, 110, 0.18);
}

.poster {
  position: relative;
  height: 190px;
  background: #e2e8f0;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0.55;
}

.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0f766e;
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  z-index: 1;
  box-shadow: 0 6px 10px rgba(15, 118, 110, 0.25);
}

.card-body {
  padding: 10px 12px 12px;
  display: grid;
  gap: 6px;
}

.card-title {
  font-size: 13px;
  font-weight: 700;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
  font-size: 11px;
}

.tag.orange {
  background: rgba(251, 146, 60, 0.18);
  color: #9a3412;
}

.tag.teal {
  background: rgba(14, 165, 164, 0.18);
  color: #0f766e;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.score {
  background: #0f766e;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.cta-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.alert-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
  font-size: 13px;
  flex-wrap: nowrap;
}

.alert-strip span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-strip .tag {
  flex-shrink: 0;
}

.filter-panel {
  background: var(--bg-card);
  border-radius: var(--radius-l);
  padding: 16px;
  box-shadow: var(--shadow-0);
  display: grid;
  gap: 14px;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination button {
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-1);
  cursor: pointer;
}

.pagination button.is-active {
  background: rgba(34, 197, 94, 0.2);
  color: #166534;
}

.detail-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
}

.detail-poster {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-0);
}

.detail-info {
  display: grid;
  gap: 10px;
}

.detail-title {
  font-size: 24px;
  font-weight: 800;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 12px;
}

.info-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-1);
}

.detail-desc {
  line-height: 1.65;
  color: var(--text-1);
  font-size: 14px;
}

.source-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.source-table th,
.source-table td {
  text-align: left;
  padding: 10px;
}

.source-table th {
  background: #f1f5f9;
  color: #0f172a;
}

.source-table tbody tr {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

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

.footer {
  margin-top: 26px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: var(--text-1);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf2f7;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal.is-open {
  display: flex;
}

.modal-card {
  width: min(520px, 92vw);
  background: #fff;
  border-radius: var(--radius-l);
  padding: 18px;
  box-shadow: var(--shadow-0);
  display: grid;
  gap: 12px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
}

.form-grid textarea {
  min-height: 90px;
  resize: vertical;
}

.stagger {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

.stagger.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .card-grid,
  .like-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .card-grid,
  .like-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .topbar {
    position: static;
  }
}

@media (max-width: 760px) {
  .card-grid,
  .like-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .alert-strip {
    flex-wrap: wrap;
  }
  .alert-strip span:first-child {
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }
  .header-actions {
    flex-wrap: wrap;
  }
  .stat-value {
    font-size: 20px;
  }
  .stat-grid.is-compact {
    grid-template-columns: 1fr;
  }
}
