/**
 * @file:      Neat.css V1.0.4
 * @author:    一丝
 * @update:    2013-11-22 14:55:29;
 * @copyright: 基于 normalize.css | MIT License     
 * @doc:      
*/

/**
 * Neat.css 解决的问题
 * 基于业务需要兼容的浏览器做到以下几点：
 * 1.解决BUG，特别是低级浏览器的常见BUG；
 * 2.统一效果，但不盲目追求重置为0；
 * 3.向后兼容；
 * 4.考虑响应式；
 * 5.考虑移动设备。
 */

/* ==========================================================================
   有即是无，无即是有
   ========================================================================== */
body, dl, dd, /* dt, 默认没边距 */
ul, ol, /*li, 默认没边距 */
h1, h2, h3, h4, h5, h6, pre, /* code, 默认没边距 */
form, fieldset, legend, input, textarea,
p, blockquote, figure, hr, menu, dir,
thead, tbody, tfoot, th, td /* th, td 默认 padding:1px */
{
    margin:0;
    padding:0;
}

/**
 * 非大面积文字排版网站通常不需要列表项，如果需要可单独设置
 */
ul, ol {
    list-style-type: none;
    list-style-image: none;
}


/* ==========================================================================
   链接
   ========================================================================== */

/**
 * 去除链接默认的下划线，提高文字可读性
 */
a {
    text-decoration: none;
}

/**
* 去掉 IE 10+ 点击链接时的灰色背景
*/
a:active {
    background-color: transparent;
}

/**
 * 去掉点击时的焦点框，同时保证使用键盘可以显示焦点框
 */
a:active,
a:hover {
    outline: 0 none;
}

/**
 * 统一 Chrome 和 Safari 的焦点框样式
 * Chrome 中 thin 关键字放大页面后焦点框不会放大 http://jsbin.com/ehakom/1
 * Firefox 中 box-shadow 会导致焦点框位置偏移，需用「outline-offset」修正
 * 
 */
a:focus {
    outline: 1px dotted;
}

/* ==========================================================================
   字体和基础排版
   ========================================================================== */

/**
 * 1.防止 iOS 横屏字号放大，同时保证在PC上 zoom 功能正常
 */
html {
    -ms-text-size-adjust: 100%; /* 1 */
    -webkit-text-size-adjust: 100%; /* 1 */
    text-size-adjust: 100%;
    font-size: 62.5%; /* 10/16=62.5% */
}

body {
    font-size: 14px;
    line-height: 1.8;
}


/**
 * 所有 font-family 小写，存在空格的字体名加单引号
 * @default-font: 'helvetica neue', tahoma, \5B8B\4F53, sans-serif;
 * @heading-font: 'helvetica neue', tahoma, 'hiragino sans gb', stheiti, 
    \5FAE\8F6F\96C5\9ED1, \5B8B\4F53, 'wenquanyi micro hei', sans-serif;
 * @code-font: monaco, menlo, consolas, monospace;
 */

/**
 * 中文优先使用冬青黑体简体(OS X)、微软雅黑(Windows)和文泉驿微米黑(Linux)
 * 西文使用 tahoma
 * 1. 防止元素中「font-family」不能继承
 * 2. 西文字体和 OS X 字体写在前面
 * 3. Opera 12.1 之前版本不支持中文字体的英文名称
 * 4. 微软雅黑「\5FAE\8F6F\96C5\9ED1」,中易宋体「\5B8B\4F53」
 */
body,
button, /* 1 */
input, /* 1 */
select, /* 1 */
textarea  /* 1 */
{
    font-family: 'helvetica neue',tahoma,'hiragino sans gb',stheiti,'wenquanyi micro hei',\5FAE\8F6F\96C5\9ED1,\5B8B\4F53,sans-serif;
}

/**
 * 中文小于 12px 可读性很差
 * 1. 统一 IE 6-7 中字体大小
 * 2. 统一 Firefox 4+，Safari 5 和 Chrome 中「section」和「article」内的字体大小
 */
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
} 

h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 14px;
}

h6 {
    font-size: 12px;
}

/**
 * 修正「abbr」元素在 Firefox 外其他浏览器没有下划线的问题
 * 添加问号光标，明确语义
 */
abbr,
acronym {
    border-bottom: 1px dotted; /* 1 */
    cursor:help; /* 2 */
}

/**
 * Firefox3+，Safari4/5 和 Chrome 中统一设置为粗体
 */
b,
strong {
    font-weight: bold;
}

/**
 * 修正 Safari5 和 Chrome 中没有样式的问题
 */
dfn {
    font-style: italic;
}

/**
 * 修正 Firefox 和其他浏览器之间的差异
 */
hr {
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 0;
}

/**
 * 网页标记，荧光笔
 * 修正 IE6-11 中没有样式的问题
 */
mark {
    background-color: #D2E5FF;
    color: #000;
}

/**
 * 统一代码的字体设置
 * 字体要能明确区分数字 0 和字母 o
 * Mac 优先使用 Monaco，Windows 优先使用 Consolas
 * XP自带 Courier New
 * Windows 7开始自带的 Consolas
 * Mac上自带的Monaco，Osaka-Mono
 */
code,
kbd,
pre,
samp {
    font-family: monaco, menlo, consolas, 'courier new', courier, monospace;
}

/**
 * 增强所有浏览器中 pre 标签中文本的可读性
 * 1. IE 6-7 不支持 pre-wrap
 */
pre {
    white-space: pre; 
    white-space: pre-wrap; /* 1 */
    word-wrap: break-word; 
}

/**
 * 行内引用
 * IE 6-7 不支持 quotes 属性
 * 现代浏览器去除 quotes 内容
 */
q {
    quotes: none;
}

/**
 * Safari 4 不支持<q>标签
 */
q:before,
q:after {
    content: '';
    content: none;
}


/**
 * 中文网页<small>元素字号小于 12px 不易阅读
 */
small {
    font-size: 85.7%; /* 12/14=0.8571428571 */
}

/**
 * 防止所有浏览器中的<sub>和<sup>影响行高
 * http://jsbin.com/usoyal/1/edit
 */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

/* ==========================================================================
   表格
   ========================================================================== */

/**
 * 合并单元格边框
 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/**
 * 修复 IE 中 th 不能继承 text-align 的问题并统一左对齐
 * http://jsbin.com/evoxif/2/edit
 */
th {
    text-align: left;
}

/* ==========================================================================
   嵌入元素
   ========================================================================== */

/**
 * 1. 去除 IE6-9 和 Firefox 3 中 a 内部 img 元素默认的边框
 * 2. 修正 IE8 图片消失bug
 * 3. 防止 img 指定「height」时图片高度不能按照宽度等比缩放，导致图片变形
      http://jsbin.com/aJoTUca/2
 * 4. 让图片支持响应式
 * 5. 去除现代浏览器图片底部的空隙
 * 6. 修复 IE7 图片缩放失真
 */
img {
    border: 0 none; /* 1 */
    width: auto\9; /* 2 */
    height: auto; /* 3 */
    max-width: 100%; /* 4 */
    vertical-align: top;/* 5 */
    -ms-interpolation-mode: bicubic; /* 6 */
}

/**
 * 修复 IE9 中的「overflow」的怪异表现
 */
svg:not(:root) {
    overflow: hidden;
}

/* ==========================================================================
   表单
   ========================================================================== */

/**
 * 定义一致的边框、外边距和内边距
 */
fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. 修正 IE 6-9 中颜色不能继承的问题
 * 2. 修正 Firefox3 中文字不换行的问题
 * 3. 修正 IE6-7 中怪异的对齐方式
 */
legend {
    border: 0 none; /* 1 */
    white-space: normal; /* 2 */
    *margin-left: -7px; /* 3 */
}

/**
 * 1. 修正所有浏览器中字体不继承的问题
 * 2. 修正所有浏览器中字号不继承的问题
 * 3. 修正 Firefox 3+， Safari5 和 Chrome 中外边距不同的问题
 * 4. 改善在所有浏览器下的垂直对齐方式
 */
button,
input,
select,
textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 2 */
    margin: 0; /* 3 */
    vertical-align: baseline; /* 4 */
    *vertical-align: middle; /* 4 */
}

/**
 * 修正 IE7 随着字数增加边距不断增加的问题
 */
input,
button {
    *overflow: visible;
}

/**
 * 统一各浏览器「text-transform」不会继承的问题
 * http://jsbin.com/iqecic/1/edit
 * http://tjvantoll.com/2012/07/10/default-browser-handling-of-the-css-text-transform-property/
 */
button,
select {
    text-transform: none;
}

/**
 * 1. 避免 Android 4.0.* 中的 WebKit bug ，该bug会破坏原生的
   「audio」 和「video」的控制器
 * 2. 更正 iOS 中无法设置可点击的「input」的问题
 * 3. 统一其他类型的「input」的光标样式
 */
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button; /* 2 */
    cursor: pointer; /* 3 */
}

/**
 * 重置按钮禁用时光标样式
 */
button[disabled],
input[disabled] {
    cursor: default;
}

/**
 * 1. 修正 IE 8/9 box-sizing 被设置为「content-box」的问题
 * 2. 移除 IE 8/9 中多余的内边距
 * 3. 移除 IE7 中多余的内边距(IE6 中任然存在)
 */
input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
    *height: 13px; /* 3 */
    *width: 13px; /* 3 */
}

/**
 * 1. 修正 Safari 5 和 Chrome 中「appearance」被设置为「searchfield」的问题
 * 2. 修正 Safari 5 和 Chrome 中「box-sizing」被设置为 「border-box」的问题
 */    
input[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box; /* 2 */
    box-sizing: content-box;
}
    
/**
 * 1.移除 OS X 中 Safari5 和 Chrome 搜索框内侧的左边距
 * 2.如果需要隐藏清除按钮需要加上
   input[type="search"]::-webkit-search-cancel-button
 */
input[type="search"]::-webkit-search-decoration /* 1 */
{
    -webkit-appearance: none;
}
    
/**
 * 移除 Firefox 3+ 的内边距
 */
button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/**
 * 1. 移除 IE6-11 中默认的垂直滚动条
 * 2. 统一所有浏览器中的垂直对齐以及增强文字可读性
 * 3. 禁止水平拖动，防止破坏布局
 */
textarea {
    overflow: auto; /* 1 */
    vertical-align: top; /* 2 */
    resize: vertical; /* 3 */
}

/**
 * 修正 Chrome 30- option 中文字无法显示的问题
 * http://jsbin.com/avujas/1/edit 
 */
select:disabled option:checked,
option:disabled:checked {
    color: #D2D2D2;
}

/**
 * 修正 Safari 3+, Chrome 1+ Placeholder 居中问题
 */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    input {
        line-height: normal !important;
    }
}

/**
 * 修正 Firefox 19+ Placeholder 设置了opacity 的问题
 */
input::-moz-placeholder, textarea::-moz-placeholder {
    color: darkGray;
    opacity: 1;
}

/**
 * label 元素给予手型，暗示此处可点击
 */
label {
    cursor: pointer;
}

/**
 * 统一 select 样式, Firefox 中有 padding:1px 0
 * http://jsbin.com/avujas/1/edit
 */
select[size],
select[multiple],
select[size][multiple] {
    border: 1px solid #AAA;
    padding:0;
}

/* ==========================================================================
   HTML5 元素
   ========================================================================== */

/**
 * 修正未定义为「block」的元素
 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
    display: block;
}

/**
 * 修正未定义为「inline-block」的元素
 */
audio,
canvas,
video {
    display: inline-block;
}

/**
 * 1.防止现代浏览器将没有「controls」属性的 「audio」元素显示出来
 * 2.去掉 iOS 5 中多余的高度
 */
audio:not([controls]) {
    display: none; /* 1 */
    height: 0; /* 2 */
}

/**
 * 修复 IE 7/8/9，Firefox 3 和 Safari 4 中 「hidden」属性不起作用的问题
 * 在IE、Safari、Firefox 22- 中隐藏「template」元素
 */
[hidden], template {
    display: none;
}

/**
 * 为可拖动元素添加拖动的光标
 * http://jsbin.com/apavod/1/edit
 */
[draggable] {
    cursor: move;
}

/**
 * 居中 HTML5 dialog 元素
 * Chrome 31 支持，需开启 chrome://flags/#enable-experimental-web-platform-features
 * Chrome 28 之前、Firefox 中不支持 height:fit-content; 
   https://src.chromium.org/viewvc/blink?revision=148314&view=revision
 * ::backdrop 定义遮罩样式
 * @demo: http://jsbin.com/iPACab/1
 */
dialog{
    border: 1px solid;
    padding: 0;
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;

    width: -moz-fit-content;
    width: -webkit-fit-content;
    width: fit-content;
    height: -moz-fit-content;
    height: -webkit-fit-content;
    height: fit-content;
}

dialog::backdrop{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, .3);
}

/*
 * 基础布局
 * @ Name:        layout.css V1.0.0
 * @ Author:      一丝
 * @ Update:      2013-9-30 15:39:51;
 * @ Copyright:   MIT License
 */

/*
 *@ Name:       inline-block 组件
 *@ Author:     一丝
 *@ Update:     2013-9-29 16:05:04
 *@ Usage:      清除空隙需在外层容器加上 dib-box，dib 可单独使用
 */

.dib {
    display: inline-block;
    *display: inline;
    *zoom: 1;
}

.dib-box {
    font-size: 0; /* 所有浏览器 */
    *word-spacing: -1px; /* IE6/7 */
}

@media (-webkit-min-device-pixel-ratio:0) {
.dib-box {
    letter-spacing: -5px; /* Safari 5- 等不支持 font-size: 0 的浏览器*/
    }
}

.dib-box .dib {
    vertical-align: top;
    font-size: 12px;
    letter-spacing: normal;
    word-spacing: normal;
    line-height: initial;
}

/*
 *@ Name:        自适应两端对齐组件
 *@ Author:      一丝
 *@ Update:      2013-9-29 16:05:04
 *@ Rely：       依赖 inline-block 解决方案
 *@ Usage:       外层加上 justify，内部需要两端对齐的元素都加上 dib,dib 与 justify 不要同时出现
 *@ Demo:        http://jsbin.com/OsEcOMA/1/
 */

/**
 * 防止行高增大
 * 尽量不要在父元素上设置行高
 */

.justify,
.dib-box .justify {
    font-size: 0;
    line-height: initial;
}

.justify {
    text-align: justify;
    text-justify: inter-ideograph; /* IE 6-7 */
    *zoom: 1; /* IE 6-7 触发 hasLayout 使一行也能两端对齐 */
    -moz-text-align-last: justify;
    -webkit-text-align-last: justify;
    text-align-last: justify;/* IE 8+ */
}

/**
 * 不支持 text-align-last 的浏览器用伪元素模拟
 * 1. margin-left:100% 仅 WebKit 支持
 */

.justify:after {
    content: "";
    display: inline-block;
    width: 100%; /* 1 */
}

/* 子元素取消两端对齐 */
.justify .dib {
    -moz-text-align-last: auto;
    -webkit-text-align-last: auto;
    text-align-last: auto;
    text-justify: auto;
    text-align: left;
    font-size: 12px;
    letter-spacing: normal;
    word-spacing: normal;
}

/*
 *@ Name:       CSS 三角形组件
 *@ Author:     一丝
 *@ Update:     2013-9-29 16:05:04
 *@ Usage:
 */
.arrow {
    font-size: 0;
    width: 0;
    height: 0;
    line-height: 0;
    overflow: hidden;
    display: inline-block;
    *display:inline;
    *zoom:1;
    vertical-align: -2px;
    border: 0 dashed transparent;
    border-width: 6px;
}

.arrow-top {
    border-bottom-style: solid;
    border-bottom-color: #2AB2DF;
}

.arrow-bottom {
    border-top-style: solid;
    border-top-color: #2AB2DF;
}

.arrow-left {
    border-right-style: solid;
    border-right-color: #2AB2DF;
}

.arrow-right {
    border-left-style: solid;
    border-left-color: #2AB2DF;
}

/* ◤左上角 */
.arrow-left-top {
    border-top-style: solid;
    border-top-color: #2AB2DF;
    border-left-width: 0 !important;
}

/* ◥右上角 */
.arrow-right-top {
    border-top-style: solid;
    border-top-color: #2AB2DF;
    border-right-width: 0 !important;
}

/* ◣左下角 */
.arrow-left-bottom {
    border-bottom-style: solid;
    border-bottom-color: #2AB2DF;
    border-left-width: 0 !important;
}

/* ◢右下角 */
.arrow-right-bottom {
    border-bottom-style: solid;
    border-bottom-color: #2AB2DF;
    border-right-width: 0 !important;
}

/*
 *@ Name:       替换元素等比缩放组件
 *@ Author:     一丝
 *@ Update:     2013-9-29 16:05:04
 *@ Usage:      不同的视频网站由于控制栏高度不同，需要JS配合添加对应的 class
 */

.fluid-media {
    position: relative;
}

/* 容器 */
.fluid-media div,
.fluid-media video,
.fluid-media embed,
.fluid-media object,
.fluid-media iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0
}

/* 常见的视频比例 */
.widescreen {
    padding-bottom: 56.25%; /* 宽屏 16:9=56.25% */
}

.narrowscreen {
    padding-bottom: 75%; /* 窄屏 4:3=75% */
}

/* 播放器控制栏的高度，更多网站按需扩展 */
.youku {
    padding-top: 40px; /* 优酷 */
}

.wole {
    padding-top: 40px; /* 我乐 56.com */
}

.tudou {
    padding-top: 50px; /* 土豆 */
}

.iqiyi {
    padding-top: 45px; /* 爱奇艺 */
}

.youtube {
    padding-top: 30px; /* Youtube */
}

/*
 *@ Name:       未知高度垂直居中组件
 *@ Author:     一丝
 *@ Update:     2013-10-13 17:08:36
 *@ Usage:      支持图片，单行或多行文字，以及图文混排
 */

/* 去除 inline-block 的空隙 */
.center-box {
    font-size: 0;
    *word-spacing: -1px; /* IE6、7 */
    height: 100%; /* 继承父级高度 */
}

/* 修复 Safari 5- inline-block 的空隙 */
 @media (-webkit-min-device-pixel-ratio:0) {
.center-box {
    letter-spacing: -5px;
    }
}

/* 使用空标签生成一个高度100%的参照元素 */
.center-box .center-hack {
    display: inline-block;
    *display: inline;
    *zoom: 1;
    font-size: 0;
    width: 0;
    height: 100%;
    vertical-align: middle;
}

.center-box .center-body {
    letter-spacing: normal;
    word-spacing: normal;
    display: inline-block;
    *display: inline;
    *zoom: 1;
    font-size: 12px;
    vertical-align: middle; /* 保证文字垂直居中 */
    padding: 0 !important; /* 防止设置边距导致居中失效 */
    margin: 0 !important;
    width: 100%; /* 保证连续字符也能居中 */
    white-space: normal; /* 保证连续字符换行 */
    word-wrap: break-word;
}

.center-box .center-img {
    display: inline-block;
    *display: inline;
    *zoom: 1;
    width: 100%;
    text-align: center; /* 图片默认水平居中 */
    vertical-align: middle;
    padding: 0 !important; /* 防止设置边距导致居中失效 */
    margin: 0 !important;
}

.center-box img {
    vertical-align: middle; /* 去除现代浏览器 img 底部空隙 */
}

/* ==========================================================================
   基础工具
   *@ Name:        utils.css V1.0.0
   *@ Author:      一丝
   *@ Update:      2013-9-30 15:39:57;
   *@ Copyright:   MIT License
   ========================================================================== */

/**
* 闭合浮动
* @Author: 一丝
* @Doc: http://nicolasgallagher.com/micro-clearfix-hack/
*/

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

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1; /* IE6-7 触发 hasLayout */
}

/*
 *@ Name:       自适应图文混排组件
 *@ Update:     2013-9-29 19:23:27
 *@ Usage:      如果有溢出的内容需要显示请使用 clearcell
 *@ demo:       http://jsbin.com/EMIvoJohU/1/edit
 */

.clearall {
    overflow: hidden;
    _overflow: visible;
    *zoom: 1;
}

.clearcell {
    display: table-cell;
    *zoom: 1;
}

.clearcell:after {
    clear: both;
    display: block;
    visibility: visible;
    overflow: hidden;
    height: 0 !important;
    line-height: 0;
    font-size: xx-large;
    content: " x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x ";
}

/* 强制不换行 */
.nowrap {
    white-space: nowrap;
    word-wrap: normal;
}

/* 连续字符换行 */
.wrap {
    white-space: normal;
    word-wrap: break-word;
}

.hidden, .hide {
    display: none;
}

/**
* 文字溢出显示省略号
* 1. Opera 9-10.6
* 2. Chrome 21+ bug https://bugs.webkit.org/show_bug.cgi?id=121902
*/

.ellipsis {
    display: block;
    white-space: nowrap;
    word-wrap: normal;
    overflow: hidden;
    -o-text-overflow: ellipsis; /* 1 */
    text-overflow: ellipsis;
    text-align: left; /* 2 */
}


/* --------------------------------------------------------------------------
   图片替换
   -------------------------------------------------------------------------- */

/** 隐藏文字
* 1.text-indent:-999em 存在性能问题：
*   http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/
*/
.text-hide {
    text-indent: 100%; /* 1 */
    white-space: nowrap;
    overflow: hidden;
}

/**
 * 裁剪方式隐藏元素
 * 1. IE6-8 有严重漏洞，请勿使用 https://www.hkcert.org/my_url/zh/101104_ms_ie_css_tagparsing_vuln
 * 2. VoiceOver 无法读出宽高为 0 的元素
 */
.clip-hide {
    position: absolute !important; /*clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
    clip: rect(1px, 1px, 1px, 1px); /* 1 */
    padding: 0 !important;
    border: 0 none!important;
    height: 1px !important; /* 2 */
    width: 1px !important;
    overflow: hidden;
}

/* img replace，通过定位方式隐藏内容 */
.ir {
    position: relative;
    z-index: -1;
    overflow: hidden;
}

.ir-bg {
    position: relative;
    z-index: 1;
}

/**
 * 禁用中文输入法
 * 1. 默认关闭输入法，但用户还可以手动开启，Firefox Linux 版不支持。
 * @note: 仅 IE 5+，Firefox 3+ 支持
 * @doc:  https://developer.mozilla.org/en-US/docs/Web/CSS/ime-mode
*/
.ime-inactive {
    ime-mode: inactive!important; /* 1 */
}

/**
 * 隐藏<select>元素的下拉箭头
 * 1. 隐藏 WebKit 中的下拉箭头
 * 2. Firefox 存在bug，该属性不完全生效，
      https://bugzilla.mozilla.org/show_bug.cgi?id=649849
 * 3. 实验数值，Firefox for Android text-indent 需要设置大于 5px   
 * @doc: https://gist.github.com/joaocunha/6273016
 * @demo: http://jsbin.com/EdiZuvO/1/edit
*/
.select-no-appearance{
    -webkit-appearance: none; /* 1 */
    -moz-appearance: none; /* 2 */
    appearance: none;
    text-overflow:""; /* 3 */
    text-indent: .01px; /* 3 */
}

/*
 * 1. 防止 OS X 中 Webfont 视觉上看起来变粗
 * 2. Fiefox 25 开始支持「-moz-osx-font-smoothing:auto(默认)|grayscale」
 * Demo: http://jsbin.com/iWItiQe/2
 */
.antialiased {
    -webkit-font-smoothing: antialiased; /* 1 */
    -moz-osx-font-smoothing: grayscale; /* 2 */
}

/**
 *@ name:        iconfont.css V1.1.0
 *@ author:      一丝
 *@ update:      2013-12-24 15:28:59
 * 1. 防止读屏器读出无意义的图标
 * 2. 防止 OS X 中图标视觉变粗和细节丢失的问题
 * 3. Fiefox 25 开始支持「-moz-osx-font-smoothing:auto(默认)|grayscale」
 * Demo: http://jsbin.com/iWItiQe/2
 */
.iconfont,
.type .iconfont, [class^="icon-"]:before,
[class*=" icon-"]:before,
.type [class^="icon-"]:before,
.type [class*=" icon-"]:before {
    font-family: "iconfont";
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    line-height: 1;
    display: inline-block;
    /* 1 */
    speak: none;
    /* 2 */
    -webkit-font-smoothing: antialiased;
    /* 3 */
    -moz-osx-font-smoothing: grayscale;
}

/**
 * 引入 Web font
 * 注意：使用font-face需要 CSS 线上地址和引用的 font 线上地址同域，否则 IE9  会有 CSS3117 问题
 * CSS3117: @font-face failed cross-origin request. Resource access is restricted.
 */
@font-face {
    font-family: "iconfont";
    font-weight: normal;
    font-style: normal;
    src: url("http://t.tbcdn.cn/apps/e/brix/fonts/uxiconfont.eot");
    src: url("http://t.tbcdn.cn/apps/e/brix/fonts/uxiconfont.eot?#iefix") format("embedded-opentype"), url("http://t.tbcdn.cn/apps/e/brix/fonts/uxiconfont.woff") format("woff"), url("http://t.tbcdn.cn/apps/e/brix/fonts/uxiconfont.ttf") format("truetype"), url("http://t.tbcdn.cn/apps/e/brix/fonts/uxiconfont.svg#iconfont") format("svg");
}

.btn {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    display: inline-block;
    border: 1px solid #ddd;
    *border: 0 none;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    *margin-right: .3em;
    margin-bottom: 0;
    padding: 0 10px;
    *padding: 1px 10px;
    width: auto;
    height: 21px;
    line-height: 21px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-bottom-color: #bbb !important;
    background-color: #f4f4f4;
    background-image: -moz-linear-gradient(top, #f8f8f8, #eeeeee);
    background-image: -ms-linear-gradient(top, #f8f8f8, #eeeeee);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f8f8f8), to(#eeeeee));
    background-image: -webkit-linear-gradient(top, #f8f8f8, #eeeeee);
    background-image: -o-linear-gradient(top, #f8f8f8, #eeeeee);
    background-image: linear-gradient(top, #f8f8f8, #eeeeee);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f8f8f8', endColorstr='#eeeeee', GradientType=0);
}

.btn,
.btn:hover,
.btn:visited {
    color: #333!important;
}

.btn:hover {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    background-color: #ededed;
    background-image: -moz-linear-gradient(top, #f2f2f2, #e6e6e6);
    background-image: -ms-linear-gradient(top, #f2f2f2, #e6e6e6);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), to(#e6e6e6));
    background-image: -webkit-linear-gradient(top, #f2f2f2, #e6e6e6);
    background-image: -o-linear-gradient(top, #f2f2f2, #e6e6e6);
    background-image: linear-gradient(top, #f2f2f2, #e6e6e6);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f2f2f2', endColorstr='#e6e6e6', GradientType=0);
}

.btn:active {
    background-color: #ebebeb;
    background-image: -moz-linear-gradient(top, #e6e6e6, #f2f2f2);
    background-image: -ms-linear-gradient(top, #e6e6e6, #f2f2f2);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e6e6e6), to(#f2f2f2));
    background-image: -webkit-linear-gradient(top, #e6e6e6, #f2f2f2);
    background-image: -o-linear-gradient(top, #e6e6e6, #f2f2f2);
    background-image: linear-gradient(top, #e6e6e6, #f2f2f2);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e6e6e6', endColorstr='#f2f2f2', GradientType=0);
}

.btn .iconfont {
    font-size: 12px!important;
    font-weight: normal;
}

/*group btn*/
.btn-group{
    overflow: hidden;
}
.btn-group .btn {
    float: left;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    border-left-width: 0;
}

.btn-group .btn:first-child {
    border-left-width: 1px;
    -webkit-border-radius: 2px 0 0 2px;
    -moz-border-radius: 2px 0 0 2px;
    border-radius: 2px 0 0 2px;
}

.btn-group .btn:last-child {
    -webkit-border-radius: 0 2px 2px 0;
    -moz-border-radius: 0 2px 2px 0;
    border-radius: 0 2px 2px 0;
}

.btn-red {
    border-color: transparent;
    border-bottom-color: #c21b1b !important;
    background-color: #ff3636;
    background-image: -moz-linear-gradient(top, #ff4444, #ff2222);
    background-image: -ms-linear-gradient(top, #ff4444, #ff2222);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ff4444), to(#ff2222));
    background-image: -webkit-linear-gradient(top, #ff4444, #ff2222);
    background-image: -o-linear-gradient(top, #ff4444, #ff2222);
    background-image: linear-gradient(top, #ff4444, #ff2222);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff4444', endColorstr='#ff2222', GradientType=0);
}

.btn-red,
.btn-red:hover,
.btn-red:visited {
    color: #FFF!important;
}

.btn-red:hover {
    background-color: #e41b1b;
    background-image: -moz-linear-gradient(top, #ee2020, #d51314);
    background-image: -ms-linear-gradient(top, #ee2020, #d51314);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee2020), to(#d51314));
    background-image: -webkit-linear-gradient(top, #ee2020, #d51314);
    background-image: -o-linear-gradient(top, #ee2020, #d51314);
    background-image: linear-gradient(top, #ee2020, #d51314);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee2020', endColorstr='#d51314', GradientType=0);
}

.btn-red:active {
    background-color: #df1819;
    background-image: -moz-linear-gradient(top, #d51314, #ee2020);
    background-image: -ms-linear-gradient(top, #d51314, #ee2020);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#d51314), to(#ee2020));
    background-image: -webkit-linear-gradient(top, #d51314, #ee2020);
    background-image: -o-linear-gradient(top, #d51314, #ee2020);
    background-image: linear-gradient(top, #d51314, #ee2020);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#d51314', endColorstr='#ee2020', GradientType=0);
}

.btn-orange {
    border-color: transparent;
    border-bottom-color: #cf370c !important;
    background-color: #ff4e00;
    background-image: -moz-linear-gradient(top, #ff5500, #ff4400);
    background-image: -ms-linear-gradient(top, #ff5500, #ff4400);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ff5500), to(#ff4400));
    background-image: -webkit-linear-gradient(top, #ff5500, #ff4400);
    background-image: -o-linear-gradient(top, #ff5500, #ff4400);
    background-image: linear-gradient(top, #ff5500, #ff4400);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5500', endColorstr='#ff4400', GradientType=0);
}

.btn-orange,
.btn-orange:hover,
.btn-orange:visited {
    color: #FFF!important;
}

.btn-orange:hover {
    background-color: #ef4000;
    background-image: -moz-linear-gradient(top, #ff4400, #d73900);
    background-image: -ms-linear-gradient(top, #ff4400, #d73900);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ff4400), to(#d73900));
    background-image: -webkit-linear-gradient(top, #ff4400, #d73900);
    background-image: -o-linear-gradient(top, #ff4400, #d73900);
    background-image: linear-gradient(top, #ff4400, #d73900);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff4400', endColorstr='#d73900', GradientType=0);
}

.btn-orange:active {
    background-color: #e73d00;
    background-image: -moz-linear-gradient(top, #d73900, #ff4400);
    background-image: -ms-linear-gradient(top, #d73900, #ff4400);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#d73900), to(#ff4400));
    background-image: -webkit-linear-gradient(top, #d73900, #ff4400);
    background-image: -o-linear-gradient(top, #d73900, #ff4400);
    background-image: linear-gradient(top, #d73900, #ff4400);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#d73900', endColorstr='#ff4400', GradientType=0);
}

.btn-blue {
    border-color: transparent;
    border-bottom-color: #0960ab !important;
    background-color: #4288c5;
    background-image: -moz-linear-gradient(top, #488fcd, #3a7db8);
    background-image: -ms-linear-gradient(top, #488fcd, #3a7db8);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#488fcd), to(#3a7db8));
    background-image: -webkit-linear-gradient(top, #488fcd, #3a7db8);
    background-image: -o-linear-gradient(top, #488fcd, #3a7db8);
    background-image: linear-gradient(top, #488fcd, #3a7db8);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#488fcd', endColorstr='#3a7db8', GradientType=0);
}

.btn-blue,
.btn-blue:hover,
.btn-blue:visited {
    color: #FFF!important;
}

.btn-blue:hover {
    background-color: #3579b5;
    background-image: -moz-linear-gradient(top, #4087c6, #25659c);
    background-image: -ms-linear-gradient(top, #4087c6, #25659c);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4087c6), to(#25659c));
    background-image: -webkit-linear-gradient(top, #4087c6, #25659c);
    background-image: -o-linear-gradient(top, #4087c6, #25659c);
    background-image: linear-gradient(top, #4087c6, #25659c);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4087c6', endColorstr='#25659c', GradientType=0);
}

.btn-blue:active {
    background-color: #3073ad;
    background-image: -moz-linear-gradient(top, #25659c, #4087c6);
    background-image: -ms-linear-gradient(top, #25659c, #4087c6);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#25659c), to(#4087c6));
    background-image: -webkit-linear-gradient(top, #25659c, #4087c6);
    background-image: -o-linear-gradient(top, #25659c, #4087c6);
    background-image: linear-gradient(top, #25659c, #4087c6);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#25659c', endColorstr='#4087c6', GradientType=0);
}

.btn-disabled {
    border: 1px solid #e0e0e0;
    border-bottom-color: #ccc !important;
    cursor: default;
}

.btn-disabled,
.btn-disabled:hover,
.btn-disabled:visited {
    color: #ccc !important;
    background-color: #ededed;
    background-image: -moz-linear-gradient(top, #f2f2f2, #e6e6e6);
    background-image: -ms-linear-gradient(top, #f2f2f2, #e6e6e6);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), to(#e6e6e6));
    background-image: -webkit-linear-gradient(top, #f2f2f2, #e6e6e6);
    background-image: -o-linear-gradient(top, #f2f2f2, #e6e6e6);
    background-image: linear-gradient(top, #f2f2f2, #e6e6e6);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f2f2f2', endColorstr='#e6e6e6', GradientType=0);
}

.btn-size45,
.btn-xlarge {
    padding: 0 20px;
    height: 43px;
    line-height: 43px;
    font-size: 18px;
}

.btn-size45 .iconfont,
.btn-xlarge .iconfont {
    font-size: 18px!important;
}

.btn-size40,
.btn-large {
    padding: 0 20px;
    height: 38px;
    line-height: 38px;
    font-size: 14px;
}

.btn-size40 .iconfont,
.btn-large .iconfont {
    font-size: 14px!important;
}

.btn-size30,
.btn-medium {
    height: 28px;
    line-height: 28px;
    padding: 0 20px;
}

.btn-size28,
.btn-small {
    height: 26px;
    line-height: 26px;
    padding: 0 20px;
}

.btn-size25,
.btn-xsmall {
    height: 23px;
    line-height: 23px;
}
/**
*@ Name:        type.css V1.0.2
*@ Author:      一丝
*@ Update:      2013-12-23 9:38:42;
*@ Copyright:	MIT License
*/
body {
    font-size: 14px;
    line-height: 1.8;
}

.type {
    margin-left: auto;
    margin-right: auto;
}

.type a {
    color: #3187DB;
}

/**
 * 1. 正文链接左右保持一个英文空格留白
 */
.type p a {
    margin:0 .25em; /* 1 */
}

.type a:hover,
.type ins:hover {
    color: #333;
}

.type a:hover,
.type ins:hover {
    text-decoration: none;
    border-bottom: 1px solid;
}

/**
 * a 默认使用 border 来模拟下划线会占用盒模型高度，
 * 如果某些布局的地方不需要这样的下划线，使用该 class 去除。
 */
.underline-fix a:hover,
.underline-fix ins:hover {
    border: 0 none;
    text-decoration: underline;
}

.type acronym,
.type abbr {
    border-bottom: 1px dotted;
}

/**
 * 保留 i 标签斜体
 */
.type i {
    font-style: italic;
}

/**
 * 重置中文斜体
 * cite 标签通常用在书籍或杂志的标题
 *
 */
.type cite,
.type em,
.type var,
.type address,
.type dfn {
    font-style: inherit;
}

.type cite {
    border-bottom: 3px double;
}

/**
 * 专名号和em
 * 1. 保持留白，防止两个连续标签下划线连在一起
 */
.type u,
.type em {
    text-decoration: none;
    padding-bottom: 1px;
    margin-left: .25em; /* 1 */
}

.type u {
    border-bottom: 1px solid;
}

.type em {
    border-bottom: 1px dotted;
}


/**
 * figure 内图片居中
 */
.type figure {
    text-align: center;
}


/**
 * 中文小于 12px 可读性很差
 * 1. 统一 IE 6/7 中字体大小
 * 2. 统一 Firefox 4+，Safari 5 和 Chrome 中「section」和「article」内的字体大小
 */
.type p {
    margin-top: 18px;
    margin-bottom: 18px;
    line-height: 1.8;
}

/**
 * 中文小于 12px 可读性很差
 * 统一 IE 6/7 中字体大小
 * 统一 Firefox 4+，Safari 5 和 Chrome 中「section」和「article」内的字体大小
 */
h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 14px;
}

h6 {
    font-size: 12px;
}

.type blockquote {
    margin: 32px 28px;
    padding-left: 14px;
    border-left: 3px solid #CCC;
    line-height: 1.7;
}


/**
 * 列表项
 * 1. 无序列表默认使用方块
 */
.type ul {
    list-style-type: square; /* 1 */
    padding-left: 30px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.type ul ul,
.type ul ol ul {
    list-style-type: disc;
}

.type ol {
    list-style: decimal;
    padding-left: 30px;
    margin-top: 14px;
    margin-bottom: 14px;
}

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

.type ol ol ol ul,
.type ol ol ul ul,
.type ol ul ul ul,
.type ul ul ul ul {
    list-style-type: square;
}

.type dt {
    font-weight: bold;
    margin-top: 14px;
}

/**
 * 表格
 * 1. 表格隔行换色
 */
.type th {
    font-weight: inherit;
}

.type th,
.type td {
    border: 1px solid #CCC;
    padding: 5px 10px;
}

.type table tr:nth-child(odd) td {
    background-color: #f5f5f5; /* 1 */
}

/* 代码 */
.type code {
    margin: 0 .25em;
    padding: 0 .4em;
    border: 1px solid #DDD;
    background-color: #F8F8F8;
    border-radius: 3px;
}

.type pre {
    background-color: #F8F8F8;
    border: 1px solid #DDD;
    font-size: 12px;
    line-height: 18px;
    overflow: auto;
    padding: 6px 10px;
    border-radius: 3px;
    word-break: break-all;
    word-wrap: break-word;
}

/**
 * 通常代码高亮 code 标签会嵌套在 pre 标签内部，需要重置样式。
 */
.type pre code {
    margin: 0;
    padding: 0;
    border: 0 none;
    background: none;
    border-radius: 0;
    font-size: inherit;
}

.type hr {
    border: 0 none;
    border-bottom: 1px solid #999;
    margin-top: 14px;
    margin-bottom: 14px;
}

/* ==========================================================================
   CSS 自动生成标题编号
   ========================================================================== */

/**
 * 传统中文排版有『章』『节』『卷』『篇』『辑』『集』『部』等概念，
 * 在网页排版中，type.css 选取如下规则：
 * 第1级--------章--------1
 * 第2级--------节--------1.1
 * 第3级--------节--------1.1.1
 * 第4级--------节--------1.1.1.1
 * -----------------------条--------1.
 * -----------------------款--------1)
 * -----------------------项--------(1)
 * 所有标点均为西文标点
 * 需要注意的是「条」比「章」后面多了「.」，「章」亦可用汉字代替，例如：「一、」
 * Firefox 有私有属性分别实现简体和繁体的汉字编号，
   -moz-simp-chinese-formal(大写)/-moz-simp-chinese-informal(小写)，
   -moz-trad-chinese-formal(大写)/-moz-trad-chinese-informal(小写)，
   参照：http://lists.w3.org/Archives/Public/public-html-ig-zh/2010Sep/0011.html
   生成类似如下格式：

   壹、章
   ----壹之一、节
   ----壹之二、节

   贰、章
   ----贰之一、节
   ----贰之二、节
   --------贰之二之一、节
   --------贰之二之二、节

 * @doc: 《科技文献的章节编号方法》（CY/T35-2001）
 */

.type h2:before,
.type h3:before,
.type h4:before,
.type h5:before,
.type h6:before {
    margin-right: .5em;
    color: #888;
}

.type {
    counter-reset: chapter section subsection;
}

/* --------------------------------------------------------------------------
   标题自动生成编号
   -------------------------------------------------------------------------- */
/**
 * 提供从h2-h4 三个级别的标题序号
 * 最终生成如下格式编号：
        1.
        1.1
        1.1.1
 * 或者在容器上加上 class="cjk"
 * 将生成如下格式编号：
        一、
        1.1
        1.1.1
 */

/**
 * 一级标题（章）
 * 输出 1
 */
.type h2 {
    counter-reset: section;
}

.type h2:before {
    content: counter(chapter);
    counter-increment: chapter;
}

/**
 * 一级标题(汉字)
 * 输出 一、
 */

.cjk h2 {
    counter-increment: section;
}

.cjk h2:before {
    content: counter(chapter, cjk-ideographic)'、';
    content: counter(chapter, cjk-cjk-decimal)'、';
    margin-right: .25em;
}

/**
 * 二级标题（节）
 * 输出 1.1
 */
.type h3 {
    counter-reset: subsection;
}

.type h3:before {
    content: counter(chapter) "." counter(section);
    counter-increment: section;
}

/**
 * 三级标题（子节）
 * 输出 1.1.1
 */
.type h4:before {
    content: counter(chapter) "." counter(section) "." counter(subsection);
    counter-increment: subsection;
}


/* --------------------------------------------------------------------------
   列表自动生成编号
   -------------------------------------------------------------------------- */
/**
 * 1. 为每个ol元素创建新的计数器实例
 * 2. 隐藏默认的列表项
 * @demo: http://jsbin.com/IpIPinu/3/edit?css,output
 */
ol.decimal,
.decimal ol,
ol.cjk,
.cjk ol{
    counter-reset: list;/* 1 */
    list-style-type: none !important; /* 2 */
    *list-style-type: decimal !important;
}

/**
 * ol 自动生成数字编号
 * 在 ol 或者外层容器上增加 class="decimal"
 * 兼容 IE 8+
 * 最终生成如下格式编号：
    1
    1.1
    1.1.1
    1.1.1.1
    1.1.1.1.1
    ...
 */

.decimal li:before,
.cjk li:before{
    color:#666;
}

/**
 * 1. 只增加当前计数器(直接设置在 li 上其他列表会影响序号)
 * 2. 为所有计数器增加以“.”分隔的值
 */

.decimal li:before {
    counter-increment: list; /* 1 */
    content: counters(list, ".")" "; /* 2 */
}

/**
 * ol 自动生成汉字编号
 * 在 ol 或者外层容器上增加 class="cjk"
 * 不支持 IE
 * 最终生成如下格式编号：
    一、
    一之一、
    一之一之一、
    一之一之一之一、
    ...
 */
.cjk li:before{
    counter-increment: list; 
    content: counters(list, "之",cjk-ideographic) "、"; 
}

.cjk li li:before{
    counter-increment: list; 
    content: counters(list); 
}

/**
 * ol 中的 ul 不生成序号
 */
.decimal ul,
.cjk ul {
    list-style-type: square;
    list-style-position: inside;
}

.decimal ul li:before,
.cjk ul li:before {
    content: none!important;
}





