代码拉取完成,页面将自动刷新
:root {
--primary-color: #42b983;
--secondary-color: #35495e;
--border-color: #eaecef;
--text-color: #2c3e50;
--light-bg: #f8f8f8;
--completed-color: #e0f5ea;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
color: var(--text-color);
line-height: 1.5;
background-color: white;
padding-top: 180px;
}
.header {
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
z-index: 100;
padding: 20px 40px;
}
.title {
font-size: 28px;
font-weight: 600;
color: var(--secondary-color);
margin-bottom: 10px;
}
.daily-quote {
font-size: 16px;
color: var(--primary-color);
font-style: italic;
margin-bottom: 15px;
}
.daily-summary {
display: flex;
gap: 20px;
font-size: 14px;
padding: 10px 0;
border-top: 1px solid var(--border-color);
}
.summary-item {
display: flex;
align-items: center;
gap: 5px;
}
.summary-item .count {
font-weight: bold;
color: var(--primary-color);
}
.encouragement {
color: var(--secondary-color);
font-style: italic;
}
.container {
display: flex;
max-width: 1400px;
margin: 0 auto;
padding: 0 40px;
}
.sidebar {
width: 280px;
position: sticky;
top: 180px;
height: calc(100vh - 180px);
overflow-y: auto;
padding: 20px 0;
border-right: 1px solid var(--border-color);
}
.sidebar-title {
font-size: 18px;
font-weight: 600;
margin-bottom: 15px;
color: var(--secondary-color);
}
.tree {
list-style: none;
}
.tree-group {
padding-left: 15px;
}
.tree-group .group-link{
color: var(--secondary-color);
text-decoration: none;
font-size: 20px;
font-weight: 600;
display: block;
margin: 10px 0;
}
.tree-item {
padding: 5px 0;
cursor: pointer;
transition: color 0.3s ease;
}
.tree-item:hover {
color: var(--primary-color);
}
.tree-item.completed {
color: #888;
text-decoration: line-through;
}
.tree-item a {
color: var(--text-color);
text-decoration: none;
transition: color 0.3s ease;
}
.tree-item a:hover {
color: var(--primary-color);
}
.tree-item .toggle {
margin-right: 5px;
color: var(--primary-color);
font-size: 12px;
}
.tree-children {
list-style: none;
padding-left: 20px;
margin-top: 5px;
display: none;
}
.tree-item.expanded .tree-children {
display: block;
}
.content {
flex: 1;
padding: 20px 40px;
}
.progress-container {
margin-bottom: 20px;
}
.progress-bar {
height: 10px;
background-color: var(--primary-color);
border-radius: 5px;
transition: width 0.3s ease;
}
.progress-text {
font-size: 14px;
color: var(--secondary-color);
margin-top: 5px;
}
.chapter-group {
margin-bottom: 30px;
}
.group-title {
font-size: 20px;
font-weight: 600;
color: var(--secondary-color);
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid var(--border-color);
}
.chapter-list {
list-style: none;
}
.chapter-item {
padding: 10px 15px;
margin-bottom: 5px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: space-between;
transition: all 0.3s ease;
}
.chapter-item:hover {
background-color: var(--light-bg);
}
.chapter-item.completed {
background-color: var(--completed-color);
}
.chapter-item.completed label {
text-decoration: line-through;
color: #888;
}
.completion-date {
font-size: 12px;
color: #888;
margin-left: 10px;
}
/* 手机响应式设计 */
@media (max-width: 768px) {
body {
padding-top: 160px; /* 调整顶部间距 */
}
.header {
padding: 15px 20px;
}
.container {
flex-direction: column;
padding: 0 20px;
}
.sidebar {
display: none; /* 隐藏侧边栏 */
}
.content {
padding: 60px 0;
}
.daily-summary {
flex-direction: column; /* 打分项垂直排列 */
gap: 10px;
}
.chapter-item {
display: flex;
flex-direction:row; /* 章节项垂直排列 */
/*align-items: flex-start;*/
}
.completion-date {
margin-left: 0;
margin-top: 5px;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。