
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    color: #ffffff;
}

/* 固定导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #bdc3c7;
}

/* 主内容区样式 */
.main-content {
    padding: 100px 20px 20px 20px;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
}

/* 侧边导航样式 */
.sidebar {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.sidebar a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 文章内容样式 */
.article {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article h2, .article h3 {
    color: #ecf0f1;
}

.article p {
    line-height: 1.6;
    font-size: 16px;
}

/* 代码块样式 */
.article pre {
    background: rgba(44, 62, 80, 0.9);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.article code {
    color: #1abc9c;
    font-family: 'Courier New', Courier, monospace;
}

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

.article img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

/* 按钮样式 */
.btn {
    background: linear-gradient(45deg, #2980b9, #6dd5fa, #ffffff);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: linear-gradient(45deg, #6dd5fa, #2980b9, #ffffff);
    transform: scale(1.05);
}

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

    .navbar {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }
}

@media (max-width: 480px) {
    .article {
        padding: 15px;
    }

    .article h2 {
        font-size: 20px;
    }

    .article p {
        font-size: 14px;
    }
}

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

.article {
    animation: fadeIn 1s ease-in;
}

/* 分割线样式 */
.divider {
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(255,255,255,0));
    margin: 40px 0;
    border: none;
}

/* 标签链接添加nofollow */
a[rel="nofollow"] {
    /* no additional styles */
}

