/* ===== 首页专属：Hero + 图鉴卡片 ===== */

.home-page .hero-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - var(--site-nav-h));
    height: calc(100dvh - var(--site-nav-h));
    min-height: 0;
    gap: 0;
}

.home-page .hero-image-wrapper {
    flex: 1 1 58%;
    overflow: hidden;
    opacity: 0;
    transform: scale(1.04);
    animation: appleHeroImage 1.4s var(--apple-spring) 0.05s forwards;
    background: #f5f5f7;
}

.home-page .hero-image {
    opacity: 0;
    animation: appleFade 1.2s var(--apple-ease) 0.2s forwards;
    transition: transform 1.6s var(--apple-spring);
}

.home-page .hero-image-wrapper:hover .hero-image {
    transform: scale(1.03);
}

.home-page .hero-content {
    flex: 0 0 auto;
    padding: 36px 28px 56px;
    text-align: center;
    align-items: center;
    opacity: 0;
    transform: translateY(24px);
    animation: appleRise 1s var(--apple-spring) 0.35s forwards;
}

.home-page .hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--apple-gray);
    margin-bottom: 10px;
    opacity: 0;
    animation: appleRise 0.8s var(--apple-spring) 0.5s forwards;
}

.home-page .hero-title {
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--apple-black);
    margin-bottom: 12px;
    opacity: 0;
    animation: appleRise 0.9s var(--apple-spring) 0.6s forwards;
}

.home-page .hero-subtitle {
    font-size: 17px;
    line-height: 1.47;
    color: var(--apple-gray);
    max-width: 420px;
    margin: 0 auto 28px;
    opacity: 0;
    animation: appleRise 0.9s var(--apple-spring) 0.72s forwards;
}

.home-page .hero-cta {
    display: inline-flex;
    padding: 12px 22px;
    border-radius: 980px;
    background: var(--apple-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    opacity: 0;
    animation: appleRise 0.9s var(--apple-spring) 0.85s forwards;
    transition: transform 0.35s var(--apple-spring), background 0.25s var(--apple-ease);
}

.home-page .hero-cta:hover {
    background: #0077ed;
    transform: scale(1.03);
}

.home-page .hero-cta:active {
    transform: scale(0.97);
}

.scroll-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 2;
    opacity: 0;
    animation: motionFade 0.8s var(--apple-ease) 1.2s forwards,
               motionFloat 2.4s var(--apple-ease) 1.8s infinite;
}

.scroll-hint-arrow {
    width: 10px;
    height: 10px;
    border-right: 1.5px solid var(--apple-gray);
    border-bottom: 1.5px solid var(--apple-gray);
    transform: rotate(45deg);
    margin-top: -6px;
}

@keyframes appleHeroImage {
    to { opacity: 1; transform: scale(1); }
}

@keyframes appleFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes appleRise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 图鉴卡片 */
.home-page .gallery-item {
    background: var(--apple-white);
    border-radius: var(--site-radius);
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    aspect-ratio: 1;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.5s var(--apple-spring), box-shadow 0.5s var(--apple-spring);
}

.home-page .gallery-item.is-visible {
    animation: motionScaleIn 0.7s var(--apple-spring) forwards;
}

.home-page .gallery-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.home-page .gallery-item::before,
.home-page .gallery-item::after {
    display: none;
}

.home-page .gallery-item img {
    border-radius: 12px;
    object-fit: contain;
}

.home-page .member-name {
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%) translateY(4px);
    max-width: calc(100% - 28px);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    border-radius: 980px;
    background: rgba(29, 29, 31, 0.72);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.35s var(--apple-ease), transform 0.35s var(--apple-spring);
}

.home-page .gallery-item:hover .member-name,
.home-page .gallery-item.is-visible .member-name {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 模态框 */
.home-page .modal {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
}

.home-page .modal-content {
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    max-width: min(90vw, 720px);
    max-height: 78vh;
}

.modal-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 26px;
    font-weight: 300;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.25s var(--apple-ease), transform 0.35s var(--apple-spring);
}

.modal-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.06);
}

.modal-prev { left: 20px; }
.modal-next { right: 20px; }

.home-page .modal-close {
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.home-page .modal-caption {
    bottom: 28px;
    padding: 10px 20px;
    border-radius: 980px;
    font-size: 15px;
    background: rgba(29, 29, 31, 0.65);
    backdrop-filter: blur(16px);
    border: none;
}

@media (min-width: 900px) {
    .home-page .hero-container {
        flex-direction: row;
        align-items: stretch;
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 48px 64px;
        gap: 56px;
    }

    .home-page .hero-image-wrapper {
        flex: 1 1 54%;
        border-radius: 28px;
        align-self: center;
        max-height: min(620px, 72vh);
        aspect-ratio: 4 / 3;
    }

    .home-page .hero-image {
        border-radius: 28px;
    }

    .home-page .hero-content {
        flex: 1 1 46%;
        text-align: left;
        align-items: flex-start;
        padding: 0;
        justify-content: center;
    }

    .home-page .hero-subtitle {
        text-align: left;
        margin-left: 0;
    }

    .scroll-hint {
        display: none;
    }
}

@media (max-width: 768px) {
    .home-page .hero-content {
        padding: 28px 24px 48px;
    }

    .home-page .hero-title {
        font-size: 36px;
    }

    .home-page .hero-subtitle {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .home-page .gallery-item {
        border-radius: 16px;
        padding: 8px;
    }

    .home-page .member-name {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        font-size: 11px;
        bottom: 12px;
    }

    .home-page .gallery-item:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    }

    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }
}

@media (hover: none) and (pointer: coarse) {
    .home-page .hero-image-wrapper:hover .hero-image {
        transform: none;
    }
}
