﻿
        /* 基础样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Comic Sans MS', 'Marker Felt', '微软雅黑', sans-serif;
        }
        
        body {
            background-color: #f9f4e8;
            color: #5a4a42;
            line-height: 1.6;
        }
        
        /* 头部样式 */
        header {
            background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
            padding: 2rem 1rem;
            text-align: center;
            border-bottom: 5px dashed #ff6b6b;
        }
        
        .logo {
            font-size: 2.5rem;
            color: white;
            text-shadow: 3px 3px 0 #ff6b6b, 5px 5px 0 rgba(0,0,0,0.1);
            margin-bottom: 1rem;
        }
        
        .subtitle {
            font-size: 1.2rem;
            color: #fff;
            font-weight: bold;
        }
        
        /* 搜索框样式 */
        .search-container {
            max-width: 600px;
            margin: 1rem auto;
            padding: 0 1rem;
        }
        
        .search-form {
            display: flex;
            border-radius: 30px;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        
        .search-input {
            flex: 1;
            padding: 0.8rem 1.2rem;
            border: none;
            font-size: 1rem;
            outline: none;
        }
        
        .search-button {
            background-color: #ff6b6b;
            color: white;
            border: none;
            padding: 0 1.5rem;
            cursor: pointer;
            font-size: 1rem;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        
        .search-button:hover {
            background-color: #ff5252;
        }
        
        /* 导航栏 */
        nav {
            background-color: #ffd166;
            padding: 0.5rem;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        nav ul {
            display: flex;
            justify-content: center;
            list-style: none;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        
        nav li {
            flex: 1 0 auto;
            min-width: max-content;
            text-align: center;
        }
        
        nav a {
            color: #5a4a42;
            text-decoration: none;
            font-weight: bold;
            font-size: 1rem;
            padding: 0.5rem;
            border-radius: 20px;
            transition: all 0.3s;
            display: block;
            white-space: nowrap;
        }
        
        nav a:hover {
            background-color: #ff6b6b;
            color: white;
        }
        
        /* 作品详情区域 */
        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1rem;
        }
        
        .artwork-detail {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }
        
        .artwork-large {
            width: 100%;
            text-align: center;
        }
        
        .large-image {
            max-width: 800px;
            width: 100%;
            height: auto;
            border-radius: 15px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        /* 作品信息样式 */
        .artwork-description {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        
        .artwork-title {
            font-size: 2rem;
            color: #ff6b6b;
            margin-bottom: 1.5rem;
        }
        
        .artwork-meta {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
            color: #5a4a42;
        }
        
        .artwork-text {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #5a4a42;
        }
        
        /* 返回按钮 */
        .back-button {
            display: inline-block;
            margin-top: 2rem;
            padding: 0.8rem 1.5rem;
            background-color: #ff6b6b;
            color: white;
            border-radius: 30px;
            text-decoration: none;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        
        .back-button:hover {
            background-color: #ff5252;
        }
        
 /* 最新作品展示区域样式 */
.gallery-title {
    text-align: center;
    margin: 2rem 0;
    font-size: 2rem;
    color: #ff6b6b;
    position: relative;
}

.gallery-title:after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: #ffd166;
    margin: 0.5rem auto;
    border-radius: 2px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* 增大最小宽度 */
    gap: 2rem;
    padding: 1rem;
}

/* 单个作品卡片样式 */
.artwork {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.artwork:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.artwork-img {
    width: 100%;
    height: 380px; /* 增加高度 */
    object-fit: contain; /* 改为contain保持完整比例 */
    background-color: #f8f9fa; /* 添加背景色 */
    border-bottom: 3px solid #ffd166;
    padding: 10px; /* 添加内边距 */
}

.artwork-info {
    padding: 1.5rem;
}

.artwork-title {
    font-size: 1.3rem;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    height: 3.6em; /* 固定高度，显示2行 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.artist {
    font-size: 1rem;
    color: #5a4a42;
    margin-bottom: 0.5rem;
}

.age {
    display: inline-block;
    background: #ffd166;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 1100px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .artwork-img {
        height: 340px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .artwork-img {
        height: 360px;
    }
    
    .artwork-title {
        font-size: 1.1rem;
        height: 3.2em;
    }
}





        /* 页脚 */
        footer {
            background: linear-gradient(135deg, #ff6b6b 0%, #ff9a9e 100%);
            color: white;
            text-align: center;
            padding: 2rem 1rem;
            margin-top: 3rem;

    width: 100%; /* 确保100%宽度 */
    clear: both; /* 清除浮动 */

        }
        
        .footer-logo {
            font-size: 2rem;
            margin-bottom: 1rem;
        }

        
        /* 下载按钮样式 */
        .download-btn {
            display: inline-block;
            margin-top: 1rem;
            padding: 0.8rem 1.5rem;
            background-color: #4CAF50;
            color: white;
            border-radius: 30px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            text-align: center;
        }
        
        .download-btn:hover {
            background-color: #45a049;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }
        
        .download-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        /* 响应式调整 */
        @media (max-width: 900px) {
            .artwork-detail {
                padding: 1rem;
            }
            
            .artwork-title {
                font-size: 1.8rem;
            }
        }
        
        @media (max-width: 768px) {
            .gallery {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 1.5rem;
            }
            
            .artwork-img {
                height: 350px;
            }
        }
        
        @media (max-width: 600px) {
            .artwork-meta {
                flex-direction: column;
                gap: 0.5rem;
            }
            
            .artwork-description {
                padding: 1.5rem;
            }
            
            .gallery {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .gallery-title {
                font-size: 1.8rem;
            }
            
            .artwork-title {
                font-size: 1.2rem;
            }
            
            .download-btn {
                padding: 0.7rem 1.2rem;
                font-size: 0.9rem;
            }
        }



        #sumoxing {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;

        }
        
.tags-container {
    width: 750px;
    max-width: 95%; /* 添加最大宽度，在小屏幕上自适应 */
    min-height: 80px; /* 改为最小高度 */
    height: auto; /* 高度自适应 */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    background-color: #fafafa;
    margin: 0 auto; /* 居中显示 */
    padding: 5px; /* 添加内边距 */
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    width: 100%;
    justify-content: center;
    align-items: center; /* 垂直居中 */
}

.tag {
    padding: 5px 12px;
    background: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    white-space: nowrap; /* 防止文字换行 */
    flex-shrink: 0; /* 防止标签被压缩 */
}

.tag:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* 响应式设计 - 在小屏幕上自动换行 */
@media (max-width: 768px) {
    .tags-container {
        width: 95%; /* 小屏幕上宽度自适应 */
        min-height: 100px; /* 增加最小高度以适应两行 */
    }
    
    .tags {
        gap: 6px; /* 小屏幕上间距缩小 */
        padding: 8px;
    }
    
    .tag {
        font-size: 13px; /* 小屏幕上字体稍小 */
        padding: 4px 10px;
    }
}








.search-container {
    max-width: 800px;
    margin: 1rem auto;
    padding: 0 1rem;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-select {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 120px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.search-button {
    padding: 10px 20px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .search-form {
        flex-direction: column;
    }
    
    .search-select, .search-input, .search-button {
        width: 100%;
    }
}


























 
        #suxiazai {
            width: 100%;
            margin-bottom: 20px;
        }
        
        .download-btn {
            display: block;
            width: 100%;
            padding: 15px 0;
            background: linear-gradient(135deg, #ff6600, #ff8c42);
            color: white;
            text-align: center;
            text-decoration: none;
            border-radius: 30px;
            font-weight: bold;
            font-size: 18px;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
        }
        
        .download-btn:hover {
            background: linear-gradient(135deg, #e55a00, #ff7a2e);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
        }
        
        .download-btn:active {
            transform: translateY(0);
        }
        
        /* 遮罩层样式 */
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        /* 广告弹窗样式 */
        .ad-popup {
            background: white;
            border-radius: 15px;
            width: 90%;
            max-width: 400px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            position: relative;
            animation: popup 0.3s ease-out;
        }
        
        @keyframes popup {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        
        .ad-popup h2 {
            color: #2c3e50;
            margin-bottom: 15px;
        }
        
        .ad-popup p {
            color: #7f8c8d;
            margin-bottom: 20px;
            line-height: 1.5;
        }
        
        .ad-image {
            width: 100%;
            height: 150px;
            background: linear-gradient(135deg, #3498db, #2ecc71);
            border-radius: 10px;
            margin: 15px 0;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-weight: bold;
            font-size: 18px;
        }
        
        .ad-buttons {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }
        
        .continue-btn {
            flex: 2;
            padding: 12px;
            background: #ff6600;
            color: white;
            border: none;
            border-radius: 5px;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .continue-btn:hover {
            background: #e55a00;
        }
        
        .close-btn {
            flex: 1;
            padding: 12px;
            background: #e0e0e0;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .close-btn:hover {
            background: #d0d0d0;
        }


