@charset "UTF-8";
/**
 * SE 组件样式（与主题自带 shane.css 同目录并列存放）
 * 位置：Shane/assets/shane/css/se-widgets.css
 * 说明：官方 2.4 把这些规则写在 shane/css/shane.css 内；此处独立成文件，
 *      目录位置一致、升级时互不覆盖，同时沿用 --ri-* 设计变量适配深浅色。
 */

:root {
    --se-primary: var(--ri-primary, #3b6ff5);
    --se-primary-rgb: var(--ri-primary-rgb, 59, 111, 245);
    --se-line: rgba(0, 0, 0, 0.06);
    --se-soft: rgba(0, 0, 0, 0.035);
    --se-muted: var(--ri-secondary-color, rgba(74, 77, 89, 0.75));
    --se-heading: var(--ri-heading-color, #1f2330);
}

/* ================================================================== */
/* 一、排行榜  .se-ranking-*                                           */
/* 规范与官方 shane.css 一致                                          */
/* ================================================================== */
.se-ranking-widget {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.se-ranking-tabs {
    display: flex;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 10px;
    position: relative;
}

.se-ranking-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--ri-heading-color, inherit);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.se-ranking-tab.se-active {
    color: #007cba;
    font-weight: 600;
}

.se-ranking-tab.se-active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007cba;
    z-index: 2;
}

.se-ranking-tab.se-active:before {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #007cba;
    z-index: 3;
}

.se-ranking-tab:hover {
    color: #007cba;
}

.se-ranking-content {
    position: relative;
    overflow: visible;
    min-height: auto;
}

.se-ranking-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.se-ranking-list.se-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.se-ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.se-ranking-item:last-child {
    border-bottom: none;
}

.se-ranking-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: #f0f0f0;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    color: #666;
    border-radius: 4px;
}

.se-ranking-number.se-top-1 { background: #ff7b7b; color: white; }
.se-ranking-number.se-top-2 { background: #ffb86c; color: white; }
.se-ranking-number.se-top-3 { background: #ff9cce; color: white; }
.se-ranking-number.se-top-4 { background: #6cb2ff; color: white; }
.se-ranking-number.se-top-5 { background: #7bed9f; color: white; }
.se-ranking-number.se-top-6 { background: #f1f2f6; color: #666; }

.se-ranking-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.se-ranking-title {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.se-ranking-title a {
    text-decoration: none;
}

.se-ranking-meta {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

.se-ranking-count {
    font-weight: 600;
    color: #007cba;
}

.se-ranking-empty {
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
    color: #999;
}

@media (max-width: 768px) {
    .se-ranking-tab { padding: 10px 0; font-size: 13px; }
    .se-ranking-item { padding: 10px 0; }
    .se-ranking-info { gap: 8px; flex-wrap: nowrap; }
    .se-ranking-title { font-size: .9rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .se-ranking-meta { font-size: 11px; flex-shrink: 0; white-space: nowrap; }
}

@media (max-width: 480px) {
    .se-ranking-info { gap: 6px; flex-wrap: nowrap; }
    .se-ranking-title { font-size: .85rem; flex: 1; min-width: 0; max-width: calc(100% - 60px); }
    .se-ranking-meta { font-size: 10px; flex-shrink: 0; min-width: 50px; }
}

/* ================================================================== */
/* 二、滚动标签云  .tag-cloud-*                                        */
/* 规范与官方 shane.css 一致：容器固定 350px，8 行各 40px，随机色/随机字号由 JS 注入 */
/* ================================================================== */
.tag-cloud-container {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    background: transparent;
    perspective: 1000px;
}

.tag-cloud-rows {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.tag-cloud-row {
    position: relative;
    width: 100%;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.tag-cloud-track {
    display: flex;
    position: absolute;
    white-space: nowrap;
    will-change: transform;
}

.tag-cloud-tag {
    display: inline-block;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    margin: 0 15px;
    flex-shrink: 0;
}

.tag-cloud-tag a {
    text-decoration: none;
    color: inherit;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    box-shadow: none;
}

.tag-cloud-tag a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
}

.tag-cloud-fallback {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    justify-content: center;
}

.tag-cloud-fallback a {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag-cloud-fallback a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ================================================================== */
/* 三、最新评论  .se-comment-*                                         */
/* ================================================================== */
.se-comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.se-comment-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--se-line);
}

.se-comment-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.se-avatar {
    flex: 0 0 36px;
    line-height: 0;
}

.se-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.se-comment-item:hover .se-avatar-img {
    transform: scale(1.06);
}

.se-comment-body {
    min-width: 0;
    flex: 1 1 auto;
}

.se-comment-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.se-comment-name {
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    color: var(--se-heading);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.se-comment-time {
    flex: 0 0 auto;
    font-size: 11px;
    color: var(--se-muted);
}

.se-comment-text {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--se-muted);
    text-decoration: none;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.se-comment-text:hover {
    color: var(--se-primary);
}

.se-empty {
    margin: 0;
    padding: 14px 0;
    text-align: center;
    font-size: 13px;
    color: var(--se-muted);
}

.se-empty i {
    margin-right: 4px;
}

/* ================================================================== */
/* 四、正文 H4 / H5 / H6                                               */
/* 规范与官方 shane.css 一致：蓝/绿/黄三色提示条 + 左侧图标              */
/* ================================================================== */
.post-content h4 {
    line-height: 28px;
    color: #fff;
    background: #5282f7 url(/wp-content/themes/Shane/assets/images/home/tips.png) -1px -1px no-repeat;
    border: 1px solid #5282f7;
    overflow: hidden;
    margin: 20px 0;
    padding: 15px 15px 15px 35px;
    border-radius: 4px;
    box-shadow: 0 3px 10px -1px #2c63ff !important;
}

.post-content h5 {
    line-height: 28px;
    color: #fff;
    background: #00d084 url(/wp-content/themes/Shane/assets/images/home/notice.png) -1px -1px no-repeat;
    border: 1px solid #00d084;
    overflow: hidden;
    margin: 20px 0;
    padding: 15px 15px 15px 35px;
    border-radius: 4px;
    box-shadow: 6px 0 12px -5px rgb(12, 85, 141), -6px 0 12px -5px rgba(10, 58, 93, 0);
}

.post-content h6 {
    line-height: 28px;
    color: #fff;
    background: #fdc640 url(/wp-content/themes/Shane/assets/images/home/warn.png) -1px -1px no-repeat;
    border: 1px solid #fdc640;
    overflow: hidden;
    margin: 20px 0;
    padding: 15px 15px 15px 35px;
    border-radius: 4px;
    box-shadow: 6px 0 12px -5px rgb(190, 196, 252), -6px 0 12px -5px rgb(189, 196, 252);
}

/* ================================================================== */
/* 五、深色模式 / 小屏                                                 */
/* ================================================================== */
[data-bs-theme="dark"] .se-ranking-number {
    background: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .se-ranking-item,
[data-bs-theme="dark"] .se-comment-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 575.98px) {

    .se-ranking-tab {
        padding: 9px 0;
        font-size: 13px;
    }

    .se-ranking-title {
        font-size: 13px;
    }
}
