/*
 * 子比主题美化插件 - 新功能CSS
 * 昼夜模式适配、首页聚合模块、版权声明样式
 */

/* ==================== 昼夜模式适配 ==================== */
:root {
    /* 日间模式颜色 */
    --zib-bg-primary: #ffffff;
    --zib-bg-secondary: #f7f9fc;
    --zib-bg-tertiary: #edf2f7;
    --zib-text-primary: #1a202c;
    --zib-text-secondary: #4a5568;
    --zib-text-muted: #718096;
    --zib-border-color: #e2e8f0;
    --zib-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --zib-accent-color: #667eea;
    --zib-accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 夜间模式 */
body.night-mode,
body.dark-mode,
html[mode="dark"] body {
    --zib-bg-primary: #1a202c;
    --zib-bg-secondary: #2d3748;
    --zib-bg-tertiary: #4a5568;
    --zib-text-primary: #f7fafc;
    --zib-text-secondary: #cbd5e0;
    --zib-text-muted: #a0aec0;
    --zib-border-color: #4a5568;
    --zib-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* ==================== 首页聚合模块 ==================== */
/* 统计信息栏 */
.zib-stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px;
    background: var(--zib-bg-secondary);
    border-radius: 16px;
    margin-bottom: 30px;
}

.zib-stat-item {
    text-align: center;
    padding: 20px;
    min-width: 120px;
}

.zib-stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--zib-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.zib-stat-label {
    font-size: 14px;
    color: var(--zib-text-secondary);
    margin-top: 8px;
}

/* 卡片式统计 */
.zib-stats-bar.card-style .zib-stat-item {
    background: var(--zib-bg-primary);
    border-radius: 12px;
    box-shadow: var(--zib-card-shadow);
    padding: 25px 30px;
}

/* 快捷入口模块 */
.zib-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    padding: 25px;
    background: var(--zib-bg-secondary);
    border-radius: 16px;
    margin-bottom: 30px;
}

.zib-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.zib-quick-link:hover {
    transform: translateY(-5px);
}

.zib-quick-link-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.zib-quick-link-title {
    font-size: 14px;
    color: var(--zib-text-primary);
    font-weight: 600;
}

/* 渐变图标样式 */
.zib-quick-links.gradient-style .zib-quick-link-icon {
    background: var(--zib-accent-gradient);
    color: white;
}

.zib-quick-links.gradient-style .zib-quick-link:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* 玻璃效果样式 */
.zib-quick-links.glass-style .zib-quick-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.zib-quick-links.glass-style .zib-quick-link-icon {
    background: rgba(102, 126, 234, 0.2);
    color: var(--zib-accent-color);
}

/* 霓虹发光样式 */
.zib-quick-links.neon-style .zib-quick-link-icon {
    background: var(--zib-accent-gradient);
    color: white;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.zib-quick-links.neon-style .zib-quick-link:hover .zib-quick-link-icon {
    animation: neon-pulse 1s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from { box-shadow: 0 0 20px rgba(102, 126, 234, 0.5); }
    to { box-shadow: 0 0 40px rgba(102, 126, 234, 0.8), 0 0 60px rgba(102, 126, 234, 0.4); }
}

/* 排行榜模块 */
.zib-ranking-module {
    background: var(--zib-bg-secondary);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.zib-ranking-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--zib-text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 领奖台样式 */
.zib-ranking-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 25px;
}

.zib-podium-item {
    text-align: center;
}

.zib-podium-step {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px 12px 0 0;
    padding: 15px 10px;
}

.zib-podium-item.second .zib-podium-step {
    height: 100px;
    background: linear-gradient(180deg, #c0c0c0 0%, #a8a8a8 100%);
}

.zib-podium-item.first .zib-podium-step {
    height: 120px;
    background: linear-gradient(180deg, #ffd700 0%, #ffb700 100%);
}

.zib-podium-item.third .zib-podium-step {
    height: 80px;
    background: linear-gradient(180deg, #cd7f32 0%, #a06229 100%);
}

.zib-podium-rank {
    font-size: 30px;
    font-weight: 800;
    color: white;
}

.zib-podium-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    margin-top: 10px;
}

.zib-podium-name {
    font-weight: 600;
    color: var(--zib-text-primary);
    margin-top: 10px;
}

/* 排行榜列表 */
.zib-ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zib-ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.zib-ranking-item:hover {
    background: var(--zib-bg-primary);
}

.zib-rank-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.zib-rank-number.top-1 { background: #ffd700; color: white; }
.zib-rank-number.top-2 { background: #c0c0c0; color: white; }
.zib-rank-number.top-3 { background: #cd7f32; color: white; }
.zib-rank-number:not(.top-1):not(.top-2):not(.top-3) {
    background: var(--zib-bg-tertiary);
    color: var(--zib-text-secondary);
}

.zib-rank-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.zib-rank-info {
    flex: 1;
}

.zib-rank-title {
    font-weight: 600;
    color: var(--zib-text-primary);
    font-size: 14px;
}

.zib-rank-meta {
    font-size: 12px;
    color: var(--zib-text-muted);
}

/* 卡片式排行 */
.zib-ranking-module.card-style .zib-ranking-item {
    background: var(--zib-bg-primary);
    box-shadow: var(--zib-card-shadow);
}

/* ==================== 版权声明样式 ==================== */
.zib-copyright-box {
    margin: 30px 0;
}

/* 现代简约样式 */
.zib-copyright-box.modern-style {
    background: var(--zib-bg-secondary);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid var(--zib-accent-color);
}

.zib-copyright-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--zib-text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zib-copyright-content {
    color: var(--zib-text-secondary);
    line-height: 1.8;
}

.zib-copyright-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zib-copyright-content li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

.zib-copyright-content li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--zib-accent-color);
}

.zib-copyright-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--zib-border-color);
    flex-wrap: wrap;
}

.zib-copyright-meta-item {
    font-size: 13px;
    color: var(--zib-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.zib-copyright-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.zib-copyright-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: var(--zib-accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.zib-copyright-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 经典样式 */
.zib-copyright-box.classic-style {
    background: #fff9e6;
    border: 1px solid #ffe066;
    border-radius: 8px;
    padding: 20px;
}

body.night-mode .zib-copyright-box.classic-style {
    background: #2a2518;
    border-color: #665725;
}

/* 渐变边框样式 */
.zib-copyright-box.gradient-style {
    padding: 3px;
    border-radius: 16px;
    background: var(--zib-accent-gradient);
}

.zib-copyright-inner {
    background: var(--zib-bg-secondary);
    border-radius: 14px;
    padding: 25px;
}

/* 玻璃效果样式 */
.zib-copyright-box.glass-style {
    background: rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 25px;
}

/* 公告样式 */
.zib-copyright-box.notice-style {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 12px;
    padding: 25px;
    border: none;
}

.zib-copyright-box.notice-style .zib-copyright-title {
    color: #8b4513;
}

.zib-copyright-box.notice-style .zib-copyright-content {
    color: #5a3a1a;
}

body.night-mode .zib-copyright-box.notice-style {
    background: linear-gradient(135deg, #4a3728 0%, #3d2a1a 100%);
}

/* 警示框样式 */
.zib-copyright-box.alert-style {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
}

.zib-copyright-box.alert-style .zib-copyright-title {
    color: #856404;
}

body.night-mode .zib-copyright-box.alert-style {
    background: #3a2f14;
    border-color: #ffc107;
}

/* 卡片样式 */
.zib-copyright-box.card-style {
    background: var(--zib-bg-primary);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--zib-card-shadow);
}

/* 极简样式 */
.zib-copyright-box.minimal-style {
    padding: 15px 0;
    border-top: 1px solid var(--zib-border-color);
    border-bottom: 1px solid var(--zib-border-color);
}

.zib-copyright-box.minimal-style .zib-copyright-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== 轮播图美化 ==================== */
.zib-carousel-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.zib-carousel-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1) 0%, transparent 50%, rgba(118, 75, 162, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.zib-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.zib-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.zib-carousel-dot.active {
    width: 30px;
    border-radius: 5px;
    background: white;
}

.zib-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.zib-carousel-arrow:hover {
    background: rgba(102, 126, 234, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.zib-carousel-arrow.prev { left: 20px; }
.zib-carousel-arrow.next { right: 20px; }

/* ==================== 响应式适配 ==================== */
@media (max-width: 768px) {
    .zib-stats-bar {
        padding: 20px;
    }
    
    .zib-stat-number {
        font-size: 28px;
    }
    
    .zib-quick-links {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .zib-quick-link {
        padding: 15px 10px;
    }
    
    .zib-quick-link-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .zib-ranking-podium {
        gap: 10px;
    }
    
    .zib-podium-step {
        width: 70px;
    }
    
    .zib-copyright-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==================== SG美化插件新增功能 ==================== */

/* 网站变灰 */
.sg-gray-mode,
body.sg-gray-mode {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

/* Logo扫光 */
.sg-logo-flash .navbar-brand {
    position: relative;
    overflow: hidden;
}

.sg-logo-flash .navbar-brand:before {
    content: "";
    position: absolute;
    left: -665px;
    top: -460px;
    width: 200px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.5);
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-animation: sg-search-lights 6s ease-in 0s infinite;
    -o-animation: sg-search-lights 6s ease-in 0s infinite;
    animation: sg-search-lights 6s ease-in 0s infinite;
}

@-moz-keyframes sg-search-lights {
    50% { left: -100px; top: 0; }
    65% { left: 120px; top: 100px; }
}

@keyframes sg-search-lights {
    40% { left: -100px; top: 0; }
    60% { left: 120px; top: 100px; }
    80% { left: -100px; top: 0px; }
}

/* 灵动岛提示 */
.sg-dynamic-island {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transform-origin: center;
    width: auto;
    max-width: 80%;
    height: 40px;
    background-color: #000;
    border-radius: 25px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    z-index: 99999;
    padding-left: 35px;
    padding-right: 20px;
    opacity: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sg-dynamic-island.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.sg-dynamic-island.inactive {
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.sg-island-content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.2s;
    font-weight: bold;
    flex-grow: 1;
    text-align: right;
    white-space: nowrap;
}

.sg-dynamic-island.active .sg-island-content {
    opacity: 1;
}

.sg-island-icon-img {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
}

.sg-island-bars {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.sg-island-bars p {
    margin: 0 0 0 10px;
    font-size: 14px;
    color: #fff;
}

.sg-bar {
    width: 3px;
    height: 15px;
    background-color: #22c55e;
    border-radius: 3px;
    animation: sg-bounce 1s infinite ease-in-out alternate;
}

.sg-bar:nth-child(1) { animation-delay: 0s; }
.sg-bar:nth-child(2) { animation-delay: 0.2s; }
.sg-bar:nth-child(3) { animation-delay: 0.4s; }
.sg-bar:nth-child(4) { animation-delay: 0.6s; }
.sg-bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes sg-bounce {
    0% { transform: scaleY(0.3); opacity: 0.5; }
    100% { transform: scaleY(1); opacity: 1; }
}

/* 导航栏加粗 */
.sg-nav-bold ul.nav {
    font-weight: 700;
}

/* 彩色滚动条 */
.sg-colored-scrollbar::-webkit-scrollbar {
    width: 10px;
    height: 1px;
}

.sg-colored-scrollbar::-webkit-scrollbar-thumb {
    background-color: #12b7f5;
    background-image: -webkit-linear-gradient(45deg, rgba(255, 93, 143, 1) 25%, transparent 25%, transparent 50%, rgba(255, 93, 143, 1) 50%, rgba(255, 93, 143, 1) 75%, transparent 75%, transparent);
}

.sg-colored-scrollbar::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: #f6f6f6;
}

/* 头像呼吸光环 */
.sg-avatar-effect .avatar {
    border-radius: 50%;
    animation: sg-light 4s ease-in-out infinite;
    transition: 0.5s;
}

.sg-avatar-effect .avatar:hover {
    transform: scale(1.15) rotate(720deg);
}

@keyframes sg-light {
    0% { box-shadow: 0 0 4px #f00; }
    25% { box-shadow: 0 0 16px #0f0; }
    50% { box-shadow: 0 0 4px #00f; }
    75% { box-shadow: 0 0 16px #0f0; }
    100% { box-shadow: 0 0 4px #f00; }
}

/* 顶部彩色进度条 */
.sg-top-progress {
    position: fixed;
    left: 0;
    top: 0;
    height: 3px;
    z-index: 99999;
    background-image: linear-gradient(to right, #339933, #ff6666);
    border-radius: 5px;
}

/* 导航波浪下划线 */
.sg-menu-wave .navbar-top li.current-menu-item a,
.sg-menu-wave .navbar-top li:hover a {
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    text-decoration: underline wavy;
    text-decoration-thickness: from-font;
    text-underline-offset: 3px;
}

/* 列表Mac图标 */
.sg-mac-dots-list .posts-item.card:last-child {
    margin-bottom: 8px !important;
}

.sg-mac-dots-list .posts-item.card {
    padding: 35px 10px 10px 10px !important;
    position: relative !important;
}

.sg-mac-dots-list .posts-item.card::before {
    content: "";
    display: block;
    background: #fc625d;
    top: 13px;
    left: 15px;
    border-radius: 50%;
    width: 9px;
    height: 9px;
    box-shadow: 16px 0 #fdbc40, 32px 0 #35cd4b;
    margin: 0px 2px -7px;
    z-index: 1;
    position: absolute;
}

/* 列表悬浮发光 */
.sg-list-hover-glow .posts-item {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
}

.sg-list-hover-glow .posts-item:hover {
    transform: translateY(-5px);
    border-color: #3498db;
    box-shadow: 0 0 15px 3px rgba(52, 152, 219, 0.7);
    animation: sg-border-glow 1.5s infinite alternate;
}

@keyframes sg-border-glow {
    from { box-shadow: 0 0 5px rgba(52, 152, 219, 0.5); }
    to { box-shadow: 0 0 20px rgba(52, 152, 219, 1); }
}

/* 列表悬停上浮 */
@media screen and (min-width: 980px) {
    .sg-post-list-hover .tab-content .posts-item:not(article) {
        transition: all 0.3s;
    }
    
    .sg-post-list-hover .tab-content .posts-item:not(article):hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 10px rgba(255, 112, 173, 0.35);
    }
}

/* H标题美化 */
.sg-h-tags-style .article-content > .wp-posts-content > h1,
.sg-h-tags-style .article-content .wp-posts-content > h1,
.sg-h-tags-style .article-content > .wp-posts-content > h2,
.sg-h-tags-style .article-content .wp-posts-content > h2,
.sg-h-tags-style .article-content > .wp-posts-content > h3,
.sg-h-tags-style .article-content .wp-posts-content > h3 {
    z-index: 1;
    position: relative;
}

.sg-h-tags-style .article-content > .wp-posts-content > h1:hover::before,
.sg-h-tags-style .article-content .wp-posts-content > h1:hover::before,
.sg-h-tags-style .article-content > .wp-posts-content > h1:hover::after,
.sg-h-tags-style .article-content .wp-posts-content > h1:hover::after,
.sg-h-tags-style .article-content > .wp-posts-content > h2:hover::before,
.sg-h-tags-style .article-content .wp-posts-content > h2:hover::before,
.sg-h-tags-style .article-content > .wp-posts-content > h2:hover::after,
.sg-h-tags-style .article-content .wp-posts-content > h2:hover::after,
.sg-h-tags-style .article-content > .wp-posts-content > h3:hover::before,
.sg-h-tags-style .article-content .wp-posts-content > h3:hover::before,
.sg-h-tags-style .article-content > .wp-posts-content > h3:hover::after,
.sg-h-tags-style .article-content .wp-posts-content > h3:hover::after {
    transform: scale(1.2) !important;
    transform-origin: center !important;
    transition: 0.4s;
}

.sg-h-tags-style .article-content .wp-posts-content h1::before,
.sg-h-tags-style .article-content .wp-posts-content h1::before,
.sg-h-tags-style .article-content .wp-posts-content h1::after,
.sg-h-tags-style .article-content .wp-posts-content h1::after,
.sg-h-tags-style .article-content .wp-posts-content h2::before,
.sg-h-tags-style .article-content .wp-posts-content h2::before,
.sg-h-tags-style .article-content .wp-posts-content h2::after,
.sg-h-tags-style .article-content .wp-posts-content h2::after,
.sg-h-tags-style .article-content .wp-posts-content h3::before,
.sg-h-tags-style .article-content .wp-posts-content h3::before,
.sg-h-tags-style .article-content .wp-posts-content h3::after,
.sg-h-tags-style .article-content .wp-posts-content h3::after {
    content: "";
    position: absolute;
    box-shadow: none !important;
    opacity: 0.6 !important;
    border-radius: 50% !important;
    top: -5px !important;
    left: -10px !important;
    z-index: -1;
}

.sg-h-tags-style .article-content .wp-posts-content h1::before,
.sg-h-tags-style .article-content .wp-posts-content h1::after {
    background: linear-gradient(#409eff, transparent) !important;
}

.sg-h-tags-style .article-content .wp-posts-content h2::before,
.sg-h-tags-style .article-content .wp-posts-content h2::after {
    background: linear-gradient(#00ff62, transparent) !important;
}

.sg-h-tags-style .article-content .wp-posts-content h3::before,
.sg-h-tags-style .article-content .wp-posts-content h3::after {
    background: linear-gradient(#ff9800, transparent) !important;
}

.sg-h-tags-style .article-content .wp-posts-content h1::before {
    height: 35px !important;
    width: 35px !important;
}

.sg-h-tags-style .article-content .wp-posts-content h2::before {
    height: 30px !important;
    width: 30px !important;
}

.sg-h-tags-style .article-content .wp-posts-content h3::before {
    height: 25px !important;
    width: 25px !important;
}

.sg-h-tags-style .article-content .wp-posts-content h2::after,
.sg-h-tags-style .article-content .wp-posts-content h1::after,
.sg-h-tags-style .article-content .wp-posts-content h3::after {
    content: "";
    opacity: 0.6;
    position: absolute;
    transition: 0.4s;
    border-radius: 50%;
}

.sg-h-tags-style .article-content .wp-posts-content h2::after {
    top: -15px;
    left: 15px;
    width: 10px;
    height: 10px;
}

.sg-h-tags-style .article-content .wp-posts-content h1::after {
    top: -13px;
    left: 25px;
    width: 13px;
    height: 13px;
}

.sg-h-tags-style .article-content .wp-posts-content h3::after {
    top: -17px;
    left: 12px;
    width: 8px;
    height: 8px;
}

/* 代码框Mac图标 */
.sg-mac-dots-code .enlighter::before {
    content: "";
    display: block;
    background: #fc625d;
    top: 9px;
    left: 15px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
    margin: 0px 2px -7px;
    z-index: 1;
    position: absolute;
}

.sg-mac-dots-code .enlighter-overflow-scroll.enlighter-v-standard .enlighter {
    padding: 35px 0 12px 0;
}

/* 图片发光边框 */
.sg-img-glow .wp-posts-content img:hover {
    box-shadow: 0px 0px 8px #63b8ff;
    transition: all 0.3s ease;
}

/* 文章彩色标签 */
.sg-colorful-tags .article-tags {
    margin-bottom: 10px;
}

.sg-colorful-tags .article-tags a {
    padding: 4px 10px;
    background-color: #19b5fe;
    color: white;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    margin: 0 5px 5px 0;
    border-radius: 2px;
    display: inline-block;
}

.sg-colorful-tags .article-tags a:nth-child(5n) {
    background-color: #4a4a4a;
    color: #fff;
}

.sg-colorful-tags .article-tags a:nth-child(5n+1) {
    background-color: #ff5e5c;
    color: #fff;
}

.sg-colorful-tags .article-tags a:nth-child(5n+2) {
    background-color: #ffbb50;
    color: #fff;
}

.sg-colorful-tags .article-tags a:nth-child(5n+3) {
    background-color: #1ac756;
    color: #fff;
}

.sg-colorful-tags .article-tags a:nth-child(5n+4) {
    background-color: #19b5fe;
    color: #fff;
}

.sg-colorful-tags .article-tags a:hover {
    background-color: #1b1b1b;
    color: #fff;
}

/* 点击更多按钮美化 */
.sg-pagination-more .theme-pagination .ajax-next a,
.sg-pagination-more .theme-pagination .order-ajax-next a {
    border-radius: 30px;
    padding: 15px 0;
    color: var(--muted-color);
    background-color: var(--main-bg-color);
    color: #ff0033;
    display: block;
    opacity: 1;
    font-weight: bold;
}

/* 数字分页按钮美化 */
.sg-pagination-nav .pagenav .current,
.sg-pagination-nav .pagenav .page-numbers,
.sg-pagination-nav .pagenav a {
    border: 0;
    padding: 8px 14px;
    background: linear-gradient(148deg, hsla(0, 0%, 100%, 0), var(--main-bg-color));
    -webkit-box-shadow: 0 0 8px 0 rgba(95, 95, 95, 0.15);
    box-shadow: 0 0 8px 0 rgba(95, 95, 95, 0.15);
    border-radius: 6px;
}

/* 修复缩略图比例 */
.sg-fix-thumb .graphic img,
.sg-fix-thumb .item-thumbnail img {
    object-fit: scale-down;
}

/* 友链头像圆形 */
.sg-link-avatar-round .link-only-img img,
.sg-link-avatar-round .link-img img {
    border-radius: 50% !important;
}

/* 右下角弹窗美化 */
.sg-misc-css .notyf.success {
    background: linear-gradient(90deg, rgba(249, 15, 15, 0.7), rgba(61, 189, 249, 0.8));
    border-radius: 18px 0 0 18px;
}

.sg-misc-css .enlighter-default .enlighter {
    max-height: 400px;
    overflow-y: auto !important;
}

.sg-misc-css .posts-item .item-heading a {
    font-weight: bold;
    color: unset;
}

@media (max-width: 640px) {
    .sg-misc-css .meta-right .meta-like {
        display: unset !important;
    }
}

/* 底部波浪 */
.sg-footer-waves {
    --sg-wave-color-1: #425aef;
    --sg-wave-color-2: #4287ef;
    --sg-wave-color-3: #42a5ef;
    --sg-wave-color-4: #42c3ef;
}

.sg-footer-waves .waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    min-height: 50px;
    max-height: 80px;
}

.sg-footer-waves .parallax > use {
    animation: sg-move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.sg-footer-waves .parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.sg-footer-waves .parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.sg-footer-waves .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.sg-footer-waves .parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes sg-move-forever {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

@media (max-width: 768px) {
    .sg-footer-waves .waves {
        height: 40px;
        min-height: 40px;
    }
}

/* 现代右键菜单 */
#sg-modern-rcm a {
    text-decoration: none;
    color: inherit;
}

#sg-modern-rcm {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    font-size: 14px;
    width: 160px;
    position: absolute;
    display: none;
    z-index: 10000;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 0px rgba(44, 123, 229, 0);
}

#sg-modern-rcm:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(44, 123, 229, 0.5);
}

#sg-modern-rcm ul {
    list-style: none;
    margin: 0;
    padding: 5px 0;
}

#sg-modern-rcm ul li {
    margin: 0;
    padding: 0;
    transition: all 0.2s ease;
}

#sg-modern-rcm ul li a {
    color: #555;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

#sg-modern-rcm ul li a i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    color: #666;
}

#sg-modern-rcm ul li:hover {
    background: rgba(100, 149, 237, 0.2);
}

#sg-modern-rcm ul li a:hover {
    color: #2c7be5;
}

#sg-modern-rcm ul li a:hover i {
    color: #2c7be5;
}

#sg-modern-rcm ul li.divider {
    height: 1px;
    background: transparent;
    border-top: 1px dashed #2c7be5;
    margin: 8px 15px;
    opacity: 0.6;
}

#sg-modern-rcm ul li.divider:hover {
    opacity: 1;
}

#sg-modern-rcm a.disabled {
    color: rgba(204, 204, 204, 0.7) !important;
    cursor: not-allowed;
}

#sg-modern-rcm a.disabled:hover {
    background-color: transparent !important;
}

#sg-modern-rcm .rcm-quick-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 10px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
}

#sg-modern-rcm .rcm-quick-nav a {
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.25s ease;
    color: rgba(85, 85, 85, 0.9);
    font-size: 15px;
    background: transparent;
}

#sg-modern-rcm .rcm-quick-nav a:hover {
    background: rgba(100, 149, 237, 0.15);
    color: #2c7be5;
}

#sg-modern-rcm .rcm-quick-nav a:active {
    background: rgba(100, 149, 237, 0.25);
    transform: scale(0.98);
}

#sg-modern-rcm .rcm-quick-nav a i {
    transition: transform 0.2s ease;
}

#sg-modern-rcm .rcm-quick-nav a:hover i {
    transform: scale(1.1);
}

#sg-modern-rcm .rcm-quick-nav a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

#sg-modern-rcm .rcm-quick-nav a:hover::after {
    border-color: rgba(100, 149, 237, 0.3);
}
