/* 基础样式 */
/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
    /* 定义滚动条的宽度 */
    height: 10px;
    /* 定义滚动条的高度 */
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* 定义滚动条轨道的背景颜色 */
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    background: #888;
    /* 定义滚动条滑块的背景颜色 */
}

/* 滚动条箭头 */
::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
    background: #555;
    /* 定义滚动条箭头的背景颜色 */
}

/* 滚动条箭头（鼠标悬停时） */
::-webkit-scrollbar-button:start:decrement:hover,
::-webkit-scrollbar-button:end:increment:hover {
    background: #666;
    /* 定义鼠标悬停时滚动条箭头的背景颜色 */
}

html,
body,
span,
div,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
pre,
a,
em,
img,
strong,
b,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tr,
th,
td,
textarea {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ol,
ul {
    list-style: none;
}

[hidden] {
    display: none;
}

a:focus {
    outline: thin dotted;
}

a:active,
a:hover {
    outline: 0;
}

a,
a:link,
a:visited,
a:active {
    color: #000;
    text-decoration: none;
}

a:hover {
    color: rgba(232, 186, 34, 0.908);
}

hr {
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 0;
}

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

legend {
    white-space: normal;
    *margin-left: -7px;
}

button,
input,
select,
textarea {
    font-size: 100%;
    vertical-align: baseline;
    *vertical-align: middle;
    outline: none;
}

button,
select {
    text-transform: none;
}

button,
input {
    line-height: normal;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
    *overflow: visible;
}

button[disabled],
html input[disabled] {
    cursor: default;
}

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
    *height: 13px;
    *width: 13px;
}

input[type="search"] {
    -webkit-appearance: textfield;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

textarea {
    overflow: auto;
    resize: vertical;
}

[contenteditable]:focus {
    outline: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

img {
    vertical-align: middle;
    border: 0;
    -ms-interpolation-mode: bicubic;
}

html, body {
    font-family: "-apple-system", "BlinkMacSystemFont", "SF UI Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    line-height: 1.5em;
    font-weight: 300;
    color: #111;
    background-color: #ffffff;
    height: 100%;
    /* 使body和html占满整个视口 */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    /* white-space: pre-wrap; */
}

button,
input,
select,
textarea {
    font-family: Tahoma, Arial, \5b8b\4f53;
}

pre, code {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    line-height: 1.75em;
    color: #000000;
}

code {
    background-color: #f8f8f8;
    border: solid 1px #f5f5f5;
    padding: 10px 15px;
    box-sizing: border-box;
    border-radius: 5px;
    margin: 10px 0;
    /* white-space: pre-wrap;
        word-wrap: break-word;
        word-break: break-all; */
    word-break: normal;
    overflow-x: auto;
    overflow-y: hidden;
    display: block;
}

code table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

header, footer, .main {
    width: 80%;
    margin: 0 auto;
}

header {
    height: auto;
    font-size: 16px;
}

header .tops {
    width: 100%;
    text-align: right;
    border-bottom: solid 1px #00000011;
    padding: 10px 10px;
}

header .logo {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    margin: 10px 10px 30px 10px;
}

header .logo .title {
    flex: 4;
    min-height: 50px;
}

header .logo .rtbox {
    flex: 1;
    text-align: right;
}

header nav {
    width: 100%;
    margin: 10px 0;
    border: solid 1px #00000004;
}

header nav ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

header nav ul li {
    flex: 1;
    /*
    max-width: 25%;
    min-width: 124px;
    */
    text-align: center;
}

header nav ul li a {
    display: block;
    background-attachment: fixed;
    background-color: #00000004;
    margin: 1px 1px;
    line-height: 2.5em;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

header nav ul li a:hover {
    background-color: #00000008;
}

footer {
    height: auto;
    background-color: #00000002;
    color: #0000006f;
    font-size: 14px;
    text-align: center;
    line-height: 2.5em;
    padding: 5px 20px;
    box-sizing: border-box;
}

.main {
    padding: 15px;
    border: solid #f2f2f2 1px;
    background: #FFF;
    box-shadow: 1px 2px 3px rgba(0, 0, 0, .1);
    -moz-box-shadow: 1px 2px 3px rgba(0, 0, 0, .1);
    -webkit-box-shadow: 1px 2px 3px rgba(0, 0, 0, .1);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.view {
    font-size: 14px;
}

.view img {
    max-width: 100%;;
}

.tag {
    border: solid 1px #00000010;
    margin: 10px auto;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    position: relative;
    max-width: 100%;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.tablebox {
    margin: 10px auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 响应式 */
@media only screen and (max-width: 1024px) {
    header, footer, .main {
        width: 90%;
        margin: 0 auto;
    }

    header nav ul li {
        flex: 0 0 25%;
        /* 100% / 3 = 33.33% */
        max-width: 25%;
        text-align: center;
    }
}

@media only screen and (max-width: 768px) {
    header, footer, .main {
        width: 96%;
        margin: 0 auto;
    }

    header nav ul li {
        flex: 0 0 25%;
        /* 100% / 4 = 25% */
        max-width: 25%;
    }
}

@media only screen and (max-width: 640px) {
    header, footer, .main {
        width: 98%;
        margin: 0 auto;
    }

    header nav ul li {
        flex: 0 0 33.33%;
        /* 100% / 3 = 33.33% */
        max-width: 33.33%;
    }
}