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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4A90E2, #673AB7);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-attachment: fixed;
}

/* 分屏布局 */
.split-screen {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.split-screen .left-pane,
.split-screen .right-pane {
    width: 50%;
    padding: 30px;
    overflow-y: auto;
}

.split-screen .left-pane {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
    color: white;
}

.split-screen .right-pane {
    background: #E0E0E0;
    color: #0A1F44;
}

/* 动态分割线 */
.split-screen::before {
    content: '';
    width: 2px;
    background: linear-gradient(180deg, transparent, #ffffff, transparent);
    position: absolute;
    height: 80vh;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    animation: wave 10s ease-in-out infinite;
}

/* 分割线动画 */
@keyframes wave {
    0% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(360deg); }
    100% { transform: translateX(-50%) rotate(720deg); }
}

/* 极光移动动画 */
@keyframes aurora-move {
    0% { background: radial-gradient(circle, rgb(255, 87, 34), transparent); }
    50% { background: radial-gradient(circle, rgb(255, 140, 0), transparent); }
    100% { background: radial-gradient(circle, rgb(255, 87, 34), transparent); }
}

/* 标题样式 */
h1, h2, h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
}

h2 {
    font-size: 2rem;
    color: #0A1F44;
}

h3 {
    font-size: 1.5rem;
    color: #4A90E2;
}

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

/* 代码块样式 */
pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #38C172;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.button:hover {
    transform: scale(1.1);
    background-color: #2fa55b;
}

/* 列表样式 */
ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

/* 图片样式 */
img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    margin: 10px;
}

/* 示例展示样式 */
.demo-section {
    width: 100%;
    max-width: 1200px;
    background: rgba(240, 240, 240, 0.9);
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.demo-section h2 {
    color: #FF5B5B;
}

.demo-section pre {
    background: #e8e8e8;
    padding: 20px;
    border-radius: 10px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .split-screen {
        height: 75vh;
    }
}

@media (max-width: 1200px) {
    .split-screen {
        height: 70vh;
    }
}

@media (max-width: 1024px) {
    .split-screen .left-pane,
    .split-screen .right-pane {
        padding: 20px;
    }
}

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

    .split-screen::before {
        width: 100%;
        height: 2px;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }

    .split-screen .left-pane,
    .split-screen .right-pane {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

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

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

    .split-screen .left-pane,
    .split-screen .right-pane {
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1rem;
    }

    .button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

