
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    background-color: #F5F5F5;
    line-height: 1.6;
}

/* 主标题和副标题的字体与颜色 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: #0D47A1;
    margin-bottom: 20px;
}

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

/* 段落中的代码样式 */
code {
    background-color: #EEEEEE;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

/* 按钮样式 */
button, .cta-button {
    background: radial-gradient(circle, #FF6D00, #0D47A1);
    border: none;
    padding: 15px 30px;
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

button:hover, .cta-button:hover {
    transform: scale(1.05);
    background: radial-gradient(circle, #FF8E1C, #0B3C91);
}

/* 导航栏样式 */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(13, 71, 161, 0.8);
    padding: 20px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-bar.scrolled {
    background-color: #0D47A1;
}

.nav-link {
    color: #FFFFFF;
    margin: 0 15px;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #00C853;
    text-decoration: underline;
}

/* 侧边导航样式 */
.side-nav {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.side-nav a {
    background-color: #0D47A1;
    color: #FFFFFF;
    padding: 10px;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.side-nav a:hover {
    background-color: #00C853;
    transform: scale(1.2);
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #FF6D00;
    color: #FFFFFF;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: none;
    z-index: 1000;
}

.back-to-top.show {
    display: block;
}

.back-to-top:hover {
    background-color: #0D47A1;
    transform: rotate(360deg);
}

/* 主页英雄区样式 */
.hero-section {
    background: linear-gradient(135deg, #0D47A1, #00C853);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* 模块化布局容器 */
.module-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    padding: 60px 40px;
    background-color: #FFFFFF;
}

/* 模块项样式 */
.module-item {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* 图片装饰样式 */
.module-item img {
    width: 100%;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.module-item img:hover {
    transform: scale(1.05);
}

/* 内容区样式 */
.content {
    padding: 40px;
    color: #333333;
}

/* 代码块样式 */
pre {
    background-color: #EEEEEE;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

code.language-css {
    font-family: 'Courier New', Courier, monospace;
    color: #D32F2F;
}

/* 滤镜效果 */
.visual-element {
    filter: grayscale(50%) brightness(1.2);
    transition: filter 0.3s;
}

.visual-element:hover {
    filter: grayscale(0%) brightness(1);
}

/* 仪表盘样式 */
.dashboard {
    display: flex;
    justify-content: space-around;
    padding: 40px;
    background-color: #F5F5F5;
}

.dashboard-item {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.dashboard-item:hover {
    transform: translateY(-5px);
}

.dashboard-number {
    font-size: 2rem;
    color: #0D47A1;
    margin-bottom: 10px;
}

.dashboard-label {
    font-family: 'Open Sans', sans-serif;
    color: #555555;
}

/* 轮播模块样式 */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    padding: 40px;
    background-color: #FFFFFF;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

.carousel-item:nth-child(odd) {
    background-color: #E3F2FD;
}

.carousel-item:nth-child(even) {
    background-color: #BBDEFB;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(13, 71, 161, 0.7);
    border: none;
    color: #FFFFFF;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-button:hover {
    background-color: #0D47A1;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* 媒体查询：响应式设计 */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .nav-link {
        margin: 10px 0;
    }

    .cta-button {
        width: 100%;
        padding: 10px;
    }

    .hero-section {
        padding: 20px;
        text-align: center;
    }

    .module-container {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .carousel-button.prev, .carousel-button.next {
        padding: 8px;
    }
}

/* 高亮显示当前段落 */
.active-section {
    border-left: 4px solid #00C853;
    padding-left: 16px;
}

/* 页面提示信息样式 */
.page-note {
    text-align: center;
    font-size: 18px;
    color: #FF6D00;
    margin: 20px 0;
}

/* 折叠区域样式 */
.collapsible {
    background-color: #0D47A1;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.collapsible:hover {
    background-color: #0B3C91;
}

.collapsible:after {
    content: '\002B';
    font-size: 13px;
    float: right;
    margin-left: 5px;
}

.collapsible.active:after {
    content: "\2212";
}

.collapsible-content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #F1F1F1;
    border-radius: 0 0 8px 8px;
}

/* 图片样式：圆角、阴影、悬浮效果 */
.decorative-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 滚动动画类 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

