/* Labubu GIF Website Styles */

/* ===== WEBSITE STYLES ===== */

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff8a65, #ffab40);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #ff8a65; /* Fallback color */
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(45deg, #ff8a65, #ffab40);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 40px 0 20px;
    text-align: center;
    background: linear-gradient(135deg, #ff8a65 0%, #ffab40 100%);
    color: white;
    margin-top: 60px;
}

.hero-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: #ff8a65;
    border: 2px solid #ff8a65;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #ff8a65;
    color: white;
    box-shadow: 0 10px 25px rgba(255, 138, 101, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #ff8a65;
    transform: translateY(-3px);
}

/* 新增第三个按钮样式 */
.btn-tertiary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    transform: translateY(-3px);
}

.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ff8a65, #ffab40);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Featured Content Sections */
.featured-gifs,
.featured-gif-wallpapers,
.featured-wallpapers {
    padding: 30px 0;
    background: white;
    margin: 1rem 0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* 首页网格：固定4列布局 */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

/* 页面内容网格：响应式布局 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* 统一的图片项目样式 */
.featured-item,
.page-item {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1; /* 强制1:1宽高比 */
}

.featured-item:hover,
.page-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 图片样式 */
.featured-item img,
.page-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-item:hover img,
.page-item:hover img {
    transform: scale(1.05);
}

/* 覆盖层样式 */
.item-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;
}

.featured-item:hover .item-overlay,
.page-item:hover .item-overlay {
    opacity: 1;
}

/* 下载按钮样式 */
.download-btn {
    background: linear-gradient(45deg, #ff8a65, #ffab40);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 138, 101, 0.3);
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 138, 101, 0.4);
}

.download-btn .icon {
    margin-right: 8px;
    font-size: 1.1em;
}

/* 移动端响应式设计 */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 30px 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .download-guide {
        padding: 10px 0;
    }
    
    .download-guide p {
        font-size: 0.85rem;
        padding: 0 10px;
    }
    
    .featured-gifs,
    .featured-gif-wallpapers,
    .featured-wallpapers {
        padding: 20px 0;
        margin: 0.8rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .featured-item,
    .page-item {
        border-radius: 10px;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }
    
    .download-btn {
        padding: 8px 16px;
        font-size: 0.8em;
    }
    
    .download-btn .icon {
        margin-right: 4px;
    }
}

/* 加载状态样式 */
.featured-item.loading,
.page-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
}

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

/* 更新原有的GIF网格样式以保持兼容性 */
.gif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

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

/* 确保图片容器有正确的宽高比 */
.gif-item,
.wallpaper-item {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
}

.gif-image,
.wallpaper-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about {
    padding: 40px 0;
    background: white;
    margin: 1.5rem 0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.8;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #ff8a65 0%, #ffab40 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* 四列：第一列稍宽，其他三列等宽 */
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 1rem;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-brand .logo {
    height: 30px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

.footer-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
}

.footer-section:nth-child(2) {
    text-align: left;
    padding-left: 2rem;
}

.footer-section:nth-child(2) h4 {
    text-align: left;
    margin-left: -2px;  /* 微调标题位置以对齐链接 */
}

.footer-section:nth-child(2) ul {
    text-align: left;
    padding-left: 0;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li:last-child {
    margin-bottom: 0;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

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

.mb-2 {
    margin-bottom: 2rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-link {
        padding: 0.8rem 2rem;
        border-radius: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gif-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-brand-header {
        justify-content: center;
    }
    
    .footer-section {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 1rem;
    }
    
    .footer-section:first-of-type {
        border-top: none;
        padding-top: 0;
    }
    
    .logo {
        height: 30px;
    }
    
    .footer-brand .logo {
        height: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        min-width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-title {
        font-size: 1.3rem;
    }
    
    .footer-description,
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        gap: 0.6rem;
    }
    
    .btn {
        min-width: 180px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* FAQ Section */
.faq-section {
    background: #fafafa;
    padding: 60px 0;
    margin-top: 40px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 1.4rem;
    color: #ff8a65;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff8a65;
    font-weight: bold;
    text-align: center;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.faq-question {
    background: white;
    color: #333;
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
    color: #ff8a65;
}

.faq-answer {
    background: white;
    padding: 0 20px 20px 20px;
    margin: 0;
    border-top: 1px solid #f0f0f0;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* 移除所有不必要的颜色变化 */
.faq-item:nth-child(odd),
.faq-item:nth-child(even),
.info-item:nth-child(odd),
.info-item:nth-child(even) {
    background: white; /* 统一为白色背景 */
}

/* Detail Pages Styles */
.main-content {
    min-height: 100vh;
    padding-top: 100px;
}

.back-btn {
    margin-bottom: 20px;
}

/* GIF Detail Page */
.gif-detail-section {
    padding: 40px 0 80px;
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.gif-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.gif-display {
    text-align: center;
}

.main-gif-image {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gif-actions {
    margin-top: 30px;
}

.gif-info h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.gif-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.gif-description, .labubu-info {
    margin-bottom: 30px;
}

.gif-description h2, .labubu-info h3 {
    color: #ff8a65;
    margin-bottom: 15px;
}

.similar-gifs {
    margin-top: 60px;
}

.similar-gif-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.similar-gif-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.similar-gif-item:hover {
    transform: translateY(-5px);
}

.similar-gif-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.similar-gif-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.similar-gif-item:hover .similar-gif-overlay {
    transform: translateY(0);
}

.similar-gif-title {
    font-weight: bold;
    font-size: 14px;
}

/* Wallpaper Detail Page */
.wallpaper-detail-section {
    padding: 40px 0 80px;
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.wallpaper-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.wallpaper-display {
    text-align: center;
}

.main-wallpaper-image {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wallpaper-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.wallpaper-info h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.wallpaper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.wallpaper-description, .installation-guide {
    margin-bottom: 30px;
}

.wallpaper-description h2, .installation-guide h3 {
    color: #ff8a65;
    margin-bottom: 15px;
}

.wallpaper-features ul {
    list-style-type: none;
    padding: 0;
}

.wallpaper-features li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.wallpaper-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tag {
    background: linear-gradient(45deg, #ff8a65, #ffab40);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.step-group {
    margin-bottom: 25px;
}

.step-group h4 {
    color: #333;
    margin-bottom: 10px;
}

.step-group ol {
    padding-left: 20px;
}

.step-group li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Responsive Design for Detail Pages */
@media (max-width: 768px) {
    .gif-detail-container,
    .wallpaper-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .similar-gif-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wallpaper-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .gif-meta,
    .wallpaper-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Installation Guide Tabs */
.guide-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.guide-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.guide-tab:hover {
    color: #ff8a65;
}

.guide-tab.active {
    color: #ff8a65;
    border-bottom-color: #ff8a65;
}

.guide-content {
    display: none;
    padding: 20px 0;
}

.guide-content.active {
    display: block;
}

.guide-content ol {
    padding-left: 20px;
}

.guide-content li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
}

/* 下载通知动画 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 详情页面响应式改进 */
@media (max-width: 768px) {
    .gif-detail-container,
    .wallpaper-detail-container {
        padding: 20px;
    }
    
    .main-gif-image,
    .main-wallpaper-image {
        max-width: 100%;
        height: auto;
    }
    
    .gif-actions,
    .wallpaper-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .guide-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .guide-tab {
        text-align: center;
        border-bottom: none;
        border-left: 3px solid transparent;
        border-radius: 5px;
    }
    
    .guide-tab.active {
        border-left-color: #ff8a65;
        border-bottom-color: transparent;
        background: rgba(255, 138, 101, 0.1);
    }
}

/* Legal Pages Styles */
.legal-page {
    background: #fafafa;
    min-height: 100vh;
    padding: 120px 0 40px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.legal-content h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff8a65, #ffab40);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: #ff8a65;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ffab40;
}

.legal-section h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    margin-top: 20px;
}

.legal-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-section li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.legal-section a {
    color: #ff8a65;
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    color: #ffab40;
    text-decoration: underline;
}

/* Mobile styles for legal pages */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 20px;
    }
    
    .legal-content {
        padding: 20px;
        margin: 0 10px;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
}

/* 保留页面内下载指南样式 */
.download-guide {
    background: linear-gradient(135deg, #fff3e0 0%, #ffecb3 100%);
    padding: 12px 0;
    border-bottom: 1px solid #ffab40;
    text-align: center;
}

.download-guide p {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-guide {
        margin: 15px 0;
        padding: 12px;
    }
    
    .download-guide p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .download-guide p {
        font-size: 0.85rem;
    }
}

/* 内容信息区域样式 - 改为垂直列表布局 */
.content-info {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: 40px;
}

.info-content h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #e65100, #f57c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #e65100; /* Fallback color */
}

.info-content > p {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #333;
}

/* 改为垂直列表布局 */
.info-grid {
    display: block; /* 不使用网格布局 */
    max-width: 900px;
    margin: 30px auto 0;
    padding: 0 15px;
}

.info-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #ffab40;
    margin-bottom: 20px; /* 垂直间距 */
    width: 100%;
    box-sizing: border-box;
}

.info-item:last-child {
    margin-bottom: 0; /* 最后一个不需要下边距 */
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 138, 101, 0.2);
    background: white;
    border-left-color: #ff8a65;
}

.info-item h3 {
    color: #e65100;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.info-item p {
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* FAQ 样式也保持垂直布局 */
.faq-section {
    background: #fafafa;
    padding: 60px 0;
    margin-top: 40px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 1.4rem;
    color: #ff8a65;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff8a65;
    font-weight: bold;
    text-align: center;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.faq-question {
    background: white;
    color: #333;
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
    color: #ff8a65;
}

.faq-answer {
    background: white;
    padding: 0 20px 20px 20px;
    margin: 0;
    border-top: 1px solid #f0f0f0;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* 移除所有不必要的颜色变化 */
.faq-item:nth-child(odd),
.faq-item:nth-child(even),
.info-item:nth-child(odd),
.info-item:nth-child(even) {
    background: white; /* 统一为白色背景 */
}

/* Detail Pages Styles */
.main-content {
    min-height: 100vh;
    padding-top: 100px;
}

.back-btn {
    margin-bottom: 20px;
}

/* GIF Detail Page */
.gif-detail-section {
    padding: 40px 0 80px;
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.gif-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.gif-display {
    text-align: center;
}

.main-gif-image {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gif-actions {
    margin-top: 30px;
}

.gif-info h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.gif-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.gif-description, .labubu-info {
    margin-bottom: 30px;
}

.gif-description h2, .labubu-info h3 {
    color: #ff8a65;
    margin-bottom: 15px;
}

.similar-gifs {
    margin-top: 60px;
}

.similar-gif-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.similar-gif-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.similar-gif-item:hover {
    transform: translateY(-5px);
}

.similar-gif-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.similar-gif-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.similar-gif-item:hover .similar-gif-overlay {
    transform: translateY(0);
}

.similar-gif-title {
    font-weight: bold;
    font-size: 14px;
}

/* Wallpaper Detail Page */
.wallpaper-detail-section {
    padding: 40px 0 80px;
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.wallpaper-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.wallpaper-display {
    text-align: center;
}

.main-wallpaper-image {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wallpaper-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.wallpaper-info h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.wallpaper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.wallpaper-description, .installation-guide {
    margin-bottom: 30px;
}

.wallpaper-description h2, .installation-guide h3 {
    color: #ff8a65;
    margin-bottom: 15px;
}

.wallpaper-features ul {
    list-style-type: none;
    padding: 0;
}

.wallpaper-features li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.wallpaper-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tag {
    background: linear-gradient(45deg, #ff8a65, #ffab40);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.step-group {
    margin-bottom: 25px;
}

.step-group h4 {
    color: #333;
    margin-bottom: 10px;
}

.step-group ol {
    padding-left: 20px;
}

.step-group li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Responsive Design for Detail Pages */
@media (max-width: 768px) {
    .gif-detail-container,
    .wallpaper-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .similar-gif-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wallpaper-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .gif-meta,
    .wallpaper-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Installation Guide Tabs */
.guide-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.guide-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.guide-tab:hover {
    color: #ff8a65;
}

.guide-tab.active {
    color: #ff8a65;
    border-bottom-color: #ff8a65;
}

.guide-content {
    display: none;
    padding: 20px 0;
}

.guide-content.active {
    display: block;
}

.guide-content ol {
    padding-left: 20px;
}

.guide-content li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
}

/* 下载通知动画 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 详情页面响应式改进 */
@media (max-width: 768px) {
    .gif-detail-container,
    .wallpaper-detail-container {
        padding: 20px;
    }
    
    .main-gif-image,
    .main-wallpaper-image {
        max-width: 100%;
        height: auto;
    }
    
    .gif-actions,
    .wallpaper-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .guide-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .guide-tab {
        text-align: center;
        border-bottom: none;
        border-left: 3px solid transparent;
        border-radius: 5px;
    }
    
    .guide-tab.active {
        border-left-color: #ff8a65;
        border-bottom-color: transparent;
        background: rgba(255, 138, 101, 0.1);
    }
}

/* Legal Pages Styles */
.legal-page {
    background: #fafafa;
    min-height: 100vh;
    padding: 120px 0 40px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.legal-content h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff8a65, #ffab40);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: #ff8a65;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ffab40;
}

.legal-section h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    margin-top: 20px;
}

.legal-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-section li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.legal-section a {
    color: #ff8a65;
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    color: #ffab40;
    text-decoration: underline;
}

/* Mobile styles for legal pages */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 20px;
    }
    
    .legal-content {
        padding: 20px;
        margin: 0 10px;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
}

/* 保留页面内下载指南样式 */
.download-guide {
    background: linear-gradient(135deg, #fff3e0 0%, #ffecb3 100%);
    padding: 12px 0;
    border-bottom: 1px solid #ffab40;
    text-align: center;
}

.download-guide p {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-guide {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .download-guide p {
        font-size: 0.85rem;
    }
}

/* 内容信息区域样式 - 改为垂直列表布局 */
.content-info {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: 40px;
}

.info-content h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #e65100, #f57c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #e65100; /* Fallback color */
}

.info-content > p {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #333;
}

/* 改为垂直列表布局 */
.info-grid {
    display: block; /* 不使用网格布局 */
    max-width: 800px;
    margin: 0 auto;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px; /* Vertical spacing */
    border-left: 4px solid #ff8a65;
    transition: all 0.3s ease;
}

.info-item:last-child {
    margin-bottom: 0; /* Last item doesn't need bottom margin */
}

/* FAQ Styles Also Keep Vertical Layout */
.faq-section {
    background: #fafafa;
    padding: 60px 0;
    margin-top: 40px;
}

/* Remove All Unnecessary Color Changes */
.faq-item:nth-child(odd),
.faq-item:nth-child(even),
.info-item:nth-child(odd),
.info-item:nth-child(even) {
    background: white; /* Unified white background */
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-info {
        padding: 30px 0;
    }
}

/* Page Header Section Styles */
.page-header {
    background: linear-gradient(135deg, #ff8a65 0%, #ffab40 100%);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Add Image Lazy Loading Optimization */
.featured-item img,
.content-grid img {
    loading: lazy;
    transition: opacity 0.3s ease;
}

/* Optimize Font Loading */
@font-face {
    font-family: 'Arial';
    font-display: swap;
}

/* Add Preload Critical Resources */
