
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0B1F3C, #1E3A5F);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    margin: 1.5rem 0;
}

p {
    margin: 1rem 0;
    letter-spacing: 0.5px;
}

code {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    white-space: pre-wrap;
    word-break: break-word;
}

pre {
    margin: 1rem 0;
    overflow: auto;
}

a {
    color: #FF9800;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #FFC107;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th, td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.05);
}

th {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 按钮样式 */
.button {
    background: linear-gradient(135deg, #FF9800, #FFC107);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.5);
}

/* 容器与布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #1E3A5F, #0B1F3C);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.1), transparent);
    animation: rotate 10s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.section {
    padding: 40px 0;
    width: 100%;
    position: relative;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #1E3A5F, #0B1F3C);
}

.section:nth-child(odd) {
    background: linear-gradient(135deg, #0B1F3C, #1E3A5F);
}

/* 图片装饰 */
.image-decor {
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.image-decor img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 10px;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.image-decor img:hover {
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 30px 0;
    }

    .section {
        padding: 20px 0;
    }

    code {
        font-size: 0.8em;
    }
}

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

    h2 {
        font-size: 1.5em;
    }

    p {
        font-size: 0.9em;
    }

    .image-decor img {
        width: 100px;
        height: 100px;
    }
}

