body {
    background-color: #f8fafc;
    margin: 0;
}
	p img {
	display:block;
	text-align:center;
	max-width:90%;
	margin:0 auto;
	}

nav {
    display: block;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 3rem;
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
  color: #333;
  font-size: 18px;
}
.logo img {
    max-height: 1.5em;
    border-radius: 50%;
    vertical-align: middle;
	margin-right:5px;
}

.description {
  margin: .5em 0 0;
  color: #999;
  font-style: italic;
}

.pc-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.pc-nav i {
    margin-right: 2px;
}

.m-menu {
    display: none;
    background: none;
    border: none;
    padding: 0 0.5rem;
    cursor: pointer;
}

.m-nav {
    padding: 0 20px;
    display: flex;
    position: absolute;
    background: white;
    width: 100%;
    left: 0;
    top: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: auto;
    transition: all 0.3s ease;
	opacity: 0.95;
}

.m-nav.active {
    max-height: 500px;
    display: flex;
    padding: 2px 20px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.m-nav a {
    display: block;
    width: 100%;
    border-bottom: 1px solid #f6f6f6;
    padding: 2px 0;
    font-size: 14px;
    letter-spacing: 1px;
}

.m-nav a i {
    margin-right: 1px;
    margin-top: 2px;
    font-size: 14px;
}

.m-nav a:last-child {
    border-bottom: none;
}

.container {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    gap: 1rem;
}

.sidebar {
    width: 10rem;
    height: fit-content;
    position: sticky;
    top: 5rem;
 /* 新增：固定定位 */
    margin-top: 5rem;
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    align-self: flex-start;
 /* 新增：确保对齐顶部 */;
}

/* 修改高亮样式 */
.sidebar a.active {
    color: #2563eb;
    font-weight: 600;
    position: relative;
}

/* 解决锚点偏移 */
section {
    margin-bottom: 2rem;
    scroll-margin-top: 4rem;
 /* 新增：解决导航栏遮挡 */;
}

.sidebar h3 {
    padding-left: 2rem;
    font-size: 18px;
    margin: 1rem 0;
}

.sidebar ul {
    padding-left: 2rem;
}

li {
    list-style: none;
    margin-top: 10px;
}

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

.case {
    display: flex;
    gap: 10px;
    justify-items: center;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
}

.main-content .case a {
    display: inline-block;
    line-height: 24px;
    font-size: 14px;
    color: #494949;
    margin: 0 8px 8px 0;
    cursor: pointer;
    letter-spacing: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case a span {
    width: 20px;
    height: 20px;
    float: left;
    margin-right: 5px;
    margin-top: 2px;
    background-size: 100% 100%;
    -webkit-background-size: 100% 100%;
    -o-background-size: 100% 100%;
}

.github-tag {
    margin: 0 0 -10px;
}

.main-content .case a:before {
    content: none;
}

.main-content {
    flex: 1;
    margin-top: 5rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 0.5rem;
    padding: 2rem 3rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.main-content p {
    font-size: 16px;
    color: #2f2f2f;
    letter-spacing: 1px;
    line-height: 1.7;
    margin: 15px 0;
    text-align: justify;
}

.main-content h3 {
    font-size: 20px;
    margin: 1rem 0;
}

.main-content h4 {
    font-size: 16px;
    margin: 1rem 0;
}

.main-content a {
    color: #41598f;
    margin: 0 1px;
}

.main-content a:before {
    font-family: 'iconfont';
    content: '\e6c3';
    color: #41598f;
    margin-right: 1px;
    font-size: 14px;
}

/**代码高亮**/
pre code.hljs {
    display: block;
    overflow-x: auto;
    padding: 1em;
    border-radius: 5px;
}

code.hljs {
    padding: 3px 5px;
}

.hljs {
    background: #23241f;
    color: #f8f8f2;
}

.hljs-subst,.hljs-tag {
    color: #f8f8f2;
}

.hljs-emphasis,.hljs-strong {
    color: #a8a8a2;
}

.hljs-bullet,.hljs-link,.hljs-literal,.hljs-number,.hljs-quote,.hljs-regexp {
    color: #ae81ff;
}

.hljs-code,.hljs-section,.hljs-selector-class,.hljs-title {
    color: #a6e22e;
}

.hljs-strong {
    font-weight: 700;
}

.hljs-emphasis {
    font-style: italic;
}

.hljs-attr,.hljs-keyword,.hljs-name,.hljs-selector-tag {
    color: #f92672;
}

.hljs-attribute,.hljs-symbol {
    color: #66d9ef;
}

.hljs-class .hljs-title,.hljs-params,.hljs-title.class_ {
    color: #f8f8f2;
}

.hljs-addition,.hljs-built_in,.hljs-selector-attr,.hljs-selector-id,.hljs-selector-pseudo,.hljs-string,.hljs-template-variable,.hljs-type,.hljs-variable {
    color: #e6db74;
}

.hljs-comment,.hljs-deletion,.hljs-meta {
    color: #75715e;
}
/* Webkit 浏览器（Chrome、Safari、Edge）的滚动条样式 */
pre code::-webkit-scrollbar {
    height: 10px;
 /* 滚动条高度 */;
}

pre code::-webkit-scrollbar-track {
    background: #2d2d2d;
 /* 滚动条轨道背景 */
    border-radius: 5px;
}

pre code::-webkit-scrollbar-thumb {
    background: #888;
 /* 滚动条滑块颜色 */
    border-radius: 5px;
    border: 2px solid #2d2d2d;
 /* 滑块边框 */;
}

pre code::-webkit-scrollbar-thumb:hover {
    background: #aaa;
 /* 鼠标悬停时滑块颜色 */;
}

hr {
    margin: 2rem 0;
    border: #eee 0.5px dashed;
}

em {
    font-style: italic;
    font-size: 12px;
    color: #333;
}

footer {
    font-size: 20px;
    text-align: center;
    padding: 20px 0;
    color: #ffffff;
    text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.5), 1px 1px 1px rgba(255, 255, 255, 0.5);
}

footer a {
    color: #ffffff;
}

.sponsor {
    display: flex;
}

.pay {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    letter-spacing: 1px;
    color: #717171;
    margin-right: 20px;
    border: 1px solid #f1f1f1;
    padding: 20px 10px;
    border-radius: 10px;
}

.pay img {
    width: 150px;
    height: 150px;
}

table {
    border-color: #ffffff;
    border-collapse: collapse;
    width: 100%;
}

thead tr {
    background: #555555;
}

th {
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: left;
    padding: 10px;
}

td {
    text-align: left;
    padding: 10px;
    font-size: 14px;
    color: #535353;
    letter-spacing: 1px;
}

tbody tr:nth-child(2n+1) {
    background: #ffffff;
}

tbody tr:nth-child(2n) {
    background: #f7f7f7;
}



/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.flex p {
    display: inline-block;
    margin: 5px 0;
}
/* 响应式设计 */
@media (max-width:460px) {
    .nav {
        max-width: 100%;
        padding: 0 20px;

    }
	p img {
	display:block;
	text-align:center;
	max-width:90%;
	margin:0 auto;
	}
    .logo img {
        height: 1.5em;
    }

    .main-content {
        margin-top: 4.5rem;
        padding: 1rem 2rem;
    }

    .main-content h3 {
        font-size: 18px;
    }

    .main-content h4 {
        font-size: 16px;
    }

    .main-content p {
        font-size: 14px;
    }

    .pc-nav {
        display: none;
    }

    .m-menu {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .container {
        flex-direction: column;
        max-width: 100%;
        padding: 0 10px;
    }

    .pay {
        font-size: 12px;
    }

    .pay img {
        width: 100px;
        height: 100px;
    }

    th {
        font-size: 12px;
    }

    td {
        font-size: 12px;
    }
}