
/* 基本样式重置，确保跨浏览器一致性 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置全局字体和背景 */
body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-blend-mode: overlay;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.navbar a {
    color: #00bfff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

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

.section-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #00bfff;
    text-align: center;
}

/* 文章内容样式 */
article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

article h2, article h3, article h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

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

article pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 15px;
}

article code {
    color: #00ffea;
    font-family: 'Courier New', Courier, monospace;
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.image-gallery img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 提示信息样式 */
.prompt {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2em;
    color: #ffdd57;
    margin-bottom: 40px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { background: rgba(255, 255, 255, 0.2); }
    50% { background: rgba(255, 255, 255, 0.4); }
    100% { background: rgba(255, 255, 255, 0.2); }
}

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

    .sidebar {
        position: sticky;
        top: 100px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .sidebar a {
        display: block;
        margin-bottom: 10px;
        color: #ffdd57;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .sidebar a:hover {
        color: #ffffff;
    }
}

/* 代码示例样式 */
.code-example {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-example code {
    color: #00ffea;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1e90ff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-weight: 500;
}

.button:hover {
    transform: scale(1.1);
    background-color: #00bfff;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    position: relative;
    bottom: 0;
    width: 100%;
}

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

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