
/* 全局样式设置，包括字体、背景和基本布局 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用Roboto无衬线字体，确保清晰易读 */
    font-size: 16px; /* 正文字号设为16px，符合阅读习惯 */
    color: #FFFFFF; /* 文字颜色使用白色，确保在深色背景上的可读性 */
    background: linear-gradient(to bottom, #1E2B48, #E6E6EA); /* 背景采用从深蓝到银灰的渐变，增加层次感 */
}

/* 固定导航栏样式 */
.navbar {
    position: fixed; /* 固定定位，始终显示在顶部 */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 43, 72, 0.95); /* 半透明深蓝色背景，增加专业感 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000; /* 确保导航栏在最上层 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 轻微阴影，增加立体感 */
}

/* 导航栏中的Logo样式 */
.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFC700; /* 亮黄色用于品牌Logo，吸引注意 */
    text-decoration: none;
}

/* 导航栏中的导航链接样式 */
.navbar .nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #3FC28C; /* 悬停时链接颜色变为亮绿色，增强互动性 */
}

/* 主内容区的网格布局 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* 左中右三栏布局，黄金比例分配 */
    gap: 20px;
    padding: 100px 30px 30px; /* 顶部预留导航栏空间 */
}

/* 左侧仪表盘样式 */
.sidebar-left {
    background-color: rgba(30, 43, 72, 0.8); /* 半透明深蓝色背景 */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 仪表盘中的图表样式 */
.dashboard-chart {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1E2B48, #3FC28C); /* 渐变色背景，增加视觉效果 */
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(255, 199, 0, 0.3); /* 内部阴影，营造深度感 */
    transition: transform 0.3s ease;
}

.dashboard-chart:hover {
    transform: scale(1.05); /* 鼠标悬停时放大，增强互动性 */
}

/* 中部内容区样式 */
.content-center {
    background-color: rgba(30, 43, 72, 0.85);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 文章标题样式 */
.content-center h2 {
    font-size: 1.8em;
    color: #FFC700; /* 亮黄色突出标题 */
    margin-bottom: 10px;
    position: relative;
}

.content-center h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #3FC28C; /* 亮绿色下划线，增加层次感 */
    bottom: -5px;
    left: 0;
}

/* 文章段落样式 */
.content-center p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #E6E6EA; /* 淡银灰色文字，柔和视觉效果 */
}

/* 代码块样式 */
.content-center pre {
    background-color: #2C3E50; /* 深色背景，突出代码内容 */
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.content-center code {
    color: #FFC700; /* 亮黄色代码文字，易于区分 */
    font-family: 'Courier New', Courier, monospace;
}

/* 右侧社交区样式 */
.sidebar-right {
    background-color: rgba(30, 43, 72, 0.8);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 社交链接样式 */
.sidebar-right .social-links a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.sidebar-right .social-links a:hover {
    color: #3FC28C; /* 悬停时颜色变为亮绿色 */
    transform: translateX(5px); /* 悬停时向右移动，增强动态感 */
}

/* 底部版权信息样式 */
.footer {
    background-color: rgba(30, 43, 72, 0.95);
    color: #E6E6EA;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* 图片装饰样式，圆角、阴影和悬浮效果 */
.decorative-image {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.decorative-image:hover {
    transform: scale(1.05); /* 悬停时放大 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* 增强阴影效果 */
}

/* 按钮样式，带有悬停动画 */
.button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #3FC28C;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #FFC700; /* 悬停时变为亮黄色 */
    transform: translateY(-3px); /* 悬停时略微上移 */
}

/* 信息提示框样式 */
.info-box {
    background-color: rgba(60, 194, 140, 0.9); /* 半透明亮绿色背景 */
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    transition: background-color 0.3s ease;
}

.info-box:hover {
    background-color: rgba(255, 199, 0, 0.9); /* 悬停时变为亮黄色 */
}

/* 链接样式，确保所有外部链接添加rel="nofollow" */
a[rel="nofollow"] {
    color: #3FC28C;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a[rel="nofollow"]:hover {
    color: #FFC700;
}

/* 响应式设计，适配不同屏幕尺寸 */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        display: none; /* 在小屏幕上隐藏导航链接，可通过JavaScript添加交互 */
    }
    .main-content {
        padding: 100px 15px 15px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px; /* 更小屏幕上的字体调整 */
    }
    .navbar .logo {
        font-size: 1.2em;
    }
    .content-center h2 {
        font-size: 1.5em;
    }
}

