* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-item {
    /* 可以添加一些项目特定的样式 */
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.nav-link.router-link-active {
    /* Vue Router 的默认激活类名 */
    background-color: #3498db;
    color: white;
}

/* 主内容区域 */
.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 页面标题 */
.page-title {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    display: inline-block;
    color: #2c3e50;
}

/* 模块样式 */
.module {
    background-color: white;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.module h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.btn:hover {
    background-color: #2980b9;
}

/* 首页特定样式 */
.hero-section {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 博客文章卡片 */
.blog-card {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.blog-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.blog-image {
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-content {
    flex: 1;
}

.blog-content h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #2c3e50;
}

.blog-content h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.blog-content h3 a:hover {
    color: #3498db;
}

.blog-meta {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.blog-content p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 20px;
}

.blog-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 笔记卡片 */
.notes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.note-card {
    background-color: #f1f8ff;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.note-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.note-card p {
    font-size: 0.95rem;
    color: #7f8c8d;
}

/* 关于页面内容 */
.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 25px;
}

.contact-info {
    margin-top: 30px;
}

.contact-info h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.contact-info ul {
    list-style: none;
    padding-left: 0;
}

.contact-info li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
    margin-left: 10px;
}

.contact-info a:hover {
    text-decoration: underline;
}

.skills {
    margin-top: 30px;
}

.skills h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-item {
    background-color: #ecf0f1;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 博客页面特定 */
.search-bar {
    margin-bottom: 25px;
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-bar button {
    padding: 12px 20px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #1a252f;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }

    .nav-menu {
        margin-top: 0;
        width: 100%;
        justify-content: center;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-image {
        width: 100%;
        height: 220px;
    }

    .notes-container {
        grid-template-columns: 1fr;
    }

    .main-content {
        margin: 20px auto;
    }

    .module {
        padding: 20px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }
}
