/** 
 *样式重置：浏览器有默认的样式，这些默认样式在不同的浏览器上有不同的效果
 *例如：ie上 body的默认margin 16等 在chrome下 8
 *样式重置的目的：在各种浏览器上默认样式统一
 *用别人写好的的开源样式重置库
 */
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
	line-height: 1.15;
	/* 1 */
	-webkit-text-size-adjust: 100%;
	/* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
	box-sizing: content-box;
	/* 1 */
	height: 0;
	/* 1 */
	overflow: visible;
	/* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
	font-family: monospace, monospace;
	/* 1 */
	font-size: 1em;
	/* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
	border-bottom: none;
	/* 1 */
	text-decoration: underline;
	/* 2 */
	text-decoration: underline dotted;
	/* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
	font-family: monospace, monospace;
	/* 1 */
	font-size: 1em;
	/* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
	border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	/* 1 */
	font-size: 100%;
	/* 1 */
	line-height: 1.15;
	/* 1 */
	margin: 0;
	/* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input {
	/* 1 */
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
	/* 1 */
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
	box-sizing: border-box;
	/* 1 */
	color: inherit;
	/* 2 */
	display: table;
	/* 1 */
	max-width: 100%;
	/* 1 */
	padding: 0;
	/* 3 */
	white-space: normal;
	/* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	/* 1 */
	padding: 0;
	/* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
	-webkit-appearance: textfield;
	/* 1 */
	outline-offset: -2px;
	/* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
	-webkit-appearance: button;
	/* 1 */
	font: inherit;
	/* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
	display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
	display: none;
}

/* *选择器表示所有的元素 */
* {
	box-sizing: border-box;
}

/*
*栅格系统：把网页分成大小相同的格子，方便快速布局
*实现思路：
*       1.有一个盒子（容器）最外层 -- container
*       2.先有一行 -- row 
*       3.再在一行内写列 -- col 
* 问题？一行要划分多少个格子（列） 
* 规定 ：12列
*       列必须放在行里面
*       行必须放在container 容器里面
* 
*栅格系统是什么？有什么用？
*下一布去实现这个思想
*/

.container {
	width: 970px;
	/*居中*/
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

.row {
	margin-left: -15px;
	margin-right: -15px;
}

/*把屏幕分成12份，计算每份占多宽*/

/*代码优化
*通过多元素选择器来优化代码
*/
.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-10,
.col-md-11,
.col-md-12 {
	position: relative;
	float: left;
	padding-left: 15px;
	padding-right: 15px;
}

.col-md-1 {
	/*占一格*/
	width: 8.33333333%;
}

.col-md-2 {
	/*占两格*/
	width: 16.66666667%;
}

.col-md-3 {
	/*占三格*/
	width: 25.00000000%;
}

.col-md-4 {
	/*占四格*/
	width: 33.33333333%;
}

.col-md-5 {
	/*占五格*/
	width: 41.66666667%;
}

.col-md-6 {
	/*占六格*/
	width: 50.00000000%;
}

.col-md-7 {
	/*占七格*/
	width: 58.33333333%;
}

.col-md-8 {
	/*占八格*/
	width: 66.66666667%;
}

.col-md-9 {
	/*占九格*/
	width: 75.00000000%;
}

.col-md-10 {
	/*占十格*/
	width: 83.33333333%;
}

.col-md-11 {
	/*占十一格*/
	width: 91.66666667%;
}

.col-md-12 {
	/*占十二格*/
	width: 100.00000000%;
}

/* 列排序 从右边往左边拉*/
.col-md-pull-1 {
	/*占一格*/
	right: 8.33333333%;
}

.col-md-pull-l2 {
	/*占两格*/
	right: 16.66666667%;
}

.col-md-pull-3 {
	/*占三格*/
	right: 25.00000000%;
}

.col-md-pull-4 {
	/*占四格*/
	right: 33.33333333%;
}

.col-md-pull-5 {
	/*占五格*/
	right: 41.66666667%;
}

.col-md-pull-6 {
	/*占六格*/
	right: 50.00000000%;
}

.col-md-pull-7 {
	/*占七格*/
	right: 58.33333333%;
}

.col-md-pull-8 {
	/*占八格*/
	right: 66.66666667%;
}

.col-md-pull-9 {
	/*占九格*/
	right: 75.00000000%;
}

.col-md-pull-10 {
	/*占十格*/
	right: 83.33333333%;
}

.col-md-pull-11 {
	/*占十一格*/
	right: 91.66666667%;
}

.col-md-pull-12 {
	/*占十二格*/
	right: 100.00000000%;
}

/* 列排序 从左边往右边推 left */
.col-md-push-1 {
	/*占一格*/
	left: 8.33333333%;
}

.col-md-push-2 {
	/*占两格*/
	left: 16.66666667%;
}

.col-md-push-3 {
	/*占三格*/
	left: 25.00000000%;
}

.col-md-push-4 {
	/*占四格*/
	left: 33.33333333%;
}

.col-md-push-5 {
	/*占五格*/
	left: 41.66666667%;
}

.col-md-push-6 {
	/*占六格*/
	left: 50.00000000%;
}

.col-md-push-7 {
	/*占七格*/
	left: 58.33333333%;
}

.col-md-push-8 {
	/*占八格*/
	left: 66.66666667%;
}

.col-md-push-9 {
	/*占九格*/
	left: 75.00000000%;
}

.col-md-push-10 {
	/*占十格*/
	left: 83.33333333%;
}

.col-md-push-11 {
	/*占十一格*/
	left: 91.66666667%;
}

.col-md-push-12 {
	/*占十二格*/
	left: 100.00000000%;
}

/* 按钮类 */
.btn {
	border: 1px solid #ccc;
	padding: 6px 12px;
	border-radius: 4px;
}

.btn-default {
	background-color: #fff;
}

.btn-default:hover {
	color: #333;
	background-color: #ccc;
}

.btn {
	border: 1px solid #ccc;
	padding: 6px 12px;
	border-radius: 4px;
}

.btn-default {
	color: #333;
	background-color: #fff;
}

.btn-default:hover {
	color: #333;
	background-color: #ccc;
}



/* 首选项 */
.btn-primary {
	border-color: #2e6da4;
	background-color: #377BB5;
	color: #fff;
}

.btn-primary:hover {
	border-color: #2e6da4;
	background-color: #2B618E;
	color: #fff;
}

/* 一般信息 */
.btn-info {
	border-color: #46b8da;
	background-color: #5bc0de;
	color: #fff;
}

.btn-info:hover {
	border-color: #46b8da;
	background-color: #5bc0de;
	color: #fff;
}

/* 成功信息 */
.btn-success {
	border-color: #2e6da4;
	background-color: #2B618E;
	color: #fff;
}

.btn-success:hover {
	border-color: #2e6da4;
	background-color: #2B618E;
	color: #fff;
}

/* 警告信息 */
.btn-warning {
	border-color: #2e6da4;
	background-color: #2B618E;
	color: #fff;
}

.btn-warning:hover {
	border-color: #2e6da4;
	background-color: #2B618E;
	color: #fff;
}

/* 危险信息 */
.btn-danger {
	border-color: #2e6da4;
	background-color: #2B618E;
	color: #fff;
}

.btn-danger:hover {
	border-color: #2e6da4;
	background-color: #2B618E;
	color: #fff;
}


/* 预定义一些背景和文本 情景：首选项、成功 警告 一般 危险*/
.bg-primary {
	background-color: #377bb5;
}

.bg-info {
	background-color: #377bb5;
}

.bg-success {
	background-color: #377bb5;
}

.bg-warning {
	background-color: #377bb5;
}

.bg-danger {
	background-color: #377bb5;
}

/* 文本情景颜色 */
.text-primary {
	background-color: #377bb5;
}

.text-info {
	background-color: #377bb5;
}

.text-success {
	background-color: #377bb5;
}

.text-warning {
	background-color: #377bb5;
}

.text-danger {
	background-color: #377bb5;
}



/* table基础样式 */
.table {
	width: 100%;
	min-width: 100px;
	margin-bottom: 20px;
	/* 让单元格边框重合 */
	border-collapse: collapse;
}

.table th,
.table td {
	border-bottom: 1px solid #ddd;
	text-align: center;
	padding: 6px 12px;
}

.table-bordered td,
.table-bordered th {
	border: 1px solid #ddd;
}

.table-hover tr:hover {
	background-color: #ddd;
}




/* 列表组 */
.list-group {
	border: 1px solid #E8E8E8;
	padding: 0;
	margin: 0;
}

.list-group-item {
	/* li里面的元素可以根据li来做定位*/
	position: relative;
	list-style: none;
	padding: 10px 15px;
	border: 1px solid #E8E8E8;
	margin-bottom: -1px;
}

.list-group-item:first-child {
	/* first-child 表示父元素的第一个子元素  li的父元素ul的第一个子元素*/
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}

.list-group-item:last-child {
	/* 父元素的最后一个子元素 */
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	margin-bottom: 0;
}


/* 面板结构 */
.panrl {
	margin-bottom: 20px;
	border: 1px solid transparent;
	border-radius: 4px;
}

.panel .panel-heading {
	border-bottom: 1px solid transparent;
}

.panel .panel-title {
	padding: 10px 15px;
	font-size: 16px;
	margin-top: 0;
	margin-bottom: 0;
}

.panel .panel-body {
	padding: 15px;
}

.panel .panel-footer {
	border-top: 1px solid transparent;
	padding: 10px 15px;
}

.panel .panel-default {
	border: 1px solid #E8E8E8
}

.panrl-default .panrl-heading {
	border-bottom: 1px solid #E8E8E8;
	background-color: #E8E8E8;
}

.panrl-default .panel-footer {
	border-top: 1px solid #E8E8E8;
	background-color: #E8E8E8;
}

/* table 基础样式 */
.table {
	width: 100%;
	min-width: 100%;
	margin-bottom: 20px;
	/* 让单元格边框重合 */
	border-collapse: collapse;
}

.table th,
.table td {
	border-bottom: 1px solid #ddd;
	text-align: center;
	padding: 6px 12px;
}

.table-bordered td,
.table-bordered th {
	border: 1px solid #ddd;
}

.table-hover tr:hover {
	background-color: #ddd;
}


/* 列表组 */

.list-group {
	padding: 0;
	margin: 0;
}

.list-group-item {
	/* li里面的元素可以根据li来定位 */
	position: relative;
	list-style: none;
	padding: 10px 15px;
	border: 1px solid #ddd;
	margin-bottom: -1px;
}

.list-group-item:first-child {
	/* first-child 表示父元素的第一个子元素 li的父元素是ul的第一个子元素 */
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}

.list-group-item:last-child {
	/* 父元素是ul的最后一个子元素 */
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	margin-bottom: 0;
}



/* 面板结构 */
.panel {
	margin-bottom: 20px;
	border: 1px solid transparent;
	border-radius: 4px;
}

.panel .panel-heading {
	border-bottom: 1px solid transparent;
}

.panel .panel-title {
	padding: 10px 15px;
	font-size: 16px;
	margin-top: 0;
	margin-bottom: 0;
}

.panel .panel-body {
	padding: 15px;
}

.panel .panel-footer {
	border-top: 1px solid transparent;
	padding: 10px 15px;
}

.panel-default {
	border: 1px solid #ddd;
}

.panel-default .panel-heading {
	border-bottom: 1px solid #ddd;
	background-color: #f5f5f5;
}

.panel-default .panel-footer {
	border-top: 1px solid #ddd;
	background-color: #f5f5f5;
}

@media (max-width:1200px){
	.page-header .container{
		width: 100%;
	}
	
	.site-name{
		left: 20px;
	}
	
	.login-button{
		right: 20px;
	}
}