
/* 页面整体样式定义 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4568DC, #B06AB3);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}
header {
    text-align: center;
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.2);
}
header h1 {
    font-size: 2.5em;
    color: #FFC107;
    margin-bottom: 10px;
}
header p {
    font-size: 1.2em;
    color: #ddd;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}
.card h3 {
    font-size: 1.5em;
    color: #FF9800;
    margin-bottom: 10px;
}
.card p {
    font-size: 1em;
    color: #eee;
}
.article-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    position: relative;
}
.article-section::before {
    content: '这是一个网页样式设计参考';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #FF5722;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8em;
    border-radius: 5px;
}
.article-section h2 {
    color: #FFEB3B;
    margin-bottom: 20px;
}
.article-section pre {
    background: #222;
    color: #00ff00;
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
}
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    margin-top: 40px;
}
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .article-section {
        padding: 20px;
    }
}
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    .card h3 {
        font-size: 1.2em;
    }
}

