
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    background: radial-gradient(circle, #0D47A1, #8BC34A);
    color: #FFFFFF;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
p {
    margin-bottom: 1em;
}
a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #FFC107;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(to right, #0D47A1, #8BC34A);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
}
.header .logo {
    font-size: 1.5em;
    font-weight: bold;
}
.header .nav-links {
    display: flex;
    gap: 15px;
}
.header .nav-links a {
    padding: 5px 10px;
    border-radius: 5px;
}
.header .nav-links a:hover {
    background: #FFD700;
    color: #0D47A1;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover,
                linear-gradient(to bottom, rgba(13, 71, 161, 0.8), rgba(139, 195, 74, 0.8));
}
.hero h1 {
    font-size: 3em;
    animation: fadeIn 3s ease-in-out;
}
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 卡片式功能模块 */
.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}
.card {
    background: #FFFFFF;
    color: #0D47A1;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
}
.card:hover {
    transform: scale(1.05);
}
.card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* 文章展示 */
.article-container {
    background: #FFFFFF;
    color: #0D47A1;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.article-container pre {
    background: #0D47A1;
    color: #FFFFFF;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}
.article-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.article-container th, .article-container td {
    border: 1px solid #0D47A1;
    padding: 10px;
    text-align: center;
}

/* 自适应布局 */
@media (max-width: 768px) {
    .header .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    .hero h1 {
        font-size: 2em;
    }
    .cards {
        flex-direction: column;
        align-items: center;
    }
}

