/* 樱桃影视娱乐网站样式 - 现代化设计 */

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

body {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    overflow-x: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(220, 38, 38, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #dc2626);
}

/* 选择文本样式 */
::selection {
    background: rgba(220, 38, 38, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(220, 38, 38, 0.3);
    color: white;
}

/* 动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

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

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 工具类 */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

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

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.bounce-animation {
    animation: bounce 2s infinite;
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #dc2626 0%, #7c3aed 50%, #059669 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animated-gradient {
    background: linear-gradient(-45deg, #dc2626, #7c3aed, #059669, #dc2626);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* 玻璃拟态效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* 阴影效果 */
.shadow-glow {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.shadow-glow:hover {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-outline {
    background: transparent;
    color: #dc2626;
    padding: 12px 24px;
    border: 2px solid #dc2626;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 导航栏样式 */
.navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.navbar-link {
    position: relative;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-link:hover {
    color: #dc2626;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    transition: width 0.3s ease;
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-link.active {
    color: #dc2626;
}

.navbar-link.active::after {
    width: 100%;
}

/* 计数器动画 */
.counter {
    font-variant-numeric: tabular-nums;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(220, 38, 38, 0.3);
    border-radius: 50%;
    border-top-color: #dc2626;
    animation: spin 1s ease-in-out infinite;
}

/* 输入框样式 */
.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin: 4px;
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(220, 38, 38, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

/* 返回顶部按钮 */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

/* 特殊布局 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(124, 58, 237, 0.1));
    z-index: -1;
}

/* 网格背景 */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(220, 38, 38, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 38, 38, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 粒子效果背景 */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(220, 38, 38, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(2n) {
    background: rgba(124, 58, 237, 0.6);
    animation-delay: -2s;
    animation-duration: 8s;
}

.particle:nth-child(3n) {
    background: rgba(5, 150, 105, 0.6);
    animation-delay: -4s;
    animation-duration: 10s;
}

/* 影视风格特效 */
.movie-effect {
    position: relative;
}

.movie-effect::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    filter: hue-rotate(90deg);
    z-index: -1;
    opacity: 0.7;
}

.movie-effect::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: 2px;
    bottom: 2px;
    background: inherit;
    filter: hue-rotate(180deg);
    z-index: -2;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .space-x-4 > * + * {
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 640px) {
    .text-8xl {
        font-size: 3rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
    
    .text-5xl {
        font-size: 2rem;
    }
    
    .px-12 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .py-5 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* 特殊效果 */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #dc2626, #7c3aed) border-box;
}

/* 自定义复选框 */
.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.custom-checkbox input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-checkbox input:checked + .checkmark {
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    border-color: #dc2626;
}

.custom-checkbox .checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked + .checkmark::after {
    display: block;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.table th {
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    color: white;
    font-weight: 600;
}

.table tr:hover {
    background: rgba(220, 38, 38, 0.05);
}

/* 徽章 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.secondary {
    background: #6b7280;
}

.badge.success {
    background: #10b981;
}

.badge.warning {
    background: #f59e0b;
}

.badge.danger {
    background: #ef4444;
}

/* 警告框 */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
    border-left: 4px solid;
}

.alert.info {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
    color: #991b1b;
}

.alert.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #065f46;
}

.alert.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #92400e;
}

.alert.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #991b1b;
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    body {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .card {
        background: rgba(31, 41, 55, 0.9);
        border-color: rgba(220, 38, 38, 0.3);
    }
    
    .navbar {
        background: rgba(31, 41, 55, 0.9);
    }
    
    .input-field {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .table {
        background: #374151;
        color: #f9fafb;
    }
    
    .table th {
        background: linear-gradient(135deg, #dc2626, #7c3aed);
    }
    
    .table td {
        border-color: #4b5563;
    }
}

/* 品牌主题色彩 */
.brand-primary {
    color: #dc2626;
}

.brand-secondary {
    color: #7c3aed;
}

.brand-accent {
    color: #059669;
}

.bg-brand-primary {
    background-color: #dc2626;
}

.bg-brand-secondary {
    background-color: #7c3aed;
}

.bg-brand-accent {
    background-color: #059669;
}

/* 视频播放器样式 */
.video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

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

/* 社交媒体图标 */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* 统计数字动画 */
.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #dc2626, #7c3aed, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
}

/* 影视卡片 */
.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.movie-card:hover::before {
    left: 100%;
}

/* 团队成员卡片 */
.team-card {
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

/* 评分星星 */
.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.rating-stars i {
    color: #fbbf24;
    transition: all 0.3s ease;
}

.rating-stars:hover i {
    transform: scale(1.1);
}

/* 播放按钮特效 */
.play-button {
    position: relative;
    overflow: hidden;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.play-button:hover::before {
    width: 100%;
    height: 100%;
}

/* 影视海报效果 */
.poster-effect {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.poster-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.poster-effect:hover::after {
    transform: translateX(100%);
}

/* 搜索框样式 */
.search-box {
    position: relative;
}

.search-box input {
    padding-right: 40px;
}

.search-box .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    transition: all 0.3s ease;
}

.search-box:hover .search-icon {
    color: #dc2626;
}

/* 加载状态 */
.loading-skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 影视分类标签 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
}

/* 评分显示 */
.rating-display {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
    font-weight: 600;
    color: #d97706;
}

/* 播放进度条 */
.progress-indicator {
    height: 4px;
    background: rgba(220, 38, 38, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-indicator .progress {
    height: 100%;
    background: linear-gradient(135deg, #dc2626, #7c3aed);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 悬浮卡片效果 */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.15);
}

/* 樱桃主题装饰 */
.cherry-decoration {
    position: relative;
}

.cherry-decoration::before {
    content: '🍒';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.cherry-decoration:hover::before {
    opacity: 1;
    transform: rotate(15deg);
}