
/* 基础样式与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4568DC, #B06AB3);
    color: #fff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
}
p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1rem;
}
a {
    color: #FFC371;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: #FFD700;
}
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 2rem 0;
}
/* 头部设计 */
header {
    position: relative;
    width: 100%;
    height: 400px;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    z-index: 1;
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
header h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
/* 卡片布局 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}
/* 按钮样式 */
.button {
    display: inline-block;
    background-color: #FFC371;
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.button:hover {
    transform: scale(1.1);
    background-color: #FFD700;
}
/* 文章样式 */
article {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
article h2 {
    color: #4568DC;
}
article pre {
    background: #f4f4f4;
    color: #333;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}
/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    .card-container {
        grid-template-columns: 1fr;
    }
    article {
        padding: 1rem;
    }
}
@media (max-width: 400px) {
    header h1 {
        font-size: 1.5rem;
    }
    p, li {
        font-size: 14px;
    }
}

