/* PC端样式 */

/* 全局样式 */
body {
    font-family: cursive;
    background-color: #1a1a1a; /* 深色背景 */
    color: #e0e0e0; /* 浅色文字 */
}

.main-content {
    margin-top: 0; /* 移除顶部外边距，让内容从顶部开始 */
    padding-top: 76px; /* 为固定导航栏留出空间 */
    min-height: calc(100vh - 76px);
}

/* 导航栏样式 */
.navbar {
    background-color: #282828 !important; /* 深色导航栏背景 */
    border-bottom: 1px solid #333; /* 细分隔线 */
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #e0e0e0 !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #b0b0b0 !important; /* 导航链接文字颜色 */
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 0.75rem 1rem; /* 增加点击区域 */
    border-radius: 4px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: #3a3a3a; /* 悬停和激活状态背景 */
}

.navbar-nav .nav-item.dropdown .dropdown-menu {
    background-color: #282828; /* 下拉菜单背景 */
    border: 1px solid #444;
}

.navbar-nav .nav-item.dropdown .dropdown-item {
    color: #e0e0e0; /* 下拉菜单项文字 */
}

.navbar-nav .nav-item.dropdown .dropdown-item:hover {
    background-color: #3a3a3a; /* 下拉菜单项悬停背景 */
}

.navbar-nav .dropdown-divider {
    border-top-color: #444;
}

/* 搜索框样式 */
.navbar .form-control {
    background-color: #333; /* 搜索框背景 */
    border-color: #444;
    color: #e0e0e0;
    padding: 0.5rem 1rem;
}

.navbar .form-control::placeholder {
    color: #888; /* 搜索框占位符 */
}

.navbar .btn-outline-light {
    color: #e0e0e0; /* 搜索按钮文字 */
    border-color: #444;
}

.navbar .btn-outline-light:hover {
    background-color: #444; /* 搜索按钮悬停背景 */
    color: #fff;
}

/* 卡片样式 */
.card {
    border: 1px solid #333; /* 细边框 */
    background-color: #282828; /* 卡片背景 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 略微更深的阴影 */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.card-header {
    background-color: #333; /* 卡片头部背景 */
    border-bottom: 1px solid #444;
    color: #e0e0e0;
    font-weight: 600;
}

.card-body {
    color: #c0c0c0; /* 卡片内容文字 */
}

/* 按钮样式 */
.btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #e50914; /* 红色主题 */
    border-color: #e50914;
}

.btn-primary:hover {
    background-color: #ff0000; /* 悬停时更亮 */
    border-color: #ff0000;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: #e50914;
    border-color: #e50914;
}

.btn-outline-primary:hover {
    background-color: #e50914;
    color: #fff;
}

/* 轮播图/英雄区样式 */
.hero-section {
    height: auto; /* 固定高度 */
    background-size: cover; /* 封面背景 */
    background-position: center;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-content .btn {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    margin: 0 0.5rem;
}

.carousel-indicators [data-bs-target] {
    background-color: #e0e0e0; /* 指示器颜色 */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255,255,255,0.3); /* 导航按钮颜色 */
    border-radius: 50%;
    padding: 1.5rem;
}

/* 分类筛选按钮 */
.category-filter .btn {
    background-color: #333; /* 按钮背景 */
    color: #e0e0e0;
    border: none;
    padding: 0.6rem 1.2rem;
    margin: 0.25rem;
}

.category-filter .btn:hover {
    background-color: #444;
    color: #fff;
}

.category-filter .btn.active {
    background-color: #e50914; /* 选中状态的红色 */
    color: white;
}

/* 影视剧卡片样式 */
.movie-card {
    text-align: center;
    padding: 0.5rem;
}

.movie-card img {
    border-radius: 8px;
    width: 100%;
    height: 280px; /* 固定高度 */
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.movie-card h6 {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    color: #e0e0e0;
}

.movie-card p {
    font-size: 0.85rem;
    color: #b0b0b0;
}

.movie-card .rating-year {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    color: #b0b0b0;
}

.movie-card .rating-year i {
    color: #ffc107; /* 星星颜色 */
    margin-right: 0.25rem;
}

.movie-card .rating-year span {
    margin-left: 0.5rem;
}

/* 移除横向滚动样式 */
.scrollable-row {
    display: flex;
    flex-wrap: wrap;
    overflow-x: unset;
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 0;
}
.scrollable-row > .col {
    flex: 0 0 25%;
    width: 25%;
    margin: 0 0 1rem 0;
}

/* 侧边栏样式 */
.sidebar .card {
    background-color: #282828;
}

.sidebar .card-header {
    background-color: #333;
}

.sidebar .list-group-item {
    background-color: #282828;
    border-color: #333;
    color: #c0c0c0;
}

.sidebar .list-group-item:hover {
    background-color: #3a3a3a;
}

/* 页脚样式 */
footer {
    background-color: #282828 !important; /* 深色页脚 */
    border-top: 1px solid #333;
    color: #b0b0b0;
}

footer h5 {
    color: #e0e0e0;
}

footer p {
    color: #888;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-section {
        height: 400px;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-content .btn {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
    .scrollable-row > .col {
        width: 33.3333%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 56px;
    }
    .navbar-brand {
        font-size: 1.2rem;
    }
    .hero-section {
        height: 300px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .hero-content .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    .scrollable-row > .col {
        width: 50%;
    }
    .movie-card img {
        height: 220px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e50914; /* 红色加载动画 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.text-indent-2em {
    text-indent: 2em;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px; /* 水平滚动条高度 */
}

::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* 分页样式 - 适配深色主题 */
.pagination {
    margin-bottom: 0;
}

.page-link {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #444;
    border-color: #555;
    color: #fff;
    z-index: 2;
}

.page-link:focus {
    background-color: #444;
    border-color: #555;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.25);
}

.page-item.active .page-link {
    background-color: #e50914;
    border-color: #e50914;
    color: #fff;
}

.page-item.disabled .page-link {
    background-color: #222;
    border-color: #333;
    color: #666;
    cursor: not-allowed;
}

.page-item:first-child .page-link {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
} 