/* ===== 视频赏析页 ===== */

html:not(.vs-page-unlocked) .vs-page-main {
  visibility: hidden;
  pointer-events: none;
}

body.vs-page-locked {
  overflow: hidden;
}

.vs-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(160deg, rgb(15 23 42 / 0.94) 0%, rgb(30 27 75 / 0.96) 55%, rgb(12 74 110 / 0.94) 100%),
    radial-gradient(ellipse 70% 50% at 20% 0%, rgb(56 189 248 / 0.25), transparent 55%);
}

.vs-gate[hidden] {
  display: none !important;
}

.vs-gate-card {
  width: min(100%, 400px);
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.4);
  text-align: center;
  font-family: 'Noto Sans SC', system-ui, sans-serif;
}

.vs-gate-icon {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 8px;
}

.vs-gate-card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: #0f172a;
}

.vs-gate-desc {
  margin: 0 0 24px;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.vs-gate-label {
  display: block;
  margin-bottom: 8px;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.vs-gate-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  box-sizing: border-box;
}

.vs-gate-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgb(56 189 248 / 0.2);
}

.vs-gate-error {
  min-height: 1.25em;
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: #dc2626;
  text-align: left;
}

.vs-gate-submit {
  width: 100%;
  margin-top: 16px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  border: none;
}

.vs-gate-back {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
}

.vs-gate-back:hover {
  color: #0ea5e9;
}

body.videos-page {
  --vs-bg: #0b1020;
  --vs-surface: rgb(255 255 255 / 0.06);
  --vs-surface-hover: rgb(255 255 255 / 0.1);
  --vs-border: rgb(255 255 255 / 0.1);
  --vs-text: #f8fafc;
  --vs-muted: rgb(248 250 252 / 0.62);
  --vs-accent: #38bdf8;
  --vs-accent-2: #818cf8;
  --vs-gold: #fbbf24;
  background: var(--vs-bg);
  color: var(--vs-text);
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  min-height: 100vh;
}

.videos-page .vs-bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgb(56 189 248 / 0.16), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 20%, rgb(129 140 248 / 0.14), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgb(251 191 36 / 0.08), transparent 55%);
}

.videos-page .header,
.videos-page .section,
.videos-page .footer {
  position: relative;
  z-index: 1;
}

.videos-page .vs-header {
  background: rgb(11 16 32 / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--vs-border);
}

.videos-page .vs-logo {
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}

.videos-page .vs-logo .logo-text {
  color: var(--vs-text);
}

.videos-page .vs-nav .nav-link {
  color: var(--vs-muted);
}

.videos-page .vs-nav .nav-link:hover,
.videos-page .vs-nav .nav-link.active {
  color: var(--vs-text);
}

.videos-page .vs-mobile-home {
  display: none;
}

.videos-page .vs-hero {
  padding: calc(var(--header-h, 64px) + 32px) 0 48px;
}

.videos-page .vs-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: center;
}

.videos-page .vs-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(56 189 248 / 0.14);
  border: 1px solid rgb(56 189 248 / 0.28);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.videos-page .vs-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, #bae6fd 45%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.videos-page .vs-hero-copy p {
  margin: 0;
  color: var(--vs-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 36em;
}

.videos-page .vs-player-shell {
  border-radius: 20px;
  overflow: hidden;
  background: rgb(0 0 0 / 0.45);
  border: 1px solid var(--vs-border);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
}

.videos-page .vs-player-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 280px;
  padding: 32px;
  color: var(--vs-muted);
  text-align: center;
}

.videos-page .vs-player-empty[hidden],
.videos-page .vs-player[hidden],
.videos-page .vs-player-meta[hidden] {
  display: none !important;
}

.videos-page .vs-player-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid var(--vs-border);
}

.videos-page .vs-player {
  display: block;
  width: 100%;
  max-height: min(52vh, 420px);
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.videos-page .vs-player-meta {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--vs-border);
  background: rgb(255 255 255 / 0.03);
}

.videos-page .vs-player-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.videos-page .vs-player-summary {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--vs-muted);
  line-height: 1.5;
}

.videos-page .vs-speed-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.videos-page .vs-speed-label {
  font-size: 12px;
  color: var(--vs-muted);
}

.videos-page .vs-speed-btn {
  border: 1px solid var(--vs-border);
  background: var(--vs-surface);
  color: var(--vs-text);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.videos-page .vs-speed-btn.is-active {
  border-color: rgb(56 189 248 / 0.5);
  background: rgb(56 189 248 / 0.18);
  color: #7dd3fc;
}

.videos-page .vs-card-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: linear-gradient(135deg, rgb(30 41 59 / 0.9), rgb(15 23 42 / 0.95));
  color: rgb(148 163 184 / 0.8);
}

.videos-page .vs-section {
  padding-top: 12px;
  padding-bottom: 48px;
}

.videos-page .vs-section-head {
  margin-bottom: 20px;
}

.videos-page .vs-section-title {
  color: var(--vs-text);
  margin-bottom: 6px;
}

.videos-page .vs-section-desc {
  margin: 0;
  color: var(--vs-muted);
  font-size: 14px;
}

.videos-page .vs-gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.videos-page .vs-folder-hint {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgb(56 189 248 / 0.08);
  border: 1px solid rgb(56 189 248 / 0.2);
  color: var(--vs-muted);
  font-size: 13px;
  line-height: 1.65;
}

.videos-page .vs-folder-hint code,
.videos-page .vs-folder-hint strong {
  color: #bae6fd;
}

.videos-page .vs-folder-hint em {
  color: rgb(248 250 252 / 0.78);
  font-style: normal;
}

.videos-page .vs-edit-file {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted, #64748b);
  word-break: break-all;
}

.videos-page .vs-upload-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  border: none;
}

.videos-page .vs-analysis-card {
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--vs-surface);
  border: 1px solid var(--vs-border);
  line-height: 1.85;
  font-size: 15px;
  color: rgb(248 250 252 / 0.92);
}

.videos-page .vs-analysis-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.videos-page .vs-analysis-time {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--vs-border);
  font-size: 12px;
  color: var(--vs-muted);
}

.videos-page .vs-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--vs-muted);
  background: var(--vs-surface);
  border-radius: 16px;
  border: 1px dashed var(--vs-border);
}

.videos-page .vs-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  color: var(--vs-muted);
}

.videos-page .vs-loading[hidden],
.videos-page .vs-grid[hidden],
.videos-page .vs-empty[hidden],
.videos-page .vs-analysis-card[hidden] {
  display: none !important;
}

.videos-page .vs-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgb(255 255 255 / 0.12);
  border-top-color: var(--vs-accent);
  border-radius: 50%;
  animation: vs-spin 0.8s linear infinite;
}

@keyframes vs-spin {
  to { transform: rotate(360deg); }
}

.videos-page .vs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.videos-page .vs-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--vs-surface);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.videos-page .vs-card:hover {
  transform: translateY(-3px);
  border-color: rgb(56 189 248 / 0.35);
  box-shadow: 0 14px 36px rgb(0 0 0 / 0.28);
}

.videos-page .vs-card.is-active {
  border-color: rgb(129 140 248 / 0.55);
  box-shadow: 0 0 0 1px rgb(129 140 248 / 0.25);
}

.videos-page .vs-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgb(0 0 0 / 0.35);
  overflow: hidden;
}

.videos-page .vs-card-thumb img,
.videos-page .vs-card-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.videos-page .vs-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 0.22);
  font-size: 28px;
  opacity: 0;
  transition: opacity 0.2s;
}

.videos-page .vs-card:hover .vs-card-play {
  opacity: 1;
}

.videos-page .vs-card-body {
  padding: 14px 16px 16px;
}

.videos-page .vs-card-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.videos-page .vs-card-summary {
  margin: 0;
  font-size: 12px;
  color: var(--vs-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.videos-page .vs-card-meta {
  margin-top: 10px;
  font-size: 11px;
  color: rgb(248 250 252 / 0.45);
}

.videos-page .vs-card-admin {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.videos-page .vs-card-admin button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgb(15 23 42 / 0.72);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.videos-page .vs-card-admin .vs-del-btn {
  color: #fca5a5;
}

.videos-page .vs-footer {
  background: rgb(11 16 32 / 0.9);
  border-top: 1px solid var(--vs-border);
  color: var(--vs-muted);
}

/* 弹窗 */
.videos-page .vs-login-modal,
.videos-page .vs-edit-modal {
  color: var(--text, #1e293b);
}

.videos-page .vs-edit-modal textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
}

.videos-page .vs-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.videos-page .vs-upload-zone {
  min-height: 120px;
  border: 2px dashed var(--border, #cbd5e1);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.videos-page .vs-upload-zone:hover,
.videos-page .vs-upload-zone.is-dragover {
  border-color: var(--primary, #2563eb);
  background: rgb(37 99 235 / 0.04);
}

.videos-page .vs-upload-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted, #64748b);
}

.videos-page .vs-upload-name {
  margin: 0;
  font-size: 12px;
  color: var(--primary, #2563eb);
  word-break: break-all;
}

.videos-page .vs-cover-preview {
  max-width: 100%;
  max-height: 100px;
  border-radius: 8px;
  object-fit: cover;
}

.videos-page .vs-form-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted, #64748b);
}

.videos-page .vs-required {
  color: #ef4444;
}

.videos-page .vs-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .videos-page .vs-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .videos-page .vs-form-row {
    grid-template-columns: 1fr;
  }
}

.is-mobile .videos-page .vs-nav {
  display: none;
}

.is-mobile .videos-page .vs-mobile-home {
  display: inline-flex;
}

.is-mobile .videos-page .vs-admin-login-btn {
  display: none;
}

.is-mobile .videos-page .vs-grid {
  grid-template-columns: 1fr;
}

.is-mobile .videos-page .vs-analysis-card {
  padding: 18px 16px;
}
