
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用未来感字体 */
    background: linear-gradient(135deg, #001f3f, #0074D9, #7FDBFF); /* 主色调的线性渐变 */
    color: #FFFFFF; /* 文字颜色为白色，确保与背景形成高对比 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    overflow-x: hidden; /* 避免水平滚动 */
}

/* 文章主体样式 */
article {
    max-width: 1200px;
    width: 90%;
    padding: 40px;
    background: rgba(0, 31, 63, 0.8); /* 半透明背景，增强高级感 */
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin: 50px 0;
}

/* 标题样式 */
h2, h3, h4 {
    color: #7FDBFF; /* 辅色高光 */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* 标题阴影效果 */
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

/* 段落样式 */
p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
}

/* 代码块样式 */
pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    color: #FFDC00; /* 点缀色，突出代码 */
    font-family: 'Courier New', Courier, monospace;
}

/* 交互效果 */
a {
    color: #B10DC9;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF851B;
}

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

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

/* 折叠内容样式 */
details {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

summary {
    cursor: pointer;
    font-weight: bold;
    color: #FF4136;
    margin-bottom: 10px;
}

details[open] summary {
    color: #2ECC40;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 31, 63, 0.9);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.navbar a {
    margin: 0 15px;
    font-size: 16px;
}

.menu-button {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar a {
        display: none;
    }
    .menu-button {
        display: block;
    }
    .navbar.active a {
        display: block;
        position: absolute;
        top: 60px;
        left: 20px;
        background: rgba(0, 31, 63, 0.9);
        padding: 10px;
        border-radius: 5px;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    article {
        padding: 30px;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    article {
        padding: 20px;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.4em;
    }
}

/* 提示信息样式 */
.reference-note {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-left: 5px solid #FFDC00;
    margin-bottom: 30px;
    border-radius: 5px;
}

/* 按钮样式 */
.button {
    background-color: #0074D9;
    border: none;
    color: #FFFFFF;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #7FDBFF;
    transform: scale(1.05);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}


