body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
}

.main-title {
    text-align: center;
    color: #f0f0f0;
    padding: 20px;
}

.sub-title {
    text-align: center;
    color: #aaa;
    font-style: italic;
    padding-bottom: 20px;
}

#project-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    perspective: 1500px;
}

.project-card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    transition: transform 0.5s ease-in-out; /* 添加过渡效果 */
    width: 95%;
    max-width: 600px;
    margin: 20px;
    border-radius: 5px;
    background: linear-gradient(to right, #1f1f1f, #2b2b2b);
    color: #f0f0f0;
    text-decoration: none;
    transform: scale(1); /* 初始状态，无旋转，无缩放 */
    transform-style: preserve-3d;
}

.project-card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.23);
    transform: scale(1.05); /* 鼠标悬停时，卡片放大5% */
}

.project-card:active {
    transform: scale(1); /* 鼠标按下时，卡片恢复原始大小 */
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 15px;
}

.project-title {
    font-size: 20px;
    font-weight: bold;
}

.project-description {
    margin-top: 10px;
    color: #aaa;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center; 
}

.project-date {
    color: #aaa;
    padding-left: 5px;
}