
/* 全局样式与页面背景 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, rgba(0, 51, 102, 1), rgba(76, 0, 153, 1));
    color: #FFFFFF;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png'), url('https://images.gptkong.com/demo/sample2.png');
    background-repeat: repeat, repeat;
    opacity: 0.3;
    z-index: -1;
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, 50px); }
}

/* 标题区域 */
.header {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.header h1 {
    font-family: 'Fira Sans', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    color: #4C0099;
    margin: 0;
}

.header p {
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-top: 10px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 51, 102, 0.8);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
}

.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #0074FF;
}

/* 主内容区 */
.container {
    max-width: 1200px;
    margin: 150px auto 50px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 按钮样式 */
button {
    background: linear-gradient(to right, #0074FF, #4C0099);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.1);
    background: linear-gradient(to right, #4C0099, #0074FF);
}

/* 文章内容样式 */
.article {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-top: 50px;
}

.article h2, .article h3 {
    color: #4C0099;
    font-family: 'Fira Sans', sans-serif;
    font-weight: bold;
}

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

.article table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.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: 2rem;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

