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

/* 全局字体与背景 */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background: radial-gradient(circle, rgba(0, 51, 102, 0.8), rgba(0, 0, 0, 0.8));
    color: #ffffff;
    overflow-x: hidden;
}

/* 容器设置 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 主标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 20px;
}

/* 标题颜色与动画 */
h1 {
    font-size: 3rem;
    color: #FFD700;
    text-align: center;
    margin-top: 40px;
    animation: fadeIn 2s ease-in-out;
}

h2 {
    font-size: 2.5rem;
    color: #00BFFF;
    margin-top: 30px;
}

h3 {
    font-size: 2rem;
    color: #FFD700;
    margin-top: 25px;
}

h4 {
    font-size: 1.75rem;
    color: #00BFFF;
    margin-top: 20px;
}

/* 段落样式 */
p {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 链接样式 */
a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFA500;
}

/* 按钮样式 */
.button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
}

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

/* 分屏布局 */
.split-screen {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.split-screen .left, .split-screen .right {
    flex: 1;
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

.split-screen .left {
    background-color: #0B2447;
    color: white;
    animation: slideInLeft 1.5s ease-out forwards;
}

.split-screen .right {
    background: linear-gradient(to bottom, #FFD700, #FFA500);
    color: #333;
    animation: slideInRight 1.5s ease-out forwards;
}

/* 动画关键帧 */
@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

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

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

code {
    color: #f8f8f2;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

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

li {
    margin-bottom: 10px;
}

/* 图像样式 */
img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* 示例展示区域 */
.demo-section {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.demo-section h2 {
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
}

.demo-section pre {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

.demo-section code {
    color: #dcdcdc;
    font-family: 'Courier New', Courier, monospace;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .split-screen .left, .split-screen .right {
        padding: 30px;
    }

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

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

    .split-screen .left, .split-screen .right {
        height: 50vh;
    }
}

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }
}

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

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

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    h4 {
        font-size: 1rem;
    }

    p {
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .button {
        padding: 6px 20px;
        font-size: 0.8rem;
    }

    pre {
        padding: 10px;
    }
}

/* 动态粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particles::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

