
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto Mono', sans-serif;
    background: linear-gradient(135deg, #0000FF, #6F00FF);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    color: #6F00FF;
    font-weight: bold;
}

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

a:hover {
    color: #FF00FF;
}

.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);
    backdrop-filter: blur(10px);
    color: #fff;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #00FFFF;
}

.navbar .menu a {
    margin-left: 20px;
    rel="nofollow";
}

/* 主体内容 */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center/cover, linear-gradient(135deg, #0000FF, #6F00FF);
    color: #fff;
}

header h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

header p {
    font-size: 18px;
    max-width: 600px;
}

/* 内容区域 */
section {
    padding: 60px 20px;
    background: #000;
}

section h2 {
    margin-bottom: 20px;
    font-size: 32px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #6F00FF;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00FFFF;
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.code-block {
    background: #1E1E1E;
    color: #00FFFF;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 36px;
    }

    section h2 {
        font-size: 28px;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px;
    }

    header h1 {
        font-size: 28px;
    }

    .navbar .menu a {
        margin-left: 10px;
    }
}

