/* 板块角标样式 */
posts.forum-posts {
    position: relative;
}

.plate-badge {
    position: absolute;
    top: 0;
    left: 0;

    color: white !important;
    padding: 3px 8px;
    font-size: 11px;
    line-height: 1.3;
    border-radius: 10px 0 10px 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 10;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: 500;
}

.plate-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.plate-badge:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    text-decoration: none;
    color: white !important;
}

.plate-badge:hover::before {
    left: 100%;
}

.plate-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 3px;
    transition: transform 0.3s ease;
}

.plate-badge:hover .plate-icon {
    transform: scale(1.1);
}

.plate-icon i {
    font-size: 12px;
    transition: color 0.3s ease;
}

.plate-name {
    display: inline-block;
    vertical-align: middle;
    transition: color 0.3s ease;
}

.plate-badge:hover .plate-name,
.plate-badge:hover .plate-icon i {
    color: #f0f0f0;
}

posts.forum-posts.mini {
    padding-top: 22px;
}

/* 帖子标签样式 */
.forum-title {
    position: relative;
    padding-right: 120px;
}
.tag-wrapper {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.3s ease;
}

.tag-container {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    transition: transform 0.3s ease;
}
a.liuke-biaoqian.tag-link,
a.tag-link {
    font-size: 11px;
    padding: 4px 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    font-weight: 500;
    line-height: 1.2;
    border: none;
    outline: none !important;
    opacity: 1;
    visibility: visible;
    margin: 0;
    border-radius: 16px; /* 胶囊形状的圆角 */
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    /* 确保渐变色能正确显示 */
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    /* 无阴影，纯净外观 */
    box-shadow: none;
    transform: translateY(0);
    /* 更好的文字渲染 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 标签悬停效果 - 轻微优雅的交互 */
@media (hover: hover) {
    a.liuke-biaoqian.tag-link:hover,
    a.tag-link:hover {
        opacity: 0.85;
        text-decoration: none;
        transform: scale(1.05);
        /* 无阴影，纯净交互 */
    }

    a.liuke-biaoqian.tag-link:active,
    a.tag-link:active {
        opacity: 0.7;
        transform: scale(0.95);
        transition-duration: 0.1s;
    }
}

/* 标签图标 */
a.liuke-biaoqian.tag-link i,
a.tag-link i {
    margin-right: 2px;
    font-size: 11px;
    opacity: 0.7;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .forum-title {
        padding-right: 100px;
    }

    .tag-container {
        gap: 3px;
    }

    a.liuke-biaoqian.tag-link,
    a.tag-link {
        font-size: 10px;
        padding: 3px 10px;
        border-radius: 14px; /* 移动端保持胶囊形状 */
    }

    .plate-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* 确保标签不会被其他元素遮挡 */
.tag-wrapper {
    z-index: 5;
}

.plate-badge {
    z-index: 10;
}
