/* 主样式文件 */
:root {
    --primary-color: #ff7f7f; /* 主色调 - 珊瑚粉红色 */
    --secondary-color: #ff9f9f; /* 次要色调 - 浅珊瑚色 */
    --tertiary-color: #ffbfbf; /* 第三色调 - 更浅的珊瑚色 */
    --success-color: #5bbfbf; /* 成功色调 - 青绿色 */
    --background-light: #fff8f8; /* 浅色背景 - 带微粉的白色 */
    --text-dark: #333333; /* 深色文本 */
    --text-light: #777777; /* 浅色文本 */
    --card-bg: #ffffff; /* 卡片背景色 */
    --accent-blue: #5bbfbf; /* 强调色 - 青绿色 */
}

/* iPhone样式优化 */
.iphone-container {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 8px solid #000;
    position: relative;
    overflow: hidden;
}

.screen {
    position: relative;
}

/* 按钮交互效果 */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #ff6b6b;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* 卡片样式 */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--card-bg);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 动画效果 */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.bounce {
    animation: bounce 2s infinite;
}

/* 圆形进度条 */
.progress-circle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0%, #e5e7eb 0);
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
}

.progress-value {
    position: relative;
    font-weight: bold;
    color: var(--text-dark);
}

/* 字体优化 */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--background-light);
}

/* 导航栏活跃项样式 */
.nav-btn.active {
    position: relative;
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* 用户头像样式 */
.avatar {
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 任务卡片样式 */
.task-card, .progress-card, .stats-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 标题样式 */
.header-section h1 {
    color: var(--text-dark);
}

/* 页面背景 */
.home-container, .learn-container, .games-container, .me-container {
    background-color: var(--background-light);
}

/* 标签样式 */
.category-tab {
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
}

.category-tab.active {
    background-color: var(--primary-color);
    color: white;
}

/* 状态图标样式 */
.status-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
} 