
/* 全局样式定义 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #0074D9, #6A5ACD);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

a {
    color: #39FF14;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #39FF14;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: auto;
    padding: 20px 0;
    display: grid;
    gap: 20px;
}

header {
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #39FF14, #0074D9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

code, pre {
    background: rgba(0, 0, 0, 0.7);
    color: #39FF14;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
}

pre {
    white-space: pre-wrap;
    word-break: break-word;
}

.button {
    background: #6A5ACD;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background: #39FF14;
    transform: scale(1.1);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.5);
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

th {
    background: #39FF14;
    color: #0074D9;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .container {
        grid-template-columns: 1fr;
    }

    img {
        width: 100%;
    }
}

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

    p, li {
        font-size: 0.9rem;
    }

    code, pre {
        font-size: 0.8rem;
    }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.1);
    animation: particle-animation 5s infinite linear;
}

@keyframes particle-animation {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

