
/* 基本布局设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #2c3e50 70%, #95a5a6 25%, #e67e22 5%);
    color: #2c3e50;
    line-height: 1.6;
}

/* 容器设置，使用响应式网格布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
}

/* 标题样式 */
h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    color: #34495e;
}

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

h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

/* 段落样式 */
p {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* 强调文本 */
strong {
    color: #2c3e50;
}

/* 代码块样式 */
pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 15px;
}

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

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

thead {
    background-color: #2c3e50;
    color: #fff;
}

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

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* 图片样式，圆角、阴影和悬停效果 */
img {
    width: 320px;
    height: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 6px 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 10px 15px rgba(0, 0, 0, 0.2);
}

/* 卡片设计 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    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);
}

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #f39c12, #27ae60);
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 5px;
    font-size: 16px;
}

.button:hover {
    background: linear-gradient(45deg, #e67e22, #2ecc71);
}

/* 导航栏样式 */
nav {
    background-color: #34495e;
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #e67e22;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .container {
        padding: 20px;
    }
}

/* 提示信息样式 */
.notification {
    background-color: #f39c12;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    border-radius: 5px;
    margin-bottom: 30px;
}

/* 折叠区域样式 */
.collapsible {
    background-color: #ecf0f1;
    color: #2c3e50;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.active, .collapsible:hover {
    background-color: #d35400;
    color: #fff;
}

.content {
    padding: 0 15px;
    display: none;
    overflow: hidden;
    background-color: #f9f9f9;
    border-left: 3px solid #e67e22;
    margin-bottom: 20px;
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

