
/* 全局样式与色彩定义 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #121242, #6300FF);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #39FF14;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}
p, li {
    color: #B8B8B8;
    font-size: 1rem;
}
a {
    color: #39FF14;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
a:hover {
    color: #ffffff;
}
code {
    background: rgba(0, 0, 0, 0.5);
    color: #39FF14;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

/* 布局与模块化设计 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: grid;
    gap: 20px;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    transition: transform 0.3s ease-in-out;
}
.card:hover {
    transform: translateY(-5px);
}

/* 动画与交互效果 */
@keyframes flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.data-flow {
    position: relative;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #39FF14, transparent);
    animation: flow 5s infinite;
}
.button {
    display: inline-block;
    background: linear-gradient(135deg, #39FF14, #6300FF);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(57, 255, 20, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    h1, h2, h3 {
        font-size: 1.5rem;
    }
    pre {
        font-size: 0.8rem;
    }
}
@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }
    .container {
        padding: 0.5rem;
    }
    .card {
        padding: 1rem;
    }
}

