/* 香蕉视频 - 热门影视在线观看平台样式 */

:root {
    /* 香蕉主题配色 */
    --primary-yellow: #ffeb3b;
    --primary-orange: #ff9800;
    --secondary-amber: #ffc107;
    --secondary-deep-orange: #ff5722;
    --accent-lime: #cddc39;
    --accent-red: #f44336;
    
    /* 功能色彩 */
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --info: #2196f3;
    
    /* 文字颜色 */
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-muted: #9e9e9e;
    --text-white: #ffffff;
    --text-light: #fafafa;
    
    /* 背景颜色 */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --bg-dark: #212121;
    --bg-card: #ffffff;
    --bg-overlay: rgba(33, 33, 33, 0.8);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #ffeb3b 0%, #ff9800 100%);
    --gradient-secondary: linear-gradient(135deg, #ffc107 0%, #ff5722 100%);
    --gradient-hero: linear-gradient(135deg, rgba(33, 33, 33, 0.8) 0%, rgba(255, 152, 0, 0.3) 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    --gradient-vip: linear-gradient(135deg, #ff9800 0%, #f44336 100%);
    
    /* 边框和阴影 */
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-lg: 20px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.18);
    --shadow-banana: 0 8px 32px rgba(255, 152, 0, 0.3);
    
    /* 过渡动画 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
    
    /* 字体 */
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* 容器 */
    --container-max: 1400px;
    --container-padding: 24px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* 容器 */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* 导航栏 */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 48px;
    height: 48px;
}

.logo svg {
    width: 100%;
    height: 100%;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-orange);
    background: rgba(255, 152, 0, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 8px 12px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.search-input {
    background: none;
    border: none;
    outline: none;
    font-size: 0.875rem;
    width: 200px;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: none;
    color: var(--text-secondary);
    padding: 4px;
    border-radius: var(--border-radius-sm);
}

.search-btn:hover {
    color: var(--primary-orange);
}

.btn-vip {
    background: var(--gradient-vip);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-vip:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-login {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* 主横幅 */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-info {
    max-width: 600px;
    color: var(--text-white);
}

.content-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-play {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 16px 32px;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-collect {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.btn-collect:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 区域样式 */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.section-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-orange);
    color: var(--text-white);
    border-color: var(--primary-orange);
}

/* 热门推荐 */
.featured {
    background: var(--bg-secondary);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.content-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.content-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.content-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.content-card:hover .poster-overlay {
    opacity: 1;
}

.play-btn {
    background: var(--gradient-primary);
    color: var(--text-white);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.play-btn:hover {
    transform: scale(1.1);
}

.content-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.content-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-white);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.content-info {
    padding: 16px;
}

.content-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.content-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.content-tags {
    display: flex;
    gap: 8px;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

/* 分类浏览 */
.categories {
    background: var(--bg-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.category-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.category-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.category-preview {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.preview-tag {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

/* 直播频道 */
.live-section {
    background: var(--bg-secondary);
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.live-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.live-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.live-preview {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.live-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-indicator {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-red);
    color: var(--text-white);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--text-white);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-viewers {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-white);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.live-info {
    padding: 16px;
}

.live-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.live-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* VIP会员 */
.vip-section {
    background: var(--bg-primary);
}

.vip-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.vip-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-vip);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.vip-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.vip-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--gradient-vip);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.benefit-text p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.vip-btn-large {
    background: var(--gradient-vip);
    color: var(--text-white);
    padding: 16px 32px;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.vip-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.vip-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vip-showcase {
    display: flex;
    gap: 16px;
    transform: perspective(1000px) rotateY(-15deg);
}

.showcase-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.showcase-card:hover {
    transform: translateY(-8px);
}

.showcase-card img {
    width: 120px;
    height: 180px;
    object-fit: cover;
}

.vip-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: var(--gradient-vip);
    color: var(--text-white);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

/* 页脚 */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.footer-logo svg {
    width: 100%;
    height: 100%;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.column-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-white);
}

.link-list {
    list-style: none;
}

.link-list li {
    margin-bottom: 8px;
}

.link-list a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: var(--transition);
}

.link-list a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
}

.footer-copyright p {
    font-size: 0.875rem;
    margin-bottom: 4px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    font-size: 1.5rem;
    font-weight: 600;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-info {
        max-width: 100%;
        text-align: center;
    }
    
    .vip-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }
    
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 16px var(--container-padding);
        gap: 16px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .search-input {
        width: 150px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .live-grid {
        grid-template-columns: 1fr;
    }
    
    .vip-showcase {
        transform: none;
        gap: 12px;
    }
    
    .showcase-card img {
        width: 100px;
        height: 150px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-play {
        width: 100%;
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .hero-meta {
        justify-content: center;
    }
}

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

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

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}