@charset "utf-8";

/* 防止用户自定义背景颜色对网页的影响，添加让用户可以自定义字体 */
html .cod-content-style {
    color: #333;
    background: #fff;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-rendering: optimizelegibility;
}

/* 如果你的项目仅支持 IE9+ | Chrome | Firefox 等，推荐在 <html> 中添加 .borderbox 这个 class */
html .cod-content-style .borderbox *,
html .cod-content-style.borderbox *:before,
html .cod-content-style.borderbox *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* 内外边距通常让各个浏览器样式的表现位置不同 */
body .cod-content-style,
.cod-content-style dl,
.cod-content-style dt,
.cod-content-style dd,
.cod-content-style ul,
.cod-content-style ol,
.cod-content-style li,
.cod-content-style h1,
.cod-content-style h2,
.cod-content-style h3,
.cod-content-style h4,
.cod-content-style h5,
.cod-content-style h6,
.cod-content-style pre,
.cod-content-style code,
.cod-content-style form,
.cod-content-style fieldset,
.cod-content-style legend,
.cod-content-style input,
.cod-content-style textarea,
.cod-content-style p,
.cod-content-style blockquote,
.cod-content-style th,
.cod-content-style td,
.cod-content-style hr,
.cod-content-style button,
.cod-content-style article,
.cod-content-style aside,
.cod-content-style details,
.cod-content-style figcaption,
.cod-content-style figure,
.cod-content-style footer,
.cod-content-style header,
.cod-content-style menu,
.cod-content-style nav,
.cod-content-style section {
    margin: 0;
    padding: 0;
}

/* 重设 HTML5 标签, IE 需要在 js 中 createElement(TAG) */
.cod-content-style article,
.cod-content-style aside,
.cod-content-style details,
.cod-content-style figcaption,
.cod-content-style figure,
.cod-content-style footer,
.cod-content-style header,
.cod-content-style menu,
.cod-content-style nav,
.cod-content-style section {
    display: block;
}

/* HTML5 媒体文件跟 img 保持一致 */
.cod-content-style audio,
.cod-content-style canvas,
.cod-content-style video {
    display: inline-block;
}

/* 要注意表单元素并不继承父级 font 的问题 */
body .cod-content-style,
.cod-content-style button,
.cod-content-style input,
.cod-content-style select,
.cod-content-style textarea {
    font: 300 1em/1.8 PingFang SC, Lantinghei SC, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
}

.cod-content-style button::-moz-focus-inner,
.cod-content-style input::-moz-focus-inner {
    padding: 0;
    border: 0;
}

/* 去掉各Table cell 的边距并让其边重合 */
.cod-content-style table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 去除默认边框 */
.cod-content-style fieldset,
img {
    border: 0;
}

/* 块/段落引用 */
.cod-content-style blockquote {
    position: relative;
    color: #999;
    font-weight: 400;
    border-left: 1px solid #F7B940;
    padding-left: 1em;
    margin: 1em 3em 1em 2em;
}

@media only screen and (max-width: 640px) {
    .cod-content-style blockquote {
        margin: 1em 0;
    }
}

/* Firefox 以外，元素没有下划线，需添加 */
.cod-content-style acronym,
.cod-content-style abbr {
    border-bottom: 1px dotted;
    font-variant: normal;
    text-decoration: none;
}

/* 添加鼠标问号，进一步确保应用的语义是正确的（要知道，交互他们也有洁癖，如果你不去掉，那得多花点口舌） */
.cod-content-style abbr {
    cursor: help;
}

/* 一致的 del 样式 */
.cod-content-style del {
    text-decoration: line-through;
}

.cod-content-style address,
.cod-content-style caption,
.cod-content-style cite,
.cod-content-style code,
.cod-content-style dfn,
.cod-content-style em,
.cod-content-style th,
.cod-content-style var {
    font-style: normal;
    font-weight: 400;
}

/* 去掉列表前的标识, li 会继承，大部分网站通常用列表来很多内容，所以应该当去 */
.cod-content-style ul,
.cod-content-style ol {
    list-style: none;
}

/* 对齐是排版最重要的因素, 别让什么都居中 */
.cod-content-style caption,
.cod-content-style th {
    text-align: left;
}

.cod-content-style q:before,
.cod-content-style q:after {
    content: '';
}

/* 统一上标和下标 */
.cod-content-style sub,
.cod-content-style sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
}

.cod-content-style :root sub,
.cod-content-style :root sup {
    vertical-align: baseline;
    /* for ie9 and other modern browsers */
}

.cod-content-style sup {
    top: -0.5em;
}

.cod-content-style sub {
    bottom: -0.25em;
}

/* 让链接在 hover 状态下显示下划线 */

.cod-content-style a:hover {
    text-decoration: underline;
}

.cod-content-style .typo a:hover {
    border-bottom-color: #555;
    color: #555;
    text-decoration: none;
}

/* 默认不显示下划线，保持页面简洁 */
.cod-content-style ins,
a {
    text-decoration: none;
}

/* 专名号：虽然 u 已经重回 html5 Draft，但在所有浏览器中都是可以使用的，
   * 要做到更好，向后兼容的话，添加 class="typo-u" 来显示专名号
   * 关于 <u> 标签：http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-u-element
   * 被放弃的是 4，之前一直搞错 http://www.w3.org/TR/html401/appendix/changes.html#idx-deprecated
   * 一篇关于 <u> 标签的很好文章：http://html5doctor.com/u-element/
   */
u,
.cod-content-style .typo-u {
    text-decoration: underline;
}

/* 标记，类似于手写的荧光笔的作用 */
.cod-content-style mark {
    background: #fffdd1;
    border-bottom: 1px solid #ffedce;
    padding: 2px;
    margin: 0 5px;
}

/* 代码片断 */
.cod-content-style pre,
.cod-content-style code,
.cod-content-style pre tt {
    font-family: Courier, 'Courier New', monospace;
}

.cod-content-style pre {
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 1em 1.5em;
    display: block;
    -webkit-overflow-scrolling: touch;
}

/* 一致化 horizontal rule */
.cod-content-style hr {
    border: none;
    border-bottom: 1px solid #cfcfcf;
    margin-bottom: 0.8em;
    height: 10px;
}

/* 底部印刷体、版本等标记 */
.cod-content-style small,
.typo-small,
/* 图片说明 */
.cod-content-style figcaption {
    font-size: 0.9em;
    color: #888;
}

.cod-content-style strong,
b {
    font-weight: bold;
    color: #000;
}

/* 可拖动文件添加拖动手势 */
.cod-content-style [draggable] {
    cursor: move;
}

.cod-content-style .clearfix:before,
.cod-content-style .clearfix:after {
    content: "";
    display: table;
}

.cod-content-style .clearfix:after {
    clear: both;
}

.cod-content-style .clearfix {
    zoom: 1;
}

/* 强制文本换行 */
.cod-content-style .textwrap,
.cod-content-style .textwrap td,
.cod-content-style .textwrap th {
    word-wrap: break-word;
    word-break: break-all;
}

.cod-content-style .textwrap-table {
    table-layout: fixed;
}

/* 提供 serif 版本的字体设置: iOS 下中文自动 fallback 到 sans-serif */
.cod-content-style .serif {
    font-family: Palatino, Optima, Georgia, serif;
}

/* 保证块/段落之间的空白隔行 */
.cod-content-style .typo p,
.cod-content-style .typo pre,
.cod-content-style .typo ul,
.cod-content-style .typo ol,
.cod-content-style .typo dl,
.cod-content-style .typo form,
.cod-content-style .typo hr,
.cod-content-style .typo table,
.cod-content-style .typo-p,
.cod-content-style .typo-pre,
.cod-content-style .typo-ul,
.cod-content-style .typo-ol,
.cod-content-style .typo-dl,
.cod-content-style .typo-form,
.cod-content-style .typo-hr,
.cod-content-style .typo-table,
.cod-content-style blockquote {
    margin-bottom: 1.2em
}

.cod-content-style h1,
.cod-content-style h2,
.cod-content-style h3,
.cod-content-style h4,
.cod-content-style h5,
.cod-content-style 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;
}

/* 标题应该更贴紧内容，并与其他块区分，margin 值要相应做优化 */
.cod-content-style .typo h1,
.cod-content-style .typo h2,
.cod-content-style .typo h3,
.cod-content-style .typo h4,
.cod-content-style .typo h5,
.cod-content-style .typo h6,
.cod-content-style .typo-h1,
.cod-content-style .typo-h2,
.cod-content-style .typo-h3,
.cod-content-style .typo-h4,
.cod-content-style .typo-h5,
.cod-content-style .typo-h6 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    line-height: 1.35;
}

.cod-content-style .typo h1,
.cod-content-style .typo-h1 {
    font-size: 2em;
}

.cod-content-style .typo h2,
.cod-content-style .typo-h2 {
    font-size: 1.8em;
}

.cod-content-style .typo h3,
.cod-content-style .typo-h3 {
    font-size: 1.6em;
}

.cod-content-style .typo h4,
.cod-content-style .typo-h4 {
    font-size: 1.4em;
}

.cod-content-style .typo h5,
.cod-content-style .typo h6,
.cod-content-style .typo-h5,
.cod-content-style .typo-h6 {
    font-size: 1.2em;
}

/* 在文章中，应该还原 ul 和 ol 的样式 */
.cod-content-style .typo ul,
.cod-content-style .typo-ul {
    margin-left: 1.3em;
    list-style: disc;
}

.cod-content-style .typo ol,
.cod-content-style .typo-ol {
    list-style: decimal;
    margin-left: 1.9em;
}

.cod-content-style .typo li ul,
.cod-content-style .typo li ol,
.cod-content-style .typo-ul ul,
.cod-content-style .typo-ul ol,
.cod-content-style .typo-ol ul,
.cod-content-style .typo-ol ol {
    margin-bottom: 0.8em;
    margin-left: 2em;
}

.cod-content-style .typo li ul,
.cod-content-style .typo-ul ul,
.cod-content-style .typo-ol ul {
    list-style: circle;
}

/* 同 ul/ol，在文章中应用 table 基本格式 */
.cod-content-style .typo table th,
.cod-content-style .typo table td,
.cod-content-style .typo-table th,
.cod-content-style .typo-table td,
.cod-content-style .typo table caption {
    border: 1px solid #ddd;
    padding: 0.5em 1em;
    color: #666;
}

.cod-content-style .typo table th,
.cod-content-style .typo-table th {
    background: #fbfbfb;
}

.cod-content-style .typo table thead th,
.cod-content-style .typo-table thead th {
    background: #f1f1f1;
}

.cod-content-style .typo table caption {
    border-bottom: none;
}

/* 去除 webkit 中 input 和 textarea 的默认样式  */
.cod-content-style .typo-input,
.cod-content-style .typo-textarea {
    -webkit-appearance: none;
    border-radius: 0;
}

.cod-content-style .typo-em,
.cod-content-style .typo em,
.cod-content-style legend,
.cod-content-style caption {
    color: #000;
    font-weight: inherit;
}

/* 着重号，只能在少量（少于100个字符）且全是全角字符的情况下使用 */
.cod-content-style .typo-em {
    position: relative;
}

.cod-content-style .typo-em:after {
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    content: "・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・";
}

/* Responsive images */
.cod-content-style .typo img {
    max-width: 100%;
}