
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0B0C1E, #1F2833);
    color: #C5C6C7;
    overflow-x: hidden;
}

/* 头部导航栏 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 12, 30, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #45A29E;
}

header nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #C5C6C7;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #66FCF1;
}

/* 进度条 */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(69, 162, 158, 0.3);
    z-index: 999;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #45A29E;
    transition: width 0.25s ease-out;
}

/* 主内容区块 */
section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 50px 50px;
    box-sizing: border-box;
    position: relative;
}

section:nth-child(odd) {
    background: linear-gradient(135deg, #1F2833, #0B0C1E);
}

section:nth-child(even) {
    background: linear-gradient(135deg, #45A29E, #66FCF1);
}

section .content {
    max-width: 800px;
    text-align: center;
}

section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #66FCF1;
}

section p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

section img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    margin: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 示例展示样式 */
.example-display {
    background: #0B0C1E;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.example-display h2 {
    color: #FFD700;
    margin-bottom: 20px;
}

.example-display h3 {
    color: #66FCF1;
    margin-top: 30px;
}

.example-display p {
    color: #C5C6C7;
    text-align: left;
}

.example-display pre {
    background: #1F2833;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.example-display code {
    color: #66FCF1;
    font-family: 'Courier New', Courier, monospace;
}

.example-display table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.example-display table, .example-display th, .example-display td {
    border: 1px solid #45A29E;
}

.example-display th, .example-display td {
    padding: 10px;
    text-align: left;
    color: #C5C6C7;
}

/* 代码高亮 */
.code-block {
    background: #1F2833;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

.code-block code {
    color: #66FCF1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
}

/* 动画效果 */
@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: 1440px) {
    header {
        padding: 15px 30px;
    }
    section .content {
        max-width: 700px;
    }
}

@media (max-width: 1200px) {
    header {
        padding: 10px 20px;
    }
    section .content {
        max-width: 600px;
    }
}

@media (max-width: 1024px) {
    section {
        padding: 80px 30px 30px;
    }
    section h2 {
        font-size: 30px;
    }
    section p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    header nav a {
        display: none;
    }
    section .content {
        max-width: 90%;
    }
    section img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    header .logo {
        margin-bottom: 10px;
    }
    section h2 {
        font-size: 24px;
    }
    section p {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    section {
        padding: 60px 20px 20px;
    }
    section h2 {
        font-size: 20px;
    }
    section p {
        font-size: 12px;
    }
}

/* 结束语样式 */
footer {
    background: linear-gradient(135deg, #1F2833, #0B0C1E);
    color: #C5C6C7;
    text-align: center;
    padding: 30px 20px;
}

footer p {
    margin: 0;
    font-size: 16px;
}

