
/* 基础全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', sans-serif;
    color: #e0e0e0;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    overflow-x: hidden;
    line-height: 1.8;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    letter-spacing: 1px;
    margin-top: 20px;
    margin-bottom: 10px;
}
p {
    font-size: 1rem;
    margin-bottom: 15px;
}
a {
    color: #ffdd57;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #f7c52b;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}
.header {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    animation: rotateBackground 20s linear infinite;
    z-index: 1;
}
@keyframes rotateBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.header-content {
    position: relative;
    z-index: 2;
}
.header h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.navbar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px;
    z-index: 10;
}
.navbar a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
    rel="nofollow"
}
.navbar a:hover {
    background: rgba(255, 255, 255, 0.2);
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.grid-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s ease;
}
.grid-item:hover {
    transform: scale(1.05);
}
.code-block {
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}
.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: starShine 3s infinite;
}
@keyframes starShine {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(0.8); }
}
@media (max-width: 768px) {
    .navbar {
        display: none;
    }
    h1 {
        font-size: 2rem;
    }
    p {
        font-size: 0.9rem;
    }
}

