/* ============================================
   JokerMovie - 统一样式
   ============================================ */
:root {
    --jm-primary: #e94560;
    --jm-secondary: #ff6b9d;
    --jm-bg: linear-gradient(135deg, #e94560 0%, #ff6b9d 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #0a0a0f;
    color: #fff;
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo img {
    height: 45px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-menu a {
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background: rgba(233, 69, 96, 0.2);
    color: var(--jm-primary);
}

/* 移动端菜单按钮（默认隐藏） */
.navbar-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}
.navbar-menu-btn:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: var(--jm-primary);
}
.navbar-menu-btn.active {
    background: var(--jm-primary);
    border-color: var(--jm-primary);
}
.navbar-menu-btn .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
}
.navbar-menu-btn .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.3s ease;
}
.navbar-menu-btn.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.navbar-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
}
.navbar-menu-btn.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.navbar-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    width: 280px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
    outline: none;
    border-color: var(--jm-primary);
}

.search-btn {
    width: 42px;
    height: 42px;
    background: rgba(233, 69, 96, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--jm-primary);
}

.search-btn:hover {
    background: var(--jm-primary);
    color: #fff;
}

.btn-auth {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--jm-primary);
    border-radius: 25px;
    color: var(--jm-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    background: var(--jm-primary);
    color: #fff;
}

/* 用户头像 */
.navbar-avatar {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.navbar-avatar:hover {
    transform: scale(1.1);
}

/* 主内容 */
.main-content {
    padding-top: 70px;
}

/* 轮播图 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 80px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.banner-tag {
    background: var(--jm-primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.banner-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    line-height: 1.8;
}

/* 轮播箭头按钮 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-arrow:hover {
    background: rgba(233, 69, 96, 0.8);
    transform: translateY(-50%) scale(1.1);
}
.banner-arrow-left { left: 20px; }
.banner-arrow-right { right: 20px; }

/* 轮播圆点指示器 */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.banner-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}
.banner-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}
.banner-dot.active {
    background: var(--jm-primary);
    width: 28px;
    border-radius: 5px;
}

/* 内容区域 */
.content-section {
    padding: 60px 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 28px;
    background: var(--jm-bg);
    border-radius: 3px;
}

.section-more {
    color: var(--jm-primary);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.section-more:hover {
    color: #fff;
}

/* 视频卡片 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.video-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: rgba(233, 69, 96, 0.3);
}

.video-cover {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-cover img {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-btn {
    width: 64px;
    height: 64px;
    background: var(--jm-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-card:hover .play-btn {
    transform: scale(1);
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 22px solid #fff;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    margin-left: 6px;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.video-info {
    padding: 16px;
}

.video-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* 分类标签 */
.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover,
.category-tab.active {
    background: var(--jm-primary);
    border-color: var(--jm-primary);
    color: #fff;
}

/* 移动端分类菜单按钮（默认隐藏） */
.category-menu-wrapper {
    display: none;
}

/* 底部 */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 50px 40px;
    text-align: center;
    margin-top: 60px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--jm-primary);
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   响应式适配 - 多设备屏幕
   ============================================ */

/* 平板 (1024px 以下) */
@media (max-width: 1200px) {
    .content-section { padding: 50px 30px; }
    .video-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* 平板竖屏 / 大手机 (1024px) */
@media (max-width: 1024px) {
    .navbar { padding: 0 20px; }
    .navbar-menu { 
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(20, 20, 25, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 15px;
        gap: 5px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .navbar-menu.show { display: flex; }
    .navbar-menu a {
        padding: 12px 16px;
        border-radius: 8px;
        text-align: center;
    }
    .navbar-menu-btn { display: flex; }
    .search-input { width: 200px; }
    .banner { height: 400px; }
    .banner-title { font-size: 36px; }
    .content-section { padding: 40px 25px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
}

/* 平板竖屏 (768px - 1024px) */
@media (max-width: 900px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-overlay { padding: 50px 30px; }
}

/* 手机 (768px 以下) */
@media (max-width: 768px) {
    .navbar { height: 60px; padding: 0 15px; }
    .navbar-logo img { height: 35px; }
    .navbar-search { display: none; }
    .btn-auth { padding: 8px 16px; font-size: 13px; }
    
    .banner { height: 280px; }
    .banner-overlay { padding: 30px 20px; }
    .banner-title { font-size: 24px; }
    .banner-meta { flex-wrap: wrap; gap: 10px; }
    .banner-tag { font-size: 11px; padding: 3px 8px; }
    .banner-desc { font-size: 14px; max-width: 100%; }
    
    .content-section { padding: 30px 15px; }
    .section-title { font-size: 18px; }
    .section-title::before { height: 20px; }
    .section-more { font-size: 13px; }
    
    .video-grid { grid-template-columns: 1fr; gap: 15px; }
    .video-card { border-radius: 12px; }
    .video-info { padding: 12px; }
    .video-title { font-size: 14px; }
    .video-meta { font-size: 12px; gap: 10px; }
    
    /* 移动端：隐藏分类标签，显示菜单按钮 */
    .category-tabs { display: none; }
    .category-menu-wrapper { 
        display: flex; 
        align-items: center; 
        gap: 12px; 
        margin-bottom: 20px; 
    }
    
    .category-menu-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 25px;
        color: #fff;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .category-menu-btn:hover,
    .category-menu-btn.active {
        background: var(--jm-primary);
        border-color: var(--jm-primary);
    }
    .category-menu-btn .menu-icon {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 18px;
    }
    .category-menu-btn .menu-icon span {
        display: block;
        width: 100%;
        height: 2px;
        background: currentColor;
        border-radius: 1px;
        transition: all 0.3s ease;
    }
    .category-menu-btn.active .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .category-menu-btn.active .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    .category-menu-btn.active .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    
    .category-current-label {
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
    }
    
    .footer { padding: 30px 20px; }
    .footer-links { flex-wrap: wrap; gap: 15px; }
}

/* 小手机 (480px 以下) */
@media (max-width: 480px) {
    .banner { height: 220px; }
    .banner-overlay { padding: 20px 15px; }
    .banner-title { font-size: 20px; margin-bottom: 10px; }
    .banner-desc { font-size: 13px; }
    .play-btn { width: 50px; height: 50px; }
    
    .content-section { padding: 25px 12px; }
    .section-title { font-size: 16px; gap: 8px; }
    
    .video-grid { grid-template-columns: 1fr; gap: 12px; }
    .video-cover { aspect-ratio: 16/10; }
    
    .category-menu-btn { padding: 8px 14px; font-size: 13px; }
    
    .footer { padding: 25px 15px; }
    .footer-links { gap: 12px; }
    .footer-links a { font-size: 13px; }
    .footer-copyright { font-size: 12px; }
}

/* 超小手机 (320px) */
@media (max-width: 320px) {
    .banner { height: 180px; }
    .banner-title { font-size: 18px; }
    .banner-overlay { padding: 15px; }
    .video-card { border-radius: 8px; }
}

/* 横屏适配 */
@media (max-height: 500px) and (orientation: landscape) {
    .banner { height: 250px; }
    .banner-overlay { padding: 20px 40px; }
}

/* 高分辨率屏幕 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-logo img, .footer-logo { image-rendering: -webkit-optimize-contrast; }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .video-card:hover { transform: none; }
    .video-card:active { transform: scale(0.98); }
    .category-tab:hover { background: rgba(255, 255, 255, 0.05); }
    .category-tab:active { background: var(--jm-primary); }
}
