
/* 
整体页面样式设计
主色调采用深蓝色，体现科技感与稳定性
辅色使用亮橙色，突出重点信息与互动元素
点缀色选用白色与灰色，营造简洁专业的氛围
使用柔和的线性渐变和阴影效果，增加层次感和立体感
页面布局采用Flexbox和Grid，确保响应式设计，适配各类屏幕
导航栏固定在顶部，使用阴影分隔内容
按钮和链接添加悬停动画，增强用户互动体验
图片采用圆角和悬浮效果，统一视觉风格
代码块使用特定样式，区分正文内容，便于阅读
整体留白合理，避免视觉疲劳，提升内容可读性
*/

/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置字体 */
body {
    font-family: 'Lato', sans-serif;
    color: #333;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    line-height: 1.6;
    padding-top: 60px; /* 为固定导航预留空间 */
}

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

.navbar a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

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

/* 主标题样式 */
.header {
    text-align: center;
    padding: 50px 20px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    color: #FFA500;
    margin-bottom: 20px;
}

.header p {
    font-size: 1.2rem;
    color: #fff;
}

/* 文章内容样式 */
article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

article h2, article h3, article h4 {
    font-family: 'Roboto', sans-serif;
    color: #FFA500;
    margin-bottom: 15px;
}

article p {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
}

article pre {
    background: #002B5B;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

table th {
    background-color: #005FB4;
    color: #fff;
    padding: 10px;
    text-align: left;
    font-size: 1rem;
}

table td {
    background-color: rgba(0, 43, 91, 0.8);
    color: #fff;
    padding: 10px;
    border-bottom: 1px solid #005FB4;
}

button, .button {
    background-color: #FFA500;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    font-size: 1rem;
}

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

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

img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* 强调文本 */
span {
    color: #FFA500;
    font-weight: bold;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    article {
        padding: 15px;
    }
}

@media (max-width: 500px) {
    .header p {
        font-size: 1rem;
    }
    
    article h2 {
        font-size: 1.5rem;
    }
    
    table th, table td {
        font-size: 0.9rem;
    }
    
    .navbar a {
        margin: 5px 0;
    }
}

/* 提示信息样式 */
.prominent-message {
    text-align: center;
    font-size: 1.5rem;
    color: #FFA500;
    margin: 20px 0;
}

/* 代码块样式 */
.code-example {
    background: #002B5B;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-family: 'Courier New', Courier, monospace;
    color: #FFA500;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 互动推荐样式 */
.recommendation {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.recommendation:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-10px);
}

