/* iPhone 15 样式模拟 */
:root {
    --app-dark-bg: #121212;
    --app-dark-secondary: #1e1e1e;
    --app-dark-card: #252836;
    --app-accent: #6366f1;
    --app-text-light: #f3f4f6;
    --app-text-secondary: #9ca3af;
}

.phone-container {
    width: 320px;
    margin: 0 auto;
    position: relative;
}

.phone-header {
    height: 30px;
    background-color: #000;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.notch {
    position: absolute;
    width: 120px;
    height: 25px;
    background-color: #000;
    border-radius: 0 0 15px 15px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 5px 15px;
    color: white;
    font-size: 12px;
    position: relative;
    z-index: 5;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.battery {
    display: flex;
    align-items: center;
}

.phone-frame {
    height: 600px;
    border: 1px solid #ddd;
    border-top: none;
    border-bottom: none;
    overflow: hidden;
    background-color: var(--app-dark-bg);
}

.phone-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.phone-footer {
    height: 15px;
    background-color: #000;
    border-radius: 0 0 20px 20px;
}

/* 应用内通用样式 */
.app-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--app-dark-bg);
    color: var(--app-text-light);
    min-height: 100vh;
    padding-bottom: 70px;
    position: relative;
}

.app-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
}

.app-card {
    background-color: var(--app-dark-card);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
}

.nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #333;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--app-text-secondary);
    font-size: 10px;
}

.nav-item.active {
    color: var(--app-accent);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 3px;
}

/* 课程卡片样式 */
.course-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
}

.course-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.course-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.course-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.course-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

/* 单词学习页样式 */
.word-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    background-color: var(--app-dark-bg);
    background-image: url('../img/stag_bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.word-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.word-actions {
    display: flex;
    width: 100%;
    gap: 15px;
    margin-top: auto;
}

.word-btn {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    text-align: center;
}

.word-count {
    font-size: 24px;
    font-weight: 600;
    color: #f59e0b;
    margin-top: 5px;
}

/* 进度条样式 */
.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #333;
    border-radius: 3px;
    overflow: hidden;
    margin: 5px 0;
}

.progress-fill {
    height: 100%;
    background-color: var(--app-accent);
    border-radius: 3px;
}

/* 用户资料样式 */
.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.user-id {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0;
}

.vip-badge {
    background-color: rgba(0, 0, 0, 0.6);
    color: #d4af37;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    margin: 0 auto;
    display: block;
    width: fit-content;
}

.stats-container {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    flex: 1;
    background-color: var(--app-dark-card);
    border-radius: 12px;
    padding: 15px;
}

.coin-icon {
    color: #f59e0b;
    font-size: 20px;
    margin-right: 5px;
}

.coin-amount {
    font-size: 24px;
    font-weight: 600;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.equipment-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.settings-icon.purple {
    background-color: rgba(124, 58, 237, 0.2);
    color: #8b5cf6;
}

.settings-icon.blue {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.settings-icon.teal {
    background-color: rgba(20, 184, 166, 0.2);
    color: #14b8a6;
} 