
/* 基础样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #00008B, #ADD8E6);
    color: white;
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: bold;
    text-align: center;
}

p {
    font-weight: normal;
    margin: 15px 0;
}

/* 全屏背景模块 */
.fullscreen-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fullscreen-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    z-index: -1;
}

/* 视差滚动效果 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px;
    margin: 20px 0;
}

.parallax:nth-of-type(1) {
    background-image: url('https://images.gptkong.com/demo/sample2.png');
}

.parallax:nth-of-type(2) {
    background-image: url('https://images.gptkong.com/demo/sample3.png');
}

/* 网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.05);
}

.grid-item img {
    max-width: 100%;
    border-radius: 10px;
}

/* 按钮样式 */
button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

button:hover {
    transform: scale(1.1);
}

/* 文章样式 */
.article-container {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
}

.article-container pre {
    background: black;
    color: #ADD8E6;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

/* 自适应布局 */
@media (max-width: 768px) {
    .parallax {
        height: 300px;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}

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

    .fullscreen-section {
        height: 80vh;
    }
}

