
/* ============================================================
   Factory Generated Site — 霓虹暗夜
   Layout: E | Card Style: 0 | Nav: 3
   Naming: single | Prefix: yj
   ============================================================ */


:root {
  --primary: #eb2f96;
  --primary-light: #ff85c0;
  --primary-dark: #c41d7f;
  --secondary: #722ed1;
  --secondary-light: #9254de;
  --accent: #13c2c2;
  --gradient: linear-gradient(135deg, #eb2f96 0%, #722ed1 100%);
  --gradient-soft: linear-gradient(135deg, #2a1520 0%, #1f152a 100%);

  --bg: #0a0a0f;
  --bg-card: #14141f;
  --text-primary: #ffffff;
  --text-secondary: #bfbfbf;
  --text-light: #737373;

  --border: #262636;
  --border-light: #1a1a26;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px #eb2f9620;
  --shadow-hover: 0 12px 32px #eb2f9630;

  --radius-sm: 8px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --radius-xl: 48px;
  --radius-full: 9999px;

  --container: 1140px;
  --gap: 24px;
  --gap-lg: 36px;

  --header-h: 64px;
  --tab-h: 48px;
  --topbar-h: 0px;
  --header-total: calc(var(--header-h) + var(--topbar-h));
  --top-offset: calc(var(--header-h) + var(--topbar-h) + var(--tab-h));
  --font-size: 16px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}


* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--font-size);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; outline: none; }


.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}


.y-hd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  min-height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}
.y-hd.scrolled { box-shadow: var(--shadow-sm); }

.y-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.y-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
}
.y-bar-logo {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 4px 12px #eb2f964d;
}
.y-top-text { display: flex; flex-direction: column; line-height: 1.2; }
.y-hd-name {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.y-header-tag { font-size: 11px; color: var(--text-light); font-weight: 500; }

.y-query {
  flex: 1;
  max-width: 480px;
  margin: 0 24px;
  position: relative;
}
.y-query input {
  width: 100%;
  height: 40px;
  padding: 0 48px 0 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  background: var(--bg);
  transition: var(--transition);
}
.y-query input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px #eb2f9614;
}
.y-query button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--gradient);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.y-navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.y-link-header {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 18px;
  transition: var(--transition);
  position: relative;
}
.y-link-header:hover {
  background: var(--gradient-soft);
  color: var(--primary);
}

.y-go-upload {
  height: 36px;
  padding: 0 16px;
  background: var(--gradient);
  color: #fff !important;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px #eb2f964d;
  transition: var(--transition);
}
.y-go-upload:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.y-button-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.y-button-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}


.y-topbar-tab {
  position: fixed;
  top: var(--header-total);
  left: 0;
  right: 0;
  height: var(--tab-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 999;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.y-topbar-tab::-webkit-scrollbar { display: none; }

.y-header-tablist {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap-lg);
  gap: 4px;
  white-space: nowrap;
}
.y-bar-tabitem {
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.y-bar-tabitem:hover { color: var(--primary); }
.y-bar-tabitem.active {
  color: var(--primary);
  font-weight: 700;
}
.y-bar-tabitem.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px 2px 0 0;
}


.main-content {
  padding-top: calc(var(--top-offset) + var(--gap-lg));
  padding-bottom: 80px;
  min-height: 100vh;
}


.y-row-content {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 960px;
  margin: 0 auto;
  gap: var(--gap-lg);
}
.y-aside { display: none; }


.y-aside {
  position: sticky;
  top: calc(var(--top-offset) + var(--gap-lg));
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}
.y-aside-title {
  padding: 0 20px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 8px;
}
.y-leftbar-menu,
.y-leftbar-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.y-leftbar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 44px;
  line-height: 44px;
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}
.y-leftbar-menu li a:hover {
  background: var(--gradient-soft);
  color: var(--primary);
}
.y-leftbar-menu li a.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--gradient-soft);
}
.y-leftbar-menu li a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--gradient);
  border-radius: 0 2px 2px 0;
}
.y-sidenav-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-light);
  flex-shrink: 0;
  display: inline-block;
  transition: var(--transition);
}
.y-leftbar-menu li a:hover .y-sidenav-icon,
.y-leftbar-menu li a.active .y-sidenav-icon {
  background: var(--primary);
}


.y-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-lg);
}


.y-cell {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.y-cell:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.y-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: var(--gradient-soft);
}
.y-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.y-cell:hover .y-thumb img {
  transform: scale(1.08);
}
.y-detail {
  padding: 12px 14px 14px;
}
.y-caption {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  height: 2.8em;
}


.y-stats-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
}
.y-up {
  display: flex;
  align-items: center;
  gap: 6px;
}
.y-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--primary);
  font-weight: 700;
}
.y-plays {
  display: flex;
  gap: 10px;
}
.y-plays span {
  display: flex;
  align-items: center;
  gap: 3px;
}


.y-spotlight {
  grid-column: 1 / -1;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--gap-lg);
  aspect-ratio: 21 / 9;
  background: var(--gradient);
}
.y-spotlight img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.y-ads-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex;
  align-items: center;
}
.y-ads-content .inner {
  padding: 0 48px;
  max-width: 560px;
  color: #fff;
}
.y-banner-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.y-spotlight-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.y-link-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.y-link-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  color: var(--primary-dark);
}


.y-meta-section {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  margin-bottom: 8px;
}
.y-title-section {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.y-title-section::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--gradient);
  border-radius: 2px;
}
.y-info-more {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}
.y-info-more:hover { color: var(--primary); }


.y-data-rank {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}
.y-row-rank {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
}
.y-text-rankcol h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.y-piece-rank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.y-piece-rank:last-child { border-bottom: none; }
.y-piece-rank:hover { padding-left: 4px; }
.y-text-ranknum {
  width: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  color: var(--text-light);
  flex-shrink: 0;
}
.y-piece-rank:nth-child(1) .y-text-ranknum { color: #eb2f96; }
.y-piece-rank:nth-child(2) .y-text-ranknum { color: #722ed1; }
.y-piece-rank:nth-child(3) .y-text-ranknum { color: #13c2c2; }
.y-pic-rank {
  width: 80px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gradient-soft);
}
.y-pic-rank img { width: 100%; height: 100%; object-fit: cover; }
.y-text-rankinfo { flex: 1; min-width: 0; }
.y-name-rank {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}


.y-pages {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.y-pages a {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.y-pages a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.y-pages a.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px #eb2f964d;
}


.y-tail {
  background: #1a1a2e;
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.y-ft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  margin-bottom: 32px;
}
.y-footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 700;
}
.y-footer-col li { margin-bottom: 10px; }
.y-footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.y-footer-col a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}
.y-ft-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}


.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 900;
  cursor: pointer;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}


.y-leftbar-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 1100;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 2px 0 16px rgba(0,0,0,0.1);
}
.y-leftbar-drawer.open { left: 0; }
.y-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.y-sidebar-overlay.show { opacity: 1; visibility: visible; }
.y-aside-drawerhd {
  padding: 24px 20px;
  background: var(--gradient);
  color: #fff;
}
.y-side-drawermenu { padding: 16px 0; }
.y-side-drawermenu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.y-side-drawermenu li a:hover,
.y-side-drawermenu li a.active {
  color: var(--primary);
  background: var(--gradient-soft);
  border-left-color: var(--primary);
}


.y-detail-crumb {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.y-detail-crumb a:hover { color: var(--primary); }
.y-detail-crumb .sep { opacity: 0.5; }
.y-detail-crumb .current { color: var(--text-primary); font-weight: 500; }

.y-detail-header {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.y-chip-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gradient-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.y-story-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.y-post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-light);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.y-post-meta span { display: flex; align-items: center; gap: 5px; }

.y-entry-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--gradient-soft);
}
.y-entry-cover img { width: 100%; height: 100%; object-fit: cover; }

.y-post-body {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
}
.y-post-body p { margin-bottom: 20px; }
.y-post-body h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 32px 0 16px;
  color: var(--text-primary);
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.y-post-body img {
  border-radius: var(--radius-md);
  margin: 20px 0;
  max-width: 100%;
}

.y-tag {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
.y-tag a {
  padding: 6px 14px;
  background: var(--bg);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 12px;
  transition: var(--transition);
}
.y-tag a:hover {
  background: var(--gradient);
  color: #fff;
}

.y-content-related {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.y-masonry-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.y-cell-related {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
}
.y-cell-related:hover { transform: translateY(-4px); }
.y-img-related {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gradient-soft);
}
.y-img-related img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.y-cell-related:hover .y-img-related img { transform: scale(1.05); }
.y-heading-related {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ---------- 页面包裹层 ---------- */
.page-wrapper { display: block; }
.layout-inner { display: block; min-width: 0; }
.group-block { display: block; min-width: 0; }
.side-inner { display: block; }
.main-area {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  min-width: 0;
  order: 1;
}
.y-aside { order: 2; }
.card-slot { display: contents; }

/* ---------- 顶部工具条 ---------- */
.topbar {
  background: var(--gradient);
  color: rgba(255,255,255,0.92);
  font-size: 12px;
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap-lg);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  white-space: nowrap;
}
.topbar-inner a { color: rgba(255,255,255,0.92); }
.topbar-inner a:hover { color: #fff; text-decoration: underline; }
.topbar-inner ul,
.topbar-inner nav { display: flex; align-items: center; gap: 12px; }
.topbar-inner ul li { display: inline-flex; }
.topbar-inner em,
.topbar-inner p,
.topbar-inner span { font-style: normal; }

/* ---------- Header 行与动作区 ---------- */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: var(--header-h);
}
.act-item { display: inline-flex; align-items: center; }
.actions-wrap { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- 频道条内层 ---------- */
.y-header-tablist > li {
  display: flex;
  align-items: center;
  height: 100%;
}
.tab-track {
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.tab-track::-webkit-scrollbar { display: none; }
.tab-track > .y-header-tablist { padding: 0 var(--gap-lg); }
.tab-cell { display: inline-flex; align-items: center; height: 100%; }

/* ---------- 侧栏菜单补充（div/dl 挂载形态） ---------- */
.y-leftbar-menu dt {
  display: block;
  padding: 0 20px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
}
.y-leftbar-menu dd { margin: 0; }
.y-leftbar-menu > a,
.y-leftbar-menu dd > a,
.y-leftbar-menu > div > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 44px;
  line-height: 44px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}
.y-leftbar-menu > a:hover,
.y-leftbar-menu dd > a:hover,
.y-leftbar-menu > a.active,
.y-leftbar-menu dd > a.active {
  background: var(--gradient-soft);
  color: var(--primary);
}

/* ---------- 卡片角标与遮罩 ---------- */
.dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(0,0,0,0.68);
  color: #fff;
  font-size: 11px;
  line-height: 1.7;
}
.score-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
}
.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.28);
  opacity: 0;
  transition: var(--transition);
}
.icon-play {
  font-style: normal;
  color: #fff;
  font-size: 26px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
.y-cell:hover .card-overlay { opacity: 1; }

/* ---------- Hero 变体 ---------- */
.y-spotlight > figure { width: 100%; height: 100%; margin: 0; }
.y-spotlight > .hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.y-ads-content { z-index: 2; }
.hero-wrap { display: block; }
.hero-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-style: normal;
  font-size: 12px;
}

/* ---------- 公告条 ---------- */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  font-size: 13px;
  color: var(--text-secondary);
}
.notice-bar h5 { font-size: 13px; font-weight: 700; color: var(--primary); }
.notice-bar p,
.notice-bar small { font-size: 13px; color: var(--text-secondary); }
.notice-tag {
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- 快捷入口 ---------- */
.quick-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quick-entry > a,
.quick-entry li,
.quick-entry > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
}
.quick-entry a { color: var(--text-secondary); }
.quick-entry a:hover { color: var(--primary); }
.quick-entry ul,
.quick-entry ol { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.quick-entry em,
.quick-entry i { font-style: normal; font-size: 12px; color: var(--text-light); }

/* ---------- 热播条 ---------- */
.hotlist-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
}
.hotlist-bar > em,
.hotlist-bar > b,
.hotlist-bar > h4 {
  flex-shrink: 0;
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
}
.hotlist-bar a { color: var(--text-secondary); margin-right: 10px; }
.hotlist-bar a:hover { color: var(--primary); }
.hotlist-bar p,
.hotlist-bar div { display: flex; flex-wrap: wrap; gap: 10px 4px; }

/* ---------- 标签云 ---------- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tag-cloud > li { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.tag-cloud .tag-body { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.tag-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  transition: var(--transition);
}
.tag-item:hover { color: var(--primary); box-shadow: var(--shadow-md); }

/* ---------- 排行榜补充 ---------- */
.rank-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.y-text-rankcol h3,
.y-text-rankcol h5,
.y-text-rankcol dt,
.y-text-rankcol > header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.y-text-rankcol > header h3,
.y-text-rankcol > header h4 { margin: 0; padding: 0; border: none; }
.y-text-rankcol dd,
.y-text-rankcol li { margin: 0; }
.y-text-rankcol dd > a,
.y-text-rankcol li > a { width: 100%; }
.rank-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.rank-line .y-name-rank { flex: 1; min-width: 0; }

/* ---------- 分页补充 ---------- */
.y-pages > li,
.y-pages > span { display: inline-flex; align-items: center; }
.y-pages > button {
  min-width: 36px;
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}
.y-pages > button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.y-pages .prev,
.y-pages .next,
.y-pages .page-btn { padding: 0 14px; white-space: nowrap; }
.y-pages .page-info {
  padding: 0 6px;
  border: none;
  background: none;
  color: var(--text-light);
  font-size: 12px;
}

/* ---------- 页脚补充 ---------- */
.col-body { display: flex; flex-direction: column; gap: 10px; }
.col-line { font-size: 13px; color: rgba(255,255,255,0.5); transition: var(--transition); }
.col-line:hover { color: var(--primary-light); padding-left: 4px; }
.y-footer-col dd { margin-bottom: 10px; }
.y-footer-col p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.9; }
.y-footer-col p span,
.y-footer-col p em { display: inline-block; margin-right: 12px; font-style: normal; }

/* ---------- 抽屉菜单补充 ---------- */
.y-side-drawermenu dt,
.y-side-drawermenu dd { margin: 0; }
.y-side-drawermenu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.y-side-drawermenu a:hover,
.y-side-drawermenu a.active {
  color: var(--primary);
  background: var(--gradient-soft);
  border-left-color: var(--primary);
}
.dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  display: inline-block;
  border-radius: 50%;
  background: var(--primary-light);
}

/* ---------- 站点专属补充区块（带站点后缀，用属性选择器） ---------- */
[class^="stats-"] {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
[class^="stats-"] > div,
[class^="stats-"] > p,
[class^="stats-"] > li { flex: 1 1 120px; text-align: center; }
[class^="stats-"] b,
[class^="stats-"] strong,
[class^="stats-"] em {
  display: block;
  font-style: normal;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}
[class^="stats-"] span,
[class^="stats-"] small,
[class^="stats-"] i { font-style: normal; font-size: 12px; color: var(--text-light); }

[class^="faq-"]:not([class^="faq-body-"]) {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
[class^="faq-"]:not([class^="faq-body-"]) > h3,
[class^="faq-"]:not([class^="faq-body-"]) > h4 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
[class^="faq-"] > header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
[class^="faq-"] > header h4 { font-size: 16px; font-weight: 800; }
[class^="faq-"] > header small { font-size: 12px; color: var(--text-light); }
[class^="faq-body-"] { display: flex; flex-direction: column; gap: 8px; }
[class^="faq-body-"] details { padding: 10px 14px; border-radius: var(--radius-md); background: var(--bg); }
[class^="faq-body-"] summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
[class^="faq-body-"] summary::-webkit-details-marker { display: none; }
[class^="faq-body-"] p { margin-top: 8px; font-size: 13px; color: var(--text-light); line-height: 1.7; }

[class^="sub-"]:not([class^="sub-row-"]) {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--gradient-soft);
}
[class^="sub-"]:not([class^="sub-row-"]) p { font-size: 14px; color: var(--text-secondary); }
[class^="sub-row-"] { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; }
[class^="sub-"]:not([class^="sub-row-"]) form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; }
[class^="sub-"]:not([class^="sub-row-"]) label { font-size: 13px; font-weight: 700; color: var(--primary); }
[class^="sub-"]:not([class^="sub-row-"]) input {
  height: 36px;
  min-width: 200px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: #fff;
  font-size: 13px;
}
[class^="sub-"]:not([class^="sub-row-"]) button {
  height: 36px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  background: var(--gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

[class^="partners-"] {
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
[class^="partners-"] h4 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
[class^="partners-"] ul,
[class^="partners-"] ol,
[class^="partners-"] > div { display: flex; flex-wrap: wrap; gap: 10px 18px; }
[class^="partners-"] a { font-size: 13px; color: var(--text-secondary); }
[class^="partners-"] a:hover { color: var(--primary); }

[class^="tags-"] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
[class^="tags-"] ul { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
[class^="tags-"] li { display: inline-flex; }
[class^="tags-"] a,
[class^="tags-"] span,
[class^="tags-"] em {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
}
[class^="tags-"] a:hover { color: var(--primary); }
[class^="tags-"] p { display: flex; flex-wrap: wrap; gap: 8px; }

[class^="topics-"] {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
[class^="topics-"] h4 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
[class^="topics-"] > div,
[class^="topics-"] ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
[class^="topics-"] figure,
[class^="topics-"] li {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
}
[class^="topics-"] img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
[class^="topics-"] figcaption,
[class^="topics-"] li span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.65));
  color: #fff;
  font-size: 13px;
}

/* ---------- 补全层响应式 ---------- */
@media (max-width: 767px) {
  :root { --topbar-h: 0px; }
  .main-area { gap: var(--gap); }
  .header-row { gap: 10px; }
  .topbar-inner { height: var(--topbar-h); font-size: 11px; gap: 8px; }
  .topbar-inner nav,
  .topbar-inner ul { gap: 8px; }
  .quick-entry > a,
  .quick-entry li,
  .quick-entry > span { padding: 6px 12px; font-size: 12px; }
  .tag-item { padding: 5px 11px; }
  [class^="stats-"] { gap: 10px; padding: 14px 12px; }
  [class^="stats-"] > div,
  [class^="stats-"] > p,
  [class^="stats-"] > li { flex: 1 1 40%; }
  [class^="topics-"] > div,
  [class^="topics-"] ul { grid-template-columns: 1fr 1fr; }
  [class^="sub-"]:not([class^="sub-row-"]) input { min-width: 0; flex: 1 1 120px; }
  .rank-line { gap: 8px; }
}


/* ≥1440px — 大屏 */
@media (min-width: 1440px) {
  .y-wrap { grid-template-columns: repeat(4, 1fr); }
}

/* ≤1280px — 中小屏 */
@media (max-width: 1279px) {
  .y-wrap { grid-template-columns: repeat(3, 1fr); }
  .y-row-rank { grid-template-columns: repeat(2, 1fr); }
  .y-ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ≤1024px — 平板 */
@media (max-width: 1023px) {
  :root {
    --header-h: 56px;
    --gap-lg: 16px;
  }
  .y-row-content { grid-template-columns: 1fr; }
  .y-aside { display: none; }
  .y-wrap { grid-template-columns: repeat(3, 1fr); }
  .y-banner-title { font-size: 24px; }
  .y-query { max-width: 320px; }
  .y-masonry-related { grid-template-columns: repeat(3, 1fr); }
}

/* ≤768px — 移动端 */
@media (max-width: 767px) {
  :root {
    --header-h: 52px;
    --tab-h: 44px;
  }
  .container { padding: 0 12px; }
  .y-button-toggle { display: flex; }
  .y-query { display: none; }
  .y-go-upload { display: none; }

  .y-wrap { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .y-spotlight { aspect-ratio: 16 / 9; }
  .y-banner-title { font-size: 20px; }
  .y-ads-content .inner { padding: 0 20px; max-width: 100%; }

  .y-row-rank { grid-template-columns: 1fr; gap: 20px; }
  .y-title-section { font-size: 17px; }

  .y-ft-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .y-detail-header { padding: 20px; }
  .y-story-title { font-size: 20px; }
  .y-post-body { padding: 20px; font-size: 14px; }
  .y-post-body h2 { font-size: 18px; }
  .y-entry-cover { aspect-ratio: 16 / 9; }
  .y-masonry-related { grid-template-columns: 1fr; }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
    font-size: 16px;
  }
}

/* ≤390px — 小屏手机 */
@media (max-width: 390px) {
  .y-wrap { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .y-caption { font-size: 12px; }
  .y-banner-title { font-size: 17px; }
  .y-title-section { font-size: 16px; }
}


@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.y-cell {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}
.y-cell:nth-child(1) { animation-delay: 0.05s; }
.y-cell:nth-child(2) { animation-delay: 0.1s; }
.y-cell:nth-child(3) { animation-delay: 0.15s; }
.y-cell:nth-child(4) { animation-delay: 0.2s; }
.y-cell:nth-child(5) { animation-delay: 0.25s; }
.y-cell:nth-child(6) { animation-delay: 0.3s; }
.y-cell:nth-child(7) { animation-delay: 0.35s; }
.y-cell:nth-child(8) { animation-delay: 0.4s; }
