html {
    background: #e6e9e9;
    background-image: linear-gradient(270deg, rgb(230, 233, 233) 0%, rgb(216, 221, 221) 100%);
    -webkit-font-smoothing: antialiased;
}

body {
    background: #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.06);
    color: #545454;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 800px;
    padding: 2em 2em 4em;
}

h1, h2, h3, h4, h5, h6 {
    color: #041a7e;
    font-weight: 600;
    line-height: 1.3;
}

h1{
    text-align: center;
    margin-bottom: 1.5em;
    text-shadow:  #ff9300 1px 0 5px;
    -webkit-box-reflect: below 0 -webkit-linear-gradient(transparent, transparent 50%, rgba(255, 255, 255, .3));
}

h2{
    margin-top: 1.2em;
    text-shadow:  #ff9300 2px 0 5px;
    -webkit-box-reflect: below 0 -webkit-linear-gradient(transparent, transparent 50%, rgba(255, 255, 255, .3));
}

h4{
    font-size: 20px;
    line-height: 1.0;
    margin-bottom: 0px;
    padding-left: 15px;
    border-left: 5px solid #97dbf6;
    background: linear-gradient(to right, #e8f8fe, rgba(255, 255, 255, 0));
    overflow: hidden;
}

a {
    color: #0083e8;
    font-weight: 800
}

ul li a:link{color:#0083e8}
ul li a:hover{color:#ccffee; background-image: linear-gradient(90deg, #131b3e 0%, #4d0000 100%)}
ul li a:active{color:red}

b, strong {
    font-weight: 800;
    color: #651706;
}

samp {
    display: none;
}

img {
    animation: colorize 2s cubic-bezier(0, 0, .78, .36) 1;
    background: transparent;
    border: 10px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    display: block;
    margin: 1.3em auto;
    max-width: 95%;
}

.zoomImg{
    cursor: pointer;
}
.zoomImg:hover{
    opacity: 0.8;
}

.leftImg{
    float: left;
    margin-top: 10px;
    margin-right: 20px;
    margin-bottom: 10px;
}

p{
    text-align: justify;
}

p img{
    display: inline;
    border: 0;
    margin: 0;
}

.leftPara{
    display: block;
}

.remark{
    clear: left;
    padding-left: 20px;
    padding-right: 20px;
    border-left: 5px solid #800000;
    background-color: #f8f8f8;
}

ul{
    list-style-position: inside;
}
ul li{
    list-style-type: none;
    background: url("images/ListImg.png") no-repeat 0rem 0.5rem;
    background-size: 20px 25px;
    text-indent: 2em;
    line-height: 2.5em;
}

ol li::marker{
    color: #800000;
    font-weight: bold;
}

div{
    line-height: 1.8;
}

table{
    width: auto;
    align-content:flex-end;
    border: 2px solid #aaa1c7;
    border-collapse: separate;
    display: flex;
    padding: 1px;
}

th, td{
    border: 2px solid #ddd;
    padding: 5px;
    text-align: justify;
    line-height: 1.35;
}

th{
    background-color: #B6D4EF;
    color: black;
    text-align: center;
}

td{
    margin: 1px;
}

th:first-child, td:first-child{
    width: 85px;
    text-align: center;
}

th:nth-child(n+2), td:nth-child(n+2){
    width: auto;
}

@keyframes colorize {
    0% {
        -webkit-filter: grayscale(100%);
        filter: grayscale(100%);
    }
    100% {
        -webkit-filter: grayscale(0%);
        filter: grayscale(0%);
    }
}

/*用于放大显示图片的CSS*/
#myImg{
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#myImg:hover{opacity: 0.7;}

.modal{
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content{
    margin: auto;
    display: block;
    width: auto;
    max-width: auto;
}

#caption{
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content, #caption{
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom{
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}

@keyframes zoom{
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close{
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    height: 50px;
}

.close:hover,
.close:focus{
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: auto){
    .modal-content{
        width: 100%;
    }
}

/* 基础代码样式 */
code {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    background-color: #f8f8f8;
    border-radius: 3px;
    padding: 0.2em 0.4em;
    font-size: 0.95em;
    color: #d63384;
}

/* 代码块容器 */
pre {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 1.2em;
    overflow: auto;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 1.5em 0;
}

/* 代码块内的代码 */
pre code {
    background: transparent;
    color: #f8f8f2;
    padding: 0;
    font-size: 0.95em;
}

/* 语法高亮配色 (类VS Code风格) */
.hl-keyword { color: #cc99cd; }      /* 关键字 */
.hl-function { color: #f08d49; }     /* 函数名 */
.hl-string { color: #7ec699; }       /* 字符串 */
.hl-comment { color: #999; }         /* 注释 */
.hl-attr { color: #e2777a; }         /* HTML属性/JSX属性 */
.hl-number { color: #f08d49; }       /* 数字 */
.hl-class { color: #e5c07b; }        /* 类名 */
.hl-tag { color: #e2777a; }          /* HTML标签 */
/* 批处理特有语法高亮 */
.hl-batch-command { color: #4ec9b0; }  /* 命令：echo, set, etc */
.hl-batch-label { color: #c586c0; }    /* 标签：:start, :end */
.hl-batch-variable { color: #9cdcfe; } /* 变量：%name%, %1 */
.hl-batch-operator { color: #d4d4d4; } /* 操作符：==, |, > */
.hl-batch-comment { color: #6a9955; }  /* 注释：rem 或 :: */


/* 滚动条样式 */
pre::-webkit-scrollbar {
    height: 8px;
    background: transparent;
}

pre::-webkit-scrollbar-thumb {
    background: #5e5e5e;
    border-radius: 4px;
}

/* 代码标题 */
.code-header {
    position: relative;
    background: #252525;
    color: #ccc;
    padding: 0.6em 1em;
    border-radius: 8px 8px 0 0;
    font-size: 0.85em;
    display: flex;
    justify-content: space-between;
    font-family: system-ui, sans-serif;
    display: block;
}

/* 复制按钮 */
.copy-btn {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s;
    position: absolute;

    right: 10px;

}

.copy-btn:hover {
    color: #fff;
}