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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f0ff;
    color: #333;
    line-height: 1.6;
}

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

/* 头部样式 */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ffc1e3, #b5d8ff);
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    position: relative;
    z-index: 2;
}

.avatar-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px dashed #ff6b6b;
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.hobby {
    font-size: 16px;
    color: #ff6b6b;
    font-weight: bold;
}

/* 通用section样式 */
section {
    margin-bottom: 50px;
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.decorator {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
    margin: 0 auto;
}

/* 关于我样式 */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

/* 技能样式 */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-item {
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid #e0e0e0;
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: #ff6b6b;
}

.skill-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.skill-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.skill-item p {
    color: #666;
    font-size: 14px;
}

/* 项目样式 */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-item {
    background-color: #f0f8ff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid #b5d8ff;
}

.project-item:hover {
    transform: translateY(-5px);
    border-color: #4ecdc4;
}

.project-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.project-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.project-item p {
    color: #666;
    font-size: 14px;
}

/* 联系我样式 */
.contact-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    color: #ff6b6b;
}

.contact-icon {
    font-size: 36px;
    margin-bottom: 10px;
    background-color: #f8f0ff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
}

.contact-item span {
    font-size: 16px;
    font-weight: bold;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 30px;
    background-color: #f8f0ff;
    border-radius: 20px;
    margin-top: 50px;
    color: #666;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 30px 15px;
    }

    .header h1 {
        font-size: 28px;
    }

    section {
        padding: 20px;
    }

    .skills-container,
    .projects-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        gap: 20px;
    }
}

/* 可爱的动画效果 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.avatar {
    animation: float 3s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b6b, #4ecdc4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff8e8e, #66d9ce);
}