
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #e0e0e0;
    background: linear-gradient(to bottom, #000000, #1a1a40);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Exo 2', sans-serif;
    font-weight: bold;
    color: #ffffff;
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: #00cc77;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff99;
}

.navbar .menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar .menu li a {
    font-size: 1rem;
    color: #e0e0e0;
}

/* 视差滚动样式 */
.parallax-section {
    height: 100vh;
    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-align: center;
}

.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');
}

.parallax-section h2 {
    font-size: 3rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* 内容区域样式 */
.content {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #1a1a40, #000000);
}

.highlight {
    color: #00ff99;
    font-weight: bold;
}

code {
    display: block;
    background: #1e1e1e;
    color: #00ff99;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    white-space: pre-wrap;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th, table td {
    border: 1px solid #333;
    padding: 10px;
    text-align: left;
}

table th {
    background: #000000;
    color: #00ff99;
}

table td {
    background: #1a1a40;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.follow-mouse {
    position: relative;
}

.follow-mouse::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .parallax-section h2 {
        font-size: 2rem;
    }

    code {
        font-size: 0.9rem;
    }

    table {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .navbar .menu {
        flex-direction: column;
        gap: 10px;
    }

    .parallax-section h2 {
        font-size: 1.5rem;
    }

    code {
        font-size: 0.8rem;
    }

    table {
        font-size: 0.8rem;
    }
}

