.hbbg {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: max(5.6rem, 560px);
    background: -webkit-gradient(linear, right top, left top, from(#ff2b00), to(#ff4d00));
    background: -webkit-linear-gradient(right, #ff2b00 0%, #ff4d00 100%);
    background: -o-linear-gradient(right, #ff2b00 0%, #ff4d00 100%);
    background: linear-gradient(270deg, #ff2b00 0%, #ff4d00 100%);
}
.hbbg::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%) !important;
}
.dark-theme .hbbg::before {
    background: linear-gradient(180deg,rgb(255 255 255 / 0%) 0%,#1b1d1f 100%);
}
.hot-header {
    position: relative;
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.hot-header img {
    display: block;
    width: 15rem;
    height: auto;
    position: relative;
    left: 9%;
}





.hot-body::-webkit-scrollbar-thumb {
    background-color: #82828280;
    -webkit-border-radius: 4px;
    border-radius: 4px
}

.hot-body::-webkit-scrollbar {
    width: 5px;
    height: 2px
}



.hot-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    z-index: 1;
    position: absolute;
}

.hot-card {
    min-width: 300px;
    margin: 5px;
    padding: 15px 20px 5px;
    width: 25%;
    height: 350px;
    background: #fff;
    border-width: 0;
    border-radius: 10px;
    box-shadow: 0px 0px 20px -5px #9e9e9e33;


}


.hot-head {
    height: 36px;
}

.hot-head img {
    height: 17px;
    margin-right: 5px;
    border-style: none;
    vertical-align: middle;
}

.hot-title {
    font-size: 16px;
    margin-bottom: 8px;
    display: inline-block;
}

.hot-unit {
    float: right;
    font-size: 14px;
    color: #555555;
    margin-right: 2rem;
}

.hot-body {
    overflow: auto;
    overflow-x: hidden;
    height: 250px;
    padding: 5px;
}

.hot-footer {
    margin-top: 10px;
    border-top: 1px solid #dddddd;
    padding: 10px 0 0;
}

.hot-time {
    float: right;
    color: #838383;
    font-size: 14px;
    margin: 2px;
}

.hot-table {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.hot-list {
    font-size: 14px;
    min-height: 1.8rem;
    padding: 0;
    margin: 0;
    display: flex;
}

.hot-list:nth-of-type(1)>.hot-index:first-child {
    color: #fff;
    background: #FE2D46;
}

.hot-list:nth-of-type(2)>.hot-index:first-child {
    color: #fff;
    background: #F60;
}

.hot-list:nth-of-type(3)>.hot-index:first-child {
    color: #fff;
    background: #FAA90E;
}

.hot-list a {
    width: 80%;
    color: #333333;
    text-decoration: none;
}

.hot-list a:hover {
    color: #f3434e;
}

.hot-index {
    width: 18px;
    height: 18px;
    font-size: 14px;
    text-align: center;
    margin-right: 12px;
    border-radius: 4px;
    color: #333;
    background: #dbdbdb;
    display: inline-block;
    padding: 0 3px;
}

.span-year {
    padding: 0px 3px;
    height: 18px;
    font-size: 14px;
    text-align: center;
    margin-right: 12px;
    border-radius: 4px;
    color: #333;
    background: #dbdbdb;
    display: inline-block;
}

.hot-rank {
    white-space: nowrap;
    margin-left: auto;
    margin-right: 5px;
    color: #939393;
}

.hot-tag {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    display: inline-block;
    background: #ff9406;
    padding: 1px;
}

.hot-tag-1 {
    background: #ff9406;
}

.hot-tag-3 {
    background: #ff3852;
}

.hot-tag-5 {
    background: #0bbd33;
}

.hot-tag-8 {
    background: #cb3aab;
}

.hot-tag-16 {
    background: #5f5f5f;
}

.hot-tag-20 {
    background: #ff9406;
}

.hot-tag:empty {
    background: none;
}

.hot-time i {
    margin-right: 3px;
    font-style: normal;
}

.span-lunar i {
    font-weight: bold;
    margin-right: 5px;
    font-style: normal;
}

.hot-list i {
    font-style: normal;
}

.span-lunar {
    font-weight: bold;
    margin-right: 15px;
    white-space: nowrap;
}

.span-yan {
    text-indent: 2em;
    line-height: 1.5;
    font-size: 16px;
}

@media (max-width: 768px) {
    .hot-panel {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hot-card {
        width: 85%;
    }
}

/* 针对宽度小于或等于600px的屏幕 */
@media (max-width: 600px) {
    .hot-panel {
        flex-direction: column;
    }


}

/* 添加深色模式的样式 */
body {
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 其他深色模式样式 */
.header.dark-mode {
    background-color: #1e1e1e; /* 深色头部 */
}

.footer.dark-mode {
    background-color: #1e1e1e; /* 深色底部 */
}

/* 卡片深色样式 */
.dark-mode .hot-card {
    background-color: #1e1e1e !important;
    box-shadow: 0px 0px 20px -5px rgba(0, 0, 0, 0.5);
}

/* 链接颜色 */
.dark-mode .hot-list a {
    color: #e0e0e0;
}

.dark-mode .hot-list a:hover {
    color: #f3434e;
}

/* 头部背景 */
.dark-mode .hbbg::before {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #121212 100%) !important;
}

/* 其他元素深色样式 */
.dark-mode .hot-unit {
    color: #888888;
}

.dark-mode .hot-time {
    color: #888888;
}

.dark-mode .hot-footer {
    border-top-color: #333333;
}

.dark-mode .hot-rank {
    color: #888888;
}

/* 序号背景 */
.dark-mode .hot-index {
    background: #333333;
    color: #e0e0e0;
}

.dark-mode .span-year {
    background: #333333;
    color: #e0e0e0;
}

/* 保持原有的热门标签颜色不变 */
.dark-mode .hot-list:nth-of-type(1)>.hot-index:first-child,
.dark-mode .hot-list:nth-of-type(2)>.hot-index:first-child,
.dark-mode .hot-list:nth-of-type(3)>.hot-index:first-child {
    color: #fff;
}

/* 基础样式 */
body {
    background-color: #fff;
    transition: all 0.3s ease;
}

.hot-card {
    background-color: #fff;
    box-shadow: 0px 0px 20px -5px #9e9e9e33;
}

/* 深色模式样式 */
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-theme .hot-list a {
    color: #e0e0e0;
}

body.dark-theme .hot-list a:hover {
    color: #f3434e;
}

body.dark-theme .hbbg::before {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #121212 100%) !important;
}

body.dark-theme .hot-unit,
body.dark-theme .hot-time,
body.dark-theme .hot-rank {
    color: #888888;
}

body.dark-theme .hot-footer {
    border-top-color: #333333;
}

body.dark-theme .hot-index,
body.dark-theme .span-year {
    background: #333333;
    color: #e0e0e0;
}

body.dark-theme .hot-title {
    color: #e0e0e0;
}

/* 保持原有的热门标签颜色不变 */
body.dark-theme .hot-list:nth-of-type(1)>.hot-index:first-child,
body.dark-theme .hot-list:nth-of-type(2)>.hot-index:first-child,
body.dark-theme .hot-list:nth-of-type(3)>.hot-index:first-child {
    color: #fff;
}

/* 黄历部分深色模式适配 */
body.dark-theme .hot-list .span-lunar,
body.dark-theme .span-yan {
    color: #e0e0e0;
}

body.dark-theme .hot-list font[color="green"],
body.dark-theme .hot-list font[color="red"] {
    opacity: 0.9;
}

/* 链接和文本颜色 */
body.dark-theme .hot-list a,
body.dark-theme .hot-title,
body.dark-theme .hot-head,
body.dark-theme .hot-body,
body.dark-theme .span-yan,
body.dark-theme .span-lunar,
body.dark-theme li.hot-list {
    color: #e0e0e0;
}

body.dark-theme .hot-list a:hover {
    color: #f3434e;
}

/* 热度标签 */
body.dark-theme .hot-tag {
    opacity: 0.9;
}

/* 黄历字体颜色 */
body.dark-theme .hot-list font[color="green"],
body.dark-theme .hot-list font[color="red"] {
    opacity: 0.9;
}

/* 滚动条样式 */
body.dark-theme .hot-body::-webkit-scrollbar-thumb {
    background-color: #424242;
}

body.dark-theme .hot-body::-webkit-scrollbar-track {
    background-color: #1e1e1e;
}

/* 强制覆盖任何可能的冲突样式 */
body.dark-theme * {
    border-color: #333333 !important;
}

body.dark-theme .hot-card,
body.dark-theme .hot-body {
    background-color: #1e1e1e !important;
}

/* 保持标签原有的背景色 */
body.dark-theme .hot-tag-1 { background: #ff9406 !important; }
body.dark-theme .hot-tag-3 { background: #ff3852 !important; }
body.dark-theme .hot-tag-5 { background: #0bbd33 !important; }
body.dark-theme .hot-tag-8 { background: #cb3aab !important; }
body.dark-theme .hot-tag-16 { background: #5f5f5f !important; }
body.dark-theme .hot-tag-20 { background: #ff9406 !important; }