
/* 
整体页面样式设置
*/

/* 设置全局字体和背景 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用Roboto无衬线字体 */
    background: linear-gradient(135deg, #1e3c72, #2a5298, #8e2de2); /* 主色调渐变背景 */
    color: #ffffff; /* 文字颜色为白色 */
}

/* 固定导航栏样式 */
.navigation-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 60, 114, 0.8); /* 半透明背景 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 导航栏阴影效果 */
}

/* 导航链接样式 */
.navigation-bar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease;
}

.navigation-bar a:hover {
    color: #FFEB3B; /* 点缀色在悬停时变化 */
}

/* 智能搜索框样式 */
.navigation-bar .search {
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.navigation-bar .search:focus {
    width: 200px;
}

/* 主页提示信息样式 */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    background: linear-gradient(135deg, #1e3c72, #8e2de2);
    position: relative;
    padding: 0 20px;
}

.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero-section .cta-button {
    background: #FFEB3B; /* 点缀色按钮 */
    color: #000;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-section .cta-button:hover {
    background: #FFC107;
    transform: scale(1.05);
}

/* 提示信息样式 */
.tip-message {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 235, 59, 0.9);
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 主要内容区模块样式 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 80px 40px 40px 40px; /* 上部留出导航栏和提示 */
}

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

.module:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

/* 模块标题样式 */
.module h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFEB3B; /* 点缀色 */
}

/* 模块内容样式 */
.module section {
    font-size: 1em;
    line-height: 1.6;
}

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

.module img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 代码块样式 */
pre {
    background: rgba(0,0,0,0.6);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #00FF00;
}

/* 动态加载元素隐藏状态 */
.dynamic-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.dynamic-load.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 页脚样式 */
.footer {
    background: rgba(30, 60, 114, 0.9);
    color: #ffffff;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}

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

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

    .hero-section h1 {
        font-size: 2em;
    }

    .hero-section .cta-button {
        padding: 10px 20px;
        font-size: 1em;
    }
}

/* 渐变线条装饰 */
.divider {
    height: 4px;
    background: linear-gradient(to right, #FFEB3B, #00f2fe, #4facfe, #8e2de2);
    border-radius: 2px;
    margin: 40px 0;
}

