
/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #000000, #1A237E);
    color: #FFFFFF;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-weight: bold;
    color: #007BFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

p {
    font-size: 16px;
    margin-bottom: 1em;
}

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

a:hover {
    color: #FF80AB;
}

pre {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.1);
}

th, td {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

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

/* 布局设计 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.parallax {
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.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 {
    position: relative;
    z-index: 1;
    padding: 20px;
}

/* 按钮与交互 */
.button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
    margin-top: 10px;
}

.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;
}

/* 动画效果 */
@keyframes float {
    0% { transform: translateY(0) opacity(1); }
    100% { transform: translateY(-50px) opacity(0); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

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

.particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 30%; left: 50%; animation-delay: 1s; }
.particle:nth-child(3) { top: 60%; left: 80%; animation-delay: 2s; }

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

    pre {
        font-size: 12px;
    }

    table {
        font-size: 14px;
    }
}

