/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

a {
    text-decoration: none;
    color: #0078d7;
}

a:hover {
    text-decoration: underline;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 博客文章样式 */
.blog-posts {
    padding: 20px;
}

.blog-post {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-post h2 {
    margin-bottom: 10px;
    color: #333;
}

.post-meta {
    font-size: 0.8em;
    color: #777;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

/* 关于我页面样式 */
.about-content {
    padding: 20px;
    text-align: center;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #0078d7;
}

.skills {
    margin-top: 30px;
    text-align: left;
}

.skills h3 {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.skills ul {
    list-style-position: inside;
    margin-left: 20px;
}

.skills li {
    margin-bottom: 5px;
}

/* 项目页面样式 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.project-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.project-card h3 {
    padding: 15px 15px 5px;
}

.project-card p {
    padding: 0 15px 15px;
    color: #666;
    font-size: 0.9em;
}

.project-link {
    display: block;
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
    font-weight: bold;
}

/* 联系表单样式 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.submit-btn {
    background: #0078d7;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #005fa3;
}

.social-links {
    margin-top: 30px;
    text-align: center;
}

.social-link {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.5em;
    color: #333;
    transition: color 0.3s;
}

.social-link:hover {
    color: #0078d7;
}