
/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1A1A2E, #16213E);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 {
    background: linear-gradient(90deg, #4C1F9E, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
}

h2 {
    color: #FFD700;
    font-size: 2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

h3 {
    color: #FF6F61;
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5em;
    font-size: 1rem;
}

a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #FF6F61;
}

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

.card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.02);
}

pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

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

th, td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    text-align: left;
}

th {
    background: rgba(255, 255, 255, 0.1);
    color: #FFD700;
}

td {
    color: #FFFFFF;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }
}

@keyframes starGlow {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.star {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #FFD700;
    border-radius: 50%;
    animation: starGlow 2s infinite;
    margin: 5px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    margin: 0 10px;
}

.sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .sidebar {
        display: block;
        position: fixed;
        left: 0;
        top: 60px;
        width: 200px;
        background: rgba(0, 0, 0, 0.8);
        height: calc(100vh - 60px);
        padding: 20px;
    }
}

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