
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #2c3e50;
    background: linear-gradient(135deg, #f0f4f8 70%, #d9e2ec 30%);
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #2c3e50;
    padding: 15px 30px;
    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: #ecf0f1;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* 文章样式 */
article {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

h2, h3 {
    color: #34495e;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
}

p {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: justify;
}

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

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

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

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

/* 卡片样式 */
.card {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.icon {
    stroke: #333;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s ease;
}

.card:hover .icon {
    stroke: #ff6600;
}

/* 渐显效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 仪表盘样式 */
.dashboard {
    position: relative;
    width: 200px;
    height: 200px;
    border: 10px solid #34495e;
    border-radius: 50%;
    margin: 0 auto;
}

.pointer {
    position: absolute;
    width: 2px;
    height: 100px;
    background-color: #e74c3c;
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
    transition: transform 1s ease-in-out;
}

.dashboard:hover .pointer {
    transform: rotate(45deg);
}

/* 导航栏响应式 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar a {
        margin: 10px 0;
    }
    .container {
        padding: 10px;
        grid-template-columns: 1fr;
    }
    .card {
        width: 100%;
        margin-bottom: 20px;
    }
}

