/* 全局样式 */
:root {
    --primary-color: #0070e0;
    --secondary-color: #4da6ff;
    --success-color: #34c759;
    --warning-color: #ff9500;
    --danger-color: #ff3b30;
    --gray-light: #f2f2f7;
    --gray-medium: #c7c7cc;
    --gray-dark: #8e8e93;
    --text-primary: #000000;
    --text-secondary: #3c3c43;
    --background-color: #f2f2f7;
}

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-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* iOS 状态栏 */
.ios-status-bar {
    height: 44px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.status-bar-time {
    font-weight: 600;
    font-size: 15px;
}

.status-bar-icons {
    display: flex;
    align-items: center;
}

.status-bar-icons i {
    margin-left: 6px;
    font-size: 16px;
}

/* iOS 导航栏 */
.ios-nav-bar {
    height: 44px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 44px;
    z-index: 90;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav-title {
    font-weight: 600;
    font-size: 17px;
    text-align: center;
    flex: 1;
}

.nav-button {
    color: var(--primary-color);
    font-weight: 400;
    font-size: 17px;
    padding: 10px;
    cursor: pointer;
}

/* iOS 底部标签栏 */
.ios-tab-bar {
    height: 83px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -1px 0 rgba(0,0,0,0.05);
    padding-bottom: 30px; /* 为底部安全区域留出空间 */
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    color: var(--gray-dark);
}

.tab-item.active {
    color: var(--primary-color);
}

.tab-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.tab-label {
    font-size: 10px;
    font-weight: 500;
}

/* 内容区域 */
.content-container {
    padding: 16px;
    margin-bottom: 83px; /* 为底部标签栏留出空间 */
    min-height: calc(100vh - 44px - 44px - 83px); /* 减去状态栏、导航栏和标签栏的高度 */
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 16px;
    margin-bottom: 16px;
}

/* 列表样式 */
.list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--gray-light);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 16px;
    background-color: var(--primary-color);
    color: white;
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.list-item-subtitle {
    font-size: 14px;
    color: var(--gray-dark);
}

.list-item-right {
    color: var(--gray-dark);
    font-size: 14px;
}

.list-item-right i {
    margin-left: 8px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--gray-medium);
    background-color: #fff;
    font-size: 16px;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 112, 224, 0.2);
}

/* 头像样式 */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    object-fit: cover;
}

.avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 48px;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

/* 实用工具类 */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.mt-2 {
    margin-top: 8px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.p-4 {
    padding: 16px;
}

.font-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 14px;
}

.text-lg {
    font-size: 18px;
}

.text-xl {
    font-size: 20px;
}

.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--success-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-gray {
    color: var(--gray-dark);
}

/* 通知徽章 */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
} 