
/* 页面整体样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #964B00, #556B2F);
    overflow-x: hidden;
    padding: 20px;
}
h1, h2, h3 {
    font-family: 'Garamond', serif;
    color: #FFD700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
a {
    color: #FFD700;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* 头部设计 */
header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #8B4513, #556B2F);
    border-bottom: 5px solid #FFD700;
    position: relative;
}
header h1 {
    font-size: 2.5rem;
    margin: 0;
}
header p {
    font-size: 1.2rem;
    color: #f4e1d2;
    margin-top: 10px;
}

/* 卡片式布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.card {
    background-color: #f4e1d2;
    border-radius: 10px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.4);
}
.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* 文章样式 */
article {
    background: #fffaf0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    line-height: 1.8;
}
article h2 {
    color: #8B4513;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 5px;
}
article pre {
    background: #f4e1d2;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
article code {
    color: #8B4513;
    font-weight: bold;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.loader {
    animation: fadeIn 1.5s ease-in-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    .container {
        grid-template-columns: 1fr;
    }
    article pre {
        font-size: 0.9rem;
    }
}

/* 装饰性样式 */
.decorative-line {
    height: 2px;
    background: linear-gradient(to right, #FFD700, #8B4513);
    margin: 20px 0;
}
.tip {
    background: #fffaf0;
    border-left: 5px solid #FFD700;
    padding: 10px;
    margin: 20px 0;
    font-style: italic;
    color: #556B2F;
}

