
/* 基础样式与全局设置 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #333, #663399);
    color: #fff;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

a {
    color: #0074D9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 116, 217, 0.2), transparent);
    z-index: -1;
}

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

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, #333, #663399);
    color: #fff;
    padding: 20px;
    display: none;
}

.sidebar a {
    display: block;
    margin: 10px 0;
    color: #fff;
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .sidebar {
        display: block;
    }
}

.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0074D9, #663399);
    color: #fff;
}

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

.content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 20px;
}

pre {
    background: #000;
    color: #00ff00;
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
}

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

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

table th {
    background: #0074D9;
    color: #fff;
}

.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 300px;
    margin: 20px 0;
}

.footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #663399, #333);
    color: #fff;
    font-size: 0.9rem;
}

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

    pre {
        font-size: 0.9rem;
    }

    table {
        font-size: 0.9rem;
    }
}

