/* 双商品展示页面样式 - 黑白极简风格 */
.ng-dual-product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px;
    /* 移动端优化 */
    box-sizing: border-box;
    width: 100%;
}

.ng-product-item {
    flex: 1;
    min-width: 250px;
    background: #ffffff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    position: relative;
    transition: all 0.3s ease;
    /* 移动端优化 */
    box-sizing: border-box;
    width: 100%;
}

.ng-product-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 添加badge样式 */
.ng-product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #000000;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
    z-index: 1;
}

.ng-product-content {
    text-align: center;
}

.ng-product-title {
    font-size: 20px;
    color: #000000;
    margin: 15px 0;
    font-weight: 600;
    letter-spacing: -0.3px;
    /* 移动端优化 */
    line-height: 1.3;
    word-wrap: break-word;
}

.ng-product-image {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.ng-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    /* 移动端优化 */
    width: 100%;
    height: auto;
}

.ng-product-image img:hover {
}

/* 尺寸信息区域 */
.ng-product-sizes {
    margin: 20px 0;
    text-align: left;
}

.ng-sizes-title {
    font-size: 16px;
    color: #000000;
    margin-bottom: 12px;
    font-weight: 600;
    text-align: center;
}

.ng-size-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.ng-size-option-item {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    text-align: center;
    font-size: 11px;
    /* 移动端触摸优化 */
    touch-action: manipulation;
    -webkit-appearance: none;
    min-height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ng-size-option-item:hover {
    border-color: #000000;
    background: #f0f0f0;
}

.ng-size-option-item.selected {
    border-color: #000000;
    background: #000000;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ng-size-name {
    display: block;
    font-weight: 500;
    color: #333333;
    margin-bottom: 0;
}

.ng-size-desc {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-top: 4px;
}

.ng-size-option-item.selected .ng-size-name {
    color: white;
}

.ng-size-option-item.selected .ng-size-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
}

/* 相框选项区域 */
.ng-frame-option {
    margin: 20px 0;
    padding: 15px;
    background: #fafafa;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.ng-frame-title {
    font-size: 16px;
    color: #000000;
    margin-bottom: 12px;
    font-weight: 600;
}

.ng-frame-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.ng-frame-option-item {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    text-align: center;
    font-size: 12px;
    /* 移动端触摸优化 */
    touch-action: manipulation;
    -webkit-appearance: none;
    min-height: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ng-frame-option-item:hover {
    border-color: #000000;
    background: #f0f0f0;
}

.ng-frame-option-item.selected {
    border-color: #000000;
    background: #000000;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ng-frame-label {
    display: block;
    font-weight: 500;
    color: #333333;
    margin-bottom: 0;
}

.ng-frame-option-item.selected .ng-frame-label {
    color: white;
}

/* 联系方式输入区域 */
.ng-email-section {
    margin-top: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 4px;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    border: 1px solid #e0e0e0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ng-email-title {
    font-size: 16px;
    color: #000000;
    margin-bottom: 12px;
    font-weight: 600;
}

.ng-name-input,
.ng-email-input {
    width: 100%;
    max-width: 300px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
    /* 移动端触摸优化 */
    touch-action: manipulation;
    -webkit-appearance: none;
}

.ng-name-input:focus,
.ng-email-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.ng-name-input::placeholder,
.ng-email-input::placeholder {
    color: #999999;
}

.ng-confirm-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    /* 移动端触摸优化 */
    touch-action: manipulation;
    -webkit-appearance: none;
    min-height: 35px; /* 符合移动端最小触摸目标要求 */
    margin: 12px auto;
    display: block;
    width: 100%;
    max-width: 300px;
}

.ng-confirm-btn:hover {
    background: #333333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ng-confirm-btn:active {
    transform: translateY(0);
}

.ng-confirm-btn:disabled {
    background: #cccccc;
    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;
        padding: 8px;
        gap: 15px;
    }
    
    .ng-product-item {
        min-width: 100%;
        padding: 15px;
        margin-bottom: 8px;
    }
    
    .ng-product-title {
        font-size: 18px;
        margin: 12px 0;
    }
    
    .ng-product-image img {
        max-width: 100%;
        height: auto;
    }
    
    .ng-size-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .ng-size-option-item {
        padding: 10px 6px;
        font-size: 12px;
        min-height: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .ng-size-name {
        font-size: 14px;
    }
    
    .ng-size-desc {
        font-size: 15px;
        font-weight: 600;
        color: #333333;
        margin-top: 3px;
    }
    
    .ng-frame-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .ng-frame-option-item {
        padding: 6px 8px;
        font-size: 11px;
        min-height: 32px;
    }
    
    .ng-frame-title,
    .ng-sizes-title,
    .ng-email-title {
        font-size: 15px;
        margin: 12px 0 8px 0;
    }
    
    .ng-name-input,
    .ng-email-input {
        max-width: 100%;
        padding: 8px 10px;
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .ng-confirm-btn {
        width: 100%;
        padding: 8px;
        font-size: 12px;
        max-width: 100%;
    }
    
    .ng-product-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .ng-dual-product-container {
        padding: 5px;
        gap: 12px;
    }
    
    .ng-product-item {
        padding: 12px;
    }
    
    .ng-product-title {
        font-size: 16px;
        margin: 10px 0;
    }
    
    .ng-size-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .ng-size-option-item {
        padding: 8px 5px;
        font-size: 10px;
        min-height: 45px;
    }
    
    .ng-size-name {
        font-size: 13px;
    }
    
    .ng-size-desc {
        font-size: 14px;
        font-weight: 600;
        color: #333333;
        margin-top: 2px;
    }
    
    .ng-frame-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .ng-frame-option-item {
        padding: 5px 6px;
        font-size: 10px;
        min-height: 28px;
    }
    
    .ng-frame-title,
    .ng-sizes-title,
    .ng-email-title {
        font-size: 14px;
        margin: 10px 0 6px 0;
    }
    
    .ng-name-input,
    .ng-email-input {
        padding: 5px 7px;
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .ng-confirm-btn {
        padding: 6px;
        font-size: 11px;
        max-width: 100%;
    }
    
    .ng-product-badge {
        font-size: 9px;
        padding: 2px 5px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 320px) {
    .ng-product-item {
        padding: 12px;
    }
    
    .ng-product-title {
        font-size: 16px;
    }
    
    .ng-size-option-item {
        padding: 6px 3px;
        font-size: 9px;
        min-height: 40px;
    }
    
    .ng-size-name {
        font-size: 12px;
    }
    
    .ng-size-desc {
        font-size: 13px;
        font-weight: 600;
        color: #333333;
    }
    
    .ng-frame-option-item {
        padding: 4px 5px;
        font-size: 9px;
        min-height: 24px;
    }
    
    .ng-name-input,
    .ng-email-input {
        padding: 5px 6px;
        font-size: 11px;
    }
    
    .ng-confirm-btn {
        padding: 5px;
        font-size: 10px;
        max-width: 100%;
    }
}

/* 后台设置页面左右排列样式 */
.dpd-settings-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0;
}

.dpd-product-column {
    flex: 1;
    min-width: 250px;
    background: #ffffff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.dpd-product-column h2 {
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    color: #000000;
    font-size: 20px;
}

@media (max-width: 768px) {
    .dpd-settings-container {
        flex-direction: column;
        gap: 15px;
        margin: 8px 0;
    }
    
    .dpd-product-column {
        min-width: 100%;
        padding: 12px;
    }
    
    .dpd-product-column h2 {
        font-size: 18px;
        padding-bottom: 8px;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .dpd-product-column {
        padding: 10px;
    }
    
    .dpd-product-column h2 {
        font-size: 16px;
    }
}