
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.header {
    text-align: center;
    padding: 50px 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    animation: fadeInBackground 15s linear infinite;
}

.header h1 {
    font-size: 3rem;
    color: #39ff14;
    text-shadow: 0px 0px 10px rgba(57, 255, 20, 0.8);
    animation: titleMove 5s infinite alternate;
}

@keyframes fadeInBackground {
    0% { background: rgba(0, 0, 0, 0.5); }
    50% { background: rgba(30, 30, 60, 0.5); }
    100% { background: rgba(0, 0, 0, 0.5); }
}

@keyframes titleMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #39ff14;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.navbar a:hover {
    color: #39ff14;
}

.navbar a:hover::after {
    width: 100%;
}

.section {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.section h2 {
    font-size: 2rem;
    color: #d63031;
    margin-bottom: 20px;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.5);
}

.section p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.code-block {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #39ff14;
    margin-bottom: 20px;
}

.code-block code {
    display: block;
    white-space: pre-wrap;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.image-gallery img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

.footer {
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    margin-top: 40px;
}

.footer p {
    font-size: 1rem;
    color: #ffffff;
}

/* 微动画效果 */
.button {
    background-color: #39ff14;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 1rem;
}

.button:hover {
    transform: scale(1.1);
    background-color: #d63031;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    .navbar a {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    .navbar a {
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .header h1 {
        font-size: 1.5rem;
    }
    .section p {
        font-size: 1rem;
    }
}

