/* iPhone样式模拟 */
.iphone-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.iphone-frame {
    position: relative;
    width: 375px;
    height: 812px;
    background-color: #000;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background-color: #000;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 10;
}

.iphone-screen {
    width: 100%;
    height: calc(100% - 60px);
    overflow: hidden;
    background-color: white;
}

.iphone-bottom-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 底部导航 */
.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #9CA3AF;
    transition: color 0.3s;
    padding: 6px 12px;
    border-radius: 8px;
}

.tab-btn.active {
    color: #3B82F6;
    background-color: #EFF6FF;
}

/* 通用样式 */
.app-container {
    padding: 20px;
    padding-top: 40px;
    height: 100%;
    overflow-y: auto;
}

.card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.word-card {
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.word-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    background-color: #E5E7EB;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    background-color: #3B82F6;
}

/* 动画效果 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* 游戏相关 */
.game-card {
    position: relative;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

/* 自定义颜色 */
.bg-primary-light {
    background-color: #EFF6FF;
}

.text-primary {
    color: #3B82F6;
}

.border-primary {
    border-color: #3B82F6;
} 