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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #E0C3FC 0%, #8EC5FC 100%);
    color: #2D3748;
    line-height: 1.6;
    padding: 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #2D3748;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 10px;
    font-size: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #4A90E2;
    color: #fff;
}

pre {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

a {
    color: #4A90E2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.navbar {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.navbar a {
    margin-left: 20px;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.button {
    background-color: #F5B041;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.image-gallery img {
    width: 100%;
    border-radius: 10px;
}

.footer {
    background: rgba(45, 55, 72, 0.9);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 30px;
}

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

body {
    animation: aurora-move 15s linear infinite;
    background-size: 400% 400%;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        max-width: 1100px;
    }
}

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

@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar a {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .card {
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 16px;
    }

    p, li, table, pre {
        font-size: 14px;
    }

    .navbar {
        padding: 10px 20px;
    }
}

@media (max-width: 320px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }

    pre {
        font-size: 12px;
    }

    table, th, td {
        font-size: 12px;
    }
}

