
/* 
整体样式设计：
1. 使用冷色系主色调，蓝色和紫色的渐变背景，营造科技与未来感。
2. 辅助色采用霓虹蓝和紫色，点缀区域使用亮橙色。
3. 采用Flexbox和Grid布局，确保响应式设计。
4. 各模块间留白充分，避免视觉拥挤，保持呼吸感。
5. 图片采用圆角、阴影和悬停放大效果，提升视觉美感。
6. 字体选择Roboto，确保现代简洁。
7. 所有链接添加rel="nofollow"属性，禁止使用外部链接。
8. 动画过渡自然，提升用户交互体验。
*/

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 60, 114, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    transition: background 0.5s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(42, 82, 152, 0.9);
}

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

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

/* 主容器样式 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 150px 50px 50px 50px;
}

/* 模块标题样式 */
h2, h3, h4 {
    color: #ffffff;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

/* 文章内容样式 */
article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

pre {
    background: #2a5298;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    color: #ff9800;
    font-family: 'Courier New', Courier, monospace;
}

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

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

/* 按钮样式 */
.button {
    background: #2a5298;
    color: #ffffff;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
    font-size: 16px;
}

.button:hover {
    background: #1e3c72;
    transform: translateY(-3px);
}

/* 卡片式布局样式 */
.card {
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 300px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
}

.card-front {
    background: #2a5298;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back {
    background: #1e3c72;
    color: #ffffff;
    transform: rotateY(180deg);
    padding: 20px;
}

/* 动画效果 */
@keyframes flow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.dynamic-background {
    animation: flow 10s infinite linear;
    transform: rotateY(360deg);
}

/* 数据仪表盘样式 */
.dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.chart {
    width: 45%;
    height: 300px;
    background: #1e3c72;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.chart:hover {
    transform: scale(1.05);
}

/* 代码示例区块样式 */
.code-example {
    background: #2a5298;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

.code-example code {
    color: #ff9800;
    font-family: 'Courier New', Courier, monospace;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 20px;
    }
    
    .container {
        padding: 150px 20px 20px 20px;
    }
    
    .chart {
        width: 100%;
    }
}

