/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #c41230;
}

/* 主要内容样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 3rem 0;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.intro {
    text-align: center;
    margin-top: 3rem;
}

.feature-images {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-images img {
    width: 400px;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #333;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .feature-images {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-images img {
        width: 100%;
        max-width: 400px;
    }
} 

/* 在现有样式基础上添加关于页面的样式 */

.about {
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.about-content {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.profile-img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: #c41230;
    margin: 1.5rem 0 1rem;
}

.education {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.edu-img {
    width: 200px;
    height: 150px;
    border-radius: 8px;
}

.personality {
    list-style: none;
    padding-left: 1rem;
}

.personality li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.personality li::before {
    content: "•";
    color: #c41230;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-img {
        width: 100%;
        max-width: 300px;
    }
    
    .education {
        flex-direction: column;
        text-align: center;
    }
} 

/* 在现有样式基础上添加技能页面的样式 */

.skills {
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.skills h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.skill-category {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.skill-category h2 {
    color: #c41230;
    margin-bottom: 1.5rem;
}

.skill-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-name {
    min-width: 120px;
    font-weight: bold;
}

.skill-bar {
    flex: 1;
    height: 20px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: #c41230;
    border-radius: 10px;
    color: #fff;
    text-align: right;
    padding-right: 10px;
    font-size: 0.8rem;
    line-height: 20px;
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .skill-name {
        margin-bottom: 0.5rem;
    }
} 

/* 在现有样式基础上添加工作经历页面的样式 */

.experience {
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.experience h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #c41230;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #c41230;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.timeline-content {
    width: calc(50% - 30px);
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.company-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.timeline-content h2 {
    color: #c41230;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: #666;
    margin-bottom: 1.5rem;
}

.timeline-content h4 {
    color: #333;
    margin: 1rem 0;
}

.responsibilities ul,
.achievements ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 0;
    }
    
    .timeline-date {
        left: 0;
        transform: translateX(0);
    }
    
    .timeline-content {
        width: calc(100% - 30px);
        margin-left: 30px !important;
    }
} 

/* 在现有样式基础上添加兴趣爱好页面的样式 */

.hobbies {
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hobbies h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.hobby-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.hobby-item:hover {
    transform: translateY(-5px);
}

.hobby-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.hobby-item h2 {
    color: #c41230;
    margin-bottom: 1rem;
}

.hobby-item p {
    color: #666;
    margin-bottom: 1.5rem;
}

.hobby-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hobby-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.hobby-gallery img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hobby-grid {
        grid-template-columns: 1fr;
    }
} 

/* 在现有样式基础上添加联系方式页面的样式 */

.contact {
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 1rem;
}

.contact-info {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 2rem;
}

.contact-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h3 {
    color: #c41230;
    margin-bottom: 1rem;
}

.qr-code {
    width: 150px;
    height: 150px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.1);
}

.contact-form {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 2rem;
}

.contact-form h2 {
    color: #c41230;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #c41230;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #a30f28;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
} 