/* 按钮基础样式 */
.filter-btn {
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb; /* 默认背景色 */
    color: #374151; /* 默认文字色 */
}

/* 非激活状态 */
.filter-inactive {
    background-color: #e5e7eb;
    color: #374151;
}

.filter-inactive:hover {
    background-color: #d1d5db;
}

/* 激活状态 */
.filter-active {
    background-color: rgba(0, 0, 255, 0.5);
    color: #000;
}

/* 使用:target伪类实现切换效果 */
#sw1:target,
#sw2:target,
#sw3:target {
    background-color: rgba(0, 0, 255, 0.5);
    color: #000;
}

/* 当某个按钮被点击时，重置其他按钮的样式 */
#sw1:target ~ #sw2,
#sw1:target ~ #sw3,
#sw2:target ~ #sw1,
#sw2:target ~ #sw3,
#sw3:target ~ #sw1,
#sw3:target ~ #sw2 {
    background-color: #e5e7eb;
    color: #374151;
}

/* 表格行悬停效果 */
.table-hover-effect {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

.table-hover-effect:hover {
    background-color: rgba(0, 0, 255, 0.05);
}

/* 链接下划线效果 */
.link-effect {
    position: relative;
}

.link-effect::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0.125rem;
    width: 0;
    background-color: blue;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.link-effect:hover::after {
    width: 100%;
}