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

:root {
    /* 颜色变量 */
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --tertiary-bg: #2a2a2a;
    --accent-color: #6366f1;
    --accent-hover: #5855eb;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #374151;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    
    /* 边框半径 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* 过渡 */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    contain: layout style; /* Prevent layout shifts */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-brand i {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--tertiary-bg);
}

.admin-link {
    background: var(--gradient-primary);
    color: var(--text-primary) !important;
}

.admin-link:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    width: 250px;
    transition: var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-box button {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition-fast);
}

.search-box button:hover {
    color: var(--accent-color);
}

/* 主要内容 */
.main-content {
    margin-top: 4rem;
}

/* 英雄区域 */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 浮动立方体动画 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-cubes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.cube {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    animation: float 6s ease-in-out infinite;
    opacity: 0.1;
}

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

.cube:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.cube:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 2s;
}

.cube:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 3s;
}

.cube:nth-child(5) {
    top: 70%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* 区域样式 */
.featured-section,
.categories-section,
.modpacks-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--accent-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* 过滤控件 */
.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-select {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* 模组包网格 */
.modpack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
    animation: fadeInUp 0.8s ease-out;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .modpack-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 1200px) {
    .modpack-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .modpack-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .modpack-card {
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .modpack-grid {
        gap: 1rem;
    }
    
    .modpack-card {
        margin: 0 0.5rem;
    }
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.modpack-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.6s ease-out both;
    margin-bottom: 2rem;
}

/* 错开动画效果 */
.modpack-card:nth-child(1) { animation-delay: 0.1s; }
.modpack-card:nth-child(2) { animation-delay: 0.2s; }
.modpack-card:nth-child(3) { animation-delay: 0.3s; }
.modpack-card:nth-child(4) { animation-delay: 0.4s; }
.modpack-card:nth-child(5) { animation-delay: 0.5s; }
.modpack-card:nth-child(6) { animation-delay: 0.6s; }
.modpack-card:nth-child(7) { animation-delay: 0.7s; }
.modpack-card:nth-child(8) { animation-delay: 0.8s; }
.modpack-card:nth-child(9) { animation-delay: 0.9s; }
.modpack-card:nth-child(10) { animation-delay: 1.0s; }
.modpack-card:nth-child(11) { animation-delay: 1.1s; }
.modpack-card:nth-child(12) { animation-delay: 1.2s; }

.modpack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 50%, 
        rgba(236, 72, 153, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 2rem;
}

.modpack-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.modpack-card:hover::before {
    opacity: 1;
}

/* 图片容器 */
.modpack-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 2rem 2rem 0 0;
    /* 使用现代CSS实现宽高比保持 */
    aspect-ratio: 16 / 9;
    /* 容器查询支持 */
    container-type: inline-size;
}

/* 为不支持aspect-ratio的浏览器提供回退 */
@supports not (aspect-ratio: 16 / 9) {
    .modpack-image-container::before {
        content: '';
        display: block;
        padding-top: 56.25%; /* 16:9 比例 */
    }
    
    .modpack-thumbnail {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.modpack-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #374151 0%, #4b5563 50%, #6b7280 100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    /* 自动调整图片质量和加载 */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* 确保图片完全填充容器 */
    display: block;
}

.modpack-card:hover .modpack-thumbnail {
    transform: scale(1.1);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 4px 8px rgba(99, 102, 241, 0.2);
}

/* 悬浮覆盖层 */
.modpack-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modpack-card:hover .modpack-overlay {
    opacity: 1;
}

/* 操作按钮 */
.modpack-actions {
    display: flex;
    gap: 1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modpack-card:hover .modpack-actions {
    transform: translateY(0);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.action-btn.primary {
    background: rgba(99, 102, 241, 0.9);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.action-btn.primary:hover {
    background: rgba(99, 102, 241, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 分类徽章 */
.modpack-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 状态指示器 */
.modpack-status-indicators {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.status-badge.popular {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.status-badge.new {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

/* 内容区域 */
.modpack-content {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
}

/* 标题区域 */
.modpack-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.modpack-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    margin: 0;
    flex: 1;
    margin-right: 1rem;
}

.modpack-rating {
    display: flex;
    align-items: center;
}

.stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* 作者信息 */
.modpack-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.publish-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.modpack-description {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
}

/* 标签区域 */
.modpack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tag.version-tag {
    background: linear-gradient(135deg, var(--accent-color) 0%, #8b5cf6 100%);
    color: white;
    border: 1px solid rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.tag.version-tag::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;
}

.modpack-card:hover .tag.version-tag::before {
    left: 100%;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* 统计信息 */
.modpack-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.stat-item:hover {
    color: var(--accent-color);
}

.stat-item svg {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.stat-item:hover svg {
    opacity: 1;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .modpack-content {
        padding: 1.5rem;
    }
    
    .modpack-title {
        font-size: 1.25rem;
    }
    
    .modpack-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .modpack-author-info {
        padding: 0.75rem;
    }
    
    .author-avatar {
        width: 35px;
        height: 35px;
    }
    
    .modpack-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 200px;
    }
    
    .action-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        justify-content: center;
    }
    
    .modpack-stats {
        padding: 0.75rem;
    }
    
    .stat-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .modpack-content {
        padding: 1rem;
    }
    
    .modpack-title {
        font-size: 1.1rem;
    }
    
    .modpack-description {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .modpack-category-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .status-badge {
        padding: 0.2rem 0.6rem;
        font-size: 0.65rem;
    }
}

/* 加载状态 */
.modpack-card.loading {
    pointer-events: none;
    opacity: 0.7;
}

.modpack-card.loading .modpack-thumbnail {
    background: linear-gradient(
        90deg,
        #374151 25%,
        #4b5563 50%,
        #374151 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* 无障碍访问 */
@media (prefers-reduced-motion: reduce) {
    .modpack-card,
    .modpack-grid,
    .action-btn,
    .tag,
    .stat-item {
        animation: none;
        transition: none;
    }
    
    .modpack-card:hover {
        transform: none;
    }
}

/* 分类网格 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.category-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
}

.category-card:hover {
    background: var(--tertiary-bg);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.category-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination button {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.pagination button:hover:not(:disabled) {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--tertiary-bg);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modpack-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modpack-info {
    display: flex;
    gap: 1.5rem;
}

.modal-body .modpack-thumbnail {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    background: var(--gradient-secondary);
    flex-shrink: 0;
}

.modpack-meta {
    flex: 1;
}

.modpack-meta p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.modpack-meta strong {
    color: var(--text-primary);
}

.modpack-description h4,
.modpack-versions h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.versions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.version-item {
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-info {
    flex: 1;
}

.version-number {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.version-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.version-size {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.download-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* 加载指示器 */
.loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    z-index: 3000;
}

.loading-indicator.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* 页脚 - Layout Shift Prevention */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 0;
    margin-top: 4rem;
    height: 200px; /* Fixed height to prevent layout shifts */
    display: flex;
    align-items: center;
    justify-content: center;
    contain: layout style; /* Prevent layout shifts */
    will-change: auto; /* Optimize rendering */
    transform: translateZ(0); /* Force hardware acceleration */
}

.footer-content {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    height: 160px; /* Fixed content height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    contain: layout style;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    height: 2.5rem; /* Fixed height */
    line-height: 2.5rem;
    contain: layout style;
}

.footer-brand i {
    color: var(--accent-color);
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    height: 1.5rem; /* Fixed height */
    line-height: 1.5rem;
    contain: layout style;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0;
    height: 1.5rem; /* Fixed height */
    align-items: center;
    contain: layout style;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    height: 1.5rem;
    line-height: 1.5rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-links p {
    margin: 0;
    color: var(--text-secondary);
    height: 1.5rem;
    line-height: 1.5rem;
    font-size: 0.9rem;
}

/* Footer responsive design */
@media (max-width: 768px) {
    .footer {
        height: 180px; /* Slightly smaller on mobile */
    }
    
    .footer-content {
        height: 140px;
        padding: 0 0.5rem;
    }
    
    .footer-brand {
        font-size: 1.25rem;
        height: 2rem;
        line-height: 2rem;
    }
    
    .footer-text {
        font-size: 0.9rem;
        height: 1.25rem;
        line-height: 1.25rem;
    }
    
    .footer-links {
        height: 1.25rem;
    }
    
    .footer-links p {
        font-size: 0.8rem;
        height: 1.25rem;
        line-height: 1.25rem;
    }
}

@media (max-width: 480px) {
    .footer {
        height: 160px; /* Even smaller on very small screens */
    }
    
    .footer-content {
        height: 120px;
    }
    
    .footer-brand {
        font-size: 1.1rem;
        height: 1.75rem;
        line-height: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-text {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .footer-links p {
        font-size: 0.75rem;
    }
}

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

.modpack-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 卡片加载状态 */
.modpack-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.modpack-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modpack-card:nth-child(1) { animation-delay: 0.1s; }
.modpack-card:nth-child(2) { animation-delay: 0.2s; }
.modpack-card:nth-child(3) { animation-delay: 0.3s; }
.modpack-card:nth-child(4) { animation-delay: 0.4s; }
.modpack-card:nth-child(5) { animation-delay: 0.5s; }
.modpack-card:nth-child(6) { animation-delay: 0.6s; }

/* 大屏幕优化 */
@media (min-width: 1440px) {
    .modpack-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .modpack-image-container {
        aspect-ratio: 16 / 9;
    }
}

/* 中等屏幕优化 */
@media (max-width: 1024px) {
    .modpack-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .modpack-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
    
    .modpack-image-container {
        aspect-ratio: 3 / 2;
    }
}

/* 平板屏幕优化 */
@media (max-width: 900px) {
    .modpack-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.25rem;
    }
    
    .modpack-image-container {
        aspect-ratio: 4 / 3;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modpack-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modpack-card {
        transform: none !important;
    }
    
    .modpack-card:hover {
        transform: translateY(-4px) !important;
    }
    
    .modpack-image-container {
        aspect-ratio: 4 / 3;
    }
    
    .modpack-thumbnail {
        /* 移动端优化图片加载 */
        loading: lazy;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .modpack-info {
        flex-direction: column;
    }
    
    .modal-body .modpack-thumbnail {
        width: 100%;
        height: 200px;
        max-width: 300px;
        align-self: center;
        border-radius: 12px;
        box-shadow: 
            0 8px 24px rgba(0, 0, 0, 0.2),
            0 4px 8px rgba(0, 0, 0, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .version-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modpack-image-container {
        aspect-ratio: 3 / 2;
    }
    
    .modpack-grid {
        gap: 1rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .modpack-image-container {
        aspect-ratio: 1 / 1;
    }
    
    .modpack-grid {
        gap: 0.75rem;
    }
}

/* 现代化模组包卡片样式 */
.modpack-card-modern {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
    animation-fill-mode: both;
    margin-bottom: 2rem;
}

.modpack-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.modpack-card-modern:hover .card-hover-effect {
    opacity: 1;
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(74, 144, 226, 0.1) 0%, 
        rgba(80, 200, 120, 0.1) 50%, 
        rgba(255, 107, 107, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.card-image-section {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #374151 0%, #4b5563 50%, #6b7280 100%);
    border-radius: 12px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.modpack-card-modern:hover .card-thumbnail {
    transform: scale(1.1);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 4px 8px rgba(99, 102, 241, 0.2);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    pointer-events: none;
}

.modpack-card-modern:hover .card-overlay {
    opacity: 1;
}

.card-badges {
    display: flex;
    gap: 0.5rem;
    align-self: flex-end;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge-new {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.badge-popular {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.card-quick-actions {
    display: flex;
    gap: 0.5rem;
    align-self: flex-end;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modpack-card-modern:hover .card-quick-actions {
    transform: translateY(0);
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: auto;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.quick-action-btn.download-btn:hover {
    background: rgba(74, 144, 226, 0.8);
    border-color: rgba(74, 144, 226, 0.5);
}

.quick-action-btn.favorite-btn.favorited {
    background: rgba(239, 68, 68, 0.8);
    border-color: rgba(239, 68, 68, 0.5);
}

.card-category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-content-section {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    margin: 0;
    flex: 1;
    margin-right: 1rem;
}

.card-version {
    background: linear-gradient(135deg, var(--accent-color) 0%, #8b5cf6 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.5);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.author-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.publish-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.card-description {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.stat-item:hover {
    color: var(--accent-color);
}

.stat-item i {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.stat-item:hover i {
    opacity: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tag-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #8b5cf6 100%);
    color: white;
    border: 1px solid rgba(99, 102, 241, 0.5);
}

.tag-secondary {
    background: rgba(34, 197, 94, 0.2);
    color: #10b981;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tag-version {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* ===== 全新 Notification 系统 ===== */

/* Notification 容器 */
.notification-container {
    position: fixed;
    top: 5.5rem;
    right: 1.5rem;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 420px;
    width: 100%;
}

/* 单个通知 */
.notification {
    pointer-events: auto;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transform: translateX(120%) scale(0.85) rotateY(15deg);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.notification.show {
    transform: translateX(0) scale(1) rotateY(0deg);
    opacity: 1;
}

.notification.hide {
    transform: translateX(120%) scale(0.85) rotateY(-15deg);
    opacity: 0;
}

/* 通知内容区域 */
.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    position: relative;
    z-index: 2;
}

/* 图标区域 */
.notification-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.notification-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    opacity: 0.1;
    border-radius: inherit;
}

.notification-icon i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* 文本区域 */
.notification-text {
    flex: 1;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    margin-top: 0.125rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 关闭按钮 */
.notification-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    margin-top: 0.125rem;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 装饰性顶部条纹 */
.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
}

/* 进度条 */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.2));
    border-radius: 0 0 20px 20px;
    animation: notificationProgress 5s linear forwards;
    z-index: 1;
}

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

/* ===== 通知类型样式 ===== */

/* 成功通知 */
.notification-success {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.12) 0%,
        rgba(5, 150, 105, 0.18) 100%);
    border-color: rgba(16, 185, 129, 0.25);
}

.notification-success::before {
    background: linear-gradient(90deg, #10b981, #059669, #047857);
}

.notification-success .notification-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.notification-success .notification-progress {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* 信息通知 */
.notification-info {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.12) 0%,
        rgba(37, 99, 235, 0.18) 100%);
    border-color: rgba(59, 130, 246, 0.25);
}

.notification-info::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8);
}

.notification-info .notification-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.notification-info .notification-progress {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* 警告通知 */
.notification-warning {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.12) 0%,
        rgba(217, 119, 6, 0.18) 100%);
    border-color: rgba(245, 158, 11, 0.25);
}

.notification-warning::before {
    background: linear-gradient(90deg, #f59e0b, #d97706, #b45309);
}

.notification-warning .notification-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.notification-warning .notification-progress {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* 错误通知 */
.notification-error {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.12) 0%,
        rgba(220, 38, 38, 0.18) 100%);
    border-color: rgba(239, 68, 68, 0.25);
}

.notification-error::before {
    background: linear-gradient(90deg, #ef4444, #dc2626, #b91c1c);
}

.notification-error .notification-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.notification-error .notification-progress {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* ===== 动画效果 ===== */

/* 悬浮效果 */
.notification:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 脉冲动画 */
@keyframes notificationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

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

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .notification-container {
        top: 5.5rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .notification {
        transform: translateY(-120%) scale(0.9);
    }
    
    .notification.show {
        transform: translateY(0) scale(1);
    }
    
    .notification.hide {
        transform: translateY(-120%) scale(0.9);
    }
    
    .notification-content {
        padding: 1rem 1.25rem;
        gap: 0.875rem;
    }
    
    .notification-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9rem;
    }
    
    .notification-text {
        font-size: 0.85rem;
    }
}

/* 版本更新日志动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}