
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #0A192F, #6C5CE7);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 标题与顶部区域 */
header {
    position: relative;
    height: 100vh;
    background: url("https://images.gptkong.com/demo/sample1.png") no-repeat center center/cover;
    overflow: hidden;
}
header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    text-align: center;
    margin-top: 20vh;
    text-shadow: 0px 0px 10px rgba(255, 215, 0, 0.8);
    animation: fadeIn 2s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 卡片布局 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.7);
}
.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 动态粒子效果 */
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #FFFFFF;
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 0.5;
    }
}

/* 文章内容样式 */
article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}
article h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    text-shadow: 0px 0px 10px rgba(255, 215, 0, 0.8);
}
article pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
article th, article td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    text-align: left;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    .card-container {
        grid-template-columns: 1fr;
    }
    article h2 {
        font-size: 2rem;
    }
}

