:root {
  --bg: #f4f6ff;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --text: #20243a;
  --muted: #6f7898;
  --primary: #5d60ff;
  --primary-deep: #4548d9;
  --accent: #23c4a8;
  --border: #e5e9f5;
  --shadow: 0 10px 25px rgba(55, 66, 156, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top right, #e6fff7 0%, var(--bg) 42%), var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(8px);
  background: rgba(244, 246, 255, 0.9);
  border-bottom: 1px solid rgba(229, 233, 245, 0.8);
}

.navbar {
  padding: 0.7rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7b87ff 65%, var(--accent));
  box-shadow: 0 8px 15px rgba(93, 96, 255, 0.35);
}

.brand-text {
  font-weight: 700;
  color: var(--text);
}

.nav-link {
  color: #3f4665;
  font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-content {
  padding: 2rem 1.3rem 2rem 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: #0d6b57;
  background: #dcfff7;
  border: 1px solid #b4f0df;
}

.meta-text {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.hero-content p {
  color: var(--muted);
  margin-bottom: 1.05rem;
  max-width: 46ch;
}

.tag {
  font-size: 0.8rem;
  color: #38406a;
  background: #eff2ff;
  border: 1px solid #dbe0ff;
  border-radius: 999px;
  padding: 0.25rem 0.68rem;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.quick-stats .stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1rem;
  height: 100%;
}

.stat-item .num {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2f3772;
}

.stat-item .label {
  font-size: 0.86rem;
  color: var(--muted);
}

.content-section {
  scroll-margin-top: 90px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  font-weight: 700;
}

.section-head span {
  color: var(--muted);
  font-size: 0.88rem;
}

.movie-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(35, 46, 108, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--surface);
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(35, 46, 108, 0.12);
}

.movie-card .card-img-top {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.movie-card .card-body {
  padding: 0.8rem 0.85rem 0.9rem;
}

.movie-card .card-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card .card-text {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  min-height: 2.4em;
  margin-bottom: 0.6rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #7e85a5;
}

.genre {
  color: #1f3f95;
  background: #edf1ff;
  border: 1px solid #dce4ff;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  line-height: 1.2;
}

.feature-banner {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-height: 220px;
  position: relative;
}

.feature-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.feature-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
  color: #fff;
  background: linear-gradient(to top, rgba(20, 25, 55, 0.78), rgba(20, 25, 55, 0.08));
}

.feature-overlay h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.feature-overlay p {
  margin: 0;
  font-size: 0.83rem;
  opacity: 0.92;
}

.category-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  border: 1px dashed #d4d9ef;
  border-radius: 12px;
  background: var(--surface);
  color: #2c345b;
  font-weight: 600;
  transition: all 0.2s ease;
}

.category-tile:hover {
  border-color: #a9b7ff;
  color: var(--primary);
  background: #f4f6ff;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.accordion-button {
  font-weight: 600;
  color: #2d355d;
  background: var(--surface);
}

.accordion-button:not(.collapsed) {
  color: #2a3378;
  background: #eef1ff;
  box-shadow: none;
}

.editor-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.editor-card h3 {
  font-size: 1rem;
  margin: 0;
}

.editor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.7rem;
  border: 2px solid #fff;
  box-shadow: 0 6px 12px rgba(54, 63, 116, 0.2);
}

.friend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.friend-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 58px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #3b4471;
  font-weight: 600;
  transition: all 0.2s ease;
}

.friend-link:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7b87ff);
  border-color: transparent;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #f0f3ff;
  padding: 2rem 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.footer-brand {
  color: #2d3567;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  color: #5b6387;
  font-size: 0.9rem;
}

.footer-note,
.copyright {
  margin: 0;
  color: #70789a;
  font-size: 0.87rem;
}

.copyright a {
  color: #5059a4;
}

#backTop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1040;
  box-shadow: 0 10px 20px rgba(40, 50, 125, 0.25);
}

@media (min-width: 768px) {
  .friend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .hero-content {
    padding: 1.4rem;
  }

  .hero-image {
    min-height: 260px;
  }
}

@media (max-width: 575.98px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .movie-card .card-text {
    min-height: auto;
  }
}