/* =============================================
   Kuaili Corp Theme - 全局 CSS 类名库
   用法：在区块的"额外 CSS 类名"中填入即可
   注意：.hover-lift 样式由 99-advanced-style.css 统一控制，此处仅保留兼容定义
   ============================================= */

/* ========== 一、文字颜色 ========== */
.text-primary { color: var(--wp--preset--color--primary, #0d6efd) !important; }
.text-white { color: #fff !important; }
.text-black { color: #000 !important; }
.text-gray { color: #666 !important; }
.text-light-gray { color: #999 !important; }

/* ========== 二、背景色 ========== */
.bg-primary { background-color: var(--wp--preset--color--primary, #0d6efd) !important; }
.bg-white { background-color: #fff !important; }
.bg-light { background-color: #f6f6f6 !important; }
.bg-dark { background-color: #222 !important; }
.bg-transparent { background-color: transparent !important; }

/* ========== 三、文字排版 ========== */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-bold { font-weight: 700 !important; }
.text-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-break { word-break: break-word; overflow-wrap: break-word; }

/* ========== 四、间距 ========== */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-10 { margin-top: 10px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-30 { margin-top: 30px !important; }
.mb-30 { margin-bottom: 30px !important; }
.p-0 { padding: 0 !important; }
.pt-10 { padding-top: 10px !important; }
.pb-10 { padding-bottom: 10px !important; }
.pt-20 { padding-top: 20px !important; }
.pb-20 { padding-bottom: 20px !important; }

/* ========== 五、圆角 ========== */
.radius-none { border-radius: 0 !important; }
.radius-sm { border-radius: 4px !important; }
.radius-md { border-radius: 8px !important; }
.radius-lg { border-radius: 16px !important; }
.radius-round { border-radius: 50% !important; }
.radius-pill { border-radius: 999px !important; }

/* ========== 六、阴影 ========== */
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important; }
.shadow-md { box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important; }
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important; }
.shadow-glow { box-shadow: 0 0 15px rgba(13,110,253,0.5) !important; }

/* ========== 七、边框 ========== */
.border-none { border: none !important; }
.border-light { border: 1px solid #e0e0e0 !important; }
.border-primary { border: 1px solid var(--wp--preset--color--primary, #0d6efd) !important; }

/* ========== 八、布局 ========== */
.flex { display: flex !important; }
.flex-center { display: flex !important; align-items: center !important; justify-content: center !important; }
.flex-between { display: flex !important; align-items: center !important; justify-content: space-between !important; }
.flex-column { display: flex !important; flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-10 { gap: 10px !important; }
.gap-20 { gap: 20px !important; }
.gap-30 { gap: 30px !important; }
.w-100 { width: 100% !important; }
.h-auto { height: auto !important; }

/* ========== 九、显示/隐藏 ========== */
.hidden { display: none !important; }
.visible { display: block !important; }
.overflow-hidden { overflow: hidden !important; }

/* ========== 十、定位 ========== */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.z-1 { z-index: 1 !important; }
.z-10 { z-index: 10 !important; }
.z-100 { z-index: 100 !important; }

/* ========== 十一、透明度 ========== */
.opacity-0 { opacity: 0 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-80 { opacity: 0.8 !important; }
.opacity-100 { opacity: 1 !important; }

/* ========== 十二、过渡动画 ========== */
.transition { transition: all 0.3s ease !important; }
.transition-slow { transition: all 0.6s ease !important; }

/* ========== 十三、悬停效果 ========== */
/* 注意：.hover-lift 由 99-advanced-style.css 统一控制，此处不再重复定义 transform */
.hover-zoom { transition: transform 0.3s ease !important; }
.hover-zoom:hover { transform: scale(1.05) !important; }

.hover-glow { transition: box-shadow 0.3s ease !important; }
.hover-glow:hover { box-shadow: 0 0 20px rgba(13,110,253,0.4) !important; }

.hover-bg-primary { transition: background-color 0.3s ease !important; }
.hover-bg-primary:hover { background-color: var(--wp--preset--color--primary, #0d6efd) !important; color: #fff !important; }

/* ========== 十四、入场动画 ========== */
.fade-in { animation: fadeIn 0.6s ease forwards !important; }
.fade-in-up { animation: fadeInUp 0.6s ease forwards !important; }
.fade-in-left { animation: fadeInLeft 0.6s ease forwards !important; }
.fade-in-right { animation: fadeInRight 0.6s ease forwards !important; }
.slide-in-up { animation: slideInUp 0.5s ease forwards !important; }
.zoom-in { animation: zoomIn 0.5s ease forwards !important; }

/* 入场动画关键帧 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ========== 十五、闪烁与脉冲 ========== */
.shine {
    position: relative;
    overflow: hidden;
}
.shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-25deg);
    animation: shine 1.5s ease infinite;
}
@keyframes shine {
    0% { left: -75%; }
    100% { left: 125%; }
}

.pulse { animation: pulse 2s ease-in-out infinite !important; }
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========== 十六、交互状态 ========== */
.pointer { cursor: pointer !important; }
.no-select { user-select: none !important; }
.no-click { pointer-events: none !important; }

/* ========== 十七、渐变背景 ========== */
.gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%) !important;
    color: #fff !important;
}
.gradient-dark {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
    color: #fff !important;
}
.gradient-warm {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%) !important;
    color: #fff !important;
}

/* ========== 十八、图片效果 ========== */
.img-cover { width: 100%; height: 100%; object-fit: cover !important; }
.img-contain { width: 100%; height: 100%; object-fit: contain !important; }
.img-grayscale { filter: grayscale(100%) !important; transition: filter 0.3s ease !important; }
.img-grayscale:hover { filter: grayscale(0%) !important; }

/* ========== 十九、分割线 ========== */
.divider {
    width: 60px;
    height: 3px;
    background: var(--wp--preset--color--primary, #0d6efd);
    margin: 16px auto;
    border-radius: 2px;
}

/* ========== 二十、滚动条美化 ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #999; }