
/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f4e6d3, #d9cbb8);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: 'Garamond', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
h1 {
    font-size: 2.5rem;
    text-align: center;
    color: #4a3f35;
    margin-bottom: 20px;
}
h2 {
    font-size: 2rem;
    color: #6b5f55;
    margin-top: 30px;
    margin-bottom: 15px;
}
h3 {
    font-size: 1.75rem;
    color: #8c7e72;
    margin-top: 25px;
    margin-bottom: 10px;
}
p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}
ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
}
li {
    margin-bottom: 5px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}
th {
    background-color: #f8f4f0;
    color: #555;
}
pre {
    background-color: #f9f6f2;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
code {
    background-color: #f9f6f2;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d35400;
}
button {
    background-color: #ff9f43;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.card {
    background: linear-gradient(135deg, #fff8ed, #f2ebe3);
    border: 1px solid #e0d5c4;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}
.image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}
.image-container {
    text-align: center;
}
@media (max-width: 400px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    p, li {
        font-size: 0.9rem;
    }
    pre {
        font-size: 0.8rem;
    }
}

