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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0d1b2a, #1b263b, #415a77, #778da9);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav a {
    color: #adff2f;
    text-decoration: none;
    margin: 0 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ff6ec7;
}

section {
    min-height: 100vh;
    padding: 100px 20px 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.section-content {
    max-width: 1200px;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    color: #ff6ec7;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
    font-size: 18px;
}

pre {
    background: #1b263b;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

button {
    padding: 10px 20px;
    background: #00ff7f;
    border: none;
    border-radius: 5px;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #adff2f;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

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

.footer-text {
    font-size: 16px;
    color: #ffffff;
}

@media (max-width: 1440px) {
    h1 {
        font-size: 48px;
    }
}

@media (max-width: 1200px) {
    h1 {
        font-size: 42px;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    
    nav a {
        margin: 10px 0;
        font-size: 16px;
    }
    
    h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }
    
    p, code {
        font-size: 16px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 24px;
    }
    
    p, code {
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes float {
    0% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-20px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.5; }
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}

/* 代码块样式 */
pre code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 样式设计参考提示 */
.reference-note {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

/* 示例展示区样式 */
.example-display {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    margin-top: 40px;
}

.example-display h2 {
    color: #adff2f;
}

.example-display pre {
    background: #0f0f20;
}

/* 按钮悬停效果 */
.button-hover:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}


