/* 全局样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0;
    padding: 0.5rem 0;
    background-color: #0d6efd;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.navbar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 0.75rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

.navbar-toggler {
    padding: 0.5rem;
    border: none;
}

/* 主容器样式 */
.container {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 主页内容样式 */
.main-content {
    padding: 3rem 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 60px);
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #6c757d;
}

/* 游戏容器样式 */
.game-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

/* 战斗区域样式 */
.battle-area {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    min-height: 300px;
}

.player-side {
    width: 45%;
    text-align: center;
    position: relative;
}

/* 血条样式 */
.health-bar {
    width: 100%;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.health-bar-fill {
    height: 100%;
    transition: width 0.3s ease-in-out;
}

.health-bar-fill.red { background: #ff4444; }
.health-bar-fill.blue { background: #4444ff; }

/* 角色样式 */
.character {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.character.player {
    background-image: url('../images/player.png');
}

.character.enemy {
    background-image: url('../images/enemy.png');
}

/* 角色名称美化 */
.player-name, .enemy-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.player-name {
    color: #d32f2f;
    border: 2px solid #ef5350;
}

.enemy-name {
    color: #1565c0;
    border: 2px solid #42a5f5;
}

.player-name i, .enemy-name i {
    margin-right: 5px;
    font-size: 1.2rem;
}

.player-level-badge, .enemy-level-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 6px;
    position: relative;
    top: -1px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.player-level-badge {
    background-color: #f44336;
    color: white;
}

.enemy-level-badge {
    background-color: #2196f3;
    color: white;
}

/* 单词显示区域 */
.word-display {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

#current-word {
    font-size: 3.5rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #ffd700 20%, #fffbe7 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 24px #fffbe7,
        0 0 48px #ffd700,
        0 0 64px #fffbe7,
        0 0 128px #ffd700;
    animation: word-gold-glow 1.2s infinite alternate;
    letter-spacing: 4px;
    transition: color 0.3s;
    filter: drop-shadow(0 0 8px rgba(255, 208, 0, 0.4));
    position: relative;
    z-index: 1;
}
/*描边*/
#current-word::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-stroke: 2px rgba(255, 81, 0, 0.897);
    z-index: -1;
}

.word-translation {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    text-shadow: 
        0 0 3px #fff, 
        0 0 5px #fff,
        0 0 10px #fff;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(3px);
    letter-spacing: 1px;
}

/* 输入区域 */
.input-area {
    text-align: center;
    margin: 2rem 0;
}

.word-input {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    width: 300px;
    text-align: center;
    border: 2px solid #007bff;
    border-radius: 5px;
}

/* 按钮样式 */
.btn-game {
    margin: 0 0.5rem;
    min-width: 120px;
}

/* 提示按钮 */
.hint-button {
    background: #ffc107;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin: 1rem 0;
}

.hint-button:hover {
    background: #ffb300;
}

/* 动画效果 */
@keyframes attack {
    0% { transform: translateX(0); }
    25% { transform: translateX(50px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

@keyframes damage {
    0% { transform: translateX(0); opacity: 1; }
    25% { transform: translateX(-20px); opacity: 0.7; }
    50% { transform: translateX(10px); opacity: 0.5; }
    75% { transform: translateX(-5px); opacity: 0.7; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes victory {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.attacking { animation: attack 0.5s ease-in-out; }
.damaged { animation: damage 0.5s ease-in-out; }
.victory { animation: victory 1s ease-in-out infinite; }

/* 音量控制 */
.volume-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.volume-slider {
    width: 100px;
}

/* 音乐控制按钮 */
#toggle-bgm.active {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

#toggle-bgm:hover {
    transform: scale(1.05);
}

#toggle-bgm {
    transition: all 0.2s ease;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* 特性盒子样式 */
.feature-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.feature-box h3 {
    color: #0d6efd;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-box p {
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.6;
}

/* 统计面板样式 */
.stats-panel {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.stats-item {
    flex: 1;
    min-width: 200px;
    margin: 0.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    border: none;
}

.stats-item span:first-child {
    display: block;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.stats-item span:last-child {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

/* 会员卡片样式 */
.membership-card {
    background: linear-gradient(45deg, #1a237e, #0d47a1);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.membership-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
}

.membership-card .price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.membership-card .btn {
    width: 100%;
    margin-top: auto;
    background-color: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
    padding: 0.75rem;
    font-weight: 500;
}

.membership-card .btn:hover {
    background-color: white;
    color: #0d47a1;
    transform: translateY(-2px);
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .main-content {
        padding: 2rem 0;
    }

    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .feature-box {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-box h3 {
        font-size: 1.25rem;
    }

    .card {
        margin-bottom: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .game-container {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .battle-area {
        flex-direction: column;
        gap: 1rem;
    }
    
    .player-side {
        margin: 0;
    }
    
    .word-display {
        font-size: 2rem;
        padding: 1.5rem;
        min-height: 120px;
    }
    
    .word-input {
        font-size: 1.25rem;
        padding: 0.75rem 1rem;
    }
    
    .stats-item {
        min-width: calc(50% - 1rem);
    }
    
    .stats-item span:last-child {
        font-size: 1.5rem;
    }
    
    .membership-card {
        margin-bottom: 1rem;
    }
    
    .membership-card .price {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-logo {
        width: 24px;
        height: 24px;
        margin-right: 0.5rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .stats-item {
        min-width: 100%;
    }
    
    .word-display {
        font-size: 1.5rem;
        padding: 1rem;
        min-height: 100px;
    }
    
    .timer {
        font-size: 1.25rem;
    }
    
    .membership-card {
        padding: 1.5rem;
    }
    
    .membership-card h4 {
        font-size: 1.25rem;
    }
    
    .membership-card .price {
        font-size: 1.75rem;
    }
    
    .player-name, .enemy-name {
        font-size: 0.9rem;
        padding: 3px 10px;
    }
    
    .player-level-badge, .enemy-level-badge {
        padding: 1px 4px;
        font-size: 0.7rem;
        margin-right: 4px;
    }
    
    .player-name i, .enemy-name i {
        font-size: 0.9rem;
        margin-right: 3px;
    }
}

/* 辅助类 */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* 按钮样式 */
.btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
    transform: translateY(-2px);
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#sound-theme {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

#sound-theme option {
    padding: 0.5rem;
}

/* 添加图标到音效主题选项 */
.form-select option[value="normal"]::before {
    content: "🎵 ";
}

.form-select option[value="funny"]::before {
    content: "🎪 ";
}

.form-select option[value="crazy"]::before {
    content: "🎭 ";
}

/* 错误单词面板样式 */
.wrong-words-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wrong-words-panel h3 {
    color: #dc3545;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.wrong-words-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.wrong-word-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wrong-word-item .word {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2c3e50;
}

.wrong-word-item .translation {
    color: #6c757d;
}

.wrong-word-item .wrong-input {
    color: #dc3545;
    font-size: 0.9rem;
}

/* 退出游戏按钮样式 */
#exit-game {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

#exit-game:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

@media (max-width: 768px) {
    .wrong-words-list {
        grid-template-columns: 1fr;
    }

    .wrong-word-item {
        margin-bottom: 1rem;
    }
}

@keyframes word-gold-glow {
    0% { text-shadow: 0 0 24px #fffbe7, 0 0 48px #ffd700, 0 0 64px #fffbe7, 0 0 128px #ffd700; }
    100% { text-shadow: 0 0 48px #fffbe7, 0 0 96px #ffd700, 0 0 128px #fffbe7, 0 0 256px #ffd700; }
}

/* 乱序卡片模式样式 */
.card-container {
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.letter-cards-row, .selected-letters-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.letter-card {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #f8e9c2, #ffcc00);
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    user-select: none;
}

.letter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.letter-card.selected {
    opacity: 0.3;
    pointer-events: none;
}

.letter-card.wrong {
    background: linear-gradient(145deg, #ffbaba, #ff5252);
    animation: shake 0.5s;
}

.letter-blank {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed #ccc;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* 已选择的字母样式 */
.letter-blank:not(:empty) {
    background: linear-gradient(145deg, #e9f5ff, #c2e3ff);
    border: 2px solid #5db1ff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.letter-blank:not(:empty):hover {
    background: linear-gradient(145deg, #d9ebff, #b0d9ff);
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.letter-blank:not(:empty):hover::after {
    content: '×';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 18px;
    height: 18px;
    background: #ff5252;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

@media (max-width: 576px) {
    .letter-card, .letter-blank {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* 移动端机器人角色适配 */
@media (max-width: 576px) {
    .battle-area {
        min-height: 200px;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-around;
    }
    
    .player-side {
        width: 48%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .character {
        transform: scale(0.7);
        transform-origin: center center;
        width: 80px !important;
        height: 120px !important;
        margin: 0 auto;
    }
    
    /* 确保两侧角色大小一致 */
    .player-side.red .character, 
    .player-side.blue .character {
        transform: scale(0.7);
    }
    
    /* 修复腿部重叠问题 */
    .player-side .character .leg.left {
        left: 14px;
    }
    
    .player-side .character .leg.right {
        right: 14px;
    }
    
    .player-side h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .health-bar {
        height: 12px;
        border-radius: 6px;
        margin: 0.4rem 0;
    }
    
    #current-word {
        font-size: 2.2rem;
    }
    
    .word-input {
        width: 90%;
        max-width: 250px;
        font-size: 1.2rem;
    }
    
    /* 改进按钮布局 */
    .btn-game {
        min-width: 80px;
        margin: 0 3px;
        padding: 0.4rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .text-center .btn-game {
        margin-bottom: 10px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .battle-area {
        min-height: 180px;
    }
    
    .character {
        transform: scale(0.6) !important;
    }
    
    .player-side h3 {
        font-size: 0.8rem;
    }
    
    #current-word {
        font-size: 1.8rem;
    }
    
    /* 超小屏幕按钮布局优化 */
    .btn-game {
        min-width: 70px;
        padding: 0.35rem 0.4rem;
        font-size: 0.85rem;
        margin: 0 2px;
    }
}

.combo-counter {
    position: absolute;
    top: -10px;  /* 调整这个值来改变连击提示的垂直位置 */
    left: 180%;    /* 调整这个值来改变连击提示的水平位置（小于50%会偏左） */
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s;
}

.combo-counter.active {
    opacity: 1;
} 

/* 屏幕震动效果 - 增强版 */
@keyframes screenShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(calc(var(--shake-intensity, 5px) * -1)) translateY(calc(var(--shake-intensity, 5px) * 0.3));
    }
    50% {
        transform: translateX(calc(var(--shake-intensity, 5px) * 0.5)) translateY(calc(var(--shake-intensity, 5px) * -0.3));
    }
    75% {
        transform: translateX(calc(var(--shake-intensity, 5px) * -0.5)) translateY(calc(var(--shake-intensity, 5px) * 0.3));
    }
}

.screen-shake {
    animation: screenShake 0.4s ease-in-out;
    animation-iteration-count: 1;
}

/* 结果面板样式 */
.result-panel {
    padding: 20px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    position: relative;
    overflow: hidden; /* 确保特效不会溢出面板 */
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.result-header.win h3 {
    color: #28a745;
}

.result-header.lose h3 {
    color: #dc3545;
}

.result-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #343a40;
}

@media (max-width: 768px) {
    .result-panel {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .result-info {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .result-item {
        padding: 0.8rem;
    }
    
    .result-value {
        font-size: 1.2rem;
    }
    
    .wrong-words-panel {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .result-panel {
        padding: 1rem;
        max-width: 100%;
    }
    
    .result-info {
        grid-template-columns: 1fr 1fr;
    }
    
    .wrong-words-panel h3 {
        font-size: 1.2rem;
    }
    
    .wrong-word-item .word {
        font-size: 1.1rem;
    }
}

/* 游戏结束特效样式 */
.end-game-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

/* 基础星星特效 */
.star-effect {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    animation: starFloat 4s ease-in-out infinite, starFade 4s ease-in-out infinite, starPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9));
    z-index: 101;
}

/* 超级炫酷星星 - 3D旋转 */
.star-effect.super-3d {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 25px rgba(255, 220, 0, 1));
    transform-style: preserve-3d;
    animation: star3dFloat 6s ease-in-out infinite, 
               star3dRotate 3s linear infinite,
               starFade 6s ease-in-out infinite, 
               superStarPulse 1.5s ease-in-out infinite;
    z-index: 104;
}

/* 爆炸模式：超级星星 */
.star-effect.super {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 20px rgba(255, 220, 0, 1));
    animation: superStarFloat 6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite, 
               starFade 6s ease-in-out infinite, 
               superStarPulse 1.5s ease-in-out infinite,
               superStarRotate 3s linear infinite;
    z-index: 103;
}

/* 爆炸模式：彩色星星 */
.star-effect.colored {
    filter: hue-rotate(0deg) drop-shadow(0 0 15px rgba(255, 50, 50, 0.9));
    animation: starFloat 5s ease-in-out infinite, 
               starFade 5s ease-in-out infinite, 
               colorCycle 8s linear infinite,
               wiggle 0.5s ease-in-out infinite;
    z-index: 102;
}

/* 爆炸模式：闪电星 */
.star-effect.lightning {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFF00"><path d="M7 2v11h3v9l7-12h-4l4-8z"/></svg>');
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 0 30px rgba(255, 255, 0, 1));
    animation: lightningFloat 3s ease-in-out infinite,
               starFade 3s ease-in-out infinite,
               lightningFlash 0.3s linear infinite;
}

/* 爆炸模式：彗星 */
.star-effect.comet {
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
    animation: cometSweep 3s cubic-bezier(0.5, 0, 0.75, 0) forwards,
               cometFade 3s ease-in-out forwards;
    filter: drop-shadow(0 0 25px rgba(100, 200, 255, 0.9));
    opacity: 1;
    transform-origin: center center;
}

/* 新增：螺旋星星 */
.star-effect.spiral {
    width: 35px;
    height: 35px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFCC00"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
    filter: drop-shadow(0 0 15px rgba(255, 200, 0, 0.8));
    animation: spiralFloat 8s linear infinite, 
               spiralPulse 2s ease-in-out infinite,
               starFade 8s ease-in-out infinite;
    z-index: 102;
}

/* 新增：霓虹星星 */
.star-effect.neon {
    width: 45px;
    height: 45px;
    animation: neonPulse 1.5s ease-in-out infinite, 
               starFloat 5s ease-in-out infinite,
               starFade 5s ease-in-out infinite;
    filter: contrast(1.5) brightness(1.2);
    z-index: 103;
}

.star-effect.neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF00FF"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    filter: blur(2px);
    z-index: -1;
}

.star-effect.comet::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), rgba(100, 200, 255, 0.1));
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: -1;
}

/* 爆炸效果升级版 */
.explosion-effect {
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, rgba(255,255,0,0.9) 0%, rgba(255,165,0,0.7) 30%, rgba(255,0,0,0.5) 50%, rgba(255,0,0,0) 70%);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.1);
    animation: explode 1.5s ease-out forwards;
    z-index: 101;
}

/* 爆炸效果升级版 - 大爆炸 */
.explosion-effect.huge {
    width: 300px;
    height: 300px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,0,0.85) 15%, rgba(255,165,0,0.7) 30%, rgba(255,50,50,0.6) 45%, rgba(200,0,150,0.4) 60%, rgba(255,0,0,0) 75%);
    animation: hugeExplode 2.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    z-index: 102;
}

/* 新增：超级爆炸 */
.explosion-effect.mega {
    width: 400px;
    height: 400px;
    background-image: radial-gradient(circle, 
        rgba(255,255,255,1) 0%, 
        rgba(255,255,0,0.95) 10%, 
        rgba(255,165,0,0.9) 20%, 
        rgba(255,50,50,0.85) 30%, 
        rgba(200,0,150,0.8) 40%, 
        rgba(100,0,255,0.7) 50%, 
        rgba(0,0,255,0.6) 60%, 
        rgba(0,0,100,0.3) 70%,
        rgba(0,0,0,0) 80%);
    animation: megaExplode 3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    z-index: 103;
}

/* 冲击波效果 */
.shockwave-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 5px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    animation: shockwave 2s cubic-bezier(0, 0.5, 0.5, 1) forwards;
    opacity: 0.8;
    z-index: 100;
}

/* 彩色冲击波 */
.shockwave-effect.colorful {
    border: none;
    background: conic-gradient(
        rgba(255, 0, 0, 0.5),
        rgba(255, 165, 0, 0.5),
        rgba(255, 255, 0, 0.5),
        rgba(0, 255, 0, 0.5),
        rgba(0, 0, 255, 0.5),
        rgba(75, 0, 130, 0.5),
        rgba(238, 130, 238, 0.5),
        rgba(255, 0, 0, 0.5)
    );
    animation: shockwave 2.5s cubic-bezier(0, 0.5, 0.5, 1) forwards,
               rotateConic 2.5s linear infinite;
    z-index: 101;
}

/* 粒子效果 */
.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: particleFly 2s ease-out forwards, particleFade 2s ease-in-out forwards;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
}

/* 金星丝带 */
.ribbon {
    position: absolute;
    width: 5px;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.8), rgba(255, 100, 100, 0.6));
    border-radius: 3px;
    opacity: 0;
    animation: ribbonWave 4s ease-in-out infinite, ribbonFade 4s ease-in-out infinite;
    transform-origin: bottom center;
    box-shadow: 0 0 15px 2px rgba(255, 215, 0, 0.4);
}

/* 新增：光环效果 */
.halo-effect {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 0, 0.7) 20%,
        rgba(255, 200, 0, 0.5) 40%,
        rgba(255, 150, 0, 0.3) 60%,
        rgba(255, 100, 0, 0.1) 80%,
        transparent 100%
    );
    border-radius: 50%;
    opacity: 0;
    animation: haloPulse 3s ease-in-out infinite;
    z-index: 99;
    filter: blur(5px);
}

/* 动画定义 */
@keyframes starFloat {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-40px) rotate(90deg) scale(1.2); }
    50% { transform: translateY(-80px) rotate(180deg) scale(1); }
    75% { transform: translateY(-120px) rotate(270deg) scale(1.2); }
    100% { transform: translateY(-160px) rotate(360deg) scale(1); }
}

@keyframes superStarFloat {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    20% { transform: translateY(-120px) translateX(-50px) rotate(180deg) scale(1.5); }
    40% { transform: translateY(-240px) translateX(50px) rotate(360deg) scale(1); }
    60% { transform: translateY(-360px) translateX(-80px) rotate(540deg) scale(1.8); }
    80% { transform: translateY(-480px) translateX(80px) rotate(720deg) scale(1.2); }
    100% { transform: translateY(-600px) translateX(0) rotate(900deg) scale(0.8); }
}

@keyframes lightningFloat {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    25% { transform: translateY(-100px) scale(1.5) rotate(10deg); }
    50% { transform: translateY(-200px) scale(1) rotate(-10deg); }
    75% { transform: translateY(-300px) scale(1.5) rotate(10deg); }
    100% { transform: translateY(-400px) scale(1) rotate(0deg); }
}

@keyframes star3dFloat {
    0% { transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1); }
    25% { transform: translateY(-100px) rotateX(90deg) rotateY(90deg) scale(1.3); }
    50% { transform: translateY(-200px) rotateX(180deg) rotateY(180deg) scale(1); }
    75% { transform: translateY(-300px) rotateX(270deg) rotateY(270deg) scale(1.3); }
    100% { transform: translateY(-400px) rotateX(360deg) rotateY(360deg) scale(1); }
}

@keyframes star3dRotate {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes spiralFloat {
    0% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-100px) translateX(100px) rotate(270deg) scale(1.2); }
    50% { transform: translateY(-200px) translateX(0) rotate(540deg) scale(0.8); }
    75% { transform: translateY(-300px) translateX(-100px) rotate(810deg) scale(1.4); }
    100% { transform: translateY(-400px) translateX(0) rotate(1080deg) scale(0.6); }
}

@keyframes spiralPulse {
    0% { filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.8)) brightness(1); }
    50% { filter: drop-shadow(0 0 25px rgba(255, 200, 0, 1)) brightness(1.5); }
    100% { filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.8)) brightness(1); }
}

@keyframes neonPulse {
    0% { filter: drop-shadow(0 0 5px #f0f) drop-shadow(0 0 10px #f0f) brightness(1.2) contrast(1.3); }
    50% { filter: drop-shadow(0 0 10px #f0f) drop-shadow(0 0 20px #f0f) drop-shadow(0 0 30px #f0f) brightness(1.4) contrast(1.5); }
    100% { filter: drop-shadow(0 0 5px #f0f) drop-shadow(0 0 10px #f0f) brightness(1.2) contrast(1.3); }
}

@keyframes starFade {
    0% { opacity: 0; }
    15% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes cometSweep {
    0% { transform: translate(-100px, -100px) scale(0.3) rotate(0deg); }
    100% { transform: translate(calc(100% + 100px), calc(100% + 100px)) scale(1.5) rotate(180deg); }
}

@keyframes cometFade {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes starPulse {
    0% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9)); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1)); }
    100% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9)); }
}

@keyframes superStarPulse {
    0% { filter: drop-shadow(0 0 20px rgba(255, 220, 0, 1)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 220, 0, 1)); }
    100% { filter: drop-shadow(0 0 20px rgba(255, 220, 0, 1)); }
}

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

@keyframes colorCycle {
    0% { filter: hue-rotate(0deg) drop-shadow(0 0 15px rgba(255, 50, 50, 0.9)); }
    33% { filter: hue-rotate(120deg) drop-shadow(0 0 15px rgba(50, 255, 50, 0.9)); }
    66% { filter: hue-rotate(240deg) drop-shadow(0 0 15px rgba(50, 50, 255, 0.9)); }
    100% { filter: hue-rotate(360deg) drop-shadow(0 0 15px rgba(255, 50, 50, 0.9)); }
}

@keyframes lightningFlash {
    0% { opacity: 0.7; filter: drop-shadow(0 0 30px rgba(255, 255, 0, 1)); }
    50% { opacity: 1; filter: drop-shadow(0 0 50px rgba(255, 255, 255, 1)); }
    100% { opacity: 0.7; filter: drop-shadow(0 0 30px rgba(255, 255, 0, 1)); }
}

@keyframes wiggle {
    0% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    100% { transform: rotate(-5deg); }
}

@keyframes explode {
    0% { transform: scale(0.1); opacity: 0; }
    20% { opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

@keyframes hugeExplode {
    0% { transform: scale(0.1); opacity: 0; }
    10% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes megaExplode {
    0% { transform: scale(0.1); opacity: 0; }
    5% { opacity: 0.3; }
    15% { opacity: 1; }
    60% { opacity: 0.7; }
    100% { transform: scale(5); opacity: 0; }
}

@keyframes shockwave {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; border-width: 5px; }
    70% { opacity: 0.5; border-width: 2px; }
    100% { transform: translate(-50%, -50%) scale(15); opacity: 0; border-width: 1px; }
}

@keyframes rotateConic {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes particleFly {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(var(--tx, 100px), var(--ty, 100px)) scale(0.1); }
}

@keyframes particleFade {
    0% { opacity: 1; }
    80% { opacity: 0.8; }
    100% { opacity: 0; }
}

@keyframes ribbonWave {
    0% { transform: scaleY(0.5) rotate(0deg); }
    25% { transform: scaleY(1) rotate(5deg); }
    50% { transform: scaleY(0.8) rotate(0deg); }
    75% { transform: scaleY(1) rotate(-5deg); }
    100% { transform: scaleY(0.5) rotate(0deg); }
}

@keyframes ribbonFade {
    0% { opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { opacity: 0; }
}

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

/* 失败泪滴特效重新修改 */
.tear-effect {
    position: absolute;
    width: 18px;
    height: 25px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2377BBFF"><path d="M12 2.69l5.66 5.66a8 8 0 11-11.31 0z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 5px rgba(119, 187, 255, 0.8));
    animation: tearFallFixed 5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite, 
              tearFade 5s ease-in-out infinite, 
              tearWobble 0.6s ease-in-out infinite;
    transform-origin: center top;
    z-index: 100;
}

/* 大尺寸泪滴 */
.tear-effect.large {
    width: 25px;
    height: 35px;
    animation-duration: 6s;
    z-index: 101;
    filter: drop-shadow(0 0 8px rgba(119, 187, 255, 1));
}

/* 小尺寸泪滴 */
.tear-effect.small {
    width: 12px;
    height: 18px;
    animation-duration: 4s;
    z-index: 99;
}

/* 修复泪滴下落动画 - 完全使用绝对定位 */
@keyframes tearFallFixed {
    0% { top: -5%; opacity: 0; }
    10% { top: 5%; opacity: 0.7; }
    20% { top: 20%; }
    40% { top: 40%; }
    60% { top: 60%; }
    80% { top: 80%; opacity: 0.7; }
    100% { top: 110%; opacity: 0; }
}

@keyframes tearFade {
    0% { opacity: 0; }
    10% { opacity: 0.8; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes tearWobble {
    0% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-3px) rotate(-2deg); }
    75% { transform: translateX(3px) rotate(2deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

/* 雨点水花效果 */
.splash-effect {
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 40px;
    background-image: radial-gradient(circle, rgba(119, 187, 255, 0.8) 0%, rgba(119, 187, 255, 0.4) 50%, rgba(119, 187, 255, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.1);
    animation: splash 1s ease-out forwards;
    z-index: 98;
}

@keyframes splash {
    0% { transform: scale(0.1); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* 超级炫酷的3D旋转星星 */
.star-effect.hyper-3d {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="gold"><polygon points="12,0 15.5,9 24,9 17,14.5 20,24 12,18 4,24 7,14.5 0,9 8.5,9"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
    z-index: 102;
    transform-style: preserve-3d;
    transform-origin: center center;
    animation: hyper3dFloat 8s ease-in-out infinite,
               hyper3dRotate 5s linear infinite,
               hyper3dGlow 2s ease-in-out infinite;
}

/* 螺旋星星效果 */
.star-effect.hyper-spiral {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><polygon points="12,0 15.5,9 24,9 17,14.5 20,24 12,18 4,24 7,14.5 0,9 8.5,9"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1));
    z-index: 103;
    transform-origin: center center;
    animation: hyperSpiralFloat 10s linear infinite,
               hyperSpiralRotate 3s linear infinite,
               colorCycleFast 2s linear infinite;
}

/* 霓虹星星效果 */
.star-effect.neon-ultra {
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 25%, rgba(255,215,0,0.4) 50%, rgba(255,215,0,0) 75%);
    box-shadow: 
        0 0 20px 10px rgba(255,255,255,0.8),
        0 0 40px 20px rgba(255,215,0,0.6),
        0 0 60px 30px rgba(255,140,0,0.4);
    z-index: 104;
    animation: neonUltraPulse 2s ease-in-out infinite,
               neonUltraFloat 8s ease-in-out infinite;
}

/* 超级爆炸效果 */
.explosion-effect.ultra {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255,255,255,1) 0%, 
        rgba(255,215,0,0.9) 20%, 
        rgba(255,140,0,0.8) 40%, 
        rgba(255,69,0,0.7) 60%, 
        rgba(255,0,0,0.5) 80%, 
        rgba(255,0,0,0) 100%);
    box-shadow: 
        0 0 80px 40px rgba(255,255,255,0.9),
        0 0 120px 60px rgba(255,215,0,0.7),
        0 0 160px 80px rgba(255,69,0,0.5);
    z-index: 105;
    opacity: 0;
    animation: ultraExplode 3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* 彩色冲击波效果 */
.shockwave-effect.rainbow {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    border: 5px solid transparent;
    background: conic-gradient(
        rgba(255,0,0,0.7) 0%, 
        rgba(255,255,0,0.7) 25%, 
        rgba(0,255,0,0.7) 50%, 
        rgba(0,255,255,0.7) 75%, 
        rgba(255,0,255,0.7) 100%);
    background-clip: padding-box;
    z-index: 101;
    opacity: 0.8;
    mix-blend-mode: screen;
    animation: shockwaveRainbow 3s cubic-bezier(0, 0.5, 0.5, 1) forwards,
               rotateConic 4s linear infinite;
}

/* 光环效果 */
.halo-effect.intense {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    border-radius: 50%;
    background: conic-gradient(
        rgba(255,215,0,0) 0%, 
        rgba(255,215,0,0.1) 10%, 
        rgba(255,215,0,0.3) 50%, 
        rgba(255,215,0,0.1) 90%, 
        rgba(255,215,0,0) 100%);
    filter: blur(15px);
    z-index: 100;
    opacity: 0;
    animation: intensePulse 5s ease-in-out infinite;
}

/* 新的动画关键帧定义 */
@keyframes hyper3dFloat {
    0% { transform: translate(0, 0) rotateX(0deg) rotateY(0deg); }
    25% { transform: translate(-20px, -10px) rotateX(90deg) rotateY(45deg); }
    50% { transform: translate(10px, -20px) rotateX(180deg) rotateY(90deg); }
    75% { transform: translate(20px, 10px) rotateX(270deg) rotateY(135deg); }
    100% { transform: translate(0, 0) rotateX(360deg) rotateY(180deg); }
}

@keyframes hyper3dRotate {
    0% { transform: rotateZ(0deg); }
    100% { transform: rotateZ(360deg); }
}

@keyframes hyper3dGlow {
    0% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1)); }
    50% { filter: drop-shadow(0 0 30px rgba(255, 215, 0, 1)) brightness(1.5); }
    100% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1)); }
}

@keyframes hyperSpiralFloat {
    0% { transform: translate(0, 0); }
    25% { transform: translate(100px, 100px); }
    50% { transform: translate(0, 200px); }
    75% { transform: translate(-100px, 100px); }
    100% { transform: translate(0, 0); }
}

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

@keyframes colorCycleFast {
    0% { filter: hue-rotate(0deg) brightness(1) drop-shadow(0 0 15px rgba(255, 50, 50, 0.9)); }
    33% { filter: hue-rotate(120deg) brightness(1.2) drop-shadow(0 0 20px rgba(50, 255, 50, 0.9)); }
    66% { filter: hue-rotate(240deg) brightness(1.4) drop-shadow(0 0 25px rgba(50, 50, 255, 0.9)); }
    100% { filter: hue-rotate(360deg) brightness(1) drop-shadow(0 0 15px rgba(255, 50, 50, 0.9)); }
}

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

@keyframes neonUltraFloat {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-50px) translateX(25px); }
    50% { transform: translateY(-100px) translateX(0); }
    75% { transform: translateY(-50px) translateX(-25px); }
    100% { transform: translateY(0) translateX(0); }
}

@keyframes ultraExplode {
    0% { transform: translate(-50%, -50%) scale(0.1); opacity: 0; }
    10% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

@keyframes shockwaveRainbow {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; border-width: 5px; }
    70% { opacity: 0.6; border-width: 2px; }
    100% { transform: translate(-50%, -50%) scale(20); opacity: 0; border-width: 1px; }
}

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