/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    float: left;
    padding: 15px 20px;
    font-size: 24px;
    font-weight: bold;
    color: #4a90e2;
}

.nav-links {
    float: right;
    list-style: none;
    display: flex;
}

.nav-links li {
    display: inline-block;
}

.nav-links li a {
    display: block;
    padding: 20px 15px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #4a90e2;
}

.hamburger {
    display: none;
    cursor: pointer;
    float: right;
    padding: 25px 15px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

/* 英雄区域样式 */
#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://picsum.photos/seed/hero/1600/800.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: #4a90e2;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #357abd;
}

/* 功能特点区域 */
#features {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    max-width: 350px;
    margin: 0 auto;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
}

/* 笔记展示区域 */
#note-showcase {
    padding: 80px 20px;
    background-color: white;
}

.note-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.note-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.note-card:hover {
    transform: translateY(-10px);
}

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

.note-info {
    padding: 25px;
}

.note-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.note-info p {
    color: #666;
    margin-bottom: 20px;
}

.view-btn {
    background-color: #4a90e2;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-btn:hover {
    background-color: #357abd;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #4a90e2;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5rem;
    color: white;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #4a90e2;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
}

.beian-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.beian-info span {
    margin-left: 10px;
    font-size: 0.9rem;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
    }

    #hero {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .feature-card {
        max-width: 100%;
    }

    .note-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }
}