
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Bodoni+Moda:ital,wght@0,400;1,700&display=swap');

/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #654321, #8B0000, #2E8B57);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Bodoni Moda', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #FFD700;
    border-radius: 2px;
}

/* 文章排版 */
article {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

article p {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

article pre {
    background: #333;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    color: #00FF00;
    margin: 20px 0;
}

/* 图片装饰 */
.decorative-image {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    margin: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.decorative-image:hover {
    transform: scale(1.05);
}

/* 卡片布局 */
.card {
    background: #fff;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    margin: 10px;
    flex: 1 1 calc(33.333% - 20px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* 按钮设计 */
.button {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease-in-out;
}

.button:hover {
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .card {
        flex: 1 1 100%;
    }

    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    article {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }
}

