/* ==================== 1. 全局变量与 Reset ==================== */
:root {
  --brand: #ff8c42;
  --brand-hover: #d32f2f;
  --gold: #ffbc00;
  --gold-hover: #ff9f43;
  --brand-gradient: linear-gradient(135deg, #ff4545 0%, #d32f2f 100%);
  --gold-gradient: linear-gradient(135deg, #ffca28 0%, #ff9800 100%);
  --bg: #ffffff;
  --header: #ffffff;
  --card: #ffffff;
  --ink: #1c1f24;
  --muted: #6b7280;
  --border: #e5e7eb;
  --link: #ff8c42;
  --tag: #ff8c42;
  --tag-ink: #d32f2f;
  --line: #e2e8f0;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1115;
  --header: #14161c;
  --card: #161a22;
  --ink: #e9eef5;
  --muted: #a6b0c3;
  --border: #262b36;
  --link: #ff8c42;
  --tag: #ff8c42;
  --tag-ink: #ff4545;
  --line: #262b36;
}

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

::-webkit-scrollbar { width: 8px; height: 8px; background: rgba(24, 24, 24, 0.07); }
::-webkit-scrollbar-thumb { background: rgba(24, 24, 24, 0.3); border-radius: 6px; transition: background 0.2s; }
::-webkit-scrollbar-thumb:hover { background: #34495e; }

html, body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: Lato, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.modal-open { overflow: hidden; }

[hidden] { display: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--link); }
hr, .divider { border-color: var(--border); }
ul.jx-grid, ul.jx-grid > li { list-style: none; margin: 0; padding: 0; }

input, textarea, select {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

::placeholder { color: var(--muted); }

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--border); padding: 8px; text-align: left; }
th { background-color: var(--bg); }

/* ==================== 2. 内联 SVG 图标 & 动画 ==================== */
.svg-icon {
  width: 1.125em;
  height: 1.125em;
  fill: currentColor;
  vertical-align: -0.15em;
  display: inline-block;
  flex-shrink: 0;
}

i.fas, i.far, i.fal, i.fab, i.fa { display: inline-block; line-height: 1; }

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(12deg); }
  30% { transform: rotate(-10deg); }
  45% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(2deg); }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
}
@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== 3. Header 顶栏规范与页面容器 ==================== */
header.jx-header {
  width: 100%;
  background: var(--header);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
  box-sizing: border-box;
}

/* 各类宽度的容器规整 */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.jx-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

.theater-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(8px, 2vw, 16px);
  box-sizing: border-box;
}

.archive-main-container,
section.jx-section {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(8px, 2vw, 16px);
  box-sizing: border-box;
}

/* Header 顶栏基础尺寸 */
.jx-topbar {
  background: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 16px;
  position: relative;
  box-sizing: border-box;
}

/* Logo SVG 严格约束尺寸 */
.logo-wrapper,
.jx-logo {
  display: inline-flex;
  align-items: center;
  justify-content: left;
  height: 100%;
  max-height: 40px;
  width: auto;
  text-decoration: none;
}

.jx-logo svg {
  height: 32px;
  width: auto;
  max-width: 160px;
  display: block;
}

.jx-logo svg.dark-only { display: none; }
.jx-logo svg.light-only { display: inline-block; }

html[data-theme="dark"] .jx-logo svg.light-only { display: none; }
html[data-theme="dark"] .jx-logo svg.dark-only { display: inline-block; }

/* PC 端 (>=769px) Header 网格三栏居中 */
@media (min-width: 769px) {
  .jx-topbar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    height: 64px;
  }

  .jx-left-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
    height: 100%;
  }

  .jx-right-tools {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
  }
}

/* 移动端 (<=768px) Header 高度与 Logo 跨容器定位居中 */
@media (max-width: 768px) {
  .jx-topbar {
    height: 56px;
    padding: 0 12px;
  }

  .jx-left-tools {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .jx-left-tools .jx-logo,
  .jx-left-tools .logo-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    height: 30px;
    z-index: 5;
  }

  .jx-left-tools .jx-logo svg {
    height: 28px;
  }
}

.jx-right-tools { display: flex; align-items: center; gap: 12px; }

.notify-btn, .jx-icon-btn {
  background: transparent;
  border: 0;
  padding: 6px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 6px;
}

.notify-btn:hover { color: var(--brand); }
.notify-btn:hover .svg-icon { animation: bellRing 0.6s ease-in-out; }

.notify-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  background-color: #ff4545;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--header);
  animation: dotPulse 2s infinite ease-in-out;
}

/* ==================== 4. PC 与 移动端搜索框强行扁平化重置 ==================== */
/* PC 端搜索框 (>=769px) */
.jx-search {
  position: relative;
  display: flex;
  align-items: center;
  background-color: rgba(127, 127, 127, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 12px;
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.jx-search input,
.jx-search input.form-control {
  background: transparent;
  border: none;
  color: var(--ink);
  width: 100%;
  outline: none;
  font-size: 13px;
  height: 32px;
  padding-left: 8px;
  padding-right: 32px;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}

.jx-search .jx-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
}

/* 移动端搜索条 (<=768px) */
.jx-msearch {
  display: flex;
  align-items: center;
  height: 38px;
  margin: 8px;
  padding: 0;
  background: rgba(127, 127, 127, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-sizing: border-box;
}

.jx-msearch .jx-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 100%;
  color: var(--muted);
  font-size: 18px;
  flex-shrink: 0;
  text-decoration: none;
}

.jx-msearch input,
.jx-msearch input.form-control {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0 8px;
  font-size: 13.5px;
  color: var(--ink);
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}

.jx-msearch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 100%;
  border: none;
  border-left: 1px solid var(--border);
  background: rgba(127, 127, 127, 0.08);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}

/* ==================== 5. 响应式显隐规则 ==================== */
.d-mobile-only {
  display: none;
}

.d-pc-only {
  display: block;
}

@media (max-width: 768px) {
  .d-mobile-only {
    display: flex;
  }

  .d-pc-only {
    display: none;
  }

  .container { padding: 0 10px; }
}

/* ==================== 6. PC 端主导航栏 (>=769px) ==================== */
@media (min-width: 769px) {
  nav.jx-mainnav {
    background: var(--header);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    height: 48px;
    box-sizing: border-box;
    position: relative;
    z-index: 90;
  }

  nav.jx-mainnav .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    height: 100%;
  }

  nav.jx-mainnav .nav-links > a {
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding: 0 4px;
    box-sizing: border-box;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  nav.jx-mainnav .nav-links > a .svg-icon {
    font-size: 17px;
    opacity: 0.85;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  nav.jx-mainnav .nav-links > a:hover { color: var(--brand); }
  nav.jx-mainnav .nav-links > a:hover .svg-icon { opacity: 1; transform: translateY(-2px); }

  nav.jx-mainnav .nav-links > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4545, var(--brand));
    border-radius: 3px 3px 0 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
  }

  nav.jx-mainnav .nav-links > a:hover::after { width: 50%; }

  nav.jx-mainnav .nav-links > a.nav-highlight { color: #ff4545; }
  nav.jx-mainnav .nav-links > a.nav-highlight .svg-icon { animation: heartBeat 1.5s infinite ease-in-out; }
  nav.jx-mainnav .nav-links > a.nav-highlight:hover { color: #d43d4f; }

  .jx-nav-dropdown { position: relative; flex: 0 0 auto; }
  .jx-nav-dropdown > .jx-nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 10px 8px;
    color: var(--ink);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
  }

  .jx-drop {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    min-width: 260px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    padding: 10px;
    display: none;
    z-index: 2000;
  }

  .jx-nav-dropdown.open > .jx-drop,
  .jx-nav-dropdown:hover > .jx-drop { display: block; }

  .jx-drop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .jx-drop-grid a {
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--ink);
    font-size: 13.5px;
    background: rgba(127, 127, 127, 0.03);
    border: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .jx-drop-grid a:hover { border-color: var(--brand); color: var(--brand); }
}

/* ==================== 7. 移动端侧滑 Drawer 菜单 (<=768px) ==================== */
@media (max-width: 768px) {
  nav.jx-mainnav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background-color: #121417;
    z-index: 10000;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
    margin: 0;
  }

  body.canvas-visible nav.jx-mainnav,
  nav.jx-mainnav.is-open {
    transform: translateX(280px);
  }

  .jx-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 52px;
    background-color: #1a1d24;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    flex-shrink: 0;
  }

  .drawer-title-wrap { display: flex; align-items: center; gap: 8px; font-weight: 600; }

  nav.jx-mainnav .nav-links {
    display: block;
    height: auto;
    max-height: calc(100vh - 52px);
    overflow-y: auto;
    padding: 0;
    margin: 0;
  }

  nav.jx-mainnav .nav-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 48px;
    padding: 0 20px;
    gap: 14px;
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
  }

  nav.jx-mainnav .nav-links a .svg-icon {
    width: 20px;
    height: 20px;
    font-size: 18px;
    color: #ffffff;
  }

  nav.jx-mainnav .nav-links a:active,
  nav.jx-mainnav .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }

  nav.jx-mainnav .nav-links a.nav-highlight { color: #ff4545; }
  nav.jx-mainnav .nav-links a.nav-highlight .svg-icon { color: #ff4545; }

  .jx-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
  }

  body.canvas-visible .jx-mask,
  .jx-mask.is-open {
    opacity: 1;
    visibility: visible;
  }
}

/* ==================== 8. 视频网格与卡片组件 ==================== */
.gallery-title-bar, {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  margin: 32px 4px 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.archive-title-group {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.gallery-title-bar .main-title,
.archive-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  padding: 0;
  line-height: 1.1;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.gallery-title-bar .sub-more-link,
.archive-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 15px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.1;
  transition: color 0.2s ease;
}

.gallery-title-bar .sub-more-link:hover { color: var(--brand); }

.archive-description-box {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(127, 127, 127, 0.03);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
}
.archive-description-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.jx-grid { display: grid; gap: 16px; }
@media (min-width: 996px) { .jx-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 770px) and (max-width: 995px) { .jx-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 769px) { .jx-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.card-video {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transition: transform 0.3s cubic-bezier(0.215, 0.610, 0.355, 1), box-shadow 0.3s ease;
}

.card-video:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06); }
.card-video .thumb { position: relative; overflow: hidden; }
.card-video .thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px 8px 0 0; }
.card-video .thumb .duration {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
}

.card-video .info { padding: 12px 14px 16px; }
.card-video .title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
}

.card-video:hover .title a { color: var(--brand); }

.badge-featured-star {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #ffca28;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.badge-featured {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(34,34,34,0.85);
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  z-index: 10;
}

/* ==================== 9. 视频播放与详情页面板 ==================== */
.video-header-premium .premium-vp-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 20px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.premium-badge-group { display: flex; align-items: center; gap: 8px; }
.premium-badge-group .p-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.premium-badge-group .p-badge.time { background: rgba(127, 127, 127, 0.05); color: var(--muted); }
.premium-badge-group .p-badge.quality { background: rgba(255, 69, 69, 0.07); color: #ff4545; }

.vp__player-premium { background: #000; border-radius: 12px; overflow: hidden; }
.ratio-16-9 { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; }
.ratio-16-9 #dplayer { position: absolute; inset: 0; width: 100%; height: 100%; }

.vp__toolbar-premium { display: flex; border-bottom: 1px solid var(--border); margin-top: 15px; }
.vp__toolbar-premium .tb-item {
  appearance: none;
  border: none;
  background: transparent;
  flex: 1;
  padding: 14px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  transition: color 0.2s ease;
}

.vp__toolbar-premium .tb-item.is-active { color: var(--brand); }
.vp__toolbar-premium .tb-item.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: var(--brand);
}

.line-indicator {
  font-style: normal;
  font-size: 10px;
  background: #ff4545;
  color: #fff;
  padding: 1px 5px;
  border-radius: 10px;
  font-weight: 700;
}

.premium-panel-wrapper { padding: 20px 4px; }

.line-grid-premium { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 768px) { .line-grid-premium { grid-template-columns: repeat(2, 1fr); } }

.line-grid-premium .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  background: rgba(127, 127, 127, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.line-grid-premium .btn-line.line--active {
  background: var(--ink);
  border-color: var(--brand);
  color: #ffffff;
}

.video-meta-box-premium {
  background: rgba(127, 127, 127, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.meta-info-tags-flow { display: flex; flex-direction: column; gap: 14px; }
.meta-flow-row { display: flex; align-items: flex-start; font-size: 13.5px; }
.meta-flow-row .m-label { color: var(--muted); min-width: 65px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.meta-flow-row .m-val { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink); }

.premium-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
}

.premium-chip:hover { border-color: var(--brand); color: var(--brand); }

.thumbs-gallery-premium { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 768px) { .thumbs-gallery-premium { grid-template-columns: 1fr; } }
.thumbs-gallery-premium .gallery-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }

.copy-row-premium { display: flex; gap: 10px; }
.copy-row-premium input { flex: 1; border: 1px solid var(--border); background: rgba(127, 127, 127, 0.03); border-radius: 8px; padding: 10px; color: var(--ink); }
.copy-btn-premium { background: var(--brand); color: #fff; border: none; border-radius: 8px; padding: 0 18px; font-weight: 600; cursor: pointer; }

.related-section-premium { margin-top: 30px; }

/* ==================== 10. 专题大厅、语言与主题切换、Modal 弹窗与页脚 ==================== */
.topic-hall-section { margin: 20px 4px 40px; }
.topic-group-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.topic-group-card .group-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag-cloud-grid { display: flex; flex-wrap: wrap; gap: 12px; }

.clean-cloud-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(127, 127, 127, 0.04);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  gap: 6px;
}

.clean-cloud-tag .actor-name { font-weight: 400; }
.clean-cloud-tag .actor-count {
  font-size: 11px;
  color: var(--muted);
  background: rgba(127, 127, 127, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
}

.clean-cloud-tag:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  transform: translateY(-2px);
}

/* 简繁转换下拉 */
.lang-switch { position: relative; display: inline-block; }
.lang-switch .lang-btn,
.lang-switch .lang-btn-premium,
.js-lang-toggle {
  appearance: none;
  outline: none;
  background: rgba(127, 127, 127, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lang-switch .caret-icon {
  font-size: 10px;
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.lang-switch.open .caret-icon { transform: rotate(180deg); }

.lang-switch .lang-drop, .lang-switch .lang-drop-premium {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 90px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  padding: 4px;
  display: none;
  z-index: 2050;
}

.lang-switch.open .lang-drop, .lang-switch.open .lang-drop-premium { display: block; animation: slideUpIn 0.2s; }

.lang-drop .lang-item {
  width: 100%;
  display: block;
  padding: 8px 0;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}

.lang-drop .lang-item:hover { background: rgba(255, 140, 66, 0.08); color: var(--brand); }

/* 主题切换下拉组件 */
.theme-switcher { position: relative; display: inline-block; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
}

.theme-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  padding: 6px;
  display: none;
  z-index: 2000;
}

.theme-switcher.is-open .theme-menu { display: block; }
.theme-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}
.theme-item:hover { background: rgba(127,127,127,.08); }

/* JZ Modal 弹窗 */
.jz-modal { position: fixed; inset: 0; display: none; z-index: 2000; }
.jz-modal.is-open { display: block; }
.jz-backdrop { position: absolute; inset: 0; background: rgba(15, 17, 21, 0.65); backdrop-filter: blur(5px); }
.jz-dialog {
  position: relative;
  max-width: 440px;
  margin: 18vh auto;
  padding: 24px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.jz-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.jz-close:hover { color: #ff4545; }
.jz-title { text-align: center; font-size: 19px; font-weight: 800; color: var(--brand); margin: 0 0 20px 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.jz-premium-row { display: flex; gap: 14px; margin-bottom: 14px; font-size: 13.5px; }
.jz-premium-row .jz-label { color: var(--muted); min-width: 65px; text-align: right; font-weight: 600; }
.jz-premium-row .jz-value { color: var(--ink); flex: 1; }
.jz-premium-row .old-domain { color: #ff4545; font-weight: 700; background: rgba(255, 69, 69, 0.05); padding: 1px 6px; border-radius: 4px; }
.jz-premium-row .email-link { color: #2a7de1; font-weight: 600; text-decoration: none; }
.jz-premium-row .email-link:hover { text-decoration: underline; }
.jz-time { text-align: center; color: var(--muted); font-size: 11px; margin-top: 18px; }
.jz-actions { margin-top: 24px; display: flex; justify-content: center; gap: 12px; }

.jz-btn.jz-btn-primary-gradient {
  flex: 1;
  padding: 11px 20px;
  border-radius: 25px;
  background: linear-gradient(135deg, #ffa24f 0%, #ff8c42 100%);
  color: #ffffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
}

.jz-btn.jz-btn-ghost-outline {
  flex: 1;
  padding: 10px 20px;
  border-radius: 25px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: center;
}

/* 侧边悬浮小工具 */
.side-tools, .side-tools-premium {
  position: fixed;
  right: 24px;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.side-tools.show, .side-tools-premium.show { opacity: 1; pointer-events: auto; }

.side-tools .tool-btn, .side-tools-premium .tool-btn-premium {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(127, 127, 127, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.side-tools .tool-btn:hover, .side-tools-premium .tool-btn-premium:hover { background: var(--brand); color: #ffffff; }

@media (max-width: 768px) {
  .side-tools, .side-tools-premium { right: 12px; bottom: 8%; }
  .side-tools .tool-btn, .side-tools-premium .tool-btn-premium { width: 38px; height: 38px; }
}

/* 页脚 Footer */
.site-footer {
  background: var(--header);
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding: 15px 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.footer-content-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .footer-content-wrap { flex-direction: column; text-align: center; gap: 12px; }
}

.footer-brand-info .footer-logo-brand { font-size: 20px; font-weight: 800; margin: 0 0 5px 0; }
.footer-brand-info .footer-logo-brand span { color: #ff4545; }
.footer-brand-info .footer-desc { font-size: 13px; color: var(--muted); margin: 4px 0; }
.footer-brand-info .domain-link { color: var(--brand); font-weight: bold; }
.footer-brand-info .copyright { font-size: 12px; color: var(--muted); margin: 5px 0 0 0; }

.footer-nav-links a { margin-left: 20px; font-size: 14px; }
@media (max-width: 768px) { .footer-nav-links a { margin: 0 10px; } }

#youlian { margin-top: 10px; }
.friend-links {
  background: rgba(127,127,127,0.03);
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.friend-links .label {
  color: var(--muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.friend-links .links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ==================== 11. 额外补充模块 (卡片, 演员, 音频, 举报表单) ==================== */
.notice-bar { background: #000; color: #fff; text-align: center; padding: 2px 2px; font-size: 14px; line-height: 1; }
.notice-bar a { color: #ff4444; font-weight: bold; }

.chip, .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  font-size: 12px;
  color: var(--ink);
}

.chip--solid { background: #333; color: #fff; border-color: #333; }

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  line-height: 1.4;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
  padding: 22px;
  margin-bottom: 24px;
}
.card h2 { margin: 0 0 18px; font-size: 18px; font-weight: 800; color: #4f46e5; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(127,127,127,0.05);
  color: var(--ink);
  padding: 5px 8px;
  border-radius: 10px;
  font-size: 16px;
  border: 1px solid var(--border);
}

.company-card, .actor-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--card);
}
.company-name, .actor-name { margin: 0 0 1px; font-size: 18px; color: var(--ink); }
.company-intro, .actor-bio { margin: 0; color: var(--muted); }

.audio-card {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.audio-rank { font-weight: 800; font-size: 16px; color: var(--brand); width: 45px; }
.audio-details { flex: 1; }
.audio-title { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--ink); }

.report-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: var(--card);
  max-width: 720px;
}
.report-title { margin: 0 0 10px; font-size: 16px; color: #d33; }

/* ==================== 12. 分页组件 ==================== */
.archive-pagination-wrap { margin-top: 30px; margin-bottom: 40px; display: flex; justify-content: center; }
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  user-select: none;
  font-size: 14px;
}

.pagination a, .pagination span {
  display: inline-block;
  min-width: 34px;
  padding: 6px 10px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
  background: var(--card);
}

.pagination .current { background: #333; color: #fff; border-color: #333; }
.pagination .disabled { opacity: 0.35; pointer-events: none; }
.pagination .ellipsis { border: none; background: transparent; min-width: auto; padding: 6px 4px; color: var(--muted); }
/* ==================== 手机端 Logo 几何中心绝对居中（不影响 PC） ==================== */
@media (max-width: 768px) {
  /* 1. 将 Header 顶栏设为相对定位基准 */
  .jx-topbar {
    position: relative;
    height: 56px;
    padding: 0 12px;
  }

  /* 2. 将 Logo 强行脱离 Flex 布局流，死死锁定在手机屏幕 50% 的物理中心 */
  .jx-left-tools .jx-logo,
  .jx-left-tools .logo-wrapper,
  .jx-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .jx-logo svg {
    height: 28px;
    width: auto;
  }
}
.archive-header-clean {
    display: flex;
    flex-direction: column;
    margin: 32px 4px 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
