/* 特殊号码（靓号）样式定义 */

/* ====================== 基础样式 ====================== */

/* 特殊号码标签基础样式 */
.special-number-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 6px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    vertical-align: middle;
    color: white;
}

/* 特殊号码容器基础样式 */
.special-number-container {
    position: relative;
    display: inline-block;
    padding: 2px 4px 10px 4px;
    line-height: 1.4;
    min-width: 90px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

/* 选号页面特殊号码单元格样式 */
.number-cell.special {
    color: white;
    font-weight: bold;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
}

/* 选号页面特殊号码类型标签样式 */
.special-type-tag {
    position: absolute;
    top: 2px;
    right: 2px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* 选号页面号码单元格样式 */
.number-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 选号页面号码文本样式 */
.number-cell > span:first-child {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 2px;
}

/* ====================== 特殊号码类型样式 ====================== */

/* 年份连续号样式 - 最特殊 */
.special-number-full-seq,
.number-cell.special.full-seq {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    animation: pulse 1s infinite;
}

/* AAAAA顶级靓号样式 */
.special-number-aaaaa,
.number-cell.special.aaaaa {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation: flash 1.5s infinite;
}

/* 年份豹子号样式 */
.special-number-year-match,
.number-cell.special.year-match {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    animation: bounce 2s infinite;
}

/* AAA靓号样式 */
.special-number-aaa {
    background: linear-gradient(135deg, #9370DB, #8A2BE2);
    color: white;
}

/* AAAA靓号样式 */
.special-number-aaaa {
    background: linear-gradient(135deg, #ffd700, #ffc107);
    color: #8B4513;
    animation: specialNumberPulse 2s infinite;
}

/* AABB靓号样式 */
.special-number-aabb {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
}

/* ABAB靓号样式 */
.special-number-abab {
    background: linear-gradient(135deg, #FFA07A, #FF6347);
    color: white;
}

/* 顺子靓号样式 */
.special-number-sequential {
    background: linear-gradient(135deg, #32CD32, #008000);
    color: white;
}

/* 爱情靓号样式 */
.special-number-love,
.number-cell.special.love {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    animation: heartBeat 1.5s ease-in-out infinite;
}

/* 吉祥靓号样式 */
.special-number-special {
    background: linear-gradient(135deg, #ffd700, #ffc107);
    color: #8B4513;
    animation: specialNumberPulse 2s infinite;
}

/* 普通特殊号码样式 */
.number-cell.special.normal {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    animation: special-pulse 2s infinite;
}

/* ====================== 动画效果定义 ====================== */

/* 特殊号码通用脉冲动画 */
@keyframes specialNumberPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 脉冲动画 - 用于年份连续号 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(155, 89, 182, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(155, 89, 182, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(155, 89, 182, 0);
    }
}

/* 闪烁动画 - 用于AAAAA顶级靓号 */
@keyframes flash {
    0%, 50%, 100% {
        opacity: 1;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    25%, 75% {
        opacity: 0.8;
        box-shadow: 0 2px 15px rgba(231, 76, 60, 0.6);
    }
}

/* 弹跳动画 - 用于年份豹子号 */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -5px, 0);
    }
    70% {
        transform: translate3d(0, -3px, 0);
    }
    90% {
        transform: translate3d(0, -1px, 0);
    }
}

/* 心跳动画 - 用于爱情靓号 */
@keyframes heartBeat {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(255, 105, 180, 0.5);
    }
    14% {
        transform: scale(1.1);
        box-shadow: 0 2px 15px rgba(255, 105, 180, 0.8);
    }
    28% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(255, 105, 180, 0.5);
    }
    42% {
        transform: scale(1.1);
        box-shadow: 0 2px 15px rgba(255, 105, 180, 0.8);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(255, 105, 180, 0.5);
    }
}

/* 特殊脉冲动画 */
@keyframes special-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* 辉光动画 */
@keyframes glow {
    from {
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    to {
        box-shadow: 0 2px 15px rgba(255,255,255,0.4);
    }
}

/* ====================== 响应式调整 ====================== */

@media (max-width: 768px) {
    .special-number-container {
        min-width: 80px;
        font-size: 12px;
    }
    
    .special-number-tag {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .number-cell > span:first-child {
        font-size: 14px;
    }
}