@charset "utf-8";

.typo button, .typo input, .typo select, .typo textarea {
  font: 300 1em/1.8 PingFang SC, Lantinghei SC, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
}

.typo button::-moz-focus-inner,
.typo input::-moz-focus-inner {
  padding: 0;
  border: 0;
}

.typo table {
  border-collapse: collapse;
  border-spacing: 0;
}

.typo fieldset, .typo img {
  border: 0;
}

/* 块/段落引用 */
.typo blockquote {
  position: relative;
  color: #937474;
  font-weight: 400;
  border-left: 3px solid #8cb81c;
  margin: 1em 3em 1em 2em;
  padding: 1.5em 1.5em 1px 1.5em;
  background-color: rgba(188,253,133,0.24);
}

@media only screen and ( max-width: 640px ) {
    .typo blockquote {
    margin: 1em 0;
  }
}

/* Firefox 以外，元素没有下划线，需添加 */
.typo acronym, .typo abbr {
  border-bottom: 1px dotted;
  font-variant: normal;
  text-decoration: none;
}

.typo abbr {
  cursor: help;
}

/* 一致的 del 样式 */
.typo del {
  text-decoration: line-through;
}

.typo address, .typo caption, .typo cite, .typo code, .typo dfn, .typo em, .typo th, .typo var {
  font-style: normal;
  font-weight: 400;
}

/* 去掉列表前的标识, li 会继承，大部分网站通常用列表来很多内容，所以应该当去 */
.typo ol {
  list-style: none;
}

/* 在文章中，应该还原 ul 和 ol 的样式 */
.typo ul, .typo-ul {
  margin-bottom: 2em;
  list-style: disc;
}

/* 对齐是排版最重要的因素, 别让什么都居中 */
.typo caption, .typo th {
  text-align: left;
}

.typo q:before, .typo q:after {
  content: '';
}

/* 统一上标和下标 */
.typo sub, .typo sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
}

.typo :root sub, .typo :root sup {
  vertical-align: baseline; /* for ie9 and other modern browsers */
}

.typo sup {
  top: -0.5em;
}

.typo sub {
  bottom: -0.25em;
}

/* 让链接在 hover 状态下显示下划线 */
.typo a {
  color: #1abc9c;
}

.typo a:hover {
  text-decoration: underline;
}

.typo a {
  border-bottom: 1px solid #1abc9c;
}

.typo a:hover {
  border-bottom-color: #555;
  color: #555;
  text-decoration: none;
}

/* 默认不显示下划线，保持页面简洁 */
.typo ins, .typo a {
  text-decoration: none;
}

.typo u, .typo-u {
  text-decoration: underline;
}

/* 标记，类似于手写的荧光笔的作用 */
.typo mark {
  background: #fffdd1;
  border-bottom: 1px solid #ffedce;
  padding: 2px;
  margin: 0 5px;
}

/* 代码片断 */
.typo pre, .typo code, .typo pre tt {
  font-family: Courier, 'Courier New', monospace;
}

/*给pre标签定义横向滚动条*/
.typo pre {
    overflow: auto;
}

.typo pre {
  background: #f8f8f8;
  border: 1px solid #ddd;
  padding: 1em 1.5em;
  display: block;
  -webkit-overflow-scrolling: touch;
}

/* 一致化 horizontal rule */
.typo hr {
  width: 75%;
  border: none;
  border-bottom: 1px solid #cfcfcf;
  margin-top: 3em;
  margin-bottom: 3em;
  height: 1px;
}

/* 底部印刷体、版本等标记 */
.typo small, .typo-small,
  /* 图片说明 */
.typo figcaption {
  font-size: 0.9em;
  color: #888;
}

.typo strong, .typo b {
  font-weight: bold;
  color: #000;
}

/* 可拖动文件添加拖动手势 */
.typo [draggable] {
  cursor: move;
}

.typo .clearfix:before, .typo .clearfix:after {
  content: "";
  display: table;
}

.typo .clearfix:after {
  clear: both;
}

.typo .clearfix {
  zoom: 1;
}

/* 强制文本换行 */
.typo .textwrap, .typo .textwrap td, .typo .textwrap th {
  word-wrap: break-word;
  word-break: break-all;
}

.typo .textwrap-table {
  table-layout: fixed;
}

/* 提供 serif 版本的字体设置: iOS 下中文自动 fallback 到 sans-serif */
.typo .serif {
  font-family: Palatino, Optima, Georgia, serif;
}

/* 保证块/段落之间的空白隔行 */
.typo p,           .typo ol, .typo dl, .typo form, .typo table,
.typo-p, .typo-ul, .typo-ol, .typo-dl, .typo-form, .typo-table, blockquote {
  margin-bottom: 1.5em
}

.typo pre, .typo-pre {
    margin-top: 2em !important;
    margin-bottom: 3em !important;
}

/* h4被我拿来用作引用了，所以额外处理 */
.typo h1, .typo h2, .typo h3, .typo h5, .typo h6 {
  font-family: PingFang SC, Verdana, Helvetica Neue, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
  font-weight: 100;
  color: #000;
  line-height: 1.35;
}
.typo h1, .typo h2, .typo h3, .typo h5, .typo h6,
.typo-h1, .typo-h2, .typo-h3, .typo-h5, .typo-h6 {
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.35;
}
/* h1, h2自带加粗 */
.typo h1, .typo-h1 {
  font-size: 2em;
  font-weight: bold;
}
.typo h2, .typo-h2 {
  font-size: 1.8em;
  font-weight: bold;
}
.typo h3, .typo-h3 {
  font-size: 1.6em;
}
/* h4用作引用 */
.typo h4, .typo-h4 {
  font-family: NSimSun, SimSun;
  font-size: 1.2em;
  word-wrap: break-word;
  font-weight: 600;
}
.typo h5, .typo h6, .typo-h5, .typo-h6 {
  font-size: 1.2em;
}

.typo ol, .typo-ol {
  list-style: decimal;
}

.typo li ul, .typo li ol, .typo-ul ul, .typo-ul ol, .typo-ol ul, .typo-ol ol {
  margin-bottom: 1em;
}

.typo li {
  margin: 1em 1em 1em 0em;
}

.typo li ul, .typo-ul ul, .typo-ol ul {
  list-style: circle;
}

/* 同 ul/ol，在文章中应用 table 基本格式 */
.typo table th, .typo table td, .typo-table th, .typo-table td, .typo table caption {
  border: 1px solid #ddd;
  padding: 0.5em 1em;
  color: #666;
}

.typo table th, .typo-table th {
  background: #fbfbfb;
}

.typo table thead th, .typo-table thead th {
  background: #f1f1f1;
}

.typo table caption {
  border-bottom: none;
}

/* 去除 webkit 中 input 和 textarea 的默认样式  */
.typo-input, .typo-textarea {
  -webkit-appearance: none;
  border-radius: 0;
}

.typo-em, .typo em, legend, caption {
  color: #000;
  font-weight: inherit;
}

/* 着重号，只能在少量（少于100个字符）且全是全角字符的情况下使用 */
.typo-em {
  position: relative;
}

.typo-em:after {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  content: "・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・";
}

/* Responsive images */
.typo img {
  max-width: 100%;
}
