
/* ========================================================== */
/* =================== 技能卡片增强样式 =================== */
/* ========================================================== */

.skill-damage-card.buff-skill {
    border-left: 3px solid #ffd700;
    background: linear-gradient(135deg, #2a2a3e 0%, #26324e 100%);
}

.skill-damage-card.buff-skill .skill-name {
    color: #ffd700;
}

/* 增益信息容器 - 垂直布局 */
.buff-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
}

/* 增益施放按钮容器 */
.buff-cast-container {
    margin-top: 8px;
    display: flex;
    justify-content: flex-start;
    margin-left: 0;
    padding-left: 0;
    width: 100%;
}

.buff-info .buff-effect {
    font-size: 12px;
    font-weight: 600;
    color: #88d888;
    margin: 0;
    padding: 0;
}

.buff-info .buff-duration {
    font-size: 10px;
    color: #b8b8b8;
    margin-top: 2px;
}

.skill-cooldown {
    color: #88d888;
    font-size: 11px;
}

/* 技能施放动画 */
.skill-cast-animation {
    animation: skillCastPulse 1.5s ease-out;
    background: linear-gradient(135deg, #3e2a4e 0%, #4a3660 100%) !important;
    border-color: #9c6bff !important;
    box-shadow: 0 0 15px rgba(156, 107, 255, 0.5) !important;
}

/* ============= 集成到缩放信息中的增益状态样式 ============= */
/* ============================================================ */

/* 确保 skill-scaling 支持 flex 布局 */
.skill-scaling {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* 缩放信息与增益状态的左侧容器 */
.scaling-text-with-buff,
.scaling-text-with-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

/* 原始缩放文本样式 */
.scaling-text-original {
    color: inherit;
}

/* 增益状态标签样式 */
.buff-cast-status {
    color: #4a90e2;
    font-size: 10px;
    font-weight: 600;
    padding: 0px 5px;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.buff-cast-status.active {
    background: #2d5a2d;
    color: #88d888;
}

/* 状态图标样式 */
.buff-cast-status i {
    font-size: 9px;
    opacity: 0.9;
}

.buff-cast-status.active i {
    color: #ffd700;
    opacity: 1;
}

/* 未激活状态的集成容器 */
.buff-cast-integrated {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* 施放按钮样式 */
.cast-skill-btn-bottom {
    padding: 6px 12px;
    font-size: 15px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    margin: 0;
    width: auto;
    min-width: 80px;
}

.cast-skill-btn-bottom:hover {
    background: linear-gradient(135deg, #357abd, #2968a3);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cast-skill-btn-bottom:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.cast-skill-btn-bottom i {
    font-size: 10px;
}

/* 已激活按钮的特殊样式（绿色主题） */
.cast-skill-btn-bottom.buff-active-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.cast-skill-btn-bottom.buff-active-btn:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
}

/* 已激活按钮中的闪电图标特殊样式 */
.cast-skill-btn-bottom.buff-active-btn i.fa-bolt {
    color: #ffd700;
}

/* 取消按钮的特殊样式（红色主题） - 保留用于其他场景 */
.cast-skill-btn-bottom.buff-remove-btn:not(.buff-active-btn) {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* ========================================================== */
/* ================= 技能激活状态卡片样式 ================= */
/* ========================================================== */

/* 增益技能激活状态 - 整个卡片变色 */
.skill-damage-card.skill-buff.buff-active {
    background: linear-gradient(135deg, #2a4a2a 0%, #3a5a3a 100%) !important;
    border: 2px solid #4a7a4a !important;
    box-shadow: 0 6px 20px rgba(74, 122, 74, 0.4), 0 0 15px rgba(136, 216, 136, 0.3) !important;
    animation: buffActiveGlow 2s ease-in-out infinite alternate;
}

@keyframes buffActiveGlow {
    0% {
        box-shadow: 0 6px 20px rgba(74, 122, 74, 0.4), 0 0 15px rgba(136, 216, 136, 0.3);
    }
    100% {
        box-shadow: 0 6px 20px rgba(74, 122, 74, 0.6), 0 0 20px rgba(136, 216, 136, 0.5);
    }
}

.skill-damage-card.skill-buff.buff-active:hover {
    border: 2px solid #5a8a5a !important;
    box-shadow: 0 8px 25px rgba(74, 122, 74, 0.6), 0 0 20px rgba(136, 216, 136, 0.5) !important;
    transform: translateY(-2px) translateZ(0);
}

/* 激活状态下的技能名称特殊样式 */
.skill-damage-card.skill-buff.buff-active .skill-name {
    color: #88d888 !important;
    text-shadow: 0 0 8px rgba(136, 216, 136, 0.6);
}

/* 激活状态下的技能头部背景 */
.skill-damage-card.skill-buff.buff-active .skill-damage-header {
    background: rgba(74, 122, 74, 0.2);
}

.cast-skill-btn-bottom.buff-remove-btn:not(.buff-active-btn):hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

/* ========================================================== */
/* ================= 变身激活状态卡片样式 ================= */
/* ========================================================== */

/* 基础激活态：仅提供动效与容器属性，颜色由各形态主题覆盖 */
.skill-damage-card.transform-active {
    position: relative;
    overflow: hidden;
    animation: buffActiveGlow 2s ease-in-out infinite alternate;
    transform: translateZ(0);
}

/* 变身按钮点击特效 - 瞬间卡片变色 */
.skill-damage-card.transform-clicking {
    animation: transformClickEffect 0.6s ease-out;
}


/* 脉冲光效果 - 从左到右扫过 */
.skill-damage-card.transform-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: transformPulse 3s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes transformPulse {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ---------------- 各形态主题覆盖（按主色调） ---------------- */

/* 熊形态：深绿增强 */
.skill-damage-card[data-skill-id="bear_form"].transform-active {
    background: linear-gradient(135deg, #243a24 0%, #2f4a2f 100%) !important;
    border: 2px solid #44cc44 !important;
    box-shadow: 0 6px 22px rgba(68, 204, 68, 0.45), 0 0 16px rgba(136, 216, 136, 0.35) !important;
}
.skill-damage-card[data-skill-id="bear_form"].transform-active:hover {
    border: 2px solid #55dd55 !important;
    box-shadow: 0 8px 26px rgba(68, 204, 68, 0.6), 0 0 22px rgba(136, 216, 136, 0.5) !important;
}
.skill-damage-card[data-skill-id="bear_form"].transform-active .skill-name {
    color: #88d888 !important;
    text-shadow: 0 0 8px rgba(136, 216, 136, 0.6);
}
.skill-damage-card[data-skill-id="bear_form"].transform-active .skill-damage-header {
    background: rgba(68, 204, 68, 0.15);
}
.skill-damage-card[data-skill-id="bear_form"].transform-active::before {
    background: linear-gradient(90deg, transparent, rgba(136, 216, 136, 0.15), transparent);
}

/* 豹形态：橙色敏捷感 */
.skill-damage-card[data-skill-id="panther_form"].transform-active {
    background: linear-gradient(135deg, #3a2218 0%, #4a2e1e 100%) !important;
    border: 2px solid #ff8844 !important;
    box-shadow: 0 6px 22px rgba(255, 136, 68, 0.45), 0 0 16px rgba(255, 168, 102, 0.35) !important;
}
.skill-damage-card[data-skill-id="panther_form"].transform-active:hover {
    border: 2px solid #ffaa66 !important;
    box-shadow: 0 8px 26px rgba(255, 136, 68, 0.6), 0 0 22px rgba(255, 168, 102, 0.5) !important;
}
.skill-damage-card[data-skill-id="panther_form"].transform-active .skill-name {
    color: #ffaa66 !important;
    text-shadow: 0 0 8px rgba(255, 168, 102, 0.6);
}
.skill-damage-card[data-skill-id="panther_form"].transform-active .skill-damage-header {
    background: rgba(255, 136, 68, 0.12);
}
.skill-damage-card[data-skill-id="panther_form"].transform-active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 168, 102, 0.15), transparent);
}

/* 鸡形态：金黄活力 */
.skill-damage-card[data-skill-id="chicken_form"].transform-active {
    background: linear-gradient(135deg, #3a3520 0%, #4a4024 100%) !important;
    border: 2px solid #ffcc44 !important;
    box-shadow: 0 6px 22px rgba(255, 204, 68, 0.45), 0 0 16px rgba(255, 220, 120, 0.35) !important;
}
.skill-damage-card[data-skill-id="chicken_form"].transform-active:hover {
    border: 2px solid #ffdd66 !important;
    box-shadow: 0 8px 26px rgba(255, 204, 68, 0.6), 0 0 22px rgba(255, 220, 120, 0.5) !important;
}
.skill-damage-card[data-skill-id="chicken_form"].transform-active .skill-name {
    color: #ffdd66 !important;
    text-shadow: 0 0 8px rgba(255, 221, 102, 0.6);
}
.skill-damage-card[data-skill-id="chicken_form"].transform-active .skill-damage-header {
    background: rgba(255, 204, 68, 0.12);
}
.skill-damage-card[data-skill-id="chicken_form"].transform-active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 221, 102, 0.15), transparent);
}

/* 鼠形态：暗灰潜行 */
.skill-damage-card[data-skill-id="rat_form"].transform-active {
    background: linear-gradient(135deg, #252525 0%, #303030 100%) !important;
    border: 2px solid #888888 !important;
    box-shadow: 0 6px 22px rgba(136, 136, 136, 0.35), 0 0 16px rgba(170, 170, 170, 0.25) !important;
}
.skill-damage-card[data-skill-id="rat_form"].transform-active:hover {
    border: 2px solid #aaaaaa !important;
    box-shadow: 0 8px 26px rgba(136, 136, 136, 0.5), 0 0 22px rgba(170, 170, 170, 0.4) !important;
}
.skill-damage-card[data-skill-id="rat_form"].transform-active .skill-name {
    color: #cccccc !important;
    text-shadow: 0 0 8px rgba(200, 200, 200, 0.45);
}
.skill-damage-card[data-skill-id="rat_form"].transform-active .skill-damage-header {
    background: rgba(170, 170, 170, 0.12);
}
.skill-damage-card[data-skill-id="rat_form"].transform-active::before {
    background: linear-gradient(90deg, transparent, rgba(200, 200, 200, 0.1), transparent);
}

/* 企鹅形态：水蓝流动 */
.skill-damage-card[data-skill-id="penguin_form"].transform-active {
    background: linear-gradient(135deg, #1c3446 0%, #234a5a 100%) !important;
    border: 2px solid #44a8cc !important;
    box-shadow: 0 6px 22px rgba(68, 168, 204, 0.45), 0 0 16px rgba(102, 187, 221, 0.35) !important;
}
.skill-damage-card[data-skill-id="penguin_form"].transform-active:hover {
    border: 2px solid #66bbdd !important;
    box-shadow: 0 8px 26px rgba(68, 168, 204, 0.6), 0 0 22px rgba(102, 187, 221, 0.5) !important;
}
.skill-damage-card[data-skill-id="penguin_form"].transform-active .skill-name {
    color: #66bbdd !important;
    text-shadow: 0 0 8px rgba(102, 187, 221, 0.6);
}
.skill-damage-card[data-skill-id="penguin_form"].transform-active .skill-damage-header {
    background: rgba(68, 168, 204, 0.12);
}
.skill-damage-card[data-skill-id="penguin_form"].transform-active::before {
    background: linear-gradient(90deg, transparent, rgba(102, 187, 221, 0.15), transparent);
}

/* 恶魔（血之契约）：深红侵蚀 */
.skill-damage-card[data-skill-id="blood_contract"].transform-active {
    background: linear-gradient(135deg, #3a2020 0%, #4a2929 100%) !important;
    border: 2px solid #cc4444 !important;
    box-shadow: 0 6px 22px rgba(204, 68, 68, 0.5), 0 0 16px rgba(255, 102, 102, 0.35) !important;
}
.skill-damage-card[data-skill-id="blood_contract"].transform-active:hover {
    border: 2px solid #ff6b6b !important;
    box-shadow: 0 8px 26px rgba(204, 68, 68, 0.65), 0 0 22px rgba(255, 102, 102, 0.5) !important;
}
.skill-damage-card[data-skill-id="blood_contract"].transform-active .skill-name {
    color: #ff8888 !important;
    text-shadow: 0 0 8px rgba(204, 68, 68, 0.6);
}
.skill-damage-card[data-skill-id="blood_contract"].transform-active .skill-damage-header {
    background: rgba(204, 68, 68, 0.12);
}
.skill-damage-card[data-skill-id="blood_contract"].transform-active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 102, 102, 0.15), transparent);
}

/* 激活状态的集成容器 */
.buff-status-integrated {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 集成的计时器区域 */
.buff-timer-integrated {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 集成的时间显示 */
.buff-time-integrated {
    font-size: 11px;
    font-weight: 600;
    color: #2ed573;
    min-width: 28px;
    font-family: 'Courier New', monospace;
}

/* 集成的进度条 */
.buff-progress-integrated {
    width: 120px;
    height: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 4px rgba(136, 216, 136, 0.3);
    position: relative;
}

.buff-progress-fill-integrated {
    height: 100%;
    background: linear-gradient(90deg, 
        #ff4757 0%,     /* 红色 - 剩余时间少 */
        #ff6b35 25%,    /* 橙红色 */
        #ffd700 50%,    /* 金色 - 中等时间 */
        #7bed9f 75%,    /* 浅绿色 */
        #2ed573 100%    /* 绿色 - 剩余时间多 */
    );
    border-radius: 1px;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 6px rgba(136, 216, 136, 0.6);
    position: relative;
}

/* 进度条发光效果 */
.buff-progress-fill-integrated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* 低时间警告效果 */
.buff-progress-fill-integrated.low-time {
    animation: lowTimeWarning 0.5s ease-in-out infinite alternate;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.8) !important;
}

@keyframes lowTimeWarning {
    0% { 
        box-shadow: 0 0 8px rgba(255, 71, 87, 0.8);
        filter: brightness(1);
    }
    100% { 
        box-shadow: 0 0 12px rgba(255, 71, 87, 1);
        filter: brightness(1.2);
    }
}


@keyframes skillCastPulse {
    0% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    }
}

/* 增益技能详情样式 */
.buff-skill-details {
    padding: 12px;
}

.buff-skill-details h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #ffd700;
    font-weight: 600;
}

.buff-skill-details p {
    margin: 0 0 8px 0;
    font-size: 12px;
    line-height: 1.4;
    color: #e8e8e8;
}

.english-desc {
    color: #b8b8b8 !important;
    font-style: italic;
}

.property-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.property-label {
    font-size: 15px;
    color: #b8b8b8;
}

.property-value {
    font-size: 15px;
    color: #e8e8e8;
    font-weight: 500;
}

.effect-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.effect-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(136, 216, 136, 0.1);
    border-radius: 3px;
    border-left: 2px solid #88d888;
}

.effect-item i {
    font-size: 12px;
    color: #88d888;
    width: 14px;
}

.effect-item span {
    font-size: 11px;
    color: #e8e8e8;
}

/* 特殊伤害类型文本样式 */
.bleed-damage {
    color: #ff6b6b !important;
    font-weight: 600;
}

.fire-damage {
    color: #dd8866 !important;
    font-weight: 600;
    text-shadow: 0 0 2px rgba(221, 136, 102, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr;
    }
}
