
/* 全局样式与布局 */
body {
    margin: 0;
    font-family: 'Courier Prime', monospace;
    background: linear-gradient(135deg, #222, #444);
    color: #f8f8f8;
    line-height: 1.6;
    overflow-x: hidden;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    color: #FFA500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
h1 {
    font-size: 48px;
    text-align: center;
    margin-top: 20px;
}
h2 {
    font-size: 36px;
    margin-bottom: 15px;
}
h3 {
    font-size: 24px;
    margin-bottom: 10px;
}
p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 15px;
}
a {
    color: #0074D9;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #FFA500;
}
code, pre {
    background-color: #333;
    color: #00ff00;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}
pre {
    overflow-x: auto;
    max-width: 100%;
}

/* 卡片样式 */
.card {
    background: linear-gradient(135deg, #333, #555);
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.4);
}
.card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* 按钮样式 */
button {
    background-color: #FFA500;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
button:hover {
    background-color: #E67E22;
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 36px;
    }
    h2 {
        font-size: 28px;
    }
    h3 {
        font-size: 20px;
    }
    p, code, pre {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 30px;
    }
    h2 {
        font-size: 24px;
    }
    h3 {
        font-size: 18px;
    }
    p, code, pre {
        font-size: 12px;
    }
    .card {
        padding: 15px;
    }
}

/* 特殊效果 */
.header-section {
    background: linear-gradient(135deg, #FFA500, #E67E22);
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.header-section::after {
    content: "这是一个网页样式设计参考";
    display: block;
    font-size: 12px;
    color: #ccc;
    margin-top: 10px;
}
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.image-gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}
.image-gallery img:hover {
    transform: scale(1.2);
}

