.van-nav-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.van-nav-bar .van-nav-bar__title,
.van-nav-bar .van-nav-bar__text,
.van-nav-bar .van-icon {
    color: white !important;
}

.van-button--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
}

.van-tabbar {
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
}

.van-tabbar-item--active {
    color: #667eea !important;
}

.van-card {
    background: white;
    margin: 12px;
    border-radius: 12px;
}

.van-cell-group {
    margin: 12px;
    border-radius: 12px;
    overflow: hidden;
}

.van-dialog__confirm,
.van-dialog__confirm:active {
    color: #667eea;
}

.van-switch--on {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.van-tag--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.van-progress__portion {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 16px;
    color: white;
}

.page-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 14px;
    opacity: 0.9;
}

.level-card {
    background: white;
    border-radius: 12px;
    margin: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.level-card.locked {
    opacity: 0.7;
    background: #f5f5f5;
}

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

.level-title {
    font-size: 16px;
    font-weight: 600;
    color: #323233;
}

.level-progress {
    font-size: 13px;
    color: #969799;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.action-btn .icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.btn-learn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-game {
    background: #07c160;
}

.btn-dictation {
    background: #ff976a;
}

.unlock-btn {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 14px;
    font-weight: 500;
}

.welcome-card {
    background: white;
    border-radius: 12px;
    margin: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.welcome-card h2 {
    font-size: 18px;
    color: #323233;
    margin-bottom: 8px;
}

.welcome-card p {
    font-size: 14px;
    color: #969799;
}

.marketing-tip {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    border-radius: 12px;
    margin: 12px;
    padding: 16px;
    text-align: center;
    font-size: 14px;
}

.marketing-tip strong {
    font-size: 15px;
}

.word-card {
    background: white;
    border-radius: 12px;
    margin: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.word-main {
    text-align: center;
    margin-bottom: 16px;
}

.word-text {
    font-size: 32px;
    font-weight: 600;
    color: #323233;
    margin-bottom: 8px;
}

.word-phonetic {
    font-size: 16px;
    color: #969799;
}

.word-pos {
    display: inline-block;
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #667eea;
    margin-left: 8px;
}

.word-meaning {
    font-size: 18px;
    color: #323233;
    text-align: center;
    margin-bottom: 16px;
}

.word-example {
    background: #f7f8fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.word-example p {
    font-size: 14px;
    line-height: 1.6;
}

.word-example .en {
    color: #323233;
    margin-bottom: 4px;
}

.word-example .cn {
    color: #969799;
}

.game-container {
    padding: 16px;
}

.game-word {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
}

.game-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.game-option {
    background: white;
    border: 2px solid #ebedf0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.game-option:active {
    transform: scale(0.98);
}

.game-option.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.game-option.correct {
    border-color: #07c160;
    background: #e8f7e8;
}

.game-option.wrong {
    border-color: #ee0a24;
    background: #ffe8e8;
}

.pk-container {
    padding: 16px;
}

.pk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.pk-player {
    text-align: center;
    flex: 1;
}

.pk-player .name {
    font-size: 14px;
    color: #323233;
    margin-bottom: 4px;
}

.pk-player .score {
    font-size: 24px;
    font-weight: 600;
    color: #667eea;
}

.pk-vs {
    font-size: 18px;
    font-weight: 600;
    color: #969799;
    padding: 0 10px;
}

.stats-card {
    background: white;
    border-radius: 12px;
    margin: 12px;
    padding: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.stats-item .value {
    font-size: 24px;
    font-weight: 600;
    color: #667eea;
}

.stats-item .label {
    font-size: 12px;
    color: #969799;
    margin-top: 4px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 87, 108, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 87, 108, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 87, 108, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@media (min-width: 768px) {
    .app-container {
        max-width: 600px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
}
