/**
 * jx-theme — 墨紫靛蓝 + 翠绿薄荷 独立视觉
 * 与 cc0874 琥珀橙模板差异化
 */

:root {
  --jx-bg: #f4f6fb;
  --jx-bg-alt: #eef2ff;
  --jx-surface: #ffffff;
  --jx-ink: #0f172a;
  --jx-ink-muted: #64748b;
  --jx-ink-soft: #94a3b8;
  --jx-primary: #4f46e5;
  --jx-primary-dark: #3730a3;
  --jx-accent: #10b981;
  --jx-accent-soft: #34d399;
  --jx-coral: #f472b6;
  --jx-header-bg: #1e1b4b;
  --jx-border: rgba(15, 23, 42, 0.08);
  --jx-border-strong: rgba(79, 70, 229, 0.22);
  --jx-shadow: 0 4px 24px rgba(30, 27, 75, 0.07);
  --jx-shadow-hover: 0 14px 40px rgba(79, 70, 229, 0.16);
  --jx-radius: 14px;
  --jx-radius-lg: 22px;
  --jx-font: 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --jx-max: 1200px;
  --jx-gutter: clamp(16px, 3vw, 24px);
}

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

body.body-tpl-jx {
  margin: 0;
  overflow-x: hidden;
  background: var(--jx-bg) !important;
  color: var(--jx-ink) !important;
  font-family: var(--jx-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body.body-tpl-jx img { max-width: 100%; height: auto; display: block; }
body.body-tpl-jx a { color: inherit; text-decoration: none; }
body.body-tpl-jx button, body.body-tpl-jx input, body.body-tpl-jx select { font: inherit; }
body.body-tpl-jx h1, body.body-tpl-jx h2, body.body-tpl-jx h3, body.body-tpl-jx p, body.body-tpl-jx ul { margin: 0; }
body.body-tpl-jx ul { list-style: none; padding: 0; }

body.body-tpl-jx .app-shell.tpl-jx {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.body-tpl-jx .site-outlet { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body.body-tpl-jx main { flex: 1; min-width: 0; }

.jx-container {
  width: 100%;
  max-width: var(--jx-max);
  margin-inline: auto;
  padding-inline: var(--jx-gutter);
}

/* ═══ HEADER — 紧凑顶栏 ═══ */
.jx-header {
  --jx-sticky-top: 100px;
  position: sticky;
  top: 0;
  z-index: 200;
  color: #fff;
  padding-top: env(safe-area-inset-top, 0);
  background: linear-gradient(180deg, #16143a 0%, #1a1844 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(16, 185, 129, 0.15);
}

.jx-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.35);
}

.jx-header__main {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.jx-header__row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 56px;
  position: relative;
}

.jx-header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  color: #fff;
  min-width: 0;
}

.jx-header__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #10b981 0%, #4f46e5 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.jx-header__mark svg {
  width: 15px;
  height: 15px;
  fill: #fff;
  margin-left: 1px;
}

.jx-header__name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.jx-header__name strong {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.jx-header__name em {
  font-style: normal;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.48);
  margin-top: 0.15rem;
  white-space: nowrap;
}

.jx-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

@media (min-width: 900px) {
  .jx-header__nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex: none;
  }
}

.jx-nav-item {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.jx-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.jx-nav-item.is-active {
  color: #fff;
  background: rgba(79, 70, 229, 0.22);
}

.jx-nav-item.is-active::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--jx-accent), var(--jx-primary));
}

.jx-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.jx-header__search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: min(220px, 28vw);
  padding: 0.42rem 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.jx-header__search:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(16, 185, 129, 0.45);
}

.jx-header__search-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
}

.jx-header__search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
}

.jx-header__search input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.jx-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.jx-header__toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin-inline: auto;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.jx-header__topics {
  background: rgba(0, 0, 0, 0.12);
}

.jx-header__topics-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 36px;
  padding-block: 0.35rem;
}

.jx-header__topics-label {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.jx-header__topics-scroll {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

.jx-header__topics-scroll::-webkit-scrollbar {
  display: none;
}

.jx-nav-topic {
  flex-shrink: 0;
  padding: 0.22rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.jx-nav-topic:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.jx-nav-topic.is-active {
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

.jx-header__backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 199;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
}

body.body-tpl-jx.jx-nav-open {
  overflow: hidden;
}

.jx-header__drawer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: calc(52px + env(safe-area-inset-top, 0));
  bottom: 0;
  z-index: 201;
  overflow-y: auto;
  padding: 1rem 0 1.5rem;
  background: linear-gradient(180deg, #1a1844 0%, #14122f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.45);
}

.jx-header__drawer.is-open {
  display: block;
}

.jx-header__drawer-title {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.jx-header__drawer-title + .jx-header__drawer-nav {
  margin-bottom: 1rem;
}

.jx-header__drawer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.jx-header__drawer-nav .jx-nav-item {
  text-align: center;
  padding: 0.55rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.jx-header__drawer-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.jx-header__drawer-search {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.jx-header__drawer-search input {
  flex: 1;
  border: none;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.88rem;
}

.jx-header__drawer-search button {
  border: none;
  background: linear-gradient(135deg, var(--jx-accent), #059669);
  color: #fff;
  padding: 0 1.1rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ═══ HERO — 三栏聚光布局 ═══ */
.jx-hero {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  background: linear-gradient(160deg, #eef2ff 0%, var(--jx-bg) 50%, #ecfdf5 100%);
  border-bottom: 1px solid var(--jx-border);
}

.jx-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .jx-hero__grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-template-rows: auto auto;
    gap: 1rem 1.25rem;
    align-items: stretch;
  }

  .jx-hero__spotlight { grid-column: 1; grid-row: 1; }
  .jx-hero__mini-grid { grid-column: 1; grid-row: 2; }
  .jx-hero__trend {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
}

.jx-hero__spotlight {
  position: relative;
  border-radius: var(--jx-radius-lg);
  overflow: hidden;
  min-height: 260px;
  background: var(--jx-ink);
  color: #fff;
  box-shadow: var(--jx-shadow-hover);
}

.jx-hero__spotlight-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.jx-hero__spotlight-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.92) 0%, rgba(30, 27, 75, 0.45) 100%);
}

.jx-hero__spotlight-body {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
}

.jx-hero__badge {
  align-self: flex-start;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--jx-accent), var(--jx-primary));
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.jx-hero__spotlight h1 {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.jx-hero__spotlight p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.jx-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.jx-hero__tags span {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.jx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.jx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.2s;
}

.jx-btn--primary {
  background: linear-gradient(135deg, var(--jx-accent), #059669);
  color: #fff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.jx-btn--primary:hover { transform: translateY(-1px); }

.jx-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.jx-btn--outline {
  background: var(--jx-surface);
  color: var(--jx-primary);
  border: 1.5px solid var(--jx-border-strong);
}

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

@media (min-width: 640px) {
  .jx-hero__mini-grid { grid-template-columns: repeat(4, 1fr); }
}

.jx-hero__mini {
  position: relative;
  border-radius: var(--jx-radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--jx-ink);
}

.jx-hero__mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.jx-hero__mini:hover img { transform: scale(1.06); }

.jx-hero__mini-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.65rem;
}

.jx-hero__mini-overlay strong {
  font-size: 0.78rem;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jx-hero__trend {
  background: var(--jx-surface);
  border: 1px solid var(--jx-border);
  border-radius: var(--jx-radius-lg);
  padding: 1.15rem;
  box-shadow: var(--jx-shadow);
  overflow: hidden;
}

.jx-hero__trend .jx-rank:last-child { margin-bottom: 0; }

.jx-hero__trend-head {
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--jx-border);
}

.jx-hero__trend-head span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jx-accent);
}

.jx-hero__trend-head h2 {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--jx-ink);
  margin-top: 0.15rem;
}

/* ═══ 区块标题 ═══ */
.jx-section {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.jx-section--alt {
  background: linear-gradient(180deg, var(--jx-bg-alt) 0%, var(--jx-bg) 100%);
}

.jx-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.jx-section__head span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jx-primary);
}

.jx-section__head h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--jx-ink);
  margin-top: 0.2rem;
}

.jx-section__more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--jx-primary);
  white-space: nowrap;
}

.jx-section__more:hover { color: var(--jx-accent); }

/* ═══ 卡片 — 横版信息条 ═══ */
.jx-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .jx-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .jx-card-grid--dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .jx-card-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.jx-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 118px;
  background: var(--jx-surface);
  border: 1px solid var(--jx-border);
  border-radius: var(--jx-radius);
  overflow: hidden;
  border-left: 4px solid var(--jx-primary);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.jx-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--jx-shadow-hover);
  border-left-color: var(--jx-accent);
}

.jx-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2e8f0;
  min-height: 100%;
  align-self: stretch;
}

.jx-card__media img {
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
  transition: transform 0.35s;
}

.jx-card:hover .jx-card__media img { transform: scale(1.05); }

.jx-card__dur {
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  border-radius: 6px;
}

.jx-card__score {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 0.1rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--jx-accent);
  color: #fff;
  border-radius: 6px;
}

.jx-card__body {
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.jx-card__title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--jx-ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jx-card__title:hover { color: var(--jx-primary); }

.jx-card__desc {
  font-size: 0.78rem;
  color: var(--jx-ink-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jx-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  font-size: 0.72rem;
}

.jx-card__meta a {
  color: var(--jx-primary);
  font-weight: 700;
  background: #eef2ff;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.jx-card__meta span {
  color: var(--jx-ink-soft);
  padding: 0.15rem 0.45rem;
  background: var(--jx-bg);
  border-radius: 6px;
}

/* ═══ 排行条 ═══ */
.jx-rank {
  display: grid;
  grid-template-columns: 28px 56px 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.35rem;
  border-radius: 10px;
  transition: background 0.2s;
  min-width: 0;
}

.jx-rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--jx-surface);
  border: 1px solid var(--jx-border);
  border-radius: var(--jx-radius-lg);
  padding: 0.65rem 0.85rem;
  box-shadow: var(--jx-shadow);
}

.jx-rank:hover { background: var(--jx-bg-alt); }

.jx-rank__num {
  font-size: 1rem;
  font-weight: 900;
  color: var(--jx-primary);
  opacity: 0.45;
  text-align: center;
}

.jx-rank__thumb {
  width: 56px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}

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

.jx-rank__info h3 {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jx-rank__info p {
  font-size: 0.72rem;
  color: var(--jx-ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══ 分类入口 — 图标磁贴 ═══ */
.jx-cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .jx-cats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .jx-cats-grid { grid-template-columns: repeat(5, 1fr); }
}

.jx-cat-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 0.9rem;
  background: var(--jx-surface);
  border: 1px solid var(--jx-border);
  border-radius: var(--jx-radius);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.jx-cat-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--jx-shadow-hover);
  border-color: var(--jx-border-strong);
}

.jx-cat-tile__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef2ff, #ecfdf5);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.jx-cat-tile strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--jx-ink);
}

.jx-cat-tile span:not(.jx-cat-tile__icon) {
  font-size: 0.72rem;
  color: var(--jx-ink-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jx-cat-tile__desc {
  font-size: 0.72rem;
  color: var(--jx-ink-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══ 分类页 ═══ */
.jx-cat-hero {
  padding: clamp(2rem, 5vw, 3rem) 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 55%, #059669 100%);
  color: #fff;
}

.jx-cat-hero__kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jx-accent-soft);
  margin-bottom: 0.5rem;
}

.jx-cat-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 900;
  margin-bottom: 0.65rem;
}

.jx-cat-hero p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 42em;
  line-height: 1.7;
}

.jx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.jx-breadcrumb a { color: #fff; font-weight: 600; }
.jx-breadcrumb em { font-style: normal; opacity: 0.5; }

.jx-cat-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem 0 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .jx-cat-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

.jx-cat-layout > section {
  min-width: 0;
}

.jx-cat-sidebar {
  background: var(--jx-surface);
  border: 1px solid var(--jx-border);
  border-radius: var(--jx-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--jx-shadow);
}

@media (min-width: 900px) {
  .jx-cat-sidebar { position: sticky; top: var(--jx-sticky-top); }
}

.jx-cat-sidebar h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--jx-ink);
}

.jx-filter-field {
  margin-bottom: 0.85rem;
}

.jx-filter-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jx-ink-muted);
  margin-bottom: 0.35rem;
}

.jx-filter-input,
.jx-filter-select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--jx-border);
  border-radius: 10px;
  background: var(--jx-bg);
  font-size: 0.88rem;
  outline: none;
}

.jx-filter-input:focus,
.jx-filter-select:focus {
  border-color: var(--jx-border-strong);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.jx-cat-count {
  font-size: 0.82rem;
  color: var(--jx-ink-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--jx-border);
}

.jx-cat-count strong { color: var(--jx-primary); }

.jx-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--jx-ink-muted);
  background: var(--jx-bg-alt);
  border-radius: var(--jx-radius);
  border: 1px dashed var(--jx-border-strong);
}

/* ═══ 分类总览 ═══ */
.jx-cat-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .jx-cat-overview-grid { grid-template-columns: repeat(2, 1fr); }
}

.jx-cat-overview-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--jx-surface);
  border: 1px solid var(--jx-border);
  border-radius: var(--jx-radius-lg);
  box-shadow: var(--jx-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.jx-cat-overview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--jx-shadow-hover);
}

.jx-cat-overview-covers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}

.jx-cat-overview-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jx-cat-overview-body h2 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
}

.jx-cat-overview-body h2 a:hover { color: var(--jx-primary); }

.jx-cat-overview-body p {
  font-size: 0.85rem;
  color: var(--jx-ink-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.jx-cat-overview-body small {
  display: block;
  font-size: 0.75rem;
  color: var(--jx-accent);
  margin-bottom: 0.65rem;
}

.jx-text-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--jx-primary);
}

/* ═══ FOOTER ═══ */
.jx-footer {
  margin-top: auto;
  background: var(--jx-header-bg);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
}

.jx-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--jx-primary), var(--jx-accent), var(--jx-coral));
}

.jx-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0 1.5rem;
}

@media (min-width: 700px) {
  .jx-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 900px) {
  .jx-footer__inner {
    gap: 2.5rem;
  }
}

.jx-footer__brand strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.65rem;
}

.jx-footer__brand p {
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  max-width: 28em;
}

.jx-footer__col h3 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 0.85rem;
}

.jx-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jx-footer__links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.jx-footer__links a:hover { color: var(--jx-accent-soft); }

.jx-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem var(--jx-gutter);
  max-width: var(--jx-max);
  margin-inline: auto;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ═══ 播放页 ═══ */
.jx-play-hero {
  position: relative;
  min-height: 280px;
  background: var(--jx-ink);
  color: #fff;
  overflow: hidden;
}

.jx-play-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.88), rgba(15, 23, 42, 0.55));
  z-index: 0;
}

.jx-play-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  opacity: 0.45;
  transform: scale(1.05);
}

.jx-play-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  align-items: center;
}

@media (min-width: 768px) {
  .jx-play-hero__inner {
    grid-template-columns: 200px 1fr;
    padding: 2.5rem 0;
  }
}

.jx-play-hero__poster {
  border-radius: var(--jx-radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  aspect-ratio: 16 / 10;
}

.jx-play-hero__poster img { width: 100%; height: 100%; object-fit: cover; }

.jx-play-hero__copy h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 900;
  margin: 0.75rem 0 0.5rem;
  line-height: 1.3;
}

.jx-play-hero__copy p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.jx-play-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem 0 3rem;
}

.jx-play-main {
  min-width: 0;
}

@media (min-width: 900px) {
  .jx-play-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

.jx-player {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--jx-radius-lg);
  overflow: hidden;
  box-shadow: var(--jx-shadow-hover);
}

.jx-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.jx-panel {
  background: var(--jx-surface);
  border: 1px solid var(--jx-border);
  border-radius: var(--jx-radius-lg);
  padding: 1.25rem;
  margin-top: 1.25rem;
  box-shadow: var(--jx-shadow);
}

.jx-panel--warm {
  background: linear-gradient(135deg, #eef2ff, #ecfdf5);
}

.jx-panel h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--jx-ink);
}

.jx-panel p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--jx-ink-muted);
}

.jx-play-side {
  background: var(--jx-surface);
  border: 1px solid var(--jx-border);
  border-radius: var(--jx-radius-lg);
  padding: 1.15rem;
  box-shadow: var(--jx-shadow);
}

@media (min-width: 900px) {
  .jx-play-side { position: sticky; top: var(--jx-sticky-top); }
}

.jx-play-side h2 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.jx-side-more {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding: 0.65rem;
  background: linear-gradient(135deg, var(--jx-primary), var(--jx-primary-dark));
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
}

/* ═══ 内页通用 ═══ */
.jx-page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: linear-gradient(135deg, #312e81, #1e1b4b);
  color: #fff;
}

.jx-page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  margin-bottom: 0.65rem;
}

.jx-page-hero p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36em;
  line-height: 1.7;
}

.jx-empty-page {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--jx-surface);
  border: 1px dashed var(--jx-border-strong);
  border-radius: var(--jx-radius-lg);
  color: var(--jx-ink-muted);
}

.jx-empty-page .jx-btn { margin-top: 1.25rem; }

.jx-empty-page__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.jx-empty-page__links a {
  color: var(--jx-primary);
  font-weight: 600;
}

.jx-empty-page__links span { color: var(--jx-ink-soft); }

.jx-section--fill {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jx-page-hero--light {
  background: linear-gradient(160deg, #eef2ff, var(--jx-bg));
  color: var(--jx-ink);
}

.jx-page-sheet {
  background: var(--jx-surface);
  border: 1px solid var(--jx-border);
  border-radius: var(--jx-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--jx-shadow);
}

/* ═══ 移动端 ═══ */
@media (max-width: 899px) {
  .jx-header {
    --jx-sticky-top: 52px;
  }

  .jx-header__nav,
  .jx-header__topics {
    display: none;
  }

  .jx-header__search {
    display: none;
  }

  .jx-header__toggle {
    display: flex;
  }

  .jx-header__row {
    min-height: 52px;
    gap: 0.75rem;
  }

  .jx-header__name em {
    display: none;
  }

  .jx-hero {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .jx-hero__spotlight {
    min-height: 220px;
  }

  .jx-hero__spotlight-body {
    min-height: 220px;
    padding: 1rem 1.1rem;
  }

  .jx-hero__trend {
    max-height: none;
  }

  .jx-card {
    grid-template-columns: 100px 1fr;
    min-height: 100px;
  }

  .jx-card__media img { min-height: 100px; }

  .jx-cat-sidebar { position: static; }

  .jx-play-side {
    margin-top: 0.5rem;
  }
}

/* ═══ 影片信息列表 ═══ */
.jx-info-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.25rem;
  margin-bottom: 1rem;
}

.jx-info-list div { display: grid; gap: 0.15rem; }

.jx-info-list dt {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--jx-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.jx-info-list dd {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--jx-ink);
  margin: 0;
}

.jx-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.jx-tag-pills span,
.jx-tag-pills a {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--jx-bg-alt);
  color: var(--jx-primary);
  font-weight: 600;
}

.jx-tag-pills a:hover { background: #eef2ff; }

.jx-search-form {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
  max-width: 480px;
}

.jx-search-form .jx-filter-input { flex: 1; }

@media (max-width: 640px) {
  .jx-hero__mini-grid { grid-template-columns: repeat(2, 1fr); }
  .jx-cats-grid { grid-template-columns: 1fr; }
  .jx-cat-overview-card { grid-template-columns: 1fr; }
  .jx-cat-overview-covers { max-height: 160px; aspect-ratio: auto; }
  .jx-info-list { grid-template-columns: 1fr; }
  .jx-search-form { flex-direction: column; }
  .jx-header__name em { display: none; }
  .jx-header__row { min-height: 50px; }
  .jx-section__head { align-items: flex-start; }
  .jx-footer__inner { gap: 1.5rem; }
  .jx-card-grid--wide,
  .jx-card-grid--dense,
  .jx-card-grid { grid-template-columns: 1fr; }
  .jx-cat-hero { padding-block: 1.75rem; }
  .jx-cat-layout { padding-block: 1.25rem 2rem; }
  .jx-play-layout { padding-block: 1.25rem 2rem; }
  .jx-play-hero__inner { padding-block: 1.5rem; }
}

