@import url('common.css');

/* ========== 主内容包裹层 ========== */
.main-content-wrapper {
    position: relative;
    min-height: 100vh;
}

/* ========== 静态视图 - 固定背景 ========== */
.static-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

/* 背景文字"有限" */
.background-text {
    position: absolute;
    font-size: 40vw;
    font-weight: var(--font-bold);
    color: rgba(200, 200, 200, 0.08);
    user-select: none;
    pointer-events: none;
    letter-spacing: 0.1em;
    z-index: 1;
}

/* 无限符号 - 蓝色发光 ✅ */
.infinity-symbol {
    font-size: 25vw;
    color: rgba(22, 0, 192, 0.5); /* ✅ 蓝色 */
    font-weight: var(--font-light);
    filter: blur(8px);
    text-shadow:
        0 0 40px rgba(22, 0, 192, 0.9),
        0 0 80px rgba(22, 0, 192, 0.7),
        0 0 120px rgba(22, 0, 192, 0.6),
        0 0 160px rgba(22, 0, 192, 0.5),
        0 0 200px rgba(22, 0, 192, 0.4),
        0 0 240px rgba(22, 0, 192, 0.3);
    animation: glowBlue 2.5s ease-in-out infinite alternate; /* ✅ 蓝色动画 */
    user-select: none;
    pointer-events: none;
    transition: all 1.2s ease;
    z-index: 2;
}

/* 无限符号变成底图状态 - 使用更亮的蓝色 ✅ */
.static-view.faded .infinity-symbol {
    font-size: 60vw;
    color: rgba(100, 120, 255, 0.15); /* ✅ 更亮的蓝色 */
    filter: blur(12px);
    text-shadow:
        0 0 30px rgba(100, 120, 255, 0.2),
        0 0 60px rgba(100, 120, 255, 0.16),
        0 0 90px rgba(100, 120, 255, 0.13),
        0 0 120px rgba(100, 120, 255, 0.1),
        0 0 150px rgba(100, 120, 255, 0.08),
        0 0 180px rgba(100, 120, 255, 0.06);
    animation: glowBlueFaded 2.5s ease-in-out infinite alternate; /* ✅ 淡蓝色动画 */
}

/* 蓝色发光动画 - 正常状态 ✅ */
@keyframes glowBlue {
    from {
        text-shadow:
            0 0 40px rgba(22, 0, 192, 0.9),
            0 0 80px rgba(22, 0, 192, 0.7),
            0 0 120px rgba(22, 0, 192, 0.6),
            0 0 160px rgba(22, 0, 192, 0.5),
            0 0 200px rgba(22, 0, 192, 0.4),
            0 0 240px rgba(22, 0, 192, 0.3);
    }
    to {
        text-shadow:
            0 0 50px rgba(22, 0, 192, 1),
            0 0 100px rgba(22, 0, 192, 0.8),
            0 0 150px rgba(22, 0, 192, 0.7),
            0 0 200px rgba(22, 0, 192, 0.6),
            0 0 250px rgba(22, 0, 192, 0.5),
            0 0 300px rgba(22, 0, 192, 0.4);
    }
}

/* 蓝色发光动画 - 底图状态 ✅ */
@keyframes glowBlueFaded {
    from {
        text-shadow:
            0 0 30px rgba(100, 120, 255, 0.2),
            0 0 60px rgba(100, 120, 255, 0.16),
            0 0 90px rgba(100, 120, 255, 0.13),
            0 0 120px rgba(100, 120, 255, 0.1),
            0 0 150px rgba(100, 120, 255, 0.08),
            0 0 180px rgba(100, 120, 255, 0.06);
    }
    to {
        text-shadow:
            0 0 35px rgba(100, 120, 255, 0.25),
            0 0 70px rgba(100, 120, 255, 0.2),
            0 0 105px rgba(100, 120, 255, 0.16),
            0 0 140px rgba(100, 120, 255, 0.13),
            0 0 175px rgba(100, 120, 255, 0.1),
            0 0 210px rgba(100, 120, 255, 0.08);
    }
}

/* ========== 标语文字 - 固定背景 ========== */
.tagline-container {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.tagline-chinese,
.tagline-english {
    width: 100%;
    color: var(--primary-green);
    font-weight: var(--font-semibold);
    letter-spacing: 0.5em;
    text-align: justify;
    text-align-last: justify;
    line-height: 1.8;
}

.tagline-chinese {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.tagline-english {
    font-size: 1rem;
    word-spacing: 0.3em;
}

/* ========== 前景项目列表 ========== */
.projects-list-overlay {
    position: relative;
    min-height: 100vh;
    padding: 200px 5% 100px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.projects-list-overlay.visible {
    opacity: 1;
}

.projects-list-container {
    max-width: 1400px;
    margin: 0 auto;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px 0;
    border-bottom: 10px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-link:hover {
    padding-left: 20px;
    border-bottom-color: var(--primary-green); /* ✅ 改为蓝色 */
}

/* 项目文本内容区 */
.project-text-content {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 30px;
}

.project-number {
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-character;
    letter-spacing: -0.02em;
    word-spacing: -0.1em;
    font-weight: var(--font-light);
    color: var(--text-secondary);
    transition: color 0.4s ease;
    min-width: 60px;
    white-space: nowrap;
}

.project-title {
    flex: 1;
    font-size: clamp(2.5rem, 6vw, 3rem);
    font-weight: var(--font-light);
    color: var(--primary-black);
    transition: color 0.4s ease;
    margin: 0;
    line-height: 1.1;
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-character;
    letter-spacing: -0.02em;
    word-spacing: -0.1em;
    word-break: keep-all;
}

/* 项目预览图 */
.project-preview {
    width: 20%;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 1;
    cursor: pointer;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease-out;
    border-radius: 0px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hover时放大效果 */
.project-preview:hover {
    z-index: 1000;
    overflow: visible;
}

.project-preview:hover img {
    transform: scale(2.5);
    transform-origin: right center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 父容器设置颜色 */
.project-link:hover .project-text-content {
    color: var(--primary-green);
    font-weight:var(--font-black);
}

/* 子元素继承父容器颜色 */
.project-number,
.project-title {
    color: inherit; /* ✅ 继承父元素颜色 */
    /*font-weight: inherit; !* ✅ 继承父元素颜色 *!*/
}

/* ========== Footer 样式 ========== */
#footer-placeholder {
    position: relative;
    z-index: 200;
    background: var(--bg-white);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .projects-list-container {
        padding-right: 0;
    }

    .project-link {
        flex-direction: column;
        align-items: stretch;
    }

    .project-text-content {
        width: 100%;
    }

    .project-preview {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .background-text {
        font-size: 50vw;
    }

    .infinity-symbol {
        font-size: 35vw;
    }

    .static-view.faded .infinity-symbol {
        font-size: 70vw;
    }

    .tagline-container {
        top: 90px;
        padding: 0 15px;
    }

    .tagline-chinese {
        font-size: 1rem;
    }

    .tagline-english {
        font-size: 0.9rem;
    }

    .projects-list-overlay {
        padding: 180px 5% 80px;
    }

    .project-link {
        gap: 20px;
        padding: 30px 0;
    }

    .project-text-content {
        flex-direction: column;
        gap: 10px;
    }

    .project-number {
        font-size: var(--font-lg);
    }

    .project-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .project-preview {
        width: 100%;
        max-width: none;
    }
}
