
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(to bottom, #000F4C, #1E90FF);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding: 20px;
}
h1, h2, h3 {
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}
h2 {
    font-size: 2rem;
    margin-top: 30px;
}
h3 {
    font-size: 1.75rem;
    margin-top: 25px;
}
p {
    font-size: 1rem;
    margin: 15px 0;
}
pre {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}
code {
    color: #FFD700;
    font-family: 'Courier New', Courier, monospace;
}
a {
    color: #00FFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #FFD700;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.1);
}
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
th {
    background-color: rgba(0, 0, 0, 0.3);
}

/* 视差滚动效果 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px;
    margin: 40px 0;
}
.parallax:nth-of-type(odd) {
    background-image: url("https://images.gptkong.com/demo/sample1.png");
}
.parallax:nth-of-type(even) {
    background-image: url("https://images.gptkong.com/demo/sample2.png");
}

/* 创意矩阵布局 */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.matrix-item {
    background: linear-gradient(to right, #1E90FF, #8A2BE2);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}
.matrix-item:hover {
    transform: scale(1.1);
}

/* 动画效果 */
.button {
    background-color: #00FFFF;
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.button:hover {
    transform: scale(1.1);
    color: #FFD700;
}

/* 自适应布局 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    .parallax {
        height: 300px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    .parallax {
        height: 200px;
    }
    pre {
        font-size: 0.9rem;
    }
}

