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

h1, h2, h3 {
    font-family: 'Roboto Mono', monospace;
    margin-top: 0;
}

a {
    text-decoration: none;
    color: #39ff14;
}

a:hover {
    text-shadow: 0 0 5px #39ff14;
}

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

.section {
    grid-column: span 12;
    margin: 40px 0;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.module {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.module:nth-child(odd) {
    grid-column: span 8;
}

.module:nth-child(even) {
    grid-column: span 4;
}

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

.code-block {
    background-color: #000;
    color: #39ff14;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
}

.shape {
    width: 100px;
    height: 100px;
    background-color: #39ff14;
    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); }
}

.button {
    background-color: #39ff14;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.button:hover {
    transform: scale(1.1);
}

.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px;
    margin: 40px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .module:nth-child(odd),
    .module:nth-child(even) {
        grid-column: span 12;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }
}

