/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212; /* 深色背景 */
    color: #fff;
    line-height: 1.6;
}

/* 头部样式 */
header {
    background-color: #1e1e1e;
    padding: 20px 0;
    border-bottom: 2px solid #333;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 2em;
    color: #ff4081; /* 醒目的颜色 */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #ff4081;
}

/* 主体样式 */
.main {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.content {
    flex: 3;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

article.item {
    padding: 0;
}

article.item h1 {
    font-size: 2em;
    color: #ff4081;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

article.item section {
    margin-bottom: 30px;
}

article.item h2 {
    color: #03dac6; /* 强调色 */
    margin-top: 20px;
    margin-bottom: 10px;
}

article.item ul, article.item ol {
    padding-left: 20px;
}

article.item li {
    margin-bottom: 5px;
}

details {
    margin-top: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 10px;
}

summary {
    color: #bb86fc; /* 另一个强调色 */
    cursor: pointer;
}

/* 侧边栏样式 */
.sidebar {
    flex: 1;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-left: 20px;
}

.sidebar .title {
    font-size: 1.5em;
    color: #ff4081;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

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

.sidebar ul.related li {
    margin-bottom: 8px;
}

.sidebar ul.related a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #272727;
    transition: background-color 0.3s ease;
}

.sidebar ul.related a:hover {
    background-color: #333;
}

/* 底部样式 */
footer {
    background-color: #1e1e1e;
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid #333;
}

.footer .copyright {
    font-size: 0.9em;
    color: #777;
}

/* 媒体查询 */
@media (max-width: 768px) {
    .main {
        flex-direction: column;
    }

    .sidebar {
        margin-left: 0;
        margin-top: 20px;
    }
}