/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #374151;
    overflow-x: hidden;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #e0e7ff 100%);
    min-height: 100vh;
}

/* 字体样式 */
.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* 自定义动画 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

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

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

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

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ec4899, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #db2777, #7c3aed);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

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

/* 悬停效果增强 */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
}

/* 渐变文字效果 */
.gradient-text {
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

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

/* 卡片阴影效果 */
.card-glow {
    transition: all 0.3s ease;
}

.card-glow:hover {
    box-shadow: 
        0 0 20px rgba(236, 72, 153, 0.2),
        0 0 40px rgba(139, 92, 246, 0.1),
        0 0 60px rgba(59, 130, 246, 0.05);
}

/* 按钮特效 */
.btn-creative {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #ec4899, #8b5cf6);
    border: none;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-creative::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;
}

.btn-creative:hover::before {
    left: 100%;
}

.btn-creative:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.4);
}

/* 导航栏特效 */
.nav-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* 3D变换效果 */
.transform-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.rotate-y {
    transform: rotateY(15deg);
    transition: transform 0.3s ease;
}

.rotate-y:hover {
    transform: rotateY(0deg);
}

/* 视频播放器效果 */
.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.video-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-8xl {
        font-size: 4rem;
    }
}

/* 创意边框 */
.creative-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(45deg, #ec4899, #8b5cf6) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* 创意渐变效果 */
.creative-gradient {
    background: linear-gradient(45deg, 
        rgba(236, 72, 153, 0.1) 0%,
        rgba(139, 92, 246, 0.1) 25%,
        rgba(59, 130, 246, 0.1) 50%,
        rgba(16, 185, 129, 0.1) 75%,
        rgba(236, 72, 153, 0.1) 100%);
    background-size: 400% 400%;
    animation: creative-shift 4s ease infinite;
}

@keyframes creative-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 视频卡片效果 */
.video-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.15);
}

/* 创作者头像效果 */
.creator-avatar {
    position: relative;
    border: 3px solid transparent;
    background: linear-gradient(45deg, #ec4899, #8b5cf6) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* 无障碍访问增强 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 焦点样式 */
.focus-visible {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-gradient-to-r,
    .bg-gradient-to-br {
        background: white !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #374151;
    }
    
    .text-gray-400 {
        color: #6b7280;
    }
    
    .border-pink-200 {
        border-color: #ec4899;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 创意按钮样式 */
.btn-gradient {
    background: linear-gradient(45deg, #ec4899, #8b5cf6, #3b82f6, #10b981);
    background-size: 300% 300%;
    animation: gradient-shift 3s ease infinite;
    border: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
}

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

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

/* 文字动画效果 */
.text-animate {
    background: linear-gradient(45deg, #ec4899, #8b5cf6, #3b82f6, #10b981);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

/* 创意图标动画 */
.icon-bounce {
    animation: icon-bounce 2s ease-in-out infinite;
}

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

/* 创意边框动画 */
.border-animate {
    position: relative;
    overflow: hidden;
}

.border-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ec4899, transparent);
    animation: border-flow 2s linear infinite;
}

@keyframes border-flow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 创意阴影效果 */
.shadow-creative {
    box-shadow: 
        0 4px 6px -1px rgba(236, 72, 153, 0.1),
        0 2px 4px -1px rgba(139, 92, 246, 0.06);
}

.shadow-creative-lg {
    box-shadow: 
        0 10px 15px -3px rgba(236, 72, 153, 0.1),
        0 4px 6px -2px rgba(139, 92, 246, 0.05);
}

/* 创意渐变背景 */
.bg-creative-gradient {
    background: linear-gradient(135deg, 
        rgba(236, 72, 153, 0.05) 0%,
        rgba(139, 92, 246, 0.05) 25%,
        rgba(59, 130, 246, 0.05) 50%,
        rgba(16, 185, 129, 0.05) 75%,
        rgba(236, 72, 153, 0.05) 100%);
}

/* 创意文字效果 */
.text-creative {
    background: linear-gradient(45deg, #ec4899, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* 创意按钮悬停效果 */
.btn-creative-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-creative-hover::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: width 0.3s ease, height 0.3s ease;
}

.btn-creative-hover:hover::before {
    width: 300px;
    height: 300px;
}

/* 创意加载效果 */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 创意进度条 */
.progress-creative {
    background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6, #10b981);
    background-size: 200% 100%;
    animation: progress-flow 2s linear infinite;
}

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

/* 创意标签效果 */
.tag-creative {
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: #ec4899;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag-creative:hover {
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
    transform: scale(1.05);
}

/* 创意输入框效果 */
.input-creative {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #ec4899, #8b5cf6) border-box;
    transition: all 0.3s ease;
    color: #374151;
}

.input-creative:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* 创意网格效果 */
.grid-creative {
    background-image: 
        linear-gradient(rgba(236, 72, 153, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 72, 153, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 创意波浪效果 */
.wave-creative {
    position: relative;
    overflow: hidden;
}

.wave-creative::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(236, 72, 153, 0.1) 50%,
        transparent 100%);
    animation: wave-flow 3s ease-in-out infinite;
}

@keyframes wave-flow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 创意脉冲效果 */
.pulse-creative {
    animation: pulse-creative 2s ease-in-out infinite;
}

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

/* 创意旋转效果 */
.rotate-creative {
    animation: rotate-creative 10s linear infinite;
}

@keyframes rotate-creative {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 创意闪烁效果 */
.blink-creative {
    animation: blink-creative 2s ease-in-out infinite;
}

@keyframes blink-creative {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 视频播放器控制栏 */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.video-player:hover .video-controls {
    transform: translateY(0);
}

/* 页脚样式重写 */
footer {
    position: relative;
    z-index: 50;
    background: #111827;
}

footer * {
    position: relative;
    z-index: 51;
}

footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    display: inline-block;
    position: relative;
    z-index: 52;
}

footer a:hover {
    color: #ec4899;
}

footer button {
    cursor: pointer;
    position: relative;
    z-index: 52;
}

/* 导航栏样式重写 */
nav {
    position: fixed;
    z-index: 50;
}

nav a {
    cursor: pointer;
    position: relative;
    z-index: 51;
}

nav button {
    cursor: pointer;
    position: relative;
    z-index: 51;
}