
/* 主要颜色设置：深蓝色与黑色作为主色调，亮橙色和绿色作为辅色，点缀色为白色 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0D2C54, #121212);
    color: #FFFFFF;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #FFA726;
}

/* 主展示区样式 */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') center center / cover no-repeat;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 44, 84, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #FFFFFF;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 提示信息样式 */
.banner {
    background: #FFA726;
    color: #121212;
    padding: 10px 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* 创意矩阵网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 60px 40px;
    background: #0D2C54;
}

.grid-item {
    background: #1E3A8A;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s, background 0.3s;
}

.grid-item:hover {
    transform: scale(1.05);
    background: #234E8C;
}

.grid-item img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.grid-item img:hover {
    transform: scale(1.1);
}

.grid-item h3 {
    color: #FFA726;
    margin-top: 15px;
    font-size: 20px;
}

.grid-item p {
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.5;
}

/* 文章内容样式 */
.article-content {
    padding: 40px;
    background: #121212;
    font-size: 16px;
    line-height: 1.8;
}

.article-content h2, .article-content h3 {
    color: #FFA726;
}

.article-content pre {
    background: #0D2C54;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content code {
    color: #66BB6A;
    font-family: 'Courier New', Courier, monospace;
}

.article-content a {
    color: #66BB6A;
    text-decoration: none;
}

.article-content a:hover {
    color: #FFA726;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px 20px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .grid-container {
        padding: 20px 20px;
    }
}

/* 代码示例样式 */
.code-example {
    background: #0D2C54;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.code-example code {
    color: #66BB6A;
    font-family: 'Courier New', Courier, monospace;
    display: block;
    white-space: pre-wrap;
}

/* 章节导航样式 */
.chapter-nav {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(18, 18, 18, 0.8);
    padding: 10px;
    border-radius: 8px;
}

.chapter-nav a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    margin: 10px 0;
    font-size: 14px;
    transition: color 0.3s;
}

.chapter-nav a:hover {
    color: #FFA726;
}

