/*正文样式*/
.h2w {
  font-family: "STHeitiTC-Light", "Microsoft YaHei Light", "Hiragino Sans GB", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1rem;
  line-height: 1.8;
  word-wrap: break-word;
  word-break: break-all;
}

.h2w__main {
  margin: 0 0.94rem 0px 0.94rem;
  padding-top: 0.625rem;

}

/**标题**/
.h2w__h1,
.h2w__h2,
.h2w__h3,
.h2w__h4,
.h2w__h5,
.h2w__h6 {
  font-weight: bold;
}

/**设置行间元素样式**/
.h2w__span,
.h2w__b,
.h2w__strong,
.h2w__i,
.h2w__em,
.h2w__code,
.h2w__sub,
.h2w__sup,
.h2w__g-emoji,
.h2w__mark,
.h2w__ins {
  display: inline;
}

.h2w__h1 {
  border-bottom-style: double;
  border-bottom-width: 0.1875rem;
  font-size: 1.3125rem;
  padding-bottom: 0.3125rem;
  margin-bottom: 0.625rem;
}

.h2w__h2 {
  border-bottom-style: solid;
  border-bottom-width: 0.03125rem;
  font-size: 1.25rem;
  padding-bottom: 0.25rem;
  margin-bottom: 0.5625rem;
}

.h2w__h3 {
  font-size: 1.1875rem;
  padding-bottom: 0.1875rem;
  margin-bottom: 0.375rem;
}

.h2w__h4 {
  font-size: 1.125rem;
  padding-bottom: 0.125rem;
  margin-bottom: 0.375rem;
}

.h2w__h5 {
  font-size: 1.0625rem;
  padding-bottom: 0.0625rem;
  margin-bottom: 0.375rem;
}

.h2w__h6 {
  margin-bottom: 0.375rem;
}


/**表格**/
.h2w__tableParent {
  width: 100%;
  overflow-x: auto;
}

.h2w__table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  display: table;
  margin-bottom: 1.3125rem;
  white-space: nowrap;
}

.h2w__table .h2w__tr:nth-child(2n) {
  background-color: red;
}

.h2w__colgroup {
  display: table-column-group;
}

.h2w__col {
  display: table-column;
}

.h2w__thead {
  display: table-header-group;
}

.h2w__tbody {
  display: table-row-group;
}

.h2w__tfoot {
  display: table-footer-group;
}

.h2w__tr {
  display: table-row;
}

.h2w__th,
.h2w__td {
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  border-width: 0.03125rem;
  border-style: solid;
  display: table-cell;
}

.h2w__th {
  font-weight: bold;
}

/**代码块**/
.h2w__pre {
  /*white-space:nowrap;*/
  padding: 0.625rem;
  font-size: 0.875rem;
  word-break: normal;
  border-width: 0.03125rem;
  border-style: solid;
  margin-bottom: 1.3125rem;
  white-space: nowrap;
  overflow-x: auto;
  tab-size: 4;
}

.h2w__pre .h2w__code {
  padding: 0;
  border: 0;
  font-size: 100%;
}

.h2w__pre,
.h2w__code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace, "STHeitiTC-Light", "Microsoft YaHei Light", -apple-system, system-ui, BlinkMacSystemFont;
}

.h2w__code {
  padding: 0.125rem 0.25rem;
  margin: 0 0.125rem;
  border-width: 0.03125rem;
  border-style: solid;
  border-radius: 0.25rem;
  font-size: 95%;
  overflow-x: auto;
}

.h2w__pre .h2w__span,
.h2w__pre .h2w__a,
.h2w__pre .h2w__span,
.h2w__pre .h2w__b,
.h2w__pre .h2w__strong,
.h2w__pre .h2w__i,
.h2w__pre .h2w__em {
  display: inline;
}

.h2w__pre {
  white-space: pre;
  display: block;
}

.h2w__pre .h2w__code {
  white-space: pre;
  min-width: 100%;
  display: block;
  font-size: 95%;
}
/**列表**/
.h2w__ul,
.h2w__ol {
  margin-bottom: 1.3125rem;
  padding-left: 1rem;
}

.h2w__ul .h2w__ul,
.h2w__ol .h2w__ol,
.h2w__ul .h2w__ol,
.h2w__ol .h2w__ul {
  margin-bottom: 0;
}

.h2w__li {
  display: list-item;
}

/**todo**/
.h2w__todogroup {
  margin-bottom: 1.3125rem;
}

.h2w__todolist {
  display: block;
}

.h2w__todogroup .h2w__todogroup {
  padding-left: 1.6rem;
}

/**一级ol样式**/
.h2w__ol {
  list-style-type: decimal;
}

/**二级ol样式**/
.h2w__ul .h2w__ol,
.h2w__ol .h2w__ol {
  list-style-type: lower-roman;
}

/**三级ol样式**/
.h2w__ul .h2w__ul .h2w__ol,
.h2w__ul .h2w__ol .h2w__ol,
.h2w__ol .h2w__ul .h2w__ol,
.h2w__ol .h2w__ol .h2w__ol {
  list-style-type: lower-alpha;
}

/**一级ul样式**/
.h2w__ul {
  list-style-type: disc;
}

/**二级ul样式**/
.h2w__ul .h2w__ul,
.h2w__ol .h2w__ul {
  list-style-type: circle;
}

/**三级样式**/
.h2w__ol .h2w__ol .h2w__ul,
.h2w__ol .h2w__ul .h2w__ul,
.h2w__ul .h2w__ol .h2w__ul,
.h2w__ul .h2w__ul .h2w__ul {
  list-style-type: square;
}

/**块元素**/
.h2w__p {
  margin: 0.625rem 0 0.625rem 0;
  /*word-wrap:break-word;
  word-break:break-all;*/
  /*text-align:justify;*/
}

.h2w__div {
  /*text-align:justify;*/
}
//
//.h2w__br {
//  display: inline-block;
//}

.h2w__todoCheckbox {
  display: inline-block;
}

.h2w__table .h2w__br{
  display: block;
}

.h2w__blockquote {
  border-left-width: 0.25rem;
  border-left-style: solid;
  padding: 0 0.625rem;
}

/**内连元素**/
.h2w__a,
.h2w__span,
.h2w__b,
.h2w__strong,
.h2w__i,
.h2w__em {
  display: inline;
}

.h2w__b,
.h2w__strong {
  font-weight: bold;
}

.h2w__i,
.h2w__em {
  font-style: italic;
}

/**文本删除线**/
.h2w__s,
.h2w__strike,
.h2w__del {
  text-decoration: line-through;
  display: inline;
}

/**文本下划线**/
.h2w__ins,
.h2w__u {
  text-decoration: underline;
}

/**链接**/
.h2w__a {
  border-bottom-width: 0.03125rem;
  //border-bottom-style: solid;
  line-height: 1.2em;
  color: #0366d6;
  cursor: pointer;
}

.h2w__hr {
  height: 0.25rem;
  margin: 1.3125rem 0;
}

/**荧光标记**/
.h2w__mark {
  border-radius: 0.125rem;
}

/**上标、下标**/
.h2w__sup,
.h2w__sub {
  font-size: 75%;
  position: relative;
}

.h2w__sup {
  top: -0.5em;
}

.h2w__sub {
  bottom: -0.25em;
}

/**emoji表情**/
.h2w__g-emoji {
  margin: 0 0.1em;
  font-family: "Apple Color Emoji", "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol";
}

/**内置元素**/
image, video {
  max-width: 100%;
}


video {
  width: 100%;
  margin: 0.3125rem auto;
}

image {
  vertical-align: middle;
}

video {
  font-size: 0;
}

.h2w__latex--line {
  margin: 0.125rem 0.25rem;
  vertical-align: middle;
}

.h2w__latex--block {
  display: block;
  margin: 1em auto;
}

.h2w__yuml {
  display: block;
}

.h2w__yumlBox {
  width: 100%;
  overflow-x: auto;
}

.h2w__yumlView {
  margin: 0 auto;
  padding-bottom: 1.3125rem;
}

/**代码行号**/
.h2w__lineNum {
  text-align: right;
  float: left;
  padding: 0;
  margin: 0 1em 0 0;
}

.h2w__lineNumLine {
  list-style: none;
}

.h2w__img {
  max-width: 100%
}

/*音频播放器样式*/
.h2w__audio {
    height: 3.6267rem;
    margin:0.4267rem 0;
    background: #f1f1f1;
    position: relative;
}

.h2w__audio--error .h2w__audioIcon,
.h2w__audio--loading .h2w__audioIcon {
    display:none;
}

.h2w__audio--readyed .h2w__audioLoading,
.h2w__audio--end .h2w__audioLoading,
.h2w__audio--play .h2w__audioIcon,
.h2w__audio--pause .h2w__audioLoading,
.h2w__audio--play .h2w__audioLoading {
    display: none;
}

.h2w__audio--play .h2w__audioCover image {
    opacity: 1;
}

.h2w__audio--readyed .h2w__audioTips,
.h2w__audio--end .h2w__audioTips,
.h2w__audio--stop .h2w__audioTips,
.h2w__audio--pause .h2w__audioTips,
.h2w__audio--play .h2w__audioTips {
    opacity:0.4;
}

.h2w__audio--error {
    background:red;
}

/* .h2w__audio--end .h2w__audio__icon {width:0.5333rem; height:0.5333rem; background:white; border:0; left:0.64rem; top:0.64rem; border-radius:2rpx;} */
.h2w__audioCover {
    width: 3.6267rem;
    height: 3.6267rem;
    background: black;
    float: left;
    position: relative;
}

.h2w__audioCover image {
    width: 100%;
    height: 100%;
    opacity: 0.6;
    margin:0;
    transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.h2w__audioCover .h2w__audioLoading {
    width:2.1333rem;
    height:2.1333rem;
    position:absolute;
    left:50%;
    top:50%;
    margin:-1.0667rem 0 0 -1.0667rem;
    z-index:1;
    opacity:1;
}

.h2w__audioInfo {
    padding-left: 0.5333rem;
    padding-top: 0.4267rem;
    position: absolute;
    left: 3.6267rem;
    right: 0;
}

.h2w__audioSchedule {
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(0, 255, 0, 0.1);
    height: 3.6267rem;
    width: 0;
}

.h2w__audioTips {
    position:absolute;
    right:0;
    top:0;
    height: 0.8533rem;
    line-height: 0.8533rem;
    padding:0.26667rem 0.5333rem;
    font-size:0.5333rem;
}

.h2w__audio--error .h2w__audioTips {
    color:red;
}

.h2w__audioTitle {
    display: block;
    font-size: 0.64rem;
    height: 1.0667rem;
    line-height: 1.0667rem;
    font-weight: bold;
}

.h2w__audioAuthor {
    display: block;
    font-size: 0.5333rem;
    height: 0.8533rem;
    line-height: 0.8533rem;
}

.h2w__audioTime {
    display: block;
    font-size: 0.5333rem;
    height: 0.8533rem;
    line-height: 0.8533rem;
}

.h2w__audioIcon {
    width: 0;
    height: 0;
    position: absolute;
    left: 1.6rem;
    top: 1.28rem;
    border-width: 0.5333rem 0 0.5333rem 0.5333rem;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    z-index: 1;
}


@import "theme/light";
@import "theme/dark";
