/* iOS状态栏样式 */
.ios-status-bar {
    height: 44px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* iOS底部导航栏样式 */
.ios-tab-bar {
    height: 83px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8e8e93;
    font-size: 10px;
    padding: 8px 0;
}

.tab-item.active {
    color: #007aff;
}

.tab-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

/* 通用容器样式 */
.content-container {
    padding: 16px;
    padding-bottom: 100px;
    height: calc(100vh - 127px);
    overflow-y: auto;
}

/* 习惯卡片样式 */
.habit-card {
    background-color: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 进度条样式 */
.progress-bar {
    height: 8px;
    background-color: #f2f2f7;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #34c759;
    border-radius: 4px;
}

/* 按钮样式 */
.ios-button {
    background-color: #007aff;
    color: white;
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 600;
    text-align: center;
}

.ios-button-secondary {
    background-color: #f2f2f7;
    color: #007aff;
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 600;
    text-align: center;
}

/* 表单样式 */
.ios-input {
    background-color: #f2f2f7;
    border-radius: 10px;
    padding: 14px 16px;
    width: 100%;
    margin-bottom: 16px;
}

/* 日历样式 */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.calendar-day.completed {
    background-color: #34c759;
    color: white;
}

.calendar-day.today {
    border: 2px solid #007aff;
}

/* 图表容器 */
.chart-container {
    background-color: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    height: 200px;
    position: relative;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f2f7;
    color: #1c1c1e;
} 