
/* 全局样式设置 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0A2647, #000000);
    overflow-x: hidden;
    animation: gradientShift 20s ease infinite;
}

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

h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

p {
    font-size: 1rem;
    color: #E5E5EA;
    margin-bottom: 1.2rem;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: auto;
}

.left-section {
    background: linear-gradient(135deg, #0A2647, #1a3d6f);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.right-section {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent),
                linear-gradient(to bottom right, #E5E5EA, #c8c8cc);
    color: #333;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.left-section::before,
.right-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: aurora-move 15s linear infinite;
}

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

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

code {
    display: block;
    background: #0A2647;
    color: #FF9900;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

pre {
    margin: 20px 0;
    position: relative;
}

pre::before {
    content: '代码示例';
    position: absolute;
    top: -10px;
    left: 10px;
    background: #FF9900;
    color: #0A2647;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #E5E5EA;
    color: #333;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #FF9900;
    color: #0A2647;
}

tr:hover {
    background-color: #f1f1f1;
}

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

    code {
        font-size: 0.8rem;
    }
}

