
/* 基础样式 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(to bottom, #002f5d, #87CEEB);
    color: #fff;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 10px;
}
p {
    font-size: 16px;
    margin-bottom: 20px;
}
a {
    color: #00bcd4;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    display: block;
    white-space: pre-wrap;
    overflow-x: auto;
}
pre {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    text-align: left;
}
th {
    background-color: rgba(255, 255, 255, 0.1);
}
ul {
    padding-left: 20px;
}
li {
    margin-bottom: 10px;
}

/* 布局与容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.header {
    background: linear-gradient(to right, #002f5d, #6a11cb);
    color: #fff;
    text-align: center;
    padding: 50px 20px;
}
.header h1 {
    font-size: 48px;
    margin: 0;
}
.header p {
    font-size: 20px;
    margin-top: 10px;
}
.section {
    padding: 50px 20px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    position: relative;
}
.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}
.parallax {
    height: 400px;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
    }
}

/* 视差滚动效果 */
.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.8;
}
.parallax-layer img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 卡片设计 */
.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out;
}
.card:hover {
    transform: translateY(-10px);
}

/* 按钮与交互 */
button {
    background: #00bcd4;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}
button:hover {
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .header h1 {
        font-size: 36px;
    }
    .parallax {
        height: 300px;
    }
}
@media (max-width: 480px) {
    body {
        font-size: 12px;
    }
    .header h1 {
        font-size: 28px;
    }
    .parallax {
        height: 200px;
    }
}

