
/* 全局样式与背景渐变 */
body {
    margin: 0;
    font-family: 'Merriweather', serif;
    background: linear-gradient(135deg, #8BC34A, #3F51B5);
    background-size: cover;
    color: #fff;
    line-height: 1.6;
    padding: 20px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #FFC107;
}

p {
    font-family: 'Merriweather', serif;
    color: #f0f0f0;
}

a {
    color: #FFC107;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

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

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

.sidebar {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
}

.sidebar a {
    display: block;
    margin-bottom: 10px;
    color: #FFC107;
    text-decoration: none;
    rel: "nofollow";
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

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

.highlight {
    color: #FFC107;
    font-style: italic;
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }

    .parallax {
        height: 200px;
    }
}

