
/* 基础样式定义 */
body {
    margin: 0;
    font-family: 'Roboto Mono', sans-serif;
    line-height: 1.6;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0A1A2F, #000000);
}

h1, h2, h3 {
    font-family: 'Neometric', sans-serif;
    color: #39FF14;
    margin-top: 2rem;
}

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

a:hover {
    color: #39FF14;
}

/* 页面布局与分屏滚动 */
.section {
    background-color: #0A1A2F;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in-out;
    position: relative;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #000000, #0A1A2F);
}

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

.grid-item {
    background-color: rgba(57, 255, 20, 0.2);
    border: 1px solid #39FF14;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.icon:hover::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(57,255,20,0.5), transparent);
    animation: pulse 1s infinite;
}

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

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid #00FFFF;
}

th, td {
    padding: 10px;
    border: 1px solid #00FFFF;
    text-align: left;
}

th {
    background-color: rgba(57, 255, 20, 0.2);
}

/* 代码块样式 */
pre {
    background-color: #0A1A2F;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #39FF14;
    font-family: 'Fira Code', monospace;
    color: #00FFFF;
}

code {
    color: #39FF14;
}

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

    body {
        font-size: 0.9rem;
    }

    table {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}

