/**
 * Wiki 帮助页（index / about / contest）样式
 * 与题库列表等页面保持一致：#1875F0 强调色、#535353 / #757575 文案色
 */

.wiki-contetn {
    padding: 20px 24px 28px;
    background-color: #fff;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.7;
    color: #535353;
}

.wiki-contetn h3 {
    margin: 28px 0 16px;
    padding-left: 16px;
    border-left: 4px solid #1875F0;
    font-size: 20px;
    font-weight: bold;
    color: #535353;
    line-height: 1.4;
}

.wiki-contetn h3:first-child {
    margin-top: 0;
}

.wiki-contetn p {
    margin-bottom: 14px;
    color: #757575;
    text-align: justify;
}

.wiki-contetn hr {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid #e8e8ec;
}

.wiki-contetn ul {
    margin-bottom: 16px;
    padding-left: 1.5em;
    color: #757575;
}

.wiki-contetn ul li {
    margin-bottom: 8px;
}

.wiki-contetn a {
    color: #2E80F1;
    text-decoration: none;
}

.wiki-contetn a:hover,
.wiki-contetn a:focus {
    color: #1875F0;
    text-decoration: underline;
}

.wiki-contetn .table-responsive {
    margin-bottom: 24px;
    overflow: hidden;
    background-color: #fff;
}

/* index：标题在表格外，蓝线紧贴表格容器顶部 */
.wiki-contetn h3 + .table-responsive {
    border-top: 2px solid #1875F0;
}

/* contest：标题在 table-responsive 内，蓝线画在表格顶部 */
.wiki-contetn .table-responsive > h3 + table {
    border-top: 2px solid #1875F0;
}

.wiki-contetn .table {
    margin-bottom: 0;
}

.wiki-contetn .table-bordered {
    border: 1px solid #e8e8ec;
}

.wiki-contetn .table-bordered > thead > tr > th,
.wiki-contetn .table-bordered > tbody > tr > th,
.wiki-contetn .table-bordered > thead > tr > td,
.wiki-contetn .table-bordered > tbody > tr > td {
    padding: 12px 14px;
    border-color: #e8e8ec;
    vertical-align: middle;
}

.wiki-contetn .table-bordered > thead > tr > th {
    background-color: #f8f9fb;
    color: #999999;
    font-weight: normal;
    text-align: center;
    border-bottom: 2px solid #e8e8ec;
}

.wiki-contetn .table-bordered > tbody > tr > th {
    font-weight: normal;
    color: #757575;
    background-color: #fff;
}

.wiki-contetn .table-bordered > tbody > tr > th:first-child {
    color: #535353;
    font-weight: 600;
    background-color: #fafbfc;
    white-space: nowrap;
}

.wiki-contetn .table-bordered > tbody > tr:hover > th {
    background-color: #f5f9ff;
}

.wiki-contetn .table-bordered > tbody > tr:hover > th:first-child {
    background-color: #eef4fc;
}

/* index：Compile 表第二列为编译命令 */
.wiki-contetn h3:first-of-type + .table-responsive .table-bordered > tbody > tr > th:last-child {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    word-break: break-all;
}

/* Wiki 侧栏导航（layout 与内容同页加载 qa.css 时生效） */
.row > .col-md-3 .nav-pills > li > a {
    border-radius: 4px;
    color: #757575;
}

.row > .col-md-3 .nav-pills > li > a:hover,
.row > .col-md-3 .nav-pills > li > a:focus {
    background-color: #f5f9ff;
    color: #1875F0;
}

.row > .col-md-3 .nav-pills > li.active > a,
.row > .col-md-3 .nav-pills > li.active > a:hover,
.row > .col-md-3 .nav-pills > li.active > a:focus {
    background-color: #1875F0;
    color: #fff;
}
