/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.75;
    margin: 0;
    padding: 0;
    background-color: #fafafa; /* 浅灰色背景 */
    color: #333;
}

.header,
.footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
}

/* 头部样式 */
header {
    background-color: #2d3e50; /* 深蓝色 */
    color: #fff;
    padding: 15px 0;
    border-bottom: 4px solid #3498db; /* 亮蓝色边框 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 3em;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
}

.nav a {
    color: #fff;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.nav a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 主要内容样式 */
.main {
    max-width: 1200px;
    margin: 35px auto;
    display: flex;
    padding: 25px;
}

.content {
    flex: 3;
    padding-right: 35px;
}

.item {
    background-color: #fff;
    padding: 45px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.item:hover {
    transform: translateY(-8px);
}

.item h1 {
    color: #1e8bc3; /* 浅蓝色 */
    border-bottom: 4px solid #3498db; /* 亮蓝色 */
    padding-bottom: 20px;
    margin-bottom: 40px;
    font-size: 2.8em;
}

.item section {
    margin-bottom: 40px;
}

/* 侧边栏样式 */
.sidebar {
    flex: 1;
    background-color: #fff;
    padding: 45px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.title {
    color: #2d3e50; /* 深蓝色 */
    border-bottom: 4px solid #3498db; /* 亮蓝色 */
    padding-bottom: 20px;
    margin-bottom: 30px;
    font-size: 2.3em;
}

.related {
    list-style: none;
    padding: 0;
}

.related li {
    padding: 14px 0;
    border-bottom: 1px dashed #ccc;
}

.related li:last-child {
    border-bottom: none;
}

.related a {
    color: #34495e; /* 深灰色 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.related a:hover {
    color: #1e8bc3; /* 浅蓝色 */
}

/* 页脚样式 */
footer {
    background-color: #34495e; /* 深灰色 */
    color: #fff;
    text-align: center;
    padding: 20px 0;
    border-top: 4px solid #3498db; /* 亮蓝色 */
}

.copyright {
    font-size: 1.2em;
}

/* 特殊元素样式 */
mark {
    background-color: #f39c12; /* 橙色 */
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 600;
    color: #fff;
}

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

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

th {
    background-color: #ecf0f1; /* 浅灰色 */
    color: #34495e; /* 深灰色 */
    font-weight: bold;
}

/* 列表样式 */
ul,
ol {
    margin-top: 25px;
    margin-bottom: 25px;
}

ul li {
    list-style-type: square;
    margin-left: 35px;
    padding: 12px 0;
}

/* 链接样式 */
a {
    color: #3498db; /* 亮蓝色 */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e8bc3; /* 浅蓝色 */
}

/* 细节样式 */
details {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 25px;
    background-color: #f9f9f9;
}

summary {
    font-weight: bold;
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    background-color: #e9e9e9;
    transition: background-color 0.3s ease;
}

summary:hover {
    background-color: #d5d5d5;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}