/* Apple产品图标CSS绘制 */

/* 基础产品图标样式 */
.product-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
}

.product-icon::before,
.product-icon::after {
    content: '';
    position: absolute;
}

/* MacBook图标 */
.product-icon.macbook {
    background: linear-gradient(135deg, #E5E5EA, #D1D1D6);
}

.product-icon.macbook::before {
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #1C1C1E, #2C2C2E);
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.product-icon.macbook::after {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #D1D1D6, #E5E5EA);
    border-radius: 2px;
    bottom: 15px;
}

/* iPad图标 */
.product-icon.ipad {
    background: linear-gradient(135deg, #007AFF, #5AC8FA);
    border-radius: 18px;
}

.product-icon.ipad::before {
    width: 50px;
    height: 65px;
    background: linear-gradient(135deg, #1C1C1E, #2C2C2E);
    border-radius: 12px;
    border: 2px solid #FFFFFF;
    box-shadow: 
        inset 0 2px 10px rgba(255, 255, 255, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-icon.ipad::after {
    width: 6px;
    height: 6px;
    background: #FFFFFF;
    border-radius: 50%;
    bottom: 8px;
    opacity: 0.8;
}

/* AirPods图标 */
.product-icon.airpods {
    background: linear-gradient(135deg, #FFFFFF, #F2F2F7);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-icon.airpods::before {
    width: 50px;
    height: 30px;
    background: linear-gradient(135deg, #FFFFFF, #F2F2F7);
    border-radius: 25px 25px 5px 5px;
    border: 1px solid #E5E5EA;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-icon.airpods::after {
    width: 20px;
    height: 30px;
    background: linear-gradient(180deg, 
        transparent 0%,
        transparent 40%,
        #E5E5EA 40%,
        #D1D1D6 60%,
        #C7C7CC 100%
    );
    border-radius: 0 0 10px 10px;
    bottom: 10px;
}

/* Apple Watch图标 */
.product-icon.watch {
    background: linear-gradient(135deg, #1D1D1F, #48484A);
    border-radius: 20px;
    border: 2px solid #6D6D70;
}

.product-icon.watch::before {
    width: 45px;
    height: 55px;
    background: linear-gradient(135deg, #1C1C1E, #2C2C2E);
    border-radius: 15px;
    border: 1px solid #48484A;
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.1),
        0 3px 10px rgba(0, 0, 0, 0.3);
}

.product-icon.watch::after {
    width: 15px;
    height: 3px;
    background: #FF3B30;
    border-radius: 2px;
    right: -2px;
    box-shadow: 0 1px 3px rgba(255, 59, 48, 0.5);
}

/* iPhone图标变种 */
.product-mockup.iphone-icon {
    position: relative;
    background: linear-gradient(135deg, #1C1C1E, #2C2C2E);
    border: 3px solid #48484A;
    border-radius: 25px;
    box-shadow: 
        inset 0 2px 10px rgba(255, 255, 255, 0.05),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-mockup.iphone-icon::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #48484A;
    border-radius: 3px;
}

.product-mockup.iphone-icon::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #48484A;
    border-radius: 2px;
}

/* 产品图标悬停效果 */
.product-icon:hover {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.product-icon.macbook:hover {
    box-shadow: 0 10px 25px rgba(133, 133, 142, 0.3);
}

.product-icon.ipad:hover {
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.4);
}

.product-icon.airpods:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-icon.watch:hover {
    box-shadow: 0 10px 25px rgba(29, 29, 31, 0.4);
}

/* 产品图标动画 */
@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.product-icon {
    animation: iconFloat 3s ease-in-out infinite;
}

.product-icon.macbook { animation-delay: 0s; }
.product-icon.ipad { animation-delay: 0.5s; }
.product-icon.airpods { animation-delay: 1s; }
.product-icon.watch { animation-delay: 1.5s; }

/* 响应式调整 */
@media (max-width: 768px) {
    .product-icon {
        width: 60px;
        height: 60px;
    }
    
    .product-icon.macbook::before {
        width: 45px;
        height: 30px;
    }
    
    .product-icon.macbook::after {
        width: 50px;
        height: 3px;
        bottom: 10px;
    }
    
    .product-icon.ipad::before {
        width: 35px;
        height: 45px;
    }
    
    .product-icon.airpods::before {
        width: 35px;
        height: 20px;
    }
    
    .product-icon.airpods::after {
        width: 15px;
        height: 20px;
        bottom: 8px;
    }
    
    .product-icon.watch::before {
        width: 30px;
        height: 35px;
    }
    
    .product-icon.watch::after {
        width: 10px;
        height: 2px;
    }
}

/* 特殊效果：苹果Logo */
.apple-logo-css {
    position: relative;
    width: 40px;
    height: 50px;
    margin: 0 auto;
}

.apple-logo-css::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 35px;
    background: linear-gradient(135deg, #A3AAAE, #8E8E93);
    border-radius: 50% 45% 45% 50% / 60% 60% 40% 40%;
    transform: rotate(-45deg);
    left: 5px;
    top: 8px;
    box-shadow: 
        inset -3px -3px 5px rgba(255, 255, 255, 0.2),
        inset 3px 3px 5px rgba(0, 0, 0, 0.1);
}

.apple-logo-css::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 12px;
    background: linear-gradient(135deg, #48484A, #636366);
    border-radius: 40% 60% 60% 40% / 70% 70% 30% 30%;
    transform: rotate(20deg);
    right: 8px;
    top: 2px;
}

/* 产品卡片内图标整合 */
.product-card .product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.1) translateY(-5px);
}
