
/* 基础样式与页面布局 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 300% 300%;
    animation: gradientShift 15s infinite ease-in-out;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.container {
    max-width: 1440px;
    margin: auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.header, .footer {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a2a6c;
    margin-bottom: 0.5rem;
}
.header p {
    font-size: 1rem;
    color: #555;
}
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}
.navbar a {
    text-decoration: none;
    color: #00bfff;
    font-weight: bold;
    transition: color 0.3s;
}
.navbar a:hover {
    color: #ff6347;
}
.content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.content h2 {
    font-size: 2rem;
    color: #1a2a6c;
    margin-bottom: 1rem;
}
.content p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
}
.code-block {
    background: #2d2d2d;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
}
.code-block code {
    white-space: pre-wrap;
}
.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
th, td {
    padding: 0.8rem;
    border: 1px solid #ddd;
    text-align: left;
}
th {
    background: #00bfff;
    color: white;
}
td {
    background: #f9f9f9;
}
.img-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.img-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
.particles {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
    top: 20%;
    left: 10%;
}
@keyframes float {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.2); }
    100% { transform: translateY(0) scale(1); }
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}
@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .header h1 {
        font-size: 2rem;
    }
    .content h2 {
        font-size: 1.75rem;
    }
}
@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    .img-gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

