
/* 基础样式与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Helvetica', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #000033, #1a1aff);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
h1 {
    font-size: 4rem;
    text-align: center;
    margin: 2rem 0;
    background: linear-gradient(to right, #ff00cc, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
a {
    color: #00ffff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #ff00cc;
}
code {
    display: block;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
pre code {
    margin-top: 1rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}
th, td {
    padding: 0.8rem;
    text-align: left;
    border: 1px solid #ffffff30;
}
th {
    background: linear-gradient(to bottom, #ff00cc, #00ffff);
    color: #000;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
}
/* 视差滚动效果 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.parallax:nth-of-type(1) {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
}
.parallax:nth-of-type(2) {
    background-image: url('https://images.gptkong.com/demo/sample2.png');
}
/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    .container {
        padding: 1rem;
    }
    img {
        width: 100%;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    p {
        font-size: 0.9rem;
    }
}
/* 动态粒子背景 */
.particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle, rgba(255, 0, 204, 0.1), transparent 70%);
    pointer-events: none;
}
/* 半透明层叠效果 */
.nav-bar {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    text-align: center;
}
.nav-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(10px);
}

