
/* 基础样式与全局设置 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: #00cc66;
}

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

/* 视差滚动效果 */
.parallax {
    height: 500px;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
        height: 300px;
    }
}

/* 图片网格布局 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

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

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

th {
    background: rgba(0, 255, 136, 0.2);
    font-weight: bold;
}

td {
    color: #d4d4d4;
}

/* 按钮样式 */
button {
    background-color: #00ff88;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

button:hover {
    background-color: #00cc66;
    transform: scale(1.1);
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    color: #00ff88;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

code {
    color: #00ff88;
}

/* 响应式设计 */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }

    pre {
        font-size: 0.8rem;
    }
}

