
/* 基础样式与全局设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle at top left, #1E1E2D, #333333);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    color: #9B4DEA;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

h1 {
    font-size: 3rem;
    background: linear-gradient(45deg, #9B4DEA, #00FFD1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p, ul, pre {
    font-size: 1rem;
}

a {
    color: #00FFD1;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #9B4DEA;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #1E1E2D, #333333);
    padding: 40px 0;
    text-align: center;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(155, 77, 234, 0.3), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.navbar a {
    font-size: 1.1rem;
    position: relative;
}

.navbar a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #00FFD1;
    transition: width 0.3s;
    margin-top: 5px;
}

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

.main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
}

@media (min-width: 768px) {
    .main {
        grid-template-columns: 2fr 1fr;
    }
}

.article {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.article pre {
    background: #2E2E40;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00FFD1;
}

.article code {
    color: #FFAB00;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

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

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

.footer {
    background: linear-gradient(135deg, #333333, #1E1E2D);
    padding: 20px 0;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(155, 77, 234, 0.3), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    header {
        padding: 30px 0;
    }

    h1 {
        font-size: 2rem;
    }

    .article pre, .article code {
        font-size: 0.9rem;
    }
}

button {
    background: #9B4DEA;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

button:hover {
    transform: scale(1.1);
    background: #7F3DA8;
}

@media (min-width: 1200px) {
    .main {
        padding: 60px 0;
    }
}

.tag {
    display: inline-block;
    background: #00FFD1;
    color: #1E1E2D;
    padding: 5px 10px;
    border-radius: 15px;
    margin: 5px 5px 0 0;
    font-size: 0.9rem;
}


