
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: #1A1A1A;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

code {
    background-color: #2B2B2B;
    color: #FFD600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}

pre {
    background-color: #2B2B2B;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

a {
    color: #FFD600;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 色彩渐变与高亮 */
.highlight {
    background: linear-gradient(to right, #4C52FF, #8B94E7);
    color: #FFFFFF;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    margin: 1rem 0;
}

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

/* 网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.grid-item {
    background: linear-gradient(to bottom, #4C52FF, #8B94E7);
    color: #FFFFFF;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.05);
}

/* 按钮涟漪效果 */
.button {
    position: relative;
    overflow: hidden;
    background-color: #FFD600;
    color: #000000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 1rem 0;
    font-weight: bold;
}

.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: width 0.5s ease, height 0.5s ease;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .parallax {
        height: 200px;
    }

    h1, h2, h3, h4 {
        font-size: 1.5rem;
    }

    pre {
        font-size: 0.8em;
    }
}

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

    h1, h2, h3, h4 {
        font-size: 1.2rem;
    }
}

/* 粒子系统 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.1);
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #FFFFFF;
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

