
/* 
    整体页面样式设置
    使用现代CSS3技术，确保页面具有未来感与高级质感。应用线性渐变、阴影效果、响应式布局等，提升视觉层次与用户体验。
*/

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(-45deg, #1E3A8A, #10B981, #F97316, #1E3A8A);
    background-size: 400% 400%;
    animation: backgroundMove 15s ease infinite;
    color: #ffffff;
}

/* 关键帧动画：背景缓慢移动 */
@keyframes backgroundMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器布局 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

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

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar a {
    color: #F97316;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #10B981;
}

/* 面包屑导航样式 */
.breadcrumb {
    display: flex;
    list-style: none;
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumb li + li:before {
    content: ">";
    padding: 0 8px;
    color: #10B981;
}

.breadcrumb a {
    color: #F97316;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

article h2, article h3, article h4 {
    color: #ffffff;
}

article p {
    font-size: 16px;
    line-height: 1.6;
    color: #f0f0f0;
}

article pre {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin: 10px 0;
}

article code {
    color: #F97316;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

/* 卡片式布局 */
.card {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

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

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

/* 按钮样式 */
.button {
    background: #1E3A8A;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.button:hover {
    background: linear-gradient(45deg, #F97316, #10B981);
    transform: scale(1.05);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        padding: 40px 0;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    article p {
        font-size: 14px;
    }

    .button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* 代码块样式 */
.code-block {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.code-block code {
    color: #10B981;
    font-family: 'Courier New', Courier, monospace;
}

/* 折叠区域样式 */
.collapsible {
    background-color: rgba(30, 58, 138, 0.8);
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.collapsible:hover {
    background-color: #10B981;
}

.content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 5px 5px;
}

.content p {
    margin: 10px 0;
}

/* 提示信息样式 */
.notice {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-left: 5px solid #F97316;
    margin-bottom: 20px;
    border-radius: 5px;
}

.notice p {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
}

