/* 
* 奇妙单词王国 - 少儿学习单词应用
* 主样式表
*/

/* 基础样式 */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #6C5CE7;
    --tertiary-color: #00B894;
    --quaternary-color: #FD79A8;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f0f0f0;
    --gray-200: #e9e9e9;
    --gray-300: #d1d1d1;
    --gray-400: #a8a8a8;
    --gray-500: #6e6e6e;
    --gray-600: #5a5a5a;
    --gray-700: #3f3f3f;
    --gray-800: #2d2d2d;
    --gray-900: #1a1a1a;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 20px rgba(0,0,0,0.1);
    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
}

/* 通用转换动画 */
.transition-standard {
    transition: all 0.3s ease;
}

.transition-fast {
    transition: all 0.2s ease;
}

/* 卡片通用样式 */
.card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    background-color: var(--white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 进度条样式 */
.progress-container {
    background-color: #FFEFEF;
    border-radius: 20px;
    height: 16px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #ff5757;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #5a4ad3;
}

.btn-tertiary {
    background-color: var(--tertiary-color);
    color: var(--white);
}

.btn-tertiary:hover {
    background-color: #00a583;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-100);
    color: var(--gray-600);
}

.btn-icon:hover {
    background-color: var(--gray-200);
}

/* 标题样式 */
.section-title {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

/* 徽章样式 */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.badge-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.badge-tertiary {
    background-color: var(--tertiary-color);
    color: var(--white);
}

/* 图标容器样式 */
.icon-container {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

/* 动画效果 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .section-title {
        font-size: 1.1rem;
    }
    
    .icon-container {
        width: 40px;
        height: 40px;
    }
}

/* iPhone 模拟框架样式 */
.iphone-frame {
    width: 375px;
    height: 812px;
    background-color: var(--white);
    border-radius: 40px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.07);
    position: relative;
    overflow: hidden;
    border: 10px solid #000000;
}

.notch {
    width: 180px;
    height: 30px;
    background-color: #000000;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

/* 底部导航样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: var(--white);
    display: flex;
    border-top: 1px solid var(--gray-100);
    z-index: 5;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 0.7rem;
    transition: all 0.2s;
}

.nav-btn.active {
    color: var(--primary-color);
}

.nav-btn i {
    font-size: 1.5rem;
    margin-bottom: 3px;
} 