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

:root {
    --primary: #000000;
    --primary-light: #333333;
    --primary-lighter: #f1f1f1;
    --secondary: #555555;
    --success: #666666;
    --warning: #777777;
    --text: #000000;
    --text-light: #888888;
    --background: #ffffff;
    --card-bg: #ffffff;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --hover: #f5f5f5;
    --radius: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

/* 顶部导航栏 */
.app-header {
    background-color: var(--card-bg);
    padding: 16px 24px;
    box-shadow: 0 2px 10px var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
}

.logo i {
    font-size: 24px;
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-btn {
    background: var(--primary-lighter);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--primary);
}

.header-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* 加载页面 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 0, 0, 0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.loading p {
    color: var(--text-light);
    font-size: 16px;
}

/* 主内容区域 */
#main-content {
    flex: 1;
    padding: 24px;
    padding-top: 80px; /* 调整顶部间距 */
}

/* 页面切换 */
.page {
    display: none;
    min-height: calc(100vh - 80px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    display: block;
}

/* 学习页面 */
.learn-container {
    max-width: 800px;
    margin: 0 auto;
}

.progress-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px var(--shadow);
}

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

.progress-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.progress-stats {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background-color: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    width: 0%;
    border-radius: 4px;
}

.progress-percentage {
    text-align: right;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

/* 单词卡片 */
.word-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
    position: relative;
}

.word-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow);
}

.word-head {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.word-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.word-phonetic {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: var(--text-light);
}

.audio-btn {
    background: var(--hover);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--primary);
}

.audio-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.audio-btn.playing {
    background: var(--primary);
    color: white;
}

.favorite-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.favorite-btn:hover {
    color: var(--warning);
    transform: scale(1.1);
}

.favorite-btn.active {
    color: var(--warning);
}

.word-content {
    margin-bottom: 28px;
}

.word-translation {
    margin-bottom: 28px;
    padding: 20px;
    background: var(--primary-lighter);
    border-radius: 12px;
    text-align: center;
}

.word-translation p {
    font-size: 22px;
    color: var(--text);
    font-weight: 600;
}

.word-example h4 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.example-content {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.example-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.example-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.example-en {
    font-style: italic;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.5;
}

.example-cn {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.5;
}

/* 卡片操作按钮 */
.card-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.detail-btn,
.next-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.detail-btn {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.detail-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.next-btn {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.next-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.4);
}

/* 搜索页面 */
.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-header {
    margin-bottom: 24px;
}

.search-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.search-description {
    color: var(--text-light);
    font-size: 16px;
}

.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

#search-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: var(--transition);
    background: var(--card-bg);
}

#search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.search-button {
    padding: 16px 24px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-button:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.search-results {
    display: grid;
    gap: 16px;
}

.search-result-item {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow);
}

.result-word {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-phonetic {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 15px;
}

.result-translation {
    color: var(--text);
    font-size: 16px;
}

/* 详情页面 */
.detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.back-btn {
    background: var(--hover);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    transition: var(--transition);
    color: var(--primary);
}

.back-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

#detail-title {
    font-size: 28px;
    color: var(--text);
    font-weight: 700;
}

.detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.detail-section {
    margin-bottom: 28px;
    padding: 24px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.detail-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.detail-section h3 {
    color: var(--text);
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section h3 i {
    color: var(--primary);
}

.detail-section p,
.detail-section li {
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 16px;
}

.detail-section ul {
    list-style: none;
    padding-left: 0;
}

.detail-section li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
}

.detail-section li:last-child {
    border-bottom: none;
}

/* 底部Tab栏 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    color: var(--text-light);
    transition: var(--transition);
    flex: 1;
    border-radius: 12px;
    margin: 0 5px;
}

.tab-item.active {
    color: var(--primary);
    background-color: var(--hover);
}

.tab-item:hover {
    color: var(--primary);
    background-color: var(--hover);
}

.tab-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.tab-text {
    font-size: 12px;
    font-weight: 600;
}

/* 无结果状态 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results p {
    font-size: 18px;
    margin-bottom: 10px;
}

/* 错误状态 */
.error-message {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

/* 响应式设计 - 平板端 (768px - 1024px) */
@media (max-width: 1024px) {
    .word-title {
        font-size: 36px;
    }

    .word-card {
        padding: 28px;
    }

    .detail-btn,
    .next-btn {
        padding: 14px 24px;
    }
}

/* 响应式设计 - 手机端 (小于768px) */
@media (max-width: 768px) {
    #main-content {
        padding: 16px;
        padding-bottom: 90px;
    }

    .app-header {
        padding: 12px 16px;
    }

    .logo {
        font-size: 18px;
    }

    .word-card {
        padding: 24px;
    }

    .word-title {
        font-size: 32px;
    }

    .card-actions {
        flex-direction: column;
    }

    .detail-btn,
    .next-btn {
        width: 100%;
        padding: 16px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-button {
        justify-content: center;
    }

    .progress-container {
        padding: 16px;
    }

    .progress-title {
        font-size: 16px;
    }

    .tab-bar {
        height: 70px;
    }

    .tab-icon {
        font-size: 20px;
    }

    .tab-text {
        font-size: 11px;
    }

    .detail-section {
        padding: 20px;
    }

    #detail-title {
        font-size: 24px;
    }
}

/* 响应式设计 - 小手机端 (小于480px) */
@media (max-width: 480px) {
    .word-title {
        font-size: 28px;
    }

    .word-translation p {
        font-size: 18px;
    }

    .example-en,
    .example-cn {
        font-size: 15px;
    }

    .detail-section h3 {
        font-size: 18px;
    }

    .detail-section p,
    .detail-section li {
        font-size: 15px;
    }

    .tab-bar {
        height: 65px;
    }
}

/* 我的页面样式 */
.profile-container {
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    color: white;
    margin-bottom: 24px;
}

.profile-avatar {
    font-size: 64px;
    opacity: 0.9;
}

.profile-info h2 {
    font-size: 24px;
    margin-bottom: 4px;
}

.profile-info p {
    opacity: 0.8;
    font-size: 14px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.profile-menu {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--border);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: var(--hover);
}

.menu-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--primary);
    font-size: 18px;
}

.menu-content {
    flex: 1;
}

.menu-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.menu-subtitle {
    font-size: 13px;
    color: var(--text-light);
}

.menu-arrow {
    color: var(--text-light);
    font-size: 14px;
}

/* 收藏页面样式 */
.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.favorites-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--warning);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.clear-btn:hover {
    background: var(--hover);
}

.favorites-content {
    padding: 24px;
    min-height: calc(100vh - 200px);
}

.empty-favorites {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.empty-favorites i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-favorites p {
    font-size: 16px;
    margin-bottom: 8px;
}

.favorites-list {
    display: grid;
    gap: 16px;
}

.favorite-word-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.favorite-word-item:hover {
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateY(-2px);
}

.favorite-word-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.favorite-word-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

.favorite-remove-btn {
    background: none;
    border: none;
    color: var(--warning);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
}

.favorite-remove-btn:hover {
    background: var(--hover);
}

.favorite-word-phonetic {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.favorite-word-translation {
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

/* 收藏按钮样式 */
.favorite-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    z-index: 2;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.favorited {
    color: #ffd700;
}

.favorite-btn.favorited:hover {
    color: #ffed4e;
}

/* 响应式设计 - 我的页面 */
@media (max-width: 768px) {
    .profile-container {
        padding: 16px;
    }
    
    .profile-header {
        padding: 20px;
        gap: 16px;
    }
    
    .profile-avatar {
        font-size: 48px;
    }
    
    .profile-info h2 {
        font-size: 20px;
    }
    
    .profile-stats {
        gap: 12px;
    }
    
    .stat-item {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .menu-item {
        padding: 16px;
    }
    
    .favorites-content {
        padding: 16px;
    }
    
    .favorite-word-item {
        padding: 16px;
    }
}

/* 设置页面样式 */
.settings-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.settings-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.settings-content {
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.settings-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--border);
}

.settings-section h3 {
    padding: 20px 24px 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    margin: 0;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
}

.setting-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.setting-subtitle {
    font-size: 13px;
    color: var(--text-light);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.setting-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    font-size: 14px;
    min-width: 80px;
}

.setting-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    width: 100%;
    justify-content: center;
}

.setting-button:hover {
    background: var(--hover);
}

.setting-button.danger {
    color: #dc3545;
    border-color: #dc3545;
}

.setting-button.danger:hover {
    background: #f8d7da;
}

/* 学习进度页面样式 */
.progress-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.progress-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.progress-content {
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.progress-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.overview-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--border);
}

.overview-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

.overview-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.overview-label {
    font-size: 14px;
    color: var(--text-light);
}

.progress-chart {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--border);
}

.progress-chart h3 {
    margin-bottom: 24px;
    font-size: 20px;
    color: var(--primary);
}

.chart-container {
    display: flex;
    justify-content: center;
}

.progress-circle {
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage-large {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.progress-label-small {
    font-size: 14px;
    color: var(--text-light);
}

.progress-details {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--border);
}

.progress-details h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--primary);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 15px;
    color: var(--text);
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

/* 复习页面样式 */
.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.review-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.review-content {
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.review-mode-selection h3 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 24px;
    color: var(--primary);
}

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

.mode-card {
    background: var(--card-bg);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
}

.mode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow);
    border-color: var(--primary);
}

.mode-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
    font-size: 24px;
}

.mode-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.mode-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.mode-count {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.review-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 8px;
}

.review-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin-right: 16px;
    overflow: hidden;
}

.review-progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
    width: 0%;
}

.review-stats {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.review-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
    border: 1px solid var(--border);
}

.review-word h2 {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--primary);
}

.review-phonetic {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.review-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.review-option {
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--background);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.review-option:hover {
    border-color: var(--primary);
    background: var(--hover);
}

.review-option.correct {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.review-option.incorrect {
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.review-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.review-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.review-btn.primary {
    background: var(--primary);
    color: white;
}

.review-btn.primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.review-result {
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
    background: var(--hover);
}

.result-feedback {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.result-translation {
    font-size: 16px;
    color: var(--text-light);
}

.review-complete {
    text-align: center;
    padding: 40px;
}

.complete-icon {
    font-size: 64px;
    color: #ffd700;
    margin-bottom: 24px;
}

.review-complete h3 {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--primary);
}

.complete-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
}

.complete-stat {
    text-align: center;
}

.complete-stat .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
}

.complete-stat .stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* 响应式设计 - 新页面 */
@media (max-width: 768px) {
    .settings-content,
    .progress-content,
    .review-content {
        padding: 16px;
    }
    
    .progress-overview {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .overview-card {
        padding: 20px;
    }
    
    .progress-chart {
        padding: 24px 16px;
    }
    
    .mode-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .mode-card {
        padding: 24px 20px;
    }
    
    .review-card {
        padding: 24px 20px;
    }
    
    .review-word h2 {
        font-size: 28px;
    }
    
    .review-options {
        grid-template-columns: 1fr;
    }
    
    .complete-stats {
        gap: 24px;
    }
}