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

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    /* 移动端优化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 防止移动端点击延迟 */
    touch-action: manipulation;
    /* 防止文本选择（在需要的地方单独开启） */
    -webkit-tap-highlight-color: transparent;
    /* 移动端滚动优化 */
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: #4a5568;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo p {
    color: #718096;
    font-size: 0.9rem;
}

.nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 10px 20px;
    border: none;
    background: #e2e8f0;
    color: #4a5568;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    /* 移动端触摸优化 */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px; /* 最小触摸目标尺寸 */
    min-width: 44px;
}

.nav-btn:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 用户信息区域 */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    padding-left: 20px;
    border-left: 1px solid #e2e8f0;
}

.current-user {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    border: 2px solid #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    max-width: 280px;
    overflow: hidden;
}

.current-user:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #d4e0ff 100%);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: #667eea;
}

.current-user:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* 登录状态下的样式 */
.current-user.logged-in {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.current-user.logged-in:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    transform: translateY(-3px);
}

/* 添加用户图标 */
.current-user.logged-in::before {
    content: '👤 ';
    margin-right: 5px;
    flex-shrink: 0;
}

/* 用户名文本样式 - 可以截断 */
.current-user .username-text {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* VIP标识样式优化 - 始终显示，不被截断 */
.current-user .vip-badge-inline {
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.login-btn {
    padding: 8px 20px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.login-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 主要内容区域 */
.main {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

/* 搜索区域 - 固定定位优化 */
.search-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: sticky;
    top: 100px;
    z-index: 90;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* 搜索区域左侧（搜索框和筛选） */
.search-section-left {
    flex: 1;
    min-width: 0; /* 允许flex子元素收缩 */
}

/* 搜索区域右侧（播放器） */
.search-section .audio-player-container {
    flex-shrink: 0;
    width: 320px;
    margin-bottom: 0;
    padding: 15px;
}

/* 搜索区域内播放器的紧凑样式 */
.search-section .audio-player {
    gap: 12px;
}

.search-section .player-controls {
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
}

.search-section .player-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    flex-shrink: 0;
}

.search-section .player-btn-main {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.search-section .player-title {
    font-size: 1rem;
}

.search-section .player-status {
    font-size: 0.85rem;
}

/* 通用隐藏类 */
.hidden {
    display: none !important;
    visibility: hidden !important;
}

/* 玩学天地页面隐藏搜索区域 */
.search-section.hidden {
    display: none;
}

.search-box {
    display: flex;
    margin-bottom: 20px;
    max-width: 550px;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    padding-right: 90px; /* 为按钮留出空间 */
}

.search-box input:focus {
    border-color: #667eea;
}

.search-box button {
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    position: absolute;
    right: 45px;
    top: 0;
    height: 100%;
}

.search-box button:hover {
    transform: scale(1.05);
}

/* 清空按钮样式 */
#clearBtn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

#clearBtn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

/* 搜索结果信息样式 */
.search-result-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    margin-bottom: 15px;
    max-width: 100%;
}

#searchResultCount {
    font-weight: 700;
    font-size: 1.5rem;
}

#searchResultText {
    font-size: 1rem;
}

/* 关键词高亮样式 */
.poetry-card mark {
    background: #ffd700;
    color: #2d3748;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

/* 标签页内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 诗词网格 */
.poetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 锁定状态的诗词卡片 */
.poetry-card-locked {
    position: relative;
    opacity: 0.7;
    filter: grayscale(0.3);
    cursor: not-allowed !important;
}

.poetry-card-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 1;
}

.poetry-card-locked .lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    z-index: 2;
    opacity: 0.8;
    pointer-events: none;
}

.poetry-card-locked .lock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.poetry-card-locked:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* 学习列表锁定项 */
.learning-item-locked {
    opacity: 0.6;
    cursor: not-allowed !important;
    position: relative;
}

.learning-item-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    z-index: 1;
}

.learning-item-locked:hover {
    background: #f7fafc !important;
    transform: none !important;
}

.poetry-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.poetry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.poetry-card .grade-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.poetry-card h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.poetry-card .author {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.poetry-card .content {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.poetry-card .preview {
    color: #a0aec0;
    font-size: 0.85rem;
    font-style: italic;
}

/* 学习模式样式 */
/* 学习模式上下布局 */
.learning-welcome-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.learning-list-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.learning-list-section h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.learning-list {
    max-height: 500px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.learning-item {
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.learning-item:hover {
    background: #edf2f7;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.learning-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.learning-item.learning-item-locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.welcome-message {
    text-align: center;
    padding: 30px 20px;
}

.welcome-message h2 {
    color: #2d3748;
    font-size: 2rem;
    margin-bottom: 15px;
}

.welcome-message p {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.learning-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature .icon {
    font-size: 2rem;
}

.feature span:last-child {
    color: #4a5568;
    font-weight: 500;
}

/* 玩学天地样式 */
.practice-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}


.practice-header {
    text-align: center;
    margin-bottom: 30px;
}

.practice-header h2 {
    color: #2d3748;
    font-size: 2rem;
    margin-bottom: 10px;
}

.practice-header p {
    color: #718096;
    font-size: 1.1rem;
}

.practice-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.practice-card {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    /* 移动端触摸优化 */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 140px; /* 确保足够的触摸区域 */
}

.practice-card:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.practice-card .card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.practice-card h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.practice-card p {
    color: #718096;
    font-size: 0.95rem;
}

.practice-area {
    background: #f7fafc;
    border-radius: 15px;
    padding: 30px;
    min-height: 300px;
}

.practice-welcome {
    text-align: center;
    padding: 50px 20px;
}

.practice-welcome h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.practice-welcome p {
    color: #718096;
    font-size: 1rem;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

/* 学习模态框样式 */
.learning-modal-content {
    max-width: 900px;
    max-height: 85vh;
}

.learning-content {
    padding: 20px 0;
}

.poetry-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.poetry-header h2 {
    color: #2d3748;
    font-size: 2rem;
    margin-bottom: 10px;
}

.poetry-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    color: #718096;
    font-size: 0.95rem;
}

.poetry-meta span {
    padding: 4px 12px;
    background: #f7fafc;
    border-radius: 15px;
}

.poetry-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.original-text-section {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #667eea;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.section-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.section-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.section-content {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 移除折叠功能，所有内容默认展开 */

.text-content {
    line-height: 1.8;
    color: #4a5568;
    font-size: 1rem;
    white-space: pre-line;
}

.notes-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.note-item {
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.note-word {
    font-weight: bold;
    color: #2d3748;
    font-size: 1.1rem;
    margin-right: 10px;
}

.note-pinyin {
    color: #718096;
    font-size: 0.9rem;
    font-style: italic;
    margin-right: 10px;
}

.note-explanation {
    color: #4a5568;
    margin-top: 8px;
    line-height: 1.6;
}

.learning-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.action-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.action-btn-secondary {
    background: linear-gradient(135deg, #718096, #4a5568);
}

.action-btn-secondary:hover {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    box-shadow: 0 6px 16px rgba(113, 128, 150, 0.4);
}

.poetry-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* 底部样式 */
.footer {
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

.footer p {
    color: #718096;
    font-size: 0.9rem;
}

/* 响应式设计 - 移动端适配 */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .poetry-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .practice-types {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .learning-container {
        gap: 20px;
    }
    
    .learning-sidebar {
        min-width: 250px;
    }
}

/* 手机设备 (768px 及以下) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* 头部导航优化 */
    .header .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .logo p {
        text-align: center;
        font-size: 0.85rem;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    /* 移动端用户信息区域 */
    .user-info {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        padding-left: 0;
        padding-top: 10px;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        gap: 10px;
    }
    
    .current-user {
        font-size: 0.85rem;
        padding: 8px 16px;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .current-user .username-text {
        max-width: 120px;
    }
    
    .login-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    /* 搜索区域优化 - 移动端固定定位 */
    .search-section {
        padding: 15px;
        margin-bottom: 15px;
        position: sticky;
        top: 85px;
        z-index: 90;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        gap: 15px;
    }
    
    /* 移动端播放器容器 */
    .search-section .audio-player-container {
        width: 100%;
        padding: 15px;
    }
    
    .search-box {
        flex-direction: row;
        max-width: 100%;
        margin-bottom: 15px;
        position: relative;
        width: 100%;
    }
    
    .search-box input {
        border-radius: 25px;
        padding: 12px 80px 12px 18px; /* 为按钮留出空间 */
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .search-box input::placeholder {
        font-size: 13px; /* 占位符字体 */
    }
    
    .search-box button {
        border-radius: 25px;
        padding: 12px 18px;
        font-size: 0.9rem;
        width: auto;
        position: static;
        height: auto;
    }
    
    #searchBtn {
        position: absolute;
        right: 45px;
        top: 0;
        height: 100%;
    }
    
    #clearBtn {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 40px;
    }
    
    .search-result-info {
        max-width: 100%;
        padding: 8px 15px;
        margin-bottom: 12px;
    }
    
    #searchResultCount {
        font-size: 1.3rem;
    }
    
    #searchResultText {
        font-size: 0.9rem;
    }
    
    .filter-tabs {
        justify-content: center;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 60px;
    }
    
    /* 诗词网格优化 */
    .poetry-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .poetry-card {
        padding: 15px;
    }
    
    .poetry-card h3 {
        font-size: 1.2rem;
    }
    
    .poetry-card .content {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* 学习模式优化 */
    .learning-welcome-section {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .learning-list-section {
        padding: 15px;
    }
    
    .learning-list-section h3 {
        font-size: 1.1rem;
    }
    
    .learning-list {
        max-height: 400px;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .welcome-message {
        padding: 20px 15px;
    }
    
    .welcome-message h2 {
        font-size: 1.6rem;
    }
    
    .welcome-message p {
        font-size: 1rem;
    }
    
    .learning-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .feature .icon {
        font-size: 1.8rem;
    }
    
    /* 玩学天地优化 */
    .practice-container {
        padding: 20px;
    }
    
    .practice-header h2 {
        font-size: 1.6rem;
    }
    
    .practice-header p {
        font-size: 1rem;
    }
    
    .practice-types {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .practice-card {
        padding: 20px;
    }
    
    .practice-card .card-icon {
        font-size: 2.5rem;
    }
    
    .practice-card h3 {
        font-size: 1.2rem;
    }
    
    .practice-card p {
        font-size: 0.9rem;
    }
    
    .practice-area {
        padding: 20px;
    }
    
    .practice-welcome {
        padding: 30px 15px;
    }
    
    .practice-welcome h3 {
        font-size: 1.3rem;
    }
    
    /* 模态框优化 */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .learning-modal-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .poetry-header h2 {
        font-size: 1.6rem;
    }
    
    .poetry-meta {
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .section-header {
        padding: 12px 15px;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
    }
    
    .section-content {
        padding: 15px;
    }
    
    .text-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .note-item {
        padding: 12px;
    }
    
    .note-word {
        font-size: 1rem;
    }
    
    .action-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .poetry-actions {
        gap: 10px;
    }
    
    .poetry-actions .action-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .close {
        font-size: 24px;
        padding: 10px 15px;
    }
    
    /* 底部优化 */
    .footer {
        padding: 15px 0;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
}

/* 小屏手机设备 (480px 及以下) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* 头部进一步优化 */
    .header .container {
        padding: 10px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
        margin-bottom: 3px;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
    
    .nav {
        gap: 6px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    /* 小屏用户信息区域 */
    .user-info {
        gap: 8px;
        padding-top: 8px;
    }
    
    .current-user {
        font-size: 0.8rem;
        padding: 8px 12px;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .current-user .username-text {
        max-width: 100px;
    }
    
    .login-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    /* 搜索区域进一步优化 - 小屏移动端 */
    .search-section {
        padding: 12px;
        margin-bottom: 12px;
        position: sticky;
        top: 80px;
        z-index: 90;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .search-box input {
        padding: 10px 70px 10px 15px;
        font-size: 16px;
    }
    
    .search-box button {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    #searchResultCount {
        font-size: 1.1rem;
    }
    
    #searchResultText {
        font-size: 0.85rem;
    }
    
    .filter-tabs {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        min-width: 50px;
    }
    
    /* 诗词卡片进一步优化 */
    .poetry-card {
        padding: 12px;
    }
    
    .poetry-card h3 {
        font-size: 1.1rem;
    }
    
    .poetry-card .author {
        font-size: 0.85rem;
    }
    
    .poetry-card .content {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .poetry-card .preview {
        font-size: 0.8rem;
    }
    
    /* 学习模式进一步优化 */
    .learning-welcome-section {
        padding: 15px 10px;
        margin-bottom: 10px;
    }
    
    .learning-list-section {
        padding: 12px;
    }
    
    .learning-list-section h3 {
        font-size: 1rem;
    }
    
    .learning-list {
        max-height: 350px;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .learning-item {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .welcome-message {
        padding: 20px 10px;
    }
    
    .welcome-message h2 {
        font-size: 1.4rem;
    }
    
    .welcome-message p {
        font-size: 0.95rem;
    }
    
    .feature .icon {
        font-size: 1.6rem;
    }
    
    /* 玩学天地进一步优化 */
    .practice-container {
        padding: 15px;
    }
    
    .practice-header h2 {
        font-size: 1.4rem;
    }
    
    .practice-header p {
        font-size: 0.95rem;
    }
    
    .practice-card {
        padding: 15px;
    }
    
    .practice-card .card-icon {
        font-size: 2.2rem;
    }
    
    .practice-card h3 {
        font-size: 1.1rem;
    }
    
    .practice-card p {
        font-size: 0.85rem;
    }
    
    .practice-area {
        padding: 15px;
    }
    
    .practice-welcome {
        padding: 20px 10px;
    }
    
    .practice-welcome h3 {
        font-size: 1.2rem;
    }
    
    .practice-welcome p {
        font-size: 0.9rem;
    }
    
    /* 模态框进一步优化 */
    .modal-content {
        width: 98%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .learning-modal-content {
        width: 100%;
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .poetry-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .poetry-header h2 {
        font-size: 1.4rem;
    }
    
    .poetry-meta {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .poetry-meta span {
        padding: 3px 8px;
    }
    
    .section-header {
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    
    .section-header h3 {
        font-size: 1rem;
    }
    
    .section-content {
        padding: 12px;
    }
    
    .text-content {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .note-item {
        padding: 10px;
    }
    
    .note-word {
        font-size: 0.95rem;
    }
    
    .note-pinyin {
        font-size: 0.85rem;
    }
    
    .note-explanation {
        font-size: 0.9rem;
        margin-top: 6px;
    }
    
    .action-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .poetry-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .poetry-actions .action-btn {
        width: 100%;
        min-width: auto;
    }
    
    .learning-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .close {
        font-size: 20px;
        padding: 8px 12px;
    }
}

/* 超小屏设备 (360px 及以下) */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .nav-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        min-width: 60px;
    }
    
    /* 搜索区域 - 超小屏幕 */
    .search-section {
        padding: 10px;
        margin-bottom: 10px;
        position: sticky;
        top: 70px;
        z-index: 90;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .filter-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
        min-width: 45px;
    }
    
    .poetry-card {
        padding: 10px;
    }
    
    .poetry-card h3 {
        font-size: 1rem;
    }
    
    .poetry-card .content {
        font-size: 0.85rem;
    }
    
    .practice-card {
        padding: 12px;
    }
    
    .practice-card .card-icon {
        font-size: 2rem;
    }
    
    .practice-card h3 {
        font-size: 1rem;
    }
    
    .practice-card p {
        font-size: 0.8rem;
    }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .header .container {
        flex-direction: row;
        padding: 10px 15px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo p {
        font-size: 0.75rem;
    }
    
    .nav {
        gap: 6px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* 搜索区域 - 横屏优化 */
    .search-section {
        padding: 12px 15px;
        position: sticky;
        top: 70px;
        z-index: 90;
    }
    
    .learning-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .poetry-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .practice-types {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 移除hover效果，增强触摸体验 */
    .poetry-card:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border-color: transparent;
    }
    
    .poetry-card:active {
        transform: scale(0.98);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    
    .nav-btn:hover {
        background: #e2e8f0;
        transform: none;
    }
    
    .nav-btn:active {
        transform: scale(0.95);
    }
    
    .filter-btn:hover {
        border-color: #e2e8f0;
        color: #4a5568;
    }
    
    .filter-btn:active {
        transform: scale(0.95);
    }
    
    .practice-card:hover {
        background: #f7fafc;
        border-color: transparent;
        transform: none;
        box-shadow: none;
    }
    
    .practice-card:active {
        background: white;
        border-color: #667eea;
        transform: scale(0.98);
    }
    
    .learning-item:hover {
        background: #f7fafc;
        border-left-color: transparent;
    }
    
    .learning-item:active {
        background: #edf2f7;
        border-left-color: #667eea;
    }
    
    .search-box button:hover {
        transform: none;
    }
    
    .search-box button:active {
        transform: scale(0.95);
    }
    
    .close:hover {
        color: #aaa;
    }
    
    .close:active {
        color: #333;
        transform: scale(0.9);
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .poetry-card {
        border-width: 0.5px;
    }
    
    .filter-btn {
        border-width: 1px;
    }
    
    .practice-card {
        border-width: 1px;
    }
}

/* 触摸设备通用优化 */
@media (pointer: coarse) {
    /* 确保触摸目标至少44px（符合移动端最佳实践） */
    .nav-btn,
    .filter-btn,
    .search-box button,
    .close,
    .login-btn,
    .btn-primary,
    .btn-secondary,
    .btn-vip {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 增加诗词卡片的触摸区域 */
    .poetry-card {
        min-height: 120px;
        padding: 20px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 增加练习卡片的触摸区域 */
    .practice-card {
        min-height: 140px;
        padding: 25px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 增加学习列表项的触摸区域 */
    .learning-item {
        min-height: 50px;
        padding: 15px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 优化输入框 */
    .search-box input,
    .form-input {
        min-height: 44px;
        font-size: 16px; /* 防止iOS缩放 */
        touch-action: manipulation;
    }
    
    /* 优化模态框按钮 */
    .modal-content button {
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* 防止双击缩放（针对可交互元素，不应用全局） */
button,
a,
.poetry-card,
.practice-card,
.learning-item,
.filter-btn,
.nav-btn,
.search-box button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* 文本选择区域保持默认行为 */
input,
textarea,
[contenteditable="true"],
p,
span,
div[role="textbox"] {
    touch-action: auto;
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1);
}

/* 优化滚动性能 */
.poetry-grid,
.learning-list,
.modal-content {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 防止文本选择（在触摸设备上） */
.poetry-card,
.practice-card,
.nav-btn,
.filter-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 保持输入框可选择 */
input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.poetry-card {
    animation: fadeIn 0.5s ease;
}

.poetry-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.poetry-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 成功/错误提示 */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ==================== 用户功能样式 ==================== */

/* 用户模态框 */
.user-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.user-profile-container {
    padding: 20px;
}

.user-profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.user-profile-header h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* 用户信息区域 */
.user-info-section {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

/* 用户信息布局：左右分布 */
.user-info-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .user-info-layout {
        flex-direction: column;
    }
    
    .vip-upgrade-section {
        width: 100%;
    }
}

/* VIP升级区域 */
.vip-upgrade-section {
    flex: 1;
    min-width: 300px;
}

.vip-status-display {
    margin-bottom: 20px;
}

.vip-status-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.vip-icon {
    font-size: 2.5rem;
}

.vip-info {
    flex: 1;
}

.vip-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.vip-desc {
    font-size: 0.95rem;
    opacity: 0.9;
}

.vip-upgrade-area {
    padding: 25px;
    background: linear-gradient(135deg, #fef7e0 0%, #f5e6d3 100%);
    border-radius: 15px;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.vip-upgrade-area h3 {
    color: #b8860b;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.vip-benefits-list {
    margin-bottom: 25px;
}

.vip-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-text {
    color: #2d3748;
    font-size: 0.95rem;
    flex: 1;
}

.vip-price-display {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
}

.price-label {
    color: #718096;
    font-size: 1rem;
    margin-right: 8px;
}

.price-amount {
    color: #d4af37;
    font-size: 2rem;
    font-weight: 700;
}

.btn-vip-upgrade {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-vip-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

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

/* VIP升级按钮（用户功能区） */
.vip-upgrade-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    margin-right: 10px;
}

.vip-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

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

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 4rem;
    color: white;
}

.btn-upload-avatar {
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-upload-avatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 用户详情 */
.user-details {
    flex: 1;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.detail-item label {
    min-width: 80px;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
}

.readonly-text {
    color: #2d3748;
    font-size: 0.95rem;
    font-weight: 400;
}

/* 学习进度区域 */
.learning-progress-section {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
}

.learning-progress-section h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.progress-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.stat-label {
    display: block;
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.stat-value {
    display: inline-block;
    color: #667eea;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-unit {
    display: inline-block;
    color: #718096;
    font-size: 1rem;
    font-weight: 400;
    margin-left: 4px;
    vertical-align: baseline;
}

/* 学习进度列表 */
.progress-list {
    max-height: 400px;
    overflow-y: auto;
}

.progress-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.progress-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-title {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
}

.progress-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.progress-badge.mastered {
    background: #d4edda;
    color: #155724;
}

.progress-badge.learning {
    background: #fff3cd;
    color: #856404;
}

.progress-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.progress-time {
    color: #a0aec0;
    font-size: 0.85rem;
    margin-top: 8px;
}

.empty-message {
    text-align: center;
    color: #a0aec0;
    padding: 40px 20px;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-modal-content {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .avatar-preview {
        width: 100px;
        height: 100px;
    }
    
    .avatar-placeholder {
        font-size: 3rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-item label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .form-input {
        width: 100%;
    }
    
    /* 用户信息布局：移动端垂直排列 */
    .user-info-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .avatar-section {
        width: 100%;
    }
    
    .user-details {
        width: 100%;
    }
    
    .progress-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        min-width: auto;
        width: 100%;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-unit {
        font-size: 0.9rem;
    }
    
    .progress-details {
        flex-direction: column;
        gap: 8px;
    }
}

/* ==================== 练习次数显示 ==================== */
.practice-count-display {
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.practice-count-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.practice-count-info.guest {
    flex-direction: column;
    gap: 8px;
}

.count-label {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
}

.count-value {
    color: #667eea;
    font-size: 1rem;
    font-weight: 700;
}

.count-remaining {
    color: #48bb78;
    font-size: 0.9rem;
    font-weight: 500;
}

.count-tip {
    color: #718096;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 5px;
}

/* ==================== VIP升级模态框 ==================== */
.vip-upgrade-modal-content {
    max-width: 500px;
    background: #fef7e0;
    border-radius: 20px;
}

/* ==================== 关于乐园模态框样式 ==================== */

.about-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.about-content {
    padding: 30px;
    color: #333;
    background: white;
    border-radius: 15px;
    margin: 20px;
}

.about-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.about-header h2 {
    color: #667eea;
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.about-intro {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.about-intro p {
    margin: 0;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #2d3748;
}

.about-sections {
    margin-bottom: 30px;
}

.about-section {
    background: #f7fafc;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.about-section:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}

.section-icon {
    font-size: 2rem;
    line-height: 1;
}

.section-header h3 {
    color: #2d3748;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
}

.section-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.7;
    color: #4a5568;
    font-size: 1.05rem;
}

.section-list li::before {
    content: "•";
    position: absolute;
    left: 10px;
    color: #667eea;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.2;
}

.section-list li.highlight {
    background: #fff5e6;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #ffa500;
    color: #d97706;
    font-size: 1.1rem;
}

.about-advantages {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.advantages-title {
    text-align: center;
    color: #667eea;
    font-size: 1.6rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.advantage-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.check-icon {
    font-size: 1.5rem;
    color: #48bb78;
    flex-shrink: 0;
    margin-top: 2px;
}

.advantage-item div {
    flex: 1;
}

.advantage-item strong {
    display: block;
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.advantage-item p {
    margin: 0;
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.5;
}

.about-device {
    text-align: center;
    padding: 25px;
    background: #f7fafc;
    border-radius: 10px;
    margin-bottom: 30px;
}

.device-title {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-device p {
    margin: 0;
    color: #4a5568;
    font-size: 1.1rem;
}

.about-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.slogan {
    color: #667eea;
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.6;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .about-modal-content {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .about-content {
        padding: 20px;
        margin: 10px;
    }
    
    .about-header h2 {
        font-size: 1.5rem;
    }
    
    .about-intro {
        padding: 15px;
    }
    
    .about-intro p {
        font-size: 1rem;
    }
    
    .about-section {
        padding: 20px;
    }
    
    .section-header h3 {
        font-size: 1.2rem;
    }
    
    .section-list li {
        font-size: 1rem;
        padding: 10px 0;
        padding-left: 25px;
    }
    
    .about-advantages {
        padding: 20px;
    }
    
    .advantages-title {
        font-size: 1.3rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .advantage-item {
        padding: 15px;
    }
    
    .slogan {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .about-content {
        padding: 15px;
        margin: 5px;
    }
    
    .about-header h2 {
        font-size: 1.3rem;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
    }
    
    .slogan {
        font-size: 1rem;
    }
}

.vip-upgrade-modal-container {
    padding: 40px 30px;
    text-align: center;
}

.vip-upgrade-title {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.vip-benefits-list-modal {
    margin-bottom: 25px;
}

.vip-benefit-item-modal {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    margin-bottom: 12px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.benefit-icon-modal {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.benefit-text-modal {
    color: #2d3748;
    font-size: 1rem;
    flex: 1;
    line-height: 1.5;
}

.benefit-text-modal strong {
    color: #1a202c;
    font-weight: 600;
}

.vip-price-display-modal {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.price-label-modal {
    color: #718096;
    font-size: 1rem;
    margin-right: 8px;
}

.price-amount-modal {
    color: #d4af37;
    font-size: 2.5rem;
    font-weight: 700;
}

.btn-vip-pay {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-vip-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

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

/* ==================== 支付成功模态框 ==================== */
.payment-success-content {
    max-width: 500px;
    text-align: center;
    background: linear-gradient(135deg, #fef7e0 0%, #fff9e6 100%);
    border-radius: 20px;
}

.payment-success-container {
    padding: 40px 30px;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    50% {
        transform: scale(1.15) rotate(5deg);
    }
    75% {
        transform: scale(1.1) rotate(-5deg);
    }
}

.success-title {
    color: #2d3748;
    font-size: 2rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.success-message {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.success-main-text {
    color: #4a5568;
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.vip-highlight {
    color: #d4af37;
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.success-sub-text {
    color: #718096;
    font-size: 1.1rem;
    line-height: 1.6;
}

.success-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    font-size: 1.2rem;
    font-weight: 600;
}

.vip-badge-icon {
    font-size: 1.5rem;
}

.vip-badge-text {
    letter-spacing: 1px;
}

.success-actions {
    margin-top: 20px;
}

.btn-success {
    padding: 15px 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    min-height: 50px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

/* 移动端适配 */
@media (max-width: 768px) {
    .payment-success-container {
        padding: 30px 20px;
    }
    
    .success-icon {
        font-size: 4rem;
    }
    
    .success-title {
        font-size: 1.6rem;
    }
    
    .success-main-text {
        font-size: 1.1rem;
    }
    
    .vip-highlight {
        font-size: 1.2rem;
    }
    
    .success-sub-text {
        font-size: 1rem;
    }
    
    .success-vip-badge {
        padding: 10px 25px;
        font-size: 1.1rem;
    }
    
    .btn-success {
        width: 100%;
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

/* ==================== 注册提示模态框 ==================== */
.register-prompt-content {
    max-width: 500px;
    text-align: center;
}

.register-prompt-container {
    padding: 30px;
}

.prompt-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

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

.register-prompt-container h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.prompt-message {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.count-text {
    color: #4a5568;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.remaining-text {
    color: #e53e3e;
    font-size: 1rem;
    font-weight: 500;
}

.prompt-benefits {
    text-align: left;
    background: #edf2f7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.prompt-benefits h3 {
    color: #2d3748;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.prompt-benefits ul {
    list-style: none;
    padding: 0;
}

.prompt-benefits li {
    color: #4a5568;
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.prompt-benefits li:last-child {
    border-bottom: none;
}

/* 解锁步骤样式 */
.unlock-step {
    background: #edf2f7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.unlock-step.vip-step {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.vip-step .step-number {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.step-header h3 {
    color: #2d3748;
    font-size: 1.2rem;
    margin: 0;
    flex: 1;
}

.unlock-step ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.unlock-step ul li {
    color: #4a5568;
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1.6;
}

.unlock-step ul li:last-child {
    border-bottom: none;
}

.unlock-step .vip-price {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(245, 158, 11, 0.3);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d97706;
}

/* 解锁步骤响应式优化 */
@media (max-width: 768px) {
    .unlock-step {
        padding: 15px;
    }
    
    .step-header {
        flex-wrap: wrap;
    }
    
    .step-header h3 {
        font-size: 1.1rem;
    }
    
    .unlock-step .vip-price {
        font-size: 1.3rem;
    }
}

/* VIP会员提示区域 */
.prompt-vip-section {
    background: linear-gradient(135deg, #f6e05e 0%, #fbbf24 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.prompt-vip-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: vipShine 3s infinite;
}

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

.vip-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #744210;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(116, 66, 16, 0.3);
    animation: vipPulse 2s infinite;
}

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

.prompt-vip-section h3 {
    color: #744210;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.vip-price {
    color: #c05621;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(116, 66, 16, 0.2);
}

.vip-benefits {
    list-style: none;
    padding: 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin: 0;
}

.vip-benefits li {
    color: #744210;
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(116, 66, 16, 0.2);
}

.vip-benefits li:last-child {
    border-bottom: none;
}

.vip-benefits li strong {
    color: #c05621;
}

.prompt-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
}

.btn-vip {
    padding: 14px 35px;
    background: linear-gradient(135deg, #f6e05e, #fbbf24);
    color: #744210;
    border: 2px solid #f59e0b;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.5);
    order: -1; /* 放在最前面 */
}

.btn-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.7);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.btn-primary {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    padding: 12px 30px;
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .practice-count-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .register-prompt-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .register-prompt-container {
        padding: 20px;
    }
    
    .prompt-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-vip {
        width: 100%;
    }
    
    .prompt-vip-section {
        padding: 20px;
    }
    
    .vip-price {
        font-size: 1.5rem;
    }
}

/* ==================== 播放器样式 ==================== */
.audio-player-container {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 在搜索区域内的播放器容器样式 */
.search-section .audio-player-container {
    margin-bottom: 0;
    padding: 15px;
    width: 320px;
}

.audio-player {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.player-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-lock-overlay:hover {
    background: rgba(0, 0, 0, 0.3);
}

.player-lock-overlay.hidden {
    display: none;
}

.player-lock-overlay .lock-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.player-lock-overlay .lock-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.player-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.player-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

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

.player-btn-main {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.player-btn.active {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.player-info {
    text-align: center;
}

.player-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 5px;
}

.player-status {
    font-size: 0.9rem;
    color: #718096;
}

/* 播放列表模态框样式 */
.playlist-modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.playlist-container {
    padding: 20px;
}

.playlist-container h2 {
    margin-bottom: 20px;
    color: #4a5568;
}

.playlist-header {
    margin-bottom: 20px;
}

.btn-add-collection {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.btn-add-collection:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.playlist-collections {
    margin-bottom: 20px;
}

.collection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f7fafc;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.collection-item:hover {
    background: #edf2f7;
}

.collection-item-name {
    font-weight: 500;
    color: #4a5568;
    flex: 1;
}

.collection-item-remove {
    background: #fc8181;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.collection-item-remove:hover {
    background: #f56565;
    transform: translateY(-1px);
}

.playlist-audios {
    max-height: 300px;
    overflow-y: auto;
}

.playlist-audio-item {
    padding: 10px 15px;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-audio-item:hover {
    background: #edf2f7;
}

.playlist-audio-item.playing {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-left: 4px solid #667eea;
}

.playlist-audio-item-title {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 3px;
}

.playlist-audio-item-info {
    font-size: 0.85rem;
    color: #718096;
}

/* 音频合集选择模态框样式 */
.collection-select-modal-content {
    max-width: 500px;
    max-height: 70vh;
    overflow-y: auto;
}

.collection-select-container {
    padding: 20px;
}

.collection-select-container h2 {
    margin-bottom: 20px;
    color: #4a5568;
}

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

.collection-option {
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.collection-option:hover {
    background: #edf2f7;
    border-color: #667eea;
}

.collection-option-name {
    font-weight: 500;
    color: #4a5568;
    font-size: 1rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .audio-player-container {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    /* 移动端搜索区域内的播放器 */
    .search-section .audio-player-container {
        width: 100%;
        padding: 15px;
        margin-bottom: 0;
    }
    
    .player-controls {
        gap: 8px;
    }
    
    .player-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .player-btn-main {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .playlist-modal-content,
    .collection-select-modal-content {
        width: 95%;
        max-height: 85vh;
    }
}

/* ==================== 播放器提示模态框 ==================== */
.player-tip-modal-content {
    max-width: 400px;
    text-align: center;
}

.player-tip-container {
    padding: 30px;
}

.player-tip-container .tip-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.player-tip-container .tip-title {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.player-tip-container .tip-message {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

.player-tip-container .tip-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.player-tip-container .tip-actions .btn-primary {
    min-width: 100px;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.player-tip-container .tip-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.player-tip-container .tip-actions .btn-primary:active {
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .player-tip-modal-content {
        width: 95%;
        max-width: 95%;
    }
    
    .player-tip-container {
        padding: 20px;
    }
    
    .player-tip-container .tip-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .player-tip-container .tip-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .player-tip-container .tip-message {
        padding: 15px;
        font-size: 0.95rem;
    }
}
