
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #2c3e50 70%, #95a5a6 25%, #e67e22 5%);
    color: #2c3e50;
    line-height: 1.6;
}

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

.navbar ul {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    margin: 0;
    list-style: none;
}

.navbar li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar li a:hover {
    color: #e67e22;
}

/* 主要容器样式 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 80px 20px 20px; /* 考虑导航栏的高度 */
    max-width: 1920px;
    margin: 0 auto;
}

/* 文章样式 */
article {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

article h2, article h3, article h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

article p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* 图片样式 */
img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #2c3e50, #e67e22);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.button:hover {
    background: linear-gradient(45deg, #e67e22, #2c3e50);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 代码块样式 */
code {
    background: #bdc3c7;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

pre {
    background: #95a5a6;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #2c3e50;
}

/* 交互动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }

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

/* 提示信息样式 */
.banner {
    background: rgba(230, 126, 34, 0.8);
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 18px;
    position: relative;
    z-index: 999;
}


