/* iPhone 框架样式 */
.iphone-frame {
    width: 375px;
    height: 812px;
    background: #ffffff;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom);
}

.notch {
    width: 150px;
    height: 30px;
    background: #000;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 100;
}

.frame-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.content-frame {
    width: 100%;
    flex: 1;
    border: none;
}

/* 底部导航栏 */
.bottom-nav {
    width: 100%;
    height: 83px; /* 增加高度以适应底部安全区域 */
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    padding-bottom: calc(env(safe-area-inset-bottom) + 5px);
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    padding: 6px 12px;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: #4F46E5;
}

/* 通用样式 */
.page-container {
    padding: 16px;
    padding-top: 50px;
    height: 100%;
    overflow-y: auto;
    padding-bottom: calc(83px + env(safe-area-inset-bottom));
}

.search-bar {
    background: #f5f5f5;
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
} 