@import url('common.css');

/* ========== 静态视图：无限符号 ========== */
.static-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    pointer-events: none;
    transition: all 1.2s ease;
}

/* 背景文字"有限" - 永远保持 */
.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;
}

/* 无限符号 - 始终蓝色发光且非常模糊 */
.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;
}

/* 无限符号变成底图状态 */
.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);
    }
}

/* ========== 主要内容区域 ========== */
.main-container {
    display: flex;
    min-height: 100vh;
    background: transparent;
    padding-top: 80px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.main-container.visible {
    opacity: 1;
}

/* ========== 左侧项目区域 ========== */
.projects-section {
    width: 100%;
    z-index: 100;
}

/* 项目包装器 */
.project-wrapper {
    position: relative;
    margin-bottom: 0.8%;
}

/* 项目标题 */
.project-wrapper h3 {
    position: absolute;
    left: 20px;
    z-index: 10;
    font-size: var(--font-6xl);
    color: var(--primary-green);
    font-weight: var(--font-light);
    width: auto;
    text-align: left;
    line-height: 1;
    margin: 0;
    padding: 0;
    transform: translateY(0em);
    pointer-events: none;
        /* 直接使用你的颜色变量 */
    /*text-shadow:*/
    /*    0 1px 5px var(--primary-white),*/
    /*    0 1px 1px var(--primary-white);*/
}

/* 项目卡片 */
.project-item {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-left: 20px solid var(--primary-green);
}

.project-item:hover {
    transform: scale(1.02);
}

.project-item img,
.project-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-overlay);
    color: var(--text-white);
    padding: 20px;
}

.project-overlay h2 {
    font-size: var(--font-6xl);
    margin-bottom: 60%;
    font-weight: var(--font-light);
}

.project-overlay p {
    font-size: var(--font-lg);
    opacity: 0.9;
    color: var(--primary-green);
    text-align: right;
    width: 100%;
    line-height: var(--line-height-relaxed);
}

/* ========== 右侧信息区域 ========== */
.sidebar {
    width: 15%;
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    overflow-y: auto;
    border-radius: 0;
    margin-right: 20px;
    z-index: 100;
}

.sidebar h3 {
    font-size: var(--font-3xl);
    margin-bottom: 20px;
    color: var(--text-white);
    font-weight: var(--font-semibold);
    background: var(--primary-red);
    width: 100%;
}

/* 信息卡片 */
.info-card {
    background: var(--primary-red);
    color: var(--text-light);
    padding: 5%;
    margin-bottom: 15px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    height: auto; /* 👈 改为 auto，自适应内容高度 */
    min-height: 120px; /* 👈 可选：设置最小高度，保持视觉统一 */
    display: block; /* 👈 添加这一行！让 <a> 标签表现为块级元素 */
    text-decoration: none; /* 👈 顺便去掉下划线 */
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.info-type {
    font-size: var(--font-xs);
    font-weight: var(--font-bold);
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.info-card h4 {
    font-size: var(--font-md);
    margin-bottom: 8px;
    font-weight: var(--font-semibold);
}

.info-date {
    font-size: var(--font-sm);
    opacity: 0.8;
    margin-bottom: 8px;
}

.info-card p {
    font-size: var(--font-base);
    line-height: var(--line-height-normal);
    opacity: 0.95;
}

/* 滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .background-text {
        font-size: 50vw;
    }

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

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

    .main-container {
        flex-direction: column;
    }

    .projects-section {
        width: 100%;
    }

    .project-wrapper h3 {
        font-size: var(--font-4xl);
        top: 15px;
        left: 30px;
    }

    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        padding: 20px;
        margin-right: 0;
    }

    .project-overlay h2 {
        font-size: var(--font-5xl);
    }
}
