/* YY漫画网自定义样式 */
/* 全局样式 */
* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* 导航栏增强 */
.nav-brand {
    background: linear-gradient(45deg, #7C3AED, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* 卡片悬停效果增强 */
.manga-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.manga-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.12), 0 10px 15px rgba(0, 0, 0, 0.06);
}

/* 分类图标动画 */
.category-icon {
    transition: transform 0.4s ease, color 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.3) rotate(8deg);
}

/* 排行项样式增强 */
.rank-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rank-item:hover {
    transform: translateX(5px);
}

.rank-item::after {
    content: '';
    position: absolute;
    right: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
    transition: right 0.6s;
}

.rank-item:hover::after {
    right: 100%;
}

/* 搜索框增强 */
.search-input-field {
    transition: all 0.3s ease;
    border-radius: 30px;
    padding-left: 1.5rem;
}

.search-input-field:focus {
    transform: scale(1.03);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

/* 按钮动画效果 */
.primary-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 30px;
    font-weight: 600;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.primary-btn:hover {
    transform: translateY(-2px);
}

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

/* 移动端优化 */
@media (max-width: 768px) {
    .mobile-navigation {
backdrop-filter: blur(12px);
background: rgba(255, 255, 255, 0.98);
    }
    
    .hero-section {
padding: 1.5rem 1rem;
    }
    
    .manga-grid {
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
    }
    
    .category-grid {
grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .manga-grid {
grid-template-columns: 1fr;
    }
    
    .category-grid {
grid-template-columns: repeat(2, 1fr);
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
opacity: 0;
transform: translateY(20px);
    }
    to {
opacity: 1;
transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* 渐变背景动画 */
@keyframes gradientMove {
    0% {
background-position: 0% 50%;
    }
    50% {
background-position: 100% 50%;
    }
    100% {
background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(-45deg, #7C3AED, #EC4899, #06B6D4, #10B981);
    background-size: 400% 400%;
    animation: gradientMove 18s ease infinite;
}

/* 文字发光效果 */
.glow-text {
    text-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #7C3AED, #EC4899);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #6D28D9, #C026D3);
}

/* 返回顶部按钮增强 */
#backToTop {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

/* 标签样式增强 */
.manga-badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

/* 链接悬停效果 */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(45deg, #7C3AED, #EC4899);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* 响应式图片 */
.responsive-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* 阴影效果 */
.custom-shadow {
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.1), 0 8px 10px -6px rgba(124, 58, 237, 0.05);
}

/* 文字选择样式 */
::selection {
    background: rgba(124, 58, 237, 0.25);
    color: #1f2937;
}

/* 页面过渡效果 */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 特别动画效果 */
@keyframes pulse-effect {
    0%, 100% {
opacity: 1;
    }
    50% {
opacity: 0.6;
    }
}

.animate-pulse-effect {
    animation: pulse-effect 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 网格布局增强 */
.adaptive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* 表单元素样式 */
.form-input-field {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
linear-gradient(45deg, #7C3AED, #EC4899) border-box;
    transition: all 0.3s ease;
    border-radius: 30px;
}

.form-input-field:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* 分类标签颜色优化 - 解决模糊问题 */
.category-red { background-color: #EF4444; color: white; }
.category-pink { background-color: #EC4899; color: white; }
.category-purple { background-color: #7C3AED; color: white; }
.category-blue { background-color: #3B82F6; color: white; }
.category-yellow { background-color: #F59E0B; color: white; }
.category-green { background-color: #10B981; color: white; }