
/* 
整体页面样式设计
此样式表采用CSS3高级特性，如线性渐变背景、盒阴影、文本阴影、关键帧动画和平滑过渡效果，旨在营造未来感与高级质感相融合的视觉效果。使用Flexbox和Grid布局，确保页面在各种屏幕尺寸下的响应式设计，避免任何横向滚动条的出现。

1. 基本样式
设置全局字体、颜色和背景。采用线性渐变作为背景，主色调为深蓝到浅蓝，辅以灰色和亮色点缀，符合黄金比例配色法则。

2. 导航栏
固定在页面顶部，使用Flexbox实现水平排列。背景半透明以增强层次感，悬停链接时改变颜色，增加互动性。

3. 面包屑导航
位于内容区域上方，采用较小字体和浅色，帮助用户定位当前页面。

4. 主要内容布局
使用Grid布局实现卡片式网格设计，卡片之间留有适当的间隙。卡片悬停时轻微放大并添加盒阴影，增强立体感。

5. 文章内容
标题和正文使用不同的字体大小和粗细，通过文本阴影和颜色区分层次。代码块采用专门的样式，与正文内容区分开来，便于阅读和理解。

6. 图片样式
所有装饰性图片设置最大宽度650px，添加圆角、阴影和悬停效果，提升美观度和视觉层次。

7. 底部区域
使用Flexbox实现多语言切换按钮和资源链接的横向排列。按钮和链接悬停时颜色变化，增强互动体验。

8. 响应式设计
通过媒体查询调整Grid列数和导航栏布局，确保在移动设备上内容不拥挤，阅读体验良好。

9. 交互动效
使用关键帧动画实现内容的渐入效果，卡片和按钮添加过渡效果，提升页面动态感。

10. 其他细节
确保所有内部链接添加rel="nofollow"属性，并禁止文本输入框、电话号码和邮箱地址的出现，保持页面简洁和专业。

以下是详细的CSS样式代码：
*/

/* 1. 基本样式 */
body {
    background: linear-gradient(135deg, #0d47a1, #42a5f5);
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

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

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

.navbar a:hover {
    color: #42a5f5;
}

/* 3. 面包屑导航样式 */
.breadcrumb {
    margin: 80px 40px 20px;
    font-size: 14px;
    color: #cccccc;
}

.breadcrumb a {
    color: #42a5f5;
    text-decoration: none;
    margin: 0 5px;
}

.breadcrumb span {
    margin: 0 5px;
}

/* 4. 卡片容器与卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
}

.card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 5. 文章内容样式 */
h2, h3 {
    font-family: 'Helvetica', sans-serif;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

h2 {
    font-size: 32px;
    font-weight: 700;
}

h3 {
    font-size: 24px;
    font-weight: 600;
}

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

pre {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #42a5f5;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

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

img.decorative:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* 7. 底部样式 */
.footer {
    background-color: rgba(13, 71, 161, 0.9);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.language-switcher button {
    background: none;
    border: none;
    color: #42a5f5;
    margin: 0 5px;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
}

.language-switcher button:hover {
    color: #1e88e5;
}

.resource-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.resource-links a:hover {
    color: #42a5f5;
}

/* 8. 响应式设计 */
@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .breadcrumb {
        margin: 100px 20px 10px;
    }
}

/* 9. 交互动效 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.card:nth-child(odd) {
    animation-delay: 0.2s;
}

.card:nth-child(even) {
    animation-delay: 0.4s;
}

/* 10. 额外细节 */
.highlight {
    background: rgba(66, 165, 245, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
}

.collapsible {
    background-color: rgba(66, 165, 245, 0.1);
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    margin: 10px 0;
}

.collapsible:hover {
    background-color: rgba(66, 165, 245, 0.2);
}

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

.content.show {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

