
/* 基础样式设置 */
body {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(135deg, #0A1F44 0%, #C0C0C0 50%, #8A2BE2 100%);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Futura', sans-serif;
    letter-spacing: 2px;
}

h1 {
    font-size: 48px;
    font-weight: bold;
    color: #39FF14;
    text-align: center;
    padding: 20px 0;
}

h2 {
    font-size: 36px;
    color: #00FFFF;
    margin-top: 40px;
}

h3 {
    font-size: 28px;
    color: #8A2BE2;
    margin-top: 30px;
}

p {
    font-size: 18px;
    color: #C0C0C0;
    margin: 15px 0;
    text-align: justify;
}

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

.background {
    position: relative;
    background: linear-gradient(135deg, #0A1F44 0%, #C0C0C0 50%, #8A2BE2 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

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

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

code {
    background: rgba(0, 0, 0, 0.5);
    color: #39FF14;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    display: inline-block;
}

pre {
    background: #0A1F44;
    color: #00FFFF;
    padding: 20px;
    border-radius: 10px;
    overflow: auto;
    max-height: 300px;
}

.button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background: #8A2BE2;
    color: #fff;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.button:hover::before {
    width: 200px;
    height: 200px;
}

.shape {
    width: 100px;
    height: 100px;
    background: #00FFFF;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: rotate 5s infinite linear;
    margin: 20px auto;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

th {
    background: #8A2BE2;
}

td {
    background: #0A1F44;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

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

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 24px;
    }

    p {
        font-size: 16px;
    }

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