/* 懂片帝网站样式 */

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

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

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

::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
}

/* 选择文本样式 */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: #1f2937;
}

/* 动画效果 */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce-slow {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -10px, 0);
    }
    70% {
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

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

@keyframes count-up {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 动画类 */
.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fade-in-left 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fade-in-right 0.8s ease-out;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out;
}

.animate-slide-in {
    animation: slide-in 0.6s ease-out;
}

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

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

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

.animate-count-up {
    animation: count-up 0.8s ease-out;
}

.animate-hover-lift {
    transition: all 0.3s ease;
}

.animate-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    text-decoration: none;
    color: white;
}

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

.btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* 导航栏样式 */
nav {
    min-height: 60px !important;
    background-color: #ffffff !important;
    display: block !important;
    visibility: visible !important;
}

nav .flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

nav .flex > div {
    display: flex !important;
    align-items: center !important;
}

.nav-link {
    position: relative;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block !important;
    white-space: nowrap;
    visibility: visible !important;
}

.nav-link:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    text-decoration: none;
}

.nav-link.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* 确保导航栏在所有设备上都显示 */
/* 移动端导航优化 */
@media (max-width: 768px) {
    nav {
        min-height: 50px !important;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
        display: inline-block !important;
    }
    
    nav input {
        width: 200px !important;
    }
}

@media (max-width: 640px) {
    nav {
        min-height: 45px !important;
    }
    
    nav .flex > div:first-child .flex {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-link {
        padding: 4px 8px;
        font-size: 13px;
        display: inline-block !important;
    }
    
    nav input {
        width: 150px !important;
        font-size: 14px;
    }
}

/* 统计数据样式 */
.stat-item {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.counter {
    font-variant-numeric: tabular-nums;
}

/* 特色卡片样式 */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

/* 电影卡片样式 */
.movie-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.movie-card img {
    transition: all 0.3s ease;
}

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

.movie-card a {
    text-decoration: none;
    color: inherit;
}

.movie-card a:hover {
    text-decoration: none;
    color: inherit;
}

/* 评价卡片样式 */
.review-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

/* 分类按钮样式 */
.category-btn {
    background: white;
    color: #6b7280;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* 返回顶部按钮 */
#back-to-top {
    transition: all 0.3s ease;
    transform: translateY(100px);
}

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

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

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

/* 输入框样式 */
.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: #1f2937;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-field::placeholder {
    color: #9ca3af;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    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(59, 130, 246, 0.3);
}

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

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

/* 模态框 */
.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);
}

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

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 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.2);
    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.2) 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: #3b82f6;
}

/* 加载状态 */
.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(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: #3b82f6;
    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(59, 130, 246, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-indicator .progress {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    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(59, 130, 246, 0.15);
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #06b6d4 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* 阴影效果 */
.shadow-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.shadow-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.25);
}

/* 视频播放器样式 */
.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%;
}

/* 联系卡片样式 */
.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

/* FAQ样式 */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f3f4f6;
}

.faq-answer {
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .movie-card {
        margin-bottom: 1rem;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .btn-primary,
    .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .review-card {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .btn-primary,
    .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .review-card {
        padding: 20px;
    }
}

/* 特殊效果 */
.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, #3b82f6, #6366f1) border-box;
}

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

.brand-secondary {
    color: #6366f1;
}

.brand-accent {
    color: #06b6d4;
}

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

.bg-brand-secondary {
    background-color: #6366f1;
}

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

/* 企业级样式增强 */
.enterprise-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enterprise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.enterprise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

/* 专业级按钮样式 */
.btn-professional {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
}

.btn-professional:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
    text-decoration: none;
    color: white;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 可见性动画 */
.fade-in {
    opacity: 0;
    animation: fade-in-up 0.6s ease-out forwards;
}

/* 延迟动画 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }