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

body {
    font-family: 'Roboto', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f0f8ff, #e6e6fa);
    overflow-x: hidden;
}

/* 全局容器 */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

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

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

.navbar a:hover {
    color: #00ffff;
}

/* 英雄图区域 */
.hero {
    height: 400px;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center / cover;
    position: relative;
    margin-top: 60px;
    border-radius: 10px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero-button {
    background: #00ffff;
    color: #111;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.hero-button:hover {
    transform: scale(1.05);
}

/* 卡片设计 */
.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.9rem;
}

/* 示例数据展示 */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.data-item {
    background: rgba(0, 116, 217, 0.1);
    border: 1px solid rgba(0, 116, 217, 0.3);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: background 0.3s ease;
}

.data-item:hover {
    background: rgba(0, 116, 217, 0.2);
}

/* 文章展示区域 */
.article-container {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.article-container h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.article-container h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.article-container p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-container pre {
    background: #f0f8ff;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    padding: 10px;
    overflow-x: auto;
}

.article-container code {
    font-family: 'Courier New', Courier, monospace;
    color: #0074d9;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        height: 300px;
    }
}

