
/* 全局样式定义 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5deb3, #fff8dc);
    color: #333;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bodoni Moda', serif;
    letter-spacing: 1.5px;
    margin-top: 20px;
    margin-bottom: 10px;
}

h1 {
    font-size: 2.5rem;
    color: #8b4513;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f9f9f9;
    padding: 5px;
    border-radius: 5px;
    display: block;
    white-space: pre-wrap;
    overflow-x: auto;
    max-width: 100%;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

pre {
    background-color: #fafafa;
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.highlight {
    color: #ff4500;
    font-weight: bold;
}

button {
    background-color: #ff69b4;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    border: 2px solid #8b4513;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1rem;
    text-align: left;
    border: 1px solid #ddd;
}

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

th {
    background-color: #ffebcd;
    color: #8b4513;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

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

    h1 {
        font-size: 2rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    code {
        font-size: 0.9rem;
    }

    pre {
        font-size: 0.9rem;
    }
}

.icon {
    filter: url('#pixelate');
}

svg defs {
    filter: pixelate(8);
}

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

.header {
    text-align: center;
    margin-bottom: 30px;
}

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

.footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.article-container {
    background-color: #fffaf0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.article-container p {
    margin-bottom: 15px;
}

.article-container ol {
    padding-left: 20px;
}

.article-container li {
    margin-bottom: 10px;
}

