/* 《诅咒轮回：暗影卡牌》主样式 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #0a0a0f;
    color: #e0e0e0;
}

/* 游戏容器 */
#game-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* 游戏屏幕 */
.game-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-screen.active {
    display: flex;
    opacity: 1;
}

/* 主菜单样式 */
#main-menu {
    background: linear-gradient(135deg, #1a0a2e 0%, #0d0d1a 50%, #1a0a2e 100%);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.menu-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: rgba(20, 20, 35, 0.9);
    border-radius: 20px;
    border: 2px solid #3a1f5e;
    box-shadow: 0 0 50px rgba(100, 50, 150, 0.3);
}

.game-title {
    font-size: 3.5rem;
    color: #b388ff;
    text-shadow: 0 0 20px rgba(179, 136, 255, 0.5);
    margin-bottom: 10px;
    font-weight: 700;
}

.game-subtitle {
    font-size: 1.2rem;
    color: #7c4dff;
    margin-bottom: 40px;
    font-style: italic;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.menu-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border: 2px solid #5e35b1;
    background: rgba(94, 53, 177, 0.2);
    color: #b388ff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.menu-btn:hover {
    background: rgba(94, 53, 177, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(94, 53, 177, 0.3);
}

.menu-btn:active {
    transform: translateY(0);
}

.menu-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.primary-btn {
    background: linear-gradient(135deg, #7c4dff 0%, #536dfe 100%);
    border-color: #7c4dff;
    color: white;
    font-weight: 600;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #651fff 0%, #304ffe 100%);
}

.menu-footer {
    color: #666;
    font-size: 0.9rem;
}

/* 角色选择界面 */
#character-select {
    background: linear-gradient(135deg, #1a0a2e 0%, #0d0d1a 50%, #1a0a2e 100%);
    flex-direction: column;
    padding: 20px;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(20, 20, 35, 0.8);
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid #3a1f5e;
}

.screen-header h2 {
    color: #b388ff;
    font-size: 1.8rem;
}

.back-btn {
    padding: 10px 20px;
    background: rgba(94, 53, 177, 0.3);
    border: 1px solid #5e35b1;
    color: #b388ff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(94, 53, 177, 0.5);
}

.char-info {
    color: #7c4dff;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.character-card {
    background: rgba(30, 30, 50, 0.9);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #3a1f5e;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.character-card:hover {
    transform: translateY(-5px);
    border-color: #7c4dff;
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.2);
}

.character-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.character-card.selected {
    border-color: #7c4dff;
    background: rgba(124, 77, 255, 0.2);
}

.character-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: #2a1a4a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid #5e35b1;
}

.character-name {
    font-size: 1.2rem;
    color: #b388ff;
    margin-bottom: 10px;
    font-weight: 600;
}

.character-class {
    font-size: 0.9rem;
    color: #7c4dff;
    margin-bottom: 15px;
}

.character-stats {
    display: flex;
    justify-content: space-around;
    font-size: 0.8rem;
    color: #999;
}

/* 游戏主界面 */
#game-screen {
    background: #0a0a0f;
    flex-direction: column;
}

/* HUD样式 */
.game-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(20, 20, 35, 0.9);
    border-bottom: 2px solid #3a1f5e;
    height: 80px;
}

.hud-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-avatar {
    width: 50px;
    height: 50px;
    background: #2a1a4a;
    border-radius: 50%;
    border: 2px solid #5e35b1;
}

.player-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.health-bar, .energy-bar {
    width: 150px;
    height: 20px;
    background: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #3a1f5e;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444 0%, #ff6b6b 100%);
    width: 100%;
    transition: width 0.3s ease;
}

.energy-fill {
    height: 100%;
    background: linear-gradient(90deg, #448aff 0%, #64b5f6 100%);
    width: 100%;
    transition: width 0.3s ease;
}

.health-text, .energy-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hud-center {
    text-align: center;
}

.floor-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

#floor-text {
    font-size: 1.2rem;
    color: #b388ff;
    font-weight: 600;
}

#room-text {
    font-size: 0.8rem;
    color: #7c4dff;
}

.gold-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 1.1rem;
    color: #ffd740;
}

.hud-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.deck-info {
    display: flex;
    gap: 10px;
}

.deck-pile, .discard-pile {
    width: 40px;
    height: 50px;
    background: #2a1a4a;
    border-radius: 5px;
    border: 2px solid #5e35b1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pile-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: #b388ff;
}

.menu-buttons {
    display: flex;
    gap: 10px;
}

.hud-btn {
    width: 40px;
    height: 40px;
    background: rgba(94, 53, 177, 0.3);
    border: 1px solid #5e35b1;
    color: #b388ff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.hud-btn:hover {
    background: rgba(94, 53, 177, 0.5);
}

/* 地图界面 */
.map-container {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    background: rgba(10, 10, 15, 0.95);
    display: none;
    flex-direction: column;
    z-index: 100;
}

.map-container.active {
    display: flex;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(30, 30, 50, 0.9);
    border-bottom: 2px solid #3a1f5e;
}

.map-header h3 {
    color: #b388ff;
    font-size: 1.5rem;
}

.close-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 68, 68, 0.3);
    border: 1px solid #ff4444;
    color: #ff4444;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 68, 68, 0.5);
}

#map-canvas {
    flex: 1;
    background: #0a0a0f;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: rgba(30, 30, 50, 0.9);
    border-top: 2px solid #3a1f5e;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
}

.legend-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.battle-icon { background: #ff4444; }
.elite-icon { background: #ff9800; }
.boss-icon { background: #9c27b0; }
.shop-icon { background: #4caf50; }
.event-icon { background: #2196f3; }
.rest-icon { background: #607d8b; }

/* 战斗界面 */
.battle-container {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    display: none;
    flex-direction: column;
    background: #0a0a0f;
}

.battle-container.active {
    display: flex;
}

.battle-scene {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
}

.enemies-area {
    display: flex;
    gap: 20px;
    align-items: center;
}

.enemy-character {
    text-align: center;
    transition: all 0.3s ease;
}

.enemy-character:hover {
    transform: scale(1.05);
}

.enemy-sprite {
    width: 80px;
    height: 80px;
    background: #2a1a4a;
    border-radius: 10px;
    border: 2px solid #5e35b1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.enemy-health {
    width: 80px;
    height: 8px;
    background: #1a1a2e;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.enemy-health-fill {
    height: 100%;
    background: #ff4444;
    transition: width 0.3s ease;
}

.enemy-intent {
    font-size: 0.8rem;
    color: #7c4dff;
    padding: 3px 8px;
    background: rgba(94, 53, 177, 0.3);
    border-radius: 5px;
}

.battle-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.player-battle-area {
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
}

.player-character {
    width: 100px;
    height: 100px;
    background: #2a1a4a;
    border-radius: 15px;
    border: 3px solid #7c4dff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.battle-ui {
    height: 200px;
    background: rgba(20, 20, 35, 0.9);
    border-top: 2px solid #3a1f5e;
    display: flex;
    flex-direction: column;
}

.hand-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    overflow-x: auto;
}

.card {
    width: 120px;
    height: 170px;
    background: linear-gradient(135deg, #2a1a4a 0%, #1a0a2e 100%);
    border-radius: 10px;
    border: 2px solid #5e35b1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 10px;
    position: relative;
}

.card:hover {
    transform: translateY(-20px);
    border-color: #7c4dff;
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.3);
}

.card-cost {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    background: #448aff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid #64b5f6;
}

.card-name {
    font-size: 0.8rem;
    color: #b388ff;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-image {
    flex: 1;
    background: #1a0a2e;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.card-description {
    font-size: 0.6rem;
    color: #999;
    text-align: center;
    line-height: 1.3;
}

.card-type {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: #7c4dff;
    background: rgba(94, 53, 177, 0.5);
    padding: 2px 8px;
    border-radius: 3px;
}

.battle-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(30, 30, 50, 0.9);
    border-top: 1px solid #3a1f5e;
}

.battle-btn {
    padding: 10px 30px;
    background: linear-gradient(135deg, #7c4dff 0%, #536dfe 100%);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.battle-btn:hover {
    background: linear-gradient(135deg, #651fff 0%, #304ffe 100%);
    transform: translateY(-2px);
}

.turn-info {
    color: #b388ff;
    font-weight: 600;
}

/* 事件界面 */
.event-container {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    background: rgba(10, 10, 15, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.event-container.active {
    display: flex;
}

.event-content {
    max-width: 600px;
    background: rgba(30, 30, 50, 0.9);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid #3a1f5e;
    text-align: center;
}

.event-image {
    width: 150px;
    height: 150px;
    background: #2a1a4a;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 3px solid #5e35b1;
}

.event-text h3 {
    font-size: 1.8rem;
    color: #b388ff;
    margin-bottom: 15px;
}

.event-text p {
    color: #999;
    line-height: 1.6;
    margin-bottom: 30px;
}

.event-choices {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-choice {
    padding: 15px 20px;
    background: rgba(94, 53, 177, 0.2);
    border: 2px solid #5e35b1;
    color: #b388ff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

.event-choice:hover {
    background: rgba(94, 53, 177, 0.4);
    transform: translateY(-2px);
}

/* 商店界面 */
.shop-container {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    background: rgba(10, 10, 15, 0.95);
    display: none;
    flex-direction: column;
    z-index: 100;
}

.shop-container.active {
    display: flex;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(30, 30, 50, 0.9);
    border-bottom: 2px solid #3a1f5e;
}

.shop-header h3 {
    color: #b388ff;
    font-size: 1.5rem;
}

.shop-gold {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd740;
    font-size: 1.2rem;
    font-weight: 600;
}

.shop-items {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
}

.shop-item {
    background: rgba(30, 30, 50, 0.9);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #3a1f5e;
    text-align: center;
    transition: all 0.3s ease;
}

.shop-item:hover {
    transform: translateY(-5px);
    border-color: #7c4dff;
}

.shop-item-icon {
    width: 60px;
    height: 60px;
    background: #2a1a4a;
    border-radius: 10px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid #5e35b1;
}

.shop-item-name {
    color: #b388ff;
    font-weight: 600;
    margin-bottom: 10px;
}

.shop-item-price {
    color: #ffd740;
    font-weight: 600;
    margin-bottom: 15px;
}

.shop-item-buy {
    padding: 8px 20px;
    background: #4caf50;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-item-buy:hover {
    background: #66bb6a;
}

.shop-item-buy:disabled {
    background: #666;
    cursor: not-allowed;
}

.shop-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: rgba(30, 30, 50, 0.9);
    border-top: 2px solid #3a1f5e;
}

.shop-btn {
    padding: 10px 30px;
    background: rgba(94, 53, 177, 0.3);
    border: 1px solid #5e35b1;
    color: #b388ff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-btn:hover {
    background: rgba(94, 53, 177, 0.5);
}

/* 休息界面 */
.rest-container {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    background: rgba(10, 10, 15, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.rest-container.active {
    display: flex;
}

.rest-content {
    max-width: 500px;
    background: rgba(30, 30, 50, 0.9);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid #3a1f5e;
    text-align: center;
}

.rest-image {
    width: 120px;
    height: 120px;
    background: #2a1a4a;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 3px solid #5e35b1;
}

.rest-content h3 {
    font-size: 1.8rem;
    color: #b388ff;
    margin-bottom: 15px;
}

.rest-content p {
    color: #999;
    margin-bottom: 30px;
    line-height: 1.6;
}

.rest-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rest-btn {
    padding: 15px 20px;
    background: rgba(94, 53, 177, 0.2);
    border: 2px solid #5e35b1;
    color: #b388ff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

.rest-btn:hover {
    background: rgba(94, 53, 177, 0.4);
    transform: translateY(-2px);
}

/* 游戏结束界面 */
#game-over {
    background: linear-gradient(135deg, #1a0a2e 0%, #0d0d1a 50%, #1a0a2e 100%);
    justify-content: center;
    align-items: center;
}

.game-over-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: rgba(20, 20, 35, 0.9);
    border-radius: 20px;
    border: 2px solid #3a1f5e;
}

.game-over-content h2 {
    font-size: 2.5rem;
    color: #ff4444;
    margin-bottom: 30px;
}

.game-over-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: rgba(30, 30, 50, 0.9);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #3a1f5e;
}

.stat-label {
    display: block;
    color: #7c4dff;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.5rem;
    color: #b388ff;
    font-weight: 600;
}

.game-over-unlocks {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(30, 30, 50, 0.9);
    border-radius: 10px;
    border: 1px solid #3a1f5e;
}

.game-over-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 设置界面 */
#settings-screen {
    background: linear-gradient(135deg, #1a0a2e 0%, #0d0d1a 50%, #1a0a2e 100%);
    justify-content: center;
    align-items: center;
}

.settings-content {
    max-width: 500px;
    width: 100%;
    padding: 40px;
    background: rgba(20, 20, 35, 0.9);
    border-radius: 20px;
    border: 2px solid #3a1f5e;
}

.settings-content h2 {
    text-align: center;
    color: #b388ff;
    margin-bottom: 30px;
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section h3 {
    color: #7c4dff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a1f5e;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.setting-item label {
    color: #e0e0e0;
}

.setting-item input[type="range"] {
    width: 200px;
    height: 8px;
    background: #1a1a2e;
    border-radius: 4px;
    outline: none;
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    background: #7c4dff;
    border-radius: 50%;
    cursor: pointer;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    background: #1a1a2e;
    border: 2px solid #5e35b1;
    border-radius: 4px;
    cursor: pointer;
}

.settings-content .menu-btn {
    width: 100%;
    margin-top: 20px;
}

/* 加载界面 */
#loading-screen {
    background: #0a0a0f;
    justify-content: center;
    align-items: center;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #3a1f5e;
    border-top-color: #7c4dff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content p {
    color: #b388ff;
    margin-bottom: 20px;
}

.loading-bar {
    width: 300px;
    height: 10px;
    background: #1a1a2e;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c4dff 0%, #536dfe 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-title {
        font-size: 2.5rem;
    }
    
    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .card {
        width: 100px;
        height: 140px;
    }
    
    .shop-items {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #5e35b1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7c4dff;
}

/* 工具提示 */
.tooltip {
    position: absolute;
    background: rgba(30, 30, 50, 0.95);
    border: 2px solid #3a1f5e;
    border-radius: 10px;
    padding: 15px;
    color: #e0e0e0;
    font-size: 0.9rem;
    max-width: 300px;
    z-index: 1000;
    pointer-events: none;
}

/* 状态效果图标 */
.status-effect {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin: 2px;
    border: 1px solid;
}

.positive-effect {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
    color: #4caf50;
}

.negative-effect {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
    color: #f44336;
}

/* 动画类 */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-out {
    animation: fadeOut 0.5s ease;
}

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

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

/* 伤害数字 */
.damage-number {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 700;
    pointer-events: none;
    animation: damageFloat 1s ease forwards;
}

@keyframes damageFloat {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-50px); }
}

/* 治疗数字 */
.heal-number {
    color: #4caf50;
}

/* 暴击数字 */
.critical-number {
    color: #ff9800;
    font-size: 2rem;
}