.main-content {
    flex-direction: column;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.mb-6 {
    margin-bottom: 24px;
}

.rounded-lg {
    border-radius: 8px;
}

.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gap-3 {
    gap: 12px;
}

.time-btn {
    padding: 6px 20px;
    border-radius: 999px;
    border: 1px solid #93c5fd;
    color: #3b82f6;
    background-color: transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-btn:hover {
    background-color: #eff6ff;
}

.time-btn.active {
    background: linear-gradient(
        268.5deg,
        rgba(38, 111, 255, 1) 1.98%,
        rgba(70, 179, 240, 1) 98.71%
    );
    color: white;
    border-color: #3b82f6;
}

.time-btn:not(.active) {
    border-color: #d1d5db;
    color: #4b5563;
}

.time-btn:not(.active):hover {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

.bg-white {
    background-color: white;
}

.p-4 {
    padding: 16px;
}

.text-xs {
    font-size: 12px;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-green-500 {
    color: #10b981;
}

.mb-3 {
    margin-bottom: 12px;
}

.gap-4 {
    gap: 16px;
}

.gap-6 {
    gap: 24px;
}

.border {
    border: 1px solid #d1d5db;
}

.px-3 {
    padding-left: 12px;
    padding-right: 12px;
}

.py-1 {
    padding-top: 4px;
    padding-bottom: 4px;
}

.w-4 {
    width: 16px;
}

.h-4 {
    height: 16px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.relative {
    position: relative;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 14px;
}

.font-medium {
    font-weight: 500;
}

.w-full {
    width: 100%;
}

.pb50 {
    padding-bottom: 50px;
}

.flex-row {
    flex-direction: row;
}

.align-center {
    align-items: center;
}

.d-none {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.statistics-bar-card{
    min-width: 0;
}

.bar-tab-wrap{
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.bar-tab-box{
    flex: none;
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
    background: #f2f2f2;
    border-radius: 100px;
    padding: 4px;
    gap: 0;
    z-index: 1;
}

.bar-tab {
    padding: 4px 16px;
    border: none;
    background: transparent;
    border-radius: 100px;
    font-size: 15px;
    color: #666;
    cursor: pointer !important;
    user-select: none;
    transition: all 0.25s ease;
    position: relative;
}

.bar-tab.active {
    background: #fff;
    color: #4080FF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chart-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #c0c4cc;
    font-size: 14px;
    pointer-events: none;
}

.chart-canvas-hidden {
    visibility: hidden;
}

/* 次数排名筛选：提示位于条形图顶部，与次数/流量切换同一行。 */
.statistics-trend-controls { flex-wrap: wrap; gap: 12px; }
.statistics-qrcode-filter { margin-left: 0; display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; color: #266FFF; font-size: 14px; }
.statistics-qrcode-filter-label { min-width: 0; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.statistics-qrcode-filter-clear { flex: none; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: #A6ADB8; cursor: pointer; }
.statistics-qrcode-filter-clear svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.statistics-qrcode-filter-clear:hover { background: #8B95A3; }
.statistics-qrcode-filter-clear:focus-visible { outline: 2px solid #266FFF; outline-offset: 2px; }
