
/* 主体布局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1E2A38 70%, #5A5A5A 25%, #FFA500 5%);
    color: #FFFFFF;
    line-height: 1.6;
}
/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(30, 42, 56, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 20px;
    font-size: 16px;
    transition: color 0.3s ease;
}
.navbar a:hover {
    color: #FFA500;
}
/* 主页引导区样式 */
.hero {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 42, 56, 0.6);
}
.hero-content {
    position: relative;
    text-align: center;
    color: #FFFFFF;
    z-index: 1;
}
.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}
.hero-content p {
    font-size: 20px;
    animation: fadeInUp 1s ease-out;
}
/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #1E2A38, #5A5A5A);
    border: none;
    color: #FFFFFF;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}
.button:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #FFA500, #28A745);
}
/* 模块化布局容器 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 100px 60px 60px 60px;
}
/* 信息模块样式 */
.module {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.module:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
/* 图片样式 */
.module img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.module img:hover {
    transform: scale(1.05);
}
/* 文章内容样式 */
article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px;
    background-color: rgba(30, 42, 56, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
article h2, article h3 {
    color: #FFA500;
    margin-bottom: 20px;
}
article p {
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 20px;
}
article pre {
    background-color: rgba(0,0,0,0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
article code {
    color: #FFD700;
    font-family: 'Courier New', Courier, monospace;
}
article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
article table, article th, article td {
    border: 1px solid #FFA500;
}
article th, article td {
    padding: 10px;
    text-align: left;
}
article th {
    background-color: #1E2A38;
}
article td {
    background-color: rgba(255, 255, 255, 0.1);
}
/* 代码块区别样式 */
.code-sample {
    background-color: #2E3B4E;
    color: #00FF00;
    padding: 20px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar a {
        margin: 10px 0;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .container {
        padding: 120px 30px 30px 30px;
    }
    article {
        padding: 30px;
    }
}
/* 动画关键帧 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 点缀元素 */
.decorative-line {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FFA500, #28A745);
    margin: 40px 0;
    border-radius: 2px;
}

