/* styles.css */
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* iPhone 15 Pro 容器样式 */
.iphone-container {
    width: 393px;
    height: 852px;
    background: white;
    border-radius: 55px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin: 20px auto;
}

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

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

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

/* 底部标签栏 */
.bottom-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 83px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 20px;
}

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

.tab-item i {
    font-size: 22px;
    margin-bottom: 3px;
}

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

/* 内容区域 */
.app-container {
    padding-bottom: 83px;
    min-height: 100vh;
    background: #F2F2F7;
}

/* iframe 样式 */
iframe {
    width: 100%;
    height: calc(100% - 127px); /* 减去状态栏和底部标签栏的高度 */
    border: none;
}

/* 通用组件样式 */
.search-bar input::placeholder {
    color: #999;
}

.carousel img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.quick-action-item i {
    font-size: 24px;
}

.hospital-item img {
    border-radius: 8px;
}

/* 动画效果 */
.tab-item, button {
    transition: all 0.2s ease;
}

.tab-item:active, button:active {
    opacity: 0.7;
}

/* 响应式调整 */
@media (max-width: 393px) {
    .iphone-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}