
/* 全局样式设置 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #121230, #452a7a);
    color: white;
    line-height: 1.6;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #ff9f1c;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

p {
    font-size: 1rem;
    margin: 10px 0;
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 视差滚动效果 */
.parallax-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
    z-index: -1;
    transform: translateY(0);
    transition: transform 0.5s ease-out;
}

.foreground-layer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 20%;
}

/* 按钮与交互 */
.button {
    background: linear-gradient(135deg, #ff9f1c, #00ff88);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 159, 28, 0.5);
    transition: all 0.3s ease-in-out;
}

.button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 159, 28, 0.7);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

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

th {
    background: linear-gradient(135deg, #ff9f1c, #00ff88);
    color: white;
}

td {
    color: #e0e0e0;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

code {
    color: #00ff88;
    font-size: 0.9rem;
}

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

    .foreground-layer {
        padding-top: 10%;
    }

    table {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    p {
        font-size: 0.9rem;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

