:root {
  --primary: #16a34a;
  --secondary: #ec4899;
  --card-bg: #fff;
  --card-shadow: 0 4px 24px 0 rgba(22,163,74,0.08);
}

body {
    background: linear-gradient(135deg, #181a20 0%, #181a20 100%);
    min-height: 100vh;
    margin: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    color: #222;
    padding-top: 64px;
}
.video-card {
  overflow: hidden;
  width: 180px;
  display: inline-block;
  vertical-align: top;
  margin: 0 16px 32px 0;
  /*box-shadow: 0 4px 24px 0 rgba(22,163,74,0.08);*/
  transition: box-shadow 0.18s, transform 0.18s;
}
.video-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.video-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: transparent;
}
.video-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.18s;
}
@media (max-width: 600px) {
  .video-card-rate {
    top: 5px!important;
    width: 25px!important;
    height: 25px!important;
    line-height: 25px!important;
    font-size: 0.8rem!important;
    padding: 0 0px!important;
    text-align: center!important;
    right: 5px!important;
  }
}
.video-card-rate {
  position: absolute;
  top: 30px;
    right: 28px;
    width: 28px;
    height: 28px;
    line-height: 28px;
  background: rgb(25 172 79 / 77%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: bold;
  text-align: center;
  border-radius: 999px;
 
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 2;
}
.video-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  opacity: 0;
  transition: opacity 0.18s;
  z-index: 2;
}
.video-card-img-wrap:hover .video-card-play,
.video-card-link:focus .video-card-play {
  opacity: 1;
}
.video-card-img-wrap:hover .video-card-img,
.video-card-link:focus .video-card-img {
  transform: scale(1.04);
}
.video-card-title {
  margin: 14px 0 10px 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s;
}
.video-card-link:hover .video-card-title {
  color: #16a34a;
}
@media (max-width: 900px) {
  .video-card { width: 46vw; min-width: 140px; }
}
@media (max-width: 600px) {
  .video-card { width: 98vw; min-width: 0; }
}

#clear-favorites-btn{
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
    flex-shrink: 0;
    margin-right: 0.25rem;
}
.card {
    transition: all 0.3s;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.card-img-top {
    height: 300px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
}

.card-text {
    color: #6c757d;
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.navbar {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

h2 {
    margin: 0px 0 20px;
    font-weight: bold;
    position: relative;
}

/* h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 70%;
    width: 5px;
    background-color: #007bff;
    border-radius: 2px;
} */

footer {
    margin-top: 2rem;
    padding: 1.5rem 0;
    background-color: #343a40;
    color: #fff;
}

.sidebar {
  width: 220px;
  background: #f7fbfd;
  min-height: 100vh;
  padding: 0 0 20px 0;
  box-shadow: 2px 0 8px rgba(0,0,0,0.03);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
}
.sidebar .logo {
  font-size: 2rem;
  font-weight: bold;
  color: #16a34a;
  padding: 32px 0 24px 32px;
  letter-spacing: 2px;
}
.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar nav ul li {
  margin: 0;
}
.sidebar nav ul li a {
  display: flex;
  align-items: center;
  padding: 12px 32px;
  color: #222;
  text-decoration: none;
  font-size: 1.08rem;
  border-radius: 8px 0 0 8px;
  transition: background 0.2s, color 0.2s;
}
.sidebar nav ul li a .icon {
  margin-right: 12px;
  font-size: 1.2em;
}
.sidebar nav ul li.active a,
.sidebar nav ul li a:hover {
  background: #d1fae5;
  color: #16a34a;
  font-weight: bold;
}
@media (max-width: 800px) {
  .sidebar {
    width: 100vw;
    min-height: auto;
    position: static;
    box-shadow: none;
    padding: 0;
  }
  .sidebar .logo {
    padding: 16px 0 12px 16px;
  }
  .sidebar nav ul li a {
    padding: 10px 16px;
    border-radius: 8px;
  }
}

.main-content {
  margin-left: 240px;
  padding: 40px 32px 32px 32px;
  max-width: 1200px;
}
.main-header {
  margin-bottom: 32px;
}
.main-header h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #16a34a;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.main-header p {
  color: #64748b;
  font-size: 1.2rem;
}
.section {
  margin-bottom: 40px;
}
.section h2 {
  font-size: 1.4rem;
  color: #0e7490;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;

  overflow: hidden;
  width: 180px;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  border: 1px solid #f1f5f9;
}
.card:hover {
  transform: translateY(-6px) scale(1.04);
}
.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #f1f5f9;
}
.card-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: #222;
  margin: 12px 0 4px 0;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  color: #64748b;
  font-size: 0.95rem;
  padding: 0 12px 12px 12px;
}
@media (max-width: 900px) {
  .main-content { margin-left: 0; padding: 24px 8px; }
  .card-list { gap: 12px; }
  .card { width: 46vw; min-width: 140px; }
  .card img { height: 180px; }
}
@media (max-width: 600px) {
  .main-header h1 { font-size: 2rem; }
  .section h2 { font-size: 1.1rem; }
  .card { width: 98vw; min-width: 0; }
  .card img { height: 140px; }
}

.topbar {
  width: 100%;
  background: #181a20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}
.topbar-inner {
  max-width: 1310px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 0px;
  height: 64px;
  min-height: 64px;
  box-sizing: border-box;
}
.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #16a34a;
  margin-right: 32px;
  letter-spacing: 2px;
  flex-shrink: 0;
  line-height: 1;
}
.nav-menu {
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  align-items: center;
  height: 100%;
  min-width: 0;
}
.nav-menu a {
  color: #fff;
  text-decoration: none;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 1rem;
  height: 40px;
  display: flex;
  align-items: center;
  transition: background 0.18s, color 0.18s;
  line-height: 40px;
  font-weight: 500;
  background: none;
  box-sizing: border-box;
  white-space: nowrap;
}
.nav-menu a.active,
.nav-menu a:hover {
  background: #d1fae5;
  color: #16a34a;
  font-weight: bold;
}
.topbar-search {
  display: flex;
  align-items: center;
  margin-left: 24px;
  height: 40px;
  flex-shrink: 0;
}
.topbar-search input[type="text"] {
  height: 40px;
  padding: 0 12px;
  border: none;
  border-radius: 6px 0 0 6px;
  outline: none;
  font-size: 1rem;
  background: #fff;
  color: #222;
  width: 180px;
  box-sizing: border-box;
}
.topbar-search button {
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 0 6px 6px 0;
  background: #222;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s;
  display: flex;
  align-items: center;
}
.topbar-search button:hover {
  background: #16a34a;
}
.user-dropdown {
  margin-left: 24px;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.user-btn {
  background: #23272f;
  color: #bdbdbd;
  border: none;
  border-radius: 6px;
  padding: 0 18px 0 14px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 40px;
  line-height: 40px;
}
.user-btn .arrow {
  margin-left: 6px;
  font-size: 0.9em;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  margin-left: 16px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 4px;
  width: 100%;
  background: #16a34a;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.2s;
}

/* 手机端样式 */
@media (max-width: 1300px) {
  .topbar-inner { padding: 0 8px; height: 56px !important;min-height: 56px !important;}
}
@media (max-width: 1100px) {
  .topbar-inner { padding: 0 4px;  height: 56px !important;min-height: 56px !important;}
  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #18181b;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    display: none;
    z-index: 101;
    min-width: 100vw;
  }
  .nav-menu.show { display: flex; }
  .nav-menu a {
    width: 100%;
    padding: 0 24px;
    border-radius: 0;
    border-bottom: 1px solid #222;
    height: 48px;
    line-height: 48px;
    justify-content: flex-start;
  }
  .topbar-search, .user-dropdown {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
  }
  .menu-toggle { display: flex; }
}
body {
  padding-top: 64px; /* 防止内容被导航栏遮挡 */
}

/* 瀑布流卡片网格优化 */

.video-card-list {
  display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px 36px;
    padding: 0;
    width: 1260px;
    margin: 0 auto;
}

/* 卡片基础样式 */
.video-card {
  border-radius: 10px;

  width: 180px;
  margin: 0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
}

/* 适配平板和小屏幕：2列 */
@media (max-width: 900px) {
  .video-card-list {
    gap: 12px 8px;
    justify-content: space-between;
  }
  .video-card {
    width: calc(50% - 8px);
    min-width: 140px;
  }
}

/* 适配手机：1列 */
@media (max-width: 600px) {
  .video-card-list {
    gap: 10px 0;
  }
  .video-card {
    width: 100%;
    min-width: 0;
  }
}

/* 移动端全屏菜单样式 */
@media (max-width: 600px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(24,24,27,0.96);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    gap: 32px;
    padding: 0;
  }
  .nav-menu.show {
    display: flex;
  }
  .nav-menu a {
    font-size: 1.5rem;
    padding: 18px 0;
    width: 80vw;
    text-align: center;
    border-radius: 12px;
    margin: 0;
    background: none;
    color: #fff;
    font-weight: bold;
    border-bottom: none;
    transition: background 0.18s, color 0.18s;
  }
  .nav-menu a.active,
  .nav-menu a:hover {
    background: #16a34a;
    color: #fff;
  }
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1000;
  }
}

@media (min-width: 801px) {
  .main-content {
    margin-left: 220px; /* 或 sidebar 实际宽度 */
    padding: 40px 32px 32px 32px;
    max-width: 1200px;
  }
}
@media (max-width: 800px) {
  .main-content {
    margin-left: 0;
    padding: 16px 4px;
  }
}

/* 瀑布流页面专用样式 */
.loading-indicator {
  text-align: center;
  padding: 2rem 0;
  color: #666;
}

.loading-indicator .spinner-border {
  width: 2rem;
  height: 2rem;
  border-width: 0.2em;
}

.no-more-data {
  text-align: center;
  padding: 2rem 0;
  color: #999;
  font-size: 0.9rem;
}

 

@media (max-width: 900px) {
  .video-card-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px 12px;
  }
}

@media (max-width: 600px) {
  .video-card-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px 8px;
  }
}

/* 页面标题样式优化 */
.main-header {
  margin-bottom: 2rem;
  text-align: center;
}

.main-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.main-header p {
  font-size: 1.1rem;
  color: #ccc;
  margin: 0;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #2a2a2a;
}

::-webkit-scrollbar-thumb {
  background: #16a34a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #15803d;
}

.detail-bg {
  background: #181a20;
  min-height: 100vh;
  padding: 0;
}
.detail-main {
  max-width: 700px;
  margin: 30px auto 0 auto;
  background: #202128;
  border-radius: 10px;
  padding: 40px 40px 32px 40px;
  display: flex;
  gap: 40px;
  position: relative;
}
.detail-main-poster {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(22,163,74,0.08);
  background: #f8f9fa;
  border: 4px solid #202128;
}
.detail-main-content {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .detail-main {
    flex-direction: column;
    padding: 20px 8px 20px 8px;
    gap: 18px;
  }
  .detail-bg{
    width:96vw!important;
    margin: 0 auto;
  }
  .detail-main-poster {
    justify-content: center;
    margin-bottom: 10px;
  }
}
label{color:#fff;}

/* 缩小详情页分享按钮图标 */
.detail-btn-share .btn-icon svg {
  width: 18px !important;
  height: 18px !important;
}

@media (max-width: 600px) {
  .detail-btn-share .btn-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
}
