
/* 全局样式定义 */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #1a1a40;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    color: #ff9100;
    text-align: center;
    margin: 20px 0;
}

p {
    color: #d0d0d0;
    padding: 0 20px;
    text-align: justify;
}

.split-screen {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.left, .right {
    width: 48%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #1a1a40;
    border: 1px solid #333;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .left, .right {
        width: 100%;
    }
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    position: absolute;
    z-index: 1;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 4px;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 20px;
}

.images-grid img {
    width: 100%;
    height: auto;
    border: 2px solid #ff9100;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.images-grid img:hover {
    transform: scale(1.1);
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #2a2a50;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

pre {
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #1a1a40;
    color: #ff9100;
    font-size: 14px;
}

/* 响应式布局调整 */
@media (max-width: 1024px) {
    .split-screen {
        flex-direction: column;
    }

    .left, .right {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1, h2, h3 {
        font-size: 20px;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

