﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif;
    background: #f3f4f5;
    color: #202020;
    font-size: 14px;
    line-height: 1.65
}

a {
    text-decoration: none;
    color: inherit
}

ul {
    list-style: none
}

.container {
    width: 1180px;
    margin: 0 auto
}

.site-head {
    background: #2f3b43;
    color: #fff;
    border-bottom: 4px solid #8bb8bd
}

    .site-head .container {
        height: 74px;
        display: flex;
        align-items: center;
        justify-content: space-between
    }

.brand {
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 1px
}

.head-search {
    width: 430px;
    height: 38px;
    display: flex;
    background: #fff;
    border: 1px solid #dfe4e7
}

    .head-search input {
        flex: 1;
        border: 0;
        padding: 0 12px;
        outline: 0;
        color: #333
    }

    .head-search button {
        width: 76px;
        border: 0;
        border-left: 1px solid #dfe4e7;
        background: #f6f7f8;
        color: #333;
        cursor: pointer
    }

.main-nav {
    background: #fff;
    border-bottom: 1px solid #d8dee2
}

    .main-nav .container {
        height: 48px;
        display: flex;
        align-items: center;
        gap: 6px
    }

    .main-nav a {
        height: 32px;
        line-height: 32px;
        padding: 0 16px;
        border: 1px solid transparent;
        color: #333
    }

        .main-nav a.active {
            border-color: #8bb8bd;
            background: #eef7f8;
            color: #27676c
        }

.page {
    padding: 18px 0 44px;
    min-height: calc(100vh - 126px)
}

.panel {
    background: #fff;
    border: 1px solid #dfe4e7;
    margin-bottom: 14px
}

.panel-title {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid #e9eef1
}

    .panel-title h2 {
        font-size: 16px
    }

    .panel-title span {
        color: #888;
        font-size: 13px
    }

.hot-row {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

    .hot-row strong {
        margin-right: 2px
    }

    .hot-row a {
        color: #27676c;
        border-bottom: 1px solid #cbdfe2;
        line-height: 1.2
    }

.home-grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 14px;
    align-items: start
}

.resource-table {
    width: 100%;
    border-collapse: collapse
}

    .resource-table tr {
        border-bottom: 1px solid #edf1f3
    }

        .resource-table tr:last-child {
            border-bottom: 0
        }

    .resource-table td {
        padding: 14px 18px;
        vertical-align: middle
    }

    .resource-table .name {
        width: auto
    }

        .resource-table .name a {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-weight: 500
        }

    .resource-table .sep {
        width: 36px;
        text-align: center;
        color: #aaa
    }

    .resource-table .time {
        width: 110px;
        text-align: right;
        color: #777;
        white-space: nowrap
    }

    .resource-table tr:hover {
        background: #fafafa
    }

.stat-box {
    padding: 16px 18px;
    color: #555
}

    .stat-box p {
        padding: 8px 0;
        border-bottom: 1px solid #edf1f3
    }

        .stat-box p:last-child {
            border-bottom: 0
        }

.list-top {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: #fff;
    border: 1px solid #dfe4e7;
    margin-bottom: 14px
}

    .list-top h1 {
        font-size: 17px
    }

    .list-top span {
        color: #777
    }

.pagination {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid #edf1f3
}

    .pagination a {
        height: 32px;
        min-width: 34px;
        padding: 0 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #dfe4e7;
        background: #fff;
        color: #444
    }

        .pagination a.active {
            background: #2f3b43;
            color: #fff;
            border-color: #2f3b43
        }

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 14px
}

.article {
    background: #fff;
    border: 1px solid #dfe4e7;
    padding: 28px;
    min-height: 660px
}

    .article h1 {
        font-size: 24px;
        line-height: 1.45;
        margin-bottom: 12px
    }

    .article .name-line {
        color: #666;
        padding: 12px 0 18px;
        border-bottom: 1px solid #edf1f3;
        margin-bottom: 24px
    }

.block-title {
    font-size: 17px;
    margin: 22px 0 12px
}

.desc-box {
    border: 1px solid #dfe4e7;
    background: #fafafa;
    padding: 18px;
    color: #333
}

    .desc-box p {
        margin-bottom: 10px
    }

        .desc-box p:last-child {
            margin-bottom: 0
        }

.obtain {
    border: 1px solid #dfe4e7;
    background: #fff;
    padding: 18px;
    margin-top: 14px
}

.obtain-btn {
    display: inline-flex;
    height: 40px;
    min-width: 150px;
    align-items: center;
    justify-content: center;
    background: #2f3b43;
    color: #fff;
    margin-top: 12px
}

.comments {
    border: 1px solid #dfe4e7;
    background: #fff;
    margin-top: 18px
}

.comments-head {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid #e9eef1
}

    .comments-head h2 {
        font-size: 17px;
        font-weight: 600
    }

    .comments-head span {
        font-size: 13px;
        color: #888
    }

.comment-list {
    padding: 2px 18px 4px
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #edf1f3
}

    .comment-item:last-child {
        border-bottom: 0
    }

.comment-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef7f8;
    color: #27676c;
    font-weight: 600;
    border: 1px solid #cbdfe2
}

.comment-body {
    flex: 1;
    min-width: 0
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    color: #888;
    font-size: 13px
}

.comment-author {
    color: #333;
    font-weight: 600;
    font-size: 14px
}

.comment-content {
    color: #444;
    line-height: 1.75;
    word-break: break-word
}

.comment-note {
    padding: 10px 18px;
    border-top: 1px solid #edf1f3;
    background: #fafafa;
    color: #888;
    font-size: 13px
}

.side-list {
    padding: 8px 18px 12px
}

    .side-list li {
        padding: 9px 0;
        border-bottom: 1px solid #edf1f3
    }

        .side-list li:last-child {
            border-bottom: 0
        }

.footer {
    text-align: center;
    color: #777;
    font-size: 13px;
    margin-top: 24px
}

@media(max-width:1200px) {
    .container {
        width: 96%
    }
}

@media(max-width:860px) {
    .site-head .container {
        height: auto;
        min-height: 74px;
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0
    }

    .head-search {
        width: 100%
    }

    .main-nav .container {
        height: auto;
        min-height: 48px;
        flex-wrap: wrap;
        padding: 8px 0
    }

    .home-grid, .detail-layout {
        grid-template-columns: 1fr
    }

    .resource-table td {
        padding: 12px 10px
    }

    .resource-table .sep {
        display: none
    }

    .resource-table .time {
        width: 86px;
        font-size: 13px
    }
}
