
.meta-box-sortables input{margin: 10px 0px;}

.product-media-meta-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-media-meta-box .field-group {
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}

/* 产品选择和图标字段占满整行 */
.product-media-meta-box > .field-group:nth-child(1),
.product-media-meta-box > .field-group:nth-child(2) {
    width: 100%;
}

/* Videos 和 News 并排两列 */
.product-media-meta-box > .field-group:nth-child(3),
.product-media-meta-box > .field-group:nth-child(4) {
    width: calc(50% - 10px);
    flex: 1;
}

.product-media-meta-box label { 
    display: inline-block; 
    width: 150px; 
    font-weight: 600;
}

.product-media-meta-box input[type="text"], 
.product-media-meta-box textarea { 
    width: 70%; 
}

.product-media-meta-box .repeatable-group { 
    background: #fff; 
    border: 1px solid #ddd; 
    padding: 15px; 
    margin-bottom: 10px;
    position: relative;
    padding-top: 8px;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.product-media-meta-box .remove-button { 
    background: #dc3232; 
    color: white; 
    border: none; 
    padding: 5px 15px; 
    cursor: pointer;
    border-radius: 3px;
    margin-top: 10px;
}

.product-media-meta-box .remove-button:hover {
    background: #a00;
}

.product-media-meta-box .button {
    margin-top: 10px;
}

/* 拖拽手柄样式 */
.drag-handle { 
    position: absolute; 
    top: 12px; 
    right: 12px; 
    cursor: move;
    color: #72aee6;
    font-size: 20px;
    padding: 5px;
    transition: color 0.2s ease;
    z-index: 10;
}

.drag-handle:hover {
    color: #0073aa;
}

/* 序号徽章样式 */
.group-number {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    margin: 0 8px;
    vertical-align: middle;
    position: absolute;
    top: 15px;
    right: 50px;
    z-index: 10;
}

/* 占位符样式 */
.sortable-placeholder { 
    background: #f0f6fc; 
    border: 2px dashed #0073aa; 
    min-height: 100px;
    margin: 10px 0;
    border-radius: 5px;
    visibility: visible !important;
}

/* 拖拽时的样式 */
.ui-sortable-helper {
    opacity: 0.8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: #fff;
    z-index: 999;
}

/* 响应式：小屏幕时改为单列 */
@media (max-width: 1200px) {
    .product-media-meta-box > .field-group:nth-child(3),
    .product-media-meta-box > .field-group:nth-child(4) {
        width: 100%;
    }
}