
/* 基础样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #000033, #000066);
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-align: center;
    color: #66ffff;
    text-shadow: 0 0 10px #66ffff, 0 0 20px #66ffff;
}

p {
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-align: justify;
}

pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
}

code {
    color: #66ffff;
    font-family: 'Courier New', monospace;
}

/* 星河背景与装饰 */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* 卡片与模块设计 */
.card {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.item {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.item:hover {
    transform: scale(1.1);
}

/* 淡入效果 */
.fade-in {
    animation: fadeInEffect 2s ease-in-out;
}

@keyframes fadeInEffect {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    pre {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    h1, h2, h3, h4 {
        font-size: 1.5rem;
    }

    p {
        font-size: 14px;
    }
}

