
/* 基础样式与全局设置 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #000066, #003399, #3366FF);
    color: #C0C0C0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}

a {
    color: #00FFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00BFFF;
}

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

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

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

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

/* 按钮样式 */
.button {
    background-color: #007BFF;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* 视差滚动效果 */
.parallax-section {
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.8);
}

.parallax-section:nth-child(odd) {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
}

.parallax-section:nth-child(even) {
    background-image: url('https://images.gptkong.com/demo/sample2.png');
}

/* 自适应布局 */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

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

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .parallax-section {
        height: 60vh;
    }
}

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

.article-section pre {
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-section code {
    color: #00FFFF;
    font-family: 'Courier New', monospace;
}

/* 提示信息 */
.notice {
    text-align: center;
    color: #FFD700;
    font-size: 1.2em;
    margin: 20px 0;
}

