
/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@400;700&display=swap');

/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0a193b, #380c6d);
    color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
}

p {
    line-height: 1.6;
    margin: 20px 0;
}

pre, code {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
}

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

a:hover {
    color: #ffd700;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.navbar a {
    margin: 0 15px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
}

.navbar a:hover {
    color: #00ff8c;
}

.header {
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 25, 59, 0.7);
}

.header-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.header-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #00ff8c;
}

.header-content p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.section {
    padding: 100px 50px;
    background: linear-gradient(135deg, #380c6d, #0a193b);
    position: relative;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #0a193b, #380c6d);
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    width: 300px;
    margin: 20px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 16px rgba(0, 255, 140, 0.5);
}

.card img {
    width: 100%;
    border-radius: 5px;
}

.button {
    background-color: #00ff8c;
    border: none;
    padding: 15px 30px;
    color: #000000;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0px 8px 16px rgba(0, 255, 140, 0.5);
    background-color: #ffd700;
    color: #ffffff;
}

.footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 50px;
    text-align: center;
}

.footer a {
    color: #00ff8c;
    margin: 0 10px;
    font-size: 18px;
}

@keyframes particles {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #ffffff;
    animation: particles 5s infinite;
}

@media (max-width: 1440px) {
    .header-content h1 {
        font-size: 40px;
    }

    .header-content p {
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .section {
        padding: 80px 30px;
    }

    .navbar a {
        font-size: 15px;
        margin: 0 10px;
    }

    .button {
        font-size: 16px;
        padding: 12px 25px;
    }
}

@media (max-width: 1024px) {
    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .header-content h1 {
        font-size: 36px;
    }

    .header-content p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 20px;
    }

    .navbar a {
        margin: 10px 0;
        font-size: 14px;
    }

    .header-content h1 {
        font-size: 32px;
    }

    .header-content p {
        font-size: 14px;
    }

    .section {
        padding: 60px 20px;
    }

    .card {
        width: 90%;
    }

    .button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 28px;
    }

    .header-content p {
        font-size: 12px;
    }

    .section {
        padding: 40px 10px;
    }

    .navbar {
        padding: 15px 20px;
    }

    .button {
        font-size: 12px;
        padding: 8px 16px;
    }
}

@media (max-width: 320px) {
    .header-content h1 {
        font-size: 24px;
    }

    .header-content p {
        font-size: 10px;
    }

    .section {
        padding: 30px 5px;
    }

    .navbar a {
        font-size: 12px;
    }

    .button {
        font-size: 10px;
        padding: 6px 12px;
    }
}

/* 代码块样式 */
.code-block {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.code-block code {
    color: #00ff8c;
}


