/* iPhone 15 外观样式 */
.iphone-container {
    width: 375px;
    height: 812px;
    background: #000;
    border-radius: 47px;
    padding: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.iphone-frame {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 39px;
    overflow: hidden;
    position: relative;
}

/* 状态栏 */
.status-bar {
    height: 44px;
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.status-left .time {
    font-weight: 600;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 主内容区域 */
.app-content {
    height: calc(100% - 44px);
    display: flex;
    flex-direction: column;
}

/* 顶部导航 */
.top-nav {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}

.nav-tabs {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: none;
    background: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-tab i {
    font-size: 18px;
}

.nav-tab.active {
    color: #007AFF;
}

.nav-tab:hover {
    color: #007AFF;
}

/* iframe 内容区域 */
.content-frame {
    flex: 1;
    overflow: hidden;
}

.content-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 通用样式 */
.page-container {
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background: #007AFF;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0056CC;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* 设备状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-online {
    background: #34C759;
}

.status-offline {
    background: #FF3B30;
}

.status-warning {
    background: #FF9500;
}

/* 进度条样式 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #34C759, #30D158);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 宠物头像样式 */
.pet-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 设备图标样式 */
.device-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin-bottom: 12px;
}

/* 健康数据卡片 */
.health-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

/* 监控视频容器 */
.video-container {
    width: 100%;
    height: 200px;
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 16px;
}

/* 功能按钮网格 */
.function-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.function-btn {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.function-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.function-btn i {
    font-size: 24px;
    color: #007AFF;
    margin-bottom: 8px;
    display: block;
}

.function-btn span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
