
/* 基础样式与布局 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #e0e0e0;
    background: linear-gradient(to bottom, #000033, #330066);
    overflow-x: hidden;
}
h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    color: #ffffff;
}
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 10px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
header h1 {
    font-size: 24px;
    margin: 0;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
}
main {
    margin-top: 80px;
    padding: 20px;
    min-height: calc(100vh - 80px);
    background: radial-gradient(circle, rgba(135, 206, 250, 0.2), transparent),
                linear-gradient(to bottom, #000033, #330066);
    position: relative;
    overflow: hidden;
}
.card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}
pre {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    padding: 10px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
code {
    color: #00ffcc;
    font-size: 14px;
}
button {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.8);
}
.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 2s infinite;
    top: 0;
    left: 0;
}
@keyframes twinkle {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    header h1 {
        font-size: 20px;
    }
}

