
/* 主色调 - 深蓝色，用于整体氛围营造 */
:root {
    --primary-color: #0d47a1; /* 深蓝色 */
    --secondary-color: #424242; /* 灰色 */
    --accent-color: #ff9800; /* 亮橙色 */
    --highlight-color: #4caf50; /* 绿色 */
    --background-gradient: linear-gradient(135deg, #0d47a1, #1976d2);
    --button-hover: darken(#ff9800, 10%);
}

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Helvetica, sans-serif;
    background: var(--background-gradient);
    color: #fff;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* 容器设置，采用响应式网格布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* 固定导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--accent-color);
}

/* 面包屑导航样式 */
.breadcrumb {
    list-style: none;
    display: flex;
    padding: 60px 20px 20px 20px;
    background-color: transparent;
}

.breadcrumb li {
    margin-right: 8px;
    font-size: 14px;
}

.breadcrumb li + li:before {
    content: ">";
    margin-right: 8px;
    color: var(--secondary-color);
}

/* 主要内容区域 */
main {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 标题样式 */
h2, h3, h4 {
    color: var(--accent-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

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

/* 强调文本样式 */
strong {
    color: var(--highlight-color);
}

/* 按钮样式 */
.button {
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: var(--button-hover);
    transform: translateY(-3px);
}

/* 卡片样式 */
.card {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    padding: 20px;
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* 代码块样式 */
code {
    display: block;
    background-color: rgba(0,0,0,0.7);
    color: #ff9800;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin: 20px 0;
}

/* 动画与过渡效果 */
.fade-in {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 折叠区域样式 */
.collapsible {
    background-color: var(--secondary-color);
    color: #fff;
    cursor: pointer;
    padding: 10px;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.collapsible:hover {
    background-color: var(--accent-color);
}

.content {
    padding: 0 18px;
    display: none;
    background-color: rgba(255,255,255,0.1);
    overflow: hidden;
    border-radius: 4px;
}

.content p {
    margin: 10px 0;
}

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

    .breadcrumb {
        flex-direction: column;
        align-items: flex-start;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 16px;
    }

    .button {
        width: 100%;
        text-align: center;
    }
}

/* 页面底部样式 */
.footer {
    background-color: var(--secondary-color);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
}

/* 实时数据展示区 */
.chart {
    width: 100%;
    height: 300px;
    background-color: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.bar {
    width: 50px;
    background-color: var(--highlight-color);
    position: absolute;
    bottom: 0;
    animation: grow 1s ease-out forwards;
}

@keyframes grow {
    from {
        height: 0;
    }
    to {
        height: 100%;
    }
}

/* 互动工具按钮 */
.interactive-tools {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 8px;
}

.tool-button {
    background-color: var(--accent-color);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.tool-button:hover {
    transform: translateY(-5px);
    background-color: var(--button-hover);
}

/* 提示信息样式 */
.reference-note {
    background-color: rgba(255,255,255,0.2);
    padding: 15px;
    border-left: 4px solid var(--accent-color);
    margin: 20px 0;
}

/* 高级响应式布局 */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 鼠标悬停时显示内容 */
.hover-content {
    position: relative;
}

.hover-content::after {
    content: attr(data-hover);
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover-content:hover::after {
    opacity: 1;
}

