/* 为什么选择LETO Baby区域 */
.why-choose-section {
    padding: 80px 0;
    background: #F4F1EB;
    overflow: hidden;
}

.why-choose-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.why-choose-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.why-choose-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #E21111, #F19090);
    border-radius: 2px;
}

/* 网格布局 */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* 单个项目 */
.why-choose-item {
    position: relative;
}

.why-choose-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 15px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.why-choose-item:hover .why-choose-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* 图片区域 */
.why-choose-image {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.why-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.default-img {
    opacity: 1;
}

.hover-img {
    opacity: 0;
}

.why-choose-item:hover .default-img {
    opacity: 0;
}

.why-choose-item:hover .hover-img {
    opacity: 1;
    transform: scale(1.1);
}

/* 标题 */
.why-choose-item-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
    word-break: break-word;
    transition: all 0.4s ease;
}

.why-choose-item:hover .why-choose-item-title {
    color: #E21111;
    transform: translateX(5px);
}

/* 邮件订阅部分 */
.email-subscribe-section {
    border: 20px solid #ffffff;
    border-radius: 20px;
    background: #ffffff;
    margin-top: 40px;
}

.email-subscribe-content {
    text-align: center;
    padding: 40px 20px;
    background-color: #F4F1EB;
}

.email-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.email-form {
    max-width: 500px;
    margin: 0 auto;
}

.email-input-group {
    margin-bottom: 25px;
}

.email-input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 5px solid #BAB6B0;
    background: transparent;
    font-size: 1.1rem;
    color: #333;
    text-align: center;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: #BAB6B0;
}

.email-input:focus {
    outline: none;
    border-bottom-color: #E21111;
}

/* 复选框组 */
.checkbox-group {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}

.agree-checkbox {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #BAB6B0;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.agree-checkbox:checked + .checkmark {
    background: #E21111;
    border-color: #E21111;
}

.agree-checkbox:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 0.9rem;
    color: #343434;
    line-height: 1.4;
    word-break: break-word;
}

/* 错误状态 */
/* 错误状态 - 增强动画效果 */
.checkbox-group.error .checkmark {
    border-color: #E21111;
    background-color: rgba(226, 17, 17, 0.1);
    animation: shake 0.6s ease-in-out;
}

.checkbox-group.error .checkbox-text {
    color: #E21111;
    animation: textPulse 0.6s ease-in-out;
}

/* 复选框放大动画 */
.checkbox-group.error .checkmark {
    animation: shake 0.6s ease-in-out, checkboxPulse 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes checkboxPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes textPulse {
    0%, 100% { 
        color: #343434;
        transform: scale(1);
    }
    25%, 75% { 
        color: #E21111;
        transform: scale(1.02);
    }
    50% { 
        color: #ff4444;
        transform: scale(1.05);
    }
}

/* 添加红色闪烁边框效果 */
.checkbox-group.error {
    animation: borderFlash 0.6s ease-in-out;
}

@keyframes borderFlash {
    0%, 100% { 
        box-shadow: none;
    }
    25%, 75% { 
        box-shadow: 0 0 0 2px rgba(226, 17, 17, 0.3);
    }
    50% { 
        box-shadow: 0 0 0 4px rgba(226, 17, 17, 0.5);
    }
}

/* 订阅按钮 */
.subscribe-btn {
    background: #ffffff;
    color: #343434;
    border: 5px solid #F08888;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.subscribe-btn:hover {
    background: #F08888;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(240, 136, 136, 0.3);
}

.subscribe-btn:active {
    transform: translateY(-1px);
}

.subscribe-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .why-choose-grid {
        gap: 25px;
    }
    
    .why-choose-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }
    
    .why-choose-item-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .why-choose-section {
        padding: 60px 0;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 600px;
        margin: 0 auto 50px;
    }
    
    .why-choose-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .email-subscribe-section {
        border-width: 15px;
        margin-top: 30px;
    }
    
    .email-subscribe-content {
        padding: 30px 15px;
    }
    
    .email-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    .why-choose-container {
        padding: 0 15px;
    }
    
    .why-choose-content {
        padding: 20px;
        gap: 15px;
    }
    
    .why-choose-image {
        width: 80px;
        height: 80px;
    }
    
    .why-choose-item-title {
        font-size: 1.1rem;
    }
    
    .email-subscribe-section {
        border-width: 10px;
    }
    
    .email-subscribe-content {
        padding: 25px 10px;
    }
    
    .email-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .email-input {
        padding: 12px 0;
        border-bottom-width: 3px;
        font-size: 1rem;
    }
    
    .subscribe-btn {
        padding: 12px 30px;
        font-size: 1rem;
        border-width: 3px;
    }
}

@media (max-width: 576px) {
    .why-choose-section {
        padding: 40px 0;
    }
    
    .why-choose-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .why-choose-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 25px 20px;
    }
    
    .why-choose-item:hover .why-choose-item-title {
        transform: translateY(-2px);
    }
    
    .email-title {
        font-size: 1.1rem;
    }
    
    .checkbox-text {
        font-size: 0.85rem;
    }
}

/* 大屏幕适配 */
@media (min-width: 1440px) {
    .why-choose-container {
        padding: 0 40px;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.why-choose-item {
    animation: fadeInUp 0.6s ease;
}

.why-choose-item:nth-child(1) { animation-delay: 0.1s; }
.why-choose-item:nth-child(2) { animation-delay: 0.2s; }
.why-choose-item:nth-child(3) { animation-delay: 0.3s; }
.why-choose-item:nth-child(4) { animation-delay: 0.4s; }
.why-choose-item:nth-child(5) { animation-delay: 0.5s; }
.why-choose-item:nth-child(6) { animation-delay: 0.6s; }

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .why-choose-section {
        background: #2c3e50;
    }
    
    .why-choose-title {
        color: #ecf0f1;
    }
    
    .why-choose-item-title {
        color: #ecf0f1;
    }
    
    .why-choose-item:hover .why-choose-content {
        background: rgba(52, 73, 94, 0.8);
    }
    
    .why-choose-item:hover .why-choose-item-title {
        color: #3498db;
    }
    
    .email-subscribe-section {
        background: #34495e;
        border-color: #34495e;
    }
    
    .email-title {
        color: #ecf0f1;
    }
    
    .email-input {
        color: #ecf0f1;
        border-bottom-color: #5a6c7d;
    }
    
    .email-input::placeholder {
        color: #5a6c7d;
    }
    
    .checkbox-text {
        color: #bdc3c7;
    }
    
    .subscribe-btn {
        background: #34495e;
        color: #ecf0f1;
        border-color: #3498db;
    }
    
    .subscribe-btn:hover {
        background: #3498db;
        color: #34495e;
    }
}



/* 错误消息样式 - 初始时隐藏 */
.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    padding: 5px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    animation: fadeIn 0.3s ease-in;
    display: none; /* 初始隐藏 */
}

.success-message {
    color: #155724;
    font-size: 14px;
    margin-top: 10px;
    padding: 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
}

/* 输入框错误状态 */
.email-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.checkbox-group.error {
    border: 1px solid #dc3545;
    border-radius: 4px;
    padding: 8px;
    background: #f8d7da;
}

/* 动画效果 */
@keyframes borderFlash {
    0%, 100% { border-color: #dc3545; }
    50% { border-color: transparent; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}