/* ========================================
   声网 CountTo Widget 样式
======================================== */

.sw_count_to_wrapper {
    width: 100%;
    padding: 0;
}

/* 深色主题 (默认) */
.sw_count_to_wrapper.sw-color-scheme-dark {
    background-color: #000306;
}

/* 浅色主题 */
.sw_count_to_wrapper.sw-color-scheme-light {
    background-color: #ffffff;
}

/* 透明背景 */
.sw_count_to_wrapper.sw-transparent-bg {
    background: transparent !important;
}

/* 透明背景下的深色主题调整 */
.sw_count_to_wrapper.sw-transparent-bg.sw-color-scheme-dark .sw_count_to_item {
    background: rgba(0, 3, 6, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sw_count_to_wrapper.sw-transparent-bg.sw-color-scheme-dark .sw_count_to_item:hover {
    background: rgba(0, 3, 6, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
}

/* 透明背景下的浅色主题调整 */
.sw_count_to_wrapper.sw-transparent-bg.sw-color-scheme-light .sw_count_to_item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sw_count_to_wrapper.sw-transparent-bg.sw-color-scheme-light .sw_count_to_item:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(148, 163, 184, 0.35);
}

.sw_count_to_container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   大标题样式
======================================== */

.sw_count_to_main_title {
    font-size: 48px;
    line-height: 56px;
    font-weight: 600;
    margin: 0 0 48px 0;
    text-align: center;
}

/* 深色主题标题 */
.sw_count_to_wrapper.sw-color-scheme-dark .sw_count_to_main_title {
    color: #ffffff !important;
}

/* 浅色主题标题 */
.sw_count_to_wrapper.sw-color-scheme-light .sw_count_to_main_title {
    color: #1e293b !important;
}

/* ========================================
   副标题样式
======================================== */

.sw_count_to_sub_title {
    font-size: 36px;
    line-height: 44px;
    font-weight: 600;
    margin: 0 0 32px 0;
    text-align: center;
}

/* 深色主题副标题 */
.sw_count_to_wrapper.sw-color-scheme-dark .sw_count_to_sub_title {
    color: #ffffff !important;
}

/* 浅色主题副标题 */
.sw_count_to_wrapper.sw-color-scheme-light .sw_count_to_sub_title {
    color: #334155 !important;
}

/* ========================================
   计数器网格
======================================== */

.sw_count_to_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.sw_count_to_item {
    border-radius: 24px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 140px;
}

/* 深色主题计数器项目 */
.sw_count_to_wrapper.sw-color-scheme-dark .sw_count_to_item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.sw_count_to_wrapper.sw-color-scheme-dark .sw_count_to_item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 浅色主题计数器项目 */
.sw_count_to_wrapper.sw-color-scheme-light .sw_count_to_item {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

.sw_count_to_wrapper.sw-color-scheme-light .sw_count_to_item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(148, 163, 184, 0.3);
    transform: translateY(-2px);
}

/* ========================================
   标签样式
======================================== */

.sw_count_to_label {
    border-radius: 6px;
    width: 76px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 20.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 深色主题标签 */
.sw_count_to_wrapper.sw-color-scheme-dark .sw_count_to_label {
    border: 1px solid rgba(9, 157, 253, 0.6);
    background-color: #131f36;
    color: #ffffff;
}

/* 浅色主题标签 */
.sw_count_to_wrapper.sw-color-scheme-light .sw_count_to_label {
    border: 1px solid rgba(59, 130, 246, 0.3);
    background-color: #dbeafe;
    color: #1e40af;
}

/* ========================================
   数字样式
======================================== */

.sw_count_to_number {
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
    margin-bottom: 5px;
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

/* 深色主题数字 */
.sw_count_to_wrapper.sw-color-scheme-dark .sw_count_to_number {
    color: #ffffff;
}

/* 浅色主题数字 */
.sw_count_to_wrapper.sw-color-scheme-light .sw_count_to_number {
    color: #1e293b;
}

.sw_count_number_value {
    display: inline;
}

.sw_count_number_suffix {
    display: inline;
}

.sw_count_number_suffix.sw-suffix-small {
    font-size: 14px;
    line-height: 22px;
    vertical-align: baseline;
    margin-left: 6px;
}

/* 深色主题后缀 */
.sw_count_to_wrapper.sw-color-scheme-dark .sw_count_number_suffix.sw-suffix-small {
    color: rgba(255, 255, 255, 0.7);
}

/* 浅色主题后缀 */
.sw_count_to_wrapper.sw-color-scheme-light .sw_count_number_suffix.sw-suffix-small {
    color: rgba(30, 41, 59, 0.6);
}

/* ========================================
   描述文字样式
======================================== */

.sw_count_to_description {
    font-size: 14px;
    line-height: 22px;
    margin: 0;
}

/* 深色主题描述 */
.sw_count_to_wrapper.sw-color-scheme-dark .sw_count_to_description {
    color: rgba(255, 255, 255, 0.7);
}

/* 浅色主题描述 */
.sw_count_to_wrapper.sw-color-scheme-light .sw_count_to_description {
    color: rgba(30, 41, 59, 0.7);
}

/* ========================================
   响应式样式
======================================== */

/* 平板设备 (max-width: 1024px) */
@media (max-width: 1024px) {
    
    .sw_count_to_main_title {
        font-size: 40px;
        line-height: 48px;
        margin-bottom: 36px;
    }
    
    .sw_count_to_sub_title {
        font-size: 30px;
        line-height: 38px;
        margin-bottom: 24px;
    }
    
    .sw_count_to_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .sw_count_to_item {
        padding: 20px;
        min-height: 120px;
    }
    
    .sw_count_to_number {
        font-size: 22px;
        line-height: 30px;
    }
    
    .sw_count_number_suffix.sw-suffix-small {
        font-size: 12px;
        line-height: 20px;
    }
}

/* 移动设备 (max-width: 768px) */
@media (max-width: 768px) {
    
    .sw_count_to_main_title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 24px;
    }
    
    .sw_count_to_sub_title {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 16px;
    }
    
    .sw_count_to_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .sw_count_to_item {
        padding: 16px;
        min-height: 100px;
    }
    
    .sw_count_to_label {
        width: 70px;
        height: 28px;
        font-size: 12px;
        line-height: 20px;
        margin-bottom: 8px;
    }
    
    .sw_count_to_number {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 6px;
    }
    
    .sw_count_number_suffix.sw-suffix-small {
        font-size: 11px;
        line-height: 18px;
    }
    
    .sw_count_to_description {
        font-size: 12px;
        line-height: 18px;
    }
}

/* 小屏移动设备 (max-width: 480px) */
@media (max-width: 480px) {
    
    .sw_count_to_main_title {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 20px;
    }
    
    .sw_count_to_sub_title {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 12px;
    }
    
    .sw_count_to_grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 0 auto;
    }
    
    .sw_count_to_item {
        padding: 20px;
        min-height: 110px;
    }
    
    .sw_count_to_label {
        width: 76px;
        height: 30px;
        font-size: 13px;
        line-height: 20px;
    }
    
    .sw_count_to_number {
        font-size: 22px;
        line-height: 30px;
    }
    
    .sw_count_to_description {
        font-size: 13px;
        line-height: 20px;
    }
    
    .sw_count_number_suffix.sw-suffix-small {
        font-size: 12px;
        line-height: 20px;
    }
}

/* ========================================
   动画效果
======================================== */

/* 数字滚动动画 */
.sw_count_to_number.counting {
    animation: numberPulse 0.1s ease-in-out;
}

@keyframes numberPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 焦点状态 */
.sw_count_to_item:focus-within {
    outline: 2px solid rgba(9, 157, 253, 0.5);
    outline-offset: 2px;
} 