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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #160923 0%, #0f021d 100%);
    min-height: 100vh;
}

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

/* 头部样式 */
.header {
    background: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header-content {
    text-align: center;
}

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

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8748ed;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo i {
    font-size: 2rem;
}

/* 语言切换器 */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 60px;
    justify-content: center;
}

.lang-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.lang-btn i {
    font-size: 0.8rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
    text-align: left ;
}

/* 主要内容区域 */
.main {
    padding: 3rem 0;
}

/* 介绍部分 */
.intro {
    text-align: center;
    margin-bottom: 4rem;
    color: white;
}

.intro h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.intro p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 壁纸网格 */
.wallpaper-grid {
    display: none; /* 隐藏本地渲染容器 */
}

.wallpaper-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.wallpaper-item {
    background: #0b1441;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.wallpaper-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.wallpaper-image img,
.wallpaper-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wallpaper-item:hover .wallpaper-image img,
.wallpaper-item:hover .wallpaper-image video {
    transform: scale(1.05);
}

/* 下载覆盖层 */
.download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wallpaper-item:hover .download-overlay {
    opacity: 1;
}

.download-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.download-btn i {
    font-size: 1.1rem;
}

/* 壁纸信息 */
.wallpaper-info {
    padding: 1.5rem;
}

.wallpaper-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.category {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: rgb(255, 255, 255);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 功能特色部分 */
.features {
    text-align: center;
    color: white;
    margin-top: 4rem;
}

.features h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-item i {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .logo-image {
        height: 32px;
    }
    
    .language-switcher {
        order: -1;
    }
    
    .intro h2,
    .features h2 {
        font-size: 2rem;
    }
    
    .wallpaper-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .download-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .wallpaper-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .logo-image {
        height: 28px;
    }
    
    .intro h2,
    .features h2 {
        font-size: 1.8rem;
    }
    
    .intro p {
        font-size: 1rem;
    }
    
    .language-switcher {
        width: 100%;
        justify-content: center;
    }
    
    .lang-btn {
        min-width: 50px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

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

.wallpaper-item {
    animation: fadeInUp 0.6s ease forwards;
}

.wallpaper-item:nth-child(1) { animation-delay: 0.1s; }
.wallpaper-item:nth-child(2) { animation-delay: 0.2s; }
.wallpaper-item:nth-child(3) { animation-delay: 0.3s; }
.wallpaper-item:nth-child(4) { animation-delay: 0.4s; }
.wallpaper-item:nth-child(5) { animation-delay: 0.5s; }
.wallpaper-item:nth-child(6) { animation-delay: 0.6s; }
.wallpaper-item:nth-child(7) { animation-delay: 0.7s; }
.wallpaper-item:nth-child(8) { animation-delay: 0.8s; }

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
} 