/* 整体样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* iPhone 框架样式 */
.prototype-container {
    margin-bottom: 2rem;
}

.iphone-frame {
    position: relative;
    width: 375px;
    height: 812px;
    margin: 0 auto;
    background-color: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.iphone-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* iOS状态栏样式 */
.ios-status-bar {
    height: 44px;
    background-color: #f8f8f8;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

.status-left {
    display: flex;
    align-items: center;
}

.status-right {
    display: flex;
    align-items: center;
}

.time {
    font-weight: 600;
}

.battery-icon {
    margin-left: 8px;
}

/* iOS导航栏样式 */
.ios-nav-bar {
    background-color: #ffffff;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.nav-title {
    font-size: 17px;
    font-weight: 600;
    color: #000000;
}

.back-button {
    position: absolute;
    left: 16px;
    font-size: 17px;
    color: #007AFF;
}

/* iOS底部标签栏样式 */
.ios-tab-bar {
    height: 83px; /* 包含底部安全区域的高度 */
    background-color: rgba(248, 248, 248, 0.95);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
    padding-bottom: 30px; /* 底部安全区域 */
    border-top: 1px solid #e0e0e0;
}

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

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

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

/* 内容区域样式 */
.content-area {
    padding: 16px;
    margin-bottom: 83px; /* 与底部标签栏高度相同 */
    overflow-y: auto;
    height: calc(100% - 44px - 44px - 83px); /* 减去状态栏、导航栏和标签栏的高度 */
}

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

.card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 按钮样式 */
.ios-button {
    background-color: #007AFF;
    color: white;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    border: none;
    font-size: 16px;
}

.ios-button.secondary {
    background-color: #f2f2f7;
    color: #007AFF;
}

/* 列表样式 */
.ios-list {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.list-item {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: #6c6c6c;
}

.form-input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-size: 16px;
    background-color: #f2f2f7;
}

.form-select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-size: 16px;
    background-color: #f2f2f7;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* 徽章样式 */
.badge {
    background-color: #FF3B30;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -5px;
}

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

.avatar.large {
    width: 80px;
    height: 80px;
}

/* 分割线 */
.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 16px 0;
}

/* 搜索框 */
.search-bar {
    background-color: #f2f2f7;
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.search-icon {
    color: #8e8e93;
    margin-right: 8px;
}

.search-input {
    border: none;
    background: transparent;
    flex-grow: 1;
    font-size: 16px;
}

/* 进度条 */
.progress-bar {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

/* 评分星星 */
.rating {
    display: flex;
}

.star {
    color: #FFCC00;
    margin-right: 2px;
    font-size: 14px;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f2f2f7;
    border-radius: 16px;
    font-size: 12px;
    margin-right: 8px;
    color: #6c6c6c;
}

/* 通知样式 */
.notification {
    padding: 16px;
    background-color: #f2f2f7;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.notification-icon {
    margin-right: 12px;
    color: #007AFF;
    font-size: 20px;
}

.notification-content {
    flex-grow: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-text {
    color: #6c6c6c;
    font-size: 14px;
}
