/* ===========================================================
 * 高清电影 · litg.hl.cn 内页样式
 * 配色：深空蓝底 + 青 / 粉 / 琥珀霓虹高光
 * 适用：栏目页、片目详情页、404
 * =========================================================== */

/* ---------- 变量与基础 ---------- */
:root {
  --bg: #080d1a;
  --bg-soft: #0e1730;
  --card: rgba(20, 30, 56, 0.68);
  --card-solid: #121c36;
  --line: rgba(126, 178, 255, 0.16);
  --line-strong: rgba(126, 178, 255, 0.36);
  --cyan: #4fe3ff;
  --pink: #ff6fd8;
  --amber: #ffd36e;
  --violet: #a78bfa;
  --mint: #5ef2c0;
  --text: #eaf3ff;
  --text-2: #a8bbd8;
  --text-3: #7587a8;
  --radius: 16px;
  --shadow: 0 16px 36px rgba(3, 8, 22, 0.5);
  --maxw: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  background:
    radial-gradient(60% 42% at 82% 0%, rgba(79, 227, 255, 0.14), transparent 62%),
    radial-gradient(48% 38% at 6% 18%, rgba(255, 111, 216, 0.12), transparent 64%),
    linear-gradient(180deg, #080d1a, #05080f);
  background-attachment: fixed;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  min-height: 100vh;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.wrap {
  width: min(var(--maxw), 92%);
  margin: 0 auto;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(15px);
  background: rgba(8, 13, 26, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4fe3ff, #a78bfa 55%, #ff6fd8);
}

.brand-logo svg {
  width: 19px;
  height: 19px;
}

.brand-name {
  font-size: 18.5px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.main-nav a {
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(126, 178, 255, 0.1);
}

.main-nav a.on {
  color: var(--cyan);
  background: rgba(79, 227, 255, 0.12);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 17px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  padding: 20px 0 0;
}

.breadcrumb a {
  color: var(--text-2);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb span.sep {
  color: rgba(126, 178, 255, 0.35);
}

.breadcrumb strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- 页面头部 ---------- */
.page-head {
  padding: 26px 0 24px;
  border-bottom: 1px solid rgba(126, 178, 255, 0.1);
  margin-bottom: 30px;
}

.page-head h1 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.page-head h1 i {
  font-style: normal;
  background: linear-gradient(96deg, var(--cyan), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-head p {
  font-size: 14.5px;
  color: var(--text-3);
  max-width: 860px;
}

.page-head .head-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.head-tags a {
  font-size: 12.5px;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  background: rgba(126, 178, 255, 0.05);
  transition: 0.2s;
}

.head-tags a:hover {
  color: var(--cyan);
  border-color: var(--line-strong);
}

/* ---------- 双栏布局 ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
  padding-bottom: 56px;
}

/* ---------- 影片列表项 ---------- */
.film-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.film-row {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}

.film-row:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.row-cover {
  position: relative;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.row-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 9px);
}

.row-cover .glyph {
  position: relative;
  z-index: 1;
  font-size: 30px;
  color: #fff;
  opacity: 0.92;
}

.row-cover .row-cat {
  position: absolute;
  left: 9px;
  top: 9px;
  z-index: 2;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(4, 8, 18, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.row-cover .row-time {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(3, 7, 16, 0.8);
}

.row-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.row-body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.row-body h3 a:hover {
  color: var(--cyan);
}

.row-body p {
  font-size: 13.6px;
  color: var(--text-3);
  line-height: 1.85;
}

.row-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 2px;
}

.row-meta .star {
  color: var(--amber);
}

.row-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.row-tags a,
.row-tags span {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(79, 227, 255, 0.1);
  border: 1px solid rgba(79, 227, 255, 0.22);
}

.row-tags span {
  color: var(--text-3);
  background: rgba(126, 178, 255, 0.06);
  border-color: var(--line);
}

/* ---------- 侧栏 ---------- */
.aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 84px;
}

.aside-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px;
}

.aside-box h2 {
  font-size: 15.5px;
  font-weight: 800;
  padding-bottom: 11px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-links a {
  font-size: 13.8px;
  color: var(--text-2);
  padding: 7px 9px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  transition: 0.2s;
}

.aside-links a:hover,
.aside-links a.on {
  color: var(--cyan);
  background: rgba(79, 227, 255, 0.09);
}

.aside-links a span {
  color: var(--text-3);
  font-size: 12px;
}

.aside-note {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.9;
}

.hot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hot-list a {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13.6px;
  color: var(--text-2);
}

.hot-list a:hover {
  color: var(--cyan);
}

.hot-list b {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 11px;
  display: grid;
  place-items: center;
  color: #08101e;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  margin-top: 5px;
}

/* ---------- 详情页 ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
  padding-bottom: 20px;
}

.detail-hero {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 22px;
  margin-bottom: 22px;
}

.detail-top {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
}

.detail-poster {
  position: relative;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.detail-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 10px);
}

.detail-poster .glyph {
  position: relative;
  z-index: 1;
  font-size: 44px;
  color: #fff;
}

.detail-poster .ver {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 6px;
  background: rgba(3, 7, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-info h1 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 8px;
}

.detail-info .subline {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 14px;
}

.detail-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-score b {
  font-size: 34px;
  color: var(--amber);
  letter-spacing: 0.5px;
}

.detail-score span {
  font-size: 12.5px;
  color: var(--text-3);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.6px;
  margin-bottom: 16px;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 7px 0;
  vertical-align: top;
  border-bottom: 1px solid rgba(126, 178, 255, 0.08);
}

.info-table th {
  width: 72px;
  color: var(--text-3);
  font-weight: 400;
}

.info-table td {
  color: var(--text-2);
}

.article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 45, 0.55);
  padding: 26px 28px;
  margin-bottom: 22px;
}

.article h2 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-left: 11px;
  border-left: 4px solid var(--cyan);
  line-height: 1.4;
}

.article p {
  font-size: 14.8px;
  color: var(--text-2);
  line-height: 2;
  margin-bottom: 13px;
}

.article p:last-child {
  margin-bottom: 0;
}

.article strong {
  color: var(--cyan);
  font-weight: 700;
}

.article em {
  color: var(--amber);
  font-style: normal;
}

.point-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.point-item {
  display: flex;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 30, 56, 0.5);
}

.point-item b {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #05101f;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

.point-item div {
  font-size: 13.8px;
  color: var(--text-2);
}

.point-item div strong {
  display: block;
  color: var(--text);
  font-size: 14.4px;
  margin-bottom: 2px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  transition: 0.2s;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.related-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.related-body {
  padding: 11px 12px 13px;
}

.related-body b {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.related-body span {
  font-size: 12px;
  color: var(--text-3);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0 40px;
}

.pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  transition: 0.2s;
}

.pager a:hover {
  border-color: var(--line-strong);
}

.pager a.next {
  text-align: right;
}

.pager span {
  font-size: 12px;
  color: var(--cyan);
}

.pager b {
  font-size: 14px;
  font-weight: 600;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 9, 18, 0.86);
  padding: 32px 0 22px;
  font-size: 12.8px;
  color: var(--text-3);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

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

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(126, 178, 255, 0.1);
  padding-top: 14px;
  line-height: 1.85;
}

.footer-bottom a:hover {
  color: var(--cyan);
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page .code {
  font-size: clamp(64px, 14vw, 120px);
  font-weight: 900;
  letter-spacing: 6px;
  background: linear-gradient(120deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.error-page h1 {
  font-size: 22px;
  margin: 12px 0 8px;
}

.error-page p {
  color: var(--text-3);
  font-size: 14px;
  margin-bottom: 22px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .aside-box {
    flex: 1 1 260px;
  }

  .detail-top {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 5%;
    background: rgba(8, 13, 26, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 12px;
  }

  .nav-toggle {
    display: block;
  }

  .film-row {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article {
    padding: 20px 18px;
  }
}

@media (max-width: 600px) {
  .film-row {
    grid-template-columns: 1fr;
  }

  .row-cover {
    aspect-ratio: 16 / 9;
  }

  .detail-top {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 240px;
    margin: 0 auto;
  }

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

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

  .pager a.next {
    text-align: left;
  }
}
