/* iPhone 15 外观样式 */
.iphone-container {
    perspective: 1000px;
}

.iphone-frame {
    width: 375px;
    height: 812px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 
        0 0 0 2px #333,
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

/* 动态岛 */
.dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 126px;
    height: 37px;
    background: #000;
    border-radius: 19px;
    z-index: 10;
}

/* 屏幕内容 */
.screen-content {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 42px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 状态栏 */
.status-bar {
    height: 44px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    padding-top: 20px;
}

.battery-icon {
    width: 24px;
    height: 12px;
    border: 1px solid #000;
    border-radius: 2px;
    position: relative;
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 3px;
    width: 2px;
    height: 6px;
    background: #000;
    border-radius: 0 1px 1px 0;
}

.battery-level {
    width: 80%;
    height: 100%;
    background: #000;
    border-radius: 1px;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    overflow: hidden;
    background: #f8fafc;
}

.main-content iframe {
    transition: opacity 0.3s ease;
}

/* 底部导航栏 */
.bottom-nav {
    height: 83px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 8px 0 20px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-item.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-item.active:hover {
    background: rgba(59, 130, 246, 0.15);
}

/* 通用样式 */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0, -8px, 0); }
    70% { transform: translate3d(0, -4px, 0); }
    90% { transform: translate3d(0, -2px, 0); }
}

.bounce {
    animation: bounce 1s ease infinite;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .iphone-frame {
        width: 350px;
        height: 760px;
    }
}
