/* 百思童年小程序 - 新用户页面样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #FFE5F1 0%, #E8F4FD 50%, #FFF2E8 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 100vw;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部区域 */
.top-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: stretch;
}

.video-container {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.3);
    border: 3px solid #FFB6C1;
    display: flex;
    flex-direction: column;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    background: #f8f9fa;
}

.video-preview {
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    flex: 1;
}

.video-preview:hover {
    transform: scale(1.02);
}

.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #FF69B4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.video-title {
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #FF69B4;
}

.contact-section {
    flex: 1;
}

.contact-card {
    background: linear-gradient(135deg, #FFE4E1 0%, #F0F8FF 100%);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(135, 206, 250, 0.3);
    border: 3px solid #87CEEB;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-text {
    font-size: 20px;
    font-weight: bold;
    color: #4169E1;
    margin-bottom: 8px;
}

.contact-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.contact-btn {
    background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

/* 玩具选择区域 */
.toy-selection {
    background: white;
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.2);
    border: 3px solid #FFE4E1;
}

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #FF69B4;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(255, 182, 193, 0.3);
}

.toy-slider {
    position: relative;
    margin-bottom: 25px;
}

.slider-container {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #F0F8FF 0%, #FFF0F5 100%);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid #FFE4E1;
}

.toy-name {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #4169E1;
    text-align: center;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #DDD;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #FF69B4;
    transform: scale(1.3);
}

.toy-action-btn {
    display: block;
    width: 200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(50, 205, 50, 0.4);
}

.toy-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(50, 205, 50, 0.6);
}

/* 操作按钮区域 */
.action-section {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.action-btn {
    flex: 1;
    max-width: 180px;
    padding: 18px 25px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #FF6347 0%, #FF4500 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 99, 71, 0.4);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #9370DB 0%, #8A2BE2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(147, 112, 219, 0.4);
}

.action-btn:hover {
    transform: translateY(-3px);
}

.action-btn.primary:hover {
    box-shadow: 0 8px 25px rgba(255, 99, 71, 0.6);
}

.action-btn.secondary:hover {
    box-shadow: 0 8px 25px rgba(147, 112, 219, 0.6);
}

.btn-icon {
    font-size: 20px;
}

/* 底部版权 */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 20px;
}

.copyright-link {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.copyright-link:hover {
    color: #FF69B4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .top-section {
        flex-direction: column;
    }
    
    .video-container,
    .contact-section {
        max-width: 100%;
    }
    
    .action-section {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .action-btn {
        max-width: 250px;
    }
    
    .container {
        padding: 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .slide img {
        max-width: 150px;
        max-height: 150px;
    }
}

/* 动画效果 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.contact-icon {
    animation: bounce 2s infinite;
}

/* 加载动画 */
.slide img {
    transition: transform 0.3s ease;
}

.slide img:hover {
    transform: scale(1.05);
}