
/* 设置整体页面样式 */
body {
    margin: 0;
    padding: 0;
    /* 渐变背景营造数智时代的科技感 */
    background: linear-gradient(135deg, #032B44, #4C2D95);
    font-family: 'Open Sans', sans-serif;
    color: #FFFFFF;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    /* 玻璃拟态效果 */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* 导航链接样式 */
.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 10px;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #3AB76F;
}

/* 页面主体容器 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    padding: 100px 40px 40px 40px;
}

/* 卡片式内容展示 */
.card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

/* 按钮样式 */
.button-hover {
    background-color: #3AB76F;
    border: none;
    padding: 10px 20px;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
}

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

/* 关键帧动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计：移动设备 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .container {
        grid-template-columns: 1fr;
    }
}

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

img.decorative:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 代码块样式 */
pre code {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    display: block;
    overflow: auto;
    font-family: 'Courier New', Courier, monospace;
    margin: 20px 0;
    /* 添加标题 */
    position: relative;
}

pre code::before {
    content: "代码示例";
    position: absolute;
    top: -25px;
    left: 15px;
    background: #3AB76F;
    color: #FFFFFF;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

/* 折叠内容样式 */
.collapsible {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

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

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 5px 5px;
}

/* 视觉引导区样式 */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 800px;
}

/* 提示信息样式 */
.notice {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* 图标样式 */
.icon {
    width: 24px;
    height: 24px;
    stroke: #FFFFFF;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s ease;
}

.icon:hover {
    stroke: #3AB76F;
}

/* 信息层级分明 */
h2, h3, h4 {
    color: #FFFFFF;
    margin-top: 20px;
}

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

/* 内部链接样式 */
a.internal-link {
    color: #3AB76F;
    text-decoration: none;
}

a.internal-link:hover {
    text-decoration: underline;
}

