
/* 基础样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to right, #001f3f, #6a0dad);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
}

/* 色彩渐变与背景动画 */
header, footer {
    background: linear-gradient(135deg, #001f3f, #39ff14, #6a0dad);
    background-size: 300% 300%;
    animation: gradientAnimation 8s ease infinite;
    padding: 15px;
    text-align: center;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 分屏设计 */
.left-panel, .right-panel {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.left-panel {
    background: linear-gradient(to bottom, #001f3f, #2c3e50);
}

.right-panel {
    background: linear-gradient(to bottom, #6a0dad, #8e44ad);
}

/* 图片装饰 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #39ff14;
    color: #000;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

/* 动画效果 */
.icon {
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.2);
}

.text:hover {
    color: #39ff14;
}

/* 响应式适配 */
@media (max-width: 480px) {
    h1, h2, h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }

    pre {
        font-size: 0.8rem;
    }
}

