:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #64748b;
  --line: #d9e2ef;
  --brand: #0f766e;
  --brand-dark: #0b5d57;
  --accent: #f59e0b;
  --danger: #dc2626;
  --shadow: 0 18px 50px rgba(19, 31, 51, 0.14);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  touch-action: manipulation;
}

html,
body {
  min-width: 0;
  min-height: 100%;
  overflow: hidden auto;
  -webkit-overflow-scrolling: touch;
}

#app {
  min-width: 0;
  min-height: 100%;
  min-height: -webkit-fill-available;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  min-height: 40px;
  padding: 0 18px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

button.secondary {
  background: #e7eef7;
  color: #243247;
}

button.secondary:hover {
  background: #d8e3f1;
}

button.danger,
.icon-btn.danger {
  background: #fee2e2;
  color: var(--danger);
}

button.danger:hover,
.icon-btn.danger:hover {
  background: #fecaca;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 12px 14px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

ul {
  margin: 0;
  padding-left: 18px;
}

.app-wrapper {
  min-height: 100vh;
}

.login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 12px 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(99, 31, 191, 0.8) 0%, rgba(3, 2, 12, 0.95) 60%),
    linear-gradient(135deg, #060310, #0a0520);
  isolation: isolate;
}

.login-panel {
  position: relative;
  width: min(500px, 100%);
  max-height: none;
  overflow: hidden;
  border: 1px solid rgba(197, 170, 255, 0.24);
  border-radius: 24px;
  background: rgba(12, 8, 32, 0.88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  padding: 20px 32px 24px;
  text-align: center;
  backdrop-filter: blur(16px);
}

.login-panel::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  border-radius: 0 0 24px 24px;
  background: radial-gradient(ellipse at 50% 100%, rgba(139, 67, 255, 0.36), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.login-panel > * {
  position: relative;
  z-index: 1;
}

.brand-mark {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 16px;
  object-fit: cover;
}

.brand-mark--fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8d72ff, #5b38ff);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 12px 24px rgba(91, 56, 255, 0.28);
}

.login-panel h1 {
  margin: 0 0 2px;
  color: #f8f7ff;
  font-size: 22px;
}

.login-panel p {
  max-width: 380px;
  margin: 6px auto 0;
  color: rgba(223, 215, 255, 0.72);
  line-height: 1.4;
  font-size: 13px;
}

.auth-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: min(240px, 100%);
  margin: 12px auto 0;
  padding: 4px;
  border: 1px solid rgba(183, 157, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.switch-chip {
  min-height: 30px;
  border-radius: 999px;
  background: transparent;
  color: rgba(236, 232, 255, 0.84);
  box-shadow: none;
}

.switch-chip:hover {
  background: rgba(255, 255, 255, 0.12);
}

.switch-chip.active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), #8d72ff 48%, #5b38ff);
  color: #fff;
}

.login-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.login-form label,
.tmdb-config label,
.field-grid label {
  display: grid;
  gap: 5px;
  text-align: left;
}

.login-form label span,
.tmdb-config label span,
.field-grid label span {
  font-size: 13px;
  font-weight: 700;
}

.login-form label {
  color: rgba(236, 232, 255, 0.82);
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
}

canvas {
  width: 120px;
  height: 40px;
  border: 1px solid rgba(183, 157, 255, 0.28);
  border-radius: 8px;
  background: rgba(15, 12, 35, 0.88);
  cursor: pointer;
}

.form-message {
  min-height: 16px;
  color: #fecaca;
  font-size: 13px;
}

.form-message.warning {
  color: #fde68a;
}

.form-message.success {
  color: #bbf7d0;
}

.login-form input {
  border-color: rgba(183, 157, 255, 0.24);
  background: rgba(8, 7, 25, 0.86);
  color: #f8f7ff;
  padding: 9px 12px;
}

.login-form input::placeholder {
  color: rgba(221, 215, 244, 0.52);
}

.login-form button[type='submit'] {
  min-height: 44px;
  margin-top: 4px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), #8d72ff 42%, #5b38ff);
  color: #fff;
  box-shadow: 0 10px 28px rgba(99, 74, 255, 0.38);
}

/* ==================== 快捷图标区域 ==================== */
.quick-icons {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(248,250,252,0.9) 100%);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.quick-icons__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.quick-icons__header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
.quick-icons__manage {
  padding: 6px 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.quick-icons__manage:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* 快捷入口头部操作区（切换+管理） */
.quick-icons__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 内外网切换按钮组 */
.network-toggle {
  display: flex;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.network-toggle__btn {
  padding: 5px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.network-toggle__btn:hover {
  color: #6366f1;
  background: rgba(255, 255, 255, 0.6);
}

.network-toggle__btn--active {
  background: #fff;
  color: #6366f1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.network-toggle__btn--active:hover {
  background: #fff;
}
.quick-icons__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.quick-icons__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  padding: 12px 8px;
  border-radius: 14px;
  transition: all 0.25s ease;
  min-width: 80px;
  cursor: pointer;
}
.quick-icons__item:hover {
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
}
.quick-icons__thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
  transition: box-shadow 0.25s ease;
}
.quick-icons__item:hover .quick-icons__thumb {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}
.quick-icons__thumb img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.quick-icons__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #6366f1;
}
.quick-icons__label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-icons__empty {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.topbar,
.stats-row,
.content-grid,
.poster-showcase,
.search-topbar,
.hero-carousel,
.manage-layout {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
}

.search-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 10px;
}

.search-topbar__input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  flex: 1;
}

.search-topbar__input input {
  min-height: 52px;
  border-radius: 999px;
  padding: 0 20px;
  transition: all 0.3s ease;
  outline: none;
}

.search-topbar__input input:focus {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
  background: #fff;
}

.search-topbar__actions {
  justify-content: flex-end;
}

/* 快捷入口按钮 */
.quick-access-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--ink);
}

.quick-access-btn:hover {
  border-color: var(--brand);
  background: rgba(99, 102, 241, 0.05);
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  transform: translateY(-1px);
}

.quick-access-btn:active {
  transform: translateY(0);
}

.quick-access-btn__icon {
  width: 22px;
  height: 22px;
}

/* 快捷入口按钮激活状态 */
.quick-access-btn.active {
  border-color: var(--brand);
  background: rgba(99, 102, 241, 0.1);
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* 快捷入口按钮包裹器（相对定位，用于面板定位） */
.quick-access-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* 快捷入口悬浮面板 */
.quick-access-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(520px, calc(100vw - 40px));
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 20px;
  z-index: 10000;
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.quick-access-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.quick-access-panel__header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.quick-access-panel .quick-icons__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 16px;
}

.quick-access-panel .quick-icons__empty {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* 快捷入口面板过渡动画 */
.quick-access-fade-enter-active {
  animation: quickAccessPanelIn 0.25s ease-out;
}

.quick-access-fade-leave-active {
  animation: quickAccessPanelOut 0.2s ease-in;
}

@keyframes quickAccessPanelIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes quickAccessPanelOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
}

/* 个人中心菜单 */
.user-menu {
  position: relative;
}

.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px;
}

.user-menu__trigger:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.user-menu__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}

.user-menu__avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.user-menu__name {
  font-weight: 600;
  color: var(--ink);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu__arrow {
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.2s;
}

.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  padding: 16px;
  z-index: 1000;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-menu__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  position: relative;
}

.user-menu__avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 24px;
}

.user-menu__info {
  flex: 1;
  min-width: 0;
}

.user-menu__username {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}

.user-menu__email {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu__edit-avatar {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.user-menu__edit-avatar:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.user-menu__divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}

.user-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s;
  text-align: left;
}

.user-menu__item:hover {
  background: rgba(99, 102, 241, 0.08);
}

.user-menu__icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.user-menu__item--danger {
  color: var(--danger);
}

.user-menu__item--danger:hover {
  background: rgba(220, 38, 38, 0.08);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 18px;
}

.dashboard-brand {
  display: grid;
  gap: 6px;
}

.dashboard-brand strong {
  color: #10213a;
  font-size: clamp(22px, 2.4vw, 28px);
}

.dashboard-brand span {
  color: var(--muted);
  font-size: 14px;
}

.view-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  min-width: 240px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fbff, #e7eef7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.view-switch__btn {
  min-height: 40px;
  padding: 0 20px;
  background: transparent;
  color: #35506b;
  font-weight: 700;
  box-shadow: none;
}

.view-switch__btn:hover {
  background: rgba(20, 184, 166, 0.08);
}

.view-switch__btn.active {
  background: linear-gradient(90deg, #14b8a6, #0f766e);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.26);
}

.top-actions,
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-action {
  min-height: 34px;
  background: transparent;
  color: var(--ink);
  padding: 0 12px;
}

.icon-action:hover {
  background: rgba(15, 118, 110, 0.08);
}

.btn-export {
  background: #14b8a6;
}

.hero-carousel {
  position: relative;
  padding-bottom: 6px;
}

/* ==================== 主海报横幅 ==================== */
.hero-main {
  position: relative;
  width: 100%;
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  outline: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  /* 图片加载完成的过渡效果 */
  transition: background-image 0.5s ease, opacity 0.6s ease;
  opacity: 1;
}

/* 海报加载状态 - 渐变动画模拟视频加载 */
.hero-main.hero-loading {
  background: linear-gradient(110deg, #1e293b 30%, #334155 50%, #1e293b 70%);
  background-size: 200% 100%;
  animation: hero-shimmer 1.5s ease-in-out infinite;
}

.hero-main.hero-loaded {
  opacity: 1;
}

@keyframes hero-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 海报图片预加载指示器 */
.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-main.hero-loaded::before {
  opacity: 0;
}

/* 海报内容层 */
.hero-main__overlay {
  position: relative;
  z-index: 2;
}

.hero-main__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  background: linear-gradient(180deg, rgba(8, 15, 29, 0.05) 0%, rgba(8, 15, 29, 0.75) 100%);
  color: #fff;
}

.hero-main__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 16px;
}

.hero-main__info {
  max-width: 720px;
}

.hero-main__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-main__desc {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-main__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-main__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 600;
}

/* ==================== 上方小海报卡片（悬浮于大海报之上，与每日推荐同级） ==================== */
.hero-sub {
  display: flex;
  gap: 10px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
  max-width: 520px;
}

.hero-sub::-webkit-scrollbar {
  height: 4px;
}

.hero-sub::-webkit-scrollbar-track {
  background: transparent;
}

.hero-sub::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 2px;
}

/* 当有大海报时，将缩略图定位到大海报上层右侧（右下角） */
.hero-sub--above {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  max-width: 480px;
}

.hero-sub__card {
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.25s ease;
  border-radius: 10px;
  overflow: hidden;
}

.hero-sub__card:hover {
  transform: translateY(-3px);
}

.hero-sub__thumb {
  position: relative;
  width: 140px;
  height: 80px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e293b, #334155);
  box-shadow: none;
  border: none;
  outline: none;
}

.hero-sub__card.active .hero-sub__thumb {
  box-shadow: 0 0 0 2px #6366f1;
}

.hero-sub__card:hover .hero-sub__thumb {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero-sub__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-slide {
  border-radius: 32px;
}

.hero-slide--single {
  min-height: 460px;
  outline: none;
}

.hero-fade-enter-active,
.hero-fade-leave-active {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-fade-enter-from,
.hero-fade-leave-to {
  opacity: 0;
  transform: translateX(18px) scale(0.985);
}

.hero-fade-enter-to,
.hero-fade-leave-from {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hero-slide__topbar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-slide__content {
  display: grid;
  align-content: center;
  gap: 16px;
  max-width: 760px;
}

.hero-slide__overlay {
  display: grid;
  align-content: center;
  gap: 24px;
  min-height: 460px;
  padding: 32px;
  color: #fff;
}

.hero-slide__badge {
  display: inline-flex;
  width: fit-content;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 700;
}

.hero-slide h2 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 44px);
}

.hero-slide p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.8;
}

.hero-slide__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-slide__meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  line-height: 1.2;
}

.content-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.content-toolbar h2 {
  margin: 0;
  color: #10213a;
}

.content-toolbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.content-actions {
  justify-content: flex-end;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.insight-row {
  width: min(1500px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 18px auto 0;
}

.insight-card {
  display: grid;
  gap: 6px;
  padding: 20px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.insight-card strong {
  font-size: 20px;
  color: #032541;
}

.insight-card span {
  color: var(--muted);
  font-size: 13px;
}

.stats-row > div,
.duplicate-panel,
.poster-card,
.app-dialog::backdrop {
  border-radius: 24px;
}

.stats-row > div {
  display: grid;
  gap: 6px;
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stats-row span {
  font-size: 32px;
  font-weight: 800;
}

.stats-row small,
.poster-time,
.poster-owner small,
.duplicate-item li,
.log-detail,
.tmdb-config p {
  color: var(--muted);
}

/* ==================== 全局加载条（顶部细条） ==================== */
.global-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 99999;
  background: rgba(99, 102, 241, 0.1);
  overflow: hidden;
}

.global-loading-bar__progress {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #6366f1 0%, #a78bfa 50%, #6366f1 100%);
  background-size: 200% 100%;
  border-radius: 0 2px 2px 0;
  animation: topbar-slide 1.2s ease-in-out infinite;
}

@keyframes topbar-slide {
  0%   { transform: translateX(-100%); background-position: 0% 0; }
  50%  { transform: translateX(150%);  background-position: 100% 0; }
  100% { transform: translateX(-100%); background-position: 0% 0; }
}

/* 加载条淡入淡出过渡 */
.topbar-fade-enter-active { transition: opacity 0.2s ease; }
.topbar-fade-leave-active { transition: opacity 0.4s ease 0.1s; }
.topbar-fade-enter-from,
.topbar-fade-leave-to { opacity: 0; }

/* ==================== 加载动画通用旋转spinner ==================== */
.loading-spinner,
.drive-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(99, 102, 241, 0.15);
  border-top-color: #6366f1;
  animation: spinner-rotate 0.7s linear infinite;
}

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

.loading-panel {
  width: min(1500px, calc(100% - 48px));
  margin: 28px auto 0;
}

.global-notice {
  position: fixed;
  top: 80px;
  right: 24px;
  min-width: 320px;
  max-width: 500px;
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  backdrop-filter: blur(10px);
}

/* Vue Transition 动画 */
.notice-enter-active {
  animation: slideInRight 0.3s ease-out;
}

.notice-leave-active {
  animation: slideOutRight 0.3s ease-in;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.global-notice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  border-radius: 12px 12px 0 0;
}

.global-notice--warning {
  background: rgba(255, 255, 255, 0.95);
  color: #b45309;
  border-left: 4px solid #f59e0b;
}

.global-notice--danger {
  background: rgba(255, 255, 255, 0.95);
  color: #b91c1c;
  border-left: 4px solid #dc2626;
}

.global-notice--error {
  background: rgba(255, 255, 255, 0.95);
  color: #dc2626;
  border-left: 4px solid #ef4444;
}

.global-notice--success {
  background: rgba(255, 255, 255, 0.95);
  color: #16a34a;
  border-left: 4px solid #22c55e;
}

.loading-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

/* 搜索聚焦时的内容虚化效果 */
.content-blur {
  filter: blur(8px);
  opacity: 0.5;
  pointer-events: none;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* 搜索结果为空的样式 */
.empty-search-result {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px 20px;
}

.empty-search-content {
  text-align: center;
  max-width: 400px;
}

.empty-search-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.empty-search-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.empty-search-content p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* 搜索聚焦时的提示样式 */
.search-focus-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px 20px;
}

.search-focus-content {
  text-align: center;
  max-width: 400px;
}

.search-focus-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.search-focus-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.search-focus-content p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

/* Vue Transition - Fade 动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin-top: 28px;
  padding-bottom: 28px;
}

.poster-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.poster-list--manage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.folder-tree-container {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 20px;
  min-height: 400px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 网盘管理布局 */
.manage-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  margin-top: 28px;
  padding-bottom: 28px;
  position: relative; /* 为网盘加载遮罩层提供定位参考 */
}

.manage-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.content-toolbar h2 {
  font-size: 22px;
  font-weight: 700;
  color: #032541;
  margin: 0;
}

.content-toolbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.content-actions button {
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  background: #6366f1;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.content-actions button:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.content-actions button.secondary {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.content-actions button.secondary:hover {
  background: rgba(99, 102, 241, 0.2);
}

/* 文件夹树操作按钮 */
.folder-tree-actions {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* 刷新按钮靠右显示 */
.folder-tree-actions__btn--refresh {
  margin-left: auto;
}

.folder-tree-actions__btn {
  padding: 10px 20px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.05);
  color: #6366f1;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: auto;
  white-space: nowrap;
}

.folder-tree-actions__btn:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
}

/* 网盘标签页 */
.drive-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  padding: 12px;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 12px;
  overflow-x: auto;
}

.drive-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  font-weight: 500;
  color: #4b5563;
  white-space: nowrap;
}

.drive-tab:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.drive-tab.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
  color: #4f46e5;
  font-weight: 600;
}

.drive-tab__name {
  flex: 1;
}

/* 网盘标签页 Logo */
.drive-tab__logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.drive-tab__logo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  font-size: 12px;
  line-height: 1;
}


/* 通用悬浮提示框（Teleport 到 body，position: fixed） */
.app-tooltip {
  position: fixed;
  z-index: 99999;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 0;
  min-width: 240px;
  max-width: 340px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(99, 102, 241, 0.08);
  pointer-events: none;
  overflow: hidden;
}
.app-tooltip__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}
.app-tooltip__icon {
  font-size: 16px;
  flex-shrink: 0;
}
.app-tooltip__title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.01em;
}
.app-tooltip__body {
  padding: 12px 16px;
}
.app-tooltip__desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
  word-break: break-word;
  margin: 0;
}
.app-tooltip__empty {
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}
.app-tooltip__meta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  font-size: 11px;
  color: #94a3b8;
}
.app-tooltip__arrow {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid rgba(99, 102, 241, 0.08);
  border-top: 1px solid rgba(99, 102, 241, 0.08);
}

/* 悬浮提示过渡动画（标签页用） */
.tooltip-fade-enter-active {
  transition: opacity 0.2s ease;
}
.tooltip-fade-leave-active {
  transition: opacity 0.15s ease;
}
.tooltip-fade-enter-from,
.tooltip-fade-leave-to {
  opacity: 0;
}

.drive-tab__actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.drive-tab:hover .drive-tab__actions {
  opacity: 1;
}

.drive-tab__edit,
.drive-tab__delete {
  padding: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  border-radius: 4px;
}

.drive-tab__edit:hover {
  background: rgba(99, 102, 241, 0.2);
}

.drive-tab__delete:hover {
  background: rgba(239, 68, 68, 0.2);
}

.drive-tab--add {
  background: transparent;
  border: 2px dashed rgba(99, 102, 241, 0.3);
  color: #6366f1;
  font-weight: 600;
}

.drive-tab--add:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
}

.poster-card-wrap {
  display: grid;
  gap: 10px;
}

.poster-card-wrap--manage {
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.poster-card-wrap--manage .poster-card-actions {
  justify-content: flex-start;
}

.poster-card-wrap--manage .poster-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: stretch;
  min-height: 168px;
}

.poster-card-wrap--manage .poster-thumb {
  aspect-ratio: auto;
  height: 100%;
}

.poster-card-wrap--manage .poster-body {
  display: grid;
  align-content: center;
  padding: 20px 22px;
}

.poster-card-actions {
  display: flex;
  justify-content: flex-end;
}

.poster-card {
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.poster-card:not(.is-readonly) {
  cursor: pointer;
}

.poster-card:not(.is-readonly):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.poster-card.is-readonly {
  cursor: default;
}

.poster-thumb {
  position: relative;
  aspect-ratio: 0.74;
  overflow: hidden;
  background: #d9e2ef;
}

.poster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.score-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(3, 37, 65, 0.92);
  color: #7ee8bc;
  font-weight: 800;
}

.poster-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.poster-meta-row,
.poster-owner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.poster-sheet {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
  font-weight: 600;
  font-size: 13px;
}

.poster-body h3 {
  margin: 0;
  font-size: 22px;
}

.poster-body p {
  margin: 0;
  color: #41556e;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.status-pill.is-normal {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.status-pill.is-warning {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.status-pill.is-danger {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ecf4ff;
  color: #245;
  font-size: 13px;
  font-weight: 700;
}

.duplicate-section {
  margin-top: 28px;
  padding-bottom: 28px;
}

.duplicate-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.duplicate-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.duplicate-panel header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  background: #f3f7fb;
  font-weight: 800;
}

.duplicate-list,
.login-log-list,
.column-list {
  display: grid;
  gap: 12px;
}

.log-loading,
.log-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.log-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.log-loading::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 3px solid var(--line);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.empty-note {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: #fbfdff;
}

.duplicate-item,
.log-entry,
.column-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
}

.log-entry {
  display: grid;
  gap: 10px;
}

.log-entry__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.log-account {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.log-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.log-result--success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.log-result--fail {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.log-detail--ua {
  word-break: break-all;
}

.log-detail--fail {
  color: #dc2626;
  font-weight: 600;
}

/* ===== 刮削日志样式 ===== */
.scraper-log-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scraper-log-list .log-entry {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(139, 92, 246, 0.02));
  border-color: rgba(99, 102, 241, 0.15);
}

.scraper-log-list .log-entry:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.log-stats {
  display: flex;
  gap: 12px;
  align-items: center;
}

.stat-total,
.stat-success,
.stat-fail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.stat-total {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}

.stat-success {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}

.stat-fail {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

/* ===== 可展开刮削日志样式 ===== */
.log-entry--expandable {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.log-entry--expandable:active {
  transform: scale(0.995);
}

.log-entry__toggle {
  display: inline-block;
  width: 20px;
  text-align: center;
  color: #6366f1;
  font-weight: bold;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.log-entry__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.log-entry__time {
  color: #64748b;
  font-size: 13px;
  font-family: monospace;
}

.log-entry__desc {
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}

/* 展开后的详细日志面板 */
.log-entry__detail {
  margin-top: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 详细日志项 */
.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(249, 250, 251, 0.8);
  border-radius: 8px;
  font-size: 13px;
  transition: background 0.15s ease;
}

.detail-item:hover {
  background: rgba(243, 244, 246, 0.9);
}

.detail-item__name {
  flex: 1;
  font-weight: 500;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-item__status {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.detail-item__status--success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.detail-item__status--failed {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.detail-item__status--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.detail-item__message {
  color: #64748b;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

.log-time {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.column-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.add-column-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.app-dialog {
  width: min(760px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.28);
}

.app-dialog::backdrop {
  background: rgba(2, 6, 23, 0.58);
}

.dialog-form {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.dialog-form header,
.dialog-form footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dialog-form header {
  justify-content: space-between;
}

.dialog-form header h2 {
  margin: 0;
}

.dialog-form header button {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  background: #eff5fb;
  color: #243247;
}

.dialog-form footer {
  justify-content: flex-end;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.simple-dialog-body,
.tmdb-config,
.log-panel,
.column-manager {
  display: grid;
  gap: 16px;
}

/* ===== 登录日志筛选区域 ===== */
.log-filter {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.filter-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-input,
.filter-select {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: all 0.2s;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-input::placeholder {
  color: #9ca3af;
}

.filter-reset-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #a52a2a, #8b0000); /* 暗红色渐变 */
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-reset-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3); /* 暗红色阴影 */
}

.filter-reset-btn:active {
  transform: translateY(0);
}

.filter-search-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.filter-search-btn:active {
  transform: translateY(0);
}

/* ===== 登录日志分页区域 ===== */
.log-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  margin-top: 8px;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.pagination-info {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.load-more-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.load-more-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.load-more-btn:active:not(:disabled) {
  transform: translateY(0);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.no-more {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  width: 100%;
}

.tmdb-config__status {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-weight: 700;
}

.tmdb-config__status.ready {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.log-integrity {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-weight: 700;
}

.log-integrity.ok {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.icon-btn {
  min-height: 34px;
  padding: 0 14px;
}

@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .dashboard-topbar,
  .search-topbar,
  .hero-carousel,
  .content-grid,
  .poster-showcase,
  .insight-row,
  .global-notice {
    width: min(100%, calc(100% - 24px));
  }

  .dashboard-topbar,
  .content-toolbar,
  .search-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-topbar__input,
  .stats-row,
  .insight-row,
  .field-grid,
  .add-column-row {
    grid-template-columns: 1fr;
  }

  /* 移动端用户菜单优化 */
  .user-menu__trigger {
    padding: 6px 12px;
    min-height: 44px;
    flex-wrap: nowrap;
  }

  .user-menu__avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .user-menu__name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    flex-shrink: 1;
  }

  .user-menu__arrow {
    font-size: 10px;
    flex-shrink: 0;
  }

  .user-menu__dropdown {
    right: 0;
    min-width: 260px;
    top: calc(100% + 8px);
  }

  .poster-card-wrap--manage,
  .poster-card-wrap--manage .poster-card {
    grid-template-columns: 1fr;
  }

  .poster-card-wrap--manage .poster-card-actions {
    justify-content: flex-end;
  }

  .poster-card-wrap--manage .poster-thumb {
    aspect-ratio: 0.74;
  }

  .hero-carousel__track {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  /* ===== 全局优化 ===== */
  html {
    font-size: 14px;
  }

  body {
    padding: 0;
  }

  .app-wrapper {
    padding: 0;
  }

  /* ===== 顶部导航栏 ===== */
  .dashboard-topbar {
    padding: 12px 16px;
    gap: 12px;
  }

  .dashboard-topbar__brand h1 {
    font-size: 20px;
  }

  /* ===== 搜索栏 ===== */
  .search-topbar {
    padding: 0 16px 16px;
  }

  .search-topbar__input {
    grid-template-columns: 1fr auto;
  }

  .search-topbar__input input {
    min-height: 48px;
    font-size: 15px;
  }

  .search-topbar__input button {
    min-height: 48px;
    padding: 0 20px;
  }

  /* ===== 视图切换按钮 ===== */
  .view-switch {
    width: 100%;
  }

  .view-switch__btn {
    padding: 8px 12px;
    font-size: 14px;
  }

  /* ===== 每日推荐海报 ===== */
  .hero-carousel {
    padding: 0 16px 16px;
  }

  .hero-slide--single {
    min-height: 280px;
    border-radius: 16px;
  }

  .hero-slide__content h2 {
    font-size: 22px;
  }

  .hero-slide__content p {
    font-size: 14px;
  }

  /* ===== 内容工具栏 ===== */
  .content-toolbar {
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
  }

  .content-toolbar h2 {
    font-size: 20px;
  }

  .content-toolbar p {
    font-size: 13px;
  }

  .top-actions.content-actions {
    width: 100%;
  }

  /* ===== 网盘标签页 ===== */
  .drive-tabs {
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .drive-tabs::-webkit-scrollbar {
    display: none;
  }

  .drive-tab {
    min-width: 100px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .drive-tab--add {
    min-width: 100px;
  }

  /* ===== 文件夹树 ===== */
  .folder-tree-container {
    padding: 0 16px;
  }

  .folder-tree-actions {
    padding: 12px 0;
  }

  .folder-tree-actions__btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  .tree-item__header {
    padding: 12px;
  }

  .tree-item__icon {
    font-size: 18px;
  }

  .tree-item__title {
    font-size: 15px;
  }

  .tree-actions {
    gap: 6px;
  }

  .tree-actions button {
    padding: 6px 10px;
    font-size: 16px;
  }

  /* ===== 重复内容面板 ===== */
  .duplicate-panel {
    margin: 0 16px 16px;
    border-radius: 16px;
  }

  .duplicate-panel header {
    padding: 16px;
  }

  .duplicate-panel header h2 {
    font-size: 18px;
  }

  .duplicate-list {
    padding: 0 16px 16px;
  }

  /* ===== 海报展示 ===== */
  .poster-showcase {
    padding: 0 16px 16px;
  }

  .poster-list--showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .poster-card {
    border-radius: 12px;
  }

  .poster-thumb {
    border-radius: 12px 12px 0 0;
  }

  .poster-meta h3 {
    font-size: 14px;
    padding: 0 10px;
  }

  .poster-meta p {
    font-size: 12px;
    padding: 0 10px;
  }

  /* ===== 个人中心菜单 ===== */
  .user-menu__trigger {
    padding: 6px 12px;
    min-height: 44px;
  }

  .user-menu__avatar {
    width: 32px;
    height: 32px;
  }

  .user-menu__name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
  }

  .user-menu__dropdown {
    right: 0;
    min-width: 260px;
    top: calc(100% + 8px);
  }

  /* ===== 通知提示 ===== */
  .global-notice {
    top: 70px;
    right: 12px;
    left: 12px;
    min-width: auto;
    max-width: none;
    font-size: 13px;
    padding: 12px 16px;
  }

  /* ===== 搜索聚焦提示 ===== */
  .search-focus-hint {
    min-height: 300px;
    padding: 30px 20px;
  }

  .search-focus-icon {
    font-size: 60px;
  }

  .search-focus-content h3 {
    font-size: 22px;
  }

  .search-focus-content p {
    font-size: 14px;
  }

  /* ===== 空搜索结果 ===== */
  .empty-search-result {
    min-height: 300px;
    padding: 30px 20px;
  }

  .empty-search-icon {
    font-size: 60px;
  }

  .empty-search-content h3 {
    font-size: 22px;
  }

  .empty-search-content p {
    font-size: 14px;
  }

  /* ===== 对话框优化 ===== */
  .simple-dialog {
    width: calc(100% - 32px);
    max-width: 500px;
    border-radius: 16px;
  }

  .simple-dialog__header {
    padding: 16px;
  }

  .simple-dialog__header h2 {
    font-size: 18px;
  }

  .simple-dialog__body {
    padding: 16px;
    max-height: 70vh;
  }

  .simple-dialog__footer {
    padding: 12px 16px;
  }

  /* ===== 表单优化 ===== */
  .field-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .field-grid label {
    font-size: 13px;
  }

  .field-grid input,
  .field-grid select,
  .field-grid textarea {
    font-size: 15px;
    min-height: 44px;
  }

  /* ===== 按钮优化 ===== */
  button,
  .btn {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 15px;
  }

  button.secondary,
  .btn.secondary {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
  }

  /* ===== 加载面板 ===== */
  .loading-panel {
    padding: 40px 20px;
  }

  .loading-card {
    padding: 20px;
    font-size: 15px;
  }

  /* ===== 登录日志 ===== */
  .log-panel {
    padding: 0;
  }

  /* ===== 登录日志筛选区域 - 移动端适配 ===== */
  .log-filter {
    padding: 12px;
  }

  .filter-row {
    flex-direction: column;
    gap: 8px;
  }

  .filter-input,
  .filter-select {
    width: 100%;
  }

  .filter-reset-btn {
    width: 100%;
    padding: 12px;
  }

  .filter-search-btn {
    width: 100%;
    padding: 12px;
  }

  /* ===== 登录日志分页区域 - 移动端适配 ===== */
  .log-pagination {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .pagination-info {
    font-size: 13px;
  }

  .load-more-btn {
    width: 100%;
    padding: 12px;
  }

  .log-integrity {
    padding: 12px 16px;
    font-size: 13px;
  }

  .log-entry {
    padding: 12px 16px;
  }

  .log-time {
    font-size: 13px;
  }

  .log-account {
    font-size: 13px;
  }

  .log-detail {
    font-size: 12px;
  }

  /* ===== TMDB 配置 ===== */
  .tmdb-config {
    padding: 0;
  }

  .tmdb-config label span {
    font-size: 14px;
  }

  .tmdb-config input {
    font-size: 15px;
    min-height: 44px;
  }

  .tmdb-config__status {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .login-shell {
    padding: 10px 12px;
  }

  .login-panel {
    width: 100%;
    padding: 16px 14px 18px;
    border-radius: 20px;
  }

  .login-panel::before {
    height: 88px;
    border-radius: 0 0 20px 20px;
  }

  .brand-mark {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    margin-bottom: 8px;
  }

  .login-panel h1 {
    font-size: 20px;
  }

  .login-panel p {
    font-size: 12px;
    line-height: 1.35;
  }

  .auth-switch {
    width: 100%;
    max-width: 220px;
    margin-top: 10px;
  }

  .login-form {
    margin-top: 12px;
    gap: 8px;
  }

  .login-form label {
    gap: 4px;
  }

  .login-form label span {
    font-size: 12px;
  }

  .login-form input {
    padding: 8px 10px;
  }

  /* 小屏幕用户菜单优化 */
  .user-menu__trigger {
    padding: 6px 12px;
  }

  .user-menu__avatar {
    width: 32px;
    height: 32px;
  }

  .user-menu__dropdown {
    right: -20px;
    min-width: 240px;
  }

  .user-menu__header {
    flex-direction: column;
    text-align: center;
  }

  .user-menu__edit-avatar {
    position: static;
    transform: none;
    margin-top: 8px;
  }

  .user-menu__edit-avatar:hover {
    transform: scale(1.1);
  }

  .captcha-row {
    grid-template-columns: 1fr;
  }

  canvas {
    width: 100%;
    max-width: 120px;
    height: auto;
    aspect-ratio: 3 / 1;
    justify-self: start;
  }
}

/* ===== 超小屏幕优化 (iPhone SE 等) ===== */
@media (max-width: 375px) {
  html {
    font-size: 13px;
  }

  .dashboard-topbar {
    padding: 10px 12px;
  }

  .dashboard-topbar__brand h1 {
    font-size: 18px;
  }

  .search-topbar {
    padding: 0 12px 12px;
  }

  .search-topbar__input input {
    min-height: 44px;
    font-size: 14px;
  }

  .search-topbar__input button {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .view-switch__btn {
    padding: 6px 10px;
    font-size: 13px;
  }

  .poster-list--showcase {
    grid-template-columns: 1fr;
  }

  .hero-slide--single {
    min-height: 240px;
  }

  .hero-slide__content h2 {
    font-size: 18px;
  }

  .hero-slide__content p {
    font-size: 13px;
  }

  .drive-tab {
    min-width: 90px;
    padding: 8px 12px;
    font-size: 13px;
  }

  /* 超小屏幕用户菜单优化 */
  .user-menu__trigger {
    padding: 4px 8px;
    gap: 6px;
  }

  .user-menu__avatar {
    width: 28px;
    height: 28px;
  }

  .user-menu__name {
    max-width: 60px;
    font-size: 13px;
  }

  .tree-item__header {
    padding: 10px;
  }

  .tree-item__title {
    font-size: 14px;
  }

  .content-toolbar {
    padding: 10px 12px;
  }

  .content-toolbar h2 {
    font-size: 18px;
  }

  button,
  .btn {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
  }

  .simple-dialog {
    width: calc(100% - 24px);
  }

  .global-notice {
    top: 60px;
    right: 8px;
    left: 8px;
    font-size: 12px;
    padding: 10px 14px;
  }

  .search-focus-hint,
  .empty-search-result {
    min-height: 260px;
    padding: 24px 16px;
  }

  .search-focus-icon,
  .empty-search-icon {
    font-size: 50px;
  }

  .search-focus-content h3,
  .empty-search-content h3 {
    font-size: 20px;
  }
}

@media (max-height: 760px) {
  .login-shell {
    padding: 8px 12px;
  }

  .login-panel {
    padding: 14px 20px 16px;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
  }

  .login-panel h1 {
    font-size: 20px;
  }

  .login-panel p {
    margin-top: 4px;
    font-size: 12px;
  }

  .auth-switch,
  .login-form {
    margin-top: 10px;
  }

  .login-form {
    gap: 8px;
  }

  .login-form label {
    gap: 4px;
  }

  .login-form label span,
  .form-message {
    font-size: 12px;
  }

  .login-form input {
    padding: 8px 10px;
  }

  .login-form button[type='submit'] {
    min-height: 40px;
  }
}

/* ====== 全局初始加载遮罩层 ====== */
/* 覆盖整个应用，在数据完全加载前显示 */
.global-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85); /* 深色半透明背景 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000; /* 确保在所有内容包括登录页之上 */
  backdrop-filter: blur(4px); /* 毛玻璃效果 */
}

.global-loading-overlay__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px;
}

.global-loading-overlay__gif {
  width: 180px;
  height: 180px;
  object-fit: contain;
  animation: global-loading-pulse 2s ease-in-out infinite;
}

.global-loading-overlay__text {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@keyframes global-loading-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* 全局加载遮罩层淡入淡出过渡 */
.global-overlay-fade-enter-active {
  animation: global-overlay-in 0.3s ease-out;
}

.global-overlay-fade-leave-active {
  animation: global-overlay-out 0.3s ease-in;
}

@keyframes global-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes global-overlay-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ====== 网盘操作加载遮罩层 ====== */
/* 覆盖整个视口，显示旋转动画和提示文字，始终固定在屏幕中央 */
.drive-loading-overlay {
  position: fixed; /* 固定定位，覆盖整个视口 */
  inset: 0; /* 等价于 top: 0; left: 0; right: 0; bottom: 0 */
  background: rgba(255, 255, 255, 0.92); /* 半透明白色背景 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000; /* 确保在所有内容之上，包括全局加载遮罩 */
  backdrop-filter: blur(4px); /* 毛玻璃效果，增强视觉层次 */
}

/* 加载动画容器：垂直居中显示spinner和文字 */
.drive-loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* 网盘遮罩层spinner尺寸覆盖 */
.drive-loading-spinner .drive-spinner {
  width: 44px;
  height: 44px;
}

/* 加载提示文字样式 */
.drive-loading-text {
  color: #606266;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.5px;
}

/* ====== 加载遮罩过渡动画（与用户管理组件保持一致） ====== */
.loading-fade-enter-active {
  transition: opacity 0.3s ease;
}
.loading-fade-leave-active {
  transition: opacity 0.2s ease;
}
.loading-fade-enter-from,
.loading-fade-leave-to {
  opacity: 0;
}

/* ====== 刮削状态面板样式 ====== */
.scrape-status-panel {
  padding: 16px 0;
}

.scrape-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.scrape-status-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.scrape-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.scrape-status-badge--scraping {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.scrape-status-badge--success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.scrape-status-badge--failed {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.scrape-status-message {
  padding: 12px;
  background: #f0f4ff;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* 刮削失败原因样式 */
.scrape-status-error {
  padding: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  font-size: 14px;
  color: #991b1b;
  line-height: 1.6;
  margin-top: 8px;
}

.scrape-status-error strong {
  color: #dc2626;
  margin-right: 8px;
}

.scrape-status-poster,
.scrape-status-backdrop {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  max-height: 300px;
}

.scrape-status-poster img,
.scrape-status-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scrape-status-poster {
  max-height: 400px;
}

.scrape-status-meta {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.scrape-status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.scrape-status-tags span {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.scrape-status-loading {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 14px;
}

/* ===== 黑夜/白天模式切换按钮 ===== */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

.theme-toggle-btn--dark {
  background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
}

.theme-toggle-btn--dark:hover {
  background: linear-gradient(135deg, #34495e 0%, #5cb8c9 100%);
}

.theme-toggle-btn__icon {
  width: 22px;
  height: 22px;
  color: #555;
  transition: color 0.3s ease;
}

.theme-toggle-btn--dark .theme-toggle-btn__icon {
  color: #f0f0f0;
}

/* 太阳和月亮图标的动画 */
.theme-icon--sun {
  animation: sun-rotate 20s linear infinite;
}

@keyframes sun-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.theme-icon--moon {
  animation: moon-glow 2s ease-in-out infinite;
}

@keyframes moon-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ===== 黑夜模式样式 ===== */
body.dark-mode {
  --bg: #0f172a;
  --panel: #1e293b;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --line: #334155;
  --brand: #38bdf8;
  --brand-dark: #0ea5e9;
  --accent: #fbbf24;
  --danger: #f87171;
}

body.dark-mode {
  background: #0f172a;
  color: #e2e8f0;
}

body.dark-mode .app-wrapper {
  background: #0f172a;
}

body.dark-mode .search-topbar,
body.dark-mode .dashboard-topbar {
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

body.dark-mode .search-topbar__input input {
  background: #0f172a;
  color: #e2e8f0;
  border-color: #334155;
}

body.dark-mode .search-topbar__input input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

body.dark-mode .folder-tree-container {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.5);
  backdrop-filter: blur(10px);
}

body.dark-mode .drive-tab {
  background: #0f172a;
  color: #94a3b8;
  border-color: #334155;
}

body.dark-mode .drive-tab:hover {
  background: #1e293b;
  border-color: #38bdf8;
}

body.dark-mode .drive-tab.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

body.dark-mode .drive-tabs {
  background: rgba(56, 189, 248, 0.05);
  border-color: #334155;
}

body.dark-mode .tree-item__header {
  background: rgba(15, 23, 42, 0.5);
  border-color: #334155;
  color: #cbd5e1;
}

body.dark-mode .tree-item__header:hover {
  background: rgba(30, 41, 59, 0.8);
}

body.dark-mode .tree-item--selected > .tree-item__header {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
}

body.dark-mode .tree-item__title {
  color: #e2e8f0;
}

body.dark-mode .tree-item__subtitle {
  color: #94a3b8;
}

body.dark-mode .content-toolbar {
  background: transparent;
}

body.dark-mode .content-toolbar h2 {
  color: #e2e8f0;
}

body.dark-mode .content-toolbar p {
  color: #94a3b8;
}

body.dark-mode .folder-tree-actions__btn {
  background: rgba(56, 189, 248, 0.08);
  border-color: #334155;
  color: #38bdf8;
}

body.dark-mode .folder-tree-actions__btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
}

body.dark-mode .folder-tree-actions {
  border-bottom-color: #334155;
}

body.dark-mode .quick-icons {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid #334155;
}

body.dark-mode .quick-icons__header h3 {
  color: #e2e8f0;
}

body.dark-mode .quick-icons__item {
  color: #cbd5e1;
}

body.dark-mode .quick-icons__label {
  color: #cbd5e1;
}

body.dark-mode .quick-icons__thumb {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

body.dark-mode .quick-icons__manage {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
}

body.dark-mode .quick-icons__manage:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
}

body.dark-mode .user-menu__trigger {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark-mode .user-menu__name {
  color: #e2e8f0;
}

body.dark-mode .user-menu__dropdown {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .user-menu__item {
  color: #cbd5e1;
}

body.dark-mode .user-menu__item:hover {
  background: rgba(56, 189, 248, 0.1);
}

body.dark-mode .user-menu__divider {
  background: #334155;
}

body.dark-mode .dashboard-brand strong {
  color: #e2e8f0;
}

body.dark-mode .dashboard-brand span {
  color: #94a3b8;
}

body.dark-mode .duplicate-panel {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .duplicate-panel header h2 {
  color: #e2e8f0;
}

body.dark-mode .duplicate-panel header span {
  background: #0f172a;
  color: #38bdf8;
}

body.dark-mode .duplicate-item {
  background: #0f172a;
  border-color: #334155;
}

body.dark-mode .duplicate-item strong {
  color: #e2e8f0;
}

body.dark-mode .duplicate-item li {
  color: #94a3b8;
}

body.dark-mode .empty-note {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}

body.dark-mode .log-entry {
  background: #0f172a;
  border-color: #334155;
}

body.dark-mode .log-time {
  color: #e2e8f0;
}

body.dark-mode .log-account {
  color: #94a3b8;
}

body.dark-mode .log-detail {
  color: #94a3b8;
}

body.dark-mode .folder-tree-actions__btn--multi {
  background: rgba(251, 191, 36, 0.1);
  border-color: #fbbf24;
  color: #fbbf24;
}

body.dark-mode .folder-tree-actions__btn--multi:hover {
  background: rgba(251, 191, 36, 0.2);
}

body.dark-mode .folder-tree-actions__btn--multi.active {
  background: rgba(251, 191, 36, 0.25);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

/* 深色模式下的搜索框样式优化 */
body.dark-mode .search-topbar__input input::placeholder {
  color: #64748b;
}

/* 深色模式下的滚动条 */
body.dark-mode ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.dark-mode ::-webkit-scrollbar-track {
  background: #0f172a;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* ===== 黑夜模式：海报卡片优化（电影院氛围） ===== */
body.dark-mode .poster-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(51, 65, 85, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .poster-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body.dark-mode .poster-thumb {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .score-badge {
  background: rgba(15, 23, 42, 0.95);
  color: #7ee8bc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .poster-body {
  background: transparent;
}

body.dark-mode .poster-body h3 {
  color: #e2e8f0;
}

body.dark-mode .poster-body p {
  color: #94a3b8;
}

body.dark-mode .status-pill {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .status-pill.is-normal {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

body.dark-mode .status-pill.is-warning {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

body.dark-mode .status-pill.is-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

body.dark-mode .poster-time {
  color: #64748b;
}

body.dark-mode .poster-sheet {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

body.dark-mode .poster-owner small {
  color: #64748b;
}

body.dark-mode .tag-list span {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ===== 黑夜模式：海报展示页面优化 ===== */
body.dark-mode .poster-showcase {
  background: transparent;
}

body.dark-mode .poster-showcase .content-toolbar h2 {
  color: #e2e8f0;
}

body.dark-mode .poster-showcase .content-toolbar p {
  color: #94a3b8;
}

body.dark-mode .poster-showcase .content-actions button {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

body.dark-mode .poster-showcase .content-actions button:hover {
  background: rgba(99, 102, 241, 0.25);
}

/* ===== 黑夜模式：海报列表网格优化 ===== */
body.dark-mode .poster-list--showcase {
  background: transparent;
}

body.dark-mode .poster-card-wrap {
  background: transparent;
}

/* ===== 黑夜模式：每日推荐海报区域优化 ===== */
body.dark-mode .hero-carousel {
  background: transparent;
}

body.dark-mode .hero-main {
  /* 与白天模式保持一致的背景图片处理 */
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(51, 65, 85, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  /* 确保背景图片正确显示 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.dark-mode .hero-main.hero-loading {
  background: linear-gradient(110deg, #0f172a 30%, #1e293b 50%, #0f172a 70%);
  background-size: 200% 100%;
  animation: hero-shimmer 1.5s ease-in-out infinite;
}

body.dark-mode .hero-main.hero-loaded {
  /* 加载完成后保持背景图片显示 */
  opacity: 1;
}

body.dark-mode .hero-main__overlay {
  /* 增强对比度，确保文字清晰可读 - 使用更深的渐变 */
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.95) 100%);
  /* 确保文字可读性 */
  isolation: isolate;
}

/* 黑夜模式下，当没有有效海报时，使用默认背景 */
body.dark-mode .hero-main:not([style*="background-image"]) {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c1525 100%);
}

/* 黑夜模式大海报背景图片适配 */
body.dark-mode .hero-main .hero-bg-image {
  filter: brightness(0.7) saturate(0.9);
}

/* 黑夜模式下无海报时的默认背景图处理 */
body.dark-mode .hero-main[data-poster=""] {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c1525 100%) !important;
}

body.dark-mode .hero-main__badge {
  background: rgba(30, 41, 59, 0.8);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

body.dark-mode .hero-main__title {
  color: #f1f5f9;
}

body.dark-mode .hero-main__desc {
  color: #94a3b8;
}

body.dark-mode .hero-main__meta-item {
  background: rgba(30, 41, 59, 0.7);
  color: #cbd5e1;
  border: 1px solid rgba(51, 65, 85, 0.3);
}

/* 小海报卡片 */
body.dark-mode .hero-sub {
  background: transparent;
}

body.dark-mode .hero-sub__card {
  background: transparent;
}

body.dark-mode .hero-sub__thumb {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(51, 65, 85, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .hero-sub__card.active .hero-sub__thumb {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4), 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .hero-sub__title {
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
}

/* ===== 黑夜模式：搜索框优化 ===== */
body.dark-mode .search-topbar__input input {
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  border: 1px solid rgba(51, 65, 85, 0.5);
  backdrop-filter: blur(10px);
}

body.dark-mode .search-topbar__input input::placeholder {
  color: #64748b;
}

body.dark-mode .search-topbar__input input:focus {
  background: rgba(15, 23, 42, 0.95);
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* ===== 黑夜模式：搜索聚焦虚化效果 ===== */
body.dark-mode .content-blur {
  filter: blur(8px);
  opacity: 0.3;
}

/* ===== 黑夜模式：搜索焦点提示优化 ===== */
body.dark-mode .search-focus-hint {
  background: transparent;
}

body.dark-mode .search-focus-content h3 {
  color: #e2e8f0;
}

body.dark-mode .search-focus-content p {
  color: #94a3b8;
}

/* ===== 黑夜模式：空搜索结果优化 ===== */
body.dark-mode .empty-search-result {
  background: transparent;
}

body.dark-mode .empty-search-content h3 {
  color: #e2e8f0;
}

body.dark-mode .empty-search-content p {
  color: #94a3b8;
}

body.dark-mode .empty-search-content button {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

body.dark-mode .empty-search-content button:hover {
  background: rgba(99, 102, 241, 0.25);
}

/* ===== 黑夜模式：统计卡片优化 ===== */
body.dark-mode .stats-row > div {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(51, 65, 85, 0.3);
}

body.dark-mode .stats-row span {
  color: #38bdf8;
}

body.dark-mode .stats-row small {
  color: #64748b;
}

/* ===== 黑夜模式：洞察卡片优化 ===== */
body.dark-mode .insight-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(51, 65, 85, 0.3);
  backdrop-filter: blur(10px);
}

body.dark-mode .insight-card strong {
  color: #38bdf8;
}

body.dark-mode .insight-card span {
  color: #94a3b8;
}

/* ===== 黑夜模式：全局通知优化 ===== */
body.dark-mode .global-notice {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(51, 65, 85, 0.5);
  backdrop-filter: blur(10px);
  color: #e2e8f0;
}

body.dark-mode .global-notice--warning {
  background: rgba(120, 80, 0, 0.9);
  border-color: #f59e0b;
  color: #fde68a;
}

body.dark-mode .global-notice--danger {
  background: rgba(127, 29, 29, 0.9);
  border-color: #dc2626;
  color: #fecaca;
}

body.dark-mode .global-notice--error {
  background: rgba(127, 29, 29, 0.9);
  border-color: #ef4444;
  color: #fecaca;
}

body.dark-mode .global-notice--success {
  background: rgba(20, 83, 45, 0.9);
  border-color: #22c55e;
  color: #bbf7d0;
}

/* ===== 黑夜模式：加载面板优化 ===== */
body.dark-mode .loading-panel {
  background: transparent;
}

body.dark-mode .loading-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.3);
  backdrop-filter: blur(10px);
  color: #94a3b8;
}

body.dark-mode .loading-card .loading-spinner {
  border-color: rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
}

/* ===== 黑夜模式：视图切换按钮优化 ===== */
body.dark-mode .view-switch {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .view-switch__btn {
  color: #94a3b8;
}

body.dark-mode .view-switch__btn:hover {
  background: rgba(56, 189, 248, 0.1);
}

body.dark-mode .view-switch__btn.active {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  color: #0f172a;
}

/* ===== 黑夜模式：图标动作按钮优化 ===== */
body.dark-mode .icon-action {
  color: #94a3b8;
  background: transparent;
}

body.dark-mode .icon-action:hover {
  background: rgba(56, 189, 248, 0.1);
}

body.dark-mode .btn-export {
  background: #0ea5e9;
  color: #0f172a;
}

/* ===== 黑夜模式：导出按钮优化 ===== */
body.dark-mode .content-actions button {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

body.dark-mode .content-actions button:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #6366f1;
}

/* ===== 黑夜模式：仪表盘顶部栏优化 ===== */
body.dark-mode .dashboard-topbar {
  background: rgba(30, 41, 59, 0.6);
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  backdrop-filter: blur(10px);
}

/* ===== 黑夜模式：刮削状态面板优化 ===== */
body.dark-mode .scrape-status-panel {
  background: transparent;
}

body.dark-mode .scrape-status-header h3 {
  color: #e2e8f0;
}

body.dark-mode .scrape-status-badge--scraping {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

body.dark-mode .scrape-status-badge--success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

body.dark-mode .scrape-status-badge--failed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

body.dark-mode .scrape-status-message {
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  border: 1px solid rgba(51, 65, 85, 0.3);
}

body.dark-mode .scrape-status-error {
  background: rgba(127, 29, 29, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* ===== 黑夜模式：登录日志优化 ===== */
body.dark-mode .log-panel {
  background: transparent;
}

body.dark-mode .log-filter {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(51, 65, 85, 0.3);
}

body.dark-mode .filter-input,
body.dark-mode .filter-select {
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .filter-input:focus,
body.dark-mode .filter-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

body.dark-mode .filter-input::placeholder {
  color: #64748b;
}

body.dark-mode .filter-search-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

body.dark-mode .filter-reset-btn {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

body.dark-mode .log-integrity {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

body.dark-mode .log-integrity.ok {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

body.dark-mode .log-loading,
body.dark-mode .log-empty {
  color: #64748b;
}

body.dark-mode .login-log-list {
  background: transparent;
}

body.dark-mode .log-pagination {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(51, 65, 85, 0.3);
}

body.dark-mode .pagination-info {
  color: #94a3b8;
}

body.dark-mode .load-more-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

body.dark-mode .no-more {
  color: #64748b;
}

/* ===== 黑夜模式：刮削日志优化 ===== */
body.dark-mode .scraper-log-list .log-entry {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(51, 65, 85, 0.3);
}

body.dark-mode .scraper-log-list .log-entry:hover {
  background: rgba(30, 41, 59, 0.6);
}

body.dark-mode .log-entry__toggle {
  color: #38bdf8;
}

body.dark-mode .log-entry__time {
  color: #64748b;
}

body.dark-mode .log-entry__desc {
  color: #cbd5e1;
}

body.dark-mode .stat-total,
body.dark-mode .stat-success,
body.dark-mode .stat-fail {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

body.dark-mode .stat-total {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
}

body.dark-mode .stat-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

body.dark-mode .stat-fail {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

body.dark-mode .log-entry__detail {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(51, 65, 85, 0.4);
}

body.dark-mode .detail-item {
  background: rgba(30, 41, 59, 0.5);
}

body.dark-mode .detail-item:hover {
  background: rgba(30, 41, 59, 0.7);
}

body.dark-mode .detail-item__name {
  color: #e2e8f0;
}

body.dark-mode .detail-item__status--info {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

body.dark-mode .detail-item__message {
  color: #64748b;
}

/* ===== 黑夜模式：TMDB配置优化 ===== */
body.dark-mode .tmdb-config label span {
  color: #94a3b8;
}

body.dark-mode .tmdb-config input {
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .tmdb-config__status {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

body.dark-mode .tmdb-config__status.ready {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ===== 黑夜模式：通用对话框优化 ===== */
body.dark-mode .simple-dialog,
body.dark-mode .app-dialog {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(51, 65, 85, 0.5);
}

body.dark-mode .simple-dialog__header,
body.dark-mode .dialog-form header {
  border-bottom-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .simple-dialog__header h2 {
  color: #e2e8f0;
}

body.dark-mode .simple-dialog__body {
  background: transparent;
}

body.dark-mode .simple-dialog__footer {
  border-top-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .simple-dialog__footer button,
body.dark-mode .dialog-form footer button {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

body.dark-mode .simple-dialog__footer button:hover,
body.dark-mode .dialog-form footer button:hover {
  background: rgba(99, 102, 241, 0.25);
}

body.dark-mode .dialog-form footer button[type='submit'] {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
}

/* ===== 黑夜模式：字段网格优化 ===== */
body.dark-mode .field-grid label span {
  color: #94a3b8;
}

body.dark-mode .field-grid input,
body.dark-mode .field-grid select,
body.dark-mode .field-grid textarea {
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .field-grid input:focus,
body.dark-mode .field-grid select:focus,
body.dark-mode .field-grid textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

body.dark-mode .field-grid input::placeholder {
  color: #64748b;
}

/* ===== 黑夜模式：通用输入框优化 ===== */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #64748b;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  background: rgba(15, 23, 42, 0.8);
}

/* ===== 黑夜模式：通用选择框优化 ===== */
body.dark-mode select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

body.dark-mode select option {
  background: #1e293b;
  color: #e2e8f0;
}

/* ===== 黑夜模式：通用按钮优化 ===== */
body.dark-mode button.secondary {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

body.dark-mode button.secondary:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

body.dark-mode button.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

body.dark-mode button.danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* ===== 黑夜模式：通用文本链接优化 ===== */
body.dark-mode a {
  color: #38bdf8;
}

body.dark-mode a:hover {
  color: #7dd3fc;
}

/* ===== 黑夜模式：分隔线和边框优化 ===== */
body.dark-mode .user-menu__divider,
body.dark-mode .quick-access-panel__header {
  background: rgba(51, 65, 85, 0.5);
}

/* ===== 黑夜模式：滚动条全局优化 ===== */
body.dark-mode ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.dark-mode ::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.6);
  border-radius: 5px;
  border: 2px solid rgba(15, 23, 42, 0.5);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.8);
}

/* ===== 黑夜模式：全局加载条优化 ===== */
body.dark-mode .global-loading-bar {
  background: rgba(15, 23, 42, 0.5);
}

body.dark-mode .global-loading-bar__progress {
  background: linear-gradient(90deg, #6366f1 0%, #a78bfa 50%, #6366f1 100%);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* ===== 黑夜模式：全局加载遮罩优化 ===== */
body.dark-mode .global-loading-overlay {
  background: rgba(2, 6, 23, 0.9);
}

body.dark-mode .global-loading-overlay__text {
  color: #94a3b8;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ===== 黑夜模式：网盘加载遮罩优化 ===== */
body.dark-mode .drive-loading-overlay {
  background: rgba(15, 23, 42, 0.85);
}

body.dark-mode .drive-loading-text {
  color: #94a3b8;
}

/* ===== 黑夜模式：通用浮动提示框优化 ===== */
body.dark-mode .app-tooltip {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(51, 65, 85, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .app-tooltip__header {
  background: rgba(99, 102, 241, 0.1);
  border-bottom-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .app-tooltip__title {
  color: #e2e8f0;
}

body.dark-mode .app-tooltip__desc {
  color: #94a3b8;
}

body.dark-mode .app-tooltip__empty {
  color: #64748b;
}

body.dark-mode .app-tooltip__meta {
  border-top-color: rgba(51, 65, 85, 0.5);
  color: #64748b;
}

body.dark-mode .app-tooltip__arrow {
  background: #1e293b;
  border-color: rgba(51, 65, 85, 0.5);
}

/* ===== 黑夜模式：登录页优化 ===== */
body.dark-mode .login-shell {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(99, 31, 191, 0.6) 0%, rgba(2, 6, 23, 0.95) 60%),
    linear-gradient(135deg, #020617, #0f172a);
}

/* ===== 黑夜模式：通用卡片阴影优化 ===== */
body.dark-mode .poster-card,
body.dark-mode .insight-card,
body.dark-mode .stats-row > div,
body.dark-mode .duplicate-panel,
body.dark-mode .simple-dialog,
body.dark-mode .app-dialog {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ===== 黑夜模式：表格/列表样式优化 ===== */
body.dark-mode .duplicate-list,
body.dark-mode .login-log-list,
body.dark-mode .column-list,
body.dark-mode .scraper-log-list {
  background: transparent;
}

body.dark-mode .duplicate-item {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(51, 65, 85, 0.4);
}

body.dark-mode .duplicate-item strong {
  color: #e2e8f0;
}

body.dark-mode .duplicate-item li {
  color: #94a3b8;
}

body.dark-mode .empty-note {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(51, 65, 85, 0.4);
  color: #64748b;
}

/* ===== 黑夜模式：列管理器优化 ===== */
body.dark-mode .column-item {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(51, 65, 85, 0.4);
  color: #cbd5e1;
}

body.dark-mode .add-column-row input {
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  border-color: rgba(51, 65, 85, 0.5);
}

/* ===== 黑夜模式：导出按钮优化 ===== */
body.dark-mode .btn-export {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
}

body.dark-mode .btn-export:hover {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}
