/* Gallery Page Styles */
.gallery-filters {
    margin-bottom: 2rem;
}

.filter-container {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.filter-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Featured Works Section */
.featured-works {
    margin-bottom: 3rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.featured-item {
    transition: transform 0.3s ease;
}

.featured-item:hover {
    transform: translateY(-5px);
}

.artwork-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.artwork-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.artwork-card.featured {
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.artwork-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.featured-artwork-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.artwork-card:hover .featured-artwork-image {
    transform: scale(1.05);
}

.artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.artwork-card:hover .artwork-image img {
    transform: scale(1.05);
}

/* 提示词悬停效果 */
.prompt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px 20px 0 0;
}

.artwork-card:hover .prompt-overlay {
    opacity: 1;
}

.view-prompt-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.view-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 提示词模态框 */
.prompt-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.prompt-modal-content {
    background: rgba(255, 255, 255, 0.95);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.prompt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.prompt-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-prompt-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-prompt-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.prompt-modal-body {
    padding: 2rem;
}

.prompt-section {
    margin-bottom: 2rem;
}

.prompt-section h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.prompt-text-container {
    position: relative;
}

.prompt-text {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Courier New', monospace;
}

.copy-prompt-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.copy-prompt-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
}

.prompt-analysis {
    margin-bottom: 2rem;
}

.prompt-analysis h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.keyword-categories {
    display: grid;
    gap: 1.5rem;
}

.keyword-category h5 {
    color: #667eea;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.prompt-tips h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    background: rgba(102, 126, 234, 0.05);
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    color: #555;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .prompt-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .prompt-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .prompt-modal-body {
        padding: 1.5rem;
    }
    
    .keyword-categories {
        grid-template-columns: 1fr;
    }
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.artwork-info {
    padding: 1.5rem;
}

.artwork-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.3rem;
}

.artwork-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.artwork-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.artwork-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.style-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.style-tag.labubu {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.style-tag.ghibli {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.category-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Gallery Grid */
.gallery-grid {
    margin-bottom: 3rem;
}

.artworks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.artwork-item {
    transition: transform 0.3s ease;
}

.artwork-item:hover {
    transform: translateY(-3px);
}

/* Community Section */
.community-section {
    margin-bottom: 3rem;
}

.community-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.artwork-card.community {
    border: 1px solid rgba(10, 185, 129, 0.3);
}

.artist-name {
    color: #10b981;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.likes {
    color: #ef4444;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .artworks-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .artworks-container {
        grid-template-columns: 1fr;
    }
    
    .artwork-info {
        padding: 1rem;
    }
    
    .artwork-info h3 {
        font-size: 1.1rem;
    }
} 