
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #001F3F, #000000);
    color: #E0E0E0;
    font-family: 'Roboto Mono', monospace;
    overflow-x: hidden;
}

a {
    color: #39FF14;
    text-decoration: none;
}

a[rel="nofollow"]::after {
    content: "";
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 31, 63, 0.9);
    padding: 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(90deg, rgba(57,255,20,0.8), rgba(57,255,20,0.4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    position: relative;
    padding: 5px 10px;
    transition: background 0.3s, border-radius 0.3s;
}

nav ul li a:hover {
    background: rgba(57,255,20,0.2);
    border-radius: 5px;
}

.notice {
    text-align: center;
    padding: 10px;
    background: rgba(57,255,20,0.1);
    color: #39FF14;
    font-size: 14px;
}

.container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    padding: 100px 50px 50px 50px;
}

.sidebar {
    position: sticky;
    top: 80px;
    background: rgba(0, 31, 63, 0.8);
    padding: 20px;
    border-radius: 8px;
}

.sidebar a {
    display: block;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.sidebar a:hover {
    transform: scale(1.05);
}

.main-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(57,255,20,0.2);
}

.main-content h2, .main-content h3 {
    color: #39FF14;
    background: linear-gradient(90deg, rgba(57,255,20,0.8), rgba(57,255,20,0.4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-content pre {
    background: #033;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.main-content code {
    color: #39FF14;
}

.main-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.main-content table, .main-content th, .main-content td {
    border: 1px solid #39FF14;
}

.main-content th, .main-content td {
    padding: 10px;
    text-align: left;
}

.main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
}

.footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 31, 63, 0.9);
    color: #E0E0E0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

@media (max-width: 1440px) {
    .container {
        padding: 80px 40px 40px 40px;
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr 2.5fr;
    }
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr 2fr;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 80px 20px 20px 20px;
    }
    .sidebar {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    nav ul li {
        width: 100%;
    }
}

@media (max-width: 320px) {
    .main-content {
        padding: 10px;
    }
    .sidebar {
        padding: 10px;
    }
}

.button {
    background: #39FF14;
    color: #001F3F;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.button:hover {
    background: #2EFE2E;
}

.ripple:hover {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(57,255,20,0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 粒子动画背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}


