/* 全局样式和变量 */
:root {
    --mdc-theme-primary: #6200ee;
    --mdc-theme-secondary: #03dac6;
    --mdc-theme-background: #fff;
    --mdc-theme-on-primary: #fff;
    --mdc-theme-text-primary-on-background: rgba(0, 0, 0, 0.87);
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--mdc-theme-text-primary-on-background);
    background-color: #f5f5f5;
}

/* 英雄区域样式 */
.hero-container {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../image/background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: #fff;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.profile-info {
    position: relative;
    z-index: 2;
    padding: 24px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    margin-bottom: 16px;
}

.profile-name {
    margin-bottom: 8px;
}

.profile-bio {
    opacity: 0.8;
}

/* 项目卡片区域样式 */
.project-grid {
    background-color: var(--mdc-theme-background);
    padding: 32px;
    margin-top: -64px;
    border-radius: 16px;
    position: relative;
    z-index: 3;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.project-title {
    text-align: center;
    margin-bottom: 24px;
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25) !important;
    background-color: #f9f9f9;
}

.project-card .mdc-card__media {
    background-position: center;
    background-size: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.project-card .mdc-card__primary-action-content {
    padding: 12px 16px;
}

.project-card .mdc-card__actions {
    margin-top: auto;
    padding-left: 8px;
    padding-right: 8px;
}

/* 页脚样式 */
.footer {
    padding: 24px;
    margin: 32px auto;
    max-width: 1200px;
    background-color: var(--mdc-theme-background);
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* 移动端优化 */
@media (max-width: 600px) {
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    .profile-name {
        font-size: 2rem;
    }
    .project-grid {
        margin-top: -32px;
        padding: 16px;
        max-width: 100%;
    }
    .footer {
        margin: 16px;
        border-radius: 8px;
    }
}