* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    height: 100vh;
    overflow: hidden;
    color: #fff;
}

#app {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.screen {
    display: none;
    width: 100%;
    height: 100vh;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
}

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#start-screen {
    text-align: center;
}

.title-container {
    margin-bottom: 60px;
}

.game-title {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(45deg, #f39c12, #e74c3c, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(243, 156, 18, 0.3);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 18px;
    color: #7f8c8d;
}

.btn {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #2980b9, #1a5276);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.btn-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #c0392b, #922b21);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-ready {
    background: linear-gradient(45deg, #27ae60, #229954);
    color: white;
    margin-top: 10px;
}

.btn-ready:hover {
    background: linear-gradient(45deg, #229954, #1e8449);
}

.btn-ready.ready {
    background: linear-gradient(45deg, #f39c12, #d68910);
}

.input {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #3498db;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    width: 200px;
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#lobby-screen {
    padding: 40px;
}

.lobby-header {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.player-name {
    font-size: 18px;
    color: #3498db;
    font-weight: bold;
}

.lobby-actions {
    display: flex;
    gap: 10px;
}

.lobby-content {
    width: 100%;
    max-width: 800px;
}

.room-list-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 200px;
}

.room-list-container h3 {
    margin-bottom: 15px;
    color: #3498db;
}

.room-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.room-item:hover {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.room-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.room-name {
    font-weight: bold;
    font-size: 16px;
}

.room-players {
    font-size: 14px;
    color: #7f8c8d;
}

.create-room-container {
    display: flex;
    gap: 15px;
    justify-content: center;
}

#room-screen {
    padding: 40px;
}

.room-header {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* 游戏模式选择界面 */
.mode-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    margin-top: 30px;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 40px;
    gap: 10px;
}

.mode-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.mode-name {
    font-size: 24px;
    font-weight: bold;
}

.mode-desc {
    font-size: 14px;
    color: #bdc3c7;
    text-align: center;
}

/* 角色图鉴界面 */
.codex-header {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    position: relative;
}

.codex-header h2 {
    font-size: 28px;
    color: #f39c12;
    margin-bottom: 10px;
}

.codex-header p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

#codex-back-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* 图鉴屏幕特殊样式：允许内容滚动 */
#codex-screen.active {
    justify-content: flex-start;
    overflow-y: auto;
}

.codex-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 30px;
    padding: 20px;
    flex: 1;
    height: calc(100vh - 150px);
    overflow: hidden;
}

.codex-character-list {
    width: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    overflow-y: auto;
    max-height: 100%;
}

.codex-char-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.codex-char-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #3498db;
}

.codex-char-item.active {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

.codex-char-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 12px;
}

.codex-char-name {
    font-weight: bold;
    font-size: 16px;
}

.codex-detail {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    overflow-y: auto;
    max-height: 100%;
}

.codex-detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.codex-detail-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 30px;
}

.codex-detail-title h3 {
    font-size: 32px;
    color: #f39c12;
    margin-bottom: 10px;
}

.codex-detail-stats {
    display: flex;
    gap: 20px;
    color: #bdc3c7;
}

.codex-detail-section {
    margin-bottom: 25px;
}

.codex-detail-section h4 {
    font-size: 18px;
    color: #3498db;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.codex-skill-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}

.codex-skill-name {
    font-size: 16px;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 8px;
}

.codex-skill-info {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #bdc3c7;
}

.codex-skill-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #ecf0f1;
}

.codex-passive-box {
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid rgba(155, 89, 182, 0.5);
    border-radius: 8px;
    padding: 15px;
}

.codex-passive-name {
    font-weight: bold;
    color: #9b59b6;
    margin-bottom: 8px;
}

.codex-passive-desc {
    font-size: 14px;
    color: #ecf0f1;
    line-height: 1.6;
}

#room-title {
    font-size: 24px;
    font-weight: bold;
}

.room-content {
    width: 100%;
    max-width: 600px;
}

.seats-container {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.seat {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    min-width: 200px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.seat.occupied {
    border-color: #3498db;
}

.seat-label {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

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

.seat-player-name {
    font-weight: bold;
    font-size: 16px;
}

.seat-status {
    font-size: 14px;
    color: #27ae60;
}

.seat-status.waiting {
    color: #f39c12;
}

#select-screen {
    padding: 20px 40px;
    display: none;
    flex-direction: column;
    height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    justify-content: flex-start;
    padding-top: 40px;
}

#select-screen.active {
    display: flex;
}

.select-header {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.select-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

#select-prompt {
    color: #f39c12;
    font-size: 14px;
}

/* 玩家名字显示区域 */
.player-names-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.player-name-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.seat-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-name {
    font-size: 18px;
    font-weight: bold;
    color: #ecf0f1;
}

.my-player-tag .player-name {
    color: #3498db;
}

.opponent-player-tag .player-name {
    color: #e74c3c;
}

.vs-divider {
    font-size: 20px;
    font-weight: bold;
    color: #f39c12;
    padding: 0 15px;
}

.characters-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    align-content: center;
}

.character-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 10px;
    width: 100%;
    min-width: 0;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.character-card:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: #3498db;
    transform: translateY(-5px);
}

.character-card.selected {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

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

/* 角色头像样式 */
.char-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: all 0.5s ease; /* 平滑过渡状态效果 */
}

/* 眩晕效果：旋转 */
@keyframes dizzy-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stunned-avatar {
    animation: dizzy-rotate 3s linear infinite;
    filter: sepia(0.5) hue-rotate(260deg) saturate(1.5); /* 略微变色提示状态 */
    box-shadow: 0 0 15px #9b59b6;
}

/* 恐惧效果：僵直颤抖与逃跑（略微缩小并向后倾斜） */
@keyframes fear-tremble {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-2px, -2px) rotate(-1deg); }
    50% { transform: translate(2px, 2px) rotate(1deg); }
    75% { transform: translate(-2px, 2px) rotate(-1deg); }
    100% { transform: translate(2px, -2px) rotate(1deg); }
}

.feared-avatar {
    animation: fear-tremble 0.15s linear infinite;
    transform: scale(0.9) skewX(-5deg); /* 表现出缩成一团和想逃跑的姿态 */
    filter: grayscale(0.5) contrast(1.2);
    box-shadow: 0 0 15px #e74c3c;
}

.mordekaiser-avatar {
    background: url('images/avatars/mordekaiser.jpg') center top/cover no-repeat;
    position: relative;
}

/* 移除默认emoji */
.mordekaiser-avatar::after {
    content: none;
}

.leidian-avatar {
    background: url('images/avatars/leidian.jpg') center/cover no-repeat;
    position: relative;
}

/* 移除默认的emoji */
.leidian-avatar::after {
    content: none;
}

.palesasi-avatar {
    background: url('images/avatars/palesasi.jpg') center/cover no-repeat;
    position: relative;
}

/* 移除默认的emoji */
.palesasi-avatar::after {
    content: none;
}

.kairui-avatar {
    background: url('images/avatars/kairui.jpg') center/cover no-repeat;
    position: relative;
}

/* 移除默认的emoji */
.kairui-avatar::after {
    content: none;
}

/* 拾凯头像 - 使用图片 */
.shikai-avatar {
    background: url('images/avatars/shikai.jpg') center/cover no-repeat;
    position: relative;
}

/* 移除默认的emoji */
.shikai-avatar::after {
    content: none;
}

.posedong-avatar {
    background: url('images/avatars/posedong.jpg') center/cover no-repeat;
    position: relative;
}

/* 移除默认的emoji */
.posedong-avatar::after {
    content: none;
}

.yedi-avatar {
    background: url('images/avatars/yedi.jpg') center/cover no-repeat;
    position: relative;
}

/* 移除默认的emoji */
.yedi-avatar::after {
    content: none;
}

.keluoluosi-avatar {
    background: url('images/avatars/keluoluosi.jpg') center/cover no-repeat;
    position: relative;
}

/* 移除默认的emoji */
.keluoluosi-avatar::after {
    content: none;
}

/* 阿波罗头像样式 */
.apollo-avatar {
    background: url('images/avatars/apollo.jpg') center/cover no-repeat;
    position: relative;
}

/* 移除默认的emoji */
.apollo-avatar::after {
    content: none;
}

/* 尼德霍格头像 */
.nidhogg-avatar {
    background: url('images/avatars/nidhogg.jpg') center/cover no-repeat;
    position: relative;
}

/* 移除默认的emoji */
.nidhogg-avatar::after {
    content: none;
}

.char-name {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.char-hp {
    text-align: center;
    color: #e74c3c;
    font-size: 13px;
}

.char-desc {
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
}

.char-desc p {
    margin-bottom: 5px;
}

.selected-info {
    display: flex;
    gap: 30px;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    padding: 15px 0;
}

.selected-left, .selected-right {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

#battle-screen {
    display: none;
    padding: 20px;
    justify-content: center;
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

/* 战斗背景图 */
.battle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* 背景图暗化遮罩，确保UI可读性 */
.battle-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

#battle-screen.active {
    display: flex;
}

.battle-header {
    width: 100%;
    text-align: center;
    padding: 5px 0;
    margin-bottom: 5px;
    position: relative;
    flex-shrink: 0;
}

#battle-turn {
    font-size: 20px;
    font-weight: bold;
    color: #f39c12;
}

.surrender-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 20px;
    font-size: 14px;
}

.battle-arena {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 垂直居中 */
    width: 100%;
    max-width: 1000px;
    gap: 10px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.player-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    width: 300px; /* 略微减小面板宽度 */
}

.player-name-label {
    font-size: 14px;
    color: #3498db;
    margin-bottom: 10px;
    text-align: center;
}

.character-display {
    display: flex;
    gap: 15px;
}

.character-display .char-avatar {
    width: 80px;
    height: 80px;
    font-size: 32px;
    flex-shrink: 0;
}

.char-info {
    flex: 1;
}

.char-info .char-name {
    font-size: 16px;
    text-align: left;
    margin-bottom: 8px;
}

.hp-bar-container {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    position: relative;
    margin-bottom: 5px;
}

.hp-bar {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.hp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
}

.shield-bar-container {
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    position: relative;
    margin-bottom: 10px;
}

.shield-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #5dade2);
    border-radius: 12px;
    transition: width 0.5s ease;
}

.shield-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    line-height: 1;
}

.stats-row {
    display: flex;
    gap: 15px;
    font-size: 12px;
    margin-bottom: 5px;
}

.stat {
    color: #bdc3c7;
}

.marks-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.mark {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.thunder-mark {
    background: #f39c12;
    color: #000;
}

.electric-mark {
    background: #9b59b6;
    color: #fff;
}

/* Buff指示器样式 */
.buff-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 4px 10px;
    background: rgba(52, 152, 219, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(52, 152, 219, 0.5);
    border-radius: 6px;
    font-size: 12px;
}

.buff-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
}

.buff-name {
    color: #3498db;
    font-weight: bold;
}

.buff-duration {
    color: #ecf0f1;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.buff-desc {
    color: #bdc3c7;
    font-size: 11px;
}

/* ========== Buff 专属图标样式 ========== */

/* 虚无之握 - 幽灵手爪 */
.buff-xuwuzhiwo .buff-icon::before {
    content: '👻';
}
.buff-xuwuzhiwo {
    background: rgba(108, 117, 125, 0.25);
    border-color: rgba(108, 117, 125, 0.5);
}
.buff-xuwuzhiwo .buff-name {
    color: #6c757d;
}

/* 黑暗将至 - 蝙蝠/月亮 */
.buff-heianjiangzhi .buff-icon::before {
    content: '🦇';
}
.buff-heianjiangzhi {
    background: rgba(74, 20, 140, 0.25);
    border-color: rgba(74, 20, 140, 0.5);
}
.buff-heianjiangzhi .buff-name {
    color: #7c4dff;
}

/* 无尽黑夜（觉醒）- 皇冠 */
.buff-wujinheiye .buff-icon::before {
    content: '👑';
}
.buff-wujinheiye {
    background: rgba(142, 68, 173, 0.25);
    border-color: rgba(142, 68, 173, 0.5);
}
.buff-wujinheiye .buff-name {
    color: #8e44ad;
}

/* 恐惧 - 恐怖表情 */
.buff-kongju .buff-icon::before {
    content: '😱';
}
.buff-kongju {
    background: rgba(155, 89, 182, 0.25);
    border-color: rgba(155, 89, 182, 0.5);
}
.buff-kongju .buff-name {
    color: #9b59b6;
}

/* 光之守护 - 盾牌 */
.buff-guangzhishouhu .buff-icon::before {
    content: '🛡️';
}
.buff-guangzhishouhu {
    background: rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.5);
}
.buff-guangzhishouhu .buff-name {
    color: #ffd700;
}

/* 光剑 - 剑 */
.buff-guangjian .buff-icon::before {
    content: '⚔️';
}
.buff-guangjian {
    background: rgba(255, 193, 7, 0.25);
    border-color: rgba(255, 193, 7, 0.5);
}
.buff-guangjian .buff-name {
    color: #ffc107;
}

/* 霸体 - 金刚/护盾 */
.buff-bati .buff-icon::before {
    content: '💪';
}
.buff-bati {
    background: rgba(241, 196, 15, 0.25);
    border-color: rgba(241, 196, 15, 0.5);
}
.buff-bati .buff-name {
    color: #f1c40f;
}

/* 烟 - 香烟 */
.buff-yan .buff-icon::before {
    content: '🚬';
}
.buff-yan {
    background: rgba(108, 117, 125, 0.25);
    border-color: rgba(108, 117, 125, 0.5);
}
.buff-yan .buff-name {
    color: #adb5bd;
}

/* 机械之心 - 齿轮/心脏 */
.buff-jixiezhixin .buff-icon::before {
    content: '⚙️';
}
.buff-jixiezhixin {
    background: rgba(0, 150, 136, 0.25);
    border-color: rgba(0, 150, 136, 0.5);
}
.buff-jixiezhixin .buff-name {
    color: #009688;
}

/* 铁铠 - 文字样式，无图标 */
.buff-tiekai {
    background: rgba(108, 117, 125, 0.25);
    border-color: rgba(108, 117, 125, 0.5);
}
.buff-tiekai .buff-name {
    color: #adb5bd;
}

/* 轮回绝境（结界）- 地狱火 */
.buff-lunhuijuejing .buff-icon::before {
    content: '🔥';
}
.buff-lunhuijuejing {
    background: rgba(231, 76, 60, 0.25);
    border-color: rgba(231, 76, 60, 0.5);
}
.buff-lunhuijuejing .buff-name {
    color: #e74c3c;
}

/* 圣光结界 - 十字架/圣光 */
.buff-shengguangjiejie .buff-icon::before {
    content: '✨';
}
.buff-shengguangjiejie {
    background: rgba(255, 193, 7, 0.25);
    border-color: rgba(255, 193, 7, 0.5);
}
.buff-shengguangjiejie .buff-name {
    color: #ffc107;
}

/* 攻击力提升 - 剑/力量 */
.buff-attackup .buff-icon::before {
    content: '⚔️';
}
.buff-attackup {
    background: rgba(231, 76, 60, 0.25);
    border-color: rgba(231, 76, 60, 0.5);
}
.buff-attackup .buff-name {
    color: #e74c3c;
}

/* 暴击提升 - 爆炸/星星 */
.buff-critup .buff-icon::before {
    content: '💥';
}
.buff-critup {
    background: rgba(243, 156, 18, 0.25);
    border-color: rgba(243, 156, 18, 0.5);
}
.buff-critup .buff-name {
    color: #f39c12;
}

/* 护盾 - 护盾图标 */
.buff-shield .buff-icon::before {
    content: '🛡️';
}
.buff-shield {
    background: rgba(52, 152, 219, 0.25);
    border-color: rgba(52, 152, 219, 0.5);
}
.buff-shield .buff-name {
    color: #3498db;
}

/* 眩晕 - 晕眩星星 */
.buff-xuanyun .buff-icon::before {
    content: '💫';
}
.buff-xuanyun {
    background: rgba(149, 165, 166, 0.25);
    border-color: rgba(149, 165, 166, 0.5);
}
.buff-xuanyun .buff-name {
    color: #95a5a6;
}

/* 雷标记 - 文字样式 */
.buff-thunder {
    background: rgba(241, 196, 15, 0.25);
    border-color: rgba(241, 196, 15, 0.5);
}
.buff-thunder .buff-name {
    color: #f1c40f;
}

/* 电标记 - 文字样式 */
.buff-electric {
    background: rgba(155, 89, 182, 0.25);
    border-color: rgba(155, 89, 182, 0.5);
}
.buff-electric .buff-name {
    color: #9b59b6;
}

/* 恐惧效果指示器 */
.fear-indicator {
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid rgba(155, 89, 182, 0.5);
}

.fear-indicator .buff-name {
    color: #9b59b6;
}

/* 霸体效果指示器（金色） */
.bati-indicator {
    background: rgba(241, 196, 15, 0.2);
    border: 1px solid rgba(241, 196, 15, 0.5);
}

.bati-indicator .buff-name {
    color: #f1c40f;
}

/* 光之守护指示器（金黄色） */
.lightguard-indicator {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.lightguard-indicator .buff-name {
    color: #ffd700;
}

/* 觉醒状态指示器（深紫色） */
.awakened-indicator {
    background: rgba(142, 68, 173, 0.2);
    border: 1px solid rgba(142, 68, 173, 0.5);
}

.awakened-indicator .buff-name {
    color: #8e44ad;
}


.heart-indicator .buff-name {
    color: #3498db;
}

/* 圣光结界指示器（橙红色） */
.barrier-indicator {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
}

.barrier-indicator .buff-name {
    color: #e74c3c;
}

/* 波塞冬冲浪状态指示器（海蓝色） */
.surfing-indicator {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.5);
}

/* 波塞冬冲浪状态指示器（蓝色） */
.surf-indicator {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.5);
}

.surf-indicator .buff-name {
    color: #3498db;
}

/* 波塞冬水分身指示器（青色） */
.clone-indicator {
    background: rgba(26, 188, 156, 0.2);
    border: 1px solid rgba(26, 188, 156, 0.5);
}

.clone-indicator .buff-name {
    color: #1abc9c;
}

/* 波塞冬海神威祝指示器（深蓝色） */
.weizhu-indicator {
    background: rgba(41, 128, 185, 0.2);
    border: 1px solid rgba(41, 128, 185, 0.5);
}

.weizhu-indicator .buff-name {
    color: #2980b9;
}

/* 拾凯烟buff指示器（灰色） */
.smoke-indicator {
    background: rgba(149, 165, 166, 0.2);
    border: 1px solid rgba(149, 165, 166, 0.5);
}

.smoke-indicator .buff-name {
    color: #95a5a6;
}

/* 眩晕状态指示器（紫色） */
.stun-indicator {
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid rgba(155, 89, 182, 0.5);
}

.stun-indicator .buff-name {
    color: #9b59b6;
}

/* 机械之心指示器（橙色） */
.heart-indicator {
    background: rgba(230, 126, 34, 0.2);
    border: 1px solid rgba(230, 126, 34, 0.5);
}

/* 龙血沸腾指示器（红色） */
.boil-indicator {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
}

.heart-indicator .buff-name {
    color: #e67e22;
}

.must-act-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    margin-top: 5px;
}

.barrier-area {
    position: relative;
    background: rgba(44, 62, 80, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #9b59b6;
    border-radius: 12px;
    padding: 8px 15px;
    text-align: center;
    align-self: center;
    margin: 0;
    min-width: 160px;
    display: none; /* 由 JS 动态控制 display: flex */
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
    z-index: 100;
    flex-shrink: 0;
}

.barrier-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* 不同类型的结界图标颜色和发光 */
.barrier-icon.realm-barrier {
    background-color: #8e44ad;
    border: 2px solid #9b59b6;
    box-shadow: 0 0 15px #9b59b6;
}
.barrier-icon.realm-barrier::after { content: '⛓️'; font-size: 24px; display: flex; align-items: center; justify-content: center; height: 100%; }

.barrier-icon.holy-barrier {
    background-color: #f1c40f;
    border: 2px solid #f39c12;
    box-shadow: 0 0 15px #f1c40f;
}
.barrier-icon.holy-barrier::after { content: '🛡️'; font-size: 24px; display: flex; align-items: center; justify-content: center; height: 100%; }

.barrier-icon.gale-weather {
    background-color: #3498db;
    border: 2px solid #2980b9;
    box-shadow: 0 0 15px #3498db;
}
.barrier-icon.gale-weather::after { content: '🌪️'; font-size: 24px; display: flex; align-items: center; justify-content: center; height: 100%; }

.barrier-icon.jinmie-domain {
    background-color: #c0392b;
    border: 2px solid #e74c3c;
    box-shadow: 0 0 20px #e74c3c;
    animation: pulse-red 2s infinite;
}
.barrier-icon.jinmie-domain::after { content: '🔥'; font-size: 24px; display: flex; align-items: center; justify-content: center; height: 100%; }

@keyframes pulse-red {
    0% { box-shadow: 0 0 10px #e74c3c; }
    50% { box-shadow: 0 0 25px #ff0000; }
    100% { box-shadow: 0 0 10px #e74c3c; }
}

.barrier-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#barrier-owner {
    font-weight: bold;
    color: #9b59b6;
}

#barrier-duration {
    font-size: 12px;
    color: #bdc3c7;
}

.skills-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 800px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.skill-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(52, 152, 219, 0.5);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.skill-btn:hover:not(.disabled):not(.passive) {
    background: rgba(52, 152, 219, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: #5dade2;
    transform: translateY(-2px);
}

.skill-btn.selected {
    background: rgba(39, 174, 96, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: #27ae60;
}

.skill-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #7f8c8d;
}

/* 【权限控制】等待状态下的技能按钮样式 */
.skill-btn.waiting {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #7f8c8d;
    background: rgba(127, 140, 141, 0.1);
}

.skill-btn.passive {
    border-color: #9b59b6;
    cursor: default;
}

.skill-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.skill-info {
    font-size: 12px;
    color: #bdc3c7;
}

.skill-speed {
    color: #f39c12;
}

.skill-uses {
    color: #e74c3c;
}

.skill-passive-label {
    color: #9b59b6;
    font-size: 11px;
}

/* 技能悬停提示框 */
.skill-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 12px 16px;
    max-width: 280px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.skill-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #3498db transparent transparent transparent;
}

.tooltip-title {
    font-size: 16px;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 8px;
}

.tooltip-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tooltip-tag {
    background: rgba(52, 152, 219, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #ecf0f1;
}

.tooltip-desc {
    font-size: 13px;
    color: #bdc3c7;
    line-height: 1.5;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ========== 战斗日志样式 ========== */

.battle-log-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-width: 90%;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #3498db;
    border-radius: 12px;
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 100;
}

/* 收起状态 */
.battle-log-container.collapsed {
    height: 80px;
}

/* 展开状态 */
.battle-log-container.expanded {
    height: 300px;
}

.battle-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(52, 152, 219, 0.2);
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
}

.battle-log-title {
    font-size: 16px;
    font-weight: bold;
    color: #3498db;
}

.battle-log-turn {
    font-size: 14px;
    color: #f39c12;
}

.battle-log-content {
    padding: 10px 15px;
    overflow-y: auto;
    height: calc(100% - 80px);
}

/* 回合分隔线 */
.log-turn-divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
    color: #7f8c8d;
    font-size: 12px;
}

.log-turn-divider::before,
.log-turn-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(127, 140, 141, 0.5);
    margin: 0 10px;
}

/* 当前回合高亮 */
.log-turn-divider.current {
    color: #f39c12;
    font-weight: bold;
}

.log-turn-divider.current::before,
.log-turn-divider.current::after {
    background: rgba(243, 156, 18, 0.5);
}

/* 日志条目 */
.log-entry {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    line-height: 1.5;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry-left {
    color: #3498db;
}

.log-entry-right {
    color: #e74c3c;
}

.log-skill-name {
    font-weight: bold;
    color: #f39c12;
}

.log-speed {
    color: #9b59b6;
}

.log-damage {
    font-weight: bold;
    color: #e74c3c;
}

.log-effect {
    color: #27ae60;
    font-style: italic;
}

/* 效果行样式（单独显示增益效果） */
.log-effect-entry {
    padding: 4px 0 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    margin-left: 20px;
}

.log-effect-entry:last-child {
    border-bottom: none;
}

/* 详细信息标记（暴击、闪避等） */
.log-detail {
    color: #f39c12;
    font-weight: bold;
    font-size: 11px;
}

/* 展开/收起按钮 */
.battle-log-toggle {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 20px;
    background: rgba(52, 152, 219, 0.3);
    border: 1px solid #3498db;
    border-radius: 15px;
    color: #3498db;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.battle-log-toggle:hover {
    background: rgba(52, 152, 219, 0.5);
}

#result-screen {
    text-align: center;
}

.result-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px 60px;
}

#result-title {
    font-size: 36px;
    margin-bottom: 20px;
}

#result-title.victory {
    color: #27ae60;
}

#result-title.defeat {
    color: #e74c3c;
}

#result-message {
    font-size: 18px;
    color: #bdc3c7;
    margin-bottom: 30px;
}

#toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    animation: fadeIn 0.3s ease;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.toast.error {
    background: rgba(255,  100, 100, 1);
    box-shadow: 0 0 30px rgba(255, 100, 100, 0.8), 0 0 60px rgba(255, 100, 100, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 150, 150, 0.8);
}

.toast.success {
    background: rgba(39, 174, 96, 0.9);
}

.toast.info {
    background: rgba(52, 152, 219, 0.9);
}

.toast.warning {
    background: rgba(243, 156, 18, 0.9);
    color: #000;
    font-weight: bold;
}

.toast.black {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 倒计时提示框样式 */
.countdown-toast {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    min-width: 250px;
}

.countdown-message {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.countdown-timer {
    font-size: 32px;
    font-weight: bold;
    color: #f39c12;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    15% {
        opacity: 1;
        transform: translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==================== 克罗落斯命运重写样式 ==================== */

/* 命运重写选项容器 */
.fate-rewrite-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* 命运重写选项按钮 */
.fate-rewrite-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.3));
    border: 2px solid #9b59b6;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.fate-rewrite-btn:hover {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.4), rgba(142, 68, 173, 0.5));
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}

.fate-rewrite-btn strong {
    font-size: 16px;
    color: #f39c12;
    margin-bottom: 5px;
}

.fate-rewrite-btn span {
    font-size: 13px;
    color: #bdc3c7;
    line-height: 1.4;
}

/* 命运标记样式 */
.fate-mark {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

/* 宿命标记样式 */
.suoming-mark {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

/* 问题1修复：添加shake动画用于提示用户 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
}

/* 问题1修复：添加加载动画 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(243, 156, 18, 0.3);
    border-top: 4px solid #f39c12;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== 技能按钮样式（开发中标记） ==================== */

.skill-disabled {
    position: relative;
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    border: 2px solid #7f8c8d !important;
    pointer-events: none;
}

.skill-dev-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ==================== 伪同步回合结果样式 ==================== */

.sync-result-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #f39c12;
    border-radius: 15px;
    padding: 30px 40px;
    z-index: 2000;
    min-width: 400px;
    max-width: 600px;
    box-shadow: 0 0 50px rgba(243, 156, 18, 0.5);
}

.sync-result-title {
    font-size: 24px;
    font-weight: bold;
    color: #f39c12;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.sync-action {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
}

.sync-action.right {
    border-left-color: #e74c3c;
}

.sync-player {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.sync-skill {
    font-size: 14px;
    color: #f39c12;
    margin-bottom: 8px;
}

.sync-damage {
    font-size: 14px;
    color: #e74c3c;
    font-weight: bold;
}

.sync-dodge {
    font-size: 14px;
    color: #27ae60;
    font-style: italic;
}

.sync-effect {
    font-size: 12px;
    color: #9b59b6;
    margin-top: 5px;
}

.sync-outcome {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
}

.sync-outcome.draw {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.2);
    border: 2px solid #f39c12;
}

.sync-outcome.win {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.2);
    border: 2px solid #27ae60;
}

/* 战斗结束覆盖层 */
.battle-end-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.battle-end-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(50, 50, 50, 0.95));
    border: 3px solid #f39c12;
    border-radius: 20px;
    padding: 50px 70px;
    text-align: center;
    box-shadow: 0 0 60px rgba(243, 156, 18, 0.5);
}

.battle-end-title {
    font-size: 42px;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.8);
}

.battle-end-message {
    font-size: 20px;
    color: #fff;
    margin-bottom: 30px;
}

.battle-end-hp {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    font-size: 16px;
    color: #bdc3c7;
}

.battle-end-btn {
    padding: 15px 40px;
    font-size: 18px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.battle-end-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.6);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #f39c12;
}

.modal-body {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.number-btn {
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    background: rgba(52, 152, 219, 0.3);
    border: 2px solid #3498db;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.number-btn:hover {
    background: rgba(52, 152, 219, 0.5);
}

.number-btn.selected {
    background: #27ae60;
    border-color: #27ae60;
}

.number-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.selected-numbers {
    margin: 15px 0;
    font-size: 14px;
    color: #bdc3c7;
}

.damage-popup {
    position: fixed;
    font-size: 32px;
    font-weight: bold;
    color: #e74c3c;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 10px rgba(0, 0, 0, 0.8);
    animation: damageFloat 1s ease-out forwards;
    z-index: 3000;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.damage-popup.crit {
    color: #f39c12;
    font-size: 42px;
    text-shadow: 
        -3px -3px 0 #000,
        3px -3px 0 #000,
        -3px 3px 0 #000,
        3px 3px 0 #000,
        0 0 15px rgba(243, 156, 18, 0.8);
}

.damage-popup.heal {
    color: #27ae60;
    font-size: 32px;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 10px rgba(39, 174, 96, 0.8);
}

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

.empty-room-list {
    text-align: center;
    color: #7f8c8d;
    padding: 40px;
}

/* 收起后的等待提示小图标 */
.waiting-indicator {
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(26, 26, 46, 0.95);
    border: 2px solid #3498db;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 13px;
}

.waiting-indicator:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.waiting-indicator-icon {
    font-size: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.waiting-indicator-text {
    font-size: 14px;
    color: #3498db;
    font-weight: bold;
}

.waiting-indicator-close {
    font-size: 18px;
    color: #888;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 5px;
    transition: color 0.2s ease;
}

.waiting-indicator-close:hover {
    color: #e74c3c;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 收起按钮样式 */
.modal-collapse-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.modal-content {
    position: relative;
}

/* 同速时同时结果样式 */
.simultaneous-result-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 200px;
    z-index: 1000;
    pointer-events: none;
}

.simultaneous-result {
    text-align: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.simultaneous-result.show {
    opacity: 1;
    transform: scale(1);
}

.result-miss {
    font-size: 72px;
    font-weight: bold;
    color: #3498db;
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
    animation: missAnimation 0.6s ease-out;
}

@keyframes missAnimation {
    0% {
        opacity: 0;
        transform: scale(2) rotate(-10deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.result-text {
    font-size: 18px;
    color: #888;
    margin-top: 10px;
}

.result-damage {
    font-size: 96px;
    font-weight: bold;
    color: #e74c3c;
    text-shadow: 0 0 30px rgba(231, 76, 60, 0.8);
    animation: damagePop 0.5s ease-out;
}

.result-damage.crit {
    font-size: 120px;
    color: #f39c12;
    text-shadow: 
        0 0 30px rgba(243, 156, 18, 0.8),
        0 0 60px rgba(243, 156, 18, 0.4);
    animation: critPop 0.6s ease-out;
}

@keyframes damagePop {
    0% {
        opacity: 0;
        transform: scale(0) translateY(50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes critPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-20deg);
    }
    30% {
        opacity: 1;
        transform: scale(1.5) rotate(10deg);
    }
    60% {
        transform: scale(0.9) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.crit-text {
    font-size: 36px;
    font-weight: bold;
    color: #f39c12;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.8);
    margin-top: 10px;
    animation: critTextAnimation 0.4s ease-out 0.3s both;
}

@keyframes critTextAnimation {
    0% {
        opacity: 0;
        transform: scale(0) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.shield-text {
    font-size: 14px;
    color: #3498db;
    margin-top: 5px;
}

/* 数字选择网格 */
.number-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.number-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid #34495e;
    background: rgba(52, 73, 94, 0.3);
    color: #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.number-btn:hover {
    background: rgba(52, 152, 219, 0.4);
    border-color: #3498db;
}

.number-btn.selected {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

/* ==================== 倒计时样式 ==================== */
.countdown-display {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    z-index: 1000;
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

/* ==================== 猜拳界面样式 ==================== */
.rps-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.rps-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(243, 156, 18, 0.5);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 50px rgba(243, 156, 18, 0.3);
}

.rps-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

#rps-message {
    font-size: 18px;
    color: #f39c12;
    margin-bottom: 30px;
    font-weight: bold;
}

.rps-choices {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.rps-btn {
    width: 100px;
    height: 100px;
    font-size: 36px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.rps-btn:hover {
    background: rgba(243, 156, 18, 0.3);
    border-color: #f39c12;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
}

.rps-btn.selected {
    background: #f39c12;
    border-color: #f39c12;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.6);
}

.rps-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

#rps-status {
    font-size: 16px;
    color: #888;
    min-height: 24px;
}

/* ==================== 猜拳胜者通知样式 ==================== */
.rps-winner-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.5);
    z-index: 1500;
    animation: notificationSlide 0.5s ease-out;
    transition: opacity 0.5s ease;
}

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

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 24px;
}

.notification-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==================== 猜拳警告提示样式 ==================== */
.rps-warning {
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    animation: warningPulse 0.3s ease-out;
}

@keyframes warningPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 猜拳按钮禁用样式 */
.rps-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ========== 备案信息样式 ========== */
.beian-info {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 12px;
    color: #666;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 4px;
}

.beian-info a {
    color: #999;
    text-decoration: none;
}

.beian-info a:hover {
    color: #ccc;
}

/* ==================== 结界过场动画（超帅版） ==================== */

/* 结界动画容器 */
.realm-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    overflow: hidden;
}

.realm-animation-overlay.active {
    display: flex;
}

/* 结界动画内部容器样式 */
.realm-bg-effect,
.realm-particles,
.realm-special-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.realm-bg-effect {
    z-index: 1;
}

.realm-particles {
    z-index: 2;
}

.realm-special-effects {
    z-index: 3;
}

.realm-title {
    z-index: 10;
}

/* ========== 轮回绝境（莫德凯撒）- 地狱业火风格 ========== */
.realm-animation-overlay.realm-barrier {
    background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.95) 70%);
}

/* 地狱火背景 */
.hellfire-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 80%, rgba(255, 69, 0, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 0, 0, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at center bottom, rgba(139, 0, 0, 0.8) 0%, transparent 60%);
    animation: hellfirePulse 2s ease-in-out infinite;
}

@keyframes hellfirePulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* 业火粒子 */
.hellfire-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ff4500 0%, #ff0000 50%, transparent 70%);
    border-radius: 50%;
    animation: hellfireRise 2.5s ease-out infinite;
    box-shadow: 0 0 10px #ff4500, 0 0 20px #ff0000;
}

@keyframes hellfireRise {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1.5);
    }
    90% {
        opacity: 0.8;
        transform: translateY(10vh) scale(1);
    }
    100% {
        transform: translateY(-10vh) scale(0);
        opacity: 0;
    }
}

/* 地狱锁链 */
.hell-chain {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 4px solid transparent;
    border-top-color: #8b0000;
    border-right-color: #ff4500;
    border-radius: 50%;
    animation: chainRotate 4s linear infinite;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.8), inset 0 0 30px rgba(255, 69, 0, 0.3);
}

.hell-chain::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid transparent;
    border-bottom-color: #ff0000;
    border-left-color: #8b0000;
    border-radius: 50%;
    animation: chainRotateReverse 3s linear infinite;
}

@keyframes chainRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes chainRotateReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* ========== 圣光庇佑（凯瑞尔）- 神圣天使风格 ========== */
.realm-animation-overlay.holy-barrier {
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.3) 0%, rgba(0, 0, 0, 0.9) 70%);
}

/* 圣光背景 */
.holy-light-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center top, rgba(255, 255, 200, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(255, 215, 0, 0.3) 0%, transparent 60%);
    animation: holyLightPulse 2s ease-in-out infinite;
}

@keyframes holyLightPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* 圣光粒子 */
.holy-light-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffffff 0%, #ffd700 50%, transparent 70%);
    border-radius: 50%;
    animation: holyLightFloat 3s ease-in-out infinite;
    box-shadow: 0 0 15px #ffffff, 0 0 30px #ffd700;
}

@keyframes holyLightFloat {
    0%, 100% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(20px) scale(1.5);
    }
    50% {
        transform: translateY(50vh) translateX(-20px) scale(1);
    }
    90% {
        opacity: 0.9;
        transform: translateY(10vh) translateX(10px) scale(1.2);
    }
    100% {
        transform: translateY(-10vh) translateX(0) scale(0);
        opacity: 0;
    }
}

/* 天使光环 */
.angel-ring {
    position: absolute;
    width: 300px;
    height: 100px;
    border: 5px solid rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    animation: angelRingFloat 3s ease-in-out infinite;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.8),
        inset 0 0 40px rgba(255, 255, 200, 0.3);
}

.angel-ring::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 30px solid rgba(255, 215, 0, 0.9);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes angelRingFloat {
    0%, 100% { transform: translateY(0) rotateX(60deg); }
    50% { transform: translateY(-30px) rotateX(60deg); }
}

/* 圣光射线 */
.holy-ray {
    position: absolute;
    width: 2px;
    height: 100vh;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: holyRayShine 2s ease-in-out infinite;
}

@keyframes holyRayShine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ========== 剧烈狂风（叶天帝）- 风暴龙卷风风格 ========== */
.realm-animation-overlay.gale-weather {
    background: radial-gradient(ellipse at center, rgba(0, 100, 200, 0.3) 0%, rgba(0, 0, 0, 0.9) 70%);
}

/* 风暴背景 */
.storm-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 150, 255, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 50%, rgba(100, 200, 255, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at center, rgba(0, 100, 200, 0.2) 0%, transparent 60%);
    animation: stormPulse 1.5s ease-in-out infinite;
}

@keyframes stormPulse {
    0%, 100% { opacity: 0.7; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(5deg); }
}

/* 风刃粒子 */
.wind-blade {
    position: absolute;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(150, 220, 255, 0.9), transparent);
    border-radius: 50%;
    animation: windBladeFly 1.5s linear infinite;
    box-shadow: 0 0 15px rgba(100, 200, 255, 0.8);
}

@keyframes windBladeFly {
    0% {
        transform: translateX(-200px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 200px)) rotate(20deg);
        opacity: 0;
    }
}

/* 龙卷风 */
.tornado {
    position: absolute;
    width: 200px;
    height: 400px;
    animation: tornadoSpin 1s linear infinite;
}

.tornado-layer {
    position: absolute;
    border: 3px solid rgba(100, 200, 255, 0.6);
    border-radius: 50%;
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: tornadoLayerSpin 2s linear infinite;
}

.tornado-layer:nth-child(1) {
    width: 200px;
    height: 60px;
    top: 0;
    left: 0;
    animation-duration: 0.8s;
}

.tornado-layer:nth-child(2) {
    width: 150px;
    height: 45px;
    top: 80px;
    left: 25px;
    animation-duration: 0.6s;
}

.tornado-layer:nth-child(3) {
    width: 100px;
    height: 30px;
    top: 150px;
    left: 50px;
    animation-duration: 0.4s;
}

.tornado-layer:nth-child(4) {
    width: 60px;
    height: 18px;
    top: 200px;
    left: 70px;
    animation-duration: 0.3s;
}

@keyframes tornadoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes tornadoLayerSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 闪电效果 */
.lightning {
    position: absolute;
    width: 3px;
    height: 150px;
    background: linear-gradient(to bottom, #ffffff, #00bfff, transparent);
    opacity: 0;
    animation: lightningFlash 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px #00bfff);
}

@keyframes lightningFlash {
    0%, 90%, 100% { opacity: 0; }
    92%, 96% { opacity: 1; }
    94% { opacity: 0.3; }
}

/* ========== 结界标题通用样式 ========== */
.realm-title {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: realmTitleAppear 0.8s ease-out;
}

.realm-title-main {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 10px;
    animation: realmTitlePulse 2s ease-in-out infinite;
}

.realm-title-sub {
    font-size: 24px;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes realmTitleAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes realmTitlePulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 30px currentColor, 0 0 60px currentColor;
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 50px currentColor, 0 0 100px currentColor, 0 0 150px currentColor;
    }
}

/* 轮回绝境标题颜色 */
.realm-animation-overlay.realm-barrier .realm-title-main {
    color: #ff4500;
    text-shadow: 
        0 0 30px #ff0000,
        0 0 60px #8b0000,
        0 0 90px #ff4500;
}

.realm-animation-overlay.realm-barrier .realm-title-sub {
    color: #ff6347;
}

/* 圣光庇佑标题颜色 */
.realm-animation-overlay.holy-barrier .realm-title-main {
    color: #ffd700;
    text-shadow: 
        0 0 30px #ffffff,
        0 0 60px #ffd700,
        0 0 90px #ffff00;
}

.realm-animation-overlay.holy-barrier .realm-title-sub {
    color: #ffec8b;
}

/* 剧烈狂风标题颜色 */
.realm-animation-overlay.gale-weather .realm-title-main {
    color: #00bfff;
    text-shadow: 
        0 0 30px #ffffff,
        0 0 60px #00bfff,
        0 0 90px #0099ff;
}

.realm-animation-overlay.gale-weather .realm-title-sub {
    color: #87ceeb;
}

/* ==================== 超帅变身特效 ==================== */

/* 变身动画遮罩层 */
.transformation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3500;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.transformation-overlay.active {
    display: flex;
}

/* ========== 无尽黑夜（帕尔萨斯）- 暗夜魔王觉醒 ========== */
.transformation-overlay.endless-night {
    background: radial-gradient(ellipse at center, rgba(75, 0, 130, 0.3) 0%, rgba(0, 0, 0, 0.95) 70%);
}

/* 暗夜背景 */
.night-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 70%, rgba(138, 43, 226, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(75, 0, 130, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(25, 25, 112, 0.5) 0%, transparent 60%);
    animation: nightPulse 2s ease-in-out infinite;
}

@keyframes nightPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* 血月 */
.blood-moon {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #8b0000);
    border-radius: 50%;
    box-shadow: 
        0 0 60px rgba(255, 0, 0, 0.8),
        0 0 120px rgba(139, 0, 0, 0.5),
        inset -20px -20px 50px rgba(0, 0, 0, 0.5);
    animation: bloodMoonPulse 3s ease-in-out infinite;
}

@keyframes bloodMoonPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 60px rgba(255, 0, 0, 0.8), 0 0 120px rgba(139, 0, 0, 0.5);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 100px rgba(255, 0, 0, 1), 0 0 200px rgba(139, 0, 0, 0.8);
    }
}

/* 蝙蝠群 */
.bat {
    position: absolute;
    width: 30px;
    height: 20px;
    background: #000;
    clip-path: polygon(50% 0%, 100% 50%, 80% 100%, 50% 80%, 20% 100%, 0% 50%);
    animation: batFly 4s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes batFly {
    0% {
        transform: translateX(-100px) translateY(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    25% {
        transform: translateX(25vw) translateY(-50px) scale(1);
    }
    50% {
        transform: translateX(50vw) translateY(0) scale(0.8);
    }
    75% {
        transform: translateX(75vw) translateY(50px) scale(1);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(0) scale(0.5);
        opacity: 0;
    }
}

/* 暗影触手 */
.shadow-tentacle {
    position: absolute;
    width: 10px;
    height: 300px;
    background: linear-gradient(to top, transparent, rgba(75, 0, 130, 0.8), transparent);
    border-radius: 50%;
    animation: tentacleWave 3s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes tentacleWave {
    0%, 100% { 
        transform: rotate(-10deg) scaleY(0.8);
        opacity: 0.5;
    }
    50% { 
        transform: rotate(10deg) scaleY(1.2);
        opacity: 0.8;
    }
}

/* 觉醒光环 */
.awakening-aura {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 3px solid rgba(138, 43, 226, 0.6);
    border-radius: 50%;
    animation: auraExpand 2s ease-out infinite;
    box-shadow: 
        0 0 50px rgba(138, 43, 226, 0.8),
        inset 0 0 50px rgba(75, 0, 130, 0.4);
}

@keyframes auraExpand {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ========== 日冕引爆（阿波罗）- 太阳神降临 ========== */
.transformation-overlay.solar-detonation {
    background: radial-gradient(ellipse at center, rgba(255, 140, 0, 0.3) 0%, rgba(0, 0, 0, 0.95) 70%);
}

/* 太阳背景 */
.sun-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(255, 215, 0, 0.5) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 30%, rgba(255, 140, 0, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(255, 69, 0, 0.3) 0%, transparent 50%);
    animation: sunPulse 1.5s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* 太阳核心 */
.sun-core {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 40% 40%, #ffff00, #ff8c00, #ff4500);
    border-radius: 50%;
    box-shadow: 
        0 0 80px rgba(255, 215, 0, 1),
        0 0 160px rgba(255, 140, 0, 0.8),
        0 0 240px rgba(255, 69, 0, 0.5),
        inset -30px -30px 80px rgba(255, 69, 0, 0.8);
    animation: sunCoreRotate 4s linear infinite;
}

@keyframes sunCoreRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

/* 太阳光芒 */
.sun-ray {
    position: absolute;
    width: 4px;
    height: 400px;
    background: linear-gradient(to bottom, transparent, #ffd700, #ff8c00, transparent);
    transform-origin: center center;
    animation: sunRayRotate 3s linear infinite;
}

@keyframes sunRayRotate {
    0% { transform: rotate(0deg); opacity: 0.6; }
    50% { opacity: 1; }
    100% { transform: rotate(360deg); opacity: 0.6; }
}

/* 太阳耀斑 */
.solar-flare {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 215, 0, 0.6) 40%, transparent 70%);
    border-radius: 50%;
    animation: flareBurst 2s ease-out infinite;
}

@keyframes flareBurst {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* 双生形态光环 */
.dual-form-aura {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 5px solid transparent;
    border-top-color: rgba(255, 215, 0, 0.8);
    border-bottom-color: rgba(255, 69, 0, 0.8);
    border-radius: 50%;
    animation: dualAuraSpin 3s linear infinite;
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 0.6),
        inset 0 0 60px rgba(255, 69, 0, 0.3);
}

.dual-form-aura::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid transparent;
    border-left-color: rgba(255, 140, 0, 0.6);
    border-right-color: rgba(255, 140, 0, 0.6);
    border-radius: 50%;
    animation: dualAuraSpinReverse 2s linear infinite;
}

@keyframes dualAuraSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes dualAuraSpinReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* 变身标题通用样式 */
.transformation-title {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: transformTitleAppear 1s ease-out;
}

.transformation-title-main {
    font-size: 80px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 15px;
    animation: transformTitlePulse 2s ease-in-out infinite;
}

.transformation-title-sub {
    font-size: 28px;
    opacity: 0.9;
    max-width: 700px;
    line-height: 1.6;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

@keyframes transformTitleAppear {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes transformTitlePulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 40px currentColor, 0 0 80px currentColor;
    }
    50% {
        transform: scale(1.08);
        text-shadow: 0 0 60px currentColor, 0 0 120px currentColor, 0 0 180px currentColor;
    }
}

/* 无尽黑夜标题颜色 */
.transformation-overlay.endless-night .transformation-title-main {
    color: #8a2be2;
    text-shadow: 
        0 0 40px #4b0082,
        0 0 80px #8a2be2,
        0 0 120px #9400d3;
}

.transformation-overlay.endless-night .transformation-title-sub {
    color: #dda0dd;
}

/* 日冕引爆标题颜色 */
.transformation-overlay.solar-detonation .transformation-title-main {
    color: #ffd700;
    text-shadow: 
        0 0 40px #ff8c00,
        0 0 80px #ffd700,
        0 0 120px #ffff00;
}

.transformation-overlay.solar-detonation .transformation-title-sub {
    color: #ffec8b;
}

/* 变身特效容器 */
.transformation-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.transformation-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* ==================== 技能特效（超帅版）==================== */

/* 技能特效遮罩层 */
.skill-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3600;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.skill-effect-overlay.active {
    display: flex;
}

/* ========== 命运重写（克罗落斯）- 紫色时钟主题 ========== */
.skill-effect-overlay.fate-rewrite {
    background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.3) 0%, rgba(0, 0, 0, 0.95) 70%);
}

/* 时钟背景 */
.clock-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(147, 112, 219, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(138, 43, 226, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 30%, rgba(75, 0, 130, 0.3) 0%, transparent 40%);
    animation: clockBgPulse 2s ease-in-out infinite;
}

@keyframes clockBgPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* 巨大时钟 */
.giant-clock {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 8px solid rgba(147, 112, 219, 0.8);
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(25, 25, 112, 0.6) 0%, rgba(0, 0, 0, 0.8) 70%);
    box-shadow: 
        0 0 60px rgba(138, 43, 226, 0.8),
        inset 0 0 60px rgba(75, 0, 130, 0.4);
    animation: clockTick 4s linear infinite;
}

.giant-clock::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #9370db, #8a2be2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px #9370db;
}

/* 时钟刻度 */
.clock-tick {
    position: absolute;
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #9370db, transparent);
    left: 50%;
    transform-origin: center bottom;
}

.clock-tick.major {
    width: 6px;
    height: 30px;
    background: linear-gradient(to bottom, #ff00ff, transparent);
}

/* 时针和分针 */
.clock-hand {
    position: absolute;
    background: linear-gradient(to top, #9370db, #ff00ff);
    transform-origin: bottom center;
    left: 50%;
    bottom: 50%;
    border-radius: 2px;
}

.clock-hand.hour {
    width: 8px;
    height: 100px;
    animation: hourHandRotate 12s linear infinite;
}

.clock-hand.minute {
    width: 6px;
    height: 140px;
    animation: minuteHandRotate 3s linear infinite;
}

@keyframes hourHandRotate {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes minuteHandRotate {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* 时间齿轮 */
.time-gear {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 4px solid rgba(147, 112, 219, 0.6);
    border-radius: 50%;
    animation: gearRotate 8s linear infinite;
}

.time-gear::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 3px dashed rgba(138, 43, 226, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@keyframes gearRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 命运符文 */
.fate-rune {
    position: absolute;
    font-size: 40px;
    color: rgba(147, 112, 219, 0.8);
    text-shadow: 0 0 20px #9370db;
    animation: runeFloat 3s ease-in-out infinite;
}

@keyframes runeFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-20px) rotate(10deg);
        opacity: 1;
    }
}

/* 时间碎片 */
.time-fragment {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.8), rgba(75, 0, 130, 0.4));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: fragmentSpin 4s linear infinite;
}

@keyframes fragmentSpin {
    0% { transform: rotate(0deg) scale(0.8); opacity: 0.4; }
    50% { transform: rotate(180deg) scale(1.2); opacity: 0.8; }
    100% { transform: rotate(360deg) scale(0.8); opacity: 0.4; }
}

/* ========== 海洋之声（波塞冬）- 蓝色海洋主题 ========== */
.skill-effect-overlay.ocean-voice {
    background: radial-gradient(ellipse at center, rgba(0, 105, 148, 0.3) 0%, rgba(0, 0, 0, 0.95) 70%);
}

/* 海洋背景 */
.ocean-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center bottom, rgba(0, 150, 200, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(0, 191, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 105, 148, 0.3) 0%, transparent 50%);
    animation: oceanWave 3s ease-in-out infinite;
}

@keyframes oceanWave {
    0%, 100% { 
        transform: scaleY(1);
        opacity: 0.7;
    }
    50% { 
        transform: scaleY(1.05);
        opacity: 1;
    }
}

/* 海浪 */
.ocean-wave {
    position: absolute;
    width: 200%;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 150, 200, 0.6), transparent);
    border-radius: 50% 50% 0 0;
    animation: waveMove 4s ease-in-out infinite;
}

@keyframes waveMove {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-30%) translateY(-20px);
    }
}

/* 海神三叉戟 */
.trident {
    position: absolute;
    width: 10px;
    height: 300px;
    background: linear-gradient(to bottom, #ffd700, #ff8c00, #8b4513);
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.trident::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(to bottom, #ffd700, #ff8c00);
    clip-path: polygon(50% 0%, 100% 40%, 80% 100%, 50% 80%, 20% 100%, 0% 40%);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
}

/* 水泡 */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(0, 191, 255, 0.4));
    animation: bubbleRise 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

@keyframes bubbleRise {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 0.8;
        transform: translateY(10vh) scale(1.1);
    }
    100% {
        transform: translateY(-10vh) scale(0);
        opacity: 0;
    }
}

/* 海怪触手 */
.sea-tentacle {
    position: absolute;
    width: 15px;
    height: 250px;
    background: linear-gradient(to top, rgba(0, 100, 150, 0.9), rgba(0, 150, 200, 0.6), transparent);
    border-radius: 50%;
    animation: tentacleWave 2s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes tentacleWave {
    0%, 100% { 
        transform: rotate(-15deg) scaleY(1);
        opacity: 0.7;
    }
    50% { 
        transform: rotate(15deg) scaleY(1.1);
        opacity: 1;
    }
}

/* 技能特效标题通用样式 */
.skill-effect-title {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: skillTitleAppear 0.8s ease-out;
}

.skill-effect-title-main {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 12px;
    animation: skillTitlePulse 2s ease-in-out infinite;
}

.skill-effect-title-sub {
    font-size: 24px;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

@keyframes skillTitleAppear {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes skillTitlePulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 40px currentColor, 0 0 80px currentColor;
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 60px currentColor, 0 0 120px currentColor, 0 0 180px currentColor;
    }
}

/* 命运重写标题颜色 */
.skill-effect-overlay.fate-rewrite .skill-effect-title-main {
    color: #9370db;
    text-shadow: 
        0 0 40px #8a2be2,
        0 0 80px #9370db,
        0 0 120px #9400d3;
}

.skill-effect-overlay.fate-rewrite .skill-effect-title-sub {
    color: #dda0dd;
}

/* 海洋之声标题颜色 */
.skill-effect-overlay.ocean-voice .skill-effect-title-main {
    color: #00bfff;
    text-shadow: 
        0 0 40px #0099cc,
        0 0 80px #00bfff,
        0 0 120px #87ceeb;
}

.skill-effect-overlay.ocean-voice .skill-effect-title-sub {
    color: #87ceeb;
}

/* 技能特效容器 */
.skill-effect-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.skill-effect-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* ========== 雷霆万钧（雷电）- 雷电风暴主题 ========== */
.skill-effect-overlay.thunder-wrath {
    background: radial-gradient(ellipse at center, rgba(75, 0, 130, 0.3) 0%, rgba(0, 0, 0, 0.95) 70%);
}

/* 雷电背景 */
.thunder-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center, rgba(138, 43, 226, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 30%, rgba(75, 0, 130, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 70%, rgba(147, 112, 219, 0.3) 0%, transparent 40%);
    animation: thunderBgPulse 0.5s ease-in-out infinite;
}

@keyframes thunderBgPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* 闪电 */
.lightning-bolt {
    position: absolute;
    width: 4px;
    height: 100vh;
    background: linear-gradient(to bottom, transparent, #fff, #9370db, transparent);
    opacity: 0;
    animation: lightningStrike 0.2s ease-out;
    filter: drop-shadow(0 0 20px #9370db) drop-shadow(0 0 40px #8a2be2);
}

@keyframes lightningStrike {
    0% { opacity: 0; transform: scaleY(0); }
    10% { opacity: 1; transform: scaleY(1); }
    90% { opacity: 1; }
    100% { opacity: 0; transform: scaleY(1); }
}

/* 雷电球 */
.thunder-orb {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, #fff, #9370db, #4b0082);
    border-radius: 50%;
    box-shadow:
        0 0 60px #9370db,
        0 0 120px #8a2be2,
        inset -20px -20px 50px rgba(75, 0, 130, 0.8);
    animation: thunderOrbPulse 0.3s ease-in-out infinite;
}

@keyframes thunderOrbPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* 雷电符文 */
.thunder-rune {
    position: absolute;
    font-size: 50px;
    color: #9370db;
    text-shadow: 0 0 30px #8a2be2, 0 0 60px #9370db;
    animation: thunderRuneFloat 1s ease-in-out infinite;
}

@keyframes thunderRuneFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 1; }
}

/* ========== 铁甲射线（拾凯）- 机械科技主题 ========== */
.skill-effect-overlay.iron-beam {
    background: radial-gradient(ellipse at center, rgba(255, 140, 0, 0.2) 0%, rgba(0, 0, 0, 0.95) 70%);
}

/* 机械背景 */
.mechanical-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center, rgba(255, 140, 0, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 69, 0, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 215, 0, 0.2) 0%, transparent 40%);
    animation: mechanicalBgPulse 1s ease-in-out infinite;
}

@keyframes mechanicalBgPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* 机械齿轮 */
.mechanical-gear {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 8px solid #ff8c00;
    border-radius: 50%;
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: gearRotate 2s linear infinite;
}

.mechanical-gear::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #ff8c00;
    border-radius: 50%;
}

.mechanical-gear::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: #000;
    border-radius: 50%;
}

@keyframes gearRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 激光束 */
.laser-beam {
    position: absolute;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, transparent, #ff4500, #ff8c00, #ff4500, transparent);
    box-shadow: 0 0 30px #ff4500, 0 0 60px #ff8c00;
    animation: laserShoot 0.5s ease-out;
}

@keyframes laserShoot {
    0% { transform: scaleX(0); opacity: 0; }
    10% { transform: scaleX(1); opacity: 1; }
    90% { opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
}

/* 机械零件 */
.mechanical-part {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff8c00;
    animation: partFloat 2s ease-in-out infinite;
}

@keyframes partFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-50px) rotate(180deg); opacity: 1; }
}

/* 能量核心 */
.energy-core {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, #ff8c00, #ff4500, #8b0000);
    border-radius: 50%;
    box-shadow:
        0 0 60px #ff8c00,
        0 0 120px #ff4500,
        inset -20px -20px 50px rgba(139, 0, 0, 0.8);
    animation: energyCorePulse 0.5s ease-in-out infinite;
}

@keyframes energyCorePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* 雷霆万钧标题颜色 */
.skill-effect-overlay.thunder-wrath .skill-effect-title-main {
    color: #9370db;
    text-shadow:
        0 0 40px #8a2be2,
        0 0 80px #9370db,
        0 0 120px #4b0082;
}

.skill-effect-overlay.thunder-wrath .skill-effect-title-sub {
    color: #dda0dd;
}

/* 铁甲射线标题颜色 */
.skill-effect-overlay.iron-beam .skill-effect-title-main {
    color: #ff8c00;
    text-shadow:
        0 0 40px #ff4500,
        0 0 80px #ff8c00,
        0 0 120px #ffd700;
}

.skill-effect-overlay.iron-beam .skill-effect-title-sub {
    color: #ffec8b;
}

/* ==================== 普通技能小特效 ==================== */

/* 小特效遮罩层 - 局部效果 */
.mini-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.mini-effect-overlay.active {
    display: flex;
}

/* 小特效内容 */
.mini-effect-content {
    position: relative;
    text-align: center;
    animation: miniEffectAppear 0.5s ease-out;
}

@keyframes miniEffectAppear {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.mini-effect-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 20px currentColor;
    animation: miniEffectPulse 1.5s ease-in-out infinite;
}

@keyframes miniEffectPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

.mini-effect-desc {
    font-size: 18px;
    opacity: 0.8;
}

/* ========== 破灭之锤（莫德凯撒）- 暗红锤击 ========== */
.mini-effect-overlay.hammer-smash {
    background: radial-gradient(circle at center, rgba(139, 0, 0, 0.4) 0%, transparent 50%);
}

.mini-effect-overlay.hammer-smash .mini-effect-title {
    color: #8b0000;
    text-shadow: 0 0 30px #ff0000, 0 0 60px #8b0000;
}

/* 巨锤 */
.giant-hammer {
    position: absolute;
    width: 120px;
    height: 200px;
    background: linear-gradient(to bottom, #4a4a4a, #2a2a2a);
    left: 50%;
    top: 20%;
    transform: translateX(-50%) rotate(-45deg);
    border-radius: 10px;
    animation: hammerStrike 0.6s ease-out;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.8);
}

.giant-hammer::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 60px;
    background: linear-gradient(to bottom, #6a6a6a, #3a3a3a);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
}

@keyframes hammerStrike {
    0% { transform: translateX(-50%) rotate(-45deg) translateY(-200px); opacity: 0; }
    50% { transform: translateX(-50%) rotate(-45deg) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) rotate(-45deg) translateY(50px); opacity: 0; }
}

/* ========== 天谴（雷电）- 雷电护盾 ========== */
.mini-effect-overlay.divine-shield {
    background: radial-gradient(circle at center, rgba(147, 112, 219, 0.3) 0%, transparent 50%);
}

.mini-effect-overlay.divine-shield .mini-effect-title {
    color: #9370db;
    text-shadow: 0 0 30px #8a2be2, 0 0 60px #9370db;
}

/* 护盾光环 */
.shield-aura {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 4px solid rgba(147, 112, 219, 0.8);
    border-radius: 50%;
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%);
    animation: shieldExpand 0.8s ease-out;
    box-shadow: 0 0 40px rgba(147, 112, 219, 0.6), inset 0 0 40px rgba(147, 112, 219, 0.3);
}

@keyframes shieldExpand {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
}

/* ========== 暗夜斩（帕尔萨斯）- 血色斩击 ========== */
.mini-effect-overlay.night-slash {
    background: radial-gradient(circle at center, rgba(75, 0, 130, 0.3) 0%, transparent 50%);
}

.mini-effect-overlay.night-slash .mini-effect-title {
    color: #8a2be2;
    text-shadow: 0 0 30px #4b0082, 0 0 60px #8a2be2;
}

/* 斩击痕迹 */
.slash-mark {
    position: absolute;
    width: 300px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #8a2be2, #ff0000, #8a2be2, transparent);
    left: 50%;
    top: 40%;
    transform: translateX(-50%) rotate(-30deg);
    animation: slashSwipe 0.4s ease-out;
    box-shadow: 0 0 20px #8a2be2, 0 0 40px #ff0000;
}

@keyframes slashSwipe {
    0% { transform: translateX(-50%) rotate(-30deg) scaleX(0); opacity: 0; }
    50% { transform: translateX(-50%) rotate(-30deg) scaleX(1); opacity: 1; }
    100% { transform: translateX(-50%) rotate(-30deg) scaleX(1); opacity: 0; }
}

/* ========== 神之审判（凯瑞尔）- 圣光裁决 ========== */
.mini-effect-overlay.divine-judgment {
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.3) 0%, transparent 50%);
}

.mini-effect-overlay.divine-judgment .mini-effect-title {
    color: #ffd700;
    text-shadow: 0 0 30px #ff8c00, 0 0 60px #ffd700;
}

/* 圣光剑 */
.divine-sword {
    position: absolute;
    width: 10px;
    height: 250px;
    background: linear-gradient(to bottom, #ffd700, #ff8c00);
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    animation: swordDescend 0.6s ease-out;
    box-shadow: 0 0 30px #ffd700, 0 0 60px #ff8c00;
}

.divine-sword::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: linear-gradient(to bottom, #ffd700, #ff8c00);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

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

/* ========== 雨满落戟（波塞冬）- 水矛穿刺 ========== */
.mini-effect-overlay.rain-spear {
    background: radial-gradient(circle at center, rgba(0, 191, 255, 0.3) 0%, transparent 50%);
}

.mini-effect-overlay.rain-spear .mini-effect-title {
    color: #00bfff;
    text-shadow: 0 0 30px #0099cc, 0 0 60px #00bfff;
}

/* 水矛 */
.water-spear {
    position: absolute;
    width: 8px;
    height: 200px;
    background: linear-gradient(to bottom, #00bfff, #0099cc);
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    animation: spearThrow 0.5s ease-out;
    box-shadow: 0 0 20px #00bfff;
}

.water-spear::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 30px solid #00bfff;
}

@keyframes spearThrow {
    0% { transform: translateX(-50%) translateY(-200px) rotate(0deg); opacity: 0; }
    50% { transform: translateX(-50%) translateY(0) rotate(180deg); opacity: 1; }
    100% { transform: translateX(-50%) translateY(100px) rotate(360deg); opacity: 0; }
}

/* ========== 狂风侵袭（叶天帝）- 风刃乱舞 ========== */
.mini-effect-overlay.wind-assault {
    background: radial-gradient(circle at center, rgba(100, 200, 255, 0.3) 0%, transparent 50%);
}

.mini-effect-overlay.wind-assault .mini-effect-title {
    color: #64c8ff;
    text-shadow: 0 0 30px #00bfff, 0 0 60px #64c8ff;
}

/* 风刃 */
.wind-blade-small {
    position: absolute;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #64c8ff, transparent);
    animation: bladeDance 0.6s ease-out;
    box-shadow: 0 0 15px #64c8ff;
}

@keyframes bladeDance {
    0% { transform: rotate(0deg) scale(0); opacity: 0; }
    50% { transform: rotate(180deg) scale(1); opacity: 1; }
    100% { transform: rotate(360deg) scale(0); opacity: 0; }
}

/* ========== 因果收割（克罗落斯）- 命运之镰 ========== */
.mini-effect-overlay.fate-reap {
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.3) 0%, transparent 50%);
}

.mini-effect-overlay.fate-reap .mini-effect-title {
    color: #8a2be2;
    text-shadow: 0 0 30px #9370db, 0 0 60px #8a2be2;
}

/* 镰刀 */
.fate-scythe {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 4px solid transparent;
    border-top-color: #8a2be2;
    border-radius: 50%;
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%) rotate(-45deg);
    animation: scytheSwing 0.6s ease-out;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.8);
}

.fate-scythe::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 150px;
    background: linear-gradient(to bottom, #8a2be2, #4b0082);
}

@keyframes scytheSwing {
    0% { transform: translate(-50%, -50%) rotate(-45deg) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) rotate(0deg) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) rotate(45deg) scale(1); opacity: 0; }
}

/* ========== 日炎冲击（阿波罗）- 太阳烈焰 ========== */
.mini-effect-overlay.solar-flame {
    background: radial-gradient(circle at center, rgba(255, 140, 0, 0.3) 0%, transparent 50%);
}

.mini-effect-overlay.solar-flame .mini-effect-title {
    color: #ff8c00;
    text-shadow: 0 0 30px #ff4500, 0 0 60px #ff8c00;
}

/* 太阳火球 */
.solar-fireball {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #ffff00, #ff8c00, #ff4500);
    border-radius: 50%;
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%);
    animation: fireballShoot 0.6s ease-out;
    box-shadow: 0 0 40px #ff8c00, 0 0 80px #ff4500;
}

@keyframes fireballShoot {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    30% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

/* ==================== 尼德霍格专属特效 ==================== */

/* ========== 终焉降临（被动）- 灭世黑龙 ========== */
.skill-effect-overlay.nidhogg-entrance {
    background: radial-gradient(ellipse at center, rgba(26, 26, 46, 0.9) 0%, rgba(0, 0, 0, 0.98) 70%);
}

.skill-effect-overlay.nidhogg-entrance .skill-effect-title-main {
    color: #8b0000;
    text-shadow:
        0 0 40px #ff0000,
        0 0 80px #8b0000,
        0 0 120px #4a0000;
}

/* 灭世黑龙虚影 */
.nidhogg-dragon-shadow {
    position: absolute;
    width: 400px;
    height: 300px;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.4) 0%, transparent 70%);
    animation: dragonShadowPulse 2s ease-in-out infinite;
}

@keyframes dragonShadowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* 龙翼 */
.nidhogg-dragon-wing {
    position: absolute;
    width: 200px;
    height: 150px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(26, 26, 46, 0.9));
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    animation: wingFlap 1s ease-in-out infinite;
}

.nidhogg-dragon-wing.left {
    left: 10%;
    top: 30%;
    transform: scaleX(-1);
}

.nidhogg-dragon-wing.right {
    right: 10%;
    top: 30%;
}

@keyframes wingFlap {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

/* ========== 龙裁决 - 龙爪撕裂 ========== */
.skill-effect-overlay.dragon-judgment {
    background: radial-gradient(circle at center, rgba(139, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.95) 60%);
}

.skill-effect-overlay.dragon-judgment .skill-effect-title-main {
    color: #ff0000;
    text-shadow:
        0 0 40px #8b0000,
        0 0 80px #ff0000,
        0 0 120px #4a0000;
}

/* 龙爪撕裂痕迹 */
.dragon-claw-tear {
    position: absolute;
    width: 300px;
    height: 100px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 0, 0, 0.9) 20%, 
        rgba(255, 0, 0, 1) 50%, 
        rgba(139, 0, 0, 0.9) 80%, 
        transparent 100%
    );
    clip-path: polygon(0 40%, 30% 0, 35% 40%, 65% 0, 70% 40%, 100% 20%, 95% 60%, 70% 100%, 65% 60%, 35% 100%, 30% 60%, 5% 80%);
    animation: clawTearSwipe 0.5s ease-out;
    box-shadow: 0 0 50px #ff0000, 0 0 100px #8b0000;
}

@keyframes clawTearSwipe {
    0% { transform: scale(0) rotate(-30deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(0deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
}

/* 龙爪印记 */
.dragon-claw-mark {
    position: absolute;
    font-size: 60px;
    color: #8b0000;
    text-shadow: 0 0 30px #ff0000;
    animation: clawMarkPulse 0.8s ease-out;
}

@keyframes clawMarkPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* ========== 龙血沸腾 - 血焰燃烧 ========== */
.skill-effect-overlay.dragon-blood-boil {
    background: radial-gradient(circle at center, rgba(139, 0, 0, 0.4) 0%, rgba(26, 26, 46, 0.9) 50%, rgba(0, 0, 0, 0.98) 70%);
}

.skill-effect-overlay.dragon-blood-boil .skill-effect-title-main {
    color: #ff4500;
    text-shadow:
        0 0 40px #ff0000,
        0 0 80px #ff4500,
        0 0 120px #8b0000;
}

/* 血焰 */
.blood-flame {
    position: absolute;
    width: 150px;
    height: 200px;
    background: linear-gradient(to top, #8b0000, #ff0000, #ff4500, transparent);
    border-radius: 50% 50% 20% 20%;
    animation: bloodFlameRise 1s ease-out;
    box-shadow: 0 0 40px #ff0000, 0 0 80px #ff4500;
}

@keyframes bloodFlameRise {
    0% { transform: scaleY(0); opacity: 0; }
    50% { transform: scaleY(1.2); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0.9; }
}

/* 血滴 */
.blood-drop {
    position: absolute;
    width: 15px;
    height: 25px;
    background: radial-gradient(ellipse at 30% 30%, #ff0000, #8b0000);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: bloodDropFall 0.8s ease-in;
}

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

/* ========== 龙鳞护体 - 黑龙鳞甲 ========== */
.mini-effect-overlay.dragon-scale {
    background: radial-gradient(circle at center, rgba(26, 26, 46, 0.5) 0%, transparent 50%);
}

.mini-effect-overlay.dragon-scale .mini-effect-title {
    color: #4a4a4a;
    text-shadow: 0 0 30px #8b0000, 0 0 60px #4a0000;
}

/* 龙鳞 */
.dragon-scale-piece {
    position: absolute;
    width: 40px;
    height: 50px;
    background: linear-gradient(135deg, #4a4a4a, #2a2a2a, #1a1a1a);
    border: 2px solid #8b0000;
    border-radius: 50% 50% 40% 40%;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.6);
    animation: scalePieceAppear 0.5s ease-out;
}

@keyframes scalePieceAppear {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
    100% { transform: scale(1) rotate(360deg); opacity: 0.9; }
}

/* 护盾破碎判定 */
.scale-break-judgment {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 4px solid #8b0000;
    border-radius: 50%;
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%);
    animation: judgmentSpin 1s ease-in-out;
}

.scale-break-judgment.success {
    border-color: #00ff00;
    box-shadow: 0 0 40px #00ff00;
}

.scale-break-judgment.fail {
    border-color: #ff0000;
    box-shadow: 0 0 40px #ff0000;
}

@keyframes judgmentSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(0); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.2); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

/* 判定文字 */
.judgment-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 20px currentColor;
}

/* ========== 亢龙有悔 - 龙爪印记 ========== */
.mini-effect-overlay.dragon-claw-mark {
    background: radial-gradient(circle at center, rgba(139, 0, 0, 0.3) 0%, transparent 50%);
}

.mini-effect-overlay.dragon-claw-mark .mini-effect-title {
    color: #8b0000;
    text-shadow: 0 0 30px #ff0000, 0 0 60px #8b0000;
}

/* 印记层数显示 */
.claw-mark-stack {
    position: absolute;
    font-size: 80px;
    color: #ff0000;
    text-shadow: 0 0 40px #8b0000, 0 0 80px #ff0000;
    animation: markStackPulse 0.8s ease-out;
}

@keyframes markStackPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

/* ========== 烬灭领域 - 终焉领域 ========== */
.skill-effect-overlay.jinmie-domain {
    background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.6) 0%, rgba(26, 26, 46, 0.9) 40%, rgba(0, 0, 0, 0.98) 70%);
}

.skill-effect-overlay.jinmie-domain .skill-effect-title-main {
    color: #ff0000;
    text-shadow:
        0 0 40px #8b0000,
        0 0 80px #ff0000,
        0 0 120px #4a0000,
        0 0 160px #ff0000;
}

/* 领域边界 */
.domain-boundary {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 10px solid transparent;
    border-image: linear-gradient(45deg, #8b0000, #ff0000, #8b0000) 1;
    animation: domainPulse 2s ease-in-out infinite;
    box-shadow: inset 0 0 100px rgba(139, 0, 0, 0.5);
}

@keyframes domainPulse {
    0%, 100% { opacity: 0.6; box-shadow: inset 0 0 100px rgba(139, 0, 0, 0.5); }
    50% { opacity: 1; box-shadow: inset 0 0 150px rgba(255, 0, 0, 0.8); }
}

/* 领域符文 */
.domain-rune {
    position: absolute;
    font-size: 40px;
    color: #8b0000;
    text-shadow: 0 0 30px #ff0000;
    animation: runeFloat 3s ease-in-out infinite;
}

@keyframes runeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 1; }
}
