
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #333333;
    background: linear-gradient(135deg, #2E7D32 70%, #1976D2 25%, #6A1B9A 5%);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(46, 125, 50, 0.9); /* 深绿色，带透明度 */
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    transition: background 0.3s ease;
    rel="nofollow";
}

.navbar a:hover {
    background: linear-gradient(135deg, #1976D2, #6A1B9A);
    border-radius: 4px;
}

/* 主容器样式 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    padding: 100px 40px 40px 40px; /* 顶部预留导航栏空间 */
    width: 100%;
    box-sizing: border-box;
}

/* 卡片式模块样式 */
.card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

/* 标题样式 */
h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: #2E7D32;
    margin-top: 0;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

/* 段落样式 */
p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333333;
}

/* 代码块样式 */
pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    overflow: auto;
    position: relative;
}

pre code {
    font-family: 'Courier New', Courier, monospace;
    color: #d63384;
    font-size: 14px;
}

/* 代码块标题 */
pre code::before {
    content: "代码示例";
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333333;
}

/* 图片样式 */
img.decorative {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.decorative:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

/* 折叠内容样式 */
.details {
    font-size: 14px;
    color: #555555;
}

summary {
    cursor: pointer;
    font-weight: bold;
    color: #1976D2;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .container {
        padding: 120px 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 20px;
    }
    h3 {
        font-size: 18px;
    }
    p {
        font-size: 14px;
    }
}

/* 视差滚动效果 */
.parallax-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-size: cover;
    transform: translateY(-25%);
    transition: transform 0.5s ease-out;
}

.parallax-section:hover .parallax-background {
    transform: translateY(-20%);
}

/* 按钮样式 */
.button {
    background-color: #2E7D32;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.button:active {
    transform: scale(0.95);
}

.button:hover {
    background: linear-gradient(90deg, #1976D2, #6A1B9A);
}

/* 菜单项样式 */
.menu-item {
    position: relative;
    padding: 10px 15px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.menu-item:hover {
    background: linear-gradient(135deg, #1976D2, #6A1B9A);
}

/* 插画与科技图案融合 */
.illustration {
    position: relative;
    width: 100%;
    height: 300px;
    background-image: url('https://images.gptkong.com/demo/sample2.png'), url('https://images.gptkong.com/demo/sample3.png');
    background-size: contain, cover;
    background-repeat: no-repeat, no-repeat;
    mix-blend-mode: multiply;
    opacity: 0.8;
}

/* 提示信息样式 */
.reference-note {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 40px 0;
    text-align: center;
    font-size: 18px;
    color: #2E7D32;
}

