
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A192F, #0E2439);
    color: #FFFFFF;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: #64FFDA;
}

p {
    font-family: 'Open Sans', sans-serif;
    color: #F4F4F4;
}

a {
    color: #8A2BE2;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF7F50;
}

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.5em;
    color: #64FFDA;
}

.nav a {
    margin-left: 20px;
    font-size: 1em;
}

.hero {
    background: radial-gradient(circle, rgba(10, 25, 47, 0.8), transparent);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(100, 255, 218, 0.3);
    border-radius: 50%;
    animation: moveBackground 15s linear infinite;
}

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

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

.button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #FF7F50;
    color: #FFFFFF;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.button:hover {
    background-color: #38E54D;
    transform: scale(1.05);
}

.section {
    padding: 60px 20px;
}

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

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

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

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

.card h3 {
    margin-top: 0;
    color: #64FFDA;
}

.card p {
    color: #F4F4F4;
}

.code-block {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #FFFFFF;
}

.code-block code {
    display: block;
    white-space: pre;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #FFFFFF;
    border-top: 4px solid #64FFDA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.footer {
    background: #0A192F;
    padding: 20px;
    text-align: center;
    color: #F4F4F4;
}

.footer a {
    color: #64FFDA;
    margin: 0 10px;
}

@media (max-width: 1440px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }
}

@media (max-width: 1200px) {
    .header {
        flex-direction: column;
    }

    .nav {
        margin-top: 10px;
    }
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 0.9em;
    }

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

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }

    .logo {
        font-size: 1.2em;
    }

    .nav a {
        margin-left: 10px;
        font-size: 0.9em;
    }

    .hero {
        padding: 40px 10px;
    }

    .hero h1 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 0.8em;
    }

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

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.2em;
    }

    .hero p {
        font-size: 0.7em;
    }
}

