
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0F2027, #2C5364, #203A43);
    color: #ffffff;
    font-family: 'Roboto Mono', monospace;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    margin: 0;
    color: #00ffcc;
}

nav {
    margin-top: 10px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00ffcc;
}

main {
    flex: 1;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
}

section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

section h2 {
    font-family: 'Poppins', sans-serif;
    color: #ff9900;
    margin-top: 0;
}

section p, section ul, section pre {
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    color: #e0e0e0;
}

section ul {
    list-style: none;
    padding: 0;
}

section ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00ffcc;
}

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

pre code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #00ffcc;
}

img {
    max-width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

.footer {
    background: rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 15px;
    font-family: 'Roboto Mono', monospace;
    color: #ffffff;
}

.footer p {
    margin: 0;
}

@media (min-width: 480px) {
    main {
        padding: 60px 40px;
    }
}

@media (min-width: 768px) {
    main {
        grid-template-columns: 2fr 1fr;
    }
}

@media (min-width: 1024px) {
    main {
        grid-template-columns: 3fr 1fr;
    }
}

@media (min-width: 1200px) {
    main {
        padding: 80px 60px;
    }
}

@media (min-width: 1440px) {
    main {
        padding: 100px 80px;
    }
}

/* 动画效果 */
.section-hover-effect:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.button {
    background: #00ffcc;
    color: #000000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.3s ease;
}

.button:hover {
    background: #ff9900;
}

.code-block {
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

.code-block code {
    color: #00ffcc;
    font-family: 'Roboto Mono', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

a.external-link {
    color: #ff9900;
}

a.external-link:hover {
    color: #00ffcc;
}

/* 动态粒子效果 */
.particle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* 按钮样式 */
.toggle-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5em;
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
}

.nav-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    transition: left 0.3s ease;
    padding-top: 60px;
    z-index: 1050;
}

.nav-menu.open {
    left: 0;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 字体调整 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

p, li, pre, code {
    font-family: 'Roboto Mono', monospace;
}

/* 特殊提示 */
.reference-note {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-left: 5px solid #00ffcc;
    margin: 20px 0;
    border-radius: 3px;
}


