/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
nav {
    background-color: #007acc;
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 1rem;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

/* 内容区域样式 */
.content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 5px;
}

/* 目录列表页面样式 */
h1 {
    color: #007acc;
    border-bottom: 2px solid #007acc;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.directory-list {
    list-style-type: none;
    padding: 0;
    margin: 2rem 0;
}

.directory-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.directory-item:hover {
    background-color: #f8f9fa;
}

.directory-item:last-child {
    border-bottom: none;
}

.directory-link, .file-link {
    color: #007acc;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: 500;
}

.directory-link:hover, .file-link:hover {
    text-decoration: underline;
    color: #005a9e;
}

.icon {
    margin-right: 12px;
    font-size: 1.2em;
}

a {
    color: #007acc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #005a9e;
}

/* Markdown内容样式 */
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #007acc;
}

.content p {
    margin-bottom: 1rem;
}

.content code {
    background-color: #f1f1f1;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.content pre {
    background-color: #f1f1f1;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}

.content pre code {
    background-color: transparent;
    padding: 0;
}

.content blockquote {
    border-left: 4px solid #007acc;
    padding-left: 1rem;
    margin-left: 0;
    color: #666;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.content table th,
.content table td {
    padding: 0.5rem;
    border: 1px solid #ddd;
}

.content table th {
    background-color: #f1f1f1;
}