/* 全局样式 */
:root {
    --primary-color: #007AFF;
    --secondary-color: #5AC8FA;
    --success-color: #4CD964;
    --warning-color: #FF9500;
    --danger-color: #FF3B30;
    --light-gray: #F2F2F7;
    --medium-gray: #C7C7CC;
    --dark-gray: #8E8E93;
    --text-color: #000000;
    --background-color: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* iOS 状态栏 */
.ios-status-bar {
    height: 44px;
    background-color: var(--background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.status-bar-time {
    font-weight: 600;
    font-size: 15px;
}

.status-bar-icons {
    display: flex;
    align-items: center;
}

.status-bar-icons i {
    margin-left: 5px;
}

/* iOS 导航栏 */
.ios-nav-bar {
    height: 44px;
    background-color: var(--background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-title {
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.nav-button {
    color: var(--primary-color);
    font-size: 17px;
    font-weight: 400;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* iOS 底部标签栏 */
.ios-tab-bar {
    height: 83px;
    background-color: var(--background-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 30px; /* 为底部安全区域留出空间 */
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 10px;
}

.tab-item.active {
    color: var(--primary-color);
}

.tab-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

/* 内容区域 */
.content {
    padding: 16px;
    margin-bottom: 83px; /* 为底部标签栏留出空间 */
}

/* iOS 风格的卡片 */
.ios-card {
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    overflow: hidden;
}

.ios-card-header {
    padding: 16px;
    border-bottom: 1px solid var(--light-gray);
    font-weight: 600;
}

.ios-card-content {
    padding: 16px;
}

/* iOS 风格的列表 */
.ios-list {
    background-color: var(--background-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.ios-list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--light-gray);
}

.ios-list-item:last-child {
    border-bottom: none;
}

.ios-list-item-icon {
    width: 29px;
    height: 29px;
    background-color: var(--primary-color);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    color: white;
}

.ios-list-item-content {
    flex: 1;
}

.ios-list-item-title {
    font-size: 17px;
    margin-bottom: 4px;
}

.ios-list-item-subtitle {
    font-size: 15px;
    color: var(--dark-gray);
}

.ios-list-item-chevron {
    color: var(--medium-gray);
}

/* iOS 风格的按钮 */
.ios-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    text-align: center;
}

.ios-button-secondary {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.ios-button-success {
    background-color: var(--success-color);
}

.ios-button-warning {
    background-color: var(--warning-color);
}

.ios-button-danger {
    background-color: var(--danger-color);
}

/* iOS 风格的输入框 */
.ios-input {
    background-color: var(--light-gray);
    border: none;
    border-radius: 10px;
    padding: 16px;
    font-size: 17px;
    width: 100%;
    margin-bottom: 16px;
}

/* iOS 风格的搜索栏 */
.ios-search-bar {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.ios-search-bar i {
    color: var(--dark-gray);
    margin-right: 8px;
}

.ios-search-bar input {
    background: none;
    border: none;
    font-size: 17px;
    flex: 1;
    outline: none;
}

/* iOS 风格的分段控制器 */
.ios-segmented-control {
    display: flex;
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 2px;
    margin-bottom: 16px;
}

.ios-segment {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
}

.ios-segment.active {
    background-color: var(--background-color);
    border-radius: 6px;
    color: var(--text-color);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* 头像样式 */
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    object-fit: cover;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 20px;
}

.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 40px;
}

/* 徽章 */
.badge {
    background-color: var(--danger-color);
    color: white;
    border-radius: 100px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
}

/* 工具栏 */
.ios-toolbar {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background-color: var(--background-color);
    border-top: 1px solid var(--light-gray);
}

.ios-toolbar-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
}

.ios-toolbar-button i {
    font-size: 24px;
    margin-bottom: 4px;
}

.ios-toolbar-button span {
    font-size: 10px;
}

/* 统计卡片 */
.stat-card {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--dark-gray);
}

/* 进度条 */
.progress-bar {
    height: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* 通用工具类 */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-gray { color: var(--dark-gray); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-light { background-color: var(--light-gray); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.ml-1 { margin-left: 8px; }
.ml-2 { margin-left: 16px; }
.mr-1 { margin-right: 8px; }
.mr-2 { margin-right: 16px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }

.rounded { border-radius: 8px; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.text-sm { font-size: 13px; }
.text-base { font-size: 15px; }
.text-lg { font-size: 17px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; } 