/* 首页专用样式 */

/* ========== Hero Section 网格背景样式 ========== */
.hero-grid-bg {
    background-color: #fdf2f8;
    background-image: 
        linear-gradient(rgba(236, 72, 153, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 72, 153, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0;
}

/* ========== 3D Carousel 圆形旋转手机边框样式 ========== */
.carousel-3d-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-3d-stage {
    position: relative;
    width: 200px;
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-3d-item {
    position: absolute;
    width: 200px;
    height: 400px;
    left: 0;
    top: 0;
    transition: all 0.3s;
    cursor: pointer;
    transform-style: preserve-3d;
}

/* 手机外壳 */
.phone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2c3e50, #1a252f);
    border-radius: 25px;
    padding: 8px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.4),
        inset 0 0 0 2px rgba(255,255,255,0.1),
        inset 0 0 20px rgba(0,0,0,0.3);
}

.carousel-3d-item:hover .phone-frame {
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.5),
        inset 0 0 0 2px rgba(255,255,255,0.15),
        inset 0 0 20px rgba(0,0,0,0.3);
}

/* 手机屏幕 */
.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

/* 刘海 */
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 18px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 0 0 12px 12px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* 刘海内的摄像头 */
.phone-camera {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #1a3a52, #0a1a22);
    border-radius: 50%;
    border: 1px solid #333;
}

/* 听筒 */
.phone-speaker {
    position: absolute;
    top: 6px;
    left: 20px;
    width: 28px;
    height: 3px;
    background: #0a0a0a;
    border-radius: 2px;
}

/* 屏幕内容 */
.phone-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 侧边按钮 */
.phone-button-side {
    position: absolute;
    right: -2px;
    top: 80px;
    width: 2px;
    height: 35px;
    background: linear-gradient(90deg, #1a252f, #0a0a0a);
    border-radius: 0 2px 2px 0;
}

.phone-button-side.volume-up {
    top: 70px;
    height: 25px;
}

.phone-button-side.volume-down {
    top: 100px;
    height: 25px;
}

.phone-button-side.power {
    top: 95px;
    left: -2px;
    right: auto;
    height: 40px;
    border-radius: 2px 0 0 2px;
}

/* 3D Carousel 导航按钮 */
.carousel-3d-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.carousel-3d-nav:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-3d-nav svg {
    width: 20px;
    height: 20px;
    color: #ec4899;
}

.carousel-3d-prev {
    left: 10px;
}

.carousel-3d-next {
    right: 10px;
}

/* 鼠标悬停轮播图时显示导航按钮 */
.carousel-3d-wrapper:hover .carousel-3d-nav {
    opacity: 1;
    visibility: visible;
}

/* 3D Carousel 指示器 - 隐藏 */
.carousel-3d-dots {
    display: none;
}

/* 响应式 - 平板 */
@media (max-width: 1024px) {
    .carousel-3d-wrapper {
        height: 450px;
    }
    
    .carousel-3d-stage {
        width: 180px;
        height: 360px;
    }
    
    .carousel-3d-item {
        width: 180px;
        height: 360px;
    }
}

/* 响应式 - 移动端隐藏 */
@media (max-width: 768px) {
    .carousel-3d-wrapper {
        display: none !important;
    }
}
