

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1320px;
    }
}

.navbar {
    margin-bottom: 0px; 
}

main h2, h3 {
    margin-top: 0px;
    margin-bottom: 3px;
}
html {
    scroll-behavior: smooth;
}

h1{
    font-size: 2.1rem;
}
h2{
    font-size: 1.8rem;
}
h3{
    font-size: 1.5rem;
}


.navbar-toggler {
    margin: 0 0 0 0;
}

a:-webkit-any-link {
    /* color: -webkit-link; */
    cursor: pointer;
    text-decoration: none;
}

a.navbar-brand > span{
    font-size: 1.9rem;
    font-weight: 563;
    color: #212121;
}

.content h1{
    text-align: center;
    padding-bottom: 15px;
    border-bottom-width: 5px;
    border-bottom-style: solid;
    border-bottom-color: rgba(255,82,82,1);
    display: block;
    width: 100%;
    position: relative;
}

.content h1 a,
.content h1 a:focus,
.content h1 a:hover,
.content h1 a:visited{
    color: inherit;
}

a.nav-link{
    display: inline;
    font-size: 1.9rem;

    line-height: 3rem;
    color: hsl(0, 5%, 20%);
}
a.nav-link:hover{text-decoration:none;color:#535deb}

.content h1 {
    text-align: center;
    padding-bottom: 15px;
    border-bottom-width: 5px;
    border-bottom-style: solid;
    border-bottom-color: rgba(255,82,82,1);
    display: block;
    width: 100%;
    position: relative;
}

.content  h2{
    margin: 2rem 0;
    text-align:justify;text-justify:auto;hyphens:auto
}

.content  h3{
    margin: 2rem 0;
    text-align:justify;text-justify:auto;hyphens:auto
}

.logo-img{
    display: inline-block;
    max-height: 56px;
    max-width: 225px;
    /* padding: 8px 4px 8px 12px; */
    vertical-align: middle;
}

.site-title{
    display: inline-block;
    line-height: 1;
    max-width: 380px;
    outline: none;
    overflow: hidden;
    padding: 16px 5px;
    text-decoration: none;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.headline-hash{
    color: inherit !important; 
}

.headline-icon {
    font-size: 0.7em; 
    margin-left: 0.2em;
    font-style: normal;
}

h2[id] {
    border-left: 3px solid #FF515B;
    padding-left: 16px;
}

h3[id] {
    border-left: 2px solid #FF515B;
    padding-left: 8px;
}








.date{
    text-align: right;
}

.toc hr{
    margin-top: 4em;
}

table {
margin: auto;
}

#TableOfContents a{
color:inherit;
}

/* #TableOfContents > ul > li:nth-child(n){
    line-height: 1.6em;
    padding-top: 0.6em;
} */




.content img {
    max-width: 100%;
    /* display: block;
    margin-left: auto;
    margin-right: auto; */
    box-sizing: initial;
    background-color: #fff;
    overflow: hidden;
    border-style: none;
    border-radius: var(--soft-small-radius);
    background-color: var(--theme-bg-primary);
    box-shadow: var(--soft-shadow) var(--soft-shadow) calc(var(--soft-shadow) * 2) var(--theme-bg-shadow),calc(-1 * var(--soft-shadow)) calc(-1 * var(--soft-shadow)) calc(var(--soft-shadow) * 2) var(--theme-bg-high);
}

.content img[src*="cover"]{
    width: 100%;
    height:100%;
}

/** 进度比例和到顶部**/
.back-to-top {
    box-sizing: border-box;
    border-radius: 8px;       /** 圆角**/
    position: fixed;
    right: 30px;
    z-index: 1050;
    padding: 0 6px;
    width: initial;
    background: #222;
    font-size: 12px;
    opacity: 0.6;
    color: #fff;
    cursor: pointer;
    text-align: center;
    transition-property: bottom;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
    transition-delay: 0s;
    bottom: -40px;
}

.back-top-active {
    bottom: 30px;
}

@media (max-width: 767px) {

    .back-to-top {
        right: 10px;
    }

    .back-top-active {
        bottom: 10px;
    }
}


.rating {
    position: relative;
    width: 180px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .3em;
    padding: 5px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 2px #b3acac;
}

.rating__result {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-10px) translateX(-5px);
    z-index: -9;
    font: 3em Arial, Helvetica, sans-serif;
    color: #ffb900;
    pointer-events: none;
}

.rating__star {
    font-size: 1.3em;
    cursor: pointer;
    color: #ffb900;
    transition: filter linear .3s;
}

.rating__star:hover {
    filter: drop-shadow(1px 1px 4px gold);
}

.clear-block{
    display: inline !important;
}
.star{
    display: flex;
    justify-content: center;
    align-items: center;
}

.rating {
    width: 180px;
}

.rating__star {
    cursor: pointer;
    color: #ffb900;
}

.heti {
    max-width: 100% !important;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: subpixel-antialiased;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}


.content img {
    height: auto!important;
    max-width: 100%!important;
    margin: 10px 0;
}

.content img[src*="cover"]{
    width: 100%;
    height:100%;
}

.content img[src$='#center'] {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
    max-height: 600px;
}

.content img[src$='#fluid'] {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
    max-height: 600px;
    width: 100%;
}

.content figcaption {
    display: flex;
    justify-content: center;
    align-items: center;
}


code {
    background-color: transparent;
}

pre {
    background-color: transparent;
}

.floating-btn div {
    background-color: #e5e2e4;
    color: #8aa2d3;
}

.floating-btn div:hover {
    background-color: #8aa2d3;
    color: #e5e2e4
}

.floating-btn div+div {
    border-top: 2px solid #fffffd;
}


.floating-btn {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 2.5rem;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    z-index: 100
}

.floating-btn div {
    flex: 0 1 auto;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem
}

.floating-btn div:first-child {
    border-radius: 0.25rem 0.25rem 0 0;
    font-size: 1.125rem
}

.floating-btn div:last-child {
    border-radius: 0 0 0.25rem 0.25rem;
    font-size: 1.325rem
}

table{
    border-collapse: collapse;
    margin: 0 auto;
    text-align: left;
}
table td, table th{
    border: 1px solid #cad9ea;
    color: #666;
    height: 30px;
}
table thead th{
    background-color: #CCE8EB;
    width: 100px;
}
table tr:nth-child(odd){
    background: #fff;
}
table tr:nth-child(even){
    background: #F5FAFA;
}

.table td, .table th {
    padding: .35rem;
    vertical-align: inherit;
    border-top: 1px solid #dee2e6;
}

.column_3 th:first-of-type {
    width: 50%;
}
.column_3 th:nth-of-type(2) {
    width: 30%;
}
.column_3 th:nth-of-type(3) {
    width: 20%;
}

table > caption{
    text-align: center;
}

/* ==================== AdSense 广告位样式 ==================== */

.ad-slot {
  display: block;
  overflow: hidden;
  text-align: center;
  margin: 1.25rem auto;
  background: #fafafa;
}
.ad-slot__label {
  display: block;
  color: #999;
  font-size: 11px;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.ad-slot--horizontal { min-height: 90px; }
.ad-slot--square     { min-height: 250px; }
.ad-slot--vertical   { min-height: 250px; }
.ad-slot--in-article { min-height: 250px; margin: 2rem auto; }

/* 桌面端：侧栏 sticky 跟随滚动，最大化广告曝光时长 */
@media (min-width: 768px) {
  .sidebar-inner {
    position: sticky;
    top: 80px;
  }
  .ad-sticky {
    position: sticky;
    top: 80px;
  }
}

/* Anchor Ad：移动端底部粘条，可关闭 */
.ad-anchor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
  padding: 6px 8px;
  min-height: 64px;
}
.ad-anchor__close {
  position: absolute;
  top: -22px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  color: #666;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
@media (max-width: 767.98px) {
  body { padding-bottom: 78px; }
}
}