﻿@charset "UTF-8";

/* 文章标签样式 */
.article-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background-color: #fefce8;
    color: #a16207;
    border-radius: 0.375rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid #fde68a;
    white-space: nowrap;
    line-height: 1.4;
    transition: background-color 0.2s, transform 0.15s;
}

.article-tag:hover {
    background-color: #fef08a;
    transform: translateY(-1px);
}

/* 标签超出时显示的 +N 徽章 */
.tag-overflow-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: #f3f4f6;
    color: #6b7280;
    border-radius: 0.375rem;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
    line-height: 1.4;
    cursor: default;
}

/* 标签容器，超出部分隐藏，由 JS 负责计算并追加 +N */
.tags-container {
    max-width: 55%;
    min-width: 0;
    position: relative;
}

/* 小屏下标签区占比再缩一点，防止把左侧信息挤掉 */
@media (max-width: 768px) {
    .tags-container {
        max-width: 40%;
    }
}