
/* 页面全局样式 */
:root {
    --main-bg: radial-gradient(circle, #4CAF50, #2196F3);
    --card-bg: linear-gradient(135deg, #f9f9f9, #ffffff);
    --highlight-color: #FF9800;
    --text-color: #333;
    --code-bg: #f4f4f4;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    font-family: 'Fira Sans', 'Roboto', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
    background: var(--main-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

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

header {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(to right, #4CAF50, #FF9800);
    color: white;
    animation: header-move 10s infinite alternate;
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

p.intro {
    font-size: 1.2rem;
    color: #f3f3f3;
}

.card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

pre {
    background: var(--code-bg);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

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

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

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

th {
    background: #f4f4f4;
    color: #333;
}

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

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

footer {
    text-align: center;
    padding: 20px;
    background: #2196F3;
    color: white;
    margin-top: 40px;
}

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

    .card {
        padding: 15px;
    }

    pre {
        font-size: 0.9rem;
    }
}

