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

body {
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(135deg, #0A192F, #000000);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
}

/* 容器布局 */
.container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header, .footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 0;
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.navbar a {
    color: #39FF14;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

.navbar a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #39FF14;
    transition: width 0.3s;
}

.navbar a:hover::after {
    width: 100%;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.section h2 {
    font-size: 32px;
    color: #39FF14;
    margin-bottom: 15px;
}

.section p {
    font-size: 16px;
    color: #D1D1D1;
}

.code-block {
    background: #1E1E1E;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin-top: 15px;
}

.code-block code {
    color: #39FF14;
    font-family: 'Courier New', Courier, monospace;
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

.footer {
    font-size: 14px;
    color: #7F7F7F;
}

.button {
    background-color: #BD10E0;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
    background-color: #87CEFA;
    transform: scale(1.05);
}

.highlight {
    color: #39FF14;
    font-weight: bold;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section {
    animation: fadeIn 1s ease-in-out;
}

@media (max-width: 1440px) {
    .container {
        max-width: 1024px;
    }
}

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

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .section {
        padding: 20px;
    }

    .section h2 {
        font-size: 28px;
    }

    .section p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .section h2 {
        font-size: 24px;
    }

    .navbar a {
        font-size: 16px;
    }
}

@media (max-width: 320px) {
    .section h2 {
        font-size: 20px;
    }

    .navbar a {
        font-size: 14px;
    }
}

/* 交互效果 */
a, .button {
    transition: all 0.3s ease;
}

a:hover, .button:hover {
    color: #BD10E0;
}


