/* 現代化訪客計數器樣式 - 右下角固定位置 */
.simple-visitor-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #166534;
    padding: 16px 24px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(22, 163, 74, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    font-family: 'Noto Sans TC', 'Arial', sans-serif;
    z-index: 9999;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(22, 163, 74, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.simple-visitor-counter:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(22, 163, 74, 0.25), 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: rgba(22, 163, 74, 0.3);
}

.visitor-count-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.count-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.count-item::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.simple-visitor-counter:hover .count-item::before {
    opacity: 1;
}

.count-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(22, 163, 74, 0.2), transparent);
    margin: 0 8px;
    position: relative;
}

.count-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.count-number {
    font-size: 24px;
    font-weight: 800;
    color: #16a34a;
    text-shadow: 0 2px 4px rgba(22, 163, 74, 0.1);
    line-height: 1;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: numberGlow 3s ease-in-out infinite;
}

.count-label {
    font-size: 11px;
    font-weight: 600;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    opacity: 0.8;
}

@keyframes numberGlow {
    0%, 100% { 
        filter: brightness(1);
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.1);
        transform: scale(1.05);
    }
}

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

/* 添加圖標裝飾 */
.count-item::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #22c55e;
    border-radius: 50%;
    opacity: 0.5;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .simple-visitor-counter {
        bottom: 15px;
        right: 15px;
        padding: 14px 20px;
        min-width: 180px;
        border-radius: 18px;
    }
    
    .count-number {
        font-size: 20px;
    }
    
    .count-label {
        font-size: 10px;
    }
    
    .count-divider {
        height: 35px;
        margin: 0 6px;
    }
    
    .visitor-count-display {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .simple-visitor-counter {
        bottom: 12px;
        right: 12px;
        padding: 12px 16px;
        min-width: 160px;
        border-radius: 16px;
    }
    
    .count-number {
        font-size: 18px;
    }
    
    .count-label {
        font-size: 9px;
        letter-spacing: 0.5px;
    }
    
    .count-divider {
        height: 30px;
        margin: 0 5px;
    }
    
    .visitor-count-display {
        gap: 12px;
    }
}

/* 深色模式支援 */
@media (prefers-color-scheme: dark) {
    .simple-visitor-counter {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        border-color: rgba(34, 197, 94, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(34, 197, 94, 0.1);
    }
    
    .simple-visitor-counter:hover {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(34, 197, 94, 0.2);
        border-color: rgba(34, 197, 94, 0.4);
    }
    
    .count-label {
        color: #a3a3a3;
    }
}

/* 添加脈衝效果 */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(22, 163, 74, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 8px 32px rgba(22, 163, 74, 0.25), 0 2px 8px rgba(0, 0, 0, 0.12);
    }
}

.simple-visitor-counter {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1), pulse 4s ease-in-out infinite 1s;
}
