:root {
  --bg: #f3f6ff;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --text: #1f2a44;
  --muted: #6d7892;
  --primary: #5b63ff;
  --primary-2: #28c6d5;
  --line: #e7ebfb;
  --shadow: 0 14px 34px rgba(64, 76, 139, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background: linear-gradient(180deg, #f2f5ff 0%, #f8f9ff 50%, #eef2ff 100%);
  color: var(--text);
}

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

.container-xxl {
  max-width: 1280px;
}

.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 1040;
}

.navbar {
  padding: 0.7rem 0;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 18px rgba(91, 99, 255, 0.35);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-link {
  color: #354365;
  font-size: 0.95rem;
  border-radius: 8px;
  padding: 0.45rem 0.7rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: #eef0ff;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 280px;
}

.search-box .form-control {
  border-radius: 999px;
  border-color: #dfe4ff;
  background: #f9faff;
}

.search-box .btn {
  border-radius: 999px;
  padding-inline: 1rem;
}

.mobile-links .btn {
  border: 1px solid #e5e9ff;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(18, 25, 46, 0.72) 15%, rgba(18, 25, 46, 0.22) 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.3rem;
  max-width: 680px;
  color: #fff;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-content h1 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.1rem;
}

.content-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(79, 92, 160, 0.08);
  padding: 1rem;
}

.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 700;
}

.section-meta,
.section-top > a {
  font-size: 0.82rem;
  color: var(--muted);
}

.section-top > a:hover {
  color: var(--primary);
}

.poster-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e9edff;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(81, 96, 174, 0.16);
}

.poster-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

.score-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  border-radius: 999px;
  padding: 0.18rem 0.46rem;
  font-size: 0.68rem;
  color: #fff;
  background: linear-gradient(135deg, #f7b500, #f06a00);
}

.poster-info {
  padding: 0.62rem;
}

.poster-info h3 {
  margin: 0;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-info p {
  margin: 0.18rem 0 0.1rem;
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-info time {
  font-size: 0.72rem;
  color: #98a2bd;
}

.rank-panel h3,
.mini-talk h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  font-weight: 700;
}

.rank-list li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0;
  border-bottom: 1px dashed #e8ecff;
}

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

.rank-index {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rank-list a {
  font-size: 0.88rem;
  color: #2d3a5b;
}

.rank-list em {
  font-style: normal;
  font-size: 0.78rem;
  color: #5f6b87;
}

.mini-talk li {
  font-size: 0.82rem;
  color: #3b4769;
  padding: 0.56rem 0;
  border-bottom: 1px dashed #e8ecff;
}

.mini-talk li:last-child {
  border-bottom: 0;
}

.mini-talk strong {
  font-weight: 600;
}

.mini-talk time {
  display: block;
  font-size: 0.73rem;
  color: #8f9ab8;
  margin-top: 0.2rem;
}

.comment-stream {
  border-top: 1px solid #f0f2ff;
}

.comment-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid #f0f2ff;
}

.comment-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e9edff;
}

.comment-item h4 {
  margin: 0;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.comment-item h4 time {
  font-size: 0.74rem;
  color: #8f9ab8;
  font-weight: 400;
}

.comment-item p {
  margin: 0.35rem 0 0;
  color: #4f5d83;
  font-size: 0.88rem;
}

.message-form .form-control {
  border-radius: 12px;
  border-color: #e0e5ff;
}

.message-form .form-control:focus {
  border-color: #bac3ff;
  box-shadow: 0 0 0 0.2rem rgba(91, 99, 255, 0.12);
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.friend-links a {
  font-size: 0.84rem;
  color: #2f3f65;
  padding: 0.48rem 0.8rem;
  border: 1px solid #dfe5ff;
  border-radius: 999px;
  background: #f8f9ff;
  transition: all 0.2s ease;
}

.friend-links a:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.site-footer {
  border-top: 1px solid #dfe5ff;
  background: #f6f8ff;
  padding: 1rem 0 1.4rem;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: #4a567a;
}

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

.site-footer .list-inline-item a {
  color: #5f6b8a;
  font-size: 0.86rem;
}

.site-footer .list-inline-item a:hover {
  color: var(--primary);
}

.footer-note {
  margin: 0.6rem 0 0;
  color: #8c96b3;
  font-size: 0.78rem;
}

.quick-dock {
  position: fixed;
  left: 10px;
  top: 34%;
  gap: 0.5rem;
  z-index: 1030;
}

.quick-dock a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dce3ff;
  color: #51639b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 8px 18px rgba(98, 110, 174, 0.13);
}

.quick-dock a:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-color: transparent;
}

@media (max-width: 991.98px) {
  .hero-banner {
    min-height: 300px;
  }

  .hero-content {
    padding: 1.6rem;
  }
}

@media (max-width: 767.98px) {
  .hero-banner {
    min-height: 260px;
    border-radius: 16px;
  }

  .hero-content {
    max-width: 100%;
    padding: 1.2rem;
  }

  .content-panel {
    border-radius: 14px;
    padding: 0.85rem;
  }

  .section-title {
    font-size: 1rem;
  }

  .poster-info h3 {
    font-size: 0.86rem;
  }
}