/* =========================================================
   Enhance UI — 视觉增强 + 新功能样式
   v=20261103-opt1
   ========================================================= */

:root {
  --en-green: #39b978;
  --en-green-soft: #75d6a0;
  --en-green-deep: #1f8f55;
  --en-panel: rgba(16, 24, 20, 0.94);
  --en-line: rgba(145, 190, 153, 0.14);
  --en-radius: 16px;
  --en-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

/* ---------- 视频卡片：悬停抬起 + 封面缩放 + 播放按钮更醒目 ---------- */
.a-con-inner,
.hub-video-grid .item,
.category-con li,
.vodlist__box {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.a-con-inner .pic,
.hub-video-grid .pic,
.category-con .pic,
.vodlist__box .vodlist__thumb {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.a-con-inner .pic img,
.hub-video-grid .pic img,
.category-con .pic img,
.vodlist__box .vodlist__thumb img {
  transition: transform 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
  opacity: 0.96;
}

.a-con-inner:hover,
.hub-video-grid .item:hover,
.category-con li:hover {
  transform: translateY(-3px);
}

.a-con-inner:hover .pic img,
.hub-video-grid .item:hover .pic img,
.category-con li:hover .pic img {
  transform: scale(1.05);
  filter: brightness(1.06);
  opacity: 1;
}

/* 播放图标悬停放大发光 */
.a-con-inner .pic .bofang,
.hub-video-grid .pic .bofang,
.category-con .pic .bofang {
  transition: transform 0.22s ease, opacity 0.22s ease, text-shadow 0.22s ease;
}

.a-con-inner:hover .pic .bofang,
.hub-video-grid .item:hover .pic .bofang,
.category-con li:hover .pic .bofang {
  transform: scale(1.18);
  text-shadow: 0 0 18px rgba(57, 185, 120, 0.7);
}

/* 懒加载图片淡入 */
img.en-img-ready {
  animation: en-fade-in 0.35s ease both;
}

@keyframes en-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 分区标题更精致 ---------- */
.hub-section-head h2,
.hub-section .hub-section-head h2 {
  letter-spacing: 0.02em;
}

.hub-section {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hub-section:hover {
  border-color: rgba(57, 185, 120, 0.22) !important;
}

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

.hub-shortcut:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(57, 185, 120, 0.45) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(57, 185, 120, 0.12) !important;
}

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

.hub-shortcut:hover .hub-icon {
  transform: scale(1.08);
}

/* ---------- 继续观看条 ---------- */
.en-continue-bar {
  position: relative;
  margin: 14px 0 18px;
  padding: 14px 16px 12px;
  border-radius: var(--en-radius);
  border: 1px solid var(--en-line);
  background: linear-gradient(145deg, rgba(25, 36, 30, 0.96), rgba(14, 20, 17, 0.98));
  box-shadow: var(--en-shadow);
  overflow: hidden;
}

.en-continue-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--en-green-soft), var(--en-green-deep));
  border-radius: 3px 0 0 3px;
}

.en-continue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.en-continue-head strong {
  font-size: 15px;
  font-weight: 750;
  color: #e8f5ec;
  letter-spacing: 0.02em;
}

.en-continue-head strong span {
  color: var(--en-green-soft);
}

.en-continue-clear {
  border: 0;
  background: transparent;
  color: #8a9a90;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.en-continue-clear:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.en-continue-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(57, 185, 120, 0.4) transparent;
}

.en-continue-list::-webkit-scrollbar {
  height: 6px;
}

.en-continue-list::-webkit-scrollbar-thumb {
  background: rgba(57, 185, 120, 0.4);
  border-radius: 999px;
}

.en-continue-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 148px;
  max-width: 200px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none !important;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.en-continue-item:hover {
  border-color: rgba(57, 185, 120, 0.4);
  background: rgba(57, 185, 120, 0.08);
  transform: translateY(-1px);
}

.en-continue-kind {
  font-size: 11px;
  color: var(--en-green-soft);
  font-weight: 650;
}

.en-continue-title {
  font-size: 13px;
  line-height: 1.4;
  color: #eef6f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.en-continue-time {
  font-size: 11px;
  color: #8a9a90;
}

/* ---------- 滚动显现 ---------- */
.en-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.en-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .en-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .a-con-inner:hover,
  .hub-shortcut:hover {
    transform: none !important;
  }
}

/* ---------- 播放页操作区微调 ---------- */
.play-action-buttons .play-action-btn {
  box-shadow: 0 4px 14px rgba(22, 160, 93, 0.25);
}

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

/* ---------- 页脚更干净 ---------- */
.footer {
  border-top: 1px solid rgba(145, 190, 153, 0.08);
  background: linear-gradient(180deg, transparent, rgba(8, 12, 10, 0.6));
}

.footer .copyright {
  opacity: 0.78;
  line-height: 1.7;
}

/* ---------- 移动端适度减弱动效开销 ---------- */
@media (max-width: 767px) {
  .a-con-inner:hover,
  .hub-video-grid .item:hover,
  .category-con li:hover,
  .hub-shortcut:hover {
    transform: none !important;
  }
  .en-continue-item {
    min-width: 132px;
    max-width: 168px;
  }
}
