
/* 全局样式设置 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #3b401f 0%, #2a3015 100%);
    color: #f5deb3;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
header, footer {
    background: linear-gradient(90deg, #8b4513, #a0522d);
    color: #fff;
    text-align: center;
    padding: 20px 10px;
}
header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 0;
}
main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}
nav {
    width: 100%;
    max-width: 300px;
    background: #7c5e3b;
    border: 2px solid #ff8c00;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
nav ul {
    list-style: none;
    padding: 0;
}
nav ul li {
    margin: 10px 0;
}
nav ul li a {
    color: #f5deb3;
    text-decoration: none;
    transition: color 0.3s ease;
}
nav ul li a:hover {
    color: #ff8c00;
}
section {
    flex: 1;
    min-width: 300px;
    background: #4b4d33;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: #ff8c00;
}
p, li, td {
    font-size: 1rem;
    color: #f5deb3;
}
pre {
    background: #2a3015;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    background: #ff8c00;
    color: #2a3015;
    padding: 2px 5px;
    border-radius: 3px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    border: 1px solid #ff8c00;
    padding: 10px;
    text-align: left;
}
img {
    max-width: 100%;
    height: auto;
    border: 2px solid #ff8c00;
    border-radius: 10px;
}
.button {
    background: #ff8c00;
    color: #2a3015;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.button:hover {
    transform: scale(1.1);
}
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 20px 0;
}
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    nav {
        max-width: 100%;
    }
    pre {
        font-size: 0.9rem;
    }
}

