:root {
  --bg: #edf2ff;
  --surface: #ffffff;
  --surface-2: #f7f9ff;
  --text: #1a2340;
  --muted: #667099;
  --primary: #46d1ff;
  --primary-deep: #1c9ecf;
  --accent: #ff5f86;
  --nav: #0b122b;
  --hero-overlay: rgba(11, 18, 43, 0.72);
  --border: #e5ebff;
  --shadow: 0 10px 30px rgba(28, 55, 124, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #f4f9ff 0%, var(--bg) 45%, #f8f1ff 100%);
}

a {
  text-decoration: none;
}

.topline {
  background: #070d21;
  color: #b9c6f0;
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-inline-link {
  color: #c8dcff;
  font-weight: 600;
}

.topline-meta span {
  opacity: 0.95;
}

.main-nav {
  background: linear-gradient(90deg, rgba(11, 18, 43, 0.95), rgba(16, 31, 70, 0.95));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand-mark {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #8af0ff);
  color: #06273a;
  font-size: 0.9rem;
  font-weight: 800;
}

.brand-text {
  color: #eef4ff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
  color: #c9d6ff;
  font-size: 0.95rem;
  margin-left: 0.4rem;
  margin-right: 0.4rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: #ffffff;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #ff7f65);
  border: 0;
  color: #fff;
  font-weight: 600;
}

.btn-accent:hover {
  color: #fff;
  filter: brightness(1.06);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.offcanvas-dark {
  background: #0d1737;
  color: #e8efff;
}

.offcanvas-dark .nav-link {
  color: #dbe5ff;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background-image: url('../images/cjegsshyqlks.jpg');
  background-size: cover;
  background-position: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, var(--hero-overlay) 10%, rgba(11, 18, 43, 0.56) 60%, rgba(31, 18, 58, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 4.5rem;
  padding-bottom: 4.25rem;
}

.hero-kicker {
  display: inline-block;
  color: #95e8ff;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero-title {
  color: #f3f8ff;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 0.9rem;
}

.hero-desc {
  color: #d9e5ff;
  line-height: 1.8;
  max-width: 90%;
}

.search-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 0.9rem;
  backdrop-filter: blur(6px);
}

.search-card .form-control,
.search-card .form-select {
  border: 0;
}

.quick-tags .tag-chip {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #e9f3ff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
}

.quick-tags .tag-chip.active,
.quick-tags .tag-chip:hover {
  background: rgba(70, 209, 255, 0.26);
  border-color: rgba(138, 240, 255, 0.75);
}

.hero-side-card {
  background: rgba(15, 24, 50, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.2rem;
  color: #e8f0ff;
  box-shadow: var(--shadow);
}

.hero-side-card hr {
  border-color: rgba(255, 255, 255, 0.2);
}

.trend-item {
  padding: 0.52rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.trend-item:last-of-type {
  border-bottom: 0;
}

.main-area {
  position: relative;
  z-index: 2;
  margin-top: -1.3rem;
}

.content-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.section-head {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #edf1ff;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a2955;
}

.section-more {
  color: var(--primary-deep);
  font-size: 0.88rem;
  font-weight: 600;
}

.movie-card {
  border: 1px solid #ebf0ff;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(30, 67, 148, 0.14);
}

.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dbe4ff;
}

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

.score-badge {
  position: absolute;
  right: 0.6rem;
  top: 0.6rem;
  background: rgba(255, 95, 134, 0.95);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.meta-line {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #7a85a9;
}

.play-link {
  color: var(--primary-deep);
  font-weight: 700;
}

.mini-card {
  background: var(--surface-2);
  border: 1px solid #e8eeff;
  border-radius: 12px;
  padding: 0.6rem;
  display: flex;
  gap: 0.75rem;
  height: 100%;
}

.mini-card img {
  width: 100px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.mini-card h3 {
  font-size: 0.94rem;
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.mini-card p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.3rem;
}

.mini-card time {
  font-size: 0.78rem;
  color: #7682ab;
}

.accordion-item {
  border: 1px solid #e8edff;
  margin-bottom: 0.6rem;
  border-radius: 10px;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  color: #1e2f64;
  background: #f9fbff;
}

.accordion-button:not(.collapsed) {
  color: #173168;
  background: #eef5ff;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.widget-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #1c2d61;
}

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

.rank-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed #e7ecff;
}

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

.rank-list a {
  color: #2a3d73;
  font-size: 0.9rem;
}

.rank-list span {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.86rem;
}

.small-muted {
  color: #7884a8;
  font-size: 0.84rem;
}

.calendar-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #e5ebff;
  padding: 0.45rem 0;
  font-size: 0.88rem;
}

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

.friend-section {
  background: linear-gradient(135deg, #fff, #f4f8ff);
  border: 1px solid #e4ebff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

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

.friend-grid a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.5rem;
  border-radius: 10px;
  border: 1px dashed #c6d5ff;
  color: #2b3f73;
  font-size: 0.9rem;
  background: #fbfdff;
}

.friend-grid a:hover {
  border-color: #86b2ff;
  color: #174089;
}

.site-footer {
  margin-top: 2rem;
  background: linear-gradient(120deg, #0a1129, #131f45 55%, #2c1c45 100%);
  color: #d9e3ff;
  padding-top: 2rem;
  padding-bottom: 1.1rem;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f5f8ff;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f5ff;
  margin-bottom: 0.8rem;
}

.footer-links li {
  margin-bottom: 0.42rem;
}

.footer-links a,
.site-footer a {
  color: #c4d8ff;
}

.footer-links a:hover,
.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: #b6c6ea;
}

@media (max-width: 1199.98px) {
  .main-area {
    margin-top: 0;
  }
}

@media (max-width: 991.98px) {
  .hero-content {
    padding-top: 3.2rem;
    padding-bottom: 3rem;
  }

  .hero-desc {
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .topline {
    font-size: 0.78rem;
  }

  .content-block,
  .sidebar-widget,
  .friend-section {
    padding: 0.85rem;
    border-radius: 12px;
  }

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

  .friend-grid {
    grid-template-columns: 1fr;
  }

  .mini-card img {
    width: 92px;
    height: 70px;
  }
}