
/* 全局样式设置，包括字体、背景和基本布局 */
/* 设置网页的基础字体和背景渐变 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用无衬线字体，提高可读性 */
    background: linear-gradient(135deg, #2c3e50, #bdc3c7); /* 使用线性渐变背景，营造现代感 */
    color: #2c3e50; /* 主文字颜色 */
}

/* 固定导航栏的样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.9); /* 半透明背景，增强层次感 */
    color: #ecf0f1;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 轻微阴影，增加深度 */
    z-index: 1000; /* 确保导航栏在最上层 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 导航栏中的品牌标识样式 */
.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 1px;
}

/* 导航菜单列表样式 */
.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

/* 导航菜单项样式 */
.navbar ul li {
    margin-left: 20px;
}

/* 导航链接样式，包括鼠标悬停效果 */
.navbar ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* 鼠标悬停时导航链接的样式变化 */
.navbar ul li a:hover {
    color: #e67e22; /* 点缀色变化，吸引注意 */
    transform: scale(1.05); /* 轻微放大，增强互动感 */
}

/* 主容器使用Flexbox布局，实现响应式分屏 */
.container {
    display: flex;
    flex-direction: column;
    padding-top: 70px; /* 为固定导航栏预留空间 */
    max-width: 1200px;
    margin: 0 auto; /* 居中对齐 */
    padding: 20px;
}

/* 分屏布局的样式 */
.split-screen {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 40px;
    position: relative;
}

/* 单个屏幕面的样式 */
.split-screen .panel {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

/* 左侧面板的背景和文字颜色 */
.split-screen .left-panel {
    background-color: #34495e;
    color: #ecf0f1;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
    transition: transform 0.3s ease;
}

/* 右侧面板的背景和文字颜色 */
.split-screen .right-panel {
    background-color: #ecf0f1;
    color: #2c3e50;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* 鼠标悬停时分屏面板的样式变化 */
.split-screen .panel:hover {
    transform: translateY(-10px); /* 轻微上移，增加动感 */
}

/* 卡片布局的容器样式 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 自适应网格布局 */
    gap: 20px; /* 网格间隙 */
    padding: 20px;
}

/* 单个卡片的样式 */
.grid-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 细腻的阴影效果 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 鼠标悬停时卡片的样式变化 */
.grid-item:hover {
    transform: scale(1.05); /* 轻微放大 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* 增强阴影效果 */
}

/* 文章内容的样式 */
article {
    line-height: 1.6; /* 提高行间距，增强可读性 */
    color: #2c3e50;
}

/* 文章中的标题样式，根据层级进行区分 */
article h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #34495e;
    border-bottom: 2px solid #bdc3c7;
    padding-bottom: 10px;
}

article h3 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #34495e;
}

article h4 {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #34495e;
}

/* 文章段落的样式，添加适当的留白 */
article p {
    margin-bottom: 15px;
    font-size: 1em;
}

/* 代码块的样式，与正文区分开 */
article pre {
    background-color: #2c3e50; /* 深色背景 */
    color: #ecf0f1; /* 代码文字颜色 */
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto; /* 处理溢出 */
    margin-bottom: 20px;
    font-size: 0.9em;
}

/* inline code的样式 */
article code {
    background-color: #ecf0f1;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.95em;
}

/* 加载动画的样式 */
.loader {
    border: 8px solid #ecf0f1;
    border-top: 8px solid #e67e22;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
    margin: 100px auto;
}

/* 动画关键帧定义 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 分屏交汇处的光影效果 */
.split-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0), rgba(44, 62, 80, 0.5), rgba(44, 62, 80, 0));
    box-shadow: 0 0 10px rgba(44, 62, 80, 0.5);
}

/* 图像的样式，包括圆角和阴影 */
img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* 圆角效果 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 细腻的阴影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 图像悬停时的样式变化 */
img:hover {
    transform: scale(1.05); /* 轻微放大 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* 增强阴影 */
}

/* 提示信息的样式，突出显示 */
.notice {
    background-color: #e67e22;
    color: #ffffff;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    margin: 20px 0;
    font-size: 1.1em;
    font-weight: bold;
}

/* 响应式设计：针对不同屏幕宽度的调整 */
@media (max-width: 768px) {
    .split-screen {
        flex-direction: column; /* 竖向排列分屏 */
    }
    .split-screen .panel {
        margin: 10px 0; /* 上下间距 */
    }
    .navbar ul {
        flex-direction: column; /* 竖向排列导航菜单 */
        background-color: rgba(44, 62, 80, 0.95);
        position: fixed;
        top: 60px;
        right: 0;
        width: 200px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    .navbar ul.open {
        transform: translateX(0);
    }
    .navbar ul li {
        margin: 15px 0;
    }
}

/* 按钮样式，适用于页面内所有按钮 */
button {
    background-color: #e67e22;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1em;
}

/* 按钮悬停时的样式变化 */
button:hover {
    background-color: #d35400;
    transform: scale(1.05);
}

/* 折叠区域的样式 */
.collapsible {
    background-color: #ecf0f1;
    color: #2c3e50;
    cursor: pointer;
    padding: 10px 15px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1em;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    margin-bottom: 10px;
}

.collapsible:hover {
    background-color: #bdc3c7;
}

.content {
    padding: 0 15px;
    display: none;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* 样式设计中的关键部分，确保视觉吸引力与功能性 */
.key-feature {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.key-feature img {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    flex-shrink: 0;
}

.key-feature .description {
    flex: 1;
}

.key-feature .description h4 {
    margin: 0 0 10px 0;
}

.key-feature .description p {
    margin: 0;
}

/* 智能管理新篇章部分的样式 */
.intro-section {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.intro-section h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
}

/* 标记代码示例的样式 */
.code-example {
    background-color: #ecf0f1;
    padding: 20px;
    border-left: 5px solid #e67e22;
    margin: 20px 0;
    border-radius: 5px;
}

.code-example code {
    display: block;
    white-space: pre-wrap; /* 允许换行 */
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
}

/* 页脚的样式 */
footer {
    background-color: #34495e;
    color: #ecf0f1;
    text-align: center;
    padding: 20px;
    border-top: 2px solid #bdc3c7;
    margin-top: 40px;
}

/* 页脚中的链接样式 */
footer a {
    color: #e67e22;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #d35400;
}

/* 引导用户的按钮样式 */
.call-to-action {
    display: inline-block;
    background-color: #e67e22;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.call-to-action:hover {
    background-color: #d35400;
    transform: scale(1.05);
}

/* 社区与互动功能的样式 */
.community-section {
    background-color: #f1c40f;
    color: #2c3e50;
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
}

.community-section h2 {
    margin-bottom: 20px;
}

.community-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

.community-section ul li {
    margin: 0 15px;
}

/* 社区链接的样式 */
.community-section ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.community-section ul li a:hover {
    color: #e67e22;
    transform: scale(1.1);
}

/* 增强品牌形象的一致性 */
.brand-animation {
    animation: brandSpin 2s linear infinite;
}

/* 品牌动画的关键帧 */
@keyframes brandSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

