/* ========================================
   HOME PAGE — Slide transition pages
   ======================================== */

/* Fixed container, no native scroll */
.home-scroll-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 1;
}

/* Full-screen sections with slide transition */
.full-section {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ========================================
   CHANGELOG GRID (home-specific)
   ======================================== */

.changelog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    max-width: 1200px;
    width: 100%;
}

.changelog-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    color: #fff;
    transition: background 0.3s, transform 0.3s;
}

.changelog-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.changelog-item h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.changelog-item .changelog-date {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.changelog-item .changelog-text {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    line-height: 1.6;
}

.changelog-item .changelog-author {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    margin-top: 1rem;
    text-align: right;
}

/* ========================================
   CONTRIBUTOR CARDS (求闻史记)
   ======================================== */

.contrib-container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 260px;
}

.contrib-center {
    text-align: center;
    position: absolute;
    top: 8vh;
}

.contrib-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 90px;
    height: 90px;
    border-radius: 18px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    animation: pulse 2s ease-in-out infinite;
}

.contrib-arrow:hover {
    color: #e94560;
    transform: translateY(-50%) scale(1.2);
    animation: none;
}

.contrib-arrow.hidden {
    opacity: 0;
    cursor: default;
    pointer-events: none;
    animation: none;
}

#prevBtn {
    left: 260px;
}

#nextBtn {
    right: 260px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.15); }
}

.contrib-dots {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.contrib-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.contrib-dot.active {
    background: #e94560;
    transform: scale(1.3);
}

.contrib-card {
    text-align: center;
    color: #fff;
    min-width: 0;
    max-width: 600px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.contrib-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #3498db);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255,255,255,0.4);
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.3);
}

.contrib-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.contrib-ability {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
    font-weight: 500;
}

.contrib-bio {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

.contrib-title {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 0.3em;
}

.contrib-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.15em;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .changelog-grid {
        grid-template-columns: 1fr;
    }
    .contrib-container {
        padding: 0 20px;
    }
    #prevBtn {
        left: 10px;
    }
    #nextBtn {
        right: 10px;
    }
    .contrib-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
