
/* 全局样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', sans-serif;
    background: linear-gradient(to bottom, #8B0000, #556B2F);
    color: #F5F5DC;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #FFD700;
}

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

a:hover {
    color: #FF4500;
}

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

/* 背景与纹理 */
.paper-texture {
    background: url('https://images.gptkong.com/demo/sample1.png');
    background-size: cover;
    filter: grayscale(10%);
    border-radius: 10px;
    padding: 20px;
}

.noise-effect {
    background: radial-gradient(circle, rgba(0,0,0,0.2), transparent 80%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* 布局与网格系统 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.grid-item {
    background-color: #EEDFCC;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

/* 动画效果 */
.scanline-effect {
    position: relative;
    overflow: hidden;
}

.scanline-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        transparent,
        transparent 9px,
        rgba(255, 255, 255, 0.1) 10px
    );
    animation: scan 2s linear infinite;
}

@keyframes scan {
    from { transform: translateY(-100%); }
    to { transform: translateY(100%); }
}

/* 代码块样式 */
pre {
    background-color: #CD853F;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

code {
    color: #FFFFFF;
    font-family: 'Courier New', Courier, monospace;
}

/* 图片与装饰性元素 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 自适应设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    pre {
        font-size: 14px;
    }
}

@media (min-width: 1024px) {
    body {
        padding: 40px;
    }
}

