/*! normalize.css v1.0.1 | MIT License | git.io/normalize */

/* ==========================================================================
   HTML5 display definitions Html5 显示定义
   ========================================================================== */

/*
 * Corrects `block` display not defined in IE 6/7/8/9 and Firefox 3.
 * 修正ie6/7/8 FF3中未定义的html5块级元素
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
summary {
    display: block;
}

/*
 * Corrects `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
 * 修正ie6/7/8 FF3中未定义的行内块级元素
 */

audio,
canvas,
video {
    display: inline-block;
    *display: inline;
    *zoom: 1;
}

/*
 * Prevents modern browsers from displaying `audio` without controls. 
 * 阻止现代浏览器自动播放视频
 * Remove excess height in iOS 5 devices.
 * 移除iOS 5设备上的多余高度 
 */

audio:not([controls]) {
    display: none;
    height: 0;
}

/*
 * Addresses styling for `hidden` attribute not present in IE 7/8/9, Firefox 3, and Safari 4.
 * 处理html5新增hidden属性不被IE 7/8/9, Firefox 3, and Safari 4支持
 * Known issue: no IE 6 support.
 * IE 6不支持
 */

[hidden] {
    display: none;
}

/* ==========================================================================
   Base 基本属性
   ========================================================================== */

/*
 * 1. Corrects text resizing oddly in IE 6/7 when body `font-size` is set using
 *    `em` units.
 * 1. 更正IE 6/7 下font-size 字体设置
 * 2. Prevents iOS text size adjust after orientation change, without disabling
 *    user zoom.
 * 2. 在不禁止用户缩放的情况下避免iOS设备方向调整后自动校正字体大小
 */

html {
    font-size: 100%; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
    -ms-text-size-adjust: 100%; /* 2 */
}

/*
 * Addresses `font-family` inconsistency between `textarea` and other form
 * elements.
 * 处理textarea字体与其他表单元素不一致
 */

html,
button,
input,
select,
textarea {
    font-family: tahoma, arial,"\5FAE\8F6F\96C5\9ED1", sans-serif;
}

/*
 * Addresses margins handled incorrectly in IE 6/7.
 * 移除缺省的外边距
 */

body {
    margin: 0;
}

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

/*
 * Addresses `outline` inconsistency between Chrome and other browsers.
 * 处理 chrome与其他浏览器 outline 不一致
 */

a:focus {
    outline: thin dotted;
}

/*
 * Improves readability when focused and also mouse hovered in all browsers.
 * 提高：hover，active状态下的可读性
 */

a:active,
a:hover {
    outline: 0;
}

/* ==========================================================================
   Typography 排版
   ========================================================================== */

/*
 * Addresses font sizes and margins set differently in IE 6/7.
 * 处理IE6 7 下字体大小和外边距默认设置的不同
 * Addresses font sizes within `section` and `article` in Firefox 4+, Safari 5,
 * and Chrome.
 * 处理Firefox 4+, Safari 5, Chrome 下在section，article标签下字体大小的不同.
 */

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

h2 {
    font-size: 1.5em;
    margin: 0.83em 0;
}

h3 {
    font-size: 1.17em;
    margin: 1em 0;
}

h4 {
    font-size: 1em;
    margin: 1.33em 0;
}

h5 {
    font-size: 0.83em;
    margin: 1.67em 0;
}

h6 {
    font-size: 0.75em;
    margin: 2.33em 0;
}

/*
 * Addresses styling not present in IE 7/8/9, Safari 5, and Chrome.
 * 处理IE 7/8/9, Safari 5, and Chrome 中abbr 没有样式呈现.
 */

abbr[title] {
    border-bottom: 1px dotted;
}

/*
 * Addresses style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
 * 处理在Firefox 3+, Safari 4/5, and Chrome上b，strong标签的默认样式.
 */

b,
strong {
    font-weight: bold;
}

blockquote {
    margin: 1em 40px;
}

/*
 * Addresses styling not present in Safari 5 and Chrome.
 * 修正Safari 5 and Chrome dfn标签没有样式的问题
 */

dfn {
    font-style: italic;
}

/*
 * Addresses styling not present in IE 6/7/8/9.
 * 修正IE 6/7/8/9. mark标签的样式
 */

mark {
    background: #ff0;
    color: #000;
}

/*
 * Addresses margins set differently in IE 6/7.
 * 修正IE 6/7 p,pre标签margin属性设置不一致
 */

p,
pre {
    margin: 1em 0;
}

/*
 * Corrects font family set oddly in IE 6, Safari 4/5, and Chrome.
 * 修正字体设置错误
 */



/*
 * Improves readability of pre-formatted text in all browsers.
 * 提升pre标签内文字的可读性
 */

pre {
    white-space: pre;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/*
 * Addresses CSS quotes not supported in IE 6/7.
 * 处理IE 6/7. 不支持CSS quotes
 */

q {
    quotes: none;
}

/*
 * Addresses `quotes` property not supported in Safari 4.
 * 
 */

q:before,
q:after {
    content: '';
    content: none;
}

/*
 * Addresses inconsistent and variable font size in all browsers.
 * 处理 small标签字体大小不一致问题
 */

small {
    font-size: 80%;
}

/*
 * Prevents `sub` and `sup` affecting `line-height` in all browsers.
 * 防止sub sup 标签影响行高
 */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

/* ==========================================================================
   Lists 列表
   ========================================================================== */

/*
 * Addresses margins set differently in IE 6/7.
 * 处理外边距在IE 6/7设置不同
 */

dl,
menu,
ol,
ul {
    margin: 1em 0;
}

dd {
    margin: 0 0 0 40px;
}

/*
 * Addresses paddings set differently in IE 6/7.
 * 处理内边距IE 6/7 设置不同
 */

menu,
ol,
ul {
    padding: 0 0 0 40px;
}

/*
 * Corrects list images handled incorrectly in IE 7.
 * 修正ie7列表图片处理错误
 */

nav ul,
nav ol {
    list-style: none;
    list-style-image: none;
}

/* ==========================================================================
   Embedded content 嵌入式的内容
   ========================================================================== */

/*
 * 1. Removes border when inside `a` element in IE 6/7/8/9 and Firefox 3.
 * 1. 当在a元素内部的时候，去除IE 6/7/8/9 and Firefox 3的边框
 * 2. Improves image quality when scaled in IE 7.
 * 2. 提升ie7成比例显示时的图片质量
 */

img {
    border: 0; /* 1 */
    -ms-interpolation-mode: bicubic; /* 2 */
}

/*
 * Corrects overflow displayed oddly in IE 9.
 * 修正SVG可伸缩矢量图在ie9中的显示
 */

svg:not(:root) {
    overflow: hidden;
}

/* ==========================================================================
   Figures
   ========================================================================== */

/*
 * Addresses margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
 * 处理之后 IE 6/7/8/9, Safari 5, and Opera 11.中margin不显示
 */

figure {
    margin: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */

/*
 * Corrects margin displayed oddly in IE 6/7.
 * 修正外边距显示
 */

form {
    margin: 0;
}

/*
 * Define consistent border, margin, and padding.
 * 定义一致的边框 外边距 内边距
 */

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

/*
 * 1. Corrects color not being inherited in IE 6/7/8/9.
 * 1. 修正IE 6/7/8/9 下字体颜色不被继承 
 * 2. Corrects text not wrapping in Firefox 3.
 * 2. 修正文字不被包含 Firefox 3
 * 3. Corrects alignment displayed oddly in IE 6/7.
 * 3. 修正直线显示错误
 * P.S legend 元素为 fieldset 元素定义标题（caption）。
 */

legend {
    border: 0; /* 1 */
    padding: 0;
    white-space: normal; /* 2 */
    *margin-left: -7px; /* 3 */
}

/*
 * 1. Corrects font size not being inherited in all browsers.
 * 1. 修正字体大小继承
 * 2. Addresses margins set differently in IE 6/7, Firefox 3+, Safari 5,
 *    and Chrome.
 * 2. 更正外边距设置不一致
 * 3. Improves appearance and consistency in all browsers.
 * 3. 提升表现与一致性
 */

button,
input,
select,
textarea {
    font-size: 100%; /* 1 */
    margin: 0; /* 2 */
    vertical-align: baseline; /* 3 */
    *vertical-align: middle; /* 3 */
}

/*
 * Addresses Firefox 3+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 * 处理浏览器的默认行高
 */

button,
input {
    line-height: normal;
}

/*
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 1. 避免webkit内核浏览器在android4.0以上设备中禁用audio和video控制的bug
 * 2. Corrects inability to style clickable `input` types in iOS.
 * 2. 修正button类型的按钮在iOS设备下不能点击的bug
 * 3. Improves usability and consistency of cursor style between image-type
 *    `input` and others.
 * 3. 设定提交类型的按钮鼠标指针为pointer
 * 4. Removes inner spacing in IE 7 without affecting normal text inputs.
 * 4. 在不影响其他文本输入框的情况下移除ie 7的内部边距。
 *    Known issue: inner spacing remains in IE 6.
 *    已知问题：内边距在ie6下仍然存在
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button; /* 2 */
    cursor: pointer; /* 3 */
    *overflow: visible; /* 4 */
}

/*
 * Re-set default cursor for disabled elements.
 * 重置默认禁用按钮鼠标样式
 */

button[disabled],
input[disabled] {
    cursor: default;
}

/*
 * 1. Addresses box sizing set to content-box in IE 8/9.
 * 1. 设定box-sizing: border-box; 时，浏览器对盒模型的解释与 IE6 相同,
      将 border 与 padding 都包含在 width 之内
 * 2. Removes excess padding in IE 8/9.
 * 2. 去除多余的内边距 IE 8/9
 * 3. Removes excess padding in IE 7.
 * 3. 去除多余的内边距 IE 7
 *    Known issue: excess padding remains in IE 6.
 *    已知bug ：多余内边距在ie6下仍然存在
 */

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
    *height: 13px; /* 3 */
    *width: 13px; /* 3 */
}

/*
 * 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
 * 1. 将Safari 5 and Chrome的显示方式设置为textfield
 * 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
 *    (include `-moz` to future-proof).
 * 2. box-sizing: content-box; 时，浏览器对盒模型的解释遵从我们之前认识到的 W3C 标准，
 */

input[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box; /* 2 */
    box-sizing: content-box;
}

/*
 * Removes inner padding and search cancel button in Safari 5 and Chrome
 * on OS X.
 * 去除内边距和默认的取消按钮 只有chrome有这个按钮
 */

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/*
 * Removes inner padding and border in Firefox 3+.
 * 去除内边距和边框
 */

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

/*
 * 1. Removes default vertical scrollbar in IE 6/7/8/9.
 * 1. 去除默认的竖向滚动条
 * 2. Improves readability and alignment in all browsers.
 * 2. 提升在所有浏览器的可读性和一致性
 */

textarea {
    overflow: auto; /* 1 */
    vertical-align: top; /* 2 */
}

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

/*
 * Remove most spacing between table cells.
 * 去除表格内的内边距
 */

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