/* 新增图片样式 */
.schema-container {
    margin: 20px auto;
    max-width: 800px; /* 与 .container 的宽度一致 */
    padding: 0 20px; /* 与 .container 的内边距一致 */
    text-align: center;
}

.database-schema {
    width: 100%; /* 图片宽度占满容器 */
    height: auto; /* 高度自适应 */
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    object-fit: contain;
}

/* 以下保持原有样式不变 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f3f3;
    color: #333;
}
header {
    background-color: #2b3e50;
    color: white;
    padding: 20px;
    text-align: center;
}
nav {
    display: flex;
    justify-content: center;
    background-color: #4a6572;
    padding: 10px;
}
nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    padding: 10px;
    transition: background-color 0.3s;
}
nav a:hover {
    background-color: #34495e;
}
.container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.search-bar {
    text-align: center;
    margin: 20px 0;
}
.search-bar input {
    padding: 10px;
    width: 80%;
    max-width: 600px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.section {
    background-color: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.footer {
    background-color: #2b3e50;
    color: white;
    text-align: center;
    padding: 20px;
}

.section-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.section {
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.section:hover {
    background-color: #f0f8ff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* 新增描述部分样式 */
.description {
    margin: 20px auto;
    max-width: 800px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.description h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.description p {
    font-size: 16px;
    margin-bottom: 10px;
}

.description ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.description li {
    margin-bottom: 8px;
}

.highlight {
    font-weight: bold;
    color: #e74c3c;
}


/* 新增描述部分样式 */
.description {
    margin: 20px auto;
    max-width: 800px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    border: 1px solid #ddd; /* 新增边框 */
}

.description h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.description p {
    font-size: 16px;
    margin-bottom: 10px;
}

.description ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.description li {
    margin-bottom: 8px;
}

.highlight {
    font-weight: bold;
    color: #e74c3c;
}

.schema-container {
    margin: 20px auto; /* 与描述部分的上下边距一致 */
    max-width: 800px; /* 与描述部分的最大宽度一致 */
    padding: 20px; /* 与描述部分的内边距一致 */
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd; /* 新增边框 */
}

.schema-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 下方容器样式 */
.container {
    margin: 20px auto; /* 与描述部分的上下边距一致 */
    max-width: 800px; /* 与描述部分的最大宽度一致 */
    padding: 20px; /* 与描述部分的内边距一致 */
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd; /* 新增边框 */
}

.container .section-link {
    text-decoration: none;
    color: inherit;
}

.container .section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.container .section:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.container .section h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.container .section p {
    font-size: 14px;
    color: #666;
}


.description {
    margin: 20px auto;
    max-width: 800px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    border: 1px solid #ddd;
    text-align: left; /* 添加左对齐属性 */
}

.description h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: left; /* 标题也左对齐 */
}

.description p {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: left; /* 段落左对齐 */
}

.description ol {
    padding-left: 20px;
    margin-bottom: 15px;
    text-align: left; /* 列表左对齐 */
}

.description li {
    margin-bottom: 8px;
    text-align: left; /* 列表项左对齐 */
}