
/* 基础样式设置 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #1e1e2f, #3a2f45);
    color: #fff;
    line-height: 1.6;
    padding: 20px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bodoni', serif;
    font-weight: bold;
    color: #d4af37;
}
a {
    color: #ff6ec7;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #ff99cc;
}
.container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.sidebar {
    width: 30%;
    background: linear-gradient(to right, #2c3e50, #34495e);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.main-content {
    width: 65%;
    background: linear-gradient(to bottom, #1a1a2e, #2c3e50);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.img-deco {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}
.retro-futuristic {
    background: linear-gradient(to bottom, #654321, #008000);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
pre {
    background: #2c3e50;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    color: #ffcc00;
    font-size: 14px;
}
code {
    color: #ffcc00;
}
.icon {
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
    filter: grayscale(20%);
    width: 50px;
    height: 50px;
    display: inline-block;
    margin-right: 10px;
}
.hover-effect {
    position: relative;
    overflow: hidden;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}
.hover-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 1s ease-out;
}
@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar, .main-content {
        width: 100%;
    }
    pre {
        font-size: 12px;
    }
}

