
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, #1e3c72, #2a5298);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    color: #ff6f61;
    text-align: center;
    margin-top: 20px;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header {
    background: linear-gradient(to right, #ff6f61, #ff4757);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    position: relative;
    margin-bottom: 20px;
}

.header::after {
    content: "这是一个网页样式设计参考";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6f61;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.image-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.image-box img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image-box img:hover {
    transform: scale(1.1);
}

.button {
    background: #ff6f61;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

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

.article-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-container h2 {
    color: #2a5298;
}

.article-container pre {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 24px;
    }

    .article-container pre {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    body {
        font-size: 14px;
    }

    .header h1 {
        font-size: 20px;
    }

    .card {
        padding: 15px;
    }

    .button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

