:root {
    /* 深色主题 - 更温暖的色彩方案 */
    --bg-primary: #2d2d44;
    --bg-secondary: #1e1e30;
    --bg-tertiary: #141420;
    --bg-card: rgba(45, 45, 68, 0.8);
    --bg-card-hover: rgba(60, 60, 85, 0.9);
    --text-primary: #f8f9fa;
    --text-secondary: rgba(248, 249, 250, 0.7);
    --text-tertiary: rgba(248, 249, 250, 0.5);
    --border-color: rgba(255, 255, 255, 0.15);
    --accent-primary: #8a7090;
    --accent-secondary: #c9a0dc;
    --accent-tertiary: #f6b8d1;
    --accent-quaternary: #f8a4b4;
    --success-color: #a8e6cf;
    --error-color: #ffd3b6;
    --warning-color: #ffd93d;
    --piano-white-key: #fff;
    --piano-white-key-hover: #f8f9fa;
    --piano-white-key-active: #e9ecef;
    --piano-black-key: #333;
    --piano-black-key-hover: #444;
    --piano-black-key-active: #555;
    /* 手绘风格变量 */
    --hand-drawn-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
    --hand-drawn-border: 2px solid var(--text-primary);
    --hand-drawn-border-radius: 8px;
}

body.light-theme {
    /* 浅色主题 - 更温暖的色彩方案 */
    --bg-primary: #f9f7f7;
    --bg-secondary: #f0e6e6;
    --bg-tertiary: #e6d9d9;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --text-primary: #333;
    --text-secondary: rgba(51, 51, 51, 0.7);
    --text-tertiary: rgba(51, 51, 51, 0.5);
    --border-color: rgba(0, 0, 0, 0.15);
    --accent-primary: #9d819d;
    --accent-secondary: #b88fb8;
    --accent-tertiary: #d8a3c1;
    --accent-quaternary: #f8b6c2;
    --success-color: #8fbc8f;
    --error-color: #ffcccb;
    --warning-color: #ffd700;
    --piano-white-key: #fff;
    --piano-white-key-hover: #f8f9fa;
    --piano-white-key-active: #e9ecef;
    --piano-black-key: #333;
    --piano-black-key-hover: #444;
    --piano-black-key-active: #555;
    /* 手绘风格变量 */
    --hand-drawn-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    --hand-drawn-border: 2px solid var(--text-primary);
    --hand-drawn-border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* 手绘风格类 */
.hand-drawn {
    border: var(--hand-drawn-border);
    border-radius: var(--hand-drawn-border-radius);
    box-shadow: var(--hand-drawn-shadow);
    position: relative;
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
}

.hand-drawn:hover {
    transform: rotate(0.5deg) scale(1.02);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

.hand-drawn-btn {
    border: var(--hand-drawn-border);
    border-radius: var(--hand-drawn-border-radius);
    box-shadow: var(--hand-drawn-shadow);
    position: relative;
    transform: rotate(-0.5deg);
    transition: all 0.2s ease;
}

.hand-drawn-btn:hover {
    transform: rotate(0.5deg) scale(1.05);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

.hand-drawn-btn:active {
    transform: rotate(0deg) scale(0.98);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
    position: relative;
    z-index: 999;
}

.header-top::-webkit-scrollbar {
    height: 6px;
}

.header-top::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.header-top::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 0 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;
    color: var(--text-primary);
    padding: 8px 16px;
    border: var(--hand-drawn-border);
    border-radius: var(--hand-drawn-border-radius);
    box-shadow: var(--hand-drawn-shadow);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '🎹';
    margin-right: 8px;
    font-size: 20px;
    animation: bounce 2s infinite;
}

.logo:hover {
    transform: rotate(1deg) scale(1.05);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

.logo:hover::before {
    animation: bounce 0.5s ease-in-out;
}

.header-left .score-panel-compact {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
}

.score-item-compact {
    text-align: center;
    display: flex;
    flex-direction: column;
    min-width: 60px;
    padding: 0 !important;
    margin: 0 !important;
    gap: 2px !important;
}

.score-label-compact {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.score-value-compact {
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--accent-tertiary) 0%, var(--accent-quaternary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 0 0 auto;
}

.game-controls {
    display: flex;
    gap: 8px;
}

.emoji-feedback {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.user-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
}

.icon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: var(--hand-drawn-border);
    border-radius: var(--hand-drawn-border-radius);
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    box-shadow: var(--hand-drawn-shadow);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: rotate(-0.5deg);
    overflow: hidden;
}

.icon-btn:hover:not(:disabled) {
    transform: rotate(0.5deg) scale(1.05);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

.icon-btn:active:not(:disabled) {
    transform: rotate(0deg) scale(0.98);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

.icon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.icon-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.icon-btn:hover:not(:disabled)::before {
    left: 100%;
}

.icon-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 大按钮样式（从测试页面移植） */
.btn-large {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
}

.btn-large:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.btn-large:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.icon-btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    box-shadow: var(--hand-drawn-shadow);
    transform: rotate(-1deg);
}

.icon-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    transform: rotate(1deg) scale(1.08);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

/* 增强结束按钮的样式 */
#endBtn {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: var(--hand-drawn-shadow);
    transform: rotate(1deg);
}

#endBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: rotate(-1deg) scale(1.08);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

/* 增强暂停按钮的样式 */
#pauseBtn {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: var(--hand-drawn-shadow);
    transform: rotate(-0.5deg);
}

#pauseBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: rotate(0.5deg) scale(1.08);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

/* 收纳按钮样式 */
.collapse-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: var(--accent-primary);
    font-size: 16px;
    transition: all 0.3s;
}

.collapse-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--accent-primary);
    transform: none;
}

/* 二级悬浮界面样式 */
.floating-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 15px;
    z-index: 1000;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.floating-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    transform: rotate(45deg);
    z-index: -1;
}

.floating-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.floating-menu .menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.floating-menu .menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 移动端菜单样式 */
.mobile-menu-btn {
    display: none;
    position: relative;
    z-index: 1001;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    color: white;
    font-weight: bold;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-primary);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border-color);
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
}

.mobile-user-controls,
.mobile-control-group {
    margin-bottom: 30px;
}

.mobile-control-group h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-secondary);
}

.mobile-menu-item {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.mobile-menu-select {
    margin-bottom: 15px;
}

.mobile-menu-select label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.mobile-menu-select select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

/* 自然的动画过渡效果 */

/* 元素进入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) rotate(-1deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px) rotate(1deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px) rotate(-1deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px) rotate(1deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

/* 微交互动画 */
@keyframes pulse {
    0% {
        transform: scale(1) rotate(-0.5deg);
    }
    50% {
        transform: scale(1.05) rotate(0.5deg);
    }
    100% {
        transform: scale(1) rotate(-0.5deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(-0.5deg);
    }
    40% {
        transform: translateY(-10px) rotate(0.5deg);
    }
    60% {
        transform: translateY(-5px) rotate(-0.5deg);
    }
}

/* 按钮点击动画 */
@keyframes buttonClick {
    0% {
        transform: scale(1) rotate(-0.5deg);
    }
    50% {
        transform: scale(0.95) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(-0.5deg);
    }
}

/* 应用动画到元素 */
.header-left, .header-center, .header-right {
    animation: fadeInDown 0.5s ease-out;
}

.score-item-compact {
    animation: fadeInUp 0.3s ease-out;
    animation-fill-mode: both;
}

.score-item-compact:nth-child(1) { animation-delay: 0.1s; }
.score-item-compact:nth-child(2) { animation-delay: 0.2s; }
.score-item-compact:nth-child(3) { animation-delay: 0.3s; }
.score-item-compact:nth-child(4) { animation-delay: 0.4s; }
.score-item-compact:nth-child(5) { animation-delay: 0.5s; }

.game-controls button {
    animation: fadeInLeft 0.4s ease-out;
    animation-fill-mode: both;
}

.game-controls button:nth-child(1) { animation-delay: 0.1s; }
.game-controls button:nth-child(2) { animation-delay: 0.2s; }
.game-controls button:nth-child(3) { animation-delay: 0.3s; }

.emoji-feedback {
    animation: bounce 2s infinite;
}

/* 按钮点击效果 */
.icon-btn:active {
    animation: buttonClick 0.3s ease-out;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .header-top {
        padding: 10px 20px;
        gap: 12px;
    }
    
    .header-left {
        gap: 25px;
    }
    
    .header-left .score-panel-compact {
        gap: 10px !important;
    }
    
    .score-item-compact {
        min-width: 50px !important;
    }
    
    .header-right {
        gap: 12px;
    }
    
    .icon-btn {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
}

@media (max-width: 1200px) {
    .header-top {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .header-left {
        gap: 20px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .header-left .score-panel-compact {
        gap: 10px !important;
    }
    
    .score-item-compact {
        min-width: 50px !important;
    }
    
    .score-item-compact {
        min-width: 55px;
    }
    
    .score-value-compact {
        font-size: 17px;
    }
    
    .score-label-compact {
        font-size: 10px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .control-group {
        gap: 8px;
    }
    
    .user-controls {
        gap: 8px;
    }
    
    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .difficulty-select,
    .mode-select,
    .language-select {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    .header-top {
        padding: 10px 15px;
        gap: 8px;
    }
    
    .header-left {
        gap: 15px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .header-left .score-panel-compact {
        gap: 10px !important;
    }
    
    .score-item-compact {
        min-width: 50px !important;
    }
    
    .score-item-compact {
        min-width: 50px;
    }
    
    .score-value-compact {
        font-size: 16px;
    }
    
    .score-label-compact {
        font-size: 9px;
    }
    
    .header-center {
        gap: 15px;
    }
    
    .icon-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    
    .emoji-feedback {
        font-size: 24px;
        width: 36px;
        height: 36px;
    }
    
    .control-group {
        gap: 6px;
    }
    
    .user-controls {
        gap: 6px;
    }
    
    .difficulty-select,
    .mode-select,
    .language-select {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@media (max-width: 1024px) {
    /* 隐藏速度调节按钮在窄屏幕上 */
    .header-right .control-group #speedBtn {
        display: none !important;
    }
    
    /* 优化窄屏幕上下拉框样式 */
    .difficulty-select,
    .mode-select {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 120px;
    }
    
    /* 确保游戏控制按钮始终显示 */
    .header-center .game-controls {
        display: flex;
    }
}

/* 移动端分数面板样式 */
.mobile-score-panel {
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.mobile-score-panel h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-secondary);
}

.mobile-score-panel .score-panel-compact {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.mobile-score-panel .score-item-compact {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-width: unset;
    text-align: left;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-score-panel .score-item-compact:last-child {
    border-bottom: none;
}

.mobile-score-panel .score-value-compact {
    font-size: 16px;
    font-weight: bold;
}

.mobile-score-panel .score-label-compact {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 0;
}

@media (max-width: 480px) {
    .header-top {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .logo {
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .header-left .score-panel-compact {
        gap: 10px !important;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .score-item-compact {
        min-width: 35px !important;
    }
    
    .score-value-compact {
        font-size: 12px;
    }
    
    .score-label-compact {
        font-size: 8px;
    }
    
    .game-controls {
        gap: 6px;
        justify-content: center;
    }
    
    .emoji-feedback {
        font-size: 18px;
        width: 28px;
        height: 28px;
    }
    
    .icon-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .piano-container {
        height: 110px;
        padding: 15px 0 5px 6px;
    }
    
    .white-key {
        width: 30px;
        height: 80px;
    }
    
    .black-key {
        width: 18px;
        height: 48px;
    }
    
    .keyboard-hint {
        padding: 6px 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .hint-text {
        font-size: 9px;
        white-space: normal;
        text-overflow: unset;
    }
    
    .simple-mode-container {
        padding: 20px;
    }
    
    .simple-mode-info {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .simple-mode-score,
    .simple-mode-progress,
    .simple-mode-timer {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

.language-select {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-primary) 50%),
                      linear-gradient(135deg, var(--text-primary) 50%, transparent 50%);
    background-position: calc(100% - 12px) calc(1em + 2px),
                      calc(100% - 7px) calc(1em + 2px);
    background-size: 4px 4px, 4px 4px;
    background-repeat: no-repeat;
    padding-right: 25px;
}

.language-select option {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 8px;
}

.language-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.user-info-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 50px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s;
}

.user-info-container:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
}

.user-avatar {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    color: white;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
    border-radius: 50% !important;
    background: rgba(255, 107, 107, 0.1) !important;
    color: var(--error-color) !important;
    transition: all 0.3s !important;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.3) !important;
    transform: scale(1.1) !important;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, var(--error-color) 100%);
}

.confirm-modal {
    max-width: 380px;
}

.confirm-message {
    text-align: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    padding: 20px 0;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 20px 0;
    gap: 10px;
    height: calc(100vh - 64px);
    overflow: hidden;
}

.score-panel {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.score-item {
    text-align: center;
}

.score-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.score-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emoji-feedback {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
}

.emoji-feedback.pop {
    animation: pop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.emoji-feedback.shake {
    animation: shake 0.5s ease-in-out;
}

.emoji-feedback.spin {
    animation: spin 0.6s ease-in-out;
}

.emoji-feedback.bounce {
    animation: bounce 0.5s ease-in-out;
}

@keyframes pop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(0.5); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.game-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow: hidden;
}

.score-and-label-container {
    display: flex;
    gap: 15px;
    align-items: center;
    width: 100%;
    padding: 5px 0;
}

.score-and-label-container .game-score-display {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    margin-bottom: 0;
}

.score-and-label-container .piano-key-note-label {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 0;
    position: static;
    max-width: none;
    z-index: 1;
    display: flex;
    align-items: center;
}

/* 游戏区域的分数显示 */
.game-score-display {
    display: none;
}

.game-score-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.score-and-label-container .game-score-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.game-score-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.game-score-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .score-and-label-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .score-and-label-container .game-score-display {
        flex: 1;
        display: flex;
    }
}

@media (max-width: 768px) {
    .score-and-label-container .game-score-display {
        flex-wrap: wrap;
        gap: 10px;
        padding: 8px 12px;
    }
    
    .score-and-label-container .game-score-item {
        flex: 1 1 calc(33.333% - 10px);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .score-and-label-container .game-score-display {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .score-and-label-container .game-score-item {
        flex: 1 1 100%;
        justify-content: center;
    }
}

.note-container {
    flex: 1;
    min-height: 200px;
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a3e 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.note-image {
    position: absolute;
    width: 60px;
    height: auto;
    object-fit: contain;
    transition: none;
}

.note-sequence {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.note-range-label {
    position: absolute;
    top: 50%;
    left: 70px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-weight: 500;
}

.audio-visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 5;
    pointer-events: none;
}

#audioVisualizerCanvas {
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.piano-fixed {
    flex-shrink: 0;
    padding: 10px 0;
}

.piano-container {
    display: block;
    position: relative;
    height: 150px;
    background: #111;
    border-radius: 8px;
    padding: 25px 0 8px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.piano-container::-webkit-scrollbar {
    height: 8px;
}

.piano-container::-webkit-scrollbar-track {
    background: #222;
    border-radius: 4px;
}

.piano-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.piano-wrapper {
    box-sizing: border-box;
}

.white-key {
    position: absolute;
    width: 40px;
    height: 105px;
    background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
    border: 1px solid #ccc;
    border-radius: 0 0 5px 5px;
    cursor: pointer;
    z-index: 1;
    transition: all 0.1s;
    box-sizing: border-box;
}

.white-key:hover {
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
}

.white-key.active {
    background: linear-gradient(180deg, #e0e0e0 0%, #d0d0d0 100%);
    box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.2);
}

.white-key.correct {
    background: linear-gradient(180deg, #90ee90 0%, #7ccc7c 100%) !important;
}

.white-key.wrong {
    background: linear-gradient(180deg, #ff6b6b 0%, #ee5a5a 100%) !important;
}

.white-key.middle-c {
    background: linear-gradient(180deg, #fff9c4 0%, #ffee58 100%);
    border: 3px solid #ff9800;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.white-key.middle-c:hover {
    background: linear-gradient(180deg, #ffee58 0%, #ffd54f 100%);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.7);
}

.white-key.middle-c.active {
    background: linear-gradient(180deg, #ffd54f 0%, #ffb300 100%);
    box-shadow: 0 0 25px rgba(255, 152, 0, 0.9), inset 0 0 15px rgba(255, 255, 255, 0.8);
}

.note-debug-label {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    color: #666;
    z-index: 5;
}

.middle-c-label {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: 900;
    color: #ff5722;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.black-key {
    position: absolute;
    width: 24px;
    height: 65px;
    background: linear-gradient(180deg, #333 0%, #111 100%);
    border-radius: 0 0 4px 4px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.1s;
}

.black-key:hover {
    background: linear-gradient(180deg, #444 0%, #222 100%);
}

.black-key.active {
    background: linear-gradient(180deg, #555 0%, #333 100%);
    box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.3);
}

.black-key.correct {
    background: linear-gradient(180deg, #2d8a2d 0%, #226b22 100%) !important;
}

.black-key.wrong {
    background: linear-gradient(180deg, #cc4444 0%, #aa3333 100%) !important;
}



.difficulty-select {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-primary) 50%),
                      linear-gradient(135deg, var(--text-primary) 50%, transparent 50%);
    background-position: calc(100% - 15px) calc(1em + 2px),
                      calc(100% - 10px) calc(1em + 2px);
    background-size: 5px 5px,
                 5px 5px;
    background-repeat: no-repeat;
    padding-right: 35px;
}

.difficulty-select option {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 10px;
}

.difficulty-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close {
    font-size: 28px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
}

.close:hover {
    color: #fff;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.keyboard-hint {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.hint-title {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    flex-shrink: 0;
}

.hint-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.hint-link {
    font-size: 12px;
    color: #667eea;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
    transition: color 0.3s;
}

.hint-link:hover {
    color: #f093fb;
    text-decoration: underline;
}

.hint-key {
    display: inline-block;
    background: rgba(102, 126, 234, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    margin: 0 2px;
    color: #fff;
}

.modal-large {
    max-width: 600px !important;
    max-height: 80vh;
    overflow-y: auto;
}

.achievements-list {
    display: grid;
    gap: 15px;
}

.achievement-group {
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.achievement-group-title {
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.achievement-group-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s;
}

.achievement-item.unlocked {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.5);
}

.achievement-item.locked {
    opacity: 0.5;
}

.achievement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.achievement-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.achievement-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.achievement-name {
    font-weight: bold;
    font-size: 14px;
    color: var(--text-primary);
}

.achievement-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.achievement-date {
    font-size: 11px;
    color: var(--text-tertiary);
}

.achievement-level {
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    margin-top: 5px;
}

/* 成就弹窗样式 */
.achievement-popup-content {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid var(--text-primary);
    transform: rotate(-1deg);
    animation: bounce 0.5s ease-out;
}

.achievement-popup-icon {
    font-size: 40px;
    animation: pulse 1s infinite;
}

.achievement-popup-text h4 {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.achievement-popup-text h3 {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
}

.settings-section {
    margin-bottom: 25px;
}

.settings-section h3 {
    font-size: 14px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.keyboard-mapping-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.keyboard-mapping-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.key-mapping-key {
    background: rgba(102, 126, 234, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

.key-mapping-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.key-mapping-edit-btn {
    background: rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.5);
    color: #667eea;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.key-mapping-edit-btn:hover {
    background: rgba(102, 126, 234, 0.5);
    color: #fff;
    transform: translateY(-1px);
}

.keyboard-mapping-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.achievement-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: none;
}

.achievement-popup.show {
    display: block;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.achievement-popup-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievement-popup-icon {
    font-size: 40px;
}

.achievement-popup-text h4 {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.achievement-popup-text h3 {
    font-size: 16px;
    font-weight: bold;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-over-emoji {
    text-align: center;
    font-size: 64px;
    margin: 20px 0;
    animation: bounce 0.5s ease-in-out infinite alternate;
}

.share-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-card-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.share-card-header h3 {
    margin: 0;
    color: #667eea;
    font-size: 18px;
}

.share-card-content {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.share-options {
    margin-top: 20px;
}

.share-options h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.share-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.share-wechat:hover {
    border-color: #07C160;
    color: #07C160;
}

.share-weibo:hover {
    border-color: #E6162D;
    color: #E6162D;
}

.share-qq:hover {
    border-color: #12B7F5;
    color: #12B7F5;
}

.share-copy:hover {
    border-color: #667eea;
    color: #667eea;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.history-score {
    font-size: 14px;
    font-weight: bold;
    color: #4CAF50;
}

.history-mode {
    font-size: 11px;
    color: #ff9800;
    background-color: rgba(255, 152, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    width: fit-content;
}

.history-stats {
    text-align: right;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-empty {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
}

/* 历史记录统计卡片样式 */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 历史记录项目样式 */
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.history-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.history-score {
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
}

.history-mode {
    font-size: 11px;
    color: #ff9800;
    background-color: rgba(255, 152, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    width: fit-content;
}

.history-stats {
    text-align: right;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .history-stats {
        text-align: left;
        width: 100%;
    }
    
    .history-stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.leaderboard-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.leaderboard-tab:hover {
    color: #fff;
}

.leaderboard-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.leaderboard-tab-content {
    min-height: 400px;
}

.leaderboard-loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.leaderboard-rank {
    font-size: 20px;
    font-weight: bold;
    width: 40px;
    text-align: center;
}

.leaderboard-item.rank-gold .leaderboard-rank { color: #ffd700; }
.leaderboard-item.rank-silver .leaderboard-rank { color: #c0c0c0; }
.leaderboard-item.rank-bronze .leaderboard-rank { color: #cd7f32; }

.leaderboard-info {
    flex: 1;
}

.leaderboard-username {
    font-weight: 500;
    margin-bottom: 3px;
}

.leaderboard-mode {
    font-weight: 500;
    margin-bottom: 3px;
}

.leaderboard-difficulty {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3px;
}

.leaderboard-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.leaderboard-score {
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leaderboard-empty {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* 智能学习引导模态框样式 */
.modal-xl {
    max-width: 800px !important;
}

.smart-learning-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.smart-learning-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.smart-learning-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-2px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-color: var(--accent-primary);
    color: white;
}

.step-label {
    font-size: 12px;
    text-align: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.step-item.active .step-label {
    color: var(--accent-primary);
    font-weight: bold;
}

.step-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

/* 智能学习引导模态框的容器样式 */
#smartLearningModal .modal-content {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
}

/* 智能学习引导模态框的步骤面板样式 */
#smartLearningModal .step-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

/* 智能学习引导模态框的表单元素样式 */
#smartLearningModal select.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-primary) 50%),
                      linear-gradient(135deg, var(--text-primary) 50%, transparent 50%);
    background-position: calc(100% - 15px) calc(1em + 2px),
                      calc(100% - 10px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 35px;
}

/* 智能学习引导模态框的下拉菜单选项样式 */
#smartLearningModal select.form-control option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px;
}

#smartLearningModal select.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

/* 智能学习引导模态框的表单标签样式 */
#smartLearningModal .form-group label {
    color: var(--text-primary);
    font-weight: 500;
}

/* 智能学习引导模态框的复选框样式 */
#smartLearningModal .checkbox-group label {
    color: var(--text-primary);
}

#smartLearningModal .checkbox-group input[type="checkbox"] {
    accent-color: var(--accent-primary);
}

.step-panel[data-step="1"] {
    display: block;
}

/* 个人信息表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-group label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

/* 评估内容样式 */
.assessment-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.assessment-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px 6px 0 0;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.assessment-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.assessment-panel.active {
    display: block;
}

.assessment-instruction {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
    font-size: 14px;
    line-height: 1.4;
}

/* 按键识别测试样式 */
.keyboard-assessment,
.sheet-assessment,
.theory-assessment {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 智能学习引导模态框的评估显示区域样式 */
#smartLearningModal .piano-key-display,
#smartLearningModal .sheet-music-display {
    padding: 40px;
    background: var(--bg-card);
    border-radius: 12px;
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    border: 2px solid var(--border-color);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

#smartLearningModal .theory-question {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.4;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

/* 智能学习引导模态框的选项按钮样式 */
#smartLearningModal .btn-option {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
}

#smartLearningModal .btn-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

#smartLearningModal .btn-option:active {
    transform: translateY(0);
}

/* 智能学习引导模态框的标签页样式 */
#smartLearningModal .assessment-tabs {
    border-bottom: 1px solid var(--border-color);
}

#smartLearningModal .tab-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px 6px 0 0;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

#smartLearningModal .tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

#smartLearningModal .tab-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* 智能学习引导模态框的评估说明样式 */
#smartLearningModal .assessment-instruction {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-primary);
}

/* 智能学习引导模态框的能力分析样式 */
#smartLearningModal .overall-score {
    text-align: center;
    margin-bottom: 30px;
}

#smartLearningModal .score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

#smartLearningModal .score-value {
    font-size: 36px;
    font-weight: bold;
    color: white;
}

#smartLearningModal .radar-chart {
    margin: 30px 0;
}

#smartLearningModal .radar-chart-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

#smartLearningModal .radar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#smartLearningModal .radar-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

#smartLearningModal .radar-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

#smartLearningModal .radar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

#smartLearningModal .radar-value {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

#smartLearningModal .ability-details {
    margin-top: 30px;
}

/* 智能学习引导模态框的学习规划样式 */
#smartLearningModal .plan-overview {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#smartLearningModal .plan-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

#smartLearningModal .plan-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

#smartLearningModal .plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#smartLearningModal .plan-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
}

#smartLearningModal .plan-priority {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

#smartLearningModal .plan-priority.high {
    background: rgba(255, 99, 132, 0.2);
    color: #ff6384;
}

#smartLearningModal .plan-priority.medium {
    background: rgba(255, 159, 64, 0.2);
    color: #ff9f40;
}

#smartLearningModal .plan-description {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-secondary);
}

#smartLearningModal .plan-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 10px;
}

#smartLearningModal .tracking-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
    text-align: center;
    color: var(--text-primary);
}

#smartLearningModal .ability-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#smartLearningModal .ability-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#smartLearningModal .ability-info {
    flex: 1;
}

#smartLearningModal .ability-info h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

#smartLearningModal .ability-info p {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

#smartLearningModal .ability-score {
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#smartLearningModal .score-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

#smartLearningModal .score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.note-options,
.theory-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.btn-option {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
}

.btn-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-option:active {
    transform: translateY(0);
}

.assessment-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

/* 能力分析样式 */
.ability-analysis {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.overall-score {
    text-align: center;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.score-value {
    font-size: 36px;
    font-weight: bold;
    color: white;
}

.radar-chart {
    margin: 30px 0;
}

.radar-chart-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.radar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radar-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.radar-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.radar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.radar-value {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

.ability-details {
    margin-top: 20px;
}

.ability-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ability-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.ability-info {
    flex: 1;
}

.ability-info h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

.ability-info p {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.ability-score {
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.score-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 学习规划样式 */
.learning-plan {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.plan-summary {
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
}

.plan-summary h4 {
    margin: 0 0 10px 0;
    color: var(--accent-primary);
}

.plan-overview {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.plan-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.plan-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.plan-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.plan-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
}

.plan-priority {
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 12px;
}

.plan-priority.high {
    background: rgba(255, 107, 107, 0.2);
    color: var(--error-color);
}

.plan-priority.medium {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
}

.plan-description {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.plan-meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.progress-tracking {
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
}

.progress-tracking h4 {
    margin: 0 0 10px 0;
    color: var(--accent-primary);
}

.tracking-info {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-xl {
        max-width: 95% !important;
        margin: 10px;
    }
    
    .smart-learning-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .step-item {
        flex: 1;
        min-width: 80px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .note-options,
    .theory-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .radar-chart-container {
        grid-template-columns: 1fr;
    }
    
    .ability-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ability-score {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* Footer styles */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-brand {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-primary);
    animation: fadeIn 1s ease-in-out;
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
    animation: fadeIn 1s ease-in-out 0.3s both;
}

.footer-links a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-tertiary);
    text-decoration: underline;
    transform: translateY(-2px);
}

.developer-signature {
    margin-top: 10px;
    font-style: italic;
    font-size: 12px;
    color: var(--text-tertiary);
    animation: fadeIn 1s ease-in-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 歌曲选择模态框样式 */
.song-category {
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-in-out;
}

.song-category-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent-primary);
}

.song-category-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.song-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.song-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-in-out 0.2s both;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.song-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.song-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.song-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0;
}

.song-composer {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.song-description {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.4;
    margin: 0;
}

.song-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-tertiary);
}

/* 节拍器样式 */
.metronome-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.metronome-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metronome-control-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.tempo-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.metronome-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.metronome-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.metronome-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.tempo-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-primary);
    min-width: 40px;
    text-align: center;
}

.metronome-select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #fff 50%),
                      linear-gradient(135deg, #fff 50%, transparent 50%);
    background-position: calc(100% - 12px) calc(1em + 2px),
                      calc(100% - 7px) calc(1em + 2px);
    background-size: 4px 4px, 4px 4px;
    background-repeat: no-repeat;
    padding-right: 25px;
}

.metronome-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: none;
    padding: 10px;
}

.metronome-beats-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.metronome-beat {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-primary);
}

.metronome-beat.active {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.metronome-beat.accent {
    border: 2px solid var(--accent-primary);
}

.metronome-play-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    min-width: 120px;
}

.metronome-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
}

.metronome-play-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 录制功能样式 */
.record-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.record-control-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.record-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.record-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.record-status {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

.record-timer {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #dee2e6;
}

.record-list {
    margin-top: 20px;
}

.record-list h4 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.record-list-empty {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.record-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.record-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.record-time {
    font-size: 14px;
    color: #6c757d;
}

.record-duration {
    font-size: 16px;
    font-weight: 600;
}

.play-record-btn,
.delete-record-btn {
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-record-btn {
    background-color: #007bff;
    color: white;
    margin-right: 5px;
}

.play-record-btn:hover {
    background-color: #0069d9;
}

.delete-record-btn {
    background-color: #dc3545;
    color: white;
}

.delete-record-btn:hover {
    background-color: #c82333;
}

/* 乐谱查看样式 */
.sheet-music-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sheet-music-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sheet-music-selector label {
    font-size: 16px;
    font-weight: 600;
}

.sheet-music-select {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
}

.sheet-music-display {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    min-height: 300px;
    overflow-y: auto;
}

.sheet-music-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
}

.sheet-music-header {
    margin-bottom: 20px;
    text-align: center;
}

.sheet-music-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #343a40;
}

.sheet-music-notes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sheet-music-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.sheet-music-note.active {
    background-color: #e3f2fd;
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.note-name {
    font-size: 18px;
    font-weight: 600;
    color: #343a40;
}

.note-duration {
    font-size: 14px;
    color: #6c757d;
}

.sheet-music-controls-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sheet-music-controls-group .btn {
    flex: 1;
    min-width: 120px;
}

/* 调谐器样式 */
.tuner-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tuner-status {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.tuner-instruction {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
}

.tuner-note-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tuner-note-name {
    font-size: 48px;
    font-weight: 700;
    color: #343a40;
}

.tuner-frequency {
    font-size: 24px;
    color: #6c757d;
}

.tuner-accuracy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tuner-accuracy-meter {
    position: relative;
    width: 200px;
    height: 100px;
    background-color: white;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.tuner-accuracy-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 40px;
    background-color: #dc3545;
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(0deg);
    transition: transform 0.3s ease;
}

.tuner-accuracy-needle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: #dc3545;
    border-radius: 50%;
}

.tuner-accuracy-value {
    font-size: 20px;
    font-weight: 600;
    color: #343a40;
}

.tuner-controls-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tuner-controls-group .btn {
    flex: 1;
    min-width: 120px;
}

/* 智能学习引导样式 */
.modal-xl {
    max-width: 900px;
}

.smart-learning-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.smart-learning-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.step-item:last-child::before {
    display: none;
}

.step-item.active::before {
    background-color: #007bff;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background-color: #007bff;
    color: white;
    transform: scale(1.1);
}

.step-label {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.step-item.active .step-label {
    color: #007bff;
    font-weight: 600;
}

/* 通用步骤面板样式 - 不影响智能学习引导模态框 */
.step-panel {
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 非智能学习引导模态框的步骤面板 */
.step-panel:not(#smartLearningModal .step-panel) {
    background-color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

/* 技能评估样式 */
.assessment-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.assessment-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn.active {
    border-bottom-color: #007bff;
    color: #007bff;
}

.assessment-instruction {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 16px;
}

.piano-key-display {
    width: 200px;
    height: 300px;
    margin: 0 auto 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.piano-key {
    width: 60px;
    height: 200px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.note-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.note-option {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.note-option:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.note-option.correct {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.note-option.incorrect {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.assessment-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #007bff;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.sheet-music-display {
    width: 300px;
    height: 200px;
    margin: 0 auto 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.theory-question {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 16px;
}

.theory-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.theory-option {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theory-option:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.theory-option.correct {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.theory-option.incorrect {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* 能力分析样式 */
.ability-analysis {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.overall-score {
    text-align: center;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 10px solid #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

.score-value {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.radar-chart:not(#smartLearningModal .radar-chart) {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ability-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.ability-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

.ability-item h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.ability-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.ability-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.ability-fill.excellent {
    background-color: #28a745;
}

.ability-fill.good {
    background-color: #17a2b8;
}

.ability-fill.average {
    background-color: #ffc107;
}

.ability-fill.needs-improvement {
    background-color: #dc3545;
}

.ability-score {
    font-size: 12px;
    color: #666;
    text-align: right;
}

/* 学习规划样式 */
.learning-plan {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.plan-overview:not(#smartLearningModal .plan-overview) {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.plan-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan-item:not(#smartLearningModal .plan-item) {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.plan-item:not(#smartLearningModal .plan-item) h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.plan-item:not(#smartLearningModal .plan-item) p {
    margin: 5px 0;
    color: #666;
}

.tracking-info:not(#smartLearningModal .tracking-info) {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

.song-difficulty, .song-duration, .song-tempo {
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 12px;
}

.song-play-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 5px;
}

.song-play-btn:hover {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 歌曲练习模式样式 */
.song-mode-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.song-mode-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.song-mode-title {
    flex: 1;
}

.song-mode-title h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0 0 5px 0;
}

.song-mode-title p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.song-mode-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.song-mode-score, .song-mode-progress, .song-mode-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.song-mode-score-label, .song-mode-progress-label, .song-mode-timer-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.song-mode-score-value, .song-mode-progress-value, .song-mode-timer-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.song-mode-notes {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-height: 200px;
}

.song-mode-note-placeholder {
    font-size: 16px;
    color: var(--text-tertiary);
    text-align: center;
}

.song-mode-note-current {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.song-mode-note-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.song-mode-note-visual {
    font-size: 48px;
    animation: pulse 2s infinite;
}

.song-mode-feedback {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    min-height: 24px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .song-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .song-play-btn {
        align-self: flex-start;
        margin-top: 0;
    }
    
    .song-mode-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .song-mode-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .song-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* 学习路径样式 */
.learning-level {
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-in-out;
}

.learning-level-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-primary);
}

.learning-level-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.learning-modules {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.learning-module {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-in-out 0.2s both;
}

.learning-module:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.learning-module-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.learning-module-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.learning-exercises {
    margin-bottom: 15px;
}

.learning-exercises h5 {
    font-size: 14px;
    font-weight: bold;
    color: var(--accent-secondary);
    margin-bottom: 10px;
}

.learning-exercises ul {
    list-style-type: none;
    padding-left: 0;
}

.learning-exercises li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.learning-exercises li::before {
    content: '🎵';
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 12px;
}

.learning-module-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-tertiary);
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.learning-difficulty {
    font-weight: 500;
}

.learning-duration {
    font-style: italic;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .learning-module {
        padding: 15px;
    }
    
    .learning-level-title {
        font-size: 18px;
    }
    
    .learning-module-title {
        font-size: 14px;
    }
    
    .learning-module-meta {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}

.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.left-controls {
    display: flex;
    gap: 10px;
}

.right-controls {
    display: flex;
    align-items: center;
}

.speed-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
}

.speed-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.speed-popup {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1001;
    display: none;
}

.speed-popup.show {
    display: block;
}

.speed-popup-content {
    background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    min-width: 120px;
}

.speed-popup-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

.speed-popup-value {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 15px;
}

.speed-popup-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.speed-popup-slider {
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
    width: 30px;
    height: 200px;
    writing-mode: vertical-lr;
    direction: rtl;
    cursor: pointer;
}

.speed-popup-label-min,
.speed-popup-label-max {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.speed-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

.speed-popup-close:hover {
    color: #fff;
}

.mode-select {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-primary) 50%),
                      linear-gradient(135deg, var(--text-primary) 50%, transparent 50%);
    background-position: calc(100% - 15px) calc(1em + 2px),
                      calc(100% - 10px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 35px;
}

.mode-select option {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 10px;
}

.mode-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.simple-mode-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a3e 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    position: relative;
}

.simple-mode-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.simple-mode-score,
.simple-mode-progress,
.simple-mode-timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.simple-mode-score-label,
.simple-mode-progress-label,
.simple-mode-timer-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.simple-mode-score-value,
.simple-mode-progress-value,
.simple-mode-timer-value {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.simple-mode-note-display {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-mode-note-placeholder {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 40px 20px;
}

.simple-mode-note-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.simple-mode-note-image {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
}

.simple-mode-range-label {
    font-size: 16px;
    font-weight: bold;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.simple-mode-feedback {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-mode-feedback-correct {
    font-size: 24px;
    color: #4ade80;
    animation: pop 0.3s ease-out;
}

.simple-mode-feedback-wrong {
    font-size: 24px;
    color: #f87171;
    animation: shake 0.3s ease-out;
}

.simple-mode-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* 节奏练习模式样式 */
.rhythm-pattern {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rhythm-beat {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.rhythm-beat.has-note {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.rhythm-beat-indicator {
    font-size: 48px;
    animation: pulse 0.5s ease-in-out;
}

.rhythm-instruction {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

/* 左手/右手练习模式样式 */
.hand-mode-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.hand-mode-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.hand-mode-title {
    text-align: center;
}

.hand-mode-title h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0 0 5px 0;
}

.hand-mode-title p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.hand-mode-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.hand-mode-score, .hand-mode-progress, .hand-mode-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hand-mode-score-label, .hand-mode-progress-label, .hand-mode-timer-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.hand-mode-score-value, .hand-mode-progress-value, .hand-mode-timer-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hand-mode-note-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-height: 200px;
}

.hand-mode-note-placeholder {
    font-size: 16px;
    color: var(--text-tertiary);
    text-align: center;
}

.hand-mode-note-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hand-mode-note-image {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
}

.hand-mode-note-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hand-mode-feedback {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    min-height: 24px;
}

.challenge-mode-info {
    margin-bottom: 20px;
}

.challenge-mode-title {
    margin-bottom: 15px;
}

.challenge-mode-title h3 {
    margin: 0 0 5px 0;
    color: #667eea;
    font-size: 20px;
}

.challenge-mode-title p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.challenge-mode-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.challenge-mode-score,
.challenge-mode-high-score,
.challenge-mode-progress,
.challenge-mode-timer {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.challenge-mode-score-label,
.challenge-mode-high-score-label,
.challenge-mode-progress-label,
.challenge-mode-timer-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.challenge-mode-score-value,
.challenge-mode-high-score-value,
.challenge-mode-progress-value,
.challenge-mode-timer-value {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.challenge-mode-target {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.challenge-mode-target h4 {
    margin: 0 0 10px 0;
    color: #ffd700;
    font-size: 16px;
}

.challenge-target-info {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.challenge-mode-note-display {
    text-align: center;
    margin: 20px 0;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.challenge-mode-note-placeholder {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.challenge-mode-note-wrapper {
    text-align: center;
}

.challenge-mode-note-image {
    max-width: 120px;
    max-height: 120px;
    margin-bottom: 10px;
    animation: bounce 0.5s ease-in-out infinite alternate;
}

.challenge-mode-note-name {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
}

.challenge-mode-feedback {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    min-height: 24px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hand-mode-info {
        align-items: center;
    }
    
    .hand-mode-stats {
        width: 100%;
        justify-content: space-around;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.piano-key-note-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 10px;
}

.score-panel-toggle {
    position: relative;
    display: inline-block;
}

.score-panel-btn {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.score-panel-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

.score-panel-dropdown {
    position: fixed;
    top: 60px;
    left: 200px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    min-width: 200px;
    max-width: 400px;
    display: none;
    overflow: hidden;
    opacity: 1;
}

.score-panel-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.score-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.score-panel-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.score-panel-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.score-panel-close:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.score-panel-content {
    padding: 12px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    background-color: var(--bg-card);
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.piano-key-note-explanation {
    background-color: var(--bg-card);
    padding: 8px 16px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

/* 学习规划模态框样式 */
.learning-plan-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.learning-progress-overview {
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
}

.learning-progress-overview h3 {
    margin: 0 0 15px 0;
    color: var(--accent-primary);
}

.progress-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.progress-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.progress-bar-container {
    margin-top: 10px;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 5px;
    transition: width 0.3s ease;
}

.recommended-practice {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.recommended-practice h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
}

.recommended-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.recommended-content h4 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
}

.recommended-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.learning-plan-details {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.learning-plan-details h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
}

.plan-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.plan-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.plan-item.completed {
    background: rgba(168, 230, 207, 0.2);
    border-color: var(--success-color);
}

.plan-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.plan-item-title {
    font-weight: bold;
    color: var(--text-primary);
}

.plan-item-priority {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.plan-item-priority.high {
    background: rgba(255, 99, 132, 0.2);
    color: #ff6384;
}

.plan-item-priority.medium {
    background: rgba(255, 159, 64, 0.2);
    color: #ff9f40;
}

.plan-item-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.plan-item-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.plan-item-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.learning-goals {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.learning-goals h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.goal-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.goal-name {
    font-weight: bold;
    color: var(--text-primary);
}

.goal-reward {
    font-size: 12px;
    color: var(--accent-primary);
}

.goal-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.goal-progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

/* 成就通知样式 */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: -300px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: right 0.3s ease;
}

.achievement-notification.show {
    right: 20px;
}

