
/* 页面整体样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #121F3D 70%, #1E2A47 25%, #00FFFF 5%);
    color: #FFFFFF;
    overflow-x: hidden;
}

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

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #00FFFF;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #39FF14;
}

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

.hero::after {
    content: "这是一个网页样式设计参考";
    position: absolute;
    bottom: 20px;
    font-size: 18px;
    color: #FFFFFF;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    margin: 20px 0;
}

h1 {
    font-size: 36px;
    color: #00FFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 28px;
    color: #39FF14;
}

h3 {
    font-size: 22px;
    color: #00FFFF;
}

h4 {
    font-size: 18px;
    color: #FFFFFF;
}

/* 内容区样式 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 100px 40px 40px 40px;
}

.section {
    background-color: rgba(30, 42, 71, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.section img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.section img:hover {
    transform: scale(1.05);
}

/* 微交互效果 */
.button-primary {
    background-color: #00FFFF;
    color: #121F3D;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button-primary:hover {
    background-color: #39FF14;
    transform: scale(1.05);
}

/* 渐变线条分隔 */
.divider {
    height: 2px;
    background: linear-gradient(90deg, #00FFFF, #39FF14);
    margin: 40px 0;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

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

    .navbar ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .hero {
        height: 70vh;
    }

    .container {
        padding: 80px 20px 20px 20px;
        gap: 20px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }
}

/* 代码示例区块样式 */
.code-block {
    background-color: rgba(18, 31, 61, 0.9);
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00FFFF;
    margin: 20px 0;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

