footer {
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: auto;
    min-height: 60px;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10; /* 确保在其他元素之上 */
    box-shadow: 0 -2px 10px var(--shadow-color);
    transition: background-color var(--transition-normal);
}

footer h1 {
    color: white;
    margin: 0;
    font-size: var(--font-size-large);
    font-weight: 500;
}

/* 站点统计样式 */
.site-stats {
    margin-top: 8px;
    font-size: var(--font-size-small);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    transition: opacity var(--transition-normal);
}

.site-stats span {
    margin: 0 5px;
    white-space: nowrap;
    display: inline-block;
}

.site-stats i {
    margin-right: 4px;
    opacity: 0.9;
}

/* 统计数字样式 */
#busuanzi_value_site_uv,
#busuanzi_value_site_pv,
#busuanzi_value_page_pv {
    font-weight: bold;
    color: #fff;
    margin: 0 2px;
    position: relative;
}

/* 加载动画 */
@keyframes busuanzi-pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* 加载中的样式 */
.busuanzi-loading {
    display: inline-block;
    width: 20px;
    height: 12px;
    animation: busuanzi-pulse 1.5s infinite;
    text-align: center;
}

/* 添加响应式设计 */
@media (max-width: 768px) {
    footer {
        height: auto;
        min-height: 40px;
        padding: 10px 0;
    }

    footer h1 {
        font-size: var(--font-size-base);
    }

    .site-stats {
        font-size: 0.75rem;
    }
}