<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page_title }}</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #e5e5e5;
background: #0f0f0f;
}
.container {
display: flex;
min-height: 100vh;
}
.sidebar {
width: 280px;
background: #1a1a1a;
border-right: 1px solid #333;
padding: 20px;
position: fixed;
top: 0;
bottom: 0;
overflow-y: auto;
}
.sidebar-title {
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 20px;
color: #fff;
text-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
}
.sidebar-nav {
list-style: none;
}
.sidebar-nav li {
margin-bottom: 8px;
}
.sidebar-nav a {
color: #aaa;
text-decoration: none;
display: block;
padding: 8px 12px;
border-radius: 4px;
transition: all 0.3s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
background: #2a2a2a;
color: #64c8ff;
box-shadow: 0 0 15px rgba(100, 200, 255, 0.3);
}
.sidebar-nav .group-title {
font-weight: 600;
margin-top: 16px;
margin-bottom: 8px;
color: #888;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.main-content {
flex: 1;
margin-left: 280px;
padding: 40px;
max-width: 900px;
}
.navbar {
background: #1a1a1a;
border-bottom: 1px solid #333;
padding: 0 40px;
height: 60px;
display: flex;
align-items: center;
justify-content: space-between;
position: fixed;
top: 0;
left: 280px;
right: 0;
z-index: 100;
backdrop-filter: blur(10px);
}
.nav-links {
display: flex;
gap: 24px;
list-style: none;
}
.nav-links a {
color: #aaa;
text-decoration: none;
font-weight: 500;
transition: all 0.3s;
}
.nav-links a:hover {
color: #64c8ff;
text-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
}
.content-wrapper {
margin-top: 80px;
background: #1a1a1a;
padding: 40px;
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
border: 1px solid #333;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 24px;
margin-bottom: 16px;
font-weight: 600;
line-height: 1.25;
color: #fff;
}
h1 {
font-size: 2rem;
padding-bottom: 0.3em;
border-bottom: 1px solid #333;
}
h2 {
font-size: 1.5rem;
padding-bottom: 0.3em;
border-bottom: 1px solid #2a2a2a;
}
h3 {
font-size: 1.25rem;
}
p {
margin-bottom: 16px;
color: #ccc;
}
code {
background: #2a2a2a;
padding: 0.2em 0.4em;
border-radius: 3px;
font-family: 'Courier New', Courier, monospace;
font-size: 0.9em;
color: #64c8ff;
}
pre {
background: #1e1e1e;
color: #d4d4d4;
padding: 16px;
border-radius: 6px;
overflow-x: auto;
margin-bottom: 16px;
border: 1px solid #333;
}
pre code {
background: none;
padding: 0;
color: inherit;
}
ul, ol {
margin-bottom: 16px;
padding-left: 2em;
color: #ccc;
}
li {
margin-bottom: 4px;
}
a {
color: #64c8ff;
text-decoration: none;
transition: all 0.3s;
}
a:hover {
text-decoration: underline;
text-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
}
blockquote {
border-left: 4px solid #64c8ff;
padding-left: 16px;
margin-left: 0;
color: #999;
font-style: italic;
background: rgba(100, 200, 255, 0.05);
padding: 15px 20px;
border-radius: 0 4px 4px 0;
}
.footer {
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid #333;
text-align: center;
color: #666;
font-size: 0.9rem;
}
</style>
</head>
<body>
<div class="container">
<aside class="sidebar">
<div class="sidebar-title">{{ site_title }}</div>
<nav>
<ul class="sidebar-nav">
{% for group in &sidebar_groups %}
{% if !group.items.is_empty() %}
<li class="group-title">{{ group.text }}</li>
{% for item in &group.items %}
<li>
<a href="{{ item.link }}"{% if item.link == current_path %} class="active"{% endif %}>{{ item.text }}</a>
</li>
{% endfor %}
{% endif %}
{% endfor %}
</ul>
</nav>
</aside>
<main class="main-content">
<nav class="navbar">
<ul class="nav-links">
{% for item in &nav_items %}
<li><a href="{{ item.link }}">{{ item.text }}</a></li>
{% endfor %}
</ul>
</nav>
<div class="content-wrapper">
{{ content|safe }}
{% if has_footer %}
<footer class="footer">
{% if has_footer_message %}
<p>{{ footer_message }}</p>
{% endif %}
{% if has_footer_copyright %}
<p>{{ footer_copyright }}</p>
{% endif %}
</footer>
{% endif %}
</div>
</main>
</div>
</body>
</html>