/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 导航栏 */
.navbar {
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    padding: 15px 30px;
    margin: 10px auto;
    border: 3px solid #333;
    border-radius: 30px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    background-color: white;
    max-width: fit-content;
    transition: all 0.3s ease;
}

.nav-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    margin: 0 20px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:active {
    color: #ff85a2;
}

/* 首屏 */
.hero {
    padding: 120px 0 80px;
    background-color: transparent;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-text {
    flex: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-text h2 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-text h3 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-text h4 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
}

.nav-link:active {
    background-color: #ff85a2;
    color: white;
    border-color: #ff85a2;
}

.highlight-pink {
    background-color: #ff85a2;
    color: white;
    padding: 5px 15px;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.highlight-pink:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 20px rgba(255, 133, 162, 0.4);
}

.highlight-blue {
    background-color: #6b90c7;
    color: white;
    padding: 5px 15px;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.highlight-blue:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 8px 20px rgba(107, 144, 199, 0.4);
}

.btn-primary {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.avatar-frame {
    width: 300px;
    height: 300px;
    border-radius: 16px;
    border: 8px solid #333;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f5f5f5;
    padding: 10px;
}

.avatar-frame:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.avatar-frame:hover img {
    transform: scale(1.02);
}

/* 通用部分样式 */
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ff85a2;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* 关于我 */
.about {
    padding: 80px 0;
    background-color: transparent;
}

.about-content {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.about-content:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.about-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* 项目经历 */
.projects {
    padding: 80px 0;
    background-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.project-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 作品集 */
.portfolio {
    padding: 80px 0;
    background-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.portfolio-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.portfolio-content {
    margin-bottom: 20px;
}

.portfolio-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}

.btn-secondary {
    background-color: white;
    color: #333;
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #333;
    color: white;
}

/* 生活照片 */
.life-photos {
    padding: 60px 0;
    background-color: transparent;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.photo-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 比例 */
    overflow: hidden;
}

.photo-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-wrapper:hover img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 15px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-wrapper:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay span {
    font-size: 16px;
    font-weight: 500;
}

/* 联系方式 */
.contact {
    padding: 80px 0;
    background-color: transparent;
}

.contact-content {
    text-align: center;
    background-color: #f8f8f8;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-content:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.contact-content p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #666;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-text h2 {
        font-size: 36px;
    }
    
    .hero-text h3 {
        font-size: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-link {
        margin: 0 10px;
        font-size: 14px;
    }
    
    .avatar-frame {
        width: 250px;
        height: 250px;
    }
    
    .projects-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .about-content,
    .contact-content {
        padding: 25px;
    }
    
    .section-title {
        font-size: 28px;
    }
}