
/* 基础样式 */
body {
    margin: 0;
    font-family: 'Garamond', serif;
    background: linear-gradient(135deg, #7C604D, #1E90FF, #2E8B57);
    color: #F5F5DC;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
a {
    color: #1E90FF;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #FF4500;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to right, #2E8B57, #1E90FF);
    color: #FFD700;
    position: relative;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 10px,
        transparent 10px,
        transparent 20px
    );
    animation: scanline 5s linear infinite;
}
@keyframes scanline {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
.content-box {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}
.content-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
    pointer-events: none;
}
.image-box {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.image-box img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}
.image-box:hover img {
    transform: scale(1.1);
}
.code-block {
    background: #1E1E1E;
    color: #00FF00;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .header {
        padding: 20px;
    }
    .code-block {
        font-size: 12px;
    }
}

