
/* 全局样式初始化 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, p, ul, li {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background-color: #007bff;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1rem;
    opacity: 0.8;
}

.split-screen {
    display: flex;
    height: calc(100vh - 150px);
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.left-panel, .right-panel {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.left-panel {
    background-color: #e9f5ff;
}

.right-panel {
    background-color: #f5f5f5;
}

.split-screen::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 80%;
    background: linear-gradient(to bottom, #007bff, transparent);
    z-index: 1;
}

.panel-content {
    position: relative;
    z-index: 2;
}

.panel-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.panel-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #007bff;
}

.panel-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 1024px) {
    .split-screen {
        flex-direction: column;
        height: auto;
    }

    .left-panel, .right-panel {
        flex: none;
        margin-bottom: 20px;
    }

    .split-screen::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    .panel-content h3 {
        font-size: 1.2rem;
    }
}

.article-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.article-section h2 {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 20px;
}

.article-section pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
    font-size: 0.9rem;
}

.article-section code {
    color: #d400ff;
    font-weight: bold;
}

.footer {
    background-color: #007bff;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.chart-item {
    transition: transform 0.3s ease;
}

.chart-item:hover {
    transform: scale(1.1);
    cursor: pointer;
}

