
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #2c3e50, #4ca1af); /* 主色调蓝绿色渐变 */
    color: #ecf0f1;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar a:hover {
    color: #e74c3c; /* 点缀色橙色 */
    transform: scale(1.1);
}

/* 主要内容区域 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    padding: 120px 50px 50px 50px; /* 顶部预留导航栏空间 */
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

/* 标题样式 */
h2, h3 {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

h3 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* 段落样式 */
p {
    font-size: 17px;
    color: #dfe6e9;
}

/* 代码块样式 */
pre {
    background: #34495e;
    padding: 15px;
    border-radius: 10px;
    overflow: auto;
}

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

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

thead {
    background: #1abc9c; /* 辅色绿 */
    color: #ffffff;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ccc;
    text-align: left;
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .container {
        padding: 100px 20px 20px 20px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    p {
        font-size: 15px;
    }
}

