/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #e8f5f1;
    min-height: 100vh;
    padding: 20px;
    overflow-x: auto;
}

/* 页面容器样式 */
.pages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
}

/* iPhone 15 模拟器样式 */
.iphone-container {
    width: 390px;
    height: 844px;
    background: #fff;
    border-radius: 40px;
    padding: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.iphone-frame {
    width: 100%;
    height: 100%;
    background: #f8fafb;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

/* 开屏页面样式 */
.splash-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #42d7aa, #3bb094);
}

.splash-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.splash-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.splash-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.splash-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 按钮样式 */
.btn-primary {
    background: #42d7aa;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(66, 215, 170, 0.3);
}

.btn-primary:hover {
    background: #3bb094;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 215, 170, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 认证页面样式 */
.auth-content {
    padding: 20px;
}

.auth-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    flex: 1;
    text-align: center;
    font-size: 24px;
    color: #333;
}

.auth-form {
    max-width: 300px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: #4CAF50;
    text-decoration: none;
    margin: 0 10px;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* 单词列表样式 */
.word-list {
    display: grid;
    gap: 20px;
}

.word-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    cursor: pointer;
    transition: transform 0.2s;
}

.word-card:hover {
    transform: translateY(-2px);
}

.word-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.word-info {
    flex: 1;
    padding: 15px;
}

.word-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.word-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.word-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #4CAF50;
    border-radius: 2px;
}

.word-progress span {
    font-size: 12px;
    color: #666;
}

/* 单词详情页面样式 */
.word-detail {
    padding: 20px;
}

.word-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.word-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.word-content {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.word-pronunciation {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.word-pronunciation h2 {
    font-size: 24px;
    color: #333;
}

.pronounce-btn {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: #f0f7ff;
    border: none;
    color: #4CAF50;
    cursor: pointer;
    transition: background 0.3s;
}

.pronounce-btn:hover {
    background: #e0f0ff;
}

.word-meaning {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.word-examples {
    margin-bottom: 20px;
}

.word-examples h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.word-examples p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.word-actions {
    display: flex;
    gap: 15px;
}

/* 状态栏样式 */
.status-bar {
    height: 44px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.status-icons {
    display: flex;
    gap: 8px;
}

/* 主内容区样式 */
.app-content {
    height: calc(100% - 44px);
    overflow-y: auto;
    padding: 24px;
}

/* 顶部导航样式 */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.app-header h1 {
    font-size: 28px;
    color: #2c3e50;
    font-weight: 700;
}

.back-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #f5f5f5;
    cursor: pointer;
}

.back-button i {
    font-size: 18px;
    color: #333;
}

/* 用户头像样式 */
.user-profile {
    position: relative;
}

.user-profile img {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 进度卡片样式 */
.progress-section {
    margin-bottom: 30px;
}

.progress-card {
    background: linear-gradient(135deg, #42d7aa, #3bb094);
    border-radius: 24px;
    padding: 24px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(66, 215, 170, 0.2);
}

.progress-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.progress-info p {
    font-size: 15px;
    opacity: 0.9;
}

/* 学习模块样式 */
.learning-modules {
    display: grid;
    gap: 20px;
}

.module-card {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 16px;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.module-icon {
    width: 56px;
    height: 56px;
    background: #f0f9f6;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #42d7aa;
}

.module-info h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 6px;
    font-weight: 600;
}

.module-info p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.4;
}

/* 单词分类样式 */
.word-categories {
    display: grid;
    gap: 20px;
}

.category-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 20px;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.category-card h3 {
    padding: 20px 20px 10px;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.category-card p {
    padding: 0 20px 20px;
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.4;
}

/* 游戏模式样式 */
.game-modes {
    display: grid;
    gap: 20px;
}

.game-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-2px);
}

.game-icon {
    width: 60px;
    height: 60px;
    background: #f0f7ff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #4CAF50;
}

.game-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.game-info p {
    font-size: 14px;
    color: #666;
}

/* 个人中心样式 */
.profile-content {
    padding: 20px 0;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.profile-header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.profile-header p {
    font-size: 14px;
    color: #666;
}

.achievement-section {
    margin-bottom: 30px;
}

.achievement-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.achievement-item {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.achievement-item i {
    font-size: 24px;
    color: #4CAF50;
    margin-bottom: 8px;
}

.achievement-item span {
    font-size: 12px;
    color: #333;
}

.settings-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.settings-list {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
}

.settings-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item i:first-child {
    font-size: 20px;
    color: #4CAF50;
}

.settings-item span {
    flex: 1;
    font-size: 16px;
    color: #333;
}

.settings-item i:last-child {
    font-size: 14px;
    color: #999;
}

/* 底部导航栏样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #95a5a6;
    font-size: 12px;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-item i {
    font-size: 22px;
}

.nav-item.active {
    color: #42d7aa;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f8fafb;
}

::-webkit-scrollbar-thumb {
    background: #dfe6e9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b2bec3;
} 