
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
    color: #ffffff;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8); /* 主色调 */
    padding: 15px 30px; /* 确保内容不被遮挡 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar:hover {
    background: rgba(0, 0, 0, 1);
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #00c6ff; /* 点缀色 */
}

.navbar .navigation a {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    transition: color 0.3s ease;
    rel="nofollow";
}

.navbar .navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #00c6ff; /* 点缀色 */
    left: 50%;
    bottom: 0;
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar .navigation a:hover {
    color: #00c6ff;
}

.navbar .navigation a:hover::after {
    width: 100%;
    left: 0;
}

/* 主内容区域 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px auto; /* 顶部留有导航栏空间 */
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* 图片样式 */
.decorative-image {
    max-width: 650px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.decorative-image:hover {
    transform: scale(1.05);
}

/* 文章内容样式 */
article {
    background: rgba(255, 255, 255, 0.1); /* 主色调 */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

h2, h3, h4 {
    color: #00c6ff; /* 点缀色 */
}

pre {
    background: rgba(0, 198, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    margin: 20px 0;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #00c6ff; /* 点缀色 */
}

/* 交互效果 */
button {
    background: #00c6ff; /* 点缀色 */
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #0072ff;
}

/* 底部提示 */
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8); /* 主色调 */
    color: #ffffff;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
    }
}

