
/* 基本页面样式设置 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #F5F5F5; /* 使用浅灰色作为背景，提升可读性 */
    color: #1A237E; /* 深蓝色作为主色，传达专业与信任感 */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(26, 35, 126, 0.9); /* 半透明深蓝色背景 */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: #1A237E; /* 滚动后背景变为纯深蓝色 */
}

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

.navbar a:hover {
    color: #FF6F00; /* 悬停时链接颜色变为亮橙色 */
}

/* 主内容区域 */
.main {
    padding-top: 80px; /* 为固定导航栏留出空间 */
    max-width: 1200px;
    margin: 0 auto;
}

/* 标题样式 */
h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #1A237E;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* 段落样式 */
p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 代码块样式 */
pre {
    background-color: #FFFFFF;
    padding: 15px;
    border-left: 5px solid #FF6F00;
    overflow-x: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

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

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

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

/* 视差滚动区 */
.parallax {
    background: linear-gradient(
        rgba(26, 35, 126, 0.7),
        rgba(26, 35, 126, 0.7)
    ), url('https://images.gptkong.com/demo/sample1.png') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    text-align: center;
}

.parallax h1 {
    font-size: 36px;
    animation: fadeIn 2s ease-in-out;
}

/* 渐变动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 数据面板样式 */
.data-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
    background-color: #FFFFFF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 40px;
}

.chart {
    width: 45%;
    margin: 10px 0;
    position: relative;
}

.chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #1A237E;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.chart:hover::before {
    border-color: #FF6F00;
}

/* 按钮样式 */
.button {
    background-color: #FF6F00;
    color: #FFFFFF;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 16px;
    margin: 10px 0;
}

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

/* 卡片容器 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 40px;
}

.card {
    background-color: #FFFFFF;
    width: 300px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 语言切换按钮 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.language-switcher button {
    background-color: transparent;
    border: 2px solid #1A237E;
    color: #1A237E;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.language-switcher button:hover {
    background-color: #1A237E;
    color: #FFFFFF;
}

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

    .chart {
        width: 90%;
    }

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

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 18px;
    }

    .button {
        width: 100%;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        flex-direction: column;
        top: 10px;
        right: 10px;
    }

    .language-switcher button {
        padding: 5px 10px;
        font-size: 14px;
    }
}

/* 折叠区域样式 */
.collapsible {
    background-color: #FFFFFF;
    color: #1A237E;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    margin-bottom: 10px;
}

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

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #f1f1f1;
    border-radius: 4px;
    margin-bottom: 20px;
}

code.css-code {
    background-color: #EFEFEF;
    padding: 10px;
    border-radius: 4px;
    display: block;
    font-family: 'Courier New', Courier, monospace;
    color: #D84315;
}

