/* 背景和容器 */
.bg-gray-200 {
    background-color: #edf2f7;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 栅格系统 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

.col-lg-8 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}
@media (min-width: 992px) {
    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

/* 列表样式 */
.list-inline {
    padding-left: 0;
    list-style: none;
}

.list-inline-item {
    display: inline-block;
}

.list-inline-item:not(:last-child) {
    margin-right: 0.5rem;
}

.list-unstyled {
    padding-left: 0;
    list-style: none;
}

/* 间距 */
.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.my-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.ml-1 {
    margin-left: 0.25rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

/* 文本样式 */
.text-center {
    text-align: center !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-primary {
    color: #007bff !important;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.small {
    font-size: 80%;
    font-weight: 400;
}

.cm-ff-yh {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.cm-link {
    color: #007bff;
    text-decoration: none;
    background-color: transparent;
}

.cm-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 边框 */
.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

/* 背景 */
.bg-light {
    background-color: #f8f9fa !important;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

/* 徽章 */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

/* 图片和媒体 */
.figure {
    display: inline-block;
}

.figure-img {
    margin-bottom: 0.5rem;
    line-height: 1;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.gallery-img {
    cursor: pointer;
}

/* 文章内容 */
.article-content {
    line-height: 1.8;
    overflow-wrap: break-word;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.article-download {
    color: #007bff;
    text-decoration: none;
}

.article-download:hover {
    text-decoration: underline;
    color: #0056b3;
}