
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000033, #1A2474);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    margin-top: 0;
}

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

header {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 51, 0.8), rgba(26, 36, 116, 0.8)), url('https://images.gptkong.com/demo/sample1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

header h1 {
    font-size: 3rem;
    text-shadow: 0 4px 10px rgba(0, 255, 153, 0.5);
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 51, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #00FF99;
    transform: scale(1.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00FF99;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 255, 153, 0.5);
}

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

.icon {
    width: 40px;
    height: 40px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.2);
}

pre {
    background: rgba(0, 0, 51, 0.8);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

code {
    color: #00FF99;
    font-family: 'Courier New', Courier, monospace;
}

.button {
    background: #1A2474;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background: #00FF99;
    transform: scale(1.1);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links a {
        margin: 10px 0;
    }
}

