/**
    * DocuDB CSS
    * @version 1.0
    * @description index page CSS for DocuDB
 */
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

header {
    background-color: #032541;
    padding: 17px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

/* 为body添加上边距，防止内容被固定导航栏遮挡 */
body {
    padding-top: 65px; 
}

.logo {
    color: #01b4e4;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* 调整hero部分，防止被导航栏遮挡 */
.hero {
    background: linear-gradient(to right, rgba(3, 37, 65, 0.8), rgba(3, 37, 65, 0.8));
    background-size: cover;
    padding: 80px 40px;
    color: white;
    text-align: center;
    background-position: center; 
    background-size: cover;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 37, 65, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}


.hero h1,
.hero p,
.hero .search-container {
    position: relative;
    z-index: 99;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
}

.search-container {
    max-width: 1000px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 18px;
}

.search-box button {
    background-color: #01b4e4;
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 0 30px 30px 0;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 20px; */
}

.section-header h2 {
    font-size: 24px;
}

.section-header h2 a {
    color: #01b4e4;
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
}
.section-header a:hover {
    text-decoration: underline;
}

.selector {
    background-color: #032541;
    color: white;
    border-radius: 30px;
    padding: 8px 16px;
    display: inline-block;
}

.selector span {
    padding: 5px 10px;
    cursor: pointer;
}

.selector span.active {
    background-color: #01b4e4;
    border-radius: 30px;
}

.movie-list {
    display: flex;
    overflow-x: auto;
    padding: 20px 0;
    gap: 20px;
}

.movie-card {
    min-width: 190px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.movie-poster {
    width: 100%;
    height: 285px;
    /* background-color: #dbdbdb; */
    position: relative;
}

.movie-poster img {
    width: 190px;
    height: 100%;
}

.movie-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(3, 37, 65, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1;
}

.movie-info {
    padding: 0 16px 8px 16px;
}

.movie-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.movie-date {
    color: #999;
    font-size: 14px;
}

.movie-last-date {
    color: #000000;
    font-size: 14px;
}

footer {
    background-color: #032541;
    color: white;
    padding: 40px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.footer-column {
    text-align: left;
}

.footer-column h3 {
    color: #01b4e4;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
}

a:link {
    text-decoration: none ;
}

.active{
    color: #01b4e4;
}

.list-page-item {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.list-page-item.active {
    background: #01b4e4;
    color: white;
    border-color: #01b4e4;
}

.list-page-item:hover:not(.active):not(.dots) {
    background: #f5f5f5;
}

.list-page-item.dots {
    border: none;
    padding: 8px 4px;
}

.list-page-item.disabled {
    color: #999;
    pointer-events: none;
    border-color: #eee;
}

.list-page-item.display {
    display: none;
}

.detail-rating-circle {
    width: 45px;
    height: 45px;
    background-color: #081c22;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    z-index: 1; /* 确保内容在最上层 */
    top: -20px;
  }
  
  .detail-rating-circle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 50%;
    background: conic-gradient(
        var(--rating-color, #21d07a) 0% calc(var(--rating-percent, 0) * 1%),
        transparent calc(var(--rating-percent, 0) * 1%) 100%
      );
    box-sizing: border-box;
    z-index: -2; /* 确保在内容之下 */
  }
  
  .detail-rating-circle::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    border-radius: 50%;
    background-color: #081c22;
    z-index: -1; /* 确保在内容之下但在环形之上 */
  }

    /* 添加评分颜色差异化 */
    .detail-rating-circle[data-score="high"] {
        --rating-color: #21d07a; /* 绿色 - 7分以上 */
    }
    
    .detail-rating-circle[data-score="medium"] {
        --rating-color: #d2d531; /* 黄色 - 5-7分 */
    }
    
    .detail-rating-circle[data-score="low"] {
        --rating-color: #db2360; /* 红色 - 5分以下 */
    }

/* 响应式设计 */
@media screen and (max-width: 768px) {
    /* 头部菜单响应式设计 */
    header {
        flex-direction: column;
        padding: 16px 20px;
    }
    
    header .logo {
        margin-bottom: 10px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    /* 搜索框响应式调整 */
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        width: 100%;
        border-radius: 30px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        width: 100%;
        border-radius: 30px;
    }
    
    /* 英雄区域响应式 */
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    /* 底部区域响应式 */
    /* .footer-content {
        flex-direction: column;
        gap: 20px;
    } */
    
    .footer-column {
        width: 100%;
        text-align: center;
    }
    
    /* 内容区域响应式 */
    .content {
        padding: 0 10px;
    }
    
    /* 分页响应式 */
    .pagination {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding-top: 105px; 
    }
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header h2 {
        margin-bottom: 10px;
    }
}

/* 随机资源推荐 */

.random-article-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .random-article-item {
    padding: 8px 0;
    border-bottom: 1px solid #e3e3e3;
    transition: background-color 0.2s ease;
  }
  
  .random-article-item:last-child {
    border-bottom: none;
  }
  
  .random-article-item:hover {
    background-color: #f5f5f5;
    border-radius: 4px;
  }
  
  .random-article-item a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 0 5px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    padding-left: 15px;
  }
  
  .random-article-item a::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #01b4e4;
    font-weight: bold;
  }
  
  .random-article-item a:hover {
    color: #01b4e4;
  }
  
  .random-article-list {
    counter-reset: article-counter;
    list-style: none;
    padding-left: 0;
  }
  .random-article-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
  }
  .article-index {
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #666;
  }

/* 分页组件 */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.page-item {
    display: inline-block;
}

.page-link, 
.page-link:visited {
    display: block;
    padding: 6px 14px;
    margin: 0 2px;
    color: #007bff;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.page-link:hover {
    background: #f0f0f0;
    color: #0056b3;
}

.page-item.disabled .page-link,
.page-item.disabled span.page-link {
    color: #aaa;
    background: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.page-item.active .page-link,
.active.page-item.disabled span.page-link {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    cursor: default;
}

/* 动态加载评论 */
.comment-load-container {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin: 20px 0;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: background-color 0.3s;
  }
  .comment-load-container:hover {
    background-color: #f0f0f0;
  }

/* 海报标签通用 */
.movie-tag {
    position: absolute;
    right: 8px;
    background-color: rgba(3, 37, 65, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1;
}

.movie-tag-season {
    top: 8px;
}

.tvshow-tag-download {
    top: 40px; /* 位于季度标签下方 */
    background-color: rgba(220, 53, 69, 0.8); /* 使用不同的背景色以区分 */
}

.tvshow-tag-download a {
    color: white;
    text-decoration: none;
}

.movie-tag-download {
    top: 8px; /* 位于季度标签下方 */
    background-color: rgba(220, 53, 69, 0.8); /* 使用不同的背景色以区分 */
}

.movie-tag-download a {
    color: white;
    text-decoration: none;
}

.blink-text {
animation: blink-effect 1s steps(2, start) infinite;
}
@keyframes blink-effect {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}