/* 通用组件样式 */
body {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* iPhone容器 */
.iphone-container {
    width: 375px;
    height: 812px;
    background-color: white;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
}

/* iOS状态栏 */
.ios-status-bar {
    height: 44px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.ios-status-bar .time {
    font-weight: bold;
}

.ios-status-bar .right-icons {
    display: flex;
    gap: 5px;
}

/* 内容区域 */
.content-area {
    height: calc(100vh - 130px);
    overflow-y: auto;
    padding-bottom: 83px;
}

/* iOS底部导航栏 */
.ios-tab-bar {
    height: 83px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: absolute;
    bottom: 0;
    width: 100%;
}

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

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

.tab-item.active {
    color: #4CAF50;
}

/* 头像样式 */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    object-fit: cover;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    object-fit: cover;
}

.avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    object-fit: cover;
}

/* 徽章 */
.badge {
    width: 20px;
    height: 20px;
    background-color: #FF3B30;
    color: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

/* iOS卡片 */
.ios-card {
    background-color: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* iOS列表 */
.ios-list {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
}

.ios-list-item {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ios-list-item:last-child {
    border-bottom: none;
}

/* iOS按钮 */
.ios-button {
    background-color: #4CAF50;
    color: white;
    border-radius: 12px;
    padding: 16px;
    font-weight: 600;
    text-align: center;
}

/* 自定义滚动条 */
.content-area::-webkit-scrollbar {
    width: 6px;
}

.content-area::-webkit-scrollbar-track {
    background: transparent;
}

.content-area::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* CSS变量用于主题切换 */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2E7D32;
}