
/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: white;
    background: linear-gradient(135deg, #1a0d57, #0f0c29);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 标题与头部样式 */
header {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url("https://images.gptkong.com/demo/sample1.png"), linear-gradient(to bottom, #1a0d57, #0f0c29);
    background-size: cover;
    background-blend-mode: overlay;
    backdrop-filter: blur(5px);
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

header p {
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #ff6f61;
    transform: scale(1.1);
}

/* 主体内容区域 */
main {
    padding: 2rem;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 卡片设计 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin: 10px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 文章展示区域 */
.article-container {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.article-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.article-container pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}

.article-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.article-container th,
.article-container td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    text-align: left;
}

/* 动态粒子效果 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    animation: float 5s infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    main {
        grid-template-columns: 1fr;
    }

    .article-container pre {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .card {
        padding: 1rem;
    }

    .article-container h2 {
        font-size: 1.5rem;
    }
}

