/* 禁漫天堂 - 科技感的漫画世界样式 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
    font-size: 16px;
}

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

/* 科技粒子动画 */
.tech-particle {
    position: absolute;
    font-size: 2rem;
    animation: techFloat 8s ease-in-out infinite;
    opacity: 0.6;
}

.tech-particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.tech-particle:nth-child(2) {
    left: 80%;
    top: 30%;
    animation-delay: 3s;
}

.tech-particle:nth-child(3) {
    left: 50%;
    top: 60%;
    animation-delay: 6s;
}

@keyframes techFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-25px) rotate(90deg) scale(1.2);
    }
    50% {
        transform: translateY(-15px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateY(-30px) rotate(270deg) scale(1.1);
    }
}

/* 卡片动画效果 */
.tech-card-hover {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tech-card-hover:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 30px 60px rgba(6, 182, 212, 0.2);
}

/* 图标动画 */
.tech-icon {
    animation: techPulse 2.5s ease-in-out infinite;
}

@keyframes techPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.15) rotate(180deg);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

.sparkle-icon {
    animation: sparkleEffect 2s ease-in-out infinite;
}

@keyframes sparkleEffect {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 5px currentColor);
    }
    50% {
        transform: scale(1.3);
        filter: brightness(1.6) drop-shadow(0 0 15px currentColor);
    }
}

.bounce-icon {
    animation: bounceIcon 1.8s ease-in-out infinite;
}

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

.glow-icon {
    animation: glowEffect 2.5s ease-in-out infinite;
}

@keyframes glowEffect {
    0%, 100% {
        filter: drop-shadow(0 0 8px currentColor);
    }
    50% {
        filter: drop-shadow(0 0 20px currentColor);
    }
}

/* 分类卡片动画 */
.tech-category-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-category-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.7s;
}

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

.tech-category-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.3);
}

/* 排行榜选项卡样式 */
.ranking-tab {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.ranking-tab:hover::before {
    left: 100%;
}

.ranking-tab.active {
    transform: scale(1.04);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
}

/* 排行榜项目动画 */
.ranking-item {
    transition: all 0.4s ease;
    position: relative;
}

.ranking-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 24px;
}

.ranking-item:hover::before {
    opacity: 1;
}

/* 页面过渡动画 */
.page-transition {
    animation: pageSlideIn 1s ease-out;
}

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 淡入动画 */
.animate-fade-in {
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 弹跳进入动画 */
.bounce-in {
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 滑入效果 */
.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 缩放淡入效果 */
.scale-fade-in {
    animation: scaleFadeIn 1s ease-out;
}

@keyframes scaleFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #06b6d4, #0891b2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0891b2, #0e7490);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.8rem !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    .ranking-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .ranking-item > * {
        margin-bottom: 1rem;
    }
}

/* 加载动画 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(6, 182, 212, 0.3);
    border-top: 5px solid #06b6d4;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 文本渐变效果 */
.text-gradient {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 科技动画效果 */
.tech-animation {
    animation: techEffect 4s ease-in-out infinite;
}

@keyframes techEffect {
    0%, 100% {
        transform: translateY(0px) scale(1);
        filter: brightness(1);
    }
    25% {
        transform: translateY(-5px) scale(1.02);
        filter: brightness(1.1);
    }
    50% {
        transform: translateY(0px) scale(1);
        filter: brightness(1);
    }
    75% {
        transform: translateY(-3px) scale(1.01);
        filter: brightness(1.05);
    }
}

/* 经典动画效果 */
.classic-animation {
    animation: classicEffect 4.5s ease-in-out infinite;
}

@keyframes classicEffect {
    0%, 100% {
        transform: translateY(0px) scale(1);
        filter: brightness(1);
    }
    33% {
        transform: translateY(-6px) scale(1.02);
        filter: brightness(1.1);
    }
    66% {
        transform: translateY(-3px) scale(1.01);
        filter: brightness(1.05);
    }
}

/* 最新动画效果 */
.new-animation {
    animation: newEffect 5s ease-in-out infinite;
}

@keyframes newEffect {
    0%, 100% {
        transform: translateY(0px) scale(1);
        filter: brightness(1);
    }
    25% {
        transform: translateY(-8px) scale(1.03);
        filter: brightness(1.15);
    }
    50% {
        transform: translateY(0px) scale(1);
        filter: brightness(1);
    }
    75% {
        transform: translateY(-4px) scale(1.015);
        filter: brightness(1.08);
    }
}

/* 完结动画效果 */
.complete-animation {
    animation: completeEffect 5.5s ease-in-out infinite;
}

@keyframes completeEffect {
    0%, 100% {
        transform: translateY(0px) scale(1);
        filter: brightness(1);
    }
    20% {
        transform: translateY(-10px) scale(1.04);
        filter: brightness(1.2);
    }
    40% {
        transform: translateY(-5px) scale(1.02);
        filter: brightness(1.1);
    }
    60% {
        transform: translateY(-8px) scale(1.03);
        filter: brightness(1.15);
    }
    80% {
        transform: translateY(-3px) scale(1.01);
        filter: brightness(1.05);
    }
}

/* 排行榜动画效果 */
.ranking-animation {
    animation: rankingShine 3.5s ease-in-out infinite;
}

@keyframes rankingShine {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
    }
    50% {
        transform: scale(1.06);
        text-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
    }
}

/* 科技卡片效果 */
.tech-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-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.6s;
}

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

.tech-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .tech-card-hover:hover {
        transform: none;
        box-shadow: none;
    }
    
    .tech-category-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .tech-category-card:hover::before {
        left: -100%;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .text-gradient {
        background: #ffffff;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    .page-transition,
    .tech-card-hover,
    .ranking-item,
    .ranking-tab,
    .tech-icon,
    .pulse-icon,
    .sparkle-icon,
    .bounce-icon,
    .glow-icon {
        animation: none;
        transition: none;
    }
}

/* 焦点可见性 */
.focus-visible:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* 无障碍支持 */
.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;
}

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

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

.float-up-animation {
    animation: techFloatUp 4s ease-in-out infinite;
}

/* 渐变边框效果 */
.gradient-border {
    position: relative;
    background: linear-gradient(45deg, #06b6d4, #0891b2);
    padding: 2px;
    border-radius: 16px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: #000000;
    border-radius: 14px;
    z-index: -1;
}

/* 脉冲效果 */
.pulse-effect {
    animation: techPulseEffect 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes techPulseEffect {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .8;
    }
}

/* 旋转效果 */
.rotate-effect {
    transition: transform 0.6s ease;
}

.rotate-effect:hover {
    transform: rotate(360deg);
}

/* 缩放效果 */
.scale-effect {
    transition: transform 0.3s ease;
}

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

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

.shadow-glow:hover {
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
}

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

/* 渐变文字动画 */
.gradient-text-animation {
    background: linear-gradient(-45deg, #06b6d4, #0891b2, #0e7490, #fbbf24);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: techGradientShift 3.5s ease infinite;
}

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

/* 悬浮阴影效果 */
.floating-shadow {
    box-shadow: 
        0 8px 25px rgba(6, 182, 212, 0.2),
        0 15px 50px rgba(8, 145, 178, 0.15);
    transition: all 0.3s ease;
}

.floating-shadow:hover {
    box-shadow: 
        0 15px 35px rgba(6, 182, 212, 0.3),
        0 25px 70px rgba(8, 145, 178, 0.2);
    transform: translateY(-4px);
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #06b6d4;
    white-space: nowrap;
    animation: techTyping 3s steps(40, end), techBlinkCaret 0.75s step-end infinite;
}

@keyframes techTyping {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes techBlinkCaret {
    from, to { border-color: transparent; }
    50% { border-color: #06b6d4; }
}

/* 能量波效果 */
.energy-wave {
    position: relative;
    overflow: hidden;
}

.energy-wave::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
    animation: techEnergyWave 2s infinite;
}

@keyframes techEnergyWave {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 多层阴影效果 */
.multi-shadow {
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.24),
        0 8px 20px rgba(6, 182, 212, 0.1),
        0 15px 40px rgba(8, 145, 178, 0.08);
}

/* 高度样式 */
.h-18 {
    height: 4.5rem;
}

/* 间距样式 */
.space-x-10 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 2.5rem;
}

/* 自定义容器 */
.container-tech {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 特殊效果组合 */
.tech-magic-card {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(6, 182, 212, 0.1);
    box-shadow: 
        0 6px 15px rgba(6, 182, 212, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-magic-card:hover {
    background: linear-gradient(145deg, #111827 0%, #0f172a 100%);
    box-shadow: 
        0 12px 25px rgba(6, 182, 212, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.01);
}

/* 动态背景 */
.dynamic-bg {
    background: linear-gradient(-45deg, #06b6d4, #0891b2, #0e7490, #0369a1);
    background-size: 400% 400%;
    animation: techDynamicBg 5s ease infinite;
}

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

/* 科技光束效果 */
.tech-beam {
    position: relative;
    overflow: hidden;
}

.tech-beam::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(6, 182, 212, 0.3), 
        rgba(8, 145, 178, 0.3), 
        transparent);
    animation: techBeamEffect 2.5s infinite;
}

@keyframes techBeamEffect {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 科技边框动画 */
.tech-border {
    border: 2px solid transparent;
    background: linear-gradient(#000000, #000000) padding-box,
                linear-gradient(45deg, #06b6d4, #0891b2) border-box;
    animation: techBorder 3s ease-in-out infinite;
}

@keyframes techBorder {
    0%, 100% { 
        background: linear-gradient(#000000, #000000) padding-box,
                    linear-gradient(45deg, #06b6d4, #0891b2) border-box;
    }
    50% { 
        background: linear-gradient(#000000, #000000) padding-box,
                    linear-gradient(45deg, #0891b2, #0e7490) border-box;
    }
}

/* 科技动画 */
.tech-animation-effect {
    animation: techEffect 4s ease-in-out infinite;
}

@keyframes techEffect {
    0%, 100% {
        transform: translateY(0px) scale(1);
        filter: brightness(1);
    }
    25% {
        transform: translateY(-5px) scale(1.02);
        filter: brightness(1.1);
    }
    50% {
        transform: translateY(0px) scale(1);
        filter: brightness(1);
    }
    75% {
        transform: translateY(-3px) scale(1.01);
        filter: brightness(1.05);
    }
}

/* 科技渐变背景 */
.tech-gradient-bg {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.08) 0%, 
        rgba(8, 145, 178, 0.08) 50%, 
        rgba(14, 116, 144, 0.08) 100%);
}

/* 科技光效 */
.tech-glow {
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 0 15px rgba(6, 182, 212, 0.12);
}

/* 科技能量动画 */
.tech-energy-animation {
    animation: techEnergyAnimation 2s ease-in-out infinite alternate;
}

@keyframes techEnergyAnimation {
    from {
        transform: translateY(0px);
        box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
    }
    to {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(6, 182, 212, 0.25);
    }
}

/* 圆角样式 */
.rounded-4xl {
    border-radius: 2rem;
}

/* 阴影样式 */
.shadow-3xl {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* 边框样式 */
.border-3 {
    border-width: 3px;
}

/* 容器样式 */
.max-w-8xl {
    max-width: 1408px;
}

/* 特殊动画效果 */
.tech-special-effect {
    position: relative;
    overflow: hidden;
}

.tech-special-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(6, 182, 212, 0.15), transparent);
    animation: techRotate 4.5s linear infinite;
}

@keyframes techRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 文字效果 */
.tech-text-effect {
    background: linear-gradient(45deg, #06b6d4, #0891b2, #0e7490, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: techTextShimmer 2.5s ease-in-out infinite;
}

@keyframes techTextShimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

/* 互动效果 */
.tech-interactive {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-interactive:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

/* 背景装饰 */
.tech-decoration {
    position: relative;
}

.tech-decoration::after {
    content: '✨';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 18px;
    opacity: 0.2;
    animation: techFloatUp 3.5s ease-in-out infinite;
}

/* 心跳效果 */
.heartbeat-animation {
    animation: techHeartbeat 1.5s ease-in-out infinite;
}

@keyframes techHeartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.08);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.08);
    }
    70% {
        transform: scale(1);
    }
}

/* 科技光晕效果 */
.tech-glow-effect {
    position: relative;
}

.tech-glow-effect::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #06b6d4, #0891b2, #0e7490);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-glow-effect:hover::before {
    opacity: 0.3;
}

/* 柔和过渡 */
.soft-transition {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 科技色彩动画 */
.tech-color-shift {
    animation: techColorShift 4s ease-in-out infinite;
}

@keyframes techColorShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
}