
/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A1F44, #000022);
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: bold;
    color: #8C52FF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

p {
    font-weight: normal;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

a {
    color: #00FFA3;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00ff7f;
}

code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-family: 'Exo 2.0', monospace;
    color: #00FFA3;
    display: inline-block;
}

pre {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
}

/* 容器与模块化布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.module {
    background: linear-gradient(135deg, #8C52FF, #00FFA3);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
}

.module:hover {
    transform: translateY(-10px);
}

.module img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(90deg, #0A1F44, #000022);
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: #ffffff;
    margin: 0 10px;
    font-size: 1rem;
    rel: "nofollow";
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00FFA3;
}

/* 视差滚动效果 */
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

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

    .module {
        padding: 15px;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    p {
        font-size: 0.9rem;
    }

    pre {
        font-size: 0.8rem;
    }
}

