/* ============================================
   Project Detail Page Styles
   ============================================ */

/* Main container */
.project-detail-main {
    width: 100%;
    min-height: 100vh;
}

/* ============================================
   Banner Section
   ============================================ */
.project-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    /* background-image removed to support inline styles for dynamic covers */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay for better text readability */
.project-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.banner-title {
    font-family: 'Alibaba PuHuiTi Bold', 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(50px, 5vw + 2.5rem, 100px);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.05em;
    margin: 0;
    padding: 0 clamp(20px, 5vw, 60px);
    z-index: 2;
    position: relative;
    line-height: 1.2;
}

/* Mobile and Tablet adjustments */
@media (max-width: 1024px) {
    .project-banner {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .banner-title {
        font-size: clamp(20px, 5vw, 32px);
        letter-spacing: 0.02em;
    }

    .project-banner {
        aspect-ratio: 16 / 9;
        height: auto !important;
        min-height: unset !important;
    }
}

/* ============================================
   Timeline Section (Alternative - 匹配设计图)
   横线连接所有年份
   ============================================ */
.timeline-section-alt {
    background-color: #000000;
    padding: clamp(30px, 5vh, 60px) 0;
}

.timeline-alt {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(40px, 6vw, 100px);
    position: relative;
}

/* 贯穿的横线连接所有年份 */
.timeline-alt::before {
    content: "";
    position: absolute;
    top: clamp(18px, 2.5vh, 30px);
    left: clamp(40px, 6vw, 100px);
    right: clamp(40px, 6vw, 100px);
    height: 1px;
    background-color: white;
    z-index: 0;
}

.timeline-item-alt {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.timeline-year-alt {
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(20px, 2.2vw, 32px);
    color: white;
    margin-bottom: clamp(20px, 3vh, 40px);
    background-color: #000000;
    padding: 0 clamp(5px, 0.5vw, 10px);
}

.timeline-line-alt {
    display: none;
}

.timeline-project-alt {
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(14px, 1.4vw, 20px);
    color: white;
    text-align: center;
    line-height: 1.5;
}

/* Mobile alternative timeline - Redesigned */
@media (max-width: 768px) {
    .timeline-section-alt {
        padding: 40px 0;
    }

    .timeline-alt {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0px 0 60px;
        /* Left padding for line space */
        position: relative;
        gap: 0;
    }

    /* Vertical Line */
    .timeline-alt::before {
        content: "";
        display: block;
        position: absolute;
        top: 10px;
        bottom: 10px;
        left: 34px;
        /* Line position */
        width: 1px;
        height: auto;
        right: auto;
        background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 0.5) 10%,
                rgba(255, 255, 255, 0.5) 90%,
                rgba(255, 255, 255, 0) 100%);
        z-index: 0;
    }

    .timeline-item-alt {
        width: 100%;
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        position: relative;
        margin-bottom: 20px;
        /* Compact spacing */
        gap: 8px;
    }

    .timeline-item-alt:last-child {
        margin-bottom: 0;
    }

    /* Dot on the line */
    .timeline-item-alt::after {
        content: "";
        position: absolute;
        left: -29px;
        top: 7px;
        /* Adjusted alignment */
        width: 7px;
        height: 7px;
        background-color: var(--primary-orange);
        border-radius: 50%;
        z-index: 1;
        box-shadow: 0 0 0 5px #000000;
    }

    .timeline-year-alt {
        font-family: 'Alibaba PuHuiTi Regular', sans-serif;
        font-size: 14px;
        /* Unified size */
        color: white;
        margin-bottom: 0;
        margin-right: 4px;
        /* Compact spacing */
        min-width: auto;
        /* Allow natural width */
        text-align: left;
        background-color: transparent;
        padding: 0;
        line-height: 1.4;
        /* Unified line-height */
    }

    .timeline-line-alt {
        display: none;
    }

    .timeline-project-alt {
        font-family: 'Alibaba PuHuiTi Regular', sans-serif;
        /* Unified font */
        font-size: 14px;
        /* Unified size */
        text-align: left;
        color: white;
        /* Unified color */
        line-height: 1.4;
        /* Unified line-height */
        min-width: auto;
        padding-top: 0;
        /* Remove offset since fonts are same */
    }
}

/* ============================================
   Large Image Section
   ============================================ */
.project-image-section {
    width: 100%;
    overflow: hidden;
}

.project-large-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Image with text overlay */
.project-image-with-text {
    position: relative;
}

.image-text-overlay {
    position: absolute;
    top: clamp(20px, 3vh, 50px);
    left: clamp(20px, 3vw, 60px);
    z-index: 2;
    width: 70%;
}

.overlay-line1,
.overlay-line2 {
    font-family: 'Alibaba PuHuiTi Bold', 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(18px, 1.5vw + 0.5rem, 32px);
    color: #000000;
    margin: 0 0 clamp(5px, 0.5vh, 10px) 0;
    line-height: 1.2;
    /* White stroke effect */
    /* text-shadow: -0.2px -0.2px 0 #fff, 0.2px -0.2px 0 #fff, -0.2px 0.2px 0 #fff, 0.2px 0.2px 0 #fff;
    -webkit-text-stroke: 0.2px #fff; */
}

.overlay-line3 {
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(20px, 2vw + 0.5rem, 40px);
    color: #000000;
    margin: 0;
    line-height: 1.3;
    /* White stroke effect */
    /* text-shadow: -0.2px -0.2px 0 #fff, 0.2px -0.2px 0 #fff, -0.2px 0.2px 0 #fff, 0.2px 0.2px 0 #fff;
    -webkit-text-stroke: 0.2px #fff; */
}

/* Mobile text overlay adjustments */
@media (max-width: 768px) {
    .image-text-overlay {
        top: 15px;
        left: 15px;
    }

    .overlay-line1,
    .overlay-line2 {
        font-size: clamp(12px, 3vw, 16px);
    }

    .overlay-line3 {
        font-size: clamp(13px, 3.5vw, 18px);
    }
}

/* ============================================
   Project Introduction Section
   ============================================ */
.project-intro-section {
    background-color: var(--primary-orange);
    padding: clamp(40px, 8vh, 100px) 0 clamp(60px, 10vh, 150px) 0;
}

.intro-container {
    padding: 0 clamp(20px, 8vw, 160px);
}

.intro-title {
    font-family: 'Alibaba PuHuiTi Bold', 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(24px, 3vw, 60px);
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: clamp(20px, 3vh, 40px);
    line-height: 1.3;
}

.intro-content {
    font-family: 'Alibaba PuHuiTi Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(18px, 2vw + 0.5rem, 40px);
    color: white;
    line-height: 1.6;
    margin: 0;
}

/* Mobile intro adjustments */
@media (max-width: 768px) {
    .project-intro-section {
        padding: 40px 0;
    }

    .intro-title {
        font-size: clamp(20px, 4.5vw, 28px);
        margin-bottom: 20px;
    }

    .intro-content {
        font-size: clamp(16px, 4vw, 22px);
    }
}

/* Placeholder for content sections */
/* Styles will be added as modules are developed */