
/* 基础样式与布局 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A1F44, #6C5CE7);
    color: #fff;
    line-height: 1.6;
}
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.card {
    background: linear-gradient(to bottom, #BEBEBE, #808080);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin: 15px;
    padding: 20px;
    width: calc(33.33% - 40px);
    transition: transform 0.3s ease;
    position: relative;
}
.card:hover {
    transform: translateY(-10px);
}
.node {
    position: relative;
    animation: float 3s infinite ease-in-out;
}
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}
.button {
    background: linear-gradient(to bottom, #FF6F61, #34D399);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s;
}
@keyframes ripple {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 200%; height: 200%; opacity: 0; }
}
code {
    background: #0A1F44;
    color: #FF6F61;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
    display: block;
    margin: 10px 0;
}
pre {
    background: #0A1F44;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    border: 1px solid #fff;
    padding: 10px;
    text-align: center;
}
@media (max-width: 1024px) {
    .card {
        width: calc(50% - 40px);
    }
}
@media (max-width: 768px) {
    .card {
        width: 100%;
    }
}

