/* PRO2模板增强样式 - 2026-01-26 */

/* 热门搜索高亮 */
.hot-search-list a {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #ccc;
    font-size: 13px;
    transition: all 0.3s;
}

.hot-search-list a:hover {
    background: #ff5f00;
    color: #fff;
    border-color: #ff5f00;
    transform: translateY(-2px);
}

/* 强制给前三个加高亮色 */
.hot-search-list a:nth-child(1),
.hot-search-list a:nth-child(2),
.hot-search-list a:nth-child(3) {
    border-color: rgba(255, 95, 0, 0.3);
    color: #ff5f00;
    background: rgba(255, 95, 0, 0.05);
}

/* 卡片统一高度 (2026-01-23) */
.pic-list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: start !important;
}

.pic-list > li,
.pic-list > li[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pic-img,
a.pic-img,
.pic-list .pic-img {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-top: 140% !important;
    overflow: hidden !important;
    border-radius: 4px !important;
    background: #1a1a2e !important;
}

.pic-img img,
a.pic-img img,
.pic-list .pic-img img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

.pic-list h3.name {
    font-size: 14px !important;
    line-height: 40px !important;
    height: 40px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .pic-list {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .pic-list {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .pic-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .pic-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* 播放器增强 */
.player-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.player-wrapper iframe,
.player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 剧集列表网格 */
.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.episode-item {
    display: block;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #ccc;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.episode-item:hover {
    background: #ff5f00;
    color: #fff;
    border-color: #ff5f00;
}

.episode-item.active {
    background: #ff5f00;
    color: #fff;
    border-color: #ff5f00;
}

/* FAQ模块 */
.faq-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.faq-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.faq-answer {
    color: #ccc;
    line-height: 1.6;
}

/* 相关推荐 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* 新闻卡片 */
.news-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-meta {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* 排行榜样式 */
.rank-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.rank-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.rank-tab:hover,
.rank-tab.active {
    color: #ff5f00;
    border-bottom-color: #ff5f00;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ff5f00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 返回顶部按钮 */
#to_top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff5f00;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    z-index: 9999;
}

#to_top:hover {
    background: #e65500;
    transform: translateY(-3px);
}

/* 页脚合作伙伴 */
.partner-label {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 10px;
}

.partner-link {
    margin-right: 15px;
}

/* 页脚版权双语 */
.copyright-bilingual {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
    line-height: 1.8;
}

/* 模板版权声明 */
[class~="vt-template-copyright"] {
    margin-top: 36px;
    padding: 18px 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 13px;
    line-height: 1.9;
    color: #8b949e;
    text-align: center;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .episode-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .pic-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #to_top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}
