/* 自定义CSS文件 - 调整广告标签样式 */


/* 广告标签样式优化 - 修改成类似图2的样式 */

.sh-feed-ad {
    position: relative;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.sh-feed-ad-container {
    position: relative;
    background: linear-gradient(160deg, #ffebeb, #fff0e0);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 0;
    animation: feed-ad-glow 3s infinite;
}

@keyframes feed-ad-glow {
    0%,
    100% {
        box-shadow: 0 5px 15px rgba(255, 0, 0, 0.12);
    }
    50% {
        box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
    }
}

.sh-feed-ad:hover .sh-feed-ad-container {
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.25);
    transform: translateY(-3px);
}

.sh-feed-ad-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.9), rgba(255, 102, 0, 0.9));
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 20px;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: feed-ad-tag-pulse 2s infinite;
}

@keyframes feed-ad-tag-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.sh-feed-ad-tag::before {
    content: '\e600';
    /* 使用喜庆图标 */
    font-family: 'iconfont';
    margin-right: 5px;
    font-size: 14px;
}


/* 波浪装饰元素 */

.sh-feed-ad-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='rgba(255, 0, 0, 0.1)' fill-opacity='1' d='M0,224L80,213.3C160,203,320,181,480,181.3C640,181,800,203,960,197.3C1120,192,1280,160,1360,144L1440,128L1440,0L1360,0C1280,0,1120,0,960,0C800,0,640,0,480,0C320,0,160,0,80,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 100% 100%;
    z-index: 1;
    opacity: 0.7;
}

.sh-feed-ad-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='rgba(255, 0, 0, 0.1)' fill-opacity='1' d='M0,64L48,80C96,96,192,128,288,138.7C384,149,480,139,576,122.7C672,107,768,85,864,85.3C960,85,1056,107,1152,138.7C1248,171,1344,213,1392,234.7L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 100% 100%;
    z-index: 1;
    opacity: 0.7;
}


/* 优化广告内容区域 */

.sh-feed-ad-content {
    display: flex;
    padding: 18px;
    align-items: center;
    position: relative;
    z-index: 2;
}


/* 广告媒体区域 */

.sh-feed-ad-media {
    flex: 0 0 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 20px;
    box-shadow: 0 4px 12px rgba(0, 104, 134, 0.15);
    border: 2px solid white;
}

.sh-feed-ad-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sh-feed-ad:hover .sh-feed-ad-media img {
    transform: scale(1.05);
}


/* 广告信息区域 */

.sh-feed-ad-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sh-feed-ad-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #e60000;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    position: relative;
}

.sh-feed-ad-title::after {
    content: '🎉';
    position: absolute;
    right: -25px;
    top: 0;
    font-size: 16px;
}

.sh-feed-ad-subtitle {
    font-size: 14px;
    color: #ff6600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.sh-feed-ad-button a {
    display: inline-block;
    background: linear-gradient(135deg, #ff0000, #ff6600);
    color: white;
    padding: 8px 20px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(255, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: ad-button-pulse 2s infinite;
}

@keyframes ad-button-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(255, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(255, 0, 0, 0.5);
    }
}

.sh-feed-ad-button a::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.sh-feed-ad-button a:hover {
    background: linear-gradient(135deg, #1A7F9C, #05D8C3);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(4, 191, 173, 0.4);
}

.sh-feed-ad-button a:hover::after {
    transform: translateX(100%);
}


/* 保留原来的广告文章内标签样式 */

.sh-content-right-head-title-ad {
    width: 24px !important;
    height: 14px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: var(--backbg) !important;
    border-radius: 2px !important;
    margin-left: 5px !important;
}

.sh-content-right-head-title-ad>p {
    font-size: 9px !important;
    color: var(--adgg) !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* 广告链接样式优化 */

.sh-content-right-ggurl {
    margin-top: 5px;
}


/* 如果需要调整广告链接的图标大小 */

.ri-sxwzgg {
    font-size: 12px;
}


/* 优化广告链接文本样式 */

.sh-content-right-ggurl>a {
    font-size: 12px;
    color: var(--thetitle);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    max-width: 85%;
}


/* 深色模式适配 */

@media (prefers-color-scheme: dark) {
    .sh-feed-ad-container {
        background: linear-gradient(160deg, #3a0000, #2a1000);
        border-color: rgba(255, 0, 0, 0.3);
    }
    .sh-feed-ad-title {
        color: #ff6666;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    .sh-feed-ad-subtitle {
        color: #ffaa88;
    }
    .sh-feed-ad-tag {
        background: linear-gradient(135deg, rgba(255, 0, 0, 0.8), rgba(255, 102, 0, 0.8));
    }
    .sh-feed-ad-media {
        border-color: rgba(255, 0, 0, 0.3);
    }
    .sh-feed-ad-wave-top,
    .sh-feed-ad-wave-bottom {
        opacity: 0.2;
    }
    .sh-feed-ad-button a {
        background: linear-gradient(135deg, #cc0000, #dd4400);
        box-shadow: 0 3px 8px rgba(255, 0, 0, 0.4);
    }
}


/* 移动端适配 - 确保与PC端显示一致 */

@media (max-width: 768px) {
    .sh-feed-ad-content {
        flex-direction: row;
        /* 保持水平布局，与PC端一致 */
        padding: 15px 12px;
    }
    .sh-feed-ad-media {
        flex: 0 0 100px;
        /* 稍微缩小一点图片尺寸 */
        height: 100px;
        margin-right: 12px;
        min-width: 100px;
        /* 确保图片不会被压缩 */
    }
    .sh-feed-ad-info {
        width: auto;
        text-align: left;
        /* 保持文字左对齐 */
    }
    .sh-feed-ad-title {
        font-size: 16px;
        margin-bottom: 5px;
    }
    .sh-feed-ad-subtitle {
        font-size: 13px;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
        /* 限制最多2行 */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .sh-feed-ad-button a {
        padding: 6px 16px;
        font-size: 13px;
    }
    .sh-feed-ad-tag {
        top: 8px;
        left: 8px;
        padding: 3px 10px;
        font-size: 11px;
    }
}


/* 添加热门和置顶标签样式 */

.post-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.2;
    color: #fff;
    vertical-align: middle;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    margin-top: 2px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.post-top-tag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 10px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    background: linear-gradient(135deg, #38a169, #2f855a) !important;
    color: white !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 5px rgba(47, 133, 90, 0.2) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) !important;
    height: 26px !important;
    line-height: 1 !important;
}

.post-top-tag::before {
    content: '🔝';
    margin-right: 4px;
    font-size: 13px;
}


/* 山峰背景元素 */

.post-top-tag::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L80,20 L160,5 L240,30 L320,0 L400,15 L480,5 L560,25 L640,10 L720,30 L800,0 L880,20 L960,5 L1040,25 L1120,10 L1200,30 L1200,120 L0,120 Z' fill='rgba(255,255,255,0.2)'/%3E%3C/svg%3E");
    background-size: 1200px 120%;
    animation: mountain-move 20s linear infinite;
    z-index: -1;
}

@keyframes mountain-move {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1200px;
    }
}

.post-hot-tag {
    background: linear-gradient(135deg, #FF9F43, #E67E22);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: pulse-hot 2.5s infinite;
    position: relative;
    z-index: 1;
}

.post-hot-tag::before {
    content: '🌊';
    margin-right: 4px;
    font-size: 11px;
}


/* 波浪背景元素 */

.post-hot-tag::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.5' fill='%23FFFFFF'/%3E%3C/svg%3E");
    background-size: 1200px 100%;
    animation: wave 15s linear infinite;
    z-index: -1;
}

@keyframes pulse-top {
    0% {
        box-shadow: 0 0 0 0 rgba(23, 107, 135, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(23, 107, 135, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(23, 107, 135, 0);
    }
}

@keyframes pulse-hot {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(230, 126, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
    }
}

.admin-name {
    color: #3c8dbc !important;
    font-weight: bold !important;
    position: relative !important;
    display: inline-block !important;
    padding-bottom: 2px !important;
}


/* 移除下划线样式 */

.admin-name:after {
    display: none !important;
}

@keyframes admin-name-wave {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 40px;
    }
}


/* 管理员名称波浪下划线 */

@keyframes wave-underline {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(1px);
    }
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1200px;
    }
}


/* 暗色模式适配 */

.dark-theme .post-top-tag {
    background: linear-gradient(135deg, #176B87, #04BFAD);
}

.dark-theme .post-hot-tag {
    background: linear-gradient(135deg, #FF9F43, #E67E22);
}

.dark-theme .admin-name {
    color: #7FDBDA;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.dark-theme .admin-name::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,15 Q60,5 120,15 T240,15 T360,15 T480,15 T600,15 T720,15 T840,15 T960,15 T1080,15 T1200,15 V30 H0 Z' fill='%237FDBDA' opacity='0.3'/%3E%3C/svg%3E");
}


/* 修改首页文章排序样式 - 使热门文章更加突出 */

.sh-content:has(.post-top-tag) {
    border-left: 4px solid #176B87;
    background-color: rgba(23, 107, 135, 0.05);
    padding-left: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


/* 添加山峰装饰背景 */

.sh-content:has(.post-top-tag)::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100,0 L100,100 L0,100 L50,30 Z' fill='rgba(23, 107, 135, 0.03)'/%3E%3C/svg%3E");
    background-size: cover;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

.sh-content:has(.post-hot-tag) {
    border-left: 4px solid #FF9F43;
    background-color: rgba(255, 159, 67, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


/* 添加海浪装饰背景 */

.sh-content:has(.post-hot-tag)::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100,0 L100,100 L0,100 C20,70 50,90 70,50 C80,30 90,20 100,0 Z' fill='rgba(255, 159, 67, 0.03)'/%3E%3C/svg%3E");
    background-size: cover;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

.sh-content:has(.post-top-tag):hover,
.sh-content:has(.post-hot-tag):hover {
    transform: translateX(5px);
}


/* 暗色模式下文章背景 */

.dark-theme .sh-content:has(.post-top-tag) {
    background-color: rgba(23, 107, 135, 0.1);
    border-left: 4px solid #04BFAD;
}

.dark-theme .sh-content:has(.post-hot-tag) {
    background-color: rgba(230, 126, 34, 0.1);
    border-left: 4px solid #FF9F43;
}


/* 管理员帖子波浪元素样式 - 修改版 */

.admin-post {
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 5px 15px rgba(51, 202, 187, 0.15) !important;
    background: linear-gradient(120deg, rgba(51, 202, 187, 0.05) 0%, rgba(60, 141, 188, 0.1) 100%) !important;
    border: 1px solid rgba(51, 202, 187, 0.2) !important;
    border-left: 4px solid !important;
    border-image: linear-gradient(to bottom, #3c8dbc, #33cabb) 1 !important;
    border-image-slice: 1 !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    border-radius: 12px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* 确保管理员帖子内容不会溢出 */

.admin-post .sh-content-right {
    width: 100% !important;
    max-width: calc(100% - 30px) !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
}

.admin-post .sh-content-right img {
    max-width: 100% !important;
    height: auto !important;
}


/* 确保通知函等文档类内容能够正确显示 */

.admin-post .sh-content-right span {
    max-width: 100% !important;
    display: inline-block !important;
    word-break: break-word !important;
}


/* 适配移动设备 */

@media screen and (max-width: 768px) {
    .admin-post .sh-content-right {
        max-width: calc(100% - 20px) !important;
        padding-right: 5px !important;
    }
}


/* 顶部装饰 - 移除多余的线条 */

.admin-post::before {
    display: none !important;
}


/* 添加波浪元素在顶部 */

.admin-post::after {
    content: '' !important;
    position: absolute !important;
    top: 6px !important;
    left: 0 !important;
    width: 100% !important;
    height: 10px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%233c8dbc'/%3E%3C/svg%3E") !important;
    background-size: 1200px 100% !important;
    animation: admin-wave-top 20s linear infinite !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

@keyframes admin-wave-top {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1200px;
    }
}


/* 右侧添加装饰图标 */

.admin-post .sh-content-right::before {
    content: '\e6af' !important;
    /* 使用更现代的图标 */
    font-family: 'iconfont' !important;
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    font-size: 28px !important;
    opacity: 0.08 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    color: #3c8dbc !important;
    transition: all 0.3s ease !important;
}


/* 底部添加等宽装饰线 */

.admin-post .sh-content-right::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(90deg, #3c8dbc, #33cabb, #3c8dbc) !important;
    background-size: 200% 100% !important;
    animation: admin-gradient-move 8s linear infinite !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

@keyframes admin-gradient-move {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}


/* 移除旧的波浪动画，使用新的渐变动画 */


/* 管理员名称样式 */

.admin-name {
    color: #3c8dbc !important;
    font-weight: bold !important;
    position: relative !important;
    display: inline-block !important;
    padding-bottom: 2px !important;
}


/* 移除下划线样式 */

.admin-name:after {
    display: none !important;
}

@keyframes admin-name-wave {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 40px;
    }
}


/* 深色模式适配 */

.dark-theme .admin-post {
    background: linear-gradient(120deg, rgba(51, 202, 187, 0.1) 0%, rgba(60, 141, 188, 0.15) 100%) !important;
    border: 1px solid rgba(51, 202, 187, 0.3) !important;
    border-left: 4px solid !important;
    border-image: linear-gradient(to bottom, #3c8dbc, #33cabb) 1 !important;
}

.dark-theme .admin-post::before {
    display: none !important;
}

.dark-theme .admin-post::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%2333cabb'/%3E%3C/svg%3E") !important;
}

.dark-theme .admin-post .sh-content-right::after {
    background: linear-gradient(90deg, #33cabb, #3c8dbc, #33cabb) !important;
}

.dark-theme .admin-post .sh-content-right::before {
    color: #33cabb !important;
}

.dark-theme .admin-name {
    color: #33cabb !important;
}

.dark-theme .admin-name::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath d='M0,1 Q2,0.5 4,1 T8,1 T12,1 T16,1 T20,1' stroke='%2333cabb' fill='none' stroke-width='1'/%3E%3C/svg%3E") !important;
}


/* 悬停效果 */

.admin-post:hover::after {
    animation-duration: 10s !important;
}

.admin-post:hover .sh-content-right::after {
    animation-duration: 4s !important;
}

.admin-post:hover .sh-content-right::before {
    opacity: 0.15 !important;
    transform: scale(1.1) !important;
    transition: all 0.5s ease !important;
}

.sh-reward-records {
    background-color: rgba(176, 226, 255, 0.3);
}


/* 用户要求的修改 - 2023年 */


/* 1. 将"已打赏"按钮大小修改成"打赏"按钮的大小 */

.sh-content-right-head-title-reward {
    padding: 5px 5px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-height: 28px;
    line-height: 1;
    z-index: 9;
}


/* 2. 将"置顶"大小修改成"热门"的大小样式 颜色保持绿色 */

.post-top-tag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 10px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    background: linear-gradient(135deg, #38a169, #2f855a) !important;
    color: white !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 5px rgba(47, 133, 90, 0.2) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) !important;
    height: 26px !important;
    line-height: 1 !important;
}


/* 3. "【官方】"标签样式优化，使用图标替代 */

.official-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(199deg, #eb62a0, #de6060);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    padding: 3px 7px;
    margin-right: 5px;
    position: relative;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.official-tag::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 3px;
    background-image: url("data:image/svg+xml,%3Csvg t='1747021336819' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='5250' width='32' height='32'%3E%3Cpath d='M808.399 780.398a419.657 419.657 0 1 0-593.484 0l0.237-0.237 2.609 2.577a8 8 0 0 0 11.313-0.071l35.938-36.39a8 8 0 0 0-0.07-11.314l-2.311-2.281 0.01-0.01a352.166 352.166 0 0 1 53.366-541.827A352.158 352.158 0 0 1 837.011 348.89a352.166 352.166 0 0 1-75.049 382.485l-3.284 3.213a8 8 0 0 0-0.124 11.313l35.766 36.56a8 8 0 0 0 11.313 0.123l2.503-2.448 0.263 0.262zM513.755 294.184l28.377 29.062a72.004 72.004 0 0 0 52.372 21.693l40.617-0.484-0.484 40.616a71.998 71.998 0 0 0 21.693 52.372l29.062 28.378-29.062 28.378a72 72 0 0 0-21.693 52.372l0.484 40.616-40.617-0.484a72 72 0 0 0-52.372 21.694l-28.377 29.062-28.378-29.062a72 72 0 0 0-52.372-21.694l-40.617 0.484 0.484-40.616a71.998 71.998 0 0 0-21.693-52.372l-29.062-28.378 29.062-28.378a71.998 71.998 0 0 0 21.693-52.372l-0.484-40.616 40.617 0.484a72.004 72.004 0 0 0 52.372-21.693l28.378-29.062z m11.447-68.433c-6.278-6.429-16.617-6.429-22.895 0l-56.997 58.371a16 16 0 0 1-11.638 4.821l-81.578-0.972c-8.985-0.107-16.297 7.204-16.189 16.19l0.971 81.577a16.001 16.001 0 0 1-4.82 11.638l-58.372 56.997c-6.429 6.278-6.429 16.618 0 22.896l58.372 56.997a16.003 16.003 0 0 1 4.82 11.638l-0.971 81.578c-0.108 8.985 7.204 16.296 16.189 16.189l81.578-0.972a16 16 0 0 1 11.638 4.821l56.997 58.371c6.278 6.429 16.617 6.429 22.895 0l56.997-58.371a16 16 0 0 1 11.638-4.821l81.578 0.972c8.985 0.107 16.297-7.204 16.189-16.189l-0.971-81.578a16.003 16.003 0 0 1 4.82-11.638l58.372-56.997c6.429-6.278 6.429-16.618 0-22.896l-58.372-56.997a16.001 16.001 0 0 1-4.82-11.638l0.971-81.577c0.108-8.986-7.204-16.297-16.189-16.19l-81.578 0.972a16 16 0 0 1-11.638-4.821l-56.997-58.371zM320 744a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v108.663l104.035-104.036c10.119-10.118 25.329-12.044 37.385-5.776a31.934 31.934 0 0 1 8.305 5.784L642 852.834V744a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v184c0 17.673-14.327 32-32 32-8.629 0-16.461-3.416-22.217-8.969a37.016 37.016 0 0 1-1.02-0.941L511.298 815.874 374.882 952.29c-12.496 12.497-32.758 12.497-45.255 0a31.862 31.862 0 0 1-9.111-18.536A32.187 32.187 0 0 1 320 928V744z' fill='%23ffffff' p-id='5251'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* 动画效果 */

@keyframes official-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}


/* 4. 活动中心申请后的弹出样式 */

.activity-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.activity-modal-content {
    background-color: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modal-appear 0.3s ease;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.activity-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.activity-modal-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.activity-progress {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.activity-progress::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: -1;
}

.activity-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.activity-step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
}

.activity-step-active .activity-step-circle {
    background-color: #4299e1;
    color: white;
    border: 2px solid #3182ce;
}

.activity-step-completed .activity-step-circle {
    background-color: #38a169;
    color: white;
    border: 2px solid #2f855a;
}

.activity-step-text {
    font-size: 14px;
    color: #666;
}

.activity-step-active .activity-step-text {
    color: #4299e1;
    font-weight: bold;
}

.activity-step-completed .activity-step-text {
    color: #38a169;
    font-weight: bold;
}

.activity-btn {
    background-color: #f97316;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.activity-btn:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}


/* 深色模式适配 */

@media (prefers-color-scheme: dark) {
    .activity-modal-content {
        background-color: #1a202c;
    }
    .activity-modal-title {
        color: #e2e8f0;
    }
    .activity-modal-subtitle {
        color: #a0aec0;
    }
    .activity-progress::before {
        background-color: #2d3748;
    }
    .activity-step-circle {
        background-color: #2d3748;
        border-color: #4a5568;
    }
    .activity-step-text {
        color: #a0aec0;
    }
    .official-tag {
        background: linear-gradient(135deg, #c53030, #9b2c2c);
    }
    .post-top-tag {
        background: linear-gradient(135deg, #2f855a, #276749) !important;
    }
}


/* 修复置顶按钮样式 - 针对绿色背景的置顶按钮 */

.sh-content-right-head-title-ad[style*="background: var(--themetm)"] {
    min-width: 38px !important;
    width: auto !important;
    height: 22px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 4px !important;
    margin-left: 5px !important;
    background: linear-gradient(135deg, #09c362, #09c362) !important;
    box-shadow: 0 2px 4px rgba(47, 133, 90, 0.2) !important;
    padding: 0 6px !important;
}

.sh-content-right-head-title-ad[style*="background: var(--themetm)"]>p {
    font-size: 12px !important;
    color: white !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
}

.sh-content-right-head-title-ad[style*="background: var(--themetm)"]::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    background-image: url("data:image/svg+xml,%3Csvg t='1747020660691' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='3871' width='32' height='32'%3E%3Cpath d='M512 1024c-281.6 0-512-230.4-512-512s230.4-512 512-512 512 230.4 512 512S793.6 1024 512 1024zM512 96C281.6 96 96 281.6 96 512s185.6 416 416 416 416-185.6 416-416S742.4 96 512 96zM652.8 512C640 512 627.2 505.6 614.4 492.8l0 0-57.6-64 0 288c0 25.6-19.2 44.8-51.2 44.8-25.6 0-44.8-19.2-44.8-44.8L460.8 428.8l-57.6 64 0 0C396.8 505.6 384 512 364.8 512 339.2 512 320 492.8 320 467.2c0-12.8 6.4-25.6 12.8-32l0 0 140.8-160 0 0C480 262.4 492.8 256 512 256c12.8 0 25.6 6.4 38.4 19.2l0 0 140.8 160 0 0C697.6 441.6 704 454.4 704 467.2 704 492.8 684.8 512 652.8 512z' p-id='3872' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* 隐藏广告标签 */

.sh-content-right-head-title-ad:not([style*="background: var(--themetm)"]) {
    display: none !important;
}