/* || General setup */

@font-face {
    font-family: 'josefin_slabbold';
    src: url('fonts/josefinslab-bold-webfont.eot');
    src: url('fonts/josefinslab-bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/josefinslab-bold-webfont.woff2') format('woff2'),
         url('fonts/josefinslab-bold-webfont.woff') format('woff'),
         url('fonts/josefinslab-bold-webfont.ttf') format('truetype'),
         url('fonts/josefinslab-bold-webfont.svg#josefin_slabbold') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* 合并body和html的共同属性 */
body, html {
    color: rgba(0,0,0,.75);
    font-size: 16px;
    font-variant-ligatures: common-ligatures;
    line-height: 1.67;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    counter-reset: a b;
}

html {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
}

body {
  width: 85%;
  min-width: 320px;
  margin: 0 auto;
  background-color: #f8f9fa;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* || typography */

h1,h2,h3,h4,h5,h6 {
	font-family: josefin_slabbold, sans-serif;
	letter-spacing: 2px;
	margin:1.5em 0;
	line-height:1.33
}

h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin: 1.5em 0;
  position: relative;
  padding-bottom: 0.5em;
}



h2 {
    display: block;
    font-size: 1.2em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;

	text-align: left;
}
h2:after {
	content:"";
	display:block;
	position:relative;
	top:.33em;
	border-bottom:1px dashed hsla(0,0%,50%,.33)
}
  .grid {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 980px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-gap: 20px;
  }
  

h3 {
  font-size: 1rem;
}

 h2 + p {
  text-indent: 20px;
}

/* || header layout */

header {
  margin-bottom: 5px;
  display: flex;
  flex-flow: row wrap;
  	background: rgb(215,211,213);
	background: radial-gradient(circle, rgba(215,211,213,1) 0%, rgba(148,187,233,1) 100%);
}

main, article, nav,aside, footer, section {
  padding: 1%;
}

h1 {
  flex: 5;

}
img {
	max-width:100%;
	background-size:contain;
}
header img {
  display: block;
  height: 40px;
}

nav {
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin: 1rem 0;
  height: 40px;
  flex: 100%;
  display: flex;
}
    table {
      border-collapse: collapse;
      border: 2px solid rgb(200,200,200);
      letter-spacing: 1px;
      font-size: 0.8rem;
    }

    td, th {
      border: 1px solid rgb(190,190,190);
      padding: 10px 20px;
    }

    td {
      text-align: center;
    }

    caption {
      padding: 10px;
    }
  

 
.topclick:hover .ltbox2{
    display: block;
}

.topclick:hover{
	color:white;
}




/* || main layout */



a:link,
a:visited{
	text-decoration:none;
	color:#64A1CD;
	
	
}
a:hover{
	color:orange;
	border-radius:3px
	
}

footer {
  margin-top: 10px;
  text-align:right;
}
.toc ul {
	list-style-type:none;
	padding-left:20px
}
b,strong {
	font-weight:inherit;
	font-weight:bolder
}
code {
    background: var(--code-background-inline);
    padding: 0.125rem 0.25rem;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}
::marker {
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
    text-transform: none;
    text-indent: 0px !important;
    text-align: start !important;
    text-align-last: start !important;
}

.stackedit__toc ul{
	padding:0
}
.stackedit__toc ul a{
	margin:.5rem 0;
	padding:.5rem 1rem
}
.stackedit__toc ul ul{
	color:#888;
	font-size:.9em
}
.stackedit__toc ul ul a{
	margin:0;
	padding:.1rem 1rem
}
.stackedit__toc li{
	display:block
}
.stackedit__toc a{
	display:block;
	color:inherit;
	text-decoration:none
}
.stackedit__toc a:active,.stackedit__toc a:focus,.stackedit__toc a:hover{
	background-color:rgba(0,0,0,.075);
	border-radius:3px
}
.stackedit__left{
	position:fixed;
	display:none;
	width:250px;
	height:100%;
	top:0;
	left:0;
	overflow-x:hidden;
	overflow-y:auto;
	-webkit-overflow-scrolling:touch;
	-ms-overflow-style:none
}
@media (min-width:1060px){
	.stackedit__left{
		display:block
	}
}
.stackedit__right{
	position:absolute;
	right:0;
	top:0;
	left:0
}

.stackedit--pdf blockquote{
	border-left-color:#ececec
}
.stackedit--pdf .stackedit__html{
	padding-left:0;
	padding-right:0;
	max-width:none
}
#todo-list {
  margin-top: 20px;
}

#todo-list ul {
  list-style: none;
  padding: 0;
}

#todo-list li {
  margin-bottom: 10px;
}

#todo-list label {
  margin-left: 5px;
}
.completed {
  text-decoration: line-through;
  color: grey;
}
/* 待办事项列表中已完成项的样式 */
li input[type="checkbox"]:checked + label {
  text-decoration: line-through;
  color: grey;
}

/* 进度条样式 */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin: 8px 0;
    overflow: visible;
    position: relative;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45B649);
    transition: width 0.3s ease;
    border-radius: 4px;
    position: relative;
}

/* 添加进度文字样式 */
.progress-bar .progress::after {
    content: attr(data-progress);
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 14px;
    color: #333;
}

/* 目标详情样式 */
goal-details {
  font-size: 3em;
  color: #666;
  margin-top: 4px;
}

/* 收入统计卡片样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-value {
    font-size: 1.5em;
    font-weight: bold;
    margin: 10px 0;
}

.stat-trend {
    font-size: 0.9em;
}

.stat-trend.positive {
    color: #4CAF50;
}

.stat-trend.negative {
    color: #f44336;
}

/* 适应三栏布局
.financial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
} */

/* 财务页面布局 */
.financial-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  max-width: 100%;
}

/* 导航栏样式 */


.stackedit__right {
  margin-left: 0;
  padding: 5px;
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.stackedit__html {
  max-width: 100%;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.stackedit__html h1 {
  text-align: center;
}

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

.stackedit__toc li {
  margin: 10px 0;
}

.stackedit__toc a {
  color: #333;
  text-decoration: none;
}

/* 目标卡片样式 */
.goal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
}

.goal-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.goal-card h3 {
  margin-top: 0;
  color: #333;
}

.goal-value {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0;
}

.goal-progress {
  margin-top: 10px;
}

/* 表格样式 */
.financial-reports {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

th {
  background: #f8f9fa;
  padding: 12px 20px;
  font-weight: 600;
}

td {
  padding: 12px 20px;
  border-bottom: 1px solid #e9ecef;
}

/* 图表容器样式 */
canvas {
  max-width: 100%;
  height: 400px !important;
  margin-top: 20px;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
  .stackedit__left {
    display: none;
  }
  
  .stackedit__right {
    margin-left: 0;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .stackedit__html {
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .financial-container {
    padding: 10px;
  }
  
  .goal-card {
    padding: 15px;
  }
}
.tab-container {
  margin-top: 20px;
}
  
.tab-buttons {
  margin-bottom: 20px;
}
  
.tab-button {
  padding: 12px 24px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
  margin-right: 10px;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
}
  
.tab-button:hover {
  background: #e9ecef;
}
  
.tab-button.active {
  background: #3498db;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
  color: white;
}
  
.tab-content {
  display: none;
}
  
.tab-content.active {
  display: block;
} 
