/* ========================================
   Gallery Page - 案例集锦页面样式
   全新创意设计，展现 GoodPage 的强大能力
   ======================================== */

/* Hero Section with Animated Background */
.gallery-hero {
    min-height: 60vh;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 25%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-40px) rotate(180deg) scale(1.1);
        opacity: 0.9;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
    display: inline-block;
    padding: 18px 50px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 1s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-cta:hover::before {
    width: 300px;
    height: 300px;
}

.hero-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Gallery Grid Section */
.gallery-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 60vh;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.gallery-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

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

.card-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.card-title {
    font-size: 1.4em;
    color: #667eea;
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
}

.card-body {
    padding: 20px 25px;
    min-height: 120px;
}

.card-preview {
    color: #666;
    line-height: 1.8;
    font-size: 0.95em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-footer {
    padding: 15px 25px 25px;
}

.card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.card-link:hover::before {
    left: 100%;
}

.card-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.link-arrow {
    transition: transform 0.3s;
    font-size: 1.2em;
}

.card-link:hover .link-arrow {
    transform: translateX(5px);
}

/* Pagination */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
    padding: 20px 0;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1em;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.page-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.page-btn:hover::before {
    width: 300px;
    height: 300px;
}

.page-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.page-info {
    color: #666;
    font-size: 1.05em;
    font-weight: 500;
    padding: 10px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    animation: fadeInUp 0.6s ease-out;
}

.empty-icon {
    font-size: 6em;
    margin-bottom: 25px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.empty-state h3 {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 15px;
    font-weight: 700;
}

.empty-state p {
    color: #666;
    font-size: 1.15em;
    margin-bottom: 35px;
    line-height: 1.8;
}

.empty-cta {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1em;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.empty-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

/* Footer CTA Section */
.footer-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.footer-cta .container {
    position: relative;
    z-index: 1;
}

.footer-cta h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.footer-cta p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.footer-cta .cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.footer-cta .cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .hero-title {
        font-size: 2.8em;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2em;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }
    
    .hero-cta {
        padding: 15px 40px;
        font-size: 1.1em;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pagination-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-cta h2 {
        font-size: 2em;
    }
    
    .footer-cta p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .gallery-hero {
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: 1.8em;
    }
    
    .hero-subtitle {
        font-size: 1em;
    }
    
    .card-title {
        font-size: 1.2em;
    }
    
    .empty-icon {
        font-size: 4em;
    }
    
    .empty-state h3 {
        font-size: 1.6em;
    }
}
