/* =========================================================
   MUMU Beauty Polish — 深色翡翠绿视觉增强
   在现有主题之上叠加精致感，不改变布局结构
   v=20261103-beauty1
   ========================================================= */

:root {
  --beauty-green: #39b978;
  --beauty-green-soft: #75d6a0;
  --beauty-green-deep: #1f8f55;
  --beauty-glow: rgba(57, 185, 120, 0.22);
  --beauty-panel: rgba(17, 26, 21, 0.92);
  --beauty-line: rgba(145, 190, 153, 0.16);
  --beauty-radius: 16px;
}

/* ---------- 背景氛围：柔和光晕，增加层次 ---------- */
body.body {
  background-color: #090e0c !important;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(47, 115, 75, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(57, 185, 120, 0.06), transparent 50%),
    radial-gradient(ellipse 35% 28% at 8% 60%, rgba(31, 143, 85, 0.05), transparent 50%) !important;
  background-attachment: fixed;
}

/* ---------- 自定义滚动条（桌面端） ---------- */
@media (hover: hover) and (pointer: fine) {
  html {
    scrollbar-width: thin;
    scrollbar-color: rgba(57, 185, 120, 0.45) rgba(15, 22, 18, 0.8);
  }
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: rgba(9, 14, 12, 0.9);
  }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(117, 214, 160, 0.55), rgba(57, 185, 120, 0.4));
    border-radius: 999px;
    border: 2px solid rgba(9, 14, 12, 0.9);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #75d6a0, #39b978);
  }
}

/* ---------- 选中文字 ---------- */
::selection {
  background: rgba(57, 185, 120, 0.35);
  color: #fff;
}

/* ---------- 焦点可见环：键盘用户更清晰 ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(117, 214, 160, 0.75) !important;
  outline-offset: 2px !important;
}

/* ---------- 顶部导航玻璃质感加强 ---------- */
.header.site-header {
  background: rgba(8, 14, 11, 0.88) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  border-bottom: 1px solid rgba(105, 164, 125, 0.2) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38) !important;
}

.site-header:after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(57, 185, 120, 0.15),
    rgba(117, 214, 160, 0.75),
    rgba(57, 185, 120, 0.15),
    transparent
  ) !important;
}

.site-main-nav .site-nav-link {
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.site-main-nav .site-nav-link:hover,
.site-main-nav .site-nav-link.is-current {
  box-shadow: 0 4px 16px rgba(57, 185, 120, 0.12) !important;
}

/* 搜索框发光焦点 */
.site-header .site-search-form:focus-within,
.hub-search form:focus-within {
  border-color: rgba(87, 198, 137, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(57, 185, 120, 0.14), 0 8px 28px rgba(0, 0, 0, 0.2) !important;
}

.site-header .site-search-submit,
.hub-search button {
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease !important;
}

.site-header .site-search-submit:hover,
.hub-search button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(38, 156, 94, 0.28) !important;
}

/* ---------- 首页区块卡片：更精致的面板 ---------- */
.hub-section {
  position: relative;
  border: 1px solid var(--beauty-line) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(155deg, rgba(22, 34, 27, 0.97), rgba(13, 20, 16, 0.98)) !important;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  overflow: hidden;
}

.hub-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(117, 214, 160, 0.25), transparent);
  pointer-events: none;
}

.hub-section-head h2 {
  letter-spacing: 0.02em;
}

.hub-section-head h2:before {
  background: linear-gradient(180deg, #8be0ad, #299b61) !important;
  box-shadow: 0 0 16px rgba(57, 185, 120, 0.35) !important;
  border-radius: 6px !important;
}

/* ---------- 快捷入口卡片 ---------- */
.hub-shortcut {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
}

.hub-shortcut::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(117, 214, 160, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.hub-shortcut:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28) !important;
}

.hub-shortcut:hover::after {
  opacity: 1;
}

.hub-shortcut .hub-icon {
  transition: transform 0.22s ease, color 0.22s ease;
}

.hub-shortcut:hover .hub-icon {
  transform: scale(1.08);
  color: var(--beauty-green-soft);
}

/* ---------- 视频封面：悬停放大 + 绿色光晕播放钮 ---------- */
.a-con-inner .pic,
.hub-video-grid .pic,
.category-con .pic,
.vodlist__box .vodlist__thumb,
.search-con > ul > li .pic {
  position: relative;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24) !important;
  outline: 1px solid rgba(160, 190, 170, 0.1) !important;
  outline-offset: -1px;
  transition: outline-color 0.25s ease, box-shadow 0.25s ease !important;
}

.a-con-inner:hover .pic,
.hub-video-grid .item:hover .pic,
.category-con li:hover .pic,
.vodlist__box:hover .vodlist__thumb {
  outline-color: rgba(117, 214, 160, 0.35) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(57, 185, 120, 0.18) !important;
}

.a-con-inner .pic img,
.hub-video-grid .pic img,
.category-con .pic img,
.vodlist__box .vodlist__thumb img {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .a-con-inner:hover .pic img,
  .hub-video-grid .item:hover .pic img,
  .category-con li:hover .pic img,
  .vodlist__box:hover .vodlist__thumb img {
    transform: scale(1.05) !important;
    filter: brightness(0.82) !important;
  }
}

/* 播放按钮更精致 */
.fx-video-play {
  background: linear-gradient(145deg, rgba(75, 196, 134, 0.95), rgba(31, 143, 85, 0.95)) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(117, 214, 160, 0.25) !important;
  border: none !important;
}

.fx-video-cover:hover .fx-video-play {
  transform: translate(-50%, -50%) scale(1.08) !important;
}

/* 视频标题悬停变绿 */
.a-con-inner span.s1 a:hover,
.hub-video .vname:hover,
.vodlist__box .vodlist__title a:hover {
  color: var(--beauty-green-soft) !important;
}

/* 角标更圆润 */
.a-con-inner span.s3,
.a-con-inner span.s4,
.a-con-inner span.s5 {
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

/* ---------- 小说卡片 ---------- */
.hub-novel,
.article-result {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
  border-radius: 16px !important;
}

.hub-novel:hover,
.article-result:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(74, 222, 128, 0.4) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22) !important;
}

/* ---------- 排行榜 / 列表项 ---------- */
.rank-list li,
.rank-con ul li {
  transition: background 0.18s ease, transform 0.18s ease;
  border-radius: 10px;
}

.rank-list li:hover,
.rank-con ul li:hover {
  background: rgba(57, 185, 120, 0.08);
}

/* ---------- 浮层按钮：毛玻璃 + 微光 ---------- */
.recent-history-launcher,
.back-to-top {
  border: 1px solid rgba(117, 214, 160, 0.28) !important;
  background: rgba(14, 24, 18, 0.9) !important;
  backdrop-filter: blur(14px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
  color: #d4eadc !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.recent-history-launcher:hover,
.back-to-top:hover {
  background: rgba(28, 56, 39, 0.95) !important;
  border-color: rgba(117, 214, 160, 0.55) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(57, 185, 120, 0.12) !important;
}

.recent-history-launcher .recent-history-count {
  background: linear-gradient(135deg, #4bc486, #279a60) !important;
  color: #06130b !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(38, 156, 94, 0.3);
}

.recent-history-panel {
  border: 1px solid rgba(117, 214, 160, 0.22) !important;
  background: rgba(14, 22, 17, 0.96) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 48px !important;
  border-top: 1px solid rgba(160, 190, 170, 0.1) !important;
  background: linear-gradient(180deg, rgba(15, 23, 18, 0.2), #070b09) !important;
}

.footer .copyright {
  color: #7d8e84 !important;
}

/* ---------- 友情链接 ---------- */
.home-friend-links__list a {
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease !important;
  border-radius: 8px;
  padding: 4px 10px;
}

.home-friend-links__list a:hover {
  color: var(--beauty-green-soft) !important;
  background: rgba(57, 185, 120, 0.1);
  transform: translateY(-1px);
}

/* ---------- 分页按钮 ---------- */
.paging a,
.pagination a,
.page-link {
  border-radius: 10px !important;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease !important;
}

.paging a:hover,
.pagination a:hover,
.page-link:hover {
  border-color: rgba(117, 214, 160, 0.4) !important;
  color: var(--beauty-green-soft) !important;
  transform: translateY(-1px);
}

.paging .active a,
.pagination .active a,
.page-item.active .page-link {
  background: linear-gradient(135deg, #4bc486, #279a60) !important;
  border-color: transparent !important;
  color: #06130b !important;
  font-weight: 700 !important;
}

/* ---------- 播放页操作按钮 ---------- */
.play-action-btn {
  border-radius: 12px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.play-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* ---------- 移动端适度减弱动效，保持清爽 ---------- */
@media (max-width: 767px) {
  body.body {
    background-attachment: scroll;
  }

  .hub-shortcut:hover,
  .hub-novel:hover,
  .article-result:hover {
    transform: none !important;
  }

  .a-con-inner:hover .pic img,
  .hub-video-grid .item:hover .pic img,
  .category-con li:hover .pic img {
    transform: none !important;
    filter: none !important;
  }

  .hub-section {
    border-radius: 16px !important;
  }
}

/* 减少动态效果偏好 */
@media (prefers-reduced-motion: reduce) {
  .hub-shortcut,
  .hub-novel,
  .article-result,
  .a-con-inner .pic img,
  .fx-video-play,
  .recent-history-launcher,
  .back-to-top {
    transition: none !important;
  }
}

/* ---------- 区块右侧「更多 / 换一批」按钮 ---------- */
.hub-section-actions a:not(.hub-latest-random) {
  color: var(--beauty-green-soft) !important;
  font-weight: 650;
  transition: color 0.18s ease, transform 0.18s ease !important;
}

.hub-section-actions a:not(.hub-latest-random):hover {
  color: #a7f3c4 !important;
  transform: translateX(2px);
}

.hub-latest-random {
  border-radius: 10px !important;
  background: rgba(124, 58, 237, 0.08) !important;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

.hub-latest-random:hover {
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.15) !important;
}

/* ---------- 热门关键词标签更像胶囊 ---------- */
#home-hot-keywords a,
.site-hot-search-item {
  border-radius: 999px !important;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease !important;
}

#home-hot-keywords a:hover,
.site-hot-search-item:hover {
  transform: translateY(-1px);
  border-color: rgba(117, 214, 160, 0.4) !important;
  color: var(--beauty-green-soft) !important;
  background: rgba(57, 185, 120, 0.1) !important;
}

/* ---------- Logo 轻微光泽 ---------- */
.site-header .site-brand img {
  transition: box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.site-header .site-brand:hover img {
  border-color: rgba(117, 214, 160, 0.4) !important;
  box-shadow: 0 6px 20px rgba(57, 185, 120, 0.18) !important;
}
