
/* 
整体页面样式设定
采用拟物化设计与灵感绽放元素相结合，营造未来感与高级质感的视觉效果。通过使用深蓝、灰色作为主色调，橙色和绿色作为辅助色，点缀以亮色制造视觉焦点，确保色彩搭配协调且符合黄金比例。利用Flexbox和Grid布局实现响应式设计，保证在不同屏幕宽度下的良好展示效果。
*/

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

/* 设置全局字体与背景色 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    line-height: 1.6;
    padding: 80px 20px 20px 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #1E90FF, #34495e);
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* 导航链接样式 */
.navbar a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 250px;
    height: 100%;
    background: #34495e;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 20px;
}

.sidebar.open {
    transform: translateX(0);
}

/* 侧边栏链接样式 */
.sidebar a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    margin: 15px 0;
    font-size: 16px;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #32CD32;
}

/* 切换按钮样式 */
.toggle-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
}

/* 主容器样式 */
.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 卡片式布局样式 */
.card {
    background: #2c3e50;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* 图片样式 */
.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 标题样式 */
h2, h3 {
    color: #1E90FF;
    margin-bottom: 15px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

/* 段落样式 */
p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #bdc3c7;
}

/* 代码块样式 */
pre {
    background: #34495e;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

pre code {
    color: #ecf0f1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #FFA500, #32CD32);
    border: none;
    border-radius: 25px;
    color: #FFFFFF;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 16px;
}

.button:hover {
    background: linear-gradient(45deg, #32CD32, #FFA500);
}

/* 折叠区域样式 */
.collapsible {
    background: #34495e;
    color: #ecf0f1;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: background 0.3s ease;
    border-radius: 5px;
}

.collapsible:hover {
    background: #1E90FF;
}

.content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #2c3e50;
    border-radius: 0 0 10px 10px;
}

/* 背景渐变线条与装饰元素 */
.decorative-line {
    height: 4px;
    background: linear-gradient(90deg, #FFA500, #32CD32, #1E90FF);
    margin: 20px 0;
    border-radius: 2px;
}

/* 数据仪表盘样式 */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.widget {
    background: #2c3e50;
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: grab;
}

.widget:active {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* 固定底部样式 */
.footer {
    background: #1E90FF;
    color: #FFFFFF;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 10px;
}

.footer a {
    color: #FFA500;
    text-decoration: none;
    margin: 0 10px;
    font-size: 16px;
}

.footer a:hover {
    color: #32CD32;
}

/* 多语言切换器样式 */
.language-switcher {
    margin-top: 10px;
}

.language-switcher select {
    padding: 5px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    background: #34495e;
    color: #ecf0f1;
    transition: background 0.3s ease, color 0.3s ease;
}

.language-switcher select:hover {
    background: #1E90FF;
    color: #FFFFFF;
}

/* 提示信息样式 */
.notice {
    background: #32CD32;
    color: #FFFFFF;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-size: 18px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

/* Pulse动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(50, 205, 50, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(50, 205, 50, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(50, 205, 50, 0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar {
        width: 200px;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .footer {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 60px 10px 10px 10px;
    }

    .navbar {
        padding: 10px 20px;
    }

    .navbar a {
        margin: 0 10px;
        font-size: 14px;
    }

    .button {
        padding: 8px 16px;
        font-size: 14px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
    }
}

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

.code-example code {
    color: #ecf0f1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

/* 滚动动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

