/* 基于Bootstrap的短剧网站样式 - 从 newtv_source 移植 */
@import 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css';
@import 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css';

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --accent-color: #4ecdc4;
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 顶部工具栏样式 */
.top-toolbar {
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-toolbar .navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
}

.search-box .form-control {
    border-radius: 25px 0 0 25px;
    border-right: none;
}

.search-box .btn {
    border-radius: 0 25px 25px 0;
    border-left: none;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.dropdown-toggle::after {
    margin-left: 0.5em;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: rgba(255,255,255,0.8) !important;
}

/* 主要内容区域 */
.display-4 {
    font-weight: 300;
    color: var(--dark-color);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--secondary-color);
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #ff5252;
    border-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* 页脚样式 */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

footer h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* 语言切换下拉菜单 */
.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item.active {
    background-color: var(--primary-color);
}

/* 短剧卡片样式 */
.playlet-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.playlet-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.playlet-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playlet-card:hover .card-overlay {
    opacity: 1;
}

.play-count {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}

.episode-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: bold;
}

.card-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlet-tags .badge {
    cursor: pointer;
    transition: all 0.2s ease;
}

.playlet-tags .badge:hover {
    transform: scale(1.1);
}

.actor-link {
    cursor: pointer;
    transition: color 0.2s ease;
}

.actor-link:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

.playlet-meta {
    font-size: 0.85rem;
}

/* 页面标题样式 */
h2 {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 分页样式 */
.pagination {
    margin: 2rem 0;
}

.pagination .page-link {
    color: #0d6efd;
    border-color: #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: #0a58ca;
    background-color: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.pagination .page-link i {
    font-size: 0.875rem;
}

/* 页面信息样式 */
#page-info-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #0d6efd;
}

#page-info-container .text-muted {
    font-size: 0.9rem;
    margin: 0;
}

/* 主题色彩覆盖Bootstrap默认样式 */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
    }
    
    .top-toolbar .col-md-3,
    .top-toolbar .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .card-img-wrapper {
        height: 250px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .playlet-meta {
        font-size: 0.8rem;
    }
    
    .pagination {
        margin: 1.5rem 0;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    #page-info-container {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    #page-info-container .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .card-img-wrapper {
        height: 200px;
    }
    
    .top-toolbar {
        padding: 1rem 0;
    }
    
    .search-box .form-control {
        font-size: 0.9rem;
    }
    
    .pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .pagination .page-link i {
        font-size: 0.75rem;
    }
}

/* 演员卡片样式 */
.actor-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 1rem;
    overflow: hidden;
}

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

.actor-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.actor-stats .stat-number {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.actor-stats .stat-label {
    color: #6c757d;
    font-size: 0.8rem;
}

.actor-info {
    font-size: 0.85rem;
}

/* 演员详情页样式 */
.actor-detail .card {
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .actor-card .stat-number {
        font-size: 1rem;
    }
    
    .actor-card .stat-label {
        font-size: 0.75rem;
    }
    
    .actor-info {
        font-size: 0.8rem;
    }
}

