
/* 页面全局样式定义 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #00468C, #2E8B57);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    margin-top: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.header {
    position: relative;
    height: 400px;
    background: linear-gradient(to bottom, #003366, #006633);
    color: #fff;
    text-align: center;
    padding-top: 100px;
}

.header h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.navbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    background: linear-gradient(to bottom, #2E8B57, #00468C);
    color: #fff;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

.navbar a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.navbar a:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.content {
    margin-left: 220px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    position: relative;
}

.card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

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

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.code-block {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

@media (max-width: 768px) {
    .navbar {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: space-around;
        padding: 10px;
    }
    .content {
        margin-left: 0;
    }
    .header h1 {
        font-size: 2rem;
    }
}

