
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #f5f5f5;
    background: linear-gradient(135deg, #0d47a1, #512da8, #0d47a1);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

/* 渐变动画 */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 固定导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 71, 161, 0.9);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

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

/* 侧边导航样式 */
.side-nav {
    position: fixed;
    right: -250px;
    top: 100px;
    width: 250px;
    background-color: rgba(13, 71, 161, 0.95);
    padding: 20px;
    transition: transform 0.3s ease;
    transform: translateX(0);
    z-index: 999;
}

.side-nav.open {
    transform: translateX(-250px);
}

.side-nav a {
    display: block;
    color: #ffffff;
    margin: 15px 0;
    text-decoration: none;
    font-family: 'Helvetica Neue', sans-serif;
    transition: color 0.3s ease;
}

.side-nav a:hover {
    color: #ff9800;
}

/* 主容器样式 */
.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 100px 50px 50px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.text-section {
    flex: 1;
    padding-right: 20px;
}

.chart-section {
    flex: 1;
    max-width: 600px;
    position: relative;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 100px 20px 20px 20px;
    }
    
    .chart-section {
        max-width: 100%;
        margin-top: 30px;
    }
}

/* 按钮样式 */
.btn {
    background-color: #ff9800;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    font-size: 16px;
    font-family: 'Roboto Bold', sans-serif;
}

.btn:hover {
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.6), 0 0 40px rgba(255, 152, 0, 0.4);
}

/* 幻灯片入场效果 */
.slide-in {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 背景动画效果 */
.polygon {
    width: 150px;
    height: 150px;
    background-color: #ff9800;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: rotate 10s linear infinite;
    margin: 20px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 数据卡片样式 */
.data-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    color: #ffffff;
    font-family: 'Helvetica Neue', sans-serif;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

.data-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, #ff9800, #4caf50, #2196f3);
    animation: moveGradient 5s linear infinite;
    opacity: 0.3;
    z-index: 0;
}

.data-card-content {
    position: relative;
    z-index: 1;
}

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

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 50px;
    justify-content: center;
}

.image-gallery img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px rgba(0,0,0,0.5);
}

/* 章节导航样式 */
.chapter-nav {
    position: fixed;
    top: 100px;
    left: 20px;
    background-color: rgba(13, 71, 161, 0.9);
    padding: 20px;
    border-radius: 8px;
    z-index: 1000;
}

.chapter-nav a {
    display: block;
    color: #ffffff;
    margin-bottom: 10px;
    text-decoration: none;
    font-family: 'Roboto Bold', sans-serif;
    transition: color 0.3s ease;
}

.chapter-nav a:hover {
    color: #ff9800;
}

/* CSS代码示例块样式 */
.code-block {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.code-block code {
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

/* 重要提示样式 */
.important-note {
    background-color: rgba(255, 152, 0, 0.8);
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-family: 'Roboto Bold', sans-serif;
    margin: 20px 0;
    font-size: 18px;
}

