
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #2E4053, #1A237E);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #ffffff;
    margin-top: 0;
}
a {
    color: #34C759;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #8BC34A;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}
button {
    background-color: #34C759;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
button:hover {
    transform: scale(1.1);
    background-color: #8BC34A;
}
code {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
    margin: 10px 0;
}
pre code {
    white-space: pre-wrap;
    word-wrap: break-word;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: bold;
}
ul {
    list-style-type: disc;
    padding-left: 20px;
}
li {
    margin-bottom: 10px;
}

/* 视差滚动效果 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}
.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');
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .parallax {
        height: 60vh;
    }
    table {
        font-size: 12px;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

