/* 双商品展示页面样式 */
.ng-dual-product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ng-product-item {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.ng-product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* 添加badge样式 */
.ng-product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(238, 90, 36, 0.3);
    z-index: 1;
}

.ng-product-content {
    text-align: center;
}

.ng-product-title {
    font-size: 28px;
    color: #2c3e50;
    margin: 20px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ng-product-image {
    margin: 25px 0;
    display: flex;
    justify-content: center;
}

.ng-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ng-product-image img:hover {
    transform: scale(1.03);
}

/* 尺寸信息区域 */
.ng-product-sizes {
    margin: 25px 0;
    text-align: left;
}

.ng-sizes-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.ng-size-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.ng-size-option-item {
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fafafa;
    text-align: center;
    font-size: 15px;
}

.ng-size-option-item:hover {
    border-color: #3498db;
    background: #f0f8ff;
    transform: translateY(-2px);
}

.ng-size-option-item.selected {
    border-color: #3498db;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.ng-size-name {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.ng-size-price {
    display: block;
    color: #e74c3c;
    font-weight: 700;
    font-size: 14px;
}

/* 相框选项区域 */
.ng-frame-option {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.ng-frame-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.ng-frame-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ng-frame-option-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.ng-frame-option-item:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.ng-frame-option-item input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.ng-frame-label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.ng-frame-option-item input[type="radio"]:checked + .ng-frame-label {
    color: #3498db;
    font-weight: 600;
}

/* 邮箱输入区域 */
.ng-email-section {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    display: none; /* 初始隐藏 */
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ng-email-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.ng-email-input {
    width: 100%;
    max-width: 300px;
    padding: 14px 18px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.ng-email-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.ng-email-input::placeholder {
    color: #aaa;
}

.ng-confirm-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    letter-spacing: 0.5px;
}

.ng-confirm-btn:hover {
    background: linear-gradient(135deg, #27ae60, #219653);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.ng-confirm-btn:active {
    transform: translateY(0);
}

.ng-confirm-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 后台设置页面样式 */
#dpd_left_image_button,
#dpd_right_image_button {
    margin-left: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ng-dual-product-container {
        flex-direction: column;
    }
    
    .ng-product-item {
        min-width: 100%;
        padding: 20px;
    }
    
    .ng-product-title {
        font-size: 24px;
    }
    
    .ng-size-options {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .ng-size-option-item {
        padding: 10px;
        font-size: 14px;
    }
    
    .ng-frame-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ng-frame-option-item {
        justify-content: center;
    }
    
    .ng-email-input {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .ng-product-item {
        padding: 15px;
    }
    
    .ng-size-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ng-product-title {
        font-size: 22px;
    }
}