/* iPhone 15 Mockup Styles */
.iphone-mockup {
    width: 300px;
    height: 650px;
    background: #000;
    border-radius: 32px;
    padding: 6px;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.iphone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #000;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.iphone-mockup::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    z-index: 11;
}

.iphone-mockup iframe {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    background: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .iphone-mockup {
        width: 280px;
        height: 600px;
        border-radius: 28px;
        padding: 5px;
    }
    
    .iphone-mockup::before {
        width: 100px;
        height: 20px;
        border-radius: 0 0 14px 14px;
    }
    
    .iphone-mockup::after {
        width: 10px;
        height: 10px;
        top: 5px;
    }
    
    .iphone-mockup iframe {
        border-radius: 23px;
    }
}

@media (min-width: 1024px) {
    .iphone-mockup {
        width: 320px;
        height: 690px;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

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

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bounce-in {
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* 商品卡片悬停效果 */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* 按钮点击效果 */
.btn-press {
    transition: all 0.1s ease;
}

.btn-press:active {
    transform: scale(0.98);
}

/* 加载动画 */
.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #10b981;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}