body,
li {
    padding: 0;
    margin: 0;
    font-family: "Arial", "Microsoft YaHei UI", sans-serif;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body > header,
body > footer {
    width: 100%;
    height: 60px;
    background-color: #333;
}

/* 导航栏 */
header img {
    position: relative;
    top: 8px;
    left: 25px;
    width: 140px;
    height: 44px;
}

nav {
    float: right;
    margin-top: 10px;
}

nav li {
    float: right;
    padding-right: 20px;
    list-style-type: none;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.8em;
}

/* 文章 */
body {
    background-color: #dedede;
}
article,
aside,
section
{
    margin: 20px auto;
    background-color: #fff;
    width: 94%;
    padding: 20px;
}
article header {
    font-size: 0.8em;
    color: #6f6969;
}
h1 {
    font-size: 2em;
    color: #000;
}
h2 {
    font-size: 1.6em;
}
article p {
    text-indent: 2em;
}
ul {
    list-style-type: none;
}
figure {
    width: 500px;
    padding: 15px;
    border: 1px solid black;
}
figcaption {
    padding: 10px;
    text-align: center;
}

/* 文章中的表格 */
table {
    width: 100%;
    border: 1px solid #ccc;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.8em;
}
thead {
    background-color: #333;
    color: #fff;
}
td,
th
{
    padding: 5px;
    border: 1px solid #ccc;
}
tfoot {
    background-color: #ccc;
}

/* 表单 */
blockquote {
    padding: 10px;
    border-left: 3px solid #ccc;
    font-weight: bold;
}

/* 表单使用百分比定位是为了响应式设计，虽然在屏幕宽度极小时还不完善 */
form > label,
p > label:first-child
{
    display: inline-block;
    width: 42%;
    margin: 10px 0;
    text-align: right;
}
form > span {
    display: block;
    padding-left: 3px;
    margin-left: 42%;
    margin-top: 0;
    font-size: 0.8em;
}
form > input {
    padding: 3px;
}
textarea {
    position: relative;
    top: 10px;
    margin-bottom: 20px;
    vertical-align: top;
}
button {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1.1em;
    background-color: #3355d0;
}

/* 底部版权信息 */
body > footer {
    color: #ffffff;
    line-height: 60px;
    text-align: center;
    background-color: #000;
}