/* ============================================================
   Vercount 计数器样式 - 跟随主题变换的卡片
   ============================================================ */

/* ----- 计数器卡片容器（长条矩形） ----- */
.vercount-card {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    padding: 0.6rem 1.5rem;
    margin-bottom: 0.6rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
    min-height: 44px;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- 单个计数项（去掉"1"的占位） ----- */
.vercount-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ----- 计数数字（高亮，无"1"占位） ----- */
.vercount-item .num {
    font-weight: 700;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    min-width: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

/* ----- 分隔符（圆点，更优雅） ----- */
.vercount-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.4rem;
    user-select: none;
}

/* ============================================================
   各主题配色（卡片背景跟随主题，文字始终保持清晰）
   ============================================================ */

/* 默认：蓝色主题 */
.theme-blue .vercount-card {
    background: rgba(0, 102, 255, 0.25);
    border-color: rgba(0, 102, 255, 0.3);
}

/* 暗夜星辰 */
.theme-dark .vercount-card {
    background: rgba(45, 27, 78, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

/* 幻梦极光 */
.theme-purple .vercount-card {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.3);
}

/* 薄荷之夏 */
.theme-mint .vercount-card {
    background: rgba(5, 150, 105, 0.25);
    border-color: rgba(5, 150, 105, 0.3);
}

/* 烈焰黄昏 */
.theme-sunset .vercount-card {
    background: rgba(255, 107, 53, 0.25);
    border-color: rgba(255, 107, 53, 0.3);
}

/* 深海秘境 */
.theme-ocean .vercount-card {
    background: rgba(0, 85, 170, 0.3);
    border-color: rgba(0, 85, 170, 0.35);
}

/* 翠绿森林 */
.theme-forest .vercount-card {
    background: rgba(46, 125, 50, 0.25);
    border-color: rgba(46, 125, 50, 0.3);
}

/* 鎏金圣域 */
.theme-gold .vercount-card {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.25);
}

/* ============================================================
   加载状态（数字加载中显示"..."）
   ============================================================ */
.vercount-item .num.loading {
    animation: pulse-loading 1.2s ease-in-out infinite;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes pulse-loading {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ============================================================
   响应式适配
   ============================================================ */

/* 平板及以下 */
@media (max-width: 768px) {
    .vercount-card {
        gap: 0.6rem 1rem;
        padding: 0.5rem 1rem;
        border-radius: 10px;
        max-width: 95%;
    }
    .vercount-item {
        font-size: 0.72rem;
    }
    .vercount-item .num {
        font-size: 0.8rem;
        min-width: 1rem;
    }
}

/* 手机端 */
@media (max-width: 480px) {
    .vercount-card {
        gap: 0.3rem 0.6rem;
        padding: 0.4rem 0.6rem;
        border-radius: 8px;
        max-width: 98%;
        flex-wrap: wrap;
    }
    .vercount-item {
        font-size: 0.62rem;
        gap: 0.15rem;
    }
    .vercount-item .num {
        font-size: 0.7rem;
        min-width: 0.8rem;
    }
    .vercount-sep {
        display: none; /* 手机端隐藏分隔符，自然换行 */
    }
}

/* 超小屏 */
@media (max-width: 360px) {
    .vercount-item {
        font-size: 0.55rem;
    }
    .vercount-item .num {
        font-size: 0.62rem;
        min-width: 0.6rem;
    }
}

/* ============================================================
   深色/浅色模式兼容（如果页面有明暗切换）
   ============================================================ */

/* 浅色模式下的适配 */
.light-mode .vercount-item {
    color: rgba(0, 0, 0, 0.75);
}
.light-mode .vercount-item .num {
    color: #1a1a2e;
}
.light-mode .vercount-sep {
    color: rgba(0, 0, 0, 0.15);
}