
/* 基础样式与全局设置 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a192f, #1e2d57);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    margin: 1.5rem 0 1rem;
    color: #6fffd2;
    text-shadow: 0 0 8px rgba(102, 255, 204, 0.5);
}
p {
    font-size: 1rem;
    margin: 1rem 0;
    line-height: 1.8;
}
pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 0.8rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
th {
    background: rgba(0, 255, 204, 0.1);
    font-weight: bold;
    color: #6fffd2;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 视差滚动效果 */
.parallax {
    position: relative;
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.parallax:nth-child(odd) {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
}
.parallax:nth-child(even) {
    background-image: url('https://images.gptkong.com/demo/sample2.png');
}
.content-layer {
    transform: translateY(20%);
    transition: transform 0.3s ease-in-out;
}
.parallax:hover .content-layer {
    transform: translateY(0) scale(1.1);
}

/* 按钮与交互效果 */
button {
    background: linear-gradient(135deg, #6fffd2, #6f9cff);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-size: 1rem;
    color: #0a192f;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(102, 255, 204, 0.5);
}
button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(102, 255, 204, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1, h2, h3 {
        font-size: 1.5rem;
    }
    p {
        font-size: 0.9rem;
    }
    .parallax {
        height: 80vh;
    }
}
@media (max-width: 480px) {
    .parallax {
        height: 60vh;
    }
    table {
        font-size: 0.8rem;
    }
}

