/* 容器样式 */
.hot-tag-posts-wrapper {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 24px;
    margin-top: 20px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}
.hot-tag-posts-wrapper:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 标签导航按钮 */
.tag-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}
.tag-tab {
    padding: 8px 16px;
    background: #f5f5f5;
    border: none; /* 重置按钮默认边框 */
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease;
    font-size: 0.95em;
    white-space: nowrap;
    font-family: inherit;
}
.tag-tab:hover,
.tag-tab.active,
.tag-tab:focus-visible {
    background: #1e73be;
    color: #fff;
    box-shadow: 0 2px 6px rgba(30,115,190,0.3);
    outline: none;
}

/* 面板与文章列表 */
.tag-panels {
    position: relative;
    min-height: 120px;
}
.tag-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tag-panel.active {
    display: block;
}
.tag-panel[hidden] {
    display: none; /* 严格对应 HTML hidden 属性 */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tag-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
}
.tag-post-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    line-height: 1.5;
}
.tag-post-list li a {
    color: #1e73be;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.15s;
}
.tag-post-list li a:hover {
    color: #0a3c6b;
    text-decoration: underline;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .tag-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }
    .tag-tab {
        padding: 6px 14px;
        font-size: 0.9em;
    }
    .tag-post-list {
        grid-template-columns: 1fr;
    }
    .hot-tag-posts-wrapper {
        padding: 16px;
    }
}
@media (max-width: 480px) {
    .tag-tab {
        padding: 5px 12px;
        font-size: 0.85em;
    }
}