/* Bless UI 样式 */
.bless-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.bless-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #ffd700;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.modal-header h2 {
    margin: 0;
    color: #ffd700;
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    color: #ffd700;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 5px;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

/* 标签切换 */
.bless-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(255, 215, 0, 0.2);
}

.tab-btn.active {
    background: rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
}

/* 表格样式 */
.bless-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.bless-table thead {
    background: rgba(255, 215, 0, 0.1);
}

.bless-table th {
    padding: 12px;
    text-align: left;
    color: #ffd700;
    font-weight: bold;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.bless-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    color: #fff;
}

.bless-table tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

.empty-message {
    text-align: center;
    color: #888;
    padding: 40px !important;
}

/* Bless 效果颜色 */
.bless-name.positive {
    color: #4caf50;
}

.bless-name.negative {
    color: #f44336;
}

.bless-effect .positive {
    color: #4caf50;
    font-weight: bold;
}

.bless-effect .negative {
    color: #f44336;
    font-weight: bold;
}

.bless-source {
    color: #aaa;
    font-size: 14px;
}

.source-item {
    display: inline-block;
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 4px;
    margin-bottom: 4px;
    font-size: 12px;
}

.no-source {
    color: #666;
    font-style: italic;
}

/* 底部按钮 */
.bless-footer {
    margin-top: 20px;
    text-align: right;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-secondary {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

.btn-secondary:hover {
    background: rgba(244, 67, 54, 0.3);
}

/* Buff 按钮（页面上的触发按钮） */
.bless-trigger-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 100;
    transition: all 0.3s;
}

.bless-trigger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.bless-trigger-btn:active {
    transform: scale(0.95);
}

/* 战斗中的 bless 显示 */
.battle-bless-container {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 5px;
    padding: 10px;
    margin: 10px;
}

.bless-header {
    color: #ffd700;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.bless-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Buff 徽章（战斗状态栏） */
.bless-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.bless-badge.positive {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.bless-badge.negative {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

.bless-badge .badge-icon {
    margin-right: 4px;
}

.no-bless {
    color: #666;
    font-size: 12px;
    font-style: italic;
}
