
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #1e3c72, #2a5298, #1e3c72);
    background-size: 300% 300%;
    animation: gradientShift 15s ease infinite;
    overflow-x: hidden;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(29, 41, 65, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #00ffcc;
}
.navbar .menu-icon {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
    color: #00ffcc;
}
.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
.navbar ul li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}
.navbar ul li a:hover {
    color: #00ffcc;
}

/* 响应式导航 */
@media (max-width: 768px) {
    .navbar ul {
        display: none;
        flex-direction: column;
        background: rgba(29, 41, 65, 0.9);
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .navbar ul.active {
        display: flex;
    }
    .navbar .menu-icon {
        display: block;
    }
}

/* 主标题区域 */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
    opacity: 0.2;
    z-index: -1;
}
.hero-section h1 {
    font-size: 3em;
    color: #00ffcc;
    animation: fadeIn 2s ease-in-out;
}
.hero-section p {
    font-size: 1.2em;
    margin-top: 10px;
    animation: slideIn 2s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 卡片布局 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    background: rgba(29, 41, 65, 0.8);
}
.card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 255, 204, 0.3);
}
.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 文章排版 */
.article-section {
    background: rgba(29, 41, 65, 0.9);
    padding: 40px 20px;
    color: #fff;
}
.article-section h2, .article-section h3 {
    color: #00ffcc;
    margin-top: 20px;
}
.article-section pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9em;
}
.article-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.article-section table th, .article-section table td {
    border: 1px solid #00ffcc;
    padding: 10px;
    text-align: left;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2em;
    }
    .card-container {
        justify-content: center;
    }
    .card {
        width: 100%;
    }
}

