/* ============================================
   PROJECT PAGE V2 - Universal Upgrade Template
   适用于所有 B 级项目页升级
   ============================================ */

/* --- 1. Full-Screen Hero --- */
.project-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    padding: 0 0 8vh 6vw;
    overflow: hidden;
}

.project-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.project-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55) saturate(1.1);
    transition: transform 8s ease-out;
}

.project-hero:hover .project-hero__bg img {
    transform: scale(1.03);
}

.project-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.4) 40%,
        rgba(0,0,0,0.1) 100%
    );
    z-index: 1;
}

.project-hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.project-hero__kicker {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}

.project-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.project-hero__subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 28px;
}

.project-hero__tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-hero__tags span {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 5px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.project-hero__scroll-hint {
    position: absolute;
    bottom: 32px;
    right: 6vw;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.35);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-hero__scroll-hint::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- 2. Project Meta Card --- */
.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    margin: 80px auto;
    max-width: 900px;
}

.project-meta__item {
    padding: 28px 24px;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(8px);
}

.project-meta__label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 8px;
}

.project-meta__value {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.project-meta__value--accent {
    color: #60a5fa;
}

/* --- 3. Section Structure --- */
.project-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 40px;
    position: relative;
}

.project-section + .project-section {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.project-section__label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 16px;
}

.project-section__heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.project-section__body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.72);
    max-width: 720px;
}

/* --- 4. Parallax Image --- */
.parallax-img {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 40px 0;
}

.parallax-img img {
    width: 100%;
    display: block;
    transition: transform 0.1s linear;
    will-change: transform;
}

.parallax-img--full {
    margin-left: -40px;
    margin-right: -40px;
    border-radius: 0;
}

.parallax-img__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
}

/* --- 5. Horizontal Scroll Gallery --- */
.hscroll-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0 30px;
    margin: 40px -40px;
    padding-left: 40px;
    padding-right: 40px;
    scrollbar-width: none;
}

.hscroll-gallery::-webkit-scrollbar { display: none; }

.hscroll-gallery__item {
    flex: 0 0 auto;
    width: 70vw;
    max-width: 600px;
    scroll-snap-align: center;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

.hscroll-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hscroll-gallery__item:hover img {
    transform: scale(1.03);
}

.hscroll-gallery__item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}

/* --- 6. Sticky Section (text left, images right) --- */
.sticky-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 80px auto;
    max-width: 1100px;
    padding: 0 40px;
    min-height: 80vh;
}

.sticky-section__text {
    position: sticky;
    top: 120px;
    align-self: start;
    max-height: calc(100vh - 160px);
}

.sticky-section__images {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sticky-section__images img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* --- 7. Stat Counter Row --- */
.stat-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 50px 20px;
    margin: 60px auto;
    max-width: 800px;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stat-item {
    text-align: center;
}

.stat-item__number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.stat-item__label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

/* --- 8. Improved Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

.reveal--scale {
    opacity: 0;
    transform: scale(0.95);
}

.reveal--scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

.reveal--slide-left {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal--slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- 9. Video Section Upgrade --- */
.project-video {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.project-video .video-container {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* --- 10. Highlight Callout Box --- */
.callout-box {
    padding: 28px 32px;
    border-left: 3px solid #60a5fa;
    background: rgba(96, 165, 250, 0.06);
    border-radius: 0 10px 10px 0;
    margin: 40px 0;
}

.callout-box__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.callout-box__body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.75);
}

/* --- 11. Image Grid Variants --- */
.img-grid {
    display: grid;
    gap: 16px;
    margin: 40px 0;
}

.img-grid--2col { grid-template-columns: 1fr 1fr; }
.img-grid--3col { grid-template-columns: 1fr 1fr 1fr; }
.img-grid--masonry { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }

.img-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.img-grid img:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

/* --- 12. Footer Nav (Prev/Next Project) --- */
.project-footer-nav {
    position: relative;
    top: auto;
    width: auto;
    padding: 0;
    z-index: 1;
    background: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 100px;
}

.project-footer-nav__link {
    padding: 48px 40px;
    text-decoration: none;
    color: #fff;
    transition: background 0.3s ease;
    position: relative;
}

.project-footer-nav__link:hover {
    background: rgba(255,255,255,0.03);
}

.project-footer-nav__link--next {
    text-align: right;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.project-footer-nav__dir {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 8px;
}

.project-footer-nav__title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .project-hero {
        padding: 0 0 6vh 5vw;
        min-height: 70vh;
    }
    .project-hero__title {
        font-size: 2rem;
    }
    .project-meta {
        grid-template-columns: 1fr 1fr;
        margin: 50px 20px;
    }
    .project-section {
        padding: 50px 20px;
    }
    .sticky-section {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .sticky-section__text {
        position: relative;
        top: auto;
    }
    .hscroll-gallery__item {
        width: 85vw;
    }
    .stat-row {
        flex-wrap: wrap;
        gap: 30px;
    }
    .img-grid--3col {
        grid-template-columns: 1fr 1fr;
    }
    .project-footer-nav {
        grid-template-columns: 1fr;
    }
    .project-footer-nav__link--next {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
        text-align: left;
    }
    .parallax-img--full {
        margin-left: -20px;
        margin-right: -20px;
    }
}

@media (max-width: 480px) {
    .project-hero__title { font-size: 1.7rem; }
    .project-meta { grid-template-columns: 1fr; }
    .img-grid--2col { grid-template-columns: 1fr; }
}
