﻿:root {
  --brand-blue: #2d7ff9;
  --brand-cyan: #35c6ff;
  --brand-green: #3be6b7;
  --brand-yellow: #ffd166;
  --brand-orange: #ff8f5f;
  --ink: #11223b;
  --muted: #5d6b88;
  --bg: #eaf4ff;
  --card: rgba(255, 255, 255, 0.92);
  --stroke: #d6e4f5;
  --shadow: 0 18px 40px rgba(18, 44, 78, 0.12);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "MiSans", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #e8f3ff 0%, #f7fbff 45%, #ffffff 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(53, 198, 255, 0.35), rgba(53, 198, 255, 0));
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}

body::before {
  top: -120px;
  right: -140px;
}

body::after {
  bottom: -160px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(59, 230, 183, 0.3), rgba(59, 230, 183, 0));
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 32px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.page-new-online .section-head {
  align-items: flex-start;
  gap: 16px;
}

.page-new-online .section-head-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.drive-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drive-filter img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.drive-filter.active,
.drive-filter:hover {
  color: var(--ink);
  border-color: rgba(45, 127, 249, 0.4);
  background: rgba(45, 127, 249, 0.12);
}

.section-head h2 {
  font-size: 22px;
  letter-spacing: 0.5px;
}

.section-head p {
  color: var(--muted);
  font-size: 14px;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.section-tabs button {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.section-tabs button.active,
.section-tabs button:hover {
  color: var(--ink);
  border-color: rgba(45, 127, 249, 0.4);
  background: rgba(45, 127, 249, 0.12);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(45, 127, 249, 0.25);
}

.btn.secondary {
  background: linear-gradient(135deg, var(--brand-green), #6ee7ff);
  color: #07324b;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--stroke);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(18, 44, 78, 0.16);
}

.site-header {
  padding: 18px 0 12px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand span {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 14px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  border: 1px solid var(--stroke);
}

.nav a {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a.active,
.nav a:hover {
  background: rgba(45, 127, 249, 0.15);
  color: var(--ink);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.hero {
  padding: 18px 0 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.hero-grid > * {
  min-width: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  animation: floatIn 0.6s ease both;
}

.search-panel {
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.panel-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.search-bar {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr auto;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 8px;
  border: 1px solid var(--stroke);
}

.search-bar input,
.search-bar select {
  border: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  outline: none;
}

.search-bar button {
  border-radius: 999px;
  padding: 10px 20px;
}

.search-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

.option-block h4 {
  font-size: 14px;
  margin-bottom: 8px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.chip.active,
.chip:hover {
  color: var(--ink);
  border-color: rgba(45, 127, 249, 0.35);
  background: rgba(45, 127, 249, 0.1);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.is-open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: min(640px, 92vw);
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  padding: 20px;
  z-index: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-header h3 {
  font-size: 16px;
  margin: 0;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-size: 13px;
  background: #fff;
  color: var(--ink);
}

.search-bar select {
  display: none;
}

.textarea {
  min-height: 90px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.modal-message {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.form-message {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}

.form-message[data-type="error"] {
  color: #d9534f;
}

.form-message[data-type="success"] {
  color: #21a179;
}

.search-modal .modal-panel {
  width: min(1180px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
}

.search-modal .modal-header {
  align-items: flex-start;
  gap: 12px;
}

.search-header {
  width: 100%;
}

.search-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-modal .modal-header h3 {
  font-size: 17px;
}

.search-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.search-modal-body {
  overflow: auto;
  padding-right: 4px;
  flex: 1;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.search-modal-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.search-summary {
  margin: 4px 0 12px;
  font-size: 12px;
  color: var(--muted);
}

.search-drive-types {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 520px;
}

.search-drive-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(45, 127, 249, 0.2);
  background: rgba(45, 127, 249, 0.08);
  font-size: 11px;
  color: #2d3f5c;
  white-space: nowrap;
  cursor: pointer;
}

.search-drive-chip img {
  width: 16px;
  height: 16px;
  display: block;
}

.search-drive-chip.active {
  border-color: rgba(45, 127, 249, 0.5);
  background: rgba(45, 127, 249, 0.18);
  color: #1f3556;
}

.search-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.search-grid .media-card {
  animation: none;
}

.search-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.search-loading {
  min-height: 240px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.search-grid .search-loading {
  grid-column: 1 / -1;
}

.search-loading .spinner {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(45, 127, 249, 0.1),
    rgba(45, 127, 249, 0.9),
    rgba(108, 233, 200, 0.9),
    rgba(45, 127, 249, 0.2)
  );
  box-shadow: 0 0 18px rgba(45, 127, 249, 0.25);
  animation: spin 1s linear infinite;
}

.search-loading .spinner::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(45, 127, 249, 0.12);
}

.transfer-panel {
  width: min(450px, 92vw);
  border-radius: 18px;
  position: relative;
}

.transfer-close {
  position: absolute;
  top: 12px;
  right: 16px;
}

.transfer-dialog {
  min-height: 100px;
  text-align: center;
}

.transfer-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
}

.transfer-loading {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.transfer-loading .spinner {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(45, 127, 249, 0.1),
    rgba(45, 127, 249, 0.9),
    rgba(108, 233, 200, 0.9),
    rgba(45, 127, 249, 0.2)
  );
  box-shadow: 0 0 18px rgba(45, 127, 249, 0.25);
  animation: spin 1s linear infinite;
  position: relative;
}

.transfer-loading .spinner::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(45, 127, 249, 0.12);
}

.transfer-tips {
  margin-top: 12px;
  color: #666;
  font-size: 14px;
  text-align: center;
}

.transfer-tips.is-error {
  color: #ff3f3d;
}

.transfer-visit {
  margin-top: 14px;
  padding: 8px 22px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #fff;
  display: none;
}

.transfer-qr {
  margin: 24px auto 0;
  width: 200px;
  height: 200px;
  border: 1.5px solid #e5e6e8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transfer-qr canvas {
  width: 100%;
  height: 100%;
  padding: 10px;
}

.transfer-nav {
  margin-top: 15px;
  font-size: 15px;
}

.transfer-nav .item {
  color: #333;
  text-align: center;
  margin-top: 5px;
}

.transfer-nav .item .t {
  font-weight: 600;
}

.transfer-nav .item a {
  color: var(--brand-blue);
}

.transfer-nav #transferLinkItem {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transfer-nav #transferLinkItem span {
  flex: 0 0 auto;
}

.transfer-nav #transferLinkItem a {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transfer-statement {
  margin-top: 24px;
  padding-top: 15px;
  text-align: left;
  font-size: 10px;
  border-top: 1px dashed #e6e6e6;
}

.transfer-statement .content {
  margin-bottom: 8px;
  color: #666;
  line-height: 1.6;
}

.transfer-statement .content p {
  text-align: justify;
  margin-top: 5px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.category-block {
  margin-top: auto;
}

.search-panel .category-tabs {
  margin-top: 10px;
  padding-top: 6px;
}

.dashed-divider {
  margin: 8px 0 6px;
  border-top: 1px dashed rgba(45, 127, 249, 0.35);
}

.category-tabs .tab {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(45, 127, 249, 0.07);
  font-size: 13px;
  color: var(--ink);
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.category-tabs .tab strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.category-tabs .tab span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.stats-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--stroke);
  min-width: 0;
}

.stat-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.stat-card p {
  font-size: 12px;
  color: var(--muted);
}

.stat-card strong {
  display: block;
  font-size: 18px;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.top-chart {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--stroke);
  --row-height: 22px;
  --row-gap: 8px;
  --scroll-distance: calc((var(--row-height) + var(--row-gap)) * 5);
}

.top-chart h4 {
  font-size: 15px;
  margin-bottom: 10px;
}

.top-chart ol {
  list-style: none;
  display: grid;
  gap: var(--row-gap);
  margin: 0;
  padding: 0;
}

.top-chart li {
  display: flex;
  font-size: 13px;
  min-height: var(--row-height);
  align-items: center;
  min-width: 0;
}

.top-chart li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.top-chart .recent-title {
  flex: 1 1 auto;
  font-weight: 400;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-chart .recent-time {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--muted);
}

.scroll-box {
  height: calc(var(--row-height) * 5 + var(--row-gap) * 4);
  overflow: hidden;
  position: relative;
}

.scroll-list {
  animation: scrollList 24s linear infinite;
  will-change: transform;
}

.scroll-box:hover .scroll-list {
  animation-play-state: paused;
}

@keyframes scrollList {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(-1 * var(--scroll-distance)));
  }
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.home-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.home-grid .media-card .poster {
  height: 230px;
}

.filter-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.filter-grid .media-card .poster {
  height: 230px;
}

.detail-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.detail-grid .media-card .poster {
  height: 230px;
}

@media (max-width: 1200px) {
  .home-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .filter-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.media-card {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: rise 0.6s ease both;
}

.media-card-link {
  display: block;
}

.media-card .poster {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.media-card .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card .poster img.drive-badge {
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
}

.search-grid .poster.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(45, 127, 249, 0.2);
  border-top-color: rgba(45, 127, 249, 0.9);
  animation: spin 0.9s linear infinite;
}

.search-grid .poster.is-loading::before {
  content: '加载中';
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  font-size: 11px;
  color: #7b8ba7;
  background: rgba(255, 255, 255, 0.75);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(45, 127, 249, 0.15);
}

.search-grid .poster.no-cover {
  background: linear-gradient(135deg, rgba(230, 238, 251, 0.9), rgba(245, 249, 255, 0.9));
}

.search-grid .poster.no-cover::after {
  content: '暂无封面';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93a1ba;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.search-grid .poster.no-cover img {
  opacity: 0;
}

.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(12, 18, 28, 0.38);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  min-width: 34px;
  text-align: center;
}

.ai-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(12, 18, 28, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.2;
  max-width: 70%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
}

.drive-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 16px rgba(18, 44, 78, 0.18);
  object-fit: contain;
}

.media-info {
  padding: 10px 12px 12px;
  display: grid;
  gap: 6px;
}

.media-info h3 {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-title {
  position: relative;
  display: block;
}

.search-title::after {
  content: attr(data-fulltitle);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(17, 34, 59, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 10px 20px rgba(18, 44, 78, 0.2);
  z-index: 5;
}

.search-title:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.media-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-meta.search-meta {
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-meta-left {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}

.search-meta-left span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.4;
}

.search-meta-left em {
  font-style: normal;
  color: #6f7f98;
  flex: 0 0 36px;
  text-align: right;
}

.search-meta-right {
  flex-shrink: 0;
}

.home-grid .media-meta {
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-meta {
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-grid .media-meta {
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-grid .media-meta {
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-new-online .media-meta {
  font-size: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.page-new-online .media-meta.meta-time {
  display: flex;
  gap: 4px;
  align-items: center;
  overflow: visible;
  text-overflow: unset;
}

.page-new-online .media-meta.meta-time .meta-label {
  color: var(--muted);
}

.page-new-online .media-meta.meta-time .meta-value {
  color: #1c4aa6;
  font-variant-numeric: tabular-nums;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.resource-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #fff;
  box-shadow: 0 6px 12px rgba(45, 127, 249, 0.18);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.resource-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(45, 127, 249, 0.22);
}

.resource-btn.disabled {
  background: rgba(45, 127, 249, 0.12);
  color: #8aa2c8;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.tag {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(45, 127, 249, 0.12);
  color: #1c4aa6;
}

.insight-strip {
  padding-top: 8px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.insight-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(45, 127, 249, 0.14), rgba(53, 198, 255, 0.1));
  border: 1px solid rgba(45, 127, 249, 0.2);
}

.insight-card h4 {
  font-size: 14px;
  margin-bottom: 6px;
}

.insight-card p {
  font-size: 12px;
  color: var(--muted);
}

.filter-panel {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  padding-right: 40px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.filter-group.is-collapsed .filter-chips {
  max-height: var(--filter-row-height, 34px);
  overflow: hidden;
}

.filter-group.is-scroll .filter-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-group.is-scroll .filter-chips::-webkit-scrollbar {
  height: 0;
}

.filter-group.is-scroll .filter-chip {
  flex: 0 0 auto;
}

.filter-toggle {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  flex: 0 0 auto;
  position: absolute;
  top: 2px;
  right: 0;
}

.filter-toggle:hover {
  color: var(--ink);
  border-color: rgba(45, 127, 249, 0.35);
  background: rgba(45, 127, 249, 0.1);
}

.filter-toggle[hidden] {
  display: none;
}


.filter-group strong {
  font-size: 13px;
  margin-right: 6px;
  white-space: nowrap;
  flex: 0 0 var(--filter-label-width, 52px);
  text-align: right;
  line-height: var(--filter-row-height, 34px);
}

.filter-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 12px;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: rgba(45, 127, 249, 0.4);
  background: rgba(45, 127, 249, 0.1);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.pagination button {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 6px 12px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}

.pagination button.active {
  background: rgba(45, 127, 249, 0.15);
  border-color: rgba(45, 127, 249, 0.35);
}

.pagination .page-ellipsis {
  padding: 6px 4px;
  color: var(--muted);
  font-size: 12px;
}

.detail-hero {
  display: grid;
  --detail-poster-height: 440px;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.detail-poster {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  height: var(--detail-poster-height);
  width: 100%;
  max-width: 320px;
  background: var(--card);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: var(--detail-poster-height);
}

.detail-info h1 {
  font-size: 24px;
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.detail-title-row h1 {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.netdisk-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #1c4aa6;
  background: linear-gradient(135deg, rgba(45, 127, 249, 0.18), rgba(53, 198, 255, 0.22));
  border: 1px solid rgba(45, 127, 249, 0.35);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.detail-block {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 14px;
}

.detail-block h3 {
  font-size: 15px;
  margin-bottom: 14px;
}

.detail-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-block-head h3 {
  margin-bottom: 0;
}

.detail-block p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

#detailDesc {
  height: calc(1.6em * 10);
  overflow: hidden;
}

.detail-tip {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.desc-block {
  flex: 1 1 auto;
  min-height: 0;
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 26px;
}

.resource-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.resource-label {
  font-size: 12px;
  color: var(--muted);
}

.resource-value {
  font-size: 13px;
  color: #1c4aa6;
  margin-right: 12px;
}

.resource-sep {
  color: var(--muted);
}

.resource-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.resource-item strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink);
}

.resource-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
}

.resource-block {
  margin-top: auto;
}

.resource-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}

.site-footer {
  padding: 28px 0 40px;
  margin-top: 10px;
  border-top: 1px solid rgba(214, 228, 245, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}

.footer-grid h4 {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--ink);
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  overflow-x: auto;
  white-space: nowrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-links .sep {
  color: var(--muted);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-hero {
    grid-template-columns: 1fr;
    --detail-poster-height: auto;
  }

  .detail-poster {
    height: auto;
    max-width: 100%;
  }

  .detail-poster img {
    height: auto;
    width: 100%;
    border-radius: var(--radius-lg);
    max-width: 100%;
  }

  .detail-info {
    height: auto;
  }

  .resource-block {
    margin-top: 0;
  }

  .home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .search-bar {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .insight-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transfer-panel {
    width: 90vw;
  }

  .transfer-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .transfer-qr {
    width: 100%;
  }
}
