
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #1E90FF 70%, #FF7F50 25%, #FFFFFF 5%);
    color: #333333;
    line-height: 1.6;
}

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

.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 15px;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #FFD700;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: 200px;
    height: calc(100% - 80px);
    background-color: rgba(245, 245, 245, 0.95);
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar a {
    display: block;
    color: #333333;
    text-decoration: none;
    margin: 15px 0;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #1E90FF;
}

/* 主内容区样式 */
.main-content {
    margin-left: 220px;
    padding: 100px 40px 40px 40px;
    max-width: 1200px;
    margin-right: auto;
}

/* 标题样式 */
h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    color: #1E90FF;
    margin-top: 40px;
    margin-bottom: 20px;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

/* 段落样式 */
p {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

/* 代码块样式 */
pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

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

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

/* 提示信息样式 */
.notice {
    background-color: rgba(255, 215, 0, 0.1);
    border-left: 5px solid #FFD700;
    padding: 15px;
    margin-bottom: 30px;
    font-weight: bold;
    font-size: 18px;
}

/* 卡片容器 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* 单个卡片样式 */
.card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    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);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #1E90FF;
}

.card-description {
    color: #333333;
    font-size: 16px;
}

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

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s forwards;
}

.fade-in-up.visible {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding: 100px 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.5em;
    }
    h3 {
        font-size: 1.25em;
    }
    h4 {
        font-size: 1em;
    }
    p {
        font-size: 14px;
    }
}

