
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #121212, #1e1e3f);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .container {
        grid-template-columns: 1fr 2fr;
    }
}

/* 标题与导航栏 */
.header {
    background: linear-gradient(90deg, #000000, #121212);
    padding: 20px;
    text-align: center;
    position: relative;
}
.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #833ab4;
    margin: 0;
}
.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}
.nav a {
    color: #00ff7f;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.nav a:hover {
    color: #833ab4;
}
.nav a[rel="nofollow"] {
    pointer-events: none;
    opacity: 0.7;
}

/* 内容区域 */
.content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .content {
        grid-template-columns: 1fr 1fr;
    }
}
.section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
}
.section h2 {
    font-size: 2rem;
    color: #00ff7f;
    margin-bottom: 10px;
}
.section p {
    font-size: 1rem;
    color: #dcdcdc;
}
.section img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 图片装饰 */
.decorative-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 动画效果 */
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    height: 300px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}
.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-effect:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container, .content {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 15px;
    }
    .parallax {
        height: 200px;
    }
}

/* 代码块样式 */
pre {
    background: #1e1e3f;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9rem;
    color: #00ff7f;
}
code {
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 底部设计 */
.footer {
    background: linear-gradient(90deg, #121212, #000000);
    padding: 20px;
    text-align: center;
    color: #833ab4;
    font-size: 0.9rem;
    margin-top: 20px;
}
.footer a {
    color: #00ff7f;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.footer a:hover {
    color: #833ab4;
}

