
/* 全局样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 设置网页背景，使用渐变色，避免使用纯白色 */
body {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    font-family: 'Roboto', sans-serif;
    color: #333333;
    line-height: 1.6;
    padding: 20px;
}
/* 标题样式 */
h1, h2, h3, h4 {
    color: #ffffff;
    margin-bottom: 20px;
}
h1 {
    font-size: 24px;
}
h2 {
    font-size: 20px;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
}
h3 {
    font-size: 18px;
    margin-top: 20px;
}
h4 {
    font-size: 16px;
    margin-top: 15px;
}
/* 段落样式 */
p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #f0f0f0;
}
/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(44, 62, 80, 0.9);
    padding: 15px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.navbar a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}
.navbar a:hover {
    color: #e67e22;
}
/* 主内容区样式 */
.container {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
/* 卡片式设计 */
.card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
/* 图片样式 */
.card img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.card img:hover {
    transform: scale(1.1);
}
/* 文章区块样式 */
.article {
    grid-column: 1 / -1;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.article h2, .article h3, .article h4 {
    color: #ffffff;
}
.article p {
    color: #dcdcdc;
    margin-bottom: 15px;
}
/* 提示信息样式 */
.alert {
    background-color: rgba(231, 76, 60, 0.9);
    color: #ffffff;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}
/* 底部导航样式 */
.footer {
    background-color: rgba(44, 62, 80, 0.9);
    color: #ecf0f1;
    text-align: center;
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .container {
        grid-template-columns: 1fr;
    }
}
/* 渐变边框样式 */
.gradient-border {
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(45deg, #f3ec78, #af4261);
}
/* 按钮样式 */
.button {
    background-color: #e67e22;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.button:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}
/* 代码块样式 */
pre {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    color: #2ecc71;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}
/* 菜单样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 200px;
    height: calc(100% - 60px);
    background-color: rgba(44, 62, 80, 0.9);
    padding: 20px;
    transition: transform 0.3s ease;
}
.sidebar a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 16px;
}
.sidebar a:hover {
    color: #e67e22;
}
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
}
/* 背景动画 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #2c3e50, #4ca1af);
    animation: gradientShift 15s ease infinite;
}
@keyframes gradientShift {
    0% { background: linear-gradient(45deg, #2c3e50, #4ca1af); }
    50% { background: linear-gradient(45deg, #4ca1af, #2c3e50); }
    100% { background: linear-gradient(45deg, #2c3e50, #4ca1af); }
}
/* 微交互按钮 */
.interactive-button {
    background: linear-gradient(135deg, #e67e22, #f1c40f);
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}
.interactive-button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #f1c40f, #e67e22);
}
/* 信息分隔线 */
.separator {
    height: 2px;
    background: linear-gradient(90deg, #e67e22, #f1c40f);
    margin: 30px 0;
}

