/* 首页样式 - 萌宠联盟官网 */

/* 导航栏 */
.homepage-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.homepage-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.homepage-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #4a90e2;
}

.brand-icon {
    font-size: 32px;
}

.homepage-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #4a90e2;
}

/* 英雄区 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.title-highlight {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: #ffd700;
    color: #333;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid white;
    transition: background 0.3s, transform 0.3s;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 轮播区 */
.gallery-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.title-icon {
    font-size: 40px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-bottom: 50px;
}

.certificate-carousel {
    position: relative;
    min-height: 400px;
    padding: 40px 0;
    overflow: hidden;
}

.carousel-loader {
    text-align: center;
    padding: 50px;
    color: #999;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 证件卡片容器 */
.carousel-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

/* 证件卡片 */
.certificate-card {
    position: relative;
    width: 280px;
    height: 176px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: floatCard 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.certificate-card:nth-child(odd) {
    animation-delay: 0s;
}

.certificate-card:nth-child(even) {
    animation-delay: 1.5s;
}

.certificate-card:nth-child(3n) {
    animation-delay: 3s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0) rotateY(0deg) rotateX(0deg) scale(1);
    }
    25% {
        transform: translateY(-20px) rotateY(8deg) rotateX(3deg) scale(1.02);
    }
    50% {
        transform: translateY(-35px) rotateY(0deg) rotateX(0deg) scale(1.05);
    }
    75% {
        transform: translateY(-20px) rotateY(-8deg) rotateX(-3deg) scale(1.02);
    }
}

.certificate-card:hover {
    transform: translateY(-10px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    animation-play-state: paused;
}

.certificate-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.certificate-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 15px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.certificate-card:hover .certificate-overlay {
    transform: translateY(0);
}

.certificate-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.certificate-number {
    font-size: 12px;
    opacity: 0.9;
}

/* 功能介绍区 */
.features-section {
    padding: 80px 20px;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.feature-desc {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* 使用步骤 */
.steps-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.step-item {
    text-align: center;
    max-width: 250px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.step-desc {
    color: #666;
    font-size: 15px;
}

.step-arrow {
    font-size: 40px;
    color: #667eea;
    font-weight: bold;
}

.steps-action {
    text-align: center;
    margin-top: 50px;
}

.btn-large {
    padding: 18px 50px;
    font-size: 20px;
}

/* 页脚 */
.homepage-footer {
    background: #2c3e50;
    color: white;
    padding: 50px 20px 30px;
    text-align: center;
}

.footer-content {
    margin-bottom: 30px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffd700;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .homepage-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .certificate-card {
        width: 240px;
        height: 151px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    
    .carousel-container {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .certificate-card {
        width: 200px;
        height: 126px;
    }
    
    .homepage-menu {
        flex-wrap: wrap;
        gap: 10px;
    }
}
