
/* 重置默认样式，确保跨浏览器一致性 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.navbar-menu {width:600px;}
.navbar a { float:left;}
/* 设置全局字体和背景色，主色调为深蓝，辅色为浅灰，点缀色为绿色 */
body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #002B5B 70%, #F5F5F5 25%, #4CAF50 5%);
    color: #333333;
    line-height: 1.6;
    padding: 20px;
}

/* 设置标题字体为Roboto Bold，大小适中，增加视觉层次 */
h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #002B5B;
    margin-bottom: 15px;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.8em;
}

h3 {
    font-size: 1.6em;
}

h4 {
    font-size: 1.4em;
}

/* 段落样式，保证阅读舒适 */
p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* 链接样式，颜色与主色调一致，增加悬停效果 */
a {
    color: #00A3E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFA500;
}

/* 图片样式，圆角、阴影和悬停放大效果 */
img {
    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;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* 容器样式，使用Flexbox布局，确保最小宽度为500px */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.section {
    flex: 1 1 calc(50% - 20px);
    min-width: 500px;
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* 突出显示的提示框样式 */
.notice {
    background-color: #FFA500;
    color: #FFFFFF;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
}

/* 代码块样式，与正文区分开来 */
pre {
    background-color: #F5F5F5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 按钮样式，圆角、颜色变化和悬停动画 */
.button {
    display: inline-block;
    background-color: #00A3E0;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 25px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

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

/* 导航栏样式，固定顶部，响应式设计 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 43, 91, 0.9);
    padding: 15px 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: #001F3F;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    margin: 0 10px;
    color: #FFFFFF;
    font-size: 16px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #FFFFFF;
    margin-bottom: 4px;
    border-radius: 2px;
}

/* 响应式菜单 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .navbar-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 43, 91, 0.95);
        position: absolute;
        top: 60px;
        right: 0;
        width: 600px;
        border-radius: 0 0 0 10px;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-menu a {
        padding: 10px;
				float:left;
        border-bottom: 1px solid #FFFFFF;
    }
}

/* 按钮折叠区域样式 */
.collapsible {
    background-color: #F5F5F5;
    color: #002B5B;
    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-bottom: 10px;
}

.collapsible:hover {
    background-color: #00A3E0;
    color: #FFFFFF;
}

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

/* 实时数据展示样式 */
.real-time-data {
    font-size: 2em;
    color: #00A3E0;
    animation: fadeInOut 5s infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* 右下角悬浮按钮样式 */
.floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #FFA500;
    color: #FFFFFF;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    z-index: 1000;
}

.floating-button:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

/* 页脚背景渐变及装饰 */
.footer-background {
    background: linear-gradient(to top, #002B5B, #00A3E0);
    height: 200px;
    position: relative;
    border-radius: 10px;
    margin-top: 40px;
}

.footer-background::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    width: 50px;
    height: 50px;
    background-color: #FFA500;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.5);
}

/* 统一的按钮样式 */
.btn {
    background-color: #00A3E0;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: #FFA500;
    transform: scale(1.05);
}

/* 代码块的精美样式 */
.code-block {
    background-color: #2D2D2D;
    color: #CCCCCC;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-block code {
    color: #FFFFFF;
}

/* 页面的主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 100px auto 0 auto; /* 确保顶部导航栏不遮挡内容 */
    padding: 20px;
}

/* 图片容器样式，确保图片不小于500px */
.image-container {
    min-width: 500px;
    margin-bottom: 20px;
}

/* 平滑过渡效果 */
.transition {
    transition: all 0.3s ease;
}

/* 调整导航栏内容显示方式 */
.navbar a {
    padding: 10px 15px;
    display: block;
}

/* 适应不同设备的响应式设计 */
@media (max-width: 1200px) {
    .section {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .notice {
        font-size: 16px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    h2, h3, h4 {
        font-size: 1.2em;
    }
    
    p {
        font-size: 14px;
    }
}

/* 动画效果示例 */
@keyframes move {
    0% { transform: translateX(0); }
    50% { transform: translateX(50px); }
    100% { transform: translateX(0); }
}

.geometric-shape {
    width: 100px;
    height: 100px;
    background-color: #FFA500;
    animation: move 5s infinite;
}

