
/* 全局样式定义 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #121212, #1e1e1e);
    color: #ffffff;
    line-height: 1.6;
}

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

p {
    font-size: 16px;
    color: #d3d3d3;
    margin-bottom: 1.5rem;
}

a {
    color: #6f42c1;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #007bff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header {
    background: linear-gradient(90deg, #007bff, #6f42c1);
    color: #ffffff;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.header h1 {
    font-size: 2.5rem;
    margin: 0;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.grid-item {
    background: linear-gradient(135deg, #1e1e1e, #2b2b2b);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.image-box {
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.image-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-box img:hover {
    transform: scale(1.1);
}

.code-block {
    background: #1e1e1e;
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2rem;
    }

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

.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.highlight {
    background: linear-gradient(90deg, #007bff, #6f42c1);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

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

table th {
    background: #2b2b2b;
    color: #ffffff;
}

table td {
    background: #333;
    color: #d3d3d3;
}

.button {
    display: inline-block;
    background: linear-gradient(90deg, #007bff, #6f42c1);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.footer {
    text-align: center;
    padding: 20px;
    background: #121212;
    color: #aaa;
    font-size: 14px;
}

