
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #000046, #1cb5e0);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
h1, h2, h3, h4 {
    font-weight: bold;
    color: #ffd700;
}
p {
    font-size: 16px;
    color: #f0f8ff;
}
a {
    color: #00ffff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #00ff7f;
}

/* 导航栏设计 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.navbar li {
    margin: 0 15px;
}
.navbar a {
    color: #ffffff;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 不对称布局 */
.asymmetric-section {
    display: flex;
    margin-top: 80px;
    align-items: center;
}
.image-section {
    flex: 0 0 60%;
    padding-right: 20px;
}
.text-section {
    flex: 0 0 40%;
    text-align: right;
    padding-left: 20px;
}
.alternate-section {
    flex-direction: row-reverse;
}

/* 图片与装饰 */
.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    filter: grayscale(50%);
    transition: filter 0.5s ease-in-out;
}
.image-section img:hover {
    filter: none;
}

/* 动画效果 */
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 10px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 滚动视差 */
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px;
    margin: 40px 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .asymmetric-section {
        flex-direction: column;
    }
    .image-section, .text-section {
        flex: 0 0 100%;
        text-align: center;
        padding: 0;
    }
}
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    h1, h2, h3, h4 {
        font-size: 24px;
    }
    p {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .navbar li {
        margin: 0 10px;
    }
    .navbar a {
        font-size: 16px;
    }
}

/* 代码块样式 */
pre {
    background-color: #000000;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    color: #00ff7f;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

